Browse Source

操作添加遮罩

master
陈薪名 10 months ago
parent
commit
fb50ce50db
  1. 2
      src/views/wms/inventoryManage/containerinit/containerBindRecord/index.vue
  2. 2
      src/views/wms/inventoryManage/containerinit/containerRepair/index.vue
  3. 2
      src/views/wms/inventoryManage/containerinit/containerUnbindRecord/index.vue
  4. 6
      src/views/wms/inventoryManage/containerinit/containerinitadd/index.vue
  5. 2
      src/views/wms/inventoryManage/containerinit/containerinitrecord/index.vue
  6. 2
      src/views/wms/inventoryManage/expectin/index.vue
  7. 2
      src/views/wms/inventoryManage/expectout/index.vue
  8. 2
      src/views/wms/inventoryManage/locationcapacity/index.vue
  9. 2
      src/views/wms/inventoryManage/package/index.vue
  10. 2
      src/views/wms/inventoryManage/transaction/index.vue
  11. 2
      src/views/wms/inventoryManage/transferlog/index.vue
  12. 2
      src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue
  13. 2
      src/views/wms/issueManage/pick/pickRequestMain/index.vue
  14. 23
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue
  15. 20
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
  16. 20
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue
  17. 20
      src/views/wms/issueManage/repleinsh/repleinshRequestMain/index.vue
  18. 20
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue
  19. 20
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue
  20. 2
      src/views/wms/productionManage/offlinesettlement/offlinesettlementRequestMain/index.vue
  21. 20
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue
  22. 23
      src/views/wms/productionManage/productionplan/productionMain/index.vue
  23. 2
      src/views/wms/productionManage/productionplan/workMain/index.vue
  24. 20
      src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue
  25. 19
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue
  26. 26
      src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue
  27. 26
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue
  28. 26
      src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue
  29. 24
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
  30. 12
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
  31. 24
      src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue
  32. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue
  33. 10
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue
  34. 15
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  35. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierPackage/index.vue
  36. 14
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
  37. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/point.vue
  38. 14
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue
  39. 14
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

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

@ -200,9 +200,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await ContainerBindRecordMainApi.deleteContainerBindRecordMain(id) await ContainerBindRecordMainApi.deleteContainerBindRecordMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

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

@ -199,9 +199,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await ContainerRepairRecordMainApi.deleteContainerRepairRecordMain(id) await ContainerRepairRecordMainApi.deleteContainerRepairRecordMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

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

@ -199,9 +199,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await ContainerUnbindRecordMainApi.deleteContainerUnbindRecordMain(id) await ContainerUnbindRecordMainApi.deleteContainerUnbindRecordMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

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

@ -189,8 +189,10 @@ const buttonTableClick = async (val, row) => {
const repairSubmit = async (id: number) => { const repairSubmit = async (id: number) => {
try { try {
await message.confirm(t('common.confirmSubmit')) await message.confirm(t('common.confirmSubmit'))
tableObject.loading = true
await ContainerMainApi.repairSubmitContainerRequestMain(id) await ContainerMainApi.repairSubmitContainerRequestMain(id)
message.success(t('common.submitSuccess')) message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {} } catch {}
} }
@ -199,8 +201,10 @@ const repairSubmit = async (id: number) => {
const scrapSubmit = async (id: number) => { const scrapSubmit = async (id: number) => {
try { try {
await message.confirm(t('common.confirmSubmit')) await message.confirm(t('common.confirmSubmit'))
tableObject.loading = true
await ContainerMainApi.scrapSubmitContainerRequestMain(id) await ContainerMainApi.scrapSubmitContainerRequestMain(id)
message.success(t('common.submitSuccess')) message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {} } catch {}
} }
@ -249,9 +253,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await ContainerMainApi.deleteContainerMain(id) await ContainerMainApi.deleteContainerMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

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

@ -199,9 +199,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await ContainerInitRecordMainApi.deleteContainerInitRecordMain(id) await ContainerInitRecordMainApi.deleteContainerInitRecordMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

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

@ -161,9 +161,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await ExpectinApi.deleteExpectin(id) await ExpectinApi.deleteExpectin(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

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

@ -161,9 +161,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await ExpectoutApi.deleteExpectout(id) await ExpectoutApi.deleteExpectout(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

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

@ -161,9 +161,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await LocationcapacityApi.deleteLocationcapacity(id) await LocationcapacityApi.deleteLocationcapacity(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

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

@ -193,9 +193,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await PackageApi.deletePackage(id) await PackageApi.deletePackage(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

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

@ -161,9 +161,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await TransactionApi.deleteTransaction(id) await TransactionApi.deleteTransaction(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

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

@ -161,9 +161,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await ExpectinApi.deleteTransferlog(id) await ExpectinApi.deleteTransferlog(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

2
src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue

@ -256,8 +256,10 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await OnlinesettlementRequestMainApi.deleteOnlinesettlementRequestMain(id) await OnlinesettlementRequestMainApi.deleteOnlinesettlementRequestMain(id)
tableObject.loading = false
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
// //
await getList() await getList()

2
src/views/wms/issueManage/pick/pickRequestMain/index.vue

@ -246,9 +246,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await PickRequestMainApi.deletePickRequestMain(id) await PickRequestMainApi.deletePickRequestMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

23
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

@ -253,60 +253,81 @@ const butttondata = (row) => {
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainPlanOpe') { // if (val == 'mainPlanOpe') { //
tableObject.loading = true
PreparetoissueMainApi.open(row.id).then(() => { PreparetoissueMainApi.open(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainPlanClo') { // } else if (val == 'mainPlanClo') { //
await message.confirm('确认要关闭吗?') await message.confirm('确认要关闭吗?')
tableObject.loading = true
PreparetoissueMainApi.close(row.id).then(() => { PreparetoissueMainApi.close(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainPlanSub') { // } else if (val == 'mainPlanSub') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
await message.confirm('确认要提交审批吗?') await message.confirm('确认要提交审批吗?')
tableObject.loading = true
PreparetoissueMainApi.submit(row.id).then(() => { PreparetoissueMainApi.submit(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainPlanTur') { // } else if (val == 'mainPlanTur') { //
await message.confirm('确认要驳回吗?') await message.confirm('确认要驳回吗?')
tableObject.loading = true
PreparetoissueMainApi.reject(row.id).then(() => { PreparetoissueMainApi.reject(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainPlanApp') { // } else if (val == 'mainPlanApp') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
await message.confirm('确认要审批通过吗?') await message.confirm('确认要审批通过吗?')
tableObject.loading = true
PreparetoissueMainApi.agree(row.id).then(() => { PreparetoissueMainApi.agree(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainPlanPub') { // } else if (val == 'mainPlanPub') { //
await message.confirm('确认要发布吗?') await message.confirm('确认要发布吗?')
tableObject.loading = true
PreparetoissueMainApi.publish(row.id).then(() => { PreparetoissueMainApi.publish(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainPlanRes') { // } else if (val == 'mainPlanRes') { //
await message.confirm('确认要重置吗?') await message.confirm('确认要重置吗?')
tableObject.loading = true
PreparetoissueMainApi.resetting(row.id).then(() => { PreparetoissueMainApi.resetting(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'edit') { // } else if (val == 'edit') { //
@ -361,9 +382,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await PreparetoissueMainApi.deletePreparetoissueMain(id) await PreparetoissueMainApi.deletePreparetoissueMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

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

@ -296,42 +296,57 @@ const butttondata = (row) => {
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // if (val == 'mainClose') { //
await message.confirm('确认要关闭吗?') await message.confirm('确认要关闭吗?')
tableObject.loading = true
ProductionreturnRequestMainApi.close(row.id).then(() => { ProductionreturnRequestMainApi.close(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainReAdd') { // } else if (val == 'mainReAdd') { //
await message.confirm('确认要重新添加吗?') await message.confirm('确认要重新添加吗?')
tableObject.loading = true
ProductionreturnRequestMainApi.reAdd(row.id).then(() => { ProductionreturnRequestMainApi.reAdd(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainSubmit') { // } else if (val == 'mainSubmit') { //
await message.confirm('确认要提交审批吗?') await message.confirm('确认要提交审批吗?')
tableObject.loading = true
ProductionreturnRequestMainApi.submit(row.id).then(() => { ProductionreturnRequestMainApi.submit(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainTurnDown') { // } else if (val == 'mainTurnDown') { //
await message.confirm('确认要驳回吗?') await message.confirm('确认要驳回吗?')
tableObject.loading = true
ProductionreturnRequestMainApi.refused(row.id).then(() => { ProductionreturnRequestMainApi.refused(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainApprove') { // } else if (val == 'mainApprove') { //
await message.confirm('确认要审批通过吗?') await message.confirm('确认要审批通过吗?')
tableObject.loading = true
ProductionreturnRequestMainApi.agree(row.id).then(() => { ProductionreturnRequestMainApi.agree(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'cjbq') { // } else if (val == 'cjbq') { //
@ -418,10 +433,13 @@ const buttonTableClick = async (val, row) => {
message.warning('请先创建标签') message.warning('请先创建标签')
return return
} }
tableObject.loading = true
ProductionreturnRequestMainApi.handle(row.id).then(() => { ProductionreturnRequestMainApi.handle(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'edit') { // } else if (val == 'edit') { //
@ -451,9 +469,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await ProductionreturnRequestMainApi.deleteProductionreturnRequestMain(id) await ProductionreturnRequestMainApi.deleteProductionreturnRequestMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

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

@ -303,42 +303,57 @@ const butttondata = (row) => {
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // if (val == 'mainClose') { //
await message.confirm('确认要关闭吗?') await message.confirm('确认要关闭吗?')
tableObject.loading = true
ProductionreturnRequestMainNoApi.close(row.id).then(() => { ProductionreturnRequestMainNoApi.close(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainReAdd') { // } else if (val == 'mainReAdd') { //
await message.confirm('确认要重新添加吗?') await message.confirm('确认要重新添加吗?')
tableObject.loading = true
ProductionreturnRequestMainNoApi.reAdd(row.id).then(() => { ProductionreturnRequestMainNoApi.reAdd(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainSubmit') { // } else if (val == 'mainSubmit') { //
await message.confirm('确认要提交审批吗?') await message.confirm('确认要提交审批吗?')
tableObject.loading = true
ProductionreturnRequestMainNoApi.submit(row.id).then(() => { ProductionreturnRequestMainNoApi.submit(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainTurnDown') { // } else if (val == 'mainTurnDown') { //
await message.confirm('确认要驳回吗?') await message.confirm('确认要驳回吗?')
tableObject.loading = true
ProductionreturnRequestMainNoApi.refused(row.id).then(() => { ProductionreturnRequestMainNoApi.refused(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainApprove') { // } else if (val == 'mainApprove') { //
await message.confirm('确认要审批通过吗?') await message.confirm('确认要审批通过吗?')
tableObject.loading = true
ProductionreturnRequestMainNoApi.agree(row.id).then(() => { ProductionreturnRequestMainNoApi.agree(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'cjbq') { // } else if (val == 'cjbq') { //
@ -425,10 +440,13 @@ const buttonTableClick = async (val, row) => {
message.warning('请先创建标签') message.warning('请先创建标签')
return return
} }
tableObject.loading = true
ProductionreturnRequestMainNoApi.handle(row.id).then(() => { ProductionreturnRequestMainNoApi.handle(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'edit') { // } else if (val == 'edit') { //
@ -458,9 +476,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await ProductionreturnRequestMainNoApi.deleteProductionreturnRequestMain(id) await ProductionreturnRequestMainNoApi.deleteProductionreturnRequestMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

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

@ -206,50 +206,68 @@ const butttondata = (row) => {
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // if (val == 'mainClose') { //
await message.confirm('确认要关闭吗?') await message.confirm('确认要关闭吗?')
tableObject.loading = true
RepleinshRequestMainApi.close(row.id).then(() => { RepleinshRequestMainApi.close(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainReAdd') { // } else if (val == 'mainReAdd') { //
await message.confirm('确认要重新添加吗?') await message.confirm('确认要重新添加吗?')
tableObject.loading = true
RepleinshRequestMainApi.reAdd(row.id).then(() => { RepleinshRequestMainApi.reAdd(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainSubmit') { // } else if (val == 'mainSubmit') { //
await message.confirm('确认要提交审批吗?') await message.confirm('确认要提交审批吗?')
tableObject.loading = true
RepleinshRequestMainApi.submit(row.id).then(() => { RepleinshRequestMainApi.submit(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainTurnDown') { // } else if (val == 'mainTurnDown') { //
await message.confirm('确认要驳回吗?') await message.confirm('确认要驳回吗?')
tableObject.loading = true
RepleinshRequestMainApi.refused(row.id).then(() => { RepleinshRequestMainApi.refused(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainApprove') { // } else if (val == 'mainApprove') { //
await message.confirm('确认要审批通过吗?') await message.confirm('确认要审批通过吗?')
tableObject.loading = true
RepleinshRequestMainApi.agree(row.id).then(() => { RepleinshRequestMainApi.agree(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainHandle') { // } else if (val == 'mainHandle') { //
await message.confirm('确认要处理吗?') await message.confirm('确认要处理吗?')
tableObject.loading = true
RepleinshRequestMainApi.handle(row.id).then(() => { RepleinshRequestMainApi.handle(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'edit') { // } else if (val == 'edit') { //
@ -277,9 +295,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await RepleinshRequestMainApi.deleteRepleinshRequestMain(id) await RepleinshRequestMainApi.deleteRepleinshRequestMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

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

@ -253,50 +253,68 @@ const butttondata = (row) => {
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // if (val == 'mainClose') { //
await message.confirm('确认要关闭吗?') await message.confirm('确认要关闭吗?')
tableObject.loading = true
InventorychangeRequestMainApi.close(row.id).then(() => { InventorychangeRequestMainApi.close(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainReAdd') { // } else if (val == 'mainReAdd') { //
await message.confirm('确认要重新添加吗?') await message.confirm('确认要重新添加吗?')
tableObject.loading = true
InventorychangeRequestMainApi.reAdd(row.id).then(() => { InventorychangeRequestMainApi.reAdd(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainSubmit') { // } else if (val == 'mainSubmit') { //
await message.confirm('确认要提交审批吗?') await message.confirm('确认要提交审批吗?')
tableObject.loading = true
InventorychangeRequestMainApi.submit(row.id).then(() => { InventorychangeRequestMainApi.submit(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainTurnDown') { // } else if (val == 'mainTurnDown') { //
await message.confirm('确认要驳回吗?') await message.confirm('确认要驳回吗?')
tableObject.loading = true
InventorychangeRequestMainApi.refused(row.id).then(() => { InventorychangeRequestMainApi.refused(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainApprove') { // } else if (val == 'mainApprove') { //
await message.confirm('确认要审批通过吗?') await message.confirm('确认要审批通过吗?')
tableObject.loading = true
InventorychangeRequestMainApi.agree(row.id).then(() => { InventorychangeRequestMainApi.agree(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainHandle') { // } else if (val == 'mainHandle') { //
await message.confirm('确认要处理吗?') await message.confirm('确认要处理吗?')
tableObject.loading = true
InventorychangeRequestMainApi.handle(row.id).then(() => { InventorychangeRequestMainApi.handle(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'edit') { // } else if (val == 'edit') { //
@ -324,9 +342,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await InventorychangeRequestMainApi.deleteInventorychangeRequestMain(id) await InventorychangeRequestMainApi.deleteInventorychangeRequestMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

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

@ -387,50 +387,68 @@ const butttondata = (row) => {
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // if (val == 'mainClose') { //
await message.confirm('确认要关闭吗?') await message.confirm('确认要关闭吗?')
tableObject.loading = true
InventorymoveRequestMainApi.close(row.id).then(() => { InventorymoveRequestMainApi.close(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainReAdd') { // } else if (val == 'mainReAdd') { //
await message.confirm('确认要重新添加吗?') await message.confirm('确认要重新添加吗?')
tableObject.loading = true
InventorymoveRequestMainApi.reAdd(row.id).then(() => { InventorymoveRequestMainApi.reAdd(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainSubmit') { // } else if (val == 'mainSubmit') { //
await message.confirm('确认要提交审批吗?') await message.confirm('确认要提交审批吗?')
tableObject.loading = true
InventorymoveRequestMainApi.submit(row.id).then(() => { InventorymoveRequestMainApi.submit(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainTurnDown') { // } else if (val == 'mainTurnDown') { //
await message.confirm('确认要驳回吗?') await message.confirm('确认要驳回吗?')
tableObject.loading = true
InventorymoveRequestMainApi.refused(row.id).then(() => { InventorymoveRequestMainApi.refused(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainApprove') { // } else if (val == 'mainApprove') { //
await message.confirm('确认要审批通过吗?') await message.confirm('确认要审批通过吗?')
tableObject.loading = true
InventorymoveRequestMainApi.agree(row.id).then(() => { InventorymoveRequestMainApi.agree(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainHandle') { // } else if (val == 'mainHandle') { //
await message.confirm('确认要处理吗?') await message.confirm('确认要处理吗?')
tableObject.loading = true
InventorymoveRequestMainApi.handle(row.id).then(() => { InventorymoveRequestMainApi.handle(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'edit') { // } else if (val == 'edit') { //
@ -480,9 +498,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await InventorymoveRequestMainApi.deleteInventorymoveRequestMain(id) await InventorymoveRequestMainApi.deleteInventorymoveRequestMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

2
src/views/wms/productionManage/offlinesettlement/offlinesettlementRequestMain/index.vue

@ -247,9 +247,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await OfflinesettlementRequestMainApi.deleteOfflinesettlementRequestMain(id) await OfflinesettlementRequestMainApi.deleteOfflinesettlementRequestMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

20
src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue

@ -355,50 +355,68 @@ const butttondata = (row) => {
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // if (val == 'mainClose') { //
await message.confirm('确认要关闭吗?') await message.confirm('确认要关闭吗?')
tableObject.loading = true
ProductdismantleRequestMainApi.close(row.id).then(() => { ProductdismantleRequestMainApi.close(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainReAdd') { // } else if (val == 'mainReAdd') { //
await message.confirm('确认要重新添加吗?') await message.confirm('确认要重新添加吗?')
tableObject.loading = true
ProductdismantleRequestMainApi.reAdd(row.id).then(() => { ProductdismantleRequestMainApi.reAdd(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainSubmit') { // } else if (val == 'mainSubmit') { //
await message.confirm('确认要提交审批吗?') await message.confirm('确认要提交审批吗?')
tableObject.loading = true
ProductdismantleRequestMainApi.submit(row.id).then(() => { ProductdismantleRequestMainApi.submit(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainTurnDown') { // } else if (val == 'mainTurnDown') { //
await message.confirm('确认要驳回吗?') await message.confirm('确认要驳回吗?')
tableObject.loading = true
ProductdismantleRequestMainApi.refused(row.id).then(() => { ProductdismantleRequestMainApi.refused(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainApprove') { // } else if (val == 'mainApprove') { //
await message.confirm('确认要审批通过吗?') await message.confirm('确认要审批通过吗?')
tableObject.loading = true
ProductdismantleRequestMainApi.agree(row.id).then(() => { ProductdismantleRequestMainApi.agree(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainHandle') { // } else if (val == 'mainHandle') { //
await message.confirm('确认要处理吗?') await message.confirm('确认要处理吗?')
tableObject.loading = true
ProductdismantleRequestMainApi.handle(row.id).then(() => { ProductdismantleRequestMainApi.handle(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'edit') { // } else if (val == 'edit') { //
@ -441,9 +459,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await ProductdismantleRequestMainApi.deleteProductdismantleRequestMain(id) await ProductdismantleRequestMainApi.deleteProductdismantleRequestMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

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

@ -221,61 +221,82 @@ const butttondata = (row) => {
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainPlanOpe') { // if (val == 'mainPlanOpe') { //
tableObject.loading = true
ProductionMainApi.open(row.id).then(() => { ProductionMainApi.open(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainPlanClo') { // } else if (val == 'mainPlanClo') { //
await message.confirm('确认要关闭吗?') await message.confirm('确认要关闭吗?')
tableObject.loading = true
ProductionMainApi.close(row.id).then(() => { ProductionMainApi.close(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainPlanSub') { // } else if (val == 'mainPlanSub') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
await message.confirm('确认要提交审批吗?') await message.confirm('确认要提交审批吗?')
tableObject.loading = true
ProductionMainApi.submit(row.id).then(() => { ProductionMainApi.submit(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainPlanTur') { // } else if (val == 'mainPlanTur') { //
await message.confirm('确认要驳回吗?') await message.confirm('确认要驳回吗?')
tableObject.loading = true
ProductionMainApi.reject(row.id).then(() => { ProductionMainApi.reject(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainPlanApp') { // } else if (val == 'mainPlanApp') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
await message.confirm('确认要审批通过吗?') await message.confirm('确认要审批通过吗?')
tableObject.loading = true
ProductionMainApi.agree(row.id).then(() => { ProductionMainApi.agree(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainPlanPub') { // } else if (val == 'mainPlanPub') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
await message.confirm('确认要发布吗?') await message.confirm('确认要发布吗?')
tableObject.loading = true
ProductionMainApi.publish(row.id).then(() => { ProductionMainApi.publish(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainPlanRes') { // } else if (val == 'mainPlanRes') { //
await message.confirm('确认要重置吗?') await message.confirm('确认要重置吗?')
tableObject.loading = true
ProductionMainApi.resetting(row.id).then(() => { ProductionMainApi.resetting(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'edit') { // } else if (val == 'edit') { //
@ -328,9 +349,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await ProductionMainApi.deleteProductionMain(id) await ProductionMainApi.deleteProductionMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

2
src/views/wms/productionManage/productionplan/workMain/index.vue

@ -219,9 +219,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await WorkMainApi.deleteWorkMain(id) await WorkMainApi.deleteWorkMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

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

@ -211,50 +211,68 @@ const butttondata = (row) => {
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // if (val == 'mainClose') { //
await message.confirm('确认要关闭吗?') await message.confirm('确认要关闭吗?')
tableObject.loading = true
ProductputawayRequestMainApi.close(row.id).then(() => { ProductputawayRequestMainApi.close(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainReAdd') { // } else if (val == 'mainReAdd') { //
await message.confirm('确认要重新添加吗?') await message.confirm('确认要重新添加吗?')
tableObject.loading = true
ProductputawayRequestMainApi.reAdd(row.id).then(() => { ProductputawayRequestMainApi.reAdd(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainSubmit') { // } else if (val == 'mainSubmit') { //
await message.confirm('确认要重新添加吗?') await message.confirm('确认要重新添加吗?')
tableObject.loading = true
ProductputawayRequestMainApi.submit(row.id).then(() => { ProductputawayRequestMainApi.submit(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainTurnDown') { // } else if (val == 'mainTurnDown') { //
await message.confirm('确认要重新添加吗?') await message.confirm('确认要重新添加吗?')
tableObject.loading = true
ProductputawayRequestMainApi.refused(row.id).then(() => { ProductputawayRequestMainApi.refused(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainApprove') { // } else if (val == 'mainApprove') { //
await message.confirm('确认要审批通过吗?') await message.confirm('确认要审批通过吗?')
tableObject.loading = true
ProductputawayRequestMainApi.agree(row.id).then(() => { ProductputawayRequestMainApi.agree(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainHandle') { // } else if (val == 'mainHandle') { //
await message.confirm('确认要处理吗?') await message.confirm('确认要处理吗?')
tableObject.loading = true
ProductputawayRequestMainApi.handle(row.id).then(() => { ProductputawayRequestMainApi.handle(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'edit') { // } else if (val == 'edit') { //
@ -282,9 +300,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await ProductputawayRequestMainApi.deleteProductputawayRequestMain(id) await ProductputawayRequestMainApi.deleteProductputawayRequestMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

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

@ -282,42 +282,57 @@ const butttondata = (row) => {
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { // if (val == 'mainClose') { //
await message.confirm('确认要关闭吗?') await message.confirm('确认要关闭吗?')
tableObject.loading = true
ProductreceiptRequestMainApi.close(row.id).then(() => { ProductreceiptRequestMainApi.close(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainReAdd') { // } else if (val == 'mainReAdd') { //
await message.confirm('确认要重新添加吗?') await message.confirm('确认要重新添加吗?')
tableObject.loading = true
ProductreceiptRequestMainApi.reAdd(row.id).then(() => { ProductreceiptRequestMainApi.reAdd(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainSubmit') { // } else if (val == 'mainSubmit') { //
await message.confirm('确认要提交审批吗?') await message.confirm('确认要提交审批吗?')
tableObject.loading = true
ProductreceiptRequestMainApi.submit(row.id).then(() => { ProductreceiptRequestMainApi.submit(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainTurnDown') { // } else if (val == 'mainTurnDown') { //
await message.confirm('确认要驳回吗?') await message.confirm('确认要驳回吗?')
tableObject.loading = true
ProductreceiptRequestMainApi.refused(row.id).then(() => { ProductreceiptRequestMainApi.refused(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'mainApprove') { // } else if (val == 'mainApprove') { //
await message.confirm('确认要审批通过吗?') await message.confirm('确认要审批通过吗?')
tableObject.loading = true
ProductreceiptRequestMainApi.agree(row.id).then(() => { ProductreceiptRequestMainApi.agree(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'cjbq') { // } else if (val == 'cjbq') { //
@ -404,8 +419,10 @@ const buttonTableClick = async (val, row) => {
message.warning('请先创建标签') message.warning('请先创建标签')
return return
} }
tableObject.loading = true
ProductreceiptRequestMainApi.handle(row.id).then(() => { ProductreceiptRequestMainApi.handle(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false
getList() getList()
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
@ -437,9 +454,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await ProductreceiptRequestMainApi.deleteProductreceiptRequestMain(id) await ProductreceiptRequestMainApi.deleteProductreceiptRequestMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

26
src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue

@ -381,62 +381,62 @@ const buttonTableClick = async (val, row) => {
/** 关闭按钮操作 */ /** 关闭按钮操作 */
const handleClose = async (id: number) => { const handleClose = async (id: number) => {
try {
await message.confirm(t('common.confirmColse')) await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await ProductrepairRequestMainApi.closeProductrepairRequestMain(id) await ProductrepairRequestMainApi.closeProductrepairRequestMain(id)
message.success(t('common.closeSuccess')) message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 重新添加按钮操作 */ /** 重新添加按钮操作 */
const handleReAdd = async (id: number) => { const handleReAdd = async (id: number) => {
try {
await message.confirm(t('common.confirmReAdd')) await message.confirm(t('common.confirmReAdd'))
tableObject.loading = true
await ProductrepairRequestMainApi.reAddProductrepairRequestMain(id) await ProductrepairRequestMainApi.reAddProductrepairRequestMain(id)
message.success(t('common.reAddSuccess')) message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 提交按钮操作 */ /** 提交按钮操作 */
const handleSubmit = async (id: number) => { const handleSubmit = async (id: number) => {
try {
await message.confirm(t('common.confirmSubmit')) await message.confirm(t('common.confirmSubmit'))
tableObject.loading = true
await ProductrepairRequestMainApi.submitProductrepairRequestMain(id) await ProductrepairRequestMainApi.submitProductrepairRequestMain(id)
message.success(t('common.submitSuccess')) message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 审批驳回按钮操作 */ /** 审批驳回按钮操作 */
const handleRefused = async (id: number) => { const handleRefused = async (id: number) => {
try {
await message.confirm(t('common.confirmRefused')) await message.confirm(t('common.confirmRefused'))
tableObject.loading = true
await ProductrepairRequestMainApi.refusedProductrepairRequestMain(id) await ProductrepairRequestMainApi.refusedProductrepairRequestMain(id)
message.success(t('common.refusedSuccess')) message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 审批通过按钮操作 */ /** 审批通过按钮操作 */
const handleAgree = async (id: number) => { const handleAgree = async (id: number) => {
try {
await message.confirm(t('common.confirmAgree')) await message.confirm(t('common.confirmAgree'))
tableObject.loading = true
await ProductrepairRequestMainApi.agreeProductrepairRequestMain(id) await ProductrepairRequestMainApi.agreeProductrepairRequestMain(id)
message.success(t('common.agreeSuccess')) message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 处理按钮操作 */ /** 处理按钮操作 */
const handleHandle = async (id: number) => { const handleHandle = async (id: number) => {
try {
await message.confirm(t('common.confirmHandle')) await message.confirm(t('common.confirmHandle'))
tableObject.loading = true
await ProductrepairRequestMainApi.handleProductrepairRequestMain(id) await ProductrepairRequestMainApi.handleProductrepairRequestMain(id)
message.success(t('common.handleSuccess')) message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 添加/修改操作 */ /** 添加/修改操作 */
@ -473,9 +473,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await ProductrepairRequestMainApi.deleteProductrepairRequestMain(id) await ProductrepairRequestMainApi.deleteProductrepairRequestMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

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

@ -388,62 +388,62 @@ const buttonTableClick = async (val, row) => {
/** 关闭按钮操作 */ /** 关闭按钮操作 */
const handleClose = async (id: number) => { const handleClose = async (id: number) => {
try {
await message.confirm(t('common.confirmColse')) await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await ProductscrapRequestMainApi.closeProductscrapRequestMain(id) await ProductscrapRequestMainApi.closeProductscrapRequestMain(id)
message.success(t('common.closeSuccess')) message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 重新添加按钮操作 */ /** 重新添加按钮操作 */
const handleReAdd = async (id: number) => { const handleReAdd = async (id: number) => {
try {
await message.confirm(t('common.confirmReAdd')) await message.confirm(t('common.confirmReAdd'))
tableObject.loading = true
await ProductscrapRequestMainApi.reAddProductscrapRequestMain(id) await ProductscrapRequestMainApi.reAddProductscrapRequestMain(id)
message.success(t('common.reAddSuccess')) message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 提交按钮操作 */ /** 提交按钮操作 */
const handleSubmit = async (id: number) => { const handleSubmit = async (id: number) => {
try {
await message.confirm(t('common.confirmSubmit')) await message.confirm(t('common.confirmSubmit'))
tableObject.loading = true
await ProductscrapRequestMainApi.submitProductscrapRequestMain(id) await ProductscrapRequestMainApi.submitProductscrapRequestMain(id)
message.success(t('common.submitSuccess')) message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 审批驳回按钮操作 */ /** 审批驳回按钮操作 */
const handleRefused = async (id: number) => { const handleRefused = async (id: number) => {
try {
await message.confirm(t('common.confirmRefused')) await message.confirm(t('common.confirmRefused'))
tableObject.loading = true
await ProductscrapRequestMainApi.refusedProductscrapRequestMain(id) await ProductscrapRequestMainApi.refusedProductscrapRequestMain(id)
message.success(t('common.refusedSuccess')) message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 审批通过按钮操作 */ /** 审批通过按钮操作 */
const handleAgree = async (id: number) => { const handleAgree = async (id: number) => {
try {
await message.confirm(t('common.confirmAgree')) await message.confirm(t('common.confirmAgree'))
tableObject.loading = true
await ProductscrapRequestMainApi.agreeProductscrapRequestMain(id) await ProductscrapRequestMainApi.agreeProductscrapRequestMain(id)
message.success(t('common.agreeSuccess')) message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 处理按钮操作 */ /** 处理按钮操作 */
const handleHandle = async (id: number) => { const handleHandle = async (id: number) => {
try {
await message.confirm(t('common.confirmHandle')) await message.confirm(t('common.confirmHandle'))
tableObject.loading = true
await ProductscrapRequestMainApi.handleProductscrapRequestMain(id) await ProductscrapRequestMainApi.handleProductscrapRequestMain(id)
message.success(t('common.handleSuccess')) message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 添加/修改操作 */ /** 添加/修改操作 */
@ -479,9 +479,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await ProductscrapRequestMainApi.deleteProductscrapRequestMain(id) await ProductscrapRequestMainApi.deleteProductscrapRequestMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

26
src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue

@ -198,62 +198,62 @@
/** 关闭按钮操作 */ /** 关闭按钮操作 */
const handleClose = async (id : number) => { const handleClose = async (id : number) => {
try {
await message.confirm(t('common.confirmColse')) await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await InspectRequestMainApi.closeInspectRequestMain(id) await InspectRequestMainApi.closeInspectRequestMain(id)
message.success(t('common.closeSuccess')) message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList() await getList()
} catch { }
} }
/** 重新添加按钮操作 */ /** 重新添加按钮操作 */
const handleReAdd = async (id : number) => { const handleReAdd = async (id : number) => {
try {
await message.confirm(t('common.confirmReAdd')) await message.confirm(t('common.confirmReAdd'))
tableObject.loading = true
await InspectRequestMainApi.reAddInspectRequestMain(id) await InspectRequestMainApi.reAddInspectRequestMain(id)
message.success(t('common.reAddSuccess')) message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList() await getList()
} catch { }
} }
/** 审批通过按钮操作 */ /** 审批通过按钮操作 */
const handleAgree = async (id : number) => { const handleAgree = async (id : number) => {
try {
await message.confirm(t('common.confirmAgree')) await message.confirm(t('common.confirmAgree'))
tableObject.loading = true
await InspectRequestMainApi.agreeInspectRequestMain(id) await InspectRequestMainApi.agreeInspectRequestMain(id)
message.success(t('common.agreeSuccess')) message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList() await getList()
} catch { }
} }
/** 审批驳回按钮操作 */ /** 审批驳回按钮操作 */
const handleRefused = async (id : number) => { const handleRefused = async (id : number) => {
try {
await message.confirm(t('common.confirmRefused')) await message.confirm(t('common.confirmRefused'))
tableObject.loading = true
await InspectRequestMainApi.refusedInspectRequestMain(id) await InspectRequestMainApi.refusedInspectRequestMain(id)
message.success(t('common.refusedSuccess')) message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList() await getList()
} catch { }
} }
/** 处理按钮操作 */ /** 处理按钮操作 */
const handleHandle = async (id : number) => { const handleHandle = async (id : number) => {
try {
await message.confirm(t('common.confirmHandle')) await message.confirm(t('common.confirmHandle'))
tableObject.loading = true
await InspectRequestMainApi.handleInspectRequestMain(id) await InspectRequestMainApi.handleInspectRequestMain(id)
message.success(t('common.handleSuccess')) message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList() await getList()
} catch { }
} }
/** 提交按钮操作 */ /** 提交按钮操作 */
const handleSubmit = async (id : number) => { const handleSubmit = async (id : number) => {
try {
await message.confirm(t('common.confirmSubmit')) await message.confirm(t('common.confirmSubmit'))
tableObject.loading = true
await InspectRequestMainApi.submitInspectRequestMain(id) await InspectRequestMainApi.submitInspectRequestMain(id)
message.success(t('common.submitSuccess')) message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList() await getList()
} catch { }
} }
/** 添加/修改操作 */ /** 添加/修改操作 */
@ -274,9 +274,11 @@
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await InspectRequestMainApi.deleteInspectRequestMain(id) await InspectRequestMainApi.deleteInspectRequestMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }

24
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

@ -230,62 +230,62 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
/** 关闭按钮操作 */ /** 关闭按钮操作 */
const handleClose = async (id: number) => { const handleClose = async (id: number) => {
try {
await message.confirm(t('common.confirmColse')) await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await PurchasereceiptRequestMainApi.closePurchasereceiptRequestMain(id) await PurchasereceiptRequestMainApi.closePurchasereceiptRequestMain(id)
message.success(t('common.closeSuccess')) message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 重新添加按钮操作 */ /** 重新添加按钮操作 */
const handleReAdd = async (id: number) => { const handleReAdd = async (id: number) => {
try {
await message.confirm(t('common.confirmReAdd')) await message.confirm(t('common.confirmReAdd'))
tableObject.loading = true
await PurchasereceiptRequestMainApi.reAddPurchasereceiptRequestMain(id) await PurchasereceiptRequestMainApi.reAddPurchasereceiptRequestMain(id)
message.success(t('common.reAddSuccess')) message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 审批通过按钮操作 */ /** 审批通过按钮操作 */
const handleAgree = async (id: number) => { const handleAgree = async (id: number) => {
try {
await message.confirm(t('common.confirmAgree')) await message.confirm(t('common.confirmAgree'))
tableObject.loading = true
await PurchasereceiptRequestMainApi.agreePurchasereceiptRequestMain(id) await PurchasereceiptRequestMainApi.agreePurchasereceiptRequestMain(id)
message.success(t('common.agreeSuccess')) message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 审批驳回按钮操作 */ /** 审批驳回按钮操作 */
const handleRefused = async (id: number) => { const handleRefused = async (id: number) => {
try {
await message.confirm(t('common.confirmRefused')) await message.confirm(t('common.confirmRefused'))
tableObject.loading = true
await PurchasereceiptRequestMainApi.refusedPurchasereceiptRequestMain(id) await PurchasereceiptRequestMainApi.refusedPurchasereceiptRequestMain(id)
message.success(t('common.refusedSuccess')) message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 处理按钮操作 */ /** 处理按钮操作 */
const handleHandle = async (id: number) => { const handleHandle = async (id: number) => {
try {
await message.confirm(t('common.confirmHandle')) await message.confirm(t('common.confirmHandle'))
tableObject.loading = true
await PurchasereceiptRequestMainApi.handlePurchasereceiptRequestMain(id) await PurchasereceiptRequestMainApi.handlePurchasereceiptRequestMain(id)
message.success(t('common.handleSuccess')) message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 提交按钮操作 */ /** 提交按钮操作 */
const handleSubmit = async (id: number) => { const handleSubmit = async (id: number) => {
try {
await message.confirm(t('common.confirmSubmit')) await message.confirm(t('common.confirmSubmit'))
tableObject.loading = true
await PurchasereceiptRequestMainApi.submitPurchasereceiptRequestMain(id) await PurchasereceiptRequestMainApi.submitPurchasereceiptRequestMain(id)
message.success(t('common.submitSuccess')) message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 导出按钮操作 */ /** 导出按钮操作 */

12
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

@ -439,8 +439,10 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
const handleClose = async (id: number) => { const handleClose = async (id: number) => {
try { try {
await message.confirm(t('common.confirmColse')) await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await PurchasereturnRequestMainApi.closePurchasereturnRequestMain(id) await PurchasereturnRequestMainApi.closePurchasereturnRequestMain(id)
message.success(t('common.closeSuccess')) message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {} } catch {}
} }
@ -449,8 +451,10 @@ const handleClose = async (id: number) => {
const handleReAdd = async (id: number) => { const handleReAdd = async (id: number) => {
try { try {
await message.confirm(t('common.confirmReAdd')) await message.confirm(t('common.confirmReAdd'))
tableObject.loading = true
await PurchasereturnRequestMainApi.reAddPurchasereturnRequestMain(id) await PurchasereturnRequestMainApi.reAddPurchasereturnRequestMain(id)
message.success(t('common.reAddSuccess')) message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {} } catch {}
} }
@ -459,8 +463,10 @@ const handleReAdd = async (id: number) => {
const handleAgree = async (id: number) => { const handleAgree = async (id: number) => {
try { try {
await message.confirm(t('common.confirmAgree')) await message.confirm(t('common.confirmAgree'))
tableObject.loading = true
await PurchasereturnRequestMainApi.agreePurchasereturnRequestMain(id) await PurchasereturnRequestMainApi.agreePurchasereturnRequestMain(id)
message.success(t('common.agreeSuccess')) message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {} } catch {}
} }
@ -469,8 +475,10 @@ const handleAgree = async (id: number) => {
const handleRefused = async (id: number) => { const handleRefused = async (id: number) => {
try { try {
await message.confirm(t('common.confirmRefused')) await message.confirm(t('common.confirmRefused'))
tableObject.loading = true
await PurchasereturnRequestMainApi.refusedPurchasereturnRequestMain(id) await PurchasereturnRequestMainApi.refusedPurchasereturnRequestMain(id)
message.success(t('common.refusedSuccess')) message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {} } catch {}
} }
@ -479,8 +487,10 @@ const handleRefused = async (id: number) => {
const handleHandle = async (id: number) => { const handleHandle = async (id: number) => {
try { try {
await message.confirm(t('common.confirmHandle')) await message.confirm(t('common.confirmHandle'))
tableObject.loading = true
await PurchasereturnRequestMainApi.handlePurchasereturnRequestMain(id) await PurchasereturnRequestMainApi.handlePurchasereturnRequestMain(id)
message.success(t('common.handleSuccess')) message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {} } catch {}
} }
@ -489,8 +499,10 @@ const handleHandle = async (id: number) => {
const handleSubmit = async (id: number) => { const handleSubmit = async (id: number) => {
try { try {
await message.confirm(t('common.confirmSubmit')) await message.confirm(t('common.confirmSubmit'))
tableObject.loading = true
await PurchasereturnRequestMainApi.submitPurchasereturnRequestMain(id) await PurchasereturnRequestMainApi.submitPurchasereturnRequestMain(id)
message.success(t('common.submitSuccess')) message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {} } catch {}
} }

24
src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue

@ -231,62 +231,62 @@ const openForm =async (type: string, row?: number) => {
/** 关闭按钮操作 */ /** 关闭按钮操作 */
const handleClose = async (id: number) => { const handleClose = async (id: number) => {
try {
await message.confirm(t('common.confirmColse')) await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await PutawayRequestMainApi.closePutawayRequestMain(id) await PutawayRequestMainApi.closePutawayRequestMain(id)
message.success(t('common.closeSuccess')) message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 重新添加按钮操作 */ /** 重新添加按钮操作 */
const handleReAdd = async (id: number) => { const handleReAdd = async (id: number) => {
try {
await message.confirm(t('common.confirmReAdd')) await message.confirm(t('common.confirmReAdd'))
tableObject.loading = true
await PutawayRequestMainApi.reAddPutawayRequestMain(id) await PutawayRequestMainApi.reAddPutawayRequestMain(id)
message.success(t('common.reAddSuccess')) message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 审批通过按钮操作 */ /** 审批通过按钮操作 */
const handleAgree = async (id: number) => { const handleAgree = async (id: number) => {
try {
await message.confirm(t('common.confirmAgree')) await message.confirm(t('common.confirmAgree'))
tableObject.loading = true
await PutawayRequestMainApi.agreePutawayRequestMain(id) await PutawayRequestMainApi.agreePutawayRequestMain(id)
message.success(t('common.agreeSuccess')) message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 审批驳回按钮操作 */ /** 审批驳回按钮操作 */
const handleRefused = async (id: number) => { const handleRefused = async (id: number) => {
try {
await message.confirm(t('common.confirmRefused')) await message.confirm(t('common.confirmRefused'))
tableObject.loading = true
await PutawayRequestMainApi.refusedPutawayRequestMain(id) await PutawayRequestMainApi.refusedPutawayRequestMain(id)
message.success(t('common.refusedSuccess')) message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 处理按钮操作 */ /** 处理按钮操作 */
const handleHandle = async (id: number) => { const handleHandle = async (id: number) => {
try {
await message.confirm(t('common.confirmHandle')) await message.confirm(t('common.confirmHandle'))
tableObject.loading = true
await PutawayRequestMainApi.handlePutawayRequestMain(id) await PutawayRequestMainApi.handlePutawayRequestMain(id)
message.success(t('common.handleSuccess')) message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 提交按钮操作 */ /** 提交按钮操作 */
const handleSubmit = async (id: number) => { const handleSubmit = async (id: number) => {
try {
await message.confirm(t('common.confirmSubmit')) await message.confirm(t('common.confirmSubmit'))
tableObject.loading = true
await PutawayRequestMainApi.submitPutawayRequestMain(id) await PutawayRequestMainApi.submitPutawayRequestMain(id)
message.success(t('common.submitSuccess')) message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {}
} }
/** 详情操作 */ /** 详情操作 */

2
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue

@ -239,9 +239,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await DemandforecastingMainApi.deleteDemandforecastingMain(id) await DemandforecastingMainApi.deleteDemandforecastingMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

10
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue

@ -270,9 +270,11 @@
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await PurchaseMainApi.deletePurchaseMain(id) await PurchaseMainApi.deletePurchaseMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -283,9 +285,11 @@
try { try {
// //
await message.confirm('是否关闭所选中数据?') await message.confirm('是否关闭所选中数据?')
tableObject.loading = true
// //
await PurchaseMainApi.closePurchaseMain(id) await PurchaseMainApi.closePurchaseMain(id)
message.success(t('关闭成功!')) message.success(t('关闭成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -296,9 +300,11 @@
try { try {
// //
await message.confirm('是否打开所选中数据?') await message.confirm('是否打开所选中数据?')
tableObject.loading = true
// //
await PurchaseMainApi.openPurchaseMain(id) await PurchaseMainApi.openPurchaseMain(id)
message.success(t('打开成功!')) message.success(t('打开成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -309,9 +315,11 @@
try { try {
// //
await message.confirm('是否发布所选中数据?') await message.confirm('是否发布所选中数据?')
tableObject.loading = true
// //
await PurchaseMainApi.publishPurchaseMain(id) await PurchaseMainApi.publishPurchaseMain(id)
message.success(t('发布成功!')) message.success(t('发布成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -322,9 +330,11 @@
try { try {
// //
await message.confirm('是否下架所选中数据?') await message.confirm('是否下架所选中数据?')
tableObject.loading = true
// //
await PurchaseMainApi.witPurchaseMain(id) await PurchaseMainApi.witPurchaseMain(id)
message.success(t('下架成功!')) message.success(t('下架成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }

15
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -250,9 +250,11 @@
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await PurchasePlanMainApi.deletePurchasePlanMain(id) await PurchasePlanMainApi.deletePurchasePlanMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -266,6 +268,7 @@
// //
await PurchasePlanMainApi.closePurchasePlanMain(id) await PurchasePlanMainApi.closePurchasePlanMain(id)
message.success(t('关闭成功!')) message.success(t('关闭成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -276,9 +279,11 @@
try { try {
// //
await message.confirm('是否打开所选中数据?') await message.confirm('是否打开所选中数据?')
tableObject.loading = true
// //
await PurchasePlanMainApi.openPurchasePlanMain(id) await PurchasePlanMainApi.openPurchasePlanMain(id)
message.success(t('打开成功!')) message.success(t('打开成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -290,9 +295,11 @@
try { try {
// //
await message.confirm('是否重新打开所选中数据?') await message.confirm('是否重新打开所选中数据?')
tableObject.loading = true
// //
await PurchasePlanMainApi.openPurchasePlanMain(id) await PurchasePlanMainApi.openPurchasePlanMain(id)
message.success(t('打开成功!')) message.success(t('打开成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -303,9 +310,11 @@
try { try {
// //
await message.confirm('是否发布所选中数据?') await message.confirm('是否发布所选中数据?')
tableObject.loading = true
// //
await PurchasePlanMainApi.publishPurchasePlanMain(id) await PurchasePlanMainApi.publishPurchasePlanMain(id)
message.success(t('发布成功!')) message.success(t('发布成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -316,9 +325,11 @@
try { try {
// //
await message.confirm('是否下架所选中数据?') await message.confirm('是否下架所选中数据?')
tableObject.loading = true
// //
await PurchasePlanMainApi.witPurchasePlanMain(id) await PurchasePlanMainApi.witPurchasePlanMain(id)
message.success(t('下架成功!')) message.success(t('下架成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -329,9 +340,11 @@
try { try {
// //
await message.confirm('是否接受所选中数据?') await message.confirm('是否接受所选中数据?')
tableObject.loading = true
// //
await PurchasePlanMainApi.accPurchasePlanMain(id) await PurchasePlanMainApi.accPurchasePlanMain(id)
message.success(t('接受成功!')) message.success(t('接受成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -342,9 +355,11 @@
try { try {
// //
await message.confirm('是否驳回所选中数据?') await message.confirm('是否驳回所选中数据?')
tableObject.loading = true
// //
await PurchasePlanMainApi.rejPurchasePlanMain(id) await PurchasePlanMainApi.rejPurchasePlanMain(id)
message.success(t('驳回成功!')) message.success(t('驳回成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }

2
src/views/wms/purchasereceiptManage/supplierdeliver/supplierPackage/index.vue

@ -209,9 +209,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await PackageApi.deletePackage(id) await PackageApi.deletePackage(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

14
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -364,9 +364,11 @@ const handleDelete = async (id: number) => {
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await SupplierdeliverRequestMainApi.deleteSupplierdeliverRequestMain(id) await SupplierdeliverRequestMainApi.deleteSupplierdeliverRequestMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}
@ -377,9 +379,11 @@ const handleClo = async (id: number) => {
try { try {
// //
await message.confirm('是否关闭所选中数据?') await message.confirm('是否关闭所选中数据?')
tableObject.loading = true
// //
await SupplierdeliverRequestMainApi.cloSupplierdeliverRequestMain(id) await SupplierdeliverRequestMainApi.cloSupplierdeliverRequestMain(id)
message.success(t('关闭成功!')) message.success(t('关闭成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}
@ -390,9 +394,11 @@ const handleOpe = async (id: number) => {
try { try {
// //
await message.confirm('是否打开所选中数据?') await message.confirm('是否打开所选中数据?')
tableObject.loading = true
// //
await SupplierdeliverRequestMainApi.opeSupplierdeliverRequestMain(id) await SupplierdeliverRequestMainApi.opeSupplierdeliverRequestMain(id)
message.success(t('打开成功!')) message.success(t('打开成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}
@ -403,9 +409,11 @@ const handleSub = async (id: number) => {
try { try {
// //
await message.confirm('是否提交审批所选中数据?') await message.confirm('是否提交审批所选中数据?')
tableObject.loading = true
// //
await SupplierdeliverRequestMainApi.subSupplierdeliverRequestMain(id) await SupplierdeliverRequestMainApi.subSupplierdeliverRequestMain(id)
message.success(t('提交审批成功!')) message.success(t('提交审批成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}
@ -416,9 +424,11 @@ const handleApp = async (id: number) => {
try { try {
// //
await message.confirm('是否审批通过所选中数据?') await message.confirm('是否审批通过所选中数据?')
tableObject.loading = true
// //
await SupplierdeliverRequestMainApi.appSupplierdeliverRequestMain(id) await SupplierdeliverRequestMainApi.appSupplierdeliverRequestMain(id)
message.success(t('审批通过成功!')) message.success(t('审批通过成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}
@ -429,9 +439,11 @@ const handleTur = async (id: number) => {
try { try {
// //
await message.confirm('是否驳回所选中数据?') await message.confirm('是否驳回所选中数据?')
tableObject.loading = true
// //
await SupplierdeliverRequestMainApi.rejSupplierdeliverRequestMain(id) await SupplierdeliverRequestMainApi.rejSupplierdeliverRequestMain(id)
message.success(t('驳回成功!')) message.success(t('驳回成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}
@ -442,9 +454,11 @@ const genRecords = async (id: number) => {
try { try {
// //
await message.confirm('是否处理所选中数据?') await message.confirm('是否处理所选中数据?')
tableObject.loading = true
// //
await SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id) await SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id)
message.success(t('处理成功!')) message.success(t('处理成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}

2
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/point.vue

@ -66,6 +66,7 @@ const genLabel = async () => {
try { try {
// //
await message.confirm('是否为此数据生成标签?') await message.confirm('是否为此数据生成标签?')
tableObject.loading = true
// //
await SupplierdeliverRequestMainApi.genLabel(genLabelId.value) await SupplierdeliverRequestMainApi.genLabel(genLabelId.value)
dialogVisible.value = false dialogVisible.value = false
@ -73,6 +74,7 @@ const genLabel = async () => {
message.success(t('生成标签成功!')) message.success(t('生成标签成功!'))
dialogVisiblePoint.value = false dialogVisiblePoint.value = false
isShow.value = false isShow.value = false
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }

14
src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue

@ -269,9 +269,11 @@
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await PurchaseclaimRequestMainApi.deletePurchaseclaimRequestMain(id) await PurchaseclaimRequestMainApi.deletePurchaseclaimRequestMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -283,9 +285,11 @@
try { try {
// //
await message.confirm('是否关闭所选中数据?') await message.confirm('是否关闭所选中数据?')
tableObject.loading = true
// //
await PurchaseclaimRequestMainApi.cloPurchaseclaimRequestMain(id) await PurchaseclaimRequestMainApi.cloPurchaseclaimRequestMain(id)
message.success(t('关闭成功!')) message.success(t('关闭成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -296,9 +300,11 @@
try { try {
// //
await message.confirm('是否打开所选中数据?') await message.confirm('是否打开所选中数据?')
tableObject.loading = true
// //
await PurchaseclaimRequestMainApi.opePurchaseclaimRequestMain(id) await PurchaseclaimRequestMainApi.opePurchaseclaimRequestMain(id)
message.success(t('打开成功!')) message.success(t('打开成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -309,9 +315,11 @@
try { try {
// //
await message.confirm('是否提交审批所选中数据?') await message.confirm('是否提交审批所选中数据?')
tableObject.loading = true
// //
await PurchaseclaimRequestMainApi.subPurchaseclaimRequestMain(id) await PurchaseclaimRequestMainApi.subPurchaseclaimRequestMain(id)
message.success(t('提交审批成功!')) message.success(t('提交审批成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -322,9 +330,11 @@
try { try {
// //
await message.confirm('是否审批通过所选中数据?') await message.confirm('是否审批通过所选中数据?')
tableObject.loading = true
// //
await PurchaseclaimRequestMainApi.appPurchaseclaimRequestMain(id) await PurchaseclaimRequestMainApi.appPurchaseclaimRequestMain(id)
message.success(t('审批通过成功!')) message.success(t('审批通过成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -335,9 +345,11 @@
try { try {
// //
await message.confirm('是否驳回所选中数据?') await message.confirm('是否驳回所选中数据?')
tableObject.loading = true
// //
await PurchaseclaimRequestMainApi.rejPurchaseclaimRequestMain(id) await PurchaseclaimRequestMainApi.rejPurchaseclaimRequestMain(id)
message.success(t('驳回成功!')) message.success(t('驳回成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -348,9 +360,11 @@
try { try {
// //
await message.confirm('是否处理所选中数据?') await message.confirm('是否处理所选中数据?')
tableObject.loading = true
// //
await PurchaseclaimRequestMainApi.genRecordsPurchaseclaimRequestMain(id) await PurchaseclaimRequestMainApi.genRecordsPurchaseclaimRequestMain(id)
message.success(t('处理成功!')) message.success(t('处理成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }

14
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -226,9 +226,11 @@
try { try {
// //
await message.delConfirm() await message.delConfirm()
tableObject.loading = true
// //
await SupplierinvoiceRequestMainApi.deleteSupplierinvoiceRequestMain(id) await SupplierinvoiceRequestMainApi.deleteSupplierinvoiceRequestMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -239,9 +241,11 @@
try { try {
// //
await message.confirm('是否关闭所选中数据?') await message.confirm('是否关闭所选中数据?')
tableObject.loading = true
// //
await SupplierinvoiceRequestMainApi.cloSupplierinvoiceRequestMain(id) await SupplierinvoiceRequestMainApi.cloSupplierinvoiceRequestMain(id)
message.success(t('关闭成功!')) message.success(t('关闭成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -252,9 +256,11 @@
try { try {
// //
await message.confirm('是否打开所选中数据?') await message.confirm('是否打开所选中数据?')
tableObject.loading = true
// //
await SupplierinvoiceRequestMainApi.opeSupplierinvoiceRequestMain(id) await SupplierinvoiceRequestMainApi.opeSupplierinvoiceRequestMain(id)
message.success(t('打开成功!')) message.success(t('打开成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -265,9 +271,11 @@
try { try {
// //
await message.confirm('是否提交审批所选中数据?') await message.confirm('是否提交审批所选中数据?')
tableObject.loading = true
// //
await SupplierinvoiceRequestMainApi.subSupplierinvoiceRequestMain(id) await SupplierinvoiceRequestMainApi.subSupplierinvoiceRequestMain(id)
message.success(t('提交审批成功!')) message.success(t('提交审批成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -278,9 +286,11 @@
try { try {
// //
await message.confirm('是否审批通过所选中数据?') await message.confirm('是否审批通过所选中数据?')
tableObject.loading = true
// //
await SupplierinvoiceRequestMainApi.appSupplierinvoiceRequestMain(id) await SupplierinvoiceRequestMainApi.appSupplierinvoiceRequestMain(id)
message.success(t('审批通过成功!')) message.success(t('审批通过成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -291,9 +301,11 @@
try { try {
// //
await message.confirm('是否驳回所选中数据?') await message.confirm('是否驳回所选中数据?')
tableObject.loading = true
// //
await SupplierinvoiceRequestMainApi.rejSupplierinvoiceRequestMain(id) await SupplierinvoiceRequestMainApi.rejSupplierinvoiceRequestMain(id)
message.success(t('驳回成功!')) message.success(t('驳回成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }
@ -304,9 +316,11 @@
try { try {
// //
await message.confirm('是否处理所选中数据?') await message.confirm('是否处理所选中数据?')
tableObject.loading = true
// //
await SupplierinvoiceRequestMainApi.genRecordsSupplierinvoiceRequestMain(id) await SupplierinvoiceRequestMainApi.genRecordsSupplierinvoiceRequestMain(id)
message.success(t('处理成功!')) message.success(t('处理成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch { } } catch { }

Loading…
Cancel
Save