Browse Source

采购退货任务--承接

master_hella_20240701
wangyufei 5 months ago
parent
commit
47bdc03a5a
  1. 8
      src/api/wms/purchasereturnJobMain/index.ts
  2. 8
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue

8
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 })
}

8
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()
}
}

Loading…
Cancel
Save