Browse Source

WMS电脑端筛选条件保持不住

linshi20240813
wangyufei 3 months ago
parent
commit
ea8ac3af52
  1. 16
      src/views/wms/basicDataManage/customerManage/customerDeliveryForecast/index.vue
  2. 16
      src/views/wms/basicDataManage/itemManage/relegate/relegateRecord/index.vue
  3. 28
      src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue
  4. 8
      src/views/wms/countManage/count/countJobMain/index.vue
  5. 22
      src/views/wms/countManage/count/countPlanMain/index.vue
  6. 2
      src/views/wms/countManage/count/countRecordMain/index.vue
  7. 28
      src/views/wms/countManage/count/countRequestMain/index.vue
  8. 20
      src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue
  9. 20
      src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue
  10. 12
      src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue
  11. 20
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
  12. 8
      src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue
  13. 20
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue
  14. 22
      src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue
  15. 8
      src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue
  16. 16
      src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue
  17. 22
      src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue
  18. 8
      src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue
  19. 20
      src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue
  20. 2
      src/views/wms/inventoryManage/balance/index.vue
  21. 8
      src/views/wms/inventoryManage/containerinit/containerBindRecord/index.vue
  22. 8
      src/views/wms/inventoryManage/containerinit/containerRepair/index.vue
  23. 8
      src/views/wms/inventoryManage/containerinit/containerUnbindRecord/index.vue
  24. 12
      src/views/wms/inventoryManage/containerinit/containerinitadd/index.vue
  25. 8
      src/views/wms/inventoryManage/containerinit/containerinitrecord/index.vue
  26. 4
      src/views/wms/inventoryManage/expectin/index.vue
  27. 4
      src/views/wms/inventoryManage/expectout/index.vue
  28. 2
      src/views/wms/inventoryManage/locationcapacity/index.vue
  29. 2
      src/views/wms/inventoryManage/transaction/index.vue
  30. 2
      src/views/wms/inventoryManage/transferlog/index.vue
  31. 28
      src/views/wms/inventoryjobManage/containermanage/containerMainRequest/index.vue
  32. 10
      src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue
  33. 28
      src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue
  34. 28
      src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue
  35. 20
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue
  36. 22
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverJobMain/index.vue
  37. 20
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/index.vue
  38. 8
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRetrospect/index.vue
  39. 6
      src/views/wms/inventoryjobManage/scrap/scrapJobMain/index.vue
  40. 20
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue
  41. 6
      src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionJobMain/index.vue
  42. 6
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/index.vue
  43. 20
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue
  44. 6
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptJobMain/index.vue
  45. 20
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue
  46. 8
      src/views/wms/issueManage/issue/issueJobMain/index.vue
  47. 20
      src/views/wms/issueManage/issue/issueRequestMain/index.vue
  48. 6
      src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue
  49. 6
      src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue
  50. 20
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
  51. 20
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue
  52. 20
      src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue
  53. 6
      src/views/wms/issueManage/repleinsh/repleinshJobMain/index.vue
  54. 20
      src/views/wms/issueManage/repleinsh/repleinshRequestMain/index.vue
  55. 20
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue
  56. 6
      src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue
  57. 20
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue
  58. 28
      src/views/wms/productionManage/productionplan/productionMain/index.vue
  59. 28
      src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue
  60. 28
      src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue
  61. 29
      src/views/wms/productionManage/productionplan/productionMainPredictSparePart/index.vue
  62. 14
      src/views/wms/productionManage/productionplan/qadproductionplan/index.vue
  63. 6
      src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue
  64. 20
      src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue
  65. 6
      src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/index.vue
  66. 20
      src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRequestMain/index.vue
  67. 6
      src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue
  68. 2
      src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue
  69. 20
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue
  70. 6
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/index.vue
  71. 4
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue
  72. 20
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue
  73. 6
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue
  74. 20
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue
  75. 16
      src/views/wms/productionManage/productredress/productredressJobMain/index.vue
  76. 8
      src/views/wms/productionManage/productredress/productredressRecordMain/index.vue
  77. 28
      src/views/wms/productionManage/productredress/productredressRequestMain/index.vue
  78. 20
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

16
src/views/wms/basicDataManage/customerManage/customerDeliveryForecast/index.vue

@ -124,7 +124,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -180,7 +186,11 @@ const formsSuccess = async (formType,data) => {
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -198,7 +208,7 @@ const handleDelete = async (id: number) => {
await CustomerDeliveryForecastApi.deleteCustomerDeliveryForecast(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

16
src/views/wms/basicDataManage/itemManage/relegate/relegateRecord/index.vue

@ -147,7 +147,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -193,7 +199,11 @@ const submitForm = async (formType,data) => {
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -211,7 +221,7 @@ const handleDelete = async (id: number) => {
await RelegateRecordMainApi.deleteRelegateRecordMain(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

28
src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue

@ -364,7 +364,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -417,7 +423,7 @@ const buttonTableClick = async (val, row) => {
RelegateRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -428,7 +434,7 @@ const buttonTableClick = async (val, row) => {
RelegateRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -439,7 +445,7 @@ const buttonTableClick = async (val, row) => {
RelegateRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -450,7 +456,7 @@ const buttonTableClick = async (val, row) => {
RelegateRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -461,7 +467,7 @@ const buttonTableClick = async (val, row) => {
RelegateRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -485,7 +491,7 @@ const buttonTableClick = async (val, row) => {
RelegateRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -630,7 +636,11 @@ const submitForm = async (formType, data) => {
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
basicFormRef.value.formLoading = false
}
@ -674,7 +684,7 @@ const handleDelete = async (id: number) => {
await RelegateRequestMainApi.deleteRelegateRequestMain(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch { }
}

8
src/views/wms/countManage/count/countJobMain/index.vue

@ -239,7 +239,7 @@ const buttonTableClick = async (val, row) => {
tableObject.loading = true
try {
await CountJobMainApi.abandonCountJobMain(row.id)
await getList()
buttonBaseClick('refresh',null)
} finally {
tableObject.loading = false
}
@ -249,7 +249,7 @@ const buttonTableClick = async (val, row) => {
tableObject.loading = true
try {
await CountJobMainApi.acceptCountJobMain(row.id)
await getList()
buttonBaseClick('refresh',null)
} finally {
tableObject.loading = false
}
@ -271,7 +271,7 @@ const handleClose = async (id: number) => {
tableObject.loading = true
await CountJobMainApi.closeCountJobMain(id)
message.success(t('common.closeSuccess'))
await getList()
buttonBaseClick('refresh',null)
} finally {
tableObject.loading = false
}
@ -282,7 +282,7 @@ const handleDone = async (id: number) => {
await message.confirm('确认完成吗?')
tableObject.loading = true
await CountJobMainApi.doneCountJobMain(id)
await getList()
buttonBaseClick('refresh',null)
} finally {
tableObject.loading = false
}

22
src/views/wms/countManage/count/countPlanMain/index.vue

@ -306,7 +306,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('打开成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -320,7 +320,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('关闭成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -333,7 +333,7 @@ const buttonTableClick = async (val, row) => {
await CountPlanMainApi.submit(row.id)
message.success(t('提交审批成功'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainPlanTur') {
//
await message.confirm('确认要驳回吗?')
@ -342,7 +342,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('驳回成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -356,7 +356,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('审批已通过'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -370,7 +370,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('发布成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -384,7 +384,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -606,7 +606,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} finally {
tableObject.loading = false
}
@ -689,7 +689,11 @@ const submitForm = async (formType, data) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

2
src/views/wms/countManage/count/countRecordMain/index.vue

@ -140,7 +140,7 @@ const buttonTableClick = async (val, row) => {
CountRecordMainApi.generateCountRecordMain(row.id).then(()=>{
message.success(t('生成成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)

28
src/views/wms/countManage/count/countRequestMain/index.vue

@ -183,7 +183,7 @@ const searchTableSuccessCount = (formField, searchField, val, type,row,count) =>
CountRequestMainApi.reCount(row).then((res)=>{
message.success('重盘成功')
getLoading?.close()
getList()
buttonBaseClick('refresh',null)
}).catch((err) => {
getLoading?.close()
})
@ -198,7 +198,7 @@ const searchTableSuccessCount = (formField, searchField, val, type,row,count) =>
CountRequestMainApi.superviseCount(row).then((res)=>{
message.success('监盘成功')
getLoading?.close()
getList()
buttonBaseClick('refresh',null)
}).catch((err) => {
getLoading?.close()
})
@ -322,7 +322,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('关闭成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -336,7 +336,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('添加成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -350,7 +350,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('提交审批成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -364,7 +364,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('驳回成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -378,7 +378,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('审批已通过'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -392,7 +392,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('处理成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -429,7 +429,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('已生成盘点调整申请'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -443,7 +443,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('解冻成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -486,7 +486,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} finally {
tableObject.loading = false
}
@ -545,7 +545,11 @@ const submitForm = async (formType, data) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

20
src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue

@ -206,7 +206,7 @@ const buttonTableClick = async (val, row) => {
CountadjustRequestMainApi.close(row.id).then(() => {
message.success(t('关闭成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -217,7 +217,7 @@ const buttonTableClick = async (val, row) => {
CountadjustRequestMainApi.reAdd(row.id).then(() => {
message.success(t('添加成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -228,7 +228,7 @@ const buttonTableClick = async (val, row) => {
CountadjustRequestMainApi.submit(row.id).then(() => {
message.success(t('提交审批成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -239,7 +239,7 @@ const buttonTableClick = async (val, row) => {
CountadjustRequestMainApi.refused(row.id).then(() => {
message.success(t('驳回成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -250,7 +250,7 @@ const buttonTableClick = async (val, row) => {
CountadjustRequestMainApi.agree(row.id).then(() => {
message.success(t('审批已通过'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -266,7 +266,7 @@ const buttonTableClick = async (val, row) => {
CountadjustRequestMainApi.handle(row.id).then(() => {
message.success(t('处理成功'))
getLoading?.close()
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
getLoading?.close()
console.log(err)
@ -306,7 +306,7 @@ const handleDelete = async (id: number) => {
await CountadjustRequestMainApi.deleteCountadjustRequestMain(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} finally {
tableObject.loading = false
}
@ -365,7 +365,11 @@ const submitForm = async (formType, data) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

20
src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue

@ -218,7 +218,7 @@ const buttonTableClick = async (val, row) => {
CustomerreceiptRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -229,7 +229,7 @@ const buttonTableClick = async (val, row) => {
CustomerreceiptRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -240,7 +240,7 @@ const buttonTableClick = async (val, row) => {
CustomerreceiptRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -251,7 +251,7 @@ const buttonTableClick = async (val, row) => {
CustomerreceiptRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -262,7 +262,7 @@ const buttonTableClick = async (val, row) => {
CustomerreceiptRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -273,7 +273,7 @@ const buttonTableClick = async (val, row) => {
CustomerreceiptRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -313,7 +313,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -374,7 +374,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

12
src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue

@ -305,12 +305,12 @@ const buttonTableClick = async (val, row) => {
handleHandle(aaa)
} else if (val == 'mainJobAba') { //
await CustomerreturnJobMainApi.abandonCustomerreturnJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
// await message.confirm('')
// console.log('--')
// CustomerreturnJobMainApi.abandonCustomerreturnJobMain(row.masterId).then(() => {
// message.success(t('common.updateSuccess'))
// getList()
// buttonBaseClick('refresh',null)
// }).catch(err => {
// console.log(err)
// })
@ -319,18 +319,18 @@ const buttonTableClick = async (val, row) => {
console.log('列表-操作按钮事件-关闭')
CustomerreturnJobMainApi.closeCustomerreturnJobMain(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
console.log(err)
})
} else if (val == 'mainJobAcc') { //
await CustomerreturnJobMainApi.acceptCustomerreturnJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
// await message.confirm('')
// console.log('--')
// CustomerreturnJobMainApi.acceptCustomerreturnJobMain(row.masterId).then(() => {
// message.success(t('common.updateSuccess'))
// getList()
// buttonBaseClick('refresh',null)
// }).catch(err => {
// console.log(err)
// })
@ -352,7 +352,7 @@ const handleHandle = async (data) => {
await message.confirm(t('common.confirmHandle'))
await CustomerreturnJobMainApi.executeCustomerreturnJobMain(data)
message.success(t('common.handleSuccess'))
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

20
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue

@ -358,7 +358,7 @@ const buttonTableClick = async (val, row) => {
CustomerreturnRequestMainApi.close(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -368,7 +368,7 @@ const buttonTableClick = async (val, row) => {
CustomerreturnRequestMainApi.reAdd(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -379,7 +379,7 @@ const buttonTableClick = async (val, row) => {
CustomerreturnRequestMainApi.submit(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -390,7 +390,7 @@ const buttonTableClick = async (val, row) => {
CustomerreturnRequestMainApi.refused(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -401,7 +401,7 @@ const buttonTableClick = async (val, row) => {
CustomerreturnRequestMainApi.agree(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -412,7 +412,7 @@ const buttonTableClick = async (val, row) => {
CustomerreturnRequestMainApi.handle(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -625,7 +625,7 @@ const handleDelete = async (id: number) => {
await CustomerreturnRequestMainApi.deleteCustomerreturnRequestMain(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -742,7 +742,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

8
src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue

@ -313,13 +313,13 @@ const buttonTableClick = async (val, row) => {
console.log('列表-操作按钮事件-执行')
} else if (val == 'mainJobAba') { //
await DeliverJobMainApi.abandonDeliverJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { //
await DeliverJobMainApi.closeDeliverJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAcc') { //
await DeliverJobMainApi.acceptDeliverJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
}
}
//
@ -337,7 +337,7 @@ const handleHandle = async (data) => {
await message.confirm(t('common.confirmHandle'))
await DeliverJobMainApi.executeDeliverJobMain(data)
message.success(t('common.handleSuccess'))
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

20
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

@ -313,7 +313,7 @@ const buttonTableClick = async (val, row) => {
DeliverRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -324,7 +324,7 @@ const buttonTableClick = async (val, row) => {
DeliverRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -335,7 +335,7 @@ const buttonTableClick = async (val, row) => {
DeliverRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -346,7 +346,7 @@ const buttonTableClick = async (val, row) => {
DeliverRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -357,7 +357,7 @@ const buttonTableClick = async (val, row) => {
DeliverRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -368,7 +368,7 @@ const buttonTableClick = async (val, row) => {
DeliverRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -461,7 +461,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -561,7 +561,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

22
src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue

@ -318,7 +318,7 @@ const buttonTableClick = async (val, row) => {
DeliverPlanMainApi.open(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -329,7 +329,7 @@ const buttonTableClick = async (val, row) => {
DeliverPlanMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -340,7 +340,7 @@ const buttonTableClick = async (val, row) => {
DeliverPlanMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -351,7 +351,7 @@ const buttonTableClick = async (val, row) => {
DeliverPlanMainApi.reject(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -362,7 +362,7 @@ const buttonTableClick = async (val, row) => {
DeliverPlanMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -373,7 +373,7 @@ const buttonTableClick = async (val, row) => {
DeliverPlanMainApi.publish(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -384,7 +384,7 @@ const buttonTableClick = async (val, row) => {
DeliverPlanMainApi.resetting(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -420,7 +420,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -527,7 +527,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

8
src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue

@ -240,7 +240,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -296,7 +296,11 @@ const submitForm = async (formType, data) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

16
src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue

@ -127,7 +127,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -165,7 +171,11 @@ const formsSuccess = async (formType,data) => {
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -183,7 +193,7 @@ const handleDelete = async (id: number) => {
await SaleShipmentMainRecordApi.deleteSaleShipmentMainRecord(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

22
src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue

@ -258,7 +258,7 @@ const buttonTableClick = async (val, row) => {
SaleShipmentMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -269,7 +269,7 @@ const buttonTableClick = async (val, row) => {
SaleShipmentMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -280,7 +280,7 @@ const buttonTableClick = async (val, row) => {
SaleShipmentMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -291,7 +291,7 @@ const buttonTableClick = async (val, row) => {
SaleShipmentMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -302,7 +302,7 @@ const buttonTableClick = async (val, row) => {
SaleShipmentMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -313,7 +313,7 @@ const buttonTableClick = async (val, row) => {
SaleShipmentMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -324,7 +324,7 @@ const buttonTableClick = async (val, row) => {
SaleShipmentMainApi.abort(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -385,7 +385,11 @@ const submitForm = async (formType, submitData) => {
}
basicFormRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
basicFormRef.value.formLoading = false
}
@ -430,7 +434,7 @@ const handleDelete = async (id: number) => {
await SaleShipmentMainApi.deleteSaleShipmentMain(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue

@ -202,13 +202,13 @@ const buttonTableClick = async (val, row) => {
handleHandle
} else if (val == 'mainJobAba') { //
await StockupJobMainApi.abandonStockupMainJob(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { //
await StockupJobMainApi.closeStockupMainJob(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAcc') { //
await StockupJobMainApi.acceptStockupMainJob(row.masterId)
getList()
buttonBaseClick('refresh',null)
}
}
//
@ -226,7 +226,7 @@ const handleHandle = async (data) => {
await message.confirm(t('common.confirmHandle'))
await StockupJobMainApi.executeStockupMainJob(data)
message.success(t('common.handleSuccess'))
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

20
src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue

@ -277,7 +277,7 @@ const buttonTableClick = async (val, row) => {
StockupMainRequestApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -288,7 +288,7 @@ const buttonTableClick = async (val, row) => {
StockupMainRequestApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -299,7 +299,7 @@ const buttonTableClick = async (val, row) => {
StockupMainRequestApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -310,7 +310,7 @@ const buttonTableClick = async (val, row) => {
StockupMainRequestApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -321,7 +321,7 @@ const buttonTableClick = async (val, row) => {
StockupMainRequestApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -332,7 +332,7 @@ const buttonTableClick = async (val, row) => {
StockupMainRequestApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -398,7 +398,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -486,7 +486,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

2
src/views/wms/inventoryManage/balance/index.vue

@ -285,7 +285,7 @@ const handleDelete = async (id: number) => {
await BalanceApi.deleteBalance(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/inventoryManage/containerinit/containerBindRecord/index.vue

@ -208,7 +208,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -241,7 +241,11 @@ const submitForm = async (formType, data) => {
}
basicFormRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
basicFormRef.value.formLoading = false
}

8
src/views/wms/inventoryManage/containerinit/containerRepair/index.vue

@ -207,7 +207,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -240,7 +240,11 @@ const submitForm = async (formType, data) => {
}
basicFormRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
basicFormRef.value.formLoading = false
}

8
src/views/wms/inventoryManage/containerinit/containerUnbindRecord/index.vue

@ -207,7 +207,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -240,7 +240,11 @@ const submitForm = async (formType, data) => {
}
basicFormRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
basicFormRef.value.formLoading = false
}

12
src/views/wms/inventoryManage/containerinit/containerinitadd/index.vue

@ -193,7 +193,7 @@ const repairSubmit = async (id: number) => {
await ContainerMainApi.repairSubmitContainerRequestMain(id)
message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -205,7 +205,7 @@ const scrapSubmit = async (id: number) => {
await ContainerMainApi.scrapSubmitContainerRequestMain(id)
message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -259,7 +259,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -313,7 +313,11 @@ const formsSuccess = async (formType,data) => {
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 初始化 **/

8
src/views/wms/inventoryManage/containerinit/containerinitrecord/index.vue

@ -205,7 +205,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -238,7 +238,11 @@ const submitForm = async (formType, data) => {
}
basicFormRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
basicFormRef.value.formLoading = false
}

4
src/views/wms/inventoryManage/expectin/index.vue

@ -170,7 +170,7 @@ const handleSelectionDelete = async ()=>{
message.success(t('common.delSuccess'))
tableObject.loading = false
//
getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -213,7 +213,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

4
src/views/wms/inventoryManage/expectout/index.vue

@ -170,7 +170,7 @@ const handleSelectionDelete = async ()=>{
message.success(t('common.delSuccess'))
tableObject.loading = false
//
getList()
buttonBaseClick('refresh',null)
} catch {}
}
// -
@ -212,7 +212,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

2
src/views/wms/inventoryManage/locationcapacity/index.vue

@ -167,7 +167,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

2
src/views/wms/inventoryManage/transaction/index.vue

@ -168,7 +168,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

2
src/views/wms/inventoryManage/transferlog/index.vue

@ -167,7 +167,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

28
src/views/wms/inventoryjobManage/containermanage/containerMainRequest/index.vue

@ -306,7 +306,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -348,7 +354,7 @@ const buttonTableClick = async (val, row) => {
ContainerMainRequestApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -359,7 +365,7 @@ const buttonTableClick = async (val, row) => {
ContainerMainRequestApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -370,7 +376,7 @@ const buttonTableClick = async (val, row) => {
ContainerMainRequestApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -381,7 +387,7 @@ const buttonTableClick = async (val, row) => {
ContainerMainRequestApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -392,7 +398,7 @@ const buttonTableClick = async (val, row) => {
ContainerMainRequestApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -403,7 +409,7 @@ const buttonTableClick = async (val, row) => {
ContainerMainRequestApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -477,7 +483,11 @@ const submitForm = async (formType,submitData) => {
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
basicFormRef.value.formLoading = false
}
@ -498,7 +508,7 @@ const handleDelete = async (id: number) => {
await ContainerMainRequestApi.deleteContainerMainRequest(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

10
src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue

@ -162,7 +162,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -215,7 +221,7 @@ const handleDelete = async (id: number) => {
await ContainerRecordMainApi.deleteContainerRecordMain(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

28
src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue

@ -268,7 +268,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -301,7 +307,7 @@ const buttonTableClick = async (val, row) => {
ContainerMainRequestApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -312,7 +318,7 @@ const buttonTableClick = async (val, row) => {
ContainerMainRequestApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -323,7 +329,7 @@ const buttonTableClick = async (val, row) => {
ContainerMainRequestApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -334,7 +340,7 @@ const buttonTableClick = async (val, row) => {
ContainerMainRequestApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -345,7 +351,7 @@ const buttonTableClick = async (val, row) => {
ContainerMainRequestApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -356,7 +362,7 @@ const buttonTableClick = async (val, row) => {
ContainerMainRequestApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -432,7 +438,11 @@ const submitForm = async (formType,submitData) => {
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
basicFormRef.value.formLoading = false
}
@ -453,7 +463,7 @@ const handleDelete = async (id: number) => {
await ContainerMainRequestApi.deleteContainerMainRequest(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

28
src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue

@ -290,7 +290,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -323,7 +329,7 @@ const buttonTableClick = async (val, row) => {
ContainerMainRequestApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -334,7 +340,7 @@ const buttonTableClick = async (val, row) => {
ContainerMainRequestApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -345,7 +351,7 @@ const buttonTableClick = async (val, row) => {
ContainerMainRequestApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -356,7 +362,7 @@ const buttonTableClick = async (val, row) => {
ContainerMainRequestApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -367,7 +373,7 @@ const buttonTableClick = async (val, row) => {
ContainerMainRequestApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -378,7 +384,7 @@ const buttonTableClick = async (val, row) => {
ContainerMainRequestApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -457,7 +463,11 @@ const submitForm = async (formType,submitData) => {
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
basicFormRef.value.formLoading = false
}
@ -478,7 +488,7 @@ const handleDelete = async (id: number) => {
await ContainerMainRequestApi.deleteContainerMainRequest(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

20
src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue

@ -297,7 +297,7 @@ const handleClose = async (id: number) => {
await InventoryinitRequestMainApi.closeInventoryinitRequestMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -310,7 +310,7 @@ const handleReAdd = async (id: number) => {
await InventoryinitRequestMainApi.reAddInventoryinitRequestMain(id)
message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -323,7 +323,7 @@ const handleSubmit = async (id: number) => {
await InventoryinitRequestMainApi.submitInventoryinitRequestMain(id)
message.success(t('common.updateSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -336,7 +336,7 @@ const handleAgree = async (id: number) => {
await InventoryinitRequestMainApi.agreeInventoryinitRequestMain(id)
message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -348,7 +348,7 @@ const handleHandle = async (id: number) => {
tableObject.loading = true
await InventoryinitRequestMainApi.handleInventoryinitRequestMain(id)
message.success(t('common.handleSuccess'))
await getList()
buttonBaseClick('refresh',null)
} catch {}
tableObject.loading = false
}
@ -362,7 +362,7 @@ const handleRefused = async (id: number) => {
await InventoryinitRequestMainApi.refusedInventoryinitRequestMain(id)
message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -392,7 +392,7 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
// await InventoryinitRequestMainApi.deleteInventoryinitRequestMain(id)
// message.success(t('common.delSuccess'))
// //
// await getList()
// buttonBaseClick('refresh',null)
// } catch {}
// }
@ -453,7 +453,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

22
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverJobMain/index.vue

@ -132,7 +132,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -167,17 +173,17 @@ const buttonTableClick = async (val, row) => {
await message.confirm('确认要关闭吗?')
await PackageoverJobMainApi.closePackageoverJobMain(row.masterId)
//
await getList()
buttonBaseClick('refresh',null)
}else if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.masterId)
} else if (val == 'mainJobAcc') { //
await PackageoverJobMainApi.acceptPackageoverJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAba') { //
await PackageoverJobMainApi.abandonPackageoverJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
}
}
@ -208,7 +214,11 @@ const formsSuccess = async (formType,data) => {
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
//
const { wsCache } = useCache()
@ -229,7 +239,7 @@ const handleDelete = async (id: number) => {
await PackageoverJobMainApi.deletePackageoverJobMain(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

20
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/index.vue

@ -257,7 +257,7 @@ const buttonTableClick = async (val, row) => {
PackageoverRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -268,7 +268,7 @@ const buttonTableClick = async (val, row) => {
PackageoverRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -279,7 +279,7 @@ const buttonTableClick = async (val, row) => {
PackageoverRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -290,7 +290,7 @@ const buttonTableClick = async (val, row) => {
PackageoverRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -301,7 +301,7 @@ const buttonTableClick = async (val, row) => {
PackageoverRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -312,7 +312,7 @@ const buttonTableClick = async (val, row) => {
PackageoverRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -354,7 +354,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -419,7 +419,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

8
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRetrospect/index.vue

@ -126,7 +126,13 @@ const buttonBaseClick = (val, item) => {
if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)

6
src/views/wms/inventoryjobManage/scrap/scrapJobMain/index.vue

@ -199,15 +199,15 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainJobAba') { //
console.log('列表-操作按钮事件-放弃')
await ScrapJobMainApi.abandonScrapJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { //
console.log('列表-操作按钮事件-关闭')
await ScrapJobMainApi.closeScrapJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAcc') { //
console.log('列表-操作按钮事件-承接')
await ScrapJobMainApi.acceptScrapJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
}
}
//

20
src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue

@ -291,7 +291,7 @@ const handleClose = async (id: number) => {
await ScrapRequestMainApi.closeScrapRequestMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -303,7 +303,7 @@ const handleReAdd = async (id: number) => {
await ScrapRequestMainApi.reAddScrapRequestMain(id)
message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -315,7 +315,7 @@ const handleSubmit = async (id: number) => {
await ScrapRequestMainApi.submitScrapRequestMain(id)
message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -327,7 +327,7 @@ const handleRefused = async (id: number) => {
await ScrapRequestMainApi.refusedScrapRequestMain(id)
message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -339,7 +339,7 @@ const handleAgree = async (id: number) => {
await ScrapRequestMainApi.agreeScrapRequestMain(id)
message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -351,7 +351,7 @@ const handleHandle = async (id: number) => {
await ScrapRequestMainApi.handleScrapRequestMain(id)
message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -383,7 +383,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -461,7 +461,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

6
src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionJobMain/index.vue

@ -199,15 +199,15 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainJobAba') { //
console.log('列表-操作按钮事件-放弃')
await UnplannedissueJobMainApi.abandonUnplannedissueJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { //
console.log('列表-操作按钮事件-关闭')
await UnplannedissueJobMainApi.closeUnplannedissueJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAcc') { //
console.log('列表-操作按钮事件-承接')
await UnplannedissueJobMainApi.acceptUnplannedissueJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
}
}
//

6
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/index.vue

@ -199,15 +199,15 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainJobAba') { //
console.log('列表-操作按钮事件-放弃')
await UnplannedissueJobMainApi.abandonUnplannedissueJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { //
console.log('列表-操作按钮事件-关闭')
await UnplannedissueJobMainApi.closeUnplannedissueJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAcc') { //
console.log('列表-操作按钮事件-承接')
await UnplannedissueJobMainApi.acceptUnplannedissueJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
}
}
//

20
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue

@ -294,7 +294,7 @@ const handleHandle = async (id: number) => {
await UnplannedissueRequestMainApi.handleUnplannedissueRequestMain(id)
message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
}
/** 审批通过按钮操作 */
@ -304,7 +304,7 @@ const handleAgree = async (id: number) => {
await UnplannedissueRequestMainApi.agreeUnplannedissueRequestMain(id)
message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
}
/** 审批驳回按钮操作 */
@ -314,7 +314,7 @@ const handleRefused = async (id: number) => {
await UnplannedissueRequestMainApi.refusedUnplannedissueRequestMain(id)
message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
}
/** 提交按钮操作 */
@ -324,7 +324,7 @@ const handleSubmit = async (id: number) => {
await UnplannedissueRequestMainApi.submitUnplannedissueRequestMain(id)
message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
}
@ -335,7 +335,7 @@ const handleClose = async (id: number) => {
await UnplannedissueRequestMainApi.closeUnplannedissueRequestMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
}
/** 重新添加按钮操作 */
@ -345,7 +345,7 @@ const handleReAdd = async (id: number) => {
await UnplannedissueRequestMainApi.reAddUnplannedissueRequestMain(id)
message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
}
/** 添加/修改操作 */
@ -401,7 +401,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -481,7 +481,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

6
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptJobMain/index.vue

@ -199,15 +199,15 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainJobAba') { //
console.log('列表-操作按钮事件-放弃')
await UnplannedreceiptJobMainApi.abandonUnplannedreceiptJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { //
console.log('列表-操作按钮事件-关闭')
await UnplannedreceiptJobMainApi.closeUnplannedreceiptJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAcc') { //
console.log('列表-操作按钮事件-承接')
await UnplannedreceiptJobMainApi.acceptUnplannedreceiptJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
}
}
//

20
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue

@ -513,7 +513,7 @@ const handleClose = async (id: number) => {
await UnplannedreceiptRequestMainApi.closeUnplannedreceiptRequestMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
}catch{
tableObject.loading = false
}
@ -527,7 +527,7 @@ const handleReAdd = async (id: number) => {
await UnplannedreceiptRequestMainApi.reAddUnplannedreceiptRequestMain(id)
message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
}catch{
tableObject.loading = false
}
@ -541,7 +541,7 @@ const handleSubmit = async (id: number) => {
await UnplannedreceiptRequestMainApi.submitUnplannedreceiptRequestMain(id)
message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
}catch{
tableObject.loading = false
}
@ -555,7 +555,7 @@ const handleRefused = async (id: number) => {
await UnplannedreceiptRequestMainApi.refusedUnplannedreceiptRequestMain(id)
message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
}catch{
tableObject.loading = false
}
@ -569,7 +569,7 @@ const handleAgree = async (id: number) => {
await UnplannedreceiptRequestMainApi.agreeUnplannedreceiptRequestMain(id)
message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
}catch{
tableObject.loading = false
}
@ -582,7 +582,7 @@ const handleHandle = async (id: number) => {
try {
await UnplannedreceiptRequestMainApi.handleUnplannedreceiptRequestMain(id)
message.success(t('common.handleSuccess'))
await getList()
buttonBaseClick('refresh',null)
} finally {
tableObject.loading = false
}
@ -654,7 +654,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -741,7 +741,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

8
src/views/wms/issueManage/issue/issueJobMain/index.vue

@ -269,16 +269,16 @@ const buttonTableClick = async (val, row) => {
}]
}
await IssueJobMainApi.executeIssueMain(aaa)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAba') { //
await IssueJobMainApi.abandonIssueMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { //
await IssueJobMainApi.closeIssueMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAcc') { //
await IssueJobMainApi.acceptIssueMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
}
}
//

20
src/views/wms/issueManage/issue/issueRequestMain/index.vue

@ -317,7 +317,7 @@ const buttonTableClick = async (val, row) => {
IssueRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -328,7 +328,7 @@ const buttonTableClick = async (val, row) => {
IssueRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -339,7 +339,7 @@ const buttonTableClick = async (val, row) => {
IssueRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -350,7 +350,7 @@ const buttonTableClick = async (val, row) => {
IssueRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -361,7 +361,7 @@ const buttonTableClick = async (val, row) => {
IssueRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -372,7 +372,7 @@ const buttonTableClick = async (val, row) => {
IssueRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -430,7 +430,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -519,7 +519,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

6
src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue

@ -272,13 +272,13 @@ const buttonTableClick = async (val, row) => {
ProductionreceiptJobMainApi.executeIssueMain(aaa)
} else if (val == 'mainJobAba') { //
await ProductionreceiptJobMainApi.abandonIssueMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { //
await ProductionreceiptJobMainApi.closeIssueMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAcc') { //
await ProductionreceiptJobMainApi.acceptIssueMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
}
}
//

6
src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue

@ -244,13 +244,13 @@ const buttonTableClick = async (val, row) => {
ProductionreturnJobMainApi.executeProductionreturnMain(aaa)
} else if (val == 'mainJobAba') { //
await ProductionreturnJobMainApi.abandonProductionreturnMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { //
await ProductionreturnJobMainApi.closeProductionreturnMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAcc') { //
await ProductionreturnJobMainApi.acceptProductionreturnMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
}
}
//

20
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue

@ -363,7 +363,7 @@ const buttonTableClick = async (val, row) => {
ProductionreturnRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -374,7 +374,7 @@ const buttonTableClick = async (val, row) => {
ProductionreturnRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -385,7 +385,7 @@ const buttonTableClick = async (val, row) => {
ProductionreturnRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -396,7 +396,7 @@ const buttonTableClick = async (val, row) => {
ProductionreturnRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -407,7 +407,7 @@ const buttonTableClick = async (val, row) => {
ProductionreturnRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -500,7 +500,7 @@ const buttonTableClick = async (val, row) => {
ProductionreturnRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -594,7 +594,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -677,7 +677,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

20
src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue

@ -344,7 +344,7 @@ const buttonTableClick = async (val, row) => {
ProductionreturnRequestMainNoApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -355,7 +355,7 @@ const buttonTableClick = async (val, row) => {
ProductionreturnRequestMainNoApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -366,7 +366,7 @@ const buttonTableClick = async (val, row) => {
ProductionreturnRequestMainNoApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -377,7 +377,7 @@ const buttonTableClick = async (val, row) => {
ProductionreturnRequestMainNoApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -388,7 +388,7 @@ const buttonTableClick = async (val, row) => {
ProductionreturnRequestMainNoApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -481,7 +481,7 @@ const buttonTableClick = async (val, row) => {
ProductionreturnRequestMainNoApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -538,7 +538,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -607,7 +607,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

20
src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue

@ -363,7 +363,7 @@ const buttonTableClick = async (val, row) => {
ProductionscrapRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -374,7 +374,7 @@ const buttonTableClick = async (val, row) => {
ProductionscrapRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -385,7 +385,7 @@ const buttonTableClick = async (val, row) => {
ProductionscrapRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -396,7 +396,7 @@ const buttonTableClick = async (val, row) => {
ProductionscrapRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -407,7 +407,7 @@ const buttonTableClick = async (val, row) => {
ProductionscrapRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -500,7 +500,7 @@ const buttonTableClick = async (val, row) => {
ProductionscrapRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -594,7 +594,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -676,7 +676,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

6
src/views/wms/issueManage/repleinsh/repleinshJobMain/index.vue

@ -303,13 +303,13 @@ const buttonTableClick = async (val, row) => {
RepleinshJobMainApi.executeRepleinshMain(aaa)
} else if (val == 'mainJobAba') { //
await RepleinshJobMainApi.abandonRepleinshMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { //
await RepleinshJobMainApi.closeRepleinshMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAcc') { //
await RepleinshJobMainApi.acceptRepleinshMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
}
}

20
src/views/wms/issueManage/repleinsh/repleinshRequestMain/index.vue

@ -236,7 +236,7 @@ const buttonTableClick = async (val, row) => {
RepleinshRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -247,7 +247,7 @@ const buttonTableClick = async (val, row) => {
RepleinshRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -258,7 +258,7 @@ const buttonTableClick = async (val, row) => {
RepleinshRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -269,7 +269,7 @@ const buttonTableClick = async (val, row) => {
RepleinshRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -280,7 +280,7 @@ const buttonTableClick = async (val, row) => {
RepleinshRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -291,7 +291,7 @@ const buttonTableClick = async (val, row) => {
RepleinshRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -331,7 +331,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -404,7 +404,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

20
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue

@ -297,7 +297,7 @@ const buttonTableClick = async (val, row) => {
InventorychangeRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -308,7 +308,7 @@ const buttonTableClick = async (val, row) => {
InventorychangeRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -319,7 +319,7 @@ const buttonTableClick = async (val, row) => {
InventorychangeRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -330,7 +330,7 @@ const buttonTableClick = async (val, row) => {
InventorychangeRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -341,7 +341,7 @@ const buttonTableClick = async (val, row) => {
InventorychangeRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -352,7 +352,7 @@ const buttonTableClick = async (val, row) => {
InventorychangeRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -392,7 +392,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -488,7 +488,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

6
src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue

@ -272,13 +272,13 @@ const buttonTableClick = async (val, row) => {
InventorymoveJobMainApi.executeInventorymoveMain(row.masterId)
} else if (val == 'mainJobAba') { //
await InventorymoveJobMainApi.abandonInventorymoveMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { //
await InventorymoveJobMainApi.closeInventorymoveMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAcc') { //
await InventorymoveJobMainApi.acceptInventorymoveMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
}
}
//

20
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -510,7 +510,7 @@ const buttonTableClick = async (val, row) => {
InventorymoveRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -521,7 +521,7 @@ const buttonTableClick = async (val, row) => {
InventorymoveRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -532,7 +532,7 @@ const buttonTableClick = async (val, row) => {
InventorymoveRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -543,7 +543,7 @@ const buttonTableClick = async (val, row) => {
InventorymoveRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -554,7 +554,7 @@ const buttonTableClick = async (val, row) => {
InventorymoveRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -565,7 +565,7 @@ const buttonTableClick = async (val, row) => {
InventorymoveRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -627,7 +627,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -743,7 +743,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

28
src/views/wms/productionManage/productionplan/productionMain/index.vue

@ -316,7 +316,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.open(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -327,7 +327,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -342,7 +342,7 @@ const buttonTableClick = async (val, row) => {
}
// message.success(t('common.updateSuccess'))
// tableObject.loading = false
// getList()
// buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -353,7 +353,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.reject(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -365,7 +365,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -397,7 +397,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.publish(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -408,7 +408,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.resetting(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -420,7 +420,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.generatePreparetoissue(row.number).then((PreparetoissueRes) => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
//
ProductionMainApi.generateIssueRequest(PreparetoissueRes.number)
}).catch(err => {
@ -434,7 +434,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -481,7 +481,7 @@ const autoCreatePlanRequest = async (row)=>{
} finally {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}
}
}
@ -534,7 +534,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}finally{
tableObject.loading = false
}
@ -607,7 +607,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false

28
src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue

@ -314,7 +314,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.open(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -325,7 +325,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -342,7 +342,7 @@ const buttonTableClick = async (val, row) => {
}
// message.success(t('common.updateSuccess'))
// tableObject.loading = false
// getList()
// buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -353,7 +353,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.reject(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -365,7 +365,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -398,7 +398,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.publish(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -409,7 +409,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.resetting(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -421,7 +421,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.generatePreparetoissue(row.number).then((PreparetoissueRes) => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
//
ProductionMainApi.generateIssueRequest(PreparetoissueRes.number)
}).catch(err => {
@ -435,7 +435,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -497,7 +497,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}finally{
tableObject.loading = false
}
@ -572,7 +572,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}
@ -609,7 +613,7 @@ const autoCreatePlanRequest = async (row)=>{
} finally {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}
}
}

28
src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue

@ -306,7 +306,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.open(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -317,7 +317,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -332,7 +332,7 @@ const buttonTableClick = async (val, row) => {
}
// message.success(t('common.updateSuccess'))
// tableObject.loading = false
// getList()
// buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -343,7 +343,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.reject(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -355,7 +355,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -386,7 +386,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.publish(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -397,7 +397,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.resetting(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -409,7 +409,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.generatePreparetoissue(row.number).then((PreparetoissueRes) => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
//
ProductionMainApi.generateIssueRequest(PreparetoissueRes.number)
}).catch(err => {
@ -423,7 +423,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -485,7 +485,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}finally{
tableObject.loading = false
}
@ -559,7 +559,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}
@ -598,7 +602,7 @@ const autoCreatePlanRequest = async (row)=>{
} finally {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}
}
}

29
src/views/wms/productionManage/productionplan/productionMainPredictSparePart/index.vue

@ -306,7 +306,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.open(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -317,7 +317,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -332,7 +332,8 @@ const buttonTableClick = async (val, row) => {
}
// message.success(t('common.updateSuccess'))
// tableObject.loading = false
// getList()
// buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -343,7 +344,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.reject(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -355,7 +356,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -387,7 +388,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.publish(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -398,7 +399,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.resetting(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -410,7 +411,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.generatePreparetoissue(row.number).then((PreparetoissueRes) => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
//
ProductionMainApi.generateIssueRequest(PreparetoissueRes.number)
}).catch(err => {
@ -424,7 +425,7 @@ const buttonTableClick = async (val, row) => {
await ProductionMainApi.generateProductreceiptRequest(row.number).then(() => {
message.success(t('common.createSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -486,7 +487,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}finally{
tableObject.loading = false
}
@ -562,7 +563,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}
@ -600,7 +605,7 @@ const autoCreatePlanRequest = async (row)=>{
} finally {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}
}
}

14
src/views/wms/productionManage/productionplan/qadproductionplan/index.vue

@ -124,7 +124,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -173,7 +179,11 @@ const formsSuccess = async (formType,data) => {
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */

6
src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue

@ -202,13 +202,13 @@ const buttonTableClick = async (val, row) => {
// ProductputawayJobMainApi.executeProductputawayMain(aaa)
} else if (val == 'mainJobAba') { //
await ProductputawayJobMainApi.abandonProductputawayMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { //
await ProductputawayJobMainApi.closeProductputawayMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAcc') { //
await ProductputawayJobMainApi.acceptProductputawayMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'documentPrint') {
//
handleDocumentPrint(row)

20
src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue

@ -232,7 +232,7 @@ const buttonTableClick = async (val, row) => {
ProductputawayRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -243,7 +243,7 @@ const buttonTableClick = async (val, row) => {
ProductputawayRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -254,7 +254,7 @@ const buttonTableClick = async (val, row) => {
ProductputawayRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -265,7 +265,7 @@ const buttonTableClick = async (val, row) => {
ProductputawayRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -276,7 +276,7 @@ const buttonTableClick = async (val, row) => {
ProductputawayRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -287,7 +287,7 @@ const buttonTableClick = async (val, row) => {
ProductputawayRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -327,7 +327,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}finally{
tableObject.loading = false
}
@ -397,7 +397,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

6
src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/index.vue

@ -203,13 +203,13 @@ const buttonTableClick = async (val, row) => {
// ProductputawayJobMainApi.executeProductputawayMain(aaa)
} else if (val == 'mainJobAba') { //
await ProductputawayJobMainApi.abandonProductputawayMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { //
await ProductputawayJobMainApi.closeProductputawayMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAcc') { //
await ProductputawayJobMainApi.acceptProductputawayMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
}else if (val == 'documentPrint') {
//
handleDocumentPrint(row)

20
src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRequestMain/index.vue

@ -234,7 +234,7 @@ const buttonTableClick = async (val, row) => {
ProductputawayRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -245,7 +245,7 @@ const buttonTableClick = async (val, row) => {
ProductputawayRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -256,7 +256,7 @@ const buttonTableClick = async (val, row) => {
ProductputawayRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -267,7 +267,7 @@ const buttonTableClick = async (val, row) => {
ProductputawayRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -278,7 +278,7 @@ const buttonTableClick = async (val, row) => {
ProductputawayRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -289,7 +289,7 @@ const buttonTableClick = async (val, row) => {
ProductputawayRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -329,7 +329,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}finally{
tableObject.loading = false
}
@ -398,7 +398,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

6
src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue

@ -322,13 +322,13 @@ const buttonTableClick = async (val, row) => {
ProductreceiptJobMainApi.executeProductreceiptMain(aaa)
} else if (val == 'mainJobAba') { //
await ProductreceiptJobMainApi.abandonProductreceiptMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { //
await ProductreceiptJobMainApi.closeProductreceiptMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAcc') { //
await ProductreceiptJobMainApi.acceptProductreceiptMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
}
}
//

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

@ -279,7 +279,7 @@ const handleCreateInspectRequest = async (number:string) => {
tableObject.loading = true
await ProductreceiptRecordMainApi.createInspectRequest(number)
message.success(t('ts.到货检验申请生成成功'))
await getList()
buttonBaseClick('refresh',null)
}catch{}finally{
tableObject.loading = false
}

20
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

@ -356,7 +356,7 @@ const buttonTableClick = async (val, row) => {
ProductreceiptRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -367,7 +367,7 @@ const buttonTableClick = async (val, row) => {
ProductreceiptRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -378,7 +378,7 @@ const buttonTableClick = async (val, row) => {
ProductreceiptRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -389,7 +389,7 @@ const buttonTableClick = async (val, row) => {
ProductreceiptRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -400,7 +400,7 @@ const buttonTableClick = async (val, row) => {
ProductreceiptRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -493,7 +493,7 @@ const buttonTableClick = async (val, row) => {
ProductreceiptRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
console.log(err)
})
@ -552,7 +552,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}finally{
tableObject.loading = false
}
@ -626,7 +626,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

6
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/index.vue

@ -262,13 +262,13 @@ const buttonTableClick = async (val, row) => {
ProductreceiptJobMainApi.executeProductreceiptMain(aaa)
} else if (val == 'mainJobAba') { //
await ProductreceiptJobMainApi.abandonProductreceiptMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { //
await ProductreceiptJobMainApi.closeProductreceiptMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAcc') { //
await ProductreceiptJobMainApi.acceptProductreceiptMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
}
}
//

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

@ -255,7 +255,7 @@ const handleCreateInspectRequest = async (number:string) => {
tableObject.loading = true
await ProductreceiptRecordMainApi.createInspectRequest(number)
message.success(t('ts.到货检验申请生成成功'))
await getList()
buttonBaseClick('refresh',null)
}catch{}finally{
tableObject.loading = false
}
@ -268,7 +268,7 @@ const handleCreatePutawayRequest = async (number:string) => {
tableObject.loading = true
await ProductreceiptRecordMainApi.createPutawayRequest(number)
message.success(t('ts.上架申请生成成功'))
await getList()
buttonBaseClick('refresh',null)
}catch{}finally{
tableObject.loading = false
}

20
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue

@ -355,7 +355,7 @@ const buttonTableClick = async (val, row) => {
ProductreceiptRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -366,7 +366,7 @@ const buttonTableClick = async (val, row) => {
ProductreceiptRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -377,7 +377,7 @@ const buttonTableClick = async (val, row) => {
ProductreceiptRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -388,7 +388,7 @@ const buttonTableClick = async (val, row) => {
ProductreceiptRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -399,7 +399,7 @@ const buttonTableClick = async (val, row) => {
ProductreceiptRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -493,7 +493,7 @@ const buttonTableClick = async (val, row) => {
ProductreceiptRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
console.log(err)
})
@ -552,7 +552,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}finally{
tableObject.loading = false
}
@ -627,7 +627,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

6
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue

@ -259,13 +259,13 @@ const buttonTableClick = async (val, row) => {
ProductreceiptJobMainApi.executeProductreceiptMain(aaa)
} else if (val == 'mainJobAba') { //
await ProductreceiptJobMainApi.abandonProductreceiptMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { //
await ProductreceiptJobMainApi.closeProductreceiptMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAcc') { //
await ProductreceiptJobMainApi.acceptProductreceiptMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
}
}
//

20
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue

@ -343,7 +343,7 @@ const buttonTableClick = async (val, row) => {
ProductreceiptRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -354,7 +354,7 @@ const buttonTableClick = async (val, row) => {
ProductreceiptRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -365,7 +365,7 @@ const buttonTableClick = async (val, row) => {
ProductreceiptRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -376,7 +376,7 @@ const buttonTableClick = async (val, row) => {
ProductreceiptRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -387,7 +387,7 @@ const buttonTableClick = async (val, row) => {
ProductreceiptRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -480,7 +480,7 @@ const buttonTableClick = async (val, row) => {
ProductreceiptRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
console.log(err)
})
@ -539,7 +539,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}finally{
tableObject.loading = false
}
@ -612,7 +612,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

16
src/views/wms/productionManage/productredress/productredressJobMain/index.vue

@ -96,7 +96,13 @@ const buttonBaseClick = (val, item) => {
if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -133,13 +139,13 @@ const buttonTableClick = async (val, row) => {
handleDelete(row.masterId)
} else if (val == 'mainJobAba') { //
await ProductredressJobMainApi.abandonProductredressJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { //
await ProductredressJobMainApi.closeProductredressJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAcc') { //
await ProductredressJobMainApi.acceptProductredressJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
}
}
@ -176,7 +182,7 @@ const handleDelete = async (id: number) => {
await ProductredressJobMainApi.deleteProductredressJobMain(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/productionManage/productredress/productredressRecordMain/index.vue

@ -94,7 +94,13 @@ const buttonBaseClick = (val, item) => {
if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)

28
src/views/wms/productionManage/productredress/productredressRequestMain/index.vue

@ -208,7 +208,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -249,7 +255,7 @@ const buttonTableClick = async (val, row) => {
ProductredressRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -260,7 +266,7 @@ const buttonTableClick = async (val, row) => {
ProductredressRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -271,7 +277,7 @@ const buttonTableClick = async (val, row) => {
ProductredressRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -282,7 +288,7 @@ const buttonTableClick = async (val, row) => {
ProductredressRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -293,7 +299,7 @@ const buttonTableClick = async (val, row) => {
ProductredressRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -304,7 +310,7 @@ const buttonTableClick = async (val, row) => {
ProductredressRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
console.log(err)
})
@ -361,7 +367,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}finally{
tableObject.loading = false
}
@ -432,7 +438,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

20
src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

@ -528,7 +528,7 @@ const handleClose = async (id: number) => {
await ProductscrapRequestMainApi.closeProductscrapRequestMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
}catch{}finally{
tableObject.loading = false
}
@ -542,7 +542,7 @@ const handleReAdd = async (id: number) => {
await ProductscrapRequestMainApi.reAddProductscrapRequestMain(id)
message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
}catch{}finally{
tableObject.loading = false
}
@ -556,7 +556,7 @@ const handleSubmit = async (id: number) => {
await ProductscrapRequestMainApi.submitProductscrapRequestMain(id)
message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
}catch{}finally{
tableObject.loading = false
}
@ -570,7 +570,7 @@ const handleRefused = async (id: number) => {
await ProductscrapRequestMainApi.refusedProductscrapRequestMain(id)
message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
}catch{}finally{
tableObject.loading = false
}
@ -584,7 +584,7 @@ const handleAgree = async (id: number) => {
await ProductscrapRequestMainApi.agreeProductscrapRequestMain(id)
message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
}catch{}finally{
tableObject.loading = false
}
@ -598,7 +598,7 @@ const handleHandle = async (id: number) => {
await ProductscrapRequestMainApi.handleProductscrapRequestMain(id)
message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
}catch{}finally{
tableObject.loading = false
}
@ -663,7 +663,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -756,7 +756,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

Loading…
Cancel
Save