Browse Source

流程操作按钮 添加遮罩

master
陈薪名 10 months ago
parent
commit
a4e9084dea
  1. 2
      src/components/Detail/src/Detail.vue
  2. 3
      src/views/wms/basicDataManage/customerManage/customer/index.vue
  3. 2
      src/views/wms/basicDataManage/customerManage/customerdock/index.vue
  4. 2
      src/views/wms/basicDataManage/customerManage/customeritem/index.vue
  5. 2
      src/views/wms/basicDataManage/customerManage/project/index.vue
  6. 2
      src/views/wms/basicDataManage/customerManage/saleprice/index.vue
  7. 2
      src/views/wms/basicDataManage/documentSetting/businesstype/index.vue
  8. 2
      src/views/wms/basicDataManage/documentSetting/documentsetting/index.vue
  9. 2
      src/views/wms/basicDataManage/documentSetting/jobsetting/index.vue
  10. 2
      src/views/wms/basicDataManage/documentSetting/recordsetting/index.vue
  11. 2
      src/views/wms/basicDataManage/documentSetting/requestsetting/index.vue
  12. 2
      src/views/wms/basicDataManage/documentSetting/switch/index.vue
  13. 2
      src/views/wms/basicDataManage/documentSetting/transactiontype/index.vue
  14. 2
      src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue
  15. 2
      src/views/wms/basicDataManage/factoryModeling/dock/index.vue
  16. 2
      src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue
  17. 2
      src/views/wms/basicDataManage/factoryModeling/location/index.vue
  18. 2
      src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue
  19. 2
      src/views/wms/basicDataManage/factoryModeling/process/index.vue
  20. 2
      src/views/wms/basicDataManage/factoryModeling/productionline/index.vue
  21. 2
      src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue
  22. 2
      src/views/wms/basicDataManage/factoryModeling/workshop/index.vue
  23. 2
      src/views/wms/basicDataManage/factoryModeling/workstation/index.vue
  24. 2
      src/views/wms/basicDataManage/itemManage/bom/index.vue
  25. 2
      src/views/wms/basicDataManage/itemManage/itembasic/index.vue
  26. 2
      src/views/wms/basicDataManage/itemManage/itempackaging/index.vue
  27. 2
      src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue
  28. 2
      src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue
  29. 2
      src/views/wms/basicDataManage/labelManage/barbasic/index.vue
  30. 2
      src/views/wms/basicDataManage/labelManage/barcode/index.vue
  31. 2
      src/views/wms/basicDataManage/labelManage/labeltype/index.vue
  32. 2
      src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue
  33. 2
      src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue
  34. 2
      src/views/wms/basicDataManage/labelManage/utensilPackage/index.vue
  35. 2
      src/views/wms/basicDataManage/orderManage/carrier/index.vue
  36. 2
      src/views/wms/basicDataManage/orderManage/owner/index.vue
  37. 2
      src/views/wms/basicDataManage/orderManage/shift/index.vue
  38. 2
      src/views/wms/basicDataManage/orderManage/team/index.vue
  39. 2
      src/views/wms/basicDataManage/strategySetting/condition/index.vue
  40. 2
      src/views/wms/basicDataManage/strategySetting/configuration/index.vue
  41. 2
      src/views/wms/basicDataManage/strategySetting/configurationsetting/index.vue
  42. 2
      src/views/wms/basicDataManage/strategySetting/paramsetting/index.vue
  43. 2
      src/views/wms/basicDataManage/strategySetting/rule/index.vue
  44. 2
      src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue
  45. 2
      src/views/wms/basicDataManage/supplierManage/supplier/index.vue
  46. 2
      src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue
  47. 2
      src/views/wms/basicDataManage/systemSetting/accountcalendar/index.vue
  48. 2
      src/views/wms/basicDataManage/systemSetting/currencyexchange/index.vue
  49. 2
      src/views/wms/basicDataManage/systemSetting/supplierUser/index.vue
  50. 2
      src/views/wms/basicDataManage/systemSetting/systemcalendar/index.vue
  51. 22
      src/views/wms/countManage/count/countPlanMain/index.vue
  52. 3
      src/views/wms/countManage/count/countRecordMain/index.vue
  53. 23
      src/views/wms/countManage/count/countRequestMain/index.vue
  54. 20
      src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue
  55. 20
      src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue
  56. 20
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
  57. 18
      src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue
  58. 20
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue
  59. 23
      src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue
  60. 2
      src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue
  61. 12
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue
  62. 14
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue
  63. 6
      src/views/wms/inventoryjobManage/transferissue/transferissueJobMain/index.vue
  64. 14
      src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/index.vue
  65. 14
      src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRequestMain/index.vue
  66. 26
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue
  67. 26
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue
  68. 20
      src/views/wms/issueManage/issue/issueRequestMain/index.vue

2
src/components/Detail/src/Detail.vue

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

3
src/views/wms/basicDataManage/customerManage/customer/index.vue

@ -188,7 +188,9 @@ const handleDelete = async (id: number) => {
//
await message.delConfirm()
//
tableObject.loading = true
await CustomerApi.deleteCustomer(id)
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
@ -201,6 +203,7 @@ const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await CustomerApi.exportCustomer(tableObject.params)

2
src/views/wms/basicDataManage/customerManage/customerdock/index.vue

@ -196,7 +196,9 @@ const handleDelete = async (id: number) => {
//
await message.delConfirm()
//
tableObject.loading = true
await CustomerdockApi.deleteCustomerdock(id)
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()

2
src/views/wms/basicDataManage/customerManage/customeritem/index.vue

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

2
src/views/wms/basicDataManage/customerManage/project/index.vue

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

2
src/views/wms/basicDataManage/customerManage/saleprice/index.vue

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

2
src/views/wms/basicDataManage/documentSetting/businesstype/index.vue

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

2
src/views/wms/basicDataManage/documentSetting/documentsetting/index.vue

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

2
src/views/wms/basicDataManage/documentSetting/jobsetting/index.vue

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

2
src/views/wms/basicDataManage/documentSetting/recordsetting/index.vue

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

2
src/views/wms/basicDataManage/documentSetting/requestsetting/index.vue

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

2
src/views/wms/basicDataManage/documentSetting/switch/index.vue

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

2
src/views/wms/basicDataManage/documentSetting/transactiontype/index.vue

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

2
src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue

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

2
src/views/wms/basicDataManage/factoryModeling/dock/index.vue

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

2
src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue

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

2
src/views/wms/basicDataManage/factoryModeling/location/index.vue

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

2
src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue

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

2
src/views/wms/basicDataManage/factoryModeling/process/index.vue

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

2
src/views/wms/basicDataManage/factoryModeling/productionline/index.vue

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

2
src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue

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

2
src/views/wms/basicDataManage/factoryModeling/workshop/index.vue

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

2
src/views/wms/basicDataManage/factoryModeling/workstation/index.vue

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

2
src/views/wms/basicDataManage/itemManage/bom/index.vue

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

2
src/views/wms/basicDataManage/itemManage/itembasic/index.vue

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

2
src/views/wms/basicDataManage/itemManage/itempackaging/index.vue

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

2
src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue

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

2
src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue

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

2
src/views/wms/basicDataManage/labelManage/barbasic/index.vue

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

2
src/views/wms/basicDataManage/labelManage/barcode/index.vue

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

2
src/views/wms/basicDataManage/labelManage/labeltype/index.vue

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

2
src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue

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

2
src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue

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

2
src/views/wms/basicDataManage/labelManage/utensilPackage/index.vue

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

2
src/views/wms/basicDataManage/orderManage/carrier/index.vue

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

2
src/views/wms/basicDataManage/orderManage/owner/index.vue

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

2
src/views/wms/basicDataManage/orderManage/shift/index.vue

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

2
src/views/wms/basicDataManage/orderManage/team/index.vue

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

2
src/views/wms/basicDataManage/strategySetting/condition/index.vue

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

2
src/views/wms/basicDataManage/strategySetting/configuration/index.vue

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

2
src/views/wms/basicDataManage/strategySetting/configurationsetting/index.vue

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

2
src/views/wms/basicDataManage/strategySetting/paramsetting/index.vue

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

2
src/views/wms/basicDataManage/strategySetting/rule/index.vue

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

2
src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue

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

2
src/views/wms/basicDataManage/supplierManage/supplier/index.vue

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

2
src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue

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

2
src/views/wms/basicDataManage/systemSetting/accountcalendar/index.vue

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

2
src/views/wms/basicDataManage/systemSetting/currencyexchange/index.vue

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

2
src/views/wms/basicDataManage/systemSetting/supplierUser/index.vue

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

2
src/views/wms/basicDataManage/systemSetting/systemcalendar/index.vue

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

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

@ -280,55 +280,75 @@ const butttondata = (row) => {
// -
const buttonTableClick = async (val, row) => {
if (val == 'mainPlanOpe') { //
tableObject.loading = true
CountPlanMainApi.open(row.id).then(() => {
message.success(t('打开成功'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'mainPlanClo') { //
await message.confirm('确认要关闭吗?')
tableObject.loading = true
CountPlanMainApi.close(row.id).then(() => {
message.success(t('关闭成功'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'mainPlanSub') { //
await message.confirm(t('common.confirmSubmit'))
tableObject.loading = true
await CountPlanMainApi.submit(row.id)
message.success(t('提交审批成功'))
tableObject.loading = false
await getList()
} else if (val == 'mainPlanTur') { //
await message.confirm('确认要驳回吗?')
tableObject.loading = true
CountPlanMainApi.reject(row.id).then(() => {
message.success(t('驳回成功'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'mainPlanApp') { //
await message.confirm('确认要审批通过吗?')
tableObject.loading = true
CountPlanMainApi.agree(row.id).then(() => {
message.success(t('审批已通过'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'mainPlanPub') { //
await message.confirm('确认要发布吗?')
tableObject.loading = true
CountPlanMainApi.publish(row.id).then(() => {
message.success(t('发布成功'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'mainPlanRes') { //
await message.confirm('确认要重置吗?')
tableObject.loading = true
CountPlanMainApi.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') { //
@ -435,8 +455,10 @@ const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
tableObject.loading = true
//
await CountPlanMainApi.deleteCountPlanMain(id)
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()

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

@ -136,10 +136,13 @@ const butttondata = (row) => {
// -
const buttonTableClick = async (val, row) => {
if(val == 'countAdjustRequest'){
tableObject.loading = true
CountRecordMainApi.generateCountRecordMain(row.id).then(()=>{
message.success(t('生成成功'))
tableObject.loading = false
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
}

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

@ -299,67 +299,85 @@ const buttonTableClick = async (val, row) => {
if (val == 'mainClose') {
//
await message.confirm('确认要关闭吗?')
tableObject.loading = true
CountRequestMainApi.close(row.id)
.then(() => {
message.success(t('关闭成功'))
tableObject.loading = false
getList()
})
.catch((err) => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'mainReAdd') {
//
await message.confirm('确认要重新添加吗?')
tableObject.loading = true
CountRequestMainApi.reAdd(row.id)
.then(() => {
message.success(t('添加成功'))
tableObject.loading = false
getList()
})
.catch((err) => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'mainSubmit') {
//
await message.confirm('确认要提交审批吗?')
tableObject.loading = true
CountRequestMainApi.submit(row.id)
.then(() => {
message.success(t('提交审批成功'))
tableObject.loading = false
getList()
})
.catch((err) => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'mainTurnDown') {
//
await message.confirm('确认要驳回吗?')
tableObject.loading = true
CountRequestMainApi.refused(row.id)
.then(() => {
message.success(t('驳回成功'))
tableObject.loading = false
getList()
})
.catch((err) => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'mainApprove') {
//
await message.confirm('确认要审批通过吗?')
tableObject.loading = true
CountRequestMainApi.agree(row.id)
.then(() => {
message.success(t('审批已通过'))
tableObject.loading = false
getList()
})
.catch((err) => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'mainHandle') {
//
await message.confirm('确认要处理吗?')
tableObject.loading = true
CountRequestMainApi.handle(row.id)
.then(() => {
message.success(t('处理成功'))
tableObject.loading = false
getList()
})
.catch((err) => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'mainReCount') {
@ -399,12 +417,15 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainThaw') {
//
await message.confirm('确认要解冻吗?')
tableObject.loading = true
CountRequestMainApi.thaw(row.id)
.then(() => {
message.success(t('解冻成功'))
tableObject.loading = false
getList()
})
.catch((err) => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'edit') {
@ -434,8 +455,10 @@ const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
tableObject.loading = true
//
await CountRequestMainApi.deleteCountRequestMain(id)
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()

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

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

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

@ -206,50 +206,68 @@ const butttondata = (row) => {
const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { //
await message.confirm('确认要关闭吗?')
tableObject.loading = true
CustomerreceiptRequestMainApi.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
CustomerreceiptRequestMainApi.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
CustomerreceiptRequestMainApi.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
CustomerreceiptRequestMainApi.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
CustomerreceiptRequestMainApi.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
CustomerreceiptRequestMainApi.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,8 +295,10 @@ const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
tableObject.loading = true
//
await CustomerreceiptRequestMainApi.deleteCustomerreceiptRequestMain(id)
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()

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

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

18
src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue

@ -222,29 +222,39 @@ const butttondata = (row) => {
const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { //
await message.confirm('确认要关闭吗?')
tableObject.loading = true
CustomersettleRequestMainApi.close(row.id).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
}) } else if (val == 'mainReAdd') { //
await message.confirm('确认要重新添加吗?')
tableObject.loading = true
CustomersettleRequestMainApi.reAdd(row.id).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'mainSubmit') { //
await message.confirm('确认要提交审批吗?')
tableObject.loading = true
CustomersettleRequestMainApi.submit(row.id).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'mainTurnDown') { //
await message.confirm('确认要重新添加吗?')
tableObject.loading = true
CustomersettleRequestMainApi.refused(row.id).then(() => {
message.success(t('common.updateSuccess'))
getList()
@ -252,17 +262,23 @@ const buttonTableClick = async (val, row) => {
console.log(err)
})
} else if (val == 'mainApprove') { //
tableObject.loading = true
CustomersettleRequestMainApi.agree(row.id).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'mainHandle') { //
tableObject.loading = true
CustomersettleRequestMainApi.handle(row.id).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
}).catch(err => {
tableObject.loading = false
console.log(err)
})
} else if (val == 'edit') { //
@ -290,8 +306,10 @@ const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
tableObject.loading = true
//
await CustomersettleRequestMainApi.deleteCustomersettleRequestMain(id)
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()

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

@ -250,50 +250,68 @@ const butttondata = (row) => {
const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { //
await message.confirm('确认要关闭吗?')
tableObject.loading = true
DeliverRequestMainApi.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
DeliverRequestMainApi.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
DeliverRequestMainApi.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
DeliverRequestMainApi.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
DeliverRequestMainApi.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
DeliverRequestMainApi.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') { //
@ -361,8 +379,10 @@ const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
tableObject.loading = true
//
await DeliverRequestMainApi.deleteDeliverRequestMain(id)
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()

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

@ -208,58 +208,79 @@ const butttondata = (row) => {
// -
const buttonTableClick = async (val, row) => {
if (val == 'mainPlanOpe') { //
tableObject.loading = true
DeliverPlanMainApi.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
DeliverPlanMainApi.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') { //
await message.confirm('确认要提交审批吗?')
tableObject.loading = true
DeliverPlanMainApi.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
DeliverPlanMainApi.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') { //
await message.confirm('确认要审批通过吗?')
tableObject.loading = true
DeliverPlanMainApi.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
DeliverPlanMainApi.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
DeliverPlanMainApi.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') { //
@ -287,8 +308,10 @@ const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
tableObject.loading = true
//
await DeliverPlanMainApi.deleteDeliverPlanMain(id)
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()

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

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

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

@ -222,8 +222,10 @@ const buttonTableClick = async (val, row) => {
const handleClose = async (id: number) => {
try {
await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await InventoryinitRequestMainApi.closeInventoryinitRequestMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -233,8 +235,10 @@ const handleClose = async (id: number) => {
const handleReAdd = async (id: number) => {
try {
await message.confirm(t('common.confirmReAdd'))
tableObject.loading = true
await InventoryinitRequestMainApi.reAddInventoryinitRequestMain(id)
message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -244,8 +248,10 @@ const handleReAdd = async (id: number) => {
const handleSubmit = async (id: number) => {
try {
await message.confirm(t('common.confirmSubmit'))
tableObject.loading = true
await InventoryinitRequestMainApi.submitInventoryinitRequestMain(id)
message.success(t('common.updateSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -255,8 +261,10 @@ const handleSubmit = async (id: number) => {
const handleAgree = async (id: number) => {
try {
await message.confirm(t('common.confirmAgree'))
tableObject.loading = true
await InventoryinitRequestMainApi.agreeInventoryinitRequestMain(id)
message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -266,8 +274,10 @@ const handleAgree = async (id: number) => {
const handleHandle = async (id: number) => {
try {
await message.confirm(t('common.confirmHandle'))
tableObject.loading = true
await InventoryinitRequestMainApi.handleInventoryinitRequestMain(id)
message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -277,8 +287,10 @@ const handleHandle = async (id: number) => {
const handleRefused = async (id: number) => {
try {
await message.confirm(t('common.confirmRefused'))
tableObject.loading = true
await InventoryinitRequestMainApi.refusedInventoryinitRequestMain(id)
message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList()
} catch {}
}

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

@ -234,8 +234,10 @@ const buttonTableClick = async (val, row) => {
const handleClose = async (id: number) => {
try {
await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await ScrapRequestMainApi.closeScrapRequestMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -244,8 +246,10 @@ const handleClose = async (id: number) => {
const handleReAdd = async (id: number) => {
try {
await message.confirm(t('common.confirmReAdd'))
tableObject.loading = true
await ScrapRequestMainApi.reAddScrapRequestMain(id)
message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -254,8 +258,10 @@ const handleReAdd = async (id: number) => {
const handleSubmit = async (id: number) => {
try {
await message.confirm(t('common.confirmSubmit'))
tableObject.loading = true
await ScrapRequestMainApi.submitScrapRequestMain(id)
message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -264,8 +270,10 @@ const handleSubmit = async (id: number) => {
const handleRefused = async (id: number) => {
try {
await message.confirm(t('common.confirmRefused'))
tableObject.loading = true
await ScrapRequestMainApi.refusedScrapRequestMain(id)
message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -274,8 +282,10 @@ const handleRefused = async (id: number) => {
const handleAgree = async (id: number) => {
try {
await message.confirm(t('common.confirmAgree'))
tableObject.loading = true
await ScrapRequestMainApi.agreeScrapRequestMain(id)
message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -284,8 +294,10 @@ const handleAgree = async (id: number) => {
const handleHandle = async (id: number) => {
try {
await message.confirm(t('common.confirmHandle'))
tableObject.loading = true
await ScrapRequestMainApi.handleScrapRequestMain(id)
message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -308,8 +320,10 @@ const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
tableObject.loading = true
//
await ScrapRequestMainApi.deleteScrapRequestMain(id)
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()

6
src/views/wms/inventoryjobManage/transferissue/transferissueJobMain/index.vue

@ -209,8 +209,10 @@ const buttonTableClick = async (val, row) => {
const handleAbandon = async (id: number) => {
try {
await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await TransferissueJobMainApi.abandonTransferissueJobMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -219,8 +221,10 @@ const handleAbandon = async (id: number) => {
const handleClose = async (id: number) => {
try {
await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await TransferissueJobMainApi.closeTransferissueJobMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -229,8 +233,10 @@ const handleClose = async (id: number) => {
const handleAccept = async (id: number) => {
try {
await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await TransferissueJobMainApi.acceptTransferissueJobMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
} catch {}
}

14
src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/index.vue

@ -248,8 +248,10 @@ const buttonTableClick = async (val, row) => {
const handleClose = async (id: number) => {
try {
await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await TransferissueRequestMainApi.closeTransferissueRequestMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -258,8 +260,10 @@ const handleClose = async (id: number) => {
const handleReAdd = async (id: number) => {
try {
await message.confirm(t('common.confirmReAdd'))
tableObject.loading = true
await TransferissueRequestMainApi.reAddTransferissueRequestMain(id)
message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -268,8 +272,10 @@ const handleReAdd = async (id: number) => {
const handleSubmit = async (id: number) => {
try {
await message.confirm(t('common.confirmSubmit'))
tableObject.loading = true
await TransferissueRequestMainApi.submitTransferissueRequestMain(id)
message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -278,8 +284,10 @@ const handleSubmit = async (id: number) => {
const handleRefused = async (id: number) => {
try {
await message.confirm(t('common.confirmRefused'))
tableObject.loading = true
await TransferissueRequestMainApi.refusedTransferissueRequestMain(id)
message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -288,8 +296,10 @@ const handleRefused = async (id: number) => {
const handleAgree = async (id: number) => {
try {
await message.confirm(t('common.confirmAgree'))
tableObject.loading = true
await TransferissueRequestMainApi.agreeTransferissueRequestMain(id)
message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -298,8 +308,10 @@ const handleAgree = async (id: number) => {
const handleHandle = async (id: number) => {
try {
await message.confirm(t('common.confirmHandle'))
tableObject.loading = true
await TransferissueRequestMainApi.handleTransferissueRequestMain(id)
message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -322,8 +334,10 @@ const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
tableObject.loading = true
//
await TransferissueRequestMainApi.deleteTransferissueRequestMain(id)
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()

14
src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRequestMain/index.vue

@ -240,8 +240,10 @@ const buttonTableClick = async (val, row) => {
const handleHandle = async (id: number) => {
try {
await message.confirm(t('common.confirmHandle'))
tableObject.loading = true
await TransferreceiptRequestMainApi.handleTransferreceiptRequestMain(id)
message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -250,8 +252,10 @@ const handleHandle = async (id: number) => {
const handleAgree = async (id: number) => {
try {
await message.confirm(t('common.confirmAgree'))
tableObject.loading = true
await TransferreceiptRequestMainApi.agreeTransferreceiptRequestMain(id)
message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -260,8 +264,10 @@ const handleAgree = async (id: number) => {
const handleRefused = async (id: number) => {
try {
await message.confirm(t('common.confirmRefused'))
tableObject.loading = true
await TransferreceiptRequestMainApi.refusedTransferreceiptRequestMain(id)
message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -270,8 +276,10 @@ const handleRefused = async (id: number) => {
const handleSubmit = async (id: number) => {
try {
await message.confirm(t('common.confirmSubmit'))
tableObject.loading = true
await TransferreceiptRequestMainApi.submitTransferreceiptRequestMain(id)
message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -280,8 +288,10 @@ const handleSubmit = async (id: number) => {
const handleReAdd = async (id: number) => {
try {
await message.confirm(t('common.confirmReAdd'))
tableObject.loading = true
await TransferreceiptRequestMainApi.reAddTransferreceiptRequestMain(id)
message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -290,8 +300,10 @@ const handleReAdd = async (id: number) => {
const handleClose = async (id: number) => {
try {
await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await TransferreceiptRequestMainApi.closeTransferreceiptRequestMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
@ -315,8 +327,10 @@ const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
tableObject.loading = true
//
await TransferreceiptRequestMainApi.deleteTransferreceiptRequestMain(id)
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()

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

@ -239,63 +239,63 @@ const buttonTableClick = async (val, row) => {
/** 处理按钮操作 */
const handleHandle = async (id: number) => {
try {
await message.confirm(t('common.confirmHandle'))
tableObject.loading = true
await UnplannedissueRequestMainApi.handleUnplannedissueRequestMain(id)
message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
/** 审批通过按钮操作 */
const handleAgree = async (id: number) => {
try {
await message.confirm(t('common.confirmAgree'))
tableObject.loading = true
await UnplannedissueRequestMainApi.agreeUnplannedissueRequestMain(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 UnplannedissueRequestMainApi.refusedUnplannedissueRequestMain(id)
message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
/** 提交按钮操作 */
const handleSubmit = async (id: number) => {
try {
await message.confirm(t('common.confirmSubmit'))
tableObject.loading = true
await UnplannedissueRequestMainApi.submitUnplannedissueRequestMain(id)
message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
/** 关闭按钮操作 */
const handleClose = async (id: number) => {
try {
await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await UnplannedissueRequestMainApi.closeUnplannedissueRequestMain(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 UnplannedissueRequestMainApi.reAddUnplannedissueRequestMain(id)
message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
/** 添加/修改操作 */
@ -316,9 +316,11 @@ const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
tableObject.loading = true
//
await UnplannedissueRequestMainApi.deleteUnplannedissueRequestMain(id)
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
} catch {}

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

@ -402,62 +402,62 @@ const buttonTableClick = async (val, row) => {
/** 关闭按钮操作 */
const handleClose = async (id: number) => {
try {
await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await UnplannedreceiptRequestMainApi.closeUnplannedreceiptRequestMain(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 UnplannedreceiptRequestMainApi.reAddUnplannedreceiptRequestMain(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 UnplannedreceiptRequestMainApi.submitUnplannedreceiptRequestMain(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 UnplannedreceiptRequestMainApi.refusedUnplannedreceiptRequestMain(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 UnplannedreceiptRequestMainApi.agreeUnplannedreceiptRequestMain(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 UnplannedreceiptRequestMainApi.handleUnplannedreceiptRequestMain(id)
message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList()
} catch {}
}
/** 添加/修改操作 */
@ -478,9 +478,11 @@ const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
tableObject.loading = true
//
await UnplannedreceiptRequestMainApi.deleteUnplannedreceiptRequestMain(id)
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
} catch {}

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

@ -211,50 +211,68 @@ const butttondata = (row) => {
const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { //
await message.confirm('确认要关闭吗?')
tableObject.loading = true
IssueRequestMainApi.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
IssueRequestMainApi.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
IssueRequestMainApi.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
IssueRequestMainApi.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
IssueRequestMainApi.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
IssueRequestMainApi.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,8 +300,10 @@ const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
tableObject.loading = true
//
await IssueRequestMainApi.deleteIssueRequestMain(id)
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()

Loading…
Cancel
Save