Bladeren bron

修改bug

chenrui 7 maanden geleden
bovenliggende
commit
6b049b5caa

+ 1 - 1
src/views/expenseManagement/expenseReimbursement/detail.vue

@@ -192,7 +192,7 @@ export default {
       // 费用明细
       const fyListData = await expenseAcctDetailFindList({ expenseAccountSn: this.$route.params.sn }).then(res => res.data)
       // 审核明细,待提交状态不获取
-      const spListData = this.detailData.state != 'WAIT_SUBMIT' ? await getProcessInstance({ businessType: 'EXPENSES', businessSn: this.$route.params.sn, processInstanceId: this.$route.params.itemId }).then(res => res.data) : null
+      const spListData = this.detailData.state != 'WAIT_SUBMIT' ? await getProcessInstance({ businessType: 'EXPENSES', businessSn: this.$route.params.sn }).then(res => res.data[0].opinionList || []) : null
       // 打印预览弹框
       if (type == 'preview') {
         this.showTipModal = true

+ 6 - 6
src/views/expenseManagement/expenseReimbursement/previewModal.vue

@@ -109,12 +109,12 @@
             <tbody>
               <tr style="height: 30px;padding: 5px;" v-for="(spitem,index) in item.spListData" :key="index">
                 <td style="padding:5px 0;">{{ index+1||'' }}</td>
-                <td style="padding:5px 0;">{{ spitem.userName||'' }}</td>
-                <td style="padding:5px 0;">{{ spitem.userType||'' }}</td>
-                <td style="padding:5px 0;">{{ spitem.state||'' }}</td>
-                <td style="padding:5px 0;">{{ spitem.remark||'' }}</td>
-                <td style="padding:5px 0;">{{ spitem.hasAttachments!= '0' ? '请在钉钉中查看附件内容' : '--' }}</td>
-                <td style="padding:5px 0;">{{ spitem.date||'' }}</td>
+                <td style="padding:5px 0;">{{ spitem.approvalName||'' }}</td>
+                <td style="padding:5px 0;">{{ spitem.processTaskType||'' }}</td>
+                <td style="padding:5px 0;">{{ spitem.approvalStateDictValue||'' }}</td>
+                <td style="padding:5px 0;">{{ spitem.approvalOpinion||'' }}</td>
+                <td style="padding:5px 0;">{{ spitem.attachmentNames!= '0' ? '请在钉钉中查看附件内容' : '--' }}</td>
+                <td style="padding:5px 0;">{{ spitem.approvalTime||'' }}</td>
               </tr></tbody>
           </table>
         </div>

+ 8 - 9
src/views/expenseManagement/expenseReimbursement/verifyModal.vue

@@ -50,22 +50,21 @@ export default {
       spinning: false,
       isShow: this.openModal,
       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 != '0' ? '请在钉钉中查看附件内容' : '--' } },
-        { 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 != '0' ? '请在钉钉中查看附件内容' : '--' } },
+        { title: '操作时间', dataIndex: 'approvalTime', width: '20%', align: 'center', customRender: function (text) { return text || '--' } }],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {
         this.spinning = true
         delete parameter.tableId
         delete parameter.index
-        // 当有多次重复审批时,传 businessSn;否则使用processInstanceId
-        return getProcessInstance({ businessType: 'EXPENSES', businessSn: this.itemSn, processInstanceId: this.itemId }).then(res => {
+        return getProcessInstance({ businessType: 'EXPENSES', businessSn: this.itemSn }).then(res => {
           let data
           if (res.status == 200) {
-            data = res.data
+            data = res.data ? res.data[0] ? res.data[0].opinionList ? res.data[0].opinionList : [] : [] : []
             const no = 0
             for (var i = 0; i < data.length; i++) {
               data[i].no = no + i + 1

+ 8 - 8
src/views/financialManagement/financialCollection/verifyModal.vue

@@ -50,21 +50,21 @@ export default {
       spinning: false,
       isShow: this.openModal,
       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 != '0' ? '请在钉钉中查看附件内容' : '--' } },
-        { 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 != '0' ? '请在钉钉中查看附件内容' : '--' } },
+        { title: '操作时间', dataIndex: 'approvalTime', width: '20%', align: 'center', customRender: function (text) { return text || '--' } }],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {
         this.spinning = true
         delete parameter.tableId
         delete parameter.index
-        return getProcessInstance({ businessType: 'FINANCE_BOOK', businessSn: this.itemSn, processInstanceId: this.itemId }).then(res => {
+        return getProcessInstance({ businessType: 'FINANCE_BOOK', businessSn: this.itemSn }).then(res => {
           let data
           if (res.status == 200) {
-            data = res.data
+            data = res.data ? res.data[0] ? res.data[0].opinionList ? res.data[0].opinionList : [] : [] : []
             const no = 0
             for (var i = 0; i < data.length; i++) {
               data[i].no = no + i + 1

+ 8 - 8
src/views/purchasingManagement/purchaseReturn/reviewProgressModal.vue

@@ -55,21 +55,21 @@ export default {
       spinning: false,
       isShow: this.openModal,
       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 != '0' ? '请在钉钉中查看附件内容' : '--' } },
-        { 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 != '0' ? '请在钉钉中查看附件内容' : '--' } },
+        { title: '操作时间', dataIndex: 'approvalTime', width: '20%', align: 'center', customRender: function (text) { return text || '--' } }],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {
         this.spinning = true
         delete parameter.tableId
         delete parameter.index
-        return getProcessInstance({ businessType: 'SPARE_PARTS_RETURN', businessSn: this.itemSn, processInstanceId: this.itemId }).then(res => {
+        return getProcessInstance({ businessType: 'SPARE_PARTS_RETURN', businessSn: this.itemSn }).then(res => {
           let data
           if (res.status == 200) {
-            data = res.data
+            data = res.data ? res.data[0] ? res.data[0].opinionList ? res.data[0].opinionList : [] : [] : []
             const no = 0
             for (var i = 0; i < data.length; i++) {
               data[i].no = no + i + 1

+ 8 - 8
src/views/salesReturnManagement/billOfLading/detail.vue

@@ -210,22 +210,22 @@ export default {
       auditData: [],
       auditColumns: [
         { 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 != '0' ? '请在钉钉中查看附件内容' : '--' } },
-        { 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 != '0' ? '请在钉钉中查看附件内容' : '--' } },
+        { title: '操作时间', dataIndex: 'approvalTime', width: '20%', align: 'center', customRender: function (text) { return text || '--' } }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {
         this.spinning = true
         delete parameter.tableId
         delete parameter.index
-        return getProcessInstance({ businessType: 'PICK_UP', businessSn: this.$route.params.sn, processInstanceId: this.$route.params.itemId }).then(res => {
+        return getProcessInstance({ businessType: 'PICK_UP', businessSn: this.$route.params.sn }).then(res => {
           let data
           if (res.status == 200) {
-            data = res.data
+            data = res.data ? res.data[0] ? res.data[0].opinionList ? res.data[0].opinionList : [] : [] : []
             const no = 0
             for (var i = 0; i < data.length; i++) {
               data[i].no = no + i + 1

+ 8 - 8
src/views/salesReturnManagement/billOfLading/verifyModal.vue

@@ -50,21 +50,21 @@ export default {
       spinning: false,
       isShow: this.openModal,
       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 != '0' ? '请在钉钉中查看附件内容' : '--' } },
-        { 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 != '0' ? '请在钉钉中查看附件内容' : '--' } },
+        { title: '操作时间', dataIndex: 'approvalTime', width: '20%', align: 'center', customRender: function (text) { return text || '--' } }],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {
         this.spinning = true
         delete parameter.tableId
         delete parameter.index
-        return getProcessInstance({ businessType: 'PICK_UP', businessSn: this.itemSn, processInstanceId: this.itemId }).then(res => {
+        return getProcessInstance({ businessType: 'PICK_UP', businessSn: this.itemSn }).then(res => {
           let data
           if (res.status == 200) {
-            data = res.data
+            data = res.data ? res.data[0] ? res.data[0].opinionList ? res.data[0].opinionList : [] : [] : []
             const no = 0
             for (var i = 0; i < data.length; i++) {
               data[i].no = no + i + 1