From 47bdc03a5a78afb150eea5b050ffa7797ff5b624 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Fri, 21 Jun 2024 12:02:15 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E9=80=80=E8=B4=A7=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1--=E6=89=BF=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/purchasereturnJobMain/index.ts | 8 ++++++++ .../purchasereturn/purchasereturnJobMain/index.vue | 8 ++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/api/wms/purchasereturnJobMain/index.ts b/src/api/wms/purchasereturnJobMain/index.ts index 6b43ab046..d452888a3 100644 --- a/src/api/wms/purchasereturnJobMain/index.ts +++ b/src/api/wms/purchasereturnJobMain/index.ts @@ -98,3 +98,11 @@ export const importTemplate = () => { export const closePurchasereturnJobMain = (id: number) => { return request.put({ url: '/wms/purchasereturn-job-main/close?id=' + id }) } +// 承接采购退货任务主 +export const acceptPurchasereturnJobMain = (id: number) => { + return request.put({ url: '/wms/purchasereturn-job-main/accept?id=' + id }) +} +// 取消承接采购退货任务主 +export const abandonPurchasereturnJobMain = (id: number) => { + return request.put({ url: '/wms/purchasereturn-job-main/abandon?id=' + id }) +} diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue index 2ffe84607..d2bd5a7e6 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue @@ -186,9 +186,9 @@ const butttondata = (row,$index) => { return [] } return [ - // defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 + defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-job-main:close'}), // 关闭 - // defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 + defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 // defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 ] } @@ -199,10 +199,14 @@ const buttonTableClick = async (val, row) => { console.log('列表-操作按钮事件-执行') } else if (val == 'mainJobAba') { // 放弃 console.log('列表-操作按钮事件-放弃') + await PurchasereturnJobMainApi.abandonPurchasereturnJobMain(row.masterId) + getList() } else if (val == 'mainJobClo') { // 关闭 handleClose(row.masterId) } else if (val == 'mainJobAcc') { // 承接 console.log('列表-操作按钮事件-承接') + await PurchasereturnJobMainApi.acceptPurchasereturnJobMain(row.masterId) + getList() } }