Browse Source

新版采购退货申请--更换新增提交接口

hella_online_20240816
wangyufei 3 months ago
parent
commit
ca6f7a8aab
  1. 4
      src/api/wms/purchasereturnRequestMain/index.ts
  2. 3
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/index.vue

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

@ -52,6 +52,10 @@ export const getPurchasereturnRequestMain = async (id: number) => {
export const createPurchasereturnRequestMain = async (data: PurchasereturnRequestMainVO) => {
return await request.post({ url: `/wms/purchasereturn-request-main/create`, data })
}
// 新增采购退货申请主 --新版
export const createPurchasereturnRequestMainNew = async (data: PurchasereturnRequestMainVO) => {
return await request.post({ url: `/wms/purchasereturn-request-main/createReturnNew`, data })
}
// 修改采购退货申请主
export const updatePurchasereturnRequestMain = async (data: PurchasereturnRequestMainVO) => {

3
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/index.vue

@ -263,6 +263,7 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro
const setV = {}
setV[formField] = val[0][searchField]
if(formField=='itemCode'){
setV['itemName'] = val[0]['name']
//
let res = await PurchasereturnRequestDetailApi.getPurchasereturnSupplierByCode({
itemCode:val[0][searchField]
@ -899,7 +900,7 @@ const submitForm = async (formType, submitData) => {
try {
if (formType === 'create') {
data.returnSourceType='1'
await PurchasereturnRequestMainApi.createPurchasereturnRequestMain(data)
await PurchasereturnRequestMainApi.createPurchasereturnRequestMainNew(data)
message.success(t('common.createSuccess'))
} else {
data.returnSourceType='1'

Loading…
Cancel
Save