Browse Source

loading添加

hella_online_20240829
wangyufei 3 months ago
parent
commit
f02e0d088e
  1. 19
      src/views/wms/basicDataManage/customerManage/customerDeliveryForecast/index.vue
  2. 2
      src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue
  3. 1
      src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue
  4. 2
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
  5. 3
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue
  6. 2
      src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue
  7. 3
      src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue
  8. 3
      src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue
  9. 2
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue
  10. 1
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
  11. 1
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue
  12. 2
      src/views/wms/issueManage/repleinsh/repleinshRequestMain/index.vue
  13. 2
      src/views/wms/productionManage/productionplan/productionMain/index.vue
  14. 2
      src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue
  15. 2
      src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue
  16. 1
      src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue
  17. 1
      src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRequestMain/index.vue
  18. 1
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue
  19. 1
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue
  20. 2
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue
  21. 1
      src/views/wms/productionManage/productredress/productredressRequestMain/index.vue
  22. 2
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue
  23. 1
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
  24. 1
      src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue
  25. 1
      src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue
  26. 1
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue

19
src/views/wms/basicDataManage/customerManage/customerDeliveryForecast/index.vue

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

2
src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue

@ -614,9 +614,9 @@ const submitForm = async (formType, data) => {
}
})
if (flag.value) {
basicFormRef.value.formLoading = false
return
}
basicFormRef.value.formLoading = true
try {
if (formType === 'create') {
if (tableData.value.length <= 0) {

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

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

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

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

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

@ -532,7 +532,6 @@ const submitForm = async (formType, submitData) => {
data.businessType = businessType.value
console.log(data);
if (isExist) {
formRef.value.formLoading = false
return message.warning('物料代码重复')
}
data.subList.forEach(obj => {
@ -543,9 +542,9 @@ const submitForm = async (formType, submitData) => {
}
})
if(flag.value){
formRef.value.formLoading = false
return
}
formRef.value.formLoading = true
try {
if (formType === 'create') {
if(tableData.value.length <= 0){

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

@ -501,7 +501,6 @@ const submitForm = async (formType, submitData) => {
}
})
if(flag.value){
formRef.value.formLoading = false
return
}
var isHave =DeliverPlanMain.allSchemas.formSchema.some(function (item) {
@ -517,6 +516,7 @@ const submitForm = async (formType, submitData) => {
if(!data.beginTime)data.beginTime = null;
if(!data.planDate)data.planDate = null;
if(!data.endTime)data.endTime = null;
formRef.value.formLoading = true
try {
if (formType === 'create') {
await DeliverPlanMainApi.createDeliverPlanMain(data)

3
src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue

@ -354,9 +354,10 @@ const submitForm = async (formType, submitData) => {
if(rs.length > 1) isExist = true
})
if (isExist) {
basicFormRef.value.formLoading = false
// basicFormRef.value.formLoading = false
return message.warning('物料代码重复')
}
basicFormRef.value.formLoading = true
try {
if (formType === 'create') {
if(tableData.value.length <= 0){

3
src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue

@ -457,7 +457,6 @@ const submitForm = async (formType, submitData) => {
if(rs.length > 1) isExist = true
})
if (isExist) {
formRef.value.formLoading = false
return message.warning('物料代码重复')
}
data.subList.forEach(obj => {
@ -468,9 +467,9 @@ const submitForm = async (formType, submitData) => {
}
})
if(flag.value){
formRef.value.formLoading = false
return
}
formRef.value.formLoading = true
try {
if (formType === 'create') {
if(tableData.value.length <= 0){

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

@ -499,6 +499,8 @@ const submitForm = async (formType, submitData) => {
data.id = data.masterId
}
data.subList = tableData.value //
formRef.value.formLoading = true
try {
if (formType === 'create') {
await PreparetoissueMainApi.createPreparetoissueMain(data).then(async (res) => {

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

@ -661,6 +661,7 @@ const submitForm = async (formType, submitData) => {
}
// 退 isOK
data.isOK = true
formRef.value.formLoading = true
try {
if (formType === 'create') {
//

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

@ -591,6 +591,7 @@ const submitForm = async (formType, submitData) => {
data.subList.forEach(item => {
item.productionLineCode = data.productionLineCode
})
formRef.value.formLoading = true
try {
if (formType === 'create') {
//

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

@ -391,9 +391,9 @@ const submitForm = async (formType, submitData) => {
// }
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 RepleinshRequestMainApi.createRepleinshRequestMain(data)

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

@ -597,9 +597,9 @@ const submitForm = async (formType, submitData) => {
}
if(tableData.value.find(item => (item.planQty <= 0))) {
message.warning('数量必须大于0')
formRef.value.formLoading = false
return
}
formRef.value.formLoading = true
try {
if (formType === 'create') {
data.subList = tableData.value //

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

@ -595,9 +595,9 @@ const submitForm = async (formType, submitData) => {
}
if(tableData.value.find(item => (item.planQty <= 0))) {
message.warning('数量必须大于0')
formRef.value.formLoading = false
return
}
formRef.value.formLoading = true
try {
if (formType === 'create') {
data.subList = tableData.value //

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

@ -588,9 +588,9 @@ const submitForm = async (formType, submitData) => {
}
if(tableData.value.find(item => (item.planQty <= 0))) {
message.warning('数量必须大于0')
formRef.value.formLoading = false
return
}
formRef.value.formLoading = true
try {
if (formType === 'create') {
data.subList = tableData.value //

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

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

1
src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRequestMain/index.vue

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

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

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

1
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue

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

2
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue

@ -596,9 +596,9 @@ const submitForm = async (formType, submitData) => {
data.subList = tableData.value //
if(data.subList.find(item => (item.qty <= 0))) {
message.warning('数量必须大于0')
formRef.value.formLoading = false
return
}
formRef.value.formLoading = true
try {
if (formType === 'create') {
data.productionLineCode = data.subList[0].productionLineCode;

1
src/views/wms/productionManage/productredress/productredressRequestMain/index.vue

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

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

@ -711,9 +711,9 @@ const submitForm = async (formType, submitData) => {
})
if (!childListRs) {
message.warning('请填写Bom信息!')
formRef.value.formLoading = false
return
}
formRef.value.formLoading = true
try {
if (formType === 'create') {
if(data.subList.length == 0){

1
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

@ -758,6 +758,7 @@ const submitForm = async (formType, submitData) => {
row['expireDate'] = row['expireTime']?addDay(row['produceDate'],row['expireTime']).valueOf():dayjs('2099-12-31').valueOf()
})
data.subList = tableData.value //
formRef.value.formLoading = true
try {
if (formType === 'create') {
data.orderTypeM='1';

1
src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue

@ -876,6 +876,7 @@ const submitForm = async (formType, submitData) => {
return
}
data.subList = tableData.value //
formRef.value.formLoading = true
try {
if (formType === 'create') {
let flag = false

1
src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue

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

1
src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue

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

Loading…
Cancel
Save