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 {
//
await message.delConfirm()
tableObject.loading = true
//
await ContainerBindRecordMainApi.deleteContainerBindRecordMain(id)
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
} catch {}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -198,62 +198,62 @@
/** 关闭按钮操作 */
const handleClose = async (id : number) => {
try {
await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await InspectRequestMainApi.closeInspectRequestMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
} catch { }
}
/** 重新添加按钮操作 */
const handleReAdd = async (id : number) => {
try {
await message.confirm(t('common.confirmReAdd'))
tableObject.loading = true
await InspectRequestMainApi.reAddInspectRequestMain(id)
message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList()
} catch { }
}
/** 审批通过按钮操作 */
const handleAgree = async (id : number) => {
try {
await message.confirm(t('common.confirmAgree'))
tableObject.loading = true
await InspectRequestMainApi.agreeInspectRequestMain(id)
message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList()
} catch { }
}
/** 审批驳回按钮操作 */
const handleRefused = async (id : number) => {
try {
await message.confirm(t('common.confirmRefused'))
tableObject.loading = true
await InspectRequestMainApi.refusedInspectRequestMain(id)
message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList()
} catch { }
}
/** 处理按钮操作 */
const handleHandle = async (id : number) => {
try {
await message.confirm(t('common.confirmHandle'))
tableObject.loading = true
await InspectRequestMainApi.handleInspectRequestMain(id)
message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList()
} catch { }
}
/** 提交按钮操作 */
const handleSubmit = async (id : number) => {
try {
await message.confirm(t('common.confirmSubmit'))
tableObject.loading = true
await InspectRequestMainApi.submitInspectRequestMain(id)
message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList()
} catch { }
}
/** 添加/修改操作 */
@ -274,9 +274,11 @@
try {
//
await message.delConfirm()
tableObject.loading = true
//
await InspectRequestMainApi.deleteInspectRequestMain(id)
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
} 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) => {
try {
await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await PurchasereceiptRequestMainApi.closePurchasereceiptRequestMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
/** 重新添加按钮操作 */
const handleReAdd = async (id: number) => {
try {
await message.confirm(t('common.confirmReAdd'))
tableObject.loading = true
await PurchasereceiptRequestMainApi.reAddPurchasereceiptRequestMain(id)
message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
/** 审批通过按钮操作 */
const handleAgree = async (id: number) => {
try {
await message.confirm(t('common.confirmAgree'))
tableObject.loading = true
await PurchasereceiptRequestMainApi.agreePurchasereceiptRequestMain(id)
message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
/** 审批驳回按钮操作 */
const handleRefused = async (id: number) => {
try {
await message.confirm(t('common.confirmRefused'))
tableObject.loading = true
await PurchasereceiptRequestMainApi.refusedPurchasereceiptRequestMain(id)
message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
/** 处理按钮操作 */
const handleHandle = async (id: number) => {
try {
await message.confirm(t('common.confirmHandle'))
tableObject.loading = true
await PurchasereceiptRequestMainApi.handlePurchasereceiptRequestMain(id)
message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
/** 提交按钮操作 */
const handleSubmit = async (id: number) => {
try {
await message.confirm(t('common.confirmSubmit'))
tableObject.loading = true
await PurchasereceiptRequestMainApi.submitPurchasereceiptRequestMain(id)
message.success(t('common.submitSuccess'))
tableObject.loading = false
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) => {
try {
await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await PurchasereturnRequestMainApi.closePurchasereturnRequestMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -449,8 +451,10 @@ const handleClose = async (id: number) => {
const handleReAdd = async (id: number) => {
try {
await message.confirm(t('common.confirmReAdd'))
tableObject.loading = true
await PurchasereturnRequestMainApi.reAddPurchasereturnRequestMain(id)
message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -459,8 +463,10 @@ const handleReAdd = async (id: number) => {
const handleAgree = async (id: number) => {
try {
await message.confirm(t('common.confirmAgree'))
tableObject.loading = true
await PurchasereturnRequestMainApi.agreePurchasereturnRequestMain(id)
message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -469,8 +475,10 @@ const handleAgree = async (id: number) => {
const handleRefused = async (id: number) => {
try {
await message.confirm(t('common.confirmRefused'))
tableObject.loading = true
await PurchasereturnRequestMainApi.refusedPurchasereturnRequestMain(id)
message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -479,8 +487,10 @@ const handleRefused = async (id: number) => {
const handleHandle = async (id: number) => {
try {
await message.confirm(t('common.confirmHandle'))
tableObject.loading = true
await PurchasereturnRequestMainApi.handlePurchasereturnRequestMain(id)
message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -489,8 +499,10 @@ const handleHandle = async (id: number) => {
const handleSubmit = async (id: number) => {
try {
await message.confirm(t('common.confirmSubmit'))
tableObject.loading = true
await PurchasereturnRequestMainApi.submitPurchasereturnRequestMain(id)
message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList()
} 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) => {
try {
await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await PutawayRequestMainApi.closePutawayRequestMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
/** 重新添加按钮操作 */
const handleReAdd = async (id: number) => {
try {
await message.confirm(t('common.confirmReAdd'))
tableObject.loading = true
await PutawayRequestMainApi.reAddPutawayRequestMain(id)
message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
/** 审批通过按钮操作 */
const handleAgree = async (id: number) => {
try {
await message.confirm(t('common.confirmAgree'))
tableObject.loading = true
await PutawayRequestMainApi.agreePutawayRequestMain(id)
message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
/** 审批驳回按钮操作 */
const handleRefused = async (id: number) => {
try {
await message.confirm(t('common.confirmRefused'))
tableObject.loading = true
await PutawayRequestMainApi.refusedPutawayRequestMain(id)
message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
/** 处理按钮操作 */
const handleHandle = async (id: number) => {
try {
await message.confirm(t('common.confirmHandle'))
tableObject.loading = true
await PutawayRequestMainApi.handlePutawayRequestMain(id)
message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
/** 提交按钮操作 */
const handleSubmit = async (id: number) => {
try {
await message.confirm(t('common.confirmSubmit'))
tableObject.loading = true
await PutawayRequestMainApi.submitPutawayRequestMain(id)
message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
/** 详情操作 */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save