Browse Source

发运结算一直转bug

master
chenfang 10 months ago
parent
commit
865b9027a7
  1. 7
      src/api/wms/supplieritem/index.ts
  2. 3
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
  3. 2
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue
  4. 2
      src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue

7
src/api/wms/supplieritem/index.ts

@ -68,7 +68,10 @@ export const importTemplate = () => {
// 查询供应商物品列表 // 查询供应商物品列表
export const selectItembasicTypeToSupplieritem = async (params) => { export const selectItembasicTypeToSupplieritem = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.post({ url: `/wms/supplieritem/pageItembasicTypeToSupplieritemSenior`, data })
} else {
return await request.get({ url: `/wms/supplieritem/pageItembasicTypeToSupplieritem`, params }) return await request.get({ url: `/wms/supplieritem/pageItembasicTypeToSupplieritem`, params })
}
} }

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

@ -369,11 +369,12 @@ const submitForm = async (formType, data) => {
if(obj.qty == 0){ if(obj.qty == 0){
message.error(`数量不能为0!`) message.error(`数量不能为0!`)
flag.value = true flag.value = true
formRef.value.formLoading = false
return; return;
} }
}) })
if(flag.value){ if(flag.value){
formRef.value.formLoading = false
return return
} }
try { try {

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

@ -388,11 +388,11 @@ const submitForm = async (formType, data) => {
if(obj.qty == 0){ if(obj.qty == 0){
message.warning(`数量不能为0!`) message.warning(`数量不能为0!`)
flag.value = true flag.value = true
formRef.value.formLoading = false
return; return;
} }
}) })
if(flag.value){ if(flag.value){
formRef.value.formLoading = false
return return
} }
try { try {

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

@ -333,11 +333,11 @@ const submitForm = async (formType, data) => {
if(obj.qty == 0){ if(obj.qty == 0){
message.error(`数量不能为0!`) message.error(`数量不能为0!`)
flag.value = true flag.value = true
formRef.value.formLoading = false
return; return;
} }
}) })
if(flag.value){ if(flag.value){
formRef.value.formLoading = false
return return
} }
var isHave =DeliverPlanMain.allSchemas.formSchema.some(function (item) { var isHave =DeliverPlanMain.allSchemas.formSchema.some(function (item) {

Loading…
Cancel
Save