Sfoglia il codice sorgente

feat(验收单):申请融资

sufan 7 mesi fa
parent
commit
34bab2a50b

+ 3 - 2
src/api/myTrade/acceptanceManagement/index.js

@@ -194,8 +194,9 @@ export function getHisDetails(params) {
 // 验收单-申请审核
 export function applyApproval(params) {
   return request({
-    url: '/acceptance/applyApproval/' + params,
-    method: 'get'
+    url: '/acceptance/applyApproval',
+    method: 'get',
+    params
   })
 }
 

+ 4 - 3
src/views/myTrade/acceptanceManagement/index.vue

@@ -68,7 +68,7 @@ export default {
         status: '',
         fastSearch: ''
       },
-      applyId: ''
+      applyRow: {}
     }
   },
   computed: {
@@ -201,13 +201,14 @@ export default {
 
     // 申请
     apply(row) {
-      this.applyId = row.id
+      this.applyRow = row
       this.$refs.receiveDialog.show = true
     },
 
     // 确认申请
     applySure() {
-      applyApproval(this.applyId).then(res => {
+      const { id, taskId } = this.applyId
+      applyApproval({ id, taskId }).then(res => {
         if (res.success) {
           this.$message.success('申请成功')
           this.$refs.receiveDialog.show = false