Browse Source

HL-4935WMS WEB端预生产和装配报工记录中增加撤销报工操作选项,实现快速制品回收

hella_online_20240823
wangyufei 3 months ago
parent
commit
f99f659e40
  1. 4
      src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue
  2. 4
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue

4
src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue

@ -200,7 +200,7 @@ const butttondata = (row,$index) => {
// defaultButtons.mainInspectRequestBtn({hasPermi:'wms:productreceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),//
defaultButtons.mainInspectRequestBtn({hide:row.inspectRequestFlag == "FALSE" }),//
defaultButtons.mainListPointBtn(null), //
// defaultButtons.mainListRecoveryBtn(null), //
defaultButtons.mainListRecoveryBtn({hide:row.recoveryRequestFlag == "TRUE" }), // //recoveryRequestFlag==TRUE
]
}
@ -261,6 +261,8 @@ const labelRecovery = async (row) => {
let resType = await ProductreceiptRecordMainApi.handleRecoveryProductreceiptRecord(params);
message.success(t('ts.撤销报工成功'))
buttonBaseClick('refresh',null)
} catch {
} finally {
tableObject.loading = false

4
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue

@ -237,7 +237,7 @@ const butttondata = (row,$index) => {
defaultButtons.mainInspectRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),//
defaultButtons.mainPutawayRequestCpBtn({hasPermi:'wms:purchasereceipt-record-main:createPutawayRequest',hide:row.putawayRequestFlag == "FALSE" }),//
defaultButtons.mainListPointBtn(null), //
// defaultButtons.mainListRecoveryBtn(null), //
defaultButtons.mainListRecoveryBtn({hide:row.recoveryRequestFlag == "TRUE" }), // //recoveryRequestFlag==TRUE
]
}
@ -281,6 +281,7 @@ const handleCreatePutawayRequest = async (number:string) => {
const labelRecovery = async (row) => {
try {
await message.confirm(t('ts.确认撤销报工吗?'))
tableObject.loading = true
const params = ref({
number: '',
inventoryStatus: '',
@ -289,6 +290,7 @@ const labelRecovery = async (row) => {
params.inventoryStatus= row.inventoryStatus;
let resType = await ProductreceiptRecordMainApi.handleRecoveryProductreceiptRecord(params)
message.success(t('ts.撤销报工成功'))
buttonBaseClick('refresh',null)
} catch {
} finally {
tableObject.loading = false

Loading…
Cancel
Save