yuhan hace 1 año
padre
commit
613d4ca164
Se han modificado 1 ficheros con 109 adiciones y 13 borrados
  1. 109 13
      src/views/module_kzks/projectPushList/ProjectPushListList.vue

+ 109 - 13
src/views/module_kzks/projectPushList/ProjectPushListList.vue

@@ -95,10 +95,10 @@
           </a-button>
         </template>
 
-        <!-- <span slot="action" slot-scope="text, record">
-          <a @click="handleEdit(record)">编辑</a>
+        <span slot="action" slot-scope="text, record">
+          <a @click="handleDetail(record)">详情</a>
 
-          <a-divider type="vertical" />
+          <!-- <a-divider type="vertical" />
           <a-dropdown>
             <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
             <a-menu slot="overlay">
@@ -111,13 +111,75 @@
                 </a-popconfirm>
               </a-menu-item>
             </a-menu>
-          </a-dropdown>
-        </span> -->
+          </a-dropdown> -->
+        </span>
 
       </a-table>
     </div>
 
     <project-push-list-modal ref="modalForm" @ok="modalFormOk"></project-push-list-modal>
+
+    <!-- 推送详情 -->
+    <j-modal
+      :title="detailTitle"
+      :width="detailWidth"
+      :visible="detailVisible"
+      switchFullscreen
+      :okButtonProps="{ class:{'jee-hidden': detailDisableSubmit} }"
+      cancelText="关闭"
+      @cancel="handleCancel">
+      <a-descriptions title="" bordered>
+        <a-descriptions-item label="任务号">
+          {{ detailData.taskno }}
+        </a-descriptions-item>
+        <a-descriptions-item label="任务名称">
+          {{ detailData.taskname }}
+        </a-descriptions-item>
+        <a-descriptions-item label="型号">
+          {{projectData.xhname}}
+        </a-descriptions-item>
+        <a-descriptions-item label="项目进度">
+          {{parseInt(projectData.processpercent)+ '%'}}
+        </a-descriptions-item>
+        <a-descriptions-item label="材料费" v-if="detailData.costType === '0' || detailData.costType === '4'" :span="detailData.costType === '3' || detailData.costType === '4' ? 1 : 2">
+          {{(Number(projectData.clf)/10000).toFixed(2)}}万元
+        </a-descriptions-item>
+        <a-descriptions-item label="外协费" v-if="detailData.costType === '1' || detailData.costType === '3'" :span="detailData.costType === '3' || detailData.costType === '4' ? 1 : 2">
+          {{(Number(projectData.wxf)/10000).toFixed(2)}}万元
+        </a-descriptions-item>
+        <a-descriptions-item label="人工费" v-if="detailData.costType === '2'" :span="2">
+          {{(Number(projectData.gzjlwf)/10000).toFixed(2)}}万元
+        </a-descriptions-item>
+        <a-descriptions-item label="外协预算" v-if="detailData.costType === '3'">
+          {{Number(projectData.wxys).toFixed(2)}}万元
+        </a-descriptions-item>
+        <a-descriptions-item label="材料预算" v-if="detailData.costType === '4'">
+          {{Number(projectData.clys).toFixed(2)}}万元
+        </a-descriptions-item>
+        <a-descriptions-item label="合同额" v-if="detailData.costType === '5'" :span="2">
+          {{(Number(projectData.contractfpe)/10000).toFixed(2)}}万元
+        </a-descriptions-item>
+        <a-descriptions-item label="收款额" v-if="detailData.costType === '6'" :span="2">
+          {{(Number(projectData.taskmoney)/10000).toFixed(2)}}万元
+        </a-descriptions-item>
+        <a-descriptions-item label="推送至">
+          {{ detailData.pushTo }}
+        </a-descriptions-item>
+        <a-descriptions-item label="推送类型" :span="2">
+          {{ detailData.pushType_dictText }}
+        </a-descriptions-item>
+        <!-- <a-descriptions-item label="成本类型" :span="2">
+          {{ detailData.costType_dictText }}
+        </a-descriptions-item> -->
+        <a-descriptions-item label="推送内容" :span="3">
+          {{ detailData.content }}
+        </a-descriptions-item>
+      </a-descriptions>
+
+      <template slot="footer">
+        <a-button @click="handleCancel">关闭</a-button>
+      </template>
+    </j-modal>
   </a-card>
 </template>
 
@@ -127,6 +189,7 @@
   import { mixinDevice } from '@/utils/mixin'
   import { JeecgListMixin } from '@/mixins/JeecgListMixin'
   import ProjectPushListModal from './modules/ProjectPushListModal'
+  import { getAction } from '@/api/manage'
 
   export default {
     name: 'ProjectPushListList',
@@ -195,14 +258,14 @@
           //   align:"center",
           //   dataIndex: 'status'
           // },
-          // {
-          //   title: '操作',
-          //   dataIndex: 'action',
-          //   align:"center",
-          //   fixed:"right",
-          //   width:147,
-          //   scopedSlots: { customRender: 'action' }
-          // }
+          {
+            title: '操作',
+            dataIndex: 'action',
+            align:"center",
+            fixed:"right",
+            width:147,
+            scopedSlots: { customRender: 'action' }
+          }
         ],
         url: {
           list: "/projectPushList/projectPushList/list",
@@ -214,6 +277,13 @@
         },
         dictOptions:{},
         superFieldList:[],
+        // 详情
+        detailTitle: '推送详情',
+        detailWidth: '60%',
+        detailVisible: false,
+        detailDisableSubmit: false,
+        detailData: {},
+        projectData: {}
       }
     },
     created() {
@@ -225,6 +295,32 @@
       },
     },
     methods: {
+      handleDetail(record){
+        console.log(record)
+        this.detailData = record
+        this.loading = true;
+        getAction('/projectCostHuiji/projectCostHuiji/list', {taskno: record.taskno}).then((res) => {
+          console.log(res)
+          if (res.success) {
+            this.projectData = res.result.pageList.records[0]
+          }else{
+            this.$message.warning(res.message)
+          }
+        }).finally(() => {
+          this.loading = false
+        })
+        this.detailVisible = true
+      },
+      show() {
+        this.detailVisible = true
+      },
+      close () {
+        // this.$emit('close');
+        this.detailVisible = false;
+      },
+      handleCancel () {
+        this.close()
+      },
       initDictConfig(){
       },
       getSuperFieldList(){