Browse Source

loading

hella_online_20240829
wangyufei 3 months ago
parent
commit
d123ba8dcf
  1. 1
      src/views/wms/countManage/count/countRequestMain/index.vue
  2. 1
      src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue
  3. 20
      src/views/wms/inventoryManage/package/index.vue
  4. 1
      src/views/wms/inventoryjobManage/containermanage/containerMainRequest/index.vue
  5. 1
      src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue
  6. 1
      src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue
  7. 1
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue
  8. 3
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/index.vue
  9. 3
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue
  10. 3
      src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/index.vue
  11. 3
      src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/index.vue
  12. 1
      src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRequestMain/index.vue
  13. 3
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue
  14. 3
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue
  15. 2
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue
  16. 1
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

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

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

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

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

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

@ -243,13 +243,19 @@ const BASE_URL = getJmreportBaseUrl()
// form
const formsSuccess = async (formType,data) => {
if (formType === 'create') {
await PackageApi.createPackage(data)
message.success(t('common.createSuccess'))
} else {
await message.confirm('包装修改后需重新打印标签,是否继续保存?')
await PackageApi.updatePackage(data)
message.success(t('包装信息已修改,请重新打印标签'))
basicFormRef.value.formLoading = true
try {
if (formType === 'create') {
await PackageApi.createPackage(data)
message.success(t('common.createSuccess'))
} else {
await message.confirm('包装修改后需重新打印标签,是否继续保存?')
await PackageApi.updatePackage(data)
message.success(t('包装信息已修改,请重新打印标签'))
}
} finally {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()

1
src/views/wms/inventoryjobManage/containermanage/containerMainRequest/index.vue

@ -466,6 +466,7 @@ const submitForm = async (formType,submitData) => {
return;
}
})
basicFormRef.value.formLoading = true
try {
if (formType === 'create') {
data.businessType = businessType.value

1
src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue

@ -419,6 +419,7 @@ const submitForm = async (formType,submitData) => {
return;
}
})
basicFormRef.value.formLoading = true
try {
if (formType === 'create') {
data.businessType = businessType.value

1
src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue

@ -444,6 +444,7 @@ const submitForm = async (formType,submitData) => {
return;
}
})
basicFormRef.value.formLoading = true
try {
if (formType === 'create') {
data.businessType = businessType.value

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

@ -442,6 +442,7 @@ const submitForm = async (formType, submitData) => {
data.id = data.masterId
}
data.subList = tableData.value //
formRef.value.formLoading = true
try {
if (formType === 'create') {
await InventoryinitRequestMainApi.createInventoryinitRequestMain(data)

3
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/index.vue

@ -402,14 +402,13 @@ const submitForm = async (formType, submitData) => {
data.subList = tableData.value //
if(tableData.value.find(item => (item.toPackUnit == item.fromPackUnit))) {
message.warning('从包装规格与到包装规格不能相同')
formRef.value.formLoading = false
return
}
if(tableData.value.find(item => (item.qty <= 0))) {
message.warning('数量必须大于0')
formRef.value.formLoading = false
return
}
formRef.value.formLoading = true
try {
if (formType === 'create') {
await PackageoverRequestMainApi.createPackageoverRequestMain(data)

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

@ -449,12 +449,13 @@ const submitForm = async (formType, submitData) => {
}
})
if(flag){
formRef.value.formLoading = false
return
}
formRef.value.formLoading = true
await ScrapRequestMainApi.createScrapRequestMain(data)
message.success(t('common.createSuccess'))
} else {
formRef.value.formLoading = true
await ScrapRequestMainApi.updateScrapRequestMain(data)
message.success(t('common.updateSuccess'))
}

3
src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/index.vue

@ -456,14 +456,15 @@ const submitForm = async (formType, submitData) => {
}
})
if(flag){
formRef.value.formLoading = false
return
}
data.dataType='2'
formRef.value.formLoading = true
await UnplannedissueRequestMainApi.createUnplannedissueRequestMain(data)
message.success(t('common.createSuccess'))
} else {
data.dataType='2'
formRef.value.formLoading = true
await UnplannedissueRequestMainApi.updateUnplannedissueRequestMain(data)
message.success(t('common.updateSuccess'))
}

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

@ -447,12 +447,13 @@ const submitForm = async (formType, submitData) => {
}
})
if(flag){
formRef.value.formLoading = false
return
}
formRef.value.formLoading = true
await TransferissueRequestMainApi.createTransferissueRequestMain(data)
message.success(t('common.createSuccess'))
} else {
formRef.value.formLoading = true
await TransferissueRequestMainApi.updateTransferissueRequestMain(data)
message.success(t('common.updateSuccess'))
}

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

@ -394,6 +394,7 @@ const submitForm = async (formType, submitData) => {
data.id = data.masterId
}
data.subList = tableData.value //
formRef.value.formLoading = true
try {
if (formType === 'create') {
await TransferreceiptRequestMainApi.createTransferreceiptRequestMain(data)

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

@ -467,14 +467,15 @@ const submitForm = async (formType, submitData) => {
}
})
if(flag){
formRef.value.formLoading = false
return
}
data.dataType='1'
formRef.value.formLoading = true
await UnplannedissueRequestMainApi.createUnplannedissueRequestMain(data)
message.success(t('common.createSuccess'))
} else {
data.dataType='1'
formRef.value.formLoading = true
await UnplannedissueRequestMainApi.updateUnplannedissueRequestMain(data)
message.success(t('common.updateSuccess'))
}

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

@ -729,12 +729,13 @@ const submitForm = async (formType, submitData) => {
}
})
if(flag){
formRef.value.formLoading = false
return
}
formRef.value.formLoading = true
await UnplannedreceiptRequestMainApi.createUnplannedreceiptRequestMain(data)
message.success(t('common.createSuccess'))
} else {
formRef.value.formLoading = true
await UnplannedreceiptRequestMainApi.updateUnplannedreceiptRequestMain(data)
message.success(t('common.updateSuccess'))
}

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

@ -472,9 +472,9 @@ const submitForm = async (formType, submitData) => {
}
})
if(flag.value){
formRef.value.formLoading = false
return
}
formRef.value.formLoading = true
try {
if (formType === 'create') {
console.log(data)

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

@ -722,6 +722,7 @@ const submitForm = async (formType, submitData) => {
formRef.value.formLoading = false
return
}
formRef.value.formLoading = true
try {
if (formType === 'create') {
await InventorymoveRequestMainApi.createInventorymoveRequestMain(data)

Loading…
Cancel
Save