Browse Source

缺陷:HL-5834M类型退货编辑功能开发

hella_online_20240924
zhaoxuebing 2 months ago
parent
commit
f90f1ecb79
  1. 5
      src/api/wms/purchasereturnRequestMain/index.ts
  2. 6
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMOrderTypeMain/index.vue

5
src/api/wms/purchasereturnRequestMain/index.ts

@ -71,6 +71,11 @@ export const updatePurchasereturnRequestMainNew = async (data: PurchasereturnReq
return await request.post({ url: `/wms/purchasereturn-request-main/updateReturnNew`, data }) return await request.post({ url: `/wms/purchasereturn-request-main/updateReturnNew`, data })
} }
// 修改M类型采购收货申请主
export const updatePurchasereturnRequestMainNewMType = async (data: PurchasereturnRequestMainVO) => {
return await request.post({ url: `/wms/purchasereturn-request-main/updateReturnNewMtype`, data })
}
// 删除采购退货申请主 // 删除采购退货申请主
export const deletePurchasereturnRequestMain = async (id: number) => { export const deletePurchasereturnRequestMain = async (id: number) => {
return await request.delete({ url: `/wms/purchasereturn-request-main/delete?id=` + id }) return await request.delete({ url: `/wms/purchasereturn-request-main/delete?id=` + id })

6
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMOrderTypeMain/index.vue

@ -998,12 +998,12 @@ const submitForm = async (formType, submitData) => {
formRef.value.formLoading = true formRef.value.formLoading = true
try { try {
if (formType === 'create') { if (formType === 'create') {
data.orderTypeM='1'; data.orderTypeM='3';
await PurchasereturnRequestMainApi.createPurchasereturnRequestMainMType(data) await PurchasereturnRequestMainApi.createPurchasereturnRequestMainMType(data)
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
} else { } else {
data.orderTypeM='1'; data.orderTypeM='3';
await PurchasereceiptRequestMainApi.updatePurchasereceiptRequestMain(data) await PurchasereturnRequestMainApi.updatePurchasereturnRequestMainNewMType(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
} }
formRef.value.dialogVisible = false formRef.value.dialogVisible = false

Loading…
Cancel
Save