Browse Source

添加loading

hella_online_20240829
wangyufei 3 months ago
parent
commit
6a2b0ab689
  1. 2
      src/views/wms/basicDataManage/customerManage/customer/index.vue
  2. 2
      src/views/wms/basicDataManage/customerManage/customerdock/index.vue
  3. 2
      src/views/wms/basicDataManage/customerManage/customeritem/index.vue
  4. 2
      src/views/wms/basicDataManage/customerManage/project/index.vue
  5. 2
      src/views/wms/basicDataManage/customerManage/saleprice/index.vue
  6. 17
      src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue
  7. 17
      src/views/wms/basicDataManage/factoryModeling/dock/index.vue
  8. 17
      src/views/wms/basicDataManage/factoryModeling/location/index.vue
  9. 17
      src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue
  10. 17
      src/views/wms/basicDataManage/factoryModeling/process/index.vue
  11. 17
      src/views/wms/basicDataManage/factoryModeling/productionline/index.vue
  12. 17
      src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue
  13. 18
      src/views/wms/basicDataManage/factoryModeling/workshop/index.vue
  14. 18
      src/views/wms/basicDataManage/factoryModeling/workstation/index.vue
  15. 2
      src/views/wms/basicDataManage/itemManage/bom/index.vue
  16. 1
      src/views/wms/basicDataManage/itemManage/itemarea/index.vue
  17. 3
      src/views/wms/basicDataManage/itemManage/itembasic/index.vue
  18. 19
      src/views/wms/basicDataManage/itemManage/itempackage/index.vue
  19. 2
      src/views/wms/basicDataManage/itemManage/packageunit/index.vue
  20. 2
      src/views/wms/basicDataManage/itemManage/productionitemcodeSpareitemcode/index.vue
  21. 2
      src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue
  22. 3
      src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue
  23. 2
      src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue
  24. 2
      src/views/wms/basicDataManage/supplierManage/supplier/index.vue
  25. 2
      src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue

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

@ -185,6 +185,7 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
basicFormRef.value.formLoading = true
if (formType === 'create') {
await CustomerApi.createCustomer(data)
message.success(t('common.createSuccess'))
@ -192,6 +193,7 @@ const formsSuccess = async (formType,data) => {
await CustomerApi.updateCustomer(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
}

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

@ -188,6 +188,7 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
basicFormRef.value.formLoading = true
if (formType === 'create') {
await CustomerdockApi.createCustomerdock(data)
message.success(t('common.createSuccess'))
@ -195,6 +196,7 @@ const formsSuccess = async (formType,data) => {
await CustomerdockApi.updateCustomerdock(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
}

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

@ -194,6 +194,7 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
basicFormRef.value.formLoading = true
if (formType === 'create') {
await CustomeritemApi.createCustomeritem(data)
message.success(t('common.createSuccess'))
@ -201,6 +202,7 @@ const formsSuccess = async (formType,data) => {
await CustomeritemApi.updateCustomeritem(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
}

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

@ -185,6 +185,7 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
basicFormRef.value.formLoading = true
if (formType === 'create') {
await ProjectApi.createProject(data)
message.success(t('common.createSuccess'))
@ -192,6 +193,7 @@ const formsSuccess = async (formType,data) => {
await ProjectApi.updateProject(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
}

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

@ -189,6 +189,7 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
basicFormRef.value.formLoading = true
if (formType === 'create') {
await SalepriceApi.createSaleprice(data)
message.success(t('common.createSuccess'))
@ -196,6 +197,7 @@ const formsSuccess = async (formType,data) => {
await SalepriceApi.updateSaleprice(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
}

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

@ -188,12 +188,17 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
await AreaApi.createArea(data)
message.success(t('common.createSuccess'))
} else {
await AreaApi.updateArea(data)
message.success(t('common.updateSuccess'))
basicFormRef.value.formLoading = true
try {
if (formType === 'create') {
await AreaApi.createArea(data)
message.success(t('common.createSuccess'))
} else {
await AreaApi.updateArea(data)
message.success(t('common.updateSuccess'))
}
} finally {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()

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

@ -217,12 +217,17 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
await DockApi.createDock(data)
message.success(t('common.createSuccess'))
} else {
await DockApi.updateDock(data)
message.success(t('common.updateSuccess'))
basicFormRef.value.formLoading = true
try {
if (formType === 'create') {
await DockApi.createDock(data)
message.success(t('common.createSuccess'))
} else {
await DockApi.updateDock(data)
message.success(t('common.updateSuccess'))
}
} finally {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()

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

@ -206,12 +206,17 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
await LocationApi.createLocation(data)
message.success(t('common.createSuccess'))
} else {
await LocationApi.updateLocation(data)
message.success(t('common.updateSuccess'))
basicFormRef.value.formLoading = true
try {
if (formType === 'create') {
await LocationApi.createLocation(data)
message.success(t('common.createSuccess'))
} else {
await LocationApi.updateLocation(data)
message.success(t('common.updateSuccess'))
}
} finally {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()

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

@ -187,12 +187,17 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
await LocationgroupApi.createLocationgroup(data)
message.success(t('common.createSuccess'))
} else {
await LocationgroupApi.updateLocationgroup(data)
message.success(t('common.updateSuccess'))
basicFormRef.value.formLoading = true
try {
if (formType === 'create') {
await LocationgroupApi.createLocationgroup(data)
message.success(t('common.createSuccess'))
} else {
await LocationgroupApi.updateLocationgroup(data)
message.success(t('common.updateSuccess'))
}
} finally {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()

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

@ -194,12 +194,17 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
await ProcessApi.createProcess(data)
message.success(t('common.createSuccess'))
} else {
await ProcessApi.updateProcess(data)
message.success(t('common.updateSuccess'))
basicFormRef.value.formLoading = true
try {
if (formType === 'create') {
await ProcessApi.createProcess(data)
message.success(t('common.createSuccess'))
} else {
await ProcessApi.updateProcess(data)
message.success(t('common.updateSuccess'))
}
} finally {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()

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

@ -187,12 +187,17 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
await ProductionlineApi.createProductionline(data)
message.success(t('common.createSuccess'))
} else {
await ProductionlineApi.updateProductionline(data)
message.success(t('common.updateSuccess'))
basicFormRef.value.formLoading = true
try {
if (formType === 'create') {
await ProductionlineApi.createProductionline(data)
message.success(t('common.createSuccess'))
} else {
await ProductionlineApi.updateProductionline(data)
message.success(t('common.updateSuccess'))
}
} finally {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()

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

@ -176,12 +176,17 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
await WarehouseApi.createWarehouse(data)
message.success(t('common.createSuccess'))
} else {
await WarehouseApi.updateWarehouse(data)
message.success(t('common.updateSuccess'))
basicFormRef.value.formLoading = true
try {
if (formType === 'create') {
await WarehouseApi.createWarehouse(data)
message.success(t('common.createSuccess'))
} else {
await WarehouseApi.updateWarehouse(data)
message.success(t('common.updateSuccess'))
}
} finally {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()

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

@ -177,12 +177,18 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
await WorkshopApi.createWorkshop(data)
message.success(t('common.createSuccess'))
} else {
await WorkshopApi.updateWorkshop(data)
message.success(t('common.updateSuccess'))
basicFormRef.value.formLoading = true
try {
if (formType === 'create') {
await WorkshopApi.createWorkshop(data)
message.success(t('common.createSuccess'))
} else {
await WorkshopApi.updateWorkshop(data)
message.success(t('common.updateSuccess'))
}
} finally {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()

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

@ -195,12 +195,18 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
await WorkstationApi.createWorkstation(data)
message.success(t('common.createSuccess'))
} else {
await WorkstationApi.updateWorkstation(data)
message.success(t('common.updateSuccess'))
basicFormRef.value.formLoading = true
try {
if (formType === 'create') {
await WorkstationApi.createWorkstation(data)
message.success(t('common.createSuccess'))
} else {
await WorkstationApi.updateWorkstation(data)
message.success(t('common.updateSuccess'))
}
} finally {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()

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

@ -196,6 +196,7 @@ const formsSuccess = async (formType,data) => {
message.error('父物料代码和子物料代码不能相同!')
return
}
basicFormRef.value.formLoading = true
if (formType === 'create') {
await BomApi.createBom(data)
message.success(t('common.createSuccess'))
@ -203,6 +204,7 @@ const formsSuccess = async (formType,data) => {
await BomApi.updateBom(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
}

1
src/views/wms/basicDataManage/itemManage/itemarea/index.vue

@ -367,6 +367,7 @@ const tableSelectionDelete = (selection) => {
//
const submitForm = async (formType, data) => {
data.subList = tableData.value //
formRef.value.formLoading = true
try {
if (formType === 'create') {
await ItemareaApi.createItemarea(data)

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

@ -237,6 +237,7 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
basicFormRef.value.formLoading = true
if (formType === 'create') {
await ItembasicApi.createItembasic(data)
message.success(t('common.createSuccess'))
@ -244,6 +245,8 @@ const formsSuccess = async (formType,data) => {
await ItembasicApi.updateItembasic(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
}

19
src/views/wms/basicDataManage/itemManage/itempackage/index.vue

@ -220,12 +220,19 @@ const formsSuccess = async (formType, data) => {
}
if (data.activeTime == 0) data.activeTime = null
if (data.expireTime == 0) data.expireTime = null
if (formType === 'create') {
await ItempackagingApi.createItempackaging(data)
message.success(t('common.createSuccess'))
} else {
await ItempackagingApi.updateItempackaging(data)
message.success(t('common.updateSuccess'))
basicFormRef.value.formLoading = true
try {
if (formType === 'create') {
await ItempackagingApi.createItempackaging(data)
message.success(t('common.createSuccess'))
} else {
await ItempackagingApi.updateItempackaging(data)
message.success(t('common.updateSuccess'))
}
} finally {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()

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

@ -213,6 +213,7 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
basicFormRef.value.formLoading = true
if (formType === 'create') {
await PackageunitApi.createPackageunit(data)
message.success(t('common.createSuccess'))
@ -220,6 +221,7 @@ const formsSuccess = async (formType,data) => {
await PackageunitApi.updatePackageunit(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
}

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

@ -188,6 +188,7 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
basicFormRef.value.formLoading = true
if (formType === 'create') {
await ProductionitemcodeSpareitemcodeApi.createProductionitemcodeSpareitemcode(data)
message.success(t('common.createSuccess'))
@ -195,6 +196,7 @@ const formsSuccess = async (formType,data) => {
await ProductionitemcodeSpareitemcodeApi.updateProductionitemcodeSpareitemcode(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
}

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

@ -189,6 +189,7 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
basicFormRef.value.formLoading = true
if (formType === 'create') {
await ProductionlineitemApi.createProductionlineitem(data)
message.success(t('common.createSuccess'))
@ -196,6 +197,7 @@ const formsSuccess = async (formType,data) => {
await ProductionlineitemApi.updateProductionlineitem(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
}

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

@ -182,6 +182,7 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
basicFormRef.value.formLoading = true
if (formType === 'create') {
await StdcostpriceApi.createStdcostprice(data)
message.success(t('common.createSuccess'))
@ -190,6 +191,8 @@ const formsSuccess = async (formType,data) => {
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
basicFormRef.value.formLoading = false
getList()
}

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

@ -189,6 +189,7 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
basicFormRef.value.formLoading = true
if (formType === 'create') {
await PurchasepriceApi.createPurchaseprice(data)
message.success(t('common.createSuccess'))
@ -196,6 +197,7 @@ const formsSuccess = async (formType,data) => {
await PurchasepriceApi.updatePurchaseprice(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
}

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

@ -180,6 +180,7 @@ const formsSuccess = async (formType, data) => {
}
if (data.activeTime == 0) data.activeTime = null
if (data.expireTime == 0) data.expireTime = null
basicFormRef.value.formLoading = true
if (formType === 'create') {
await SupplierApi.createSupplier(data)
message.success(t('common.createSuccess'))
@ -188,6 +189,7 @@ const formsSuccess = async (formType, data) => {
await SupplierApi.updateSupplier(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
}

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

@ -192,6 +192,7 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
basicFormRef.value.formLoading = true
if (formType === 'create') {
if(routeName.value.includes('SCP')){
await SupplieritemApi.createSupplieritemSCP(data)
@ -207,6 +208,7 @@ const formsSuccess = async (formType,data) => {
}
message.success(t('common.updateSuccess'))
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
}

Loading…
Cancel
Save