diff --git a/src/api/wms/issueJobMain/index.ts b/src/api/wms/issueJobMain/index.ts index 0cd21a3f7..0ae3e11c7 100644 --- a/src/api/wms/issueJobMain/index.ts +++ b/src/api/wms/issueJobMain/index.ts @@ -89,12 +89,12 @@ export const importTemplate = () => { // 承接发料任务 export const acceptIssueMain = async (id) => { - return await request.get({ url: `/wms/issue-job-main/accept?id=` + id }) + return await request.put({ url: `/wms/issue-job-main/accept?id=` + id }) } // 放弃发料任务 export const abandonIssueMain = async (id) => { - return await request.get({ url: `/wms/issue-job-main/abandon?id=` + id }) + return await request.put({ url: `/wms/issue-job-main/abandon?id=` + id }) } // 关闭发料任务 diff --git a/src/api/wms/productionreceiptJobMain/index.ts b/src/api/wms/productionreceiptJobMain/index.ts index 4096d39b7..34c3e07bf 100644 --- a/src/api/wms/productionreceiptJobMain/index.ts +++ b/src/api/wms/productionreceiptJobMain/index.ts @@ -89,17 +89,17 @@ export const importTemplate = () => { // 承接发料任务 export const acceptIssueMain = async (id) => { - return await request.get({ url: `/wms/productionreceipt-job-main/accept?id=` + id }) + return await request.put({ url: `/wms/productionreceipt-job-main/accept?id=` + id }) } // 放弃发料任务 export const abandonIssueMain = async (id) => { - return await request.get({ url: `/wms/productionreceipt-job-main/abandon?id=` + id }) + return await request.put({ url: `/wms/productionreceipt-job-main/abandon?id=` + id }) } // 关闭发料任务 export const closeIssueMain = async (id) => { - return await request.get({ url: `/wms/productionreceipt-job-main/close?id=` + id }) + return await request.put({ url: `/wms/productionreceipt-job-main/close?id=` + id }) } // 执行发料任务 diff --git a/src/api/wms/productredressJobMain/index.ts b/src/api/wms/productredressJobMain/index.ts index 40311c5c8..bbbddcbd9 100644 --- a/src/api/wms/productredressJobMain/index.ts +++ b/src/api/wms/productredressJobMain/index.ts @@ -75,6 +75,18 @@ export const updateProductredressJobMain = async (data: ProductredressJobMainVO) export const deleteProductredressJobMain = async (id: number) => { return await request.delete({ url: `/wms/productredress-job-main/delete?id=` + id }) } +// 承接制品回收任务主 +export const acceptProductredressJobMain = async (id: number) => { + return await request.put({ url: `/wms/productredress-job-main/accept?id=` + id }) +} +// 关闭制品回收任务主 +export const closeProductredressJobMain = async (id: number) => { + return await request.put({ url: `/wms/productredress-job-main/close?id=` + id }) +} +// 取消承接制品回收任务主 +export const abandonProductredressJobMain = async (id: number) => { + return await request.put({ url: `/wms/productredress-job-main/abandon?id=` + id }) +} // 导出制品回收任务主 Excel export const exportProductredressJobMain = async (params) => { diff --git a/src/api/wms/putawayJobMain/index.ts b/src/api/wms/putawayJobMain/index.ts index 88959b43f..b6fb266d8 100644 --- a/src/api/wms/putawayJobMain/index.ts +++ b/src/api/wms/putawayJobMain/index.ts @@ -91,3 +91,13 @@ export const importTemplate = () => { export const closePutawayJobMain = (id: number) => { return request.put({ url: '/wms/putaway-job-main/close?id=' + id }) } + +// 承接上架任务主 +export const acceptPutawayJobMain = (id: number) => { + return request.put({ url: '/wms/putaway-job-main/accept?id=' + id }) +} + +// 取消承接上架任务主 +export const abandonPutawayJobMain = (id: number) => { + return request.put({ url: '/wms/putaway-job-main/abandon?id=' + id }) +} diff --git a/src/api/wms/transferissueJobMain/index.ts b/src/api/wms/transferissueJobMain/index.ts index b24c424ab..56464584d 100644 --- a/src/api/wms/transferissueJobMain/index.ts +++ b/src/api/wms/transferissueJobMain/index.ts @@ -93,15 +93,15 @@ export const importTemplate = () => { // 关闭-调拨出库任务主 export const closeTransferissueJobMain = (id: number) => { - return request.download({ url: '/wms/transferissue-job-main/close?id=' + id }) + return request.put({ url: '/wms/transferissue-job-main/close?id=' + id }) } // 承接-调拨出库任务主 export const acceptTransferissueJobMain = (id: number) => { - return request.download({ url: '/wms/transferissue-job-main/accept?id=' + id }) + return request.put({ url: '/wms/transferissue-job-main/accept?id=' + id }) } // 放弃-调拨出库任务主 export const abandonTransferissueJobMain = (id: number) => { - return request.download({ url: '/wms/transferissue-job-main/abandon?id=' + id }) + return request.put({ url: '/wms/transferissue-job-main/abandon?id=' + id }) } diff --git a/src/api/wms/transferreceiptJobMain/index.ts b/src/api/wms/transferreceiptJobMain/index.ts index ab8fe4e41..a86aa1f99 100644 --- a/src/api/wms/transferreceiptJobMain/index.ts +++ b/src/api/wms/transferreceiptJobMain/index.ts @@ -73,6 +73,18 @@ export const updateTransferreceiptJobMain = async (data: TransferreceiptJobMainV export const deleteTransferreceiptJobMain = async (id: number) => { return await request.delete({ url: `/wms/transferreceipt-job-main/delete?id=` + id }) } +// 承接调拨入库任务主 +export const acceptTransferreceiptJobMain = async (id: number) => { + return await request.put({ url: `/wms/transferreceipt-job-main/accept?id=` + id }) +} +// 取消承接调拨入库任务主 +export const abandonTransferreceiptJobMain = async (id: number) => { + return await request.put({ url: `/wms/transferreceipt-job-main/abandon?id=` + id }) +} +// 关闭调拨入库任务主 +export const closeTransferreceiptJobMain = async (id: number) => { + return await request.put({ url: `/wms/transferreceipt-job-main/close?id=` + id }) +} // 导出调拨入库任务主 Excel export const exportTransferreceiptJobMain = async (params) => { diff --git a/src/api/wms/unplannedissueJobMain/index.ts b/src/api/wms/unplannedissueJobMain/index.ts index 5a230b649..f02206f8e 100644 --- a/src/api/wms/unplannedissueJobMain/index.ts +++ b/src/api/wms/unplannedissueJobMain/index.ts @@ -67,6 +67,18 @@ export const updateUnplannedissueJobMain = async (data: UnplannedissueJobMainVO) export const deleteUnplannedissueJobMain = async (id: number) => { return await request.delete({ url: `/wms/unplannedissue-job-main/delete?id=` + id }) } +// 承接计划外出库任务主 +export const acceptUnplannedissueJobMain = async (id: number) => { + return await request.delete({ url: `/wms/unplannedissue-job-main/accept?id=` + id }) +} +// 取消承接计划外出库任务主 +export const abandonUnplannedissueJobMain = async (id: number) => { + return await request.delete({ url: `/wms/unplannedissue-job-main/abandon?id=` + id }) +} +// 关闭计划外出库任务主 +export const closeUnplannedissueJobMain = async (id: number) => { + return await request.delete({ url: `/wms/unplannedissue-job-main/close?id=` + id }) +} // 导出计划外出库任务主 Excel export const exportUnplannedissueJobMain = async (params) => { diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue b/src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue index 27bca0a16..a8dc7be9c 100644 --- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue +++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue @@ -185,9 +185,9 @@ const butttondata = (row,$index) => { return [] } return [ - // defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 - // defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭 - // defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 + defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 + defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭 + defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 // defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 ] } @@ -304,14 +304,16 @@ const buttonTableClick = async (val, row) => { } handleHandle(aaa) } else if (val == 'mainJobAba') { // 放弃 - await message.confirm('确认要放弃吗?') - console.log('列表-操作按钮事件-放弃') - CustomerreturnJobMainApi.abandonCustomerreturnJobMain(row.masterId).then(() => { - message.success(t('common.updateSuccess')) - getList() - }).catch(err => { - console.log(err) - }) + await CustomerreturnJobMainApi.abandonCustomerreturnJobMain(row.masterId) + getList() + // await message.confirm('确认要放弃吗?') + // console.log('列表-操作按钮事件-放弃') + // CustomerreturnJobMainApi.abandonCustomerreturnJobMain(row.masterId).then(() => { + // message.success(t('common.updateSuccess')) + // getList() + // }).catch(err => { + // console.log(err) + // }) } else if (val == 'mainJobClo') { // 关闭 await message.confirm('确认要关闭吗?') console.log('列表-操作按钮事件-关闭') @@ -322,14 +324,16 @@ const buttonTableClick = async (val, row) => { console.log(err) }) } else if (val == 'mainJobAcc') { // 承接 - await message.confirm('确认要承接吗?') - console.log('列表-操作按钮事件-承接') - CustomerreturnJobMainApi.acceptCustomerreturnJobMain(row.masterId).then(() => { - message.success(t('common.updateSuccess')) - getList() - }).catch(err => { - console.log(err) - }) + await CustomerreturnJobMainApi.acceptCustomerreturnJobMain(row.masterId) + getList() + // await message.confirm('确认要承接吗?') + // console.log('列表-操作按钮事件-承接') + // CustomerreturnJobMainApi.acceptCustomerreturnJobMain(row.masterId).then(() => { + // message.success(t('common.updateSuccess')) + // getList() + // }).catch(err => { + // console.log(err) + // }) } } // 获取部门 用于详情 部门回显 diff --git a/src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts b/src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts index b9fbf6ca5..4250a70f8 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts @@ -624,7 +624,7 @@ export const DeliverJobMain = useCrudSchemas(reactive([ isDetail: false, isForm: false, table: { - width: 120, + width: 150, fixed: 'right' }, } diff --git a/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue b/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue index d684f7788..925840fa2 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue @@ -206,9 +206,9 @@ const butttondata = (row,$index) => { return [] } return [ - // defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 - // defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭 - // defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 + defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 + defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭 + defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 // defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 ] } @@ -312,11 +312,14 @@ const buttonTableClick = async (val, row) => { handleHandle(aaa) console.log('列表-操作按钮事件-执行') } else if (val == 'mainJobAba') { // 放弃 - DeliverJobMainApi.abandonDeliverJobMain(row.masterId) + await DeliverJobMainApi.abandonDeliverJobMain(row.masterId) + getList() } else if (val == 'mainJobClo') { // 关闭 - DeliverJobMainApi.closeDeliverJobMain(row.masterId) + await DeliverJobMainApi.closeDeliverJobMain(row.masterId) + getList() } else if (val == 'mainJobAcc') { // 承接 - DeliverJobMainApi.acceptDeliverJobMain(row.masterId) + await DeliverJobMainApi.acceptDeliverJobMain(row.masterId) + getList() } } // 获取部门 用于详情 部门回显 diff --git a/src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue b/src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue index c567a0cc0..4b4687f4a 100644 --- a/src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue +++ b/src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue @@ -186,9 +186,9 @@ const butttondata = (row,$index) => { return [] } return [ - // defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 - // defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭 - // defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 + defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 + defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭 + defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 // defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 ] } @@ -198,11 +198,14 @@ const buttonTableClick = async (val, row) => {  if (val == 'mainJobExe') { // 执行 handleHandle } else if (val == 'mainJobAba') { // 放弃 - StockupJobMainApi.abandonStockupMainJob(row.masterId) + await StockupJobMainApi.abandonStockupMainJob(row.masterId) + getList() } else if (val == 'mainJobClo') { // 关闭 - StockupJobMainApi.closeStockupMainJob(row.masterId) + await StockupJobMainApi.closeStockupMainJob(row.masterId) + getList() } else if (val == 'mainJobAcc') { // 承接 - StockupJobMainApi.acceptStockupMainJob(row.masterId) + await StockupJobMainApi.acceptStockupMainJob(row.masterId) + getList() } } // 获取部门 用于详情 部门回显 diff --git a/src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionJobMain/index.vue b/src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionJobMain/index.vue index f71761eaf..714ac4696 100644 --- a/src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionJobMain/index.vue +++ b/src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionJobMain/index.vue @@ -198,10 +198,16 @@ const buttonTableClick = async (val, row) => { console.log('列表-操作按钮事件-执行') } else if (val == 'mainJobAba') { // 放弃 console.log('列表-操作按钮事件-放弃') + await UnplannedissueJobMainApi.abandonUnplannedissueJobMain(row.masterId) + getList() } else if (val == 'mainJobClo') { // 关闭 console.log('列表-操作按钮事件-关闭') + await UnplannedissueJobMainApi.closeUnplannedissueJobMain(row.masterId) + getList() } else if (val == 'mainJobAcc') { // 承接 console.log('列表-操作按钮事件-承接') + await UnplannedissueJobMainApi.acceptUnplannedissueJobMain(row.masterId) + getList() } } // 获取部门 用于详情 部门回显 diff --git a/src/views/wms/inventoryjobManage/transferissue/transferissueJobMain/index.vue b/src/views/wms/inventoryjobManage/transferissue/transferissueJobMain/index.vue index 1b63100c5..9697f55f1 100644 --- a/src/views/wms/inventoryjobManage/transferissue/transferissueJobMain/index.vue +++ b/src/views/wms/inventoryjobManage/transferissue/transferissueJobMain/index.vue @@ -188,9 +188,9 @@ const butttondata = (row,$index) => { return [] } return [ - // defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 - // defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:transferissue-job-main:close'}), // 关闭 - // defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 + defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 + defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:transferissue-job-main:close'}), // 关闭 + defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 // defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 ] } @@ -201,13 +201,17 @@ const buttonTableClick = async (val, row) => { console.log('列表-操作按钮事件-执行') } else if (val == 'mainJobAba') { // 放弃 console.log('列表-操作按钮事件-放弃') - handleAbandon(row.masterId) + // handleAbandon(row.masterId) + await TransferissueJobMainApi.abandonTransferissueJobMain(row.masterId) + getList() } else if (val == 'mainJobClo') { // 关闭 console.log('列表-操作按钮事件-关闭') handleClose(row.masterId) } else if (val == 'mainJobAcc') { // 承接 console.log('列表-操作按钮事件-承接') - handleAccept(row.masterId) + // handleAccept(row.masterId) + await TransferissueJobMainApi.acceptTransferissueJobMain(row.masterId) + getList() } } diff --git a/src/views/wms/inventoryjobManage/transferreceipt/transferreceiptJobMain/index.vue b/src/views/wms/inventoryjobManage/transferreceipt/transferreceiptJobMain/index.vue index 4d759307d..95e5f8989 100644 --- a/src/views/wms/inventoryjobManage/transferreceipt/transferreceiptJobMain/index.vue +++ b/src/views/wms/inventoryjobManage/transferreceipt/transferreceiptJobMain/index.vue @@ -185,9 +185,9 @@ const butttondata = (row,$index) => { return [] } return [ - // defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 - // defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭 - // defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 + defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 + defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭 + defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 // defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 ] } @@ -198,10 +198,16 @@ const buttonTableClick = async (val, row) => { console.log('列表-操作按钮事件-执行') } else if (val == 'mainJobAba') { // 放弃 console.log('列表-操作按钮事件-放弃') + await TransferreceiptJobMainApi.abandonTransferreceiptJobMain(row.masterId) + getList() } else if (val == 'mainJobClo') { // 关闭 console.log('列表-操作按钮事件-关闭') + await TransferreceiptJobMainApi.closeTransferreceiptJobMain(row.masterId) + getList() } else if (val == 'mainJobAcc') { // 承接 console.log('列表-操作按钮事件-承接') + await TransferreceiptJobMainApi.acceptTransferreceiptJobMain(row.masterId) + getList() } } // 获取部门 用于详情 部门回显 diff --git a/src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue b/src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue index b14c8534e..3b178cb82 100644 --- a/src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue +++ b/src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue @@ -271,11 +271,14 @@ const buttonTableClick = async (val, row) => { } ProductionreceiptJobMainApi.executeIssueMain(aaa) } else if (val == 'mainJobAba') { // 放弃 - ProductionreceiptJobMainApi.abandonIssueMain(row.masterId) + await ProductionreceiptJobMainApi.abandonIssueMain(row.masterId) + getList() } else if (val == 'mainJobClo') { // 关闭 - ProductionreceiptJobMainApi.closeIssueMain(row.masterId) + await ProductionreceiptJobMainApi.closeIssueMain(row.masterId) + getList() } else if (val == 'mainJobAcc') { // 承接 - ProductionreceiptJobMainApi.acceptIssueMain(row.masterId) + await ProductionreceiptJobMainApi.acceptIssueMain(row.masterId) + getList() } } // 获取部门 用于详情 部门回显 diff --git a/src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/productionreceiptJobMain.data.ts b/src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/productionreceiptJobMain.data.ts index c2f3e38f5..1a13bd3ec 100644 --- a/src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/productionreceiptJobMain.data.ts +++ b/src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/productionreceiptJobMain.data.ts @@ -551,16 +551,16 @@ export const ProductionreceiptJobMain = useCrudSchemas(reactive([ } } }, - // { - // label: '操作', - // field: 'action', - // isDetail: false, - // isForm: false, - // table: { - // width: 120, - // fixed: 'right' - // }, - // } + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false, + table: { + width: 150, + fixed: 'right' + }, + } ])) //表单校验 diff --git a/src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue b/src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue index d8c3b9889..fc7c9400a 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue +++ b/src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue @@ -165,7 +165,7 @@ const butttondata = (row,$index) => { defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭 defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 - defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 + // defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 ] } @@ -243,11 +243,14 @@ const buttonTableClick = async (val, row) => { } ProductionreturnJobMainApi.executeProductionreturnMain(aaa) } else if (val == 'mainJobAba') { // 放弃 - ProductionreturnJobMainApi.abandonProductionreturnMain(row.masterId) + await ProductionreturnJobMainApi.abandonProductionreturnMain(row.masterId) + getList() } else if (val == 'mainJobClo') { // 关闭 - ProductionreturnJobMainApi.closeProductionreturnMain(row.masterId) + await ProductionreturnJobMainApi.closeProductionreturnMain(row.masterId) + getList() } else if (val == 'mainJobAcc') { // 承接 - ProductionreturnJobMainApi.acceptProductionreturnMain(row.masterId) + await ProductionreturnJobMainApi.acceptProductionreturnMain(row.masterId) + getList() } } // 获取部门 用于详情 部门回显 diff --git a/src/views/wms/issueManage/productionreturn/productionreturnJobMain/productionreturnJobMain.data.ts b/src/views/wms/issueManage/productionreturn/productionreturnJobMain/productionreturnJobMain.data.ts index 519b6ff30..63eb8641c 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnJobMain/productionreturnJobMain.data.ts +++ b/src/views/wms/issueManage/productionreturn/productionreturnJobMain/productionreturnJobMain.data.ts @@ -535,16 +535,16 @@ export const ProductionreturnJobMain = useCrudSchemas(reactive([ } } }, - // { - // label: '操作', - // field: 'action', - // isDetail: false, - // isForm: false, - // table: { - // width: 120, - // fixed: 'right' - // }, - // } + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false, + table: { + width: 150, + fixed: 'right' + }, + } ])) //表单校验 diff --git a/src/views/wms/issueManage/repleinsh/repleinshJobMain/index.vue b/src/views/wms/issueManage/repleinsh/repleinshJobMain/index.vue index 4ed66d5b7..e9c5c7b07 100644 --- a/src/views/wms/issueManage/repleinsh/repleinshJobMain/index.vue +++ b/src/views/wms/issueManage/repleinsh/repleinshJobMain/index.vue @@ -171,9 +171,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'])}), // 关闭 - // defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 + defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 // defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 ] } @@ -302,12 +302,14 @@ const buttonTableClick = async (val, row) => { } RepleinshJobMainApi.executeRepleinshMain(aaa) } else if (val == 'mainJobAba') { // 放弃 - RepleinshJobMainApi.abandonRepleinshMain(row.masterId) + await RepleinshJobMainApi.abandonRepleinshMain(row.masterId) + getList() } else if (val == 'mainJobClo') { // 关闭 await RepleinshJobMainApi.closeRepleinshMain(row.masterId) getList() } else if (val == 'mainJobAcc') { // 承接 - RepleinshJobMainApi.acceptRepleinshMain(row.masterId) + await RepleinshJobMainApi.acceptRepleinshMain(row.masterId) + getList() } } diff --git a/src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue b/src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue index 85a40e7db..9ca0bd98f 100644 --- a/src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue +++ b/src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue @@ -159,7 +159,7 @@ const butttondata = (row,$index) => { defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭 defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 - defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 + // defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 ] } @@ -236,11 +236,14 @@ const buttonTableClick = async (val, row) => { } ProductputawayJobMainApi.executeProductputawayMain(aaa) } else if (val == 'mainJobAba') { // 放弃 - ProductputawayJobMainApi.abandonProductputawayMain(row.masterId) + await ProductputawayJobMainApi.abandonProductputawayMain(row.masterId) + getList() } else if (val == 'mainJobClo') { // 关闭 - ProductputawayJobMainApi.closeProductputawayMain(row.masterId) + await ProductputawayJobMainApi.closeProductputawayMain(row.masterId) + getList() } else if (val == 'mainJobAcc') { // 承接 - ProductputawayJobMainApi.acceptProductputawayMain(row.masterId) + await ProductputawayJobMainApi.acceptProductputawayMain(row.masterId) + getList() } } // 获取部门 用于详情 部门回显 diff --git a/src/views/wms/productionManage/productputaway/productputawayJobMain/productputawayJobMain.data.ts b/src/views/wms/productionManage/productputaway/productputawayJobMain/productputawayJobMain.data.ts index a3ce47a92..62b863095 100644 --- a/src/views/wms/productionManage/productputaway/productputawayJobMain/productputawayJobMain.data.ts +++ b/src/views/wms/productionManage/productputaway/productputawayJobMain/productputawayJobMain.data.ts @@ -537,16 +537,16 @@ export const ProductputawayJobMain = useCrudSchemas(reactive([ } } }, - // { - // label: '操作', - // field: 'action', - // isDetail: false, - // isForm: false, - // table: { - // width: 120, - // fixed: 'right' - // }, - // } + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false, + table: { + width: 150, + fixed: 'right' + }, + } ])) //表单校验 diff --git a/src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/index.vue b/src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/index.vue index cf54ae171..109f6000b 100644 --- a/src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/index.vue +++ b/src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/index.vue @@ -73,7 +73,7 @@ import * as ProductputawayJobMainApi from '@/api/wms/productputawayJobMain' import * as ProductputawayJobDetailApi from '@/api/wms/productputawayJobDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' import { CACHE_KEY, useCache } from '@/hooks/web/useCache' -// 制品上架任务主 +// 装配制品上架任务主 defineOptions({ name: 'ProductputawayJobMain' }) const message = useMessage() // 消息弹窗 @@ -236,11 +236,14 @@ const buttonTableClick = async (val, row) => { } ProductputawayJobMainApi.executeProductputawayMain(aaa) } else if (val == 'mainJobAba') { // 放弃 - ProductputawayJobMainApi.abandonProductputawayMain(row.masterId) + await ProductputawayJobMainApi.abandonProductputawayMain(row.masterId) + getList() } else if (val == 'mainJobClo') { // 关闭 - ProductputawayJobMainApi.closeProductputawayMain(row.masterId) + await ProductputawayJobMainApi.closeProductputawayMain(row.masterId) + getList() } else if (val == 'mainJobAcc') { // 承接 - ProductputawayJobMainApi.acceptProductputawayMain(row.masterId) + await ProductputawayJobMainApi.acceptProductputawayMain(row.masterId) + getList() } } // 获取部门 用于详情 部门回显 diff --git a/src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/productputawayAssembleJobMain.data.ts b/src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/productputawayAssembleJobMain.data.ts index 3cc62e8f5..6513811fa 100644 --- a/src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/productputawayAssembleJobMain.data.ts +++ b/src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/productputawayAssembleJobMain.data.ts @@ -539,16 +539,16 @@ export const ProductputawayJobMain = useCrudSchemas(reactive([ } } }, - // { - // label: '操作', - // field: 'action', - // isDetail: false, - // isForm: false, - // table: { - // width: 120, - // fixed: 'right' - // }, - // } + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false, + table: { + width: 150, + fixed: 'right' + }, + } ])) //表单校验 diff --git a/src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue b/src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue index 057858d69..209c2b91b 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue +++ b/src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue @@ -225,9 +225,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'])}), // 关闭 - // defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 + defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 // defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 ] } @@ -321,12 +321,14 @@ const buttonTableClick = async (val, row) => { } ProductreceiptJobMainApi.executeProductreceiptMain(aaa) } else if (val == 'mainJobAba') { // 放弃 - ProductreceiptJobMainApi.abandonProductreceiptMain(row.masterId) + await ProductreceiptJobMainApi.abandonProductreceiptMain(row.masterId) + getList() } else if (val == 'mainJobClo') { // 关闭 await ProductreceiptJobMainApi.closeProductreceiptMain(row.masterId) getList() } else if (val == 'mainJobAcc') { // 承接 - ProductreceiptJobMainApi.acceptProductreceiptMain(row.masterId) + await ProductreceiptJobMainApi.acceptProductreceiptMain(row.masterId) + getList() } } // 获取部门 用于详情 部门回显 diff --git a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/index.vue b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/index.vue index e72644dfd..195d84712 100644 --- a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/index.vue +++ b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/index.vue @@ -168,7 +168,7 @@ const butttondata = (row,$index) => { defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭 defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 - defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 + // defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 ] } @@ -261,11 +261,14 @@ const buttonTableClick = async (val, row) => { } ProductreceiptJobMainApi.executeProductreceiptMain(aaa) } else if (val == 'mainJobAba') { // 放弃 - ProductreceiptJobMainApi.abandonProductreceiptMain(row.masterId) + await ProductreceiptJobMainApi.abandonProductreceiptMain(row.masterId) + getList() } else if (val == 'mainJobClo') { // 关闭 - ProductreceiptJobMainApi.closeProductreceiptMain(row.masterId) + await ProductreceiptJobMainApi.closeProductreceiptMain(row.masterId) + getList() } else if (val == 'mainJobAcc') { // 承接 - ProductreceiptJobMainApi.acceptProductreceiptMain(row.masterId) + await ProductreceiptJobMainApi.acceptProductreceiptMain(row.masterId) + getList() } } // 获取部门 用于详情 部门回显 diff --git a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/productreceiptAssembleJobMain.data.ts b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/productreceiptAssembleJobMain.data.ts index 9d561de4e..b5ffc30ab 100644 --- a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/productreceiptAssembleJobMain.data.ts +++ b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/productreceiptAssembleJobMain.data.ts @@ -555,9 +555,9 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive([ field: 'action', isDetail: false, isForm: false, - isTable:false, + isTable:true, table: { - width: 120, + width: 150, fixed: 'right' }, } diff --git a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue index 25e7aba92..345042c99 100644 --- a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue +++ b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue @@ -67,6 +67,7 @@