chenrui před 7 měsíci
rodič
revize
e59dc375ca

+ 13 - 13
src/views/salesReturnManagement/salesReturn/auditDetail.vue

@@ -2,15 +2,15 @@
   <div>
     <p>说明:以下信息来自钉钉</p>
     <a-spin :spinning="spinning" tip="Loading...">
-      <div style="margin-bottom:10px;" v-for="item in list" :key="item.businessId">
-        <div style="margin-bottom:10px;font-weight:bold;">提审时间:{{ item.createTime }}</div>
+      <div style="margin-bottom:10px;" v-for="item in list" :key="item.businessSn">
+        <div style="margin-bottom:10px;font-weight:bold;">提审时间:{{ item.createDate }}</div>
         <a-table
           class="sTable fixPagination"
           ref="table"
           size="small"
-          :rowKey="(record) => record.businessId"
+          :rowKey="(record) => record.businessSn"
           :columns="columns"
-          :dataSource="item.taskVOList"
+          :dataSource="item.opinionList"
           :scroll="{ y: 500 }"
           :pagination="false"
           bordered>
@@ -22,7 +22,7 @@
 
 <script>
 import { STable } from '@/components'
-import { getProcessInstanceList } from '@/api/expenseManagement'
+import { getProcessInstance } from '@/api/expenseManagement'
 export default {
   name: 'AuditDetail',
   components: { STable },
@@ -44,12 +44,12 @@ export default {
     return {
       spinning: false,
       columns: [{ title: '序号', dataIndex: 'no', width: '8%', align: 'center' },
-        { title: '人员姓名', width: '12%', dataIndex: 'userName', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '人员类型', dataIndex: 'userType', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '状态', dataIndex: 'state', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '审批意见', dataIndex: 'remark', width: '20%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '附件', dataIndex: 'hasAttachments', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '操作时间', dataIndex: 'date', width: '20%', align: 'center', customRender: function (text) { return text || '--' } }],
+        { title: '人员姓名', width: '12%', dataIndex: 'approvalName', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '人员类型', dataIndex: 'processTaskType', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '状态', dataIndex: 'approvalStateDictValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '审批意见', dataIndex: 'approvalOpinion', width: '20%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '附件', dataIndex: 'attachmentNames', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '操作时间', dataIndex: 'approvalTime', width: '20%', align: 'center', customRender: function (text) { return text || '--' } }],
       list: []
     }
   },
@@ -62,11 +62,11 @@ export default {
     },
     getData () {
       this.spinning = true
-      getProcessInstanceList({ businessType: this.businessType, businessSn: this.itemSn }).then(res => {
+      getProcessInstance({ businessType: this.businessType, businessSn: this.itemSn }).then(res => {
         if (res.status == 200) {
           this.list = res.data
           this.list.map(item => {
-            item.taskVOList.map((a, index) => a.no = index + 1)
+            item.opinionList.map((a, index) => a.no = index + 1)
           })
         }
         this.spinning = false