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. 5
      src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue
  7. 5
      src/views/wms/basicDataManage/factoryModeling/dock/index.vue
  8. 5
      src/views/wms/basicDataManage/factoryModeling/location/index.vue
  9. 5
      src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue
  10. 5
      src/views/wms/basicDataManage/factoryModeling/process/index.vue
  11. 5
      src/views/wms/basicDataManage/factoryModeling/productionline/index.vue
  12. 5
      src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue
  13. 6
      src/views/wms/basicDataManage/factoryModeling/workshop/index.vue
  14. 6
      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. 7
      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()
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -195,6 +195,8 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
basicFormRef.value.formLoading = true
try {
if (formType === 'create') {
await WorkstationApi.createWorkstation(data)
message.success(t('common.createSuccess'))
@ -202,6 +204,10 @@ const formsSuccess = async (formType,data) => {
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()
}

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

@ -220,6 +220,9 @@ const formsSuccess = async (formType, data) => {
}
if (data.activeTime == 0) data.activeTime = null
if (data.expireTime == 0) data.expireTime = null
basicFormRef.value.formLoading = true
try {
if (formType === 'create') {
await ItempackagingApi.createItempackaging(data)
message.success(t('common.createSuccess'))
@ -227,6 +230,10 @@ const formsSuccess = async (formType, data) => {
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