Browse Source

YT-273采购换货

intex_online20241111
zhaoyiran 1 month ago
parent
commit
091e6207b5
  1. 9
      src/api/wms/purchaseBarterRecordDetail/index.ts
  2. 5
      src/api/wms/purchaseBarterRequestMain/index.ts
  3. 1
      src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRequest/index.vue

9
src/api/wms/purchaseBarterRecordDetail/index.ts

@ -22,6 +22,11 @@ export const getPurchaseBarterRecordDetailPage = async (params) => {
} }
} }
export async function exportPurchaseBarterRecord(params: any) { export async function exportPurchaseBarterRecord(params) {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({url: `/wms/purchase-barter-record-detail/export-excel-senior`, data})
} else {
return await request.download({ url: `/wms/purchase-barter-record-detail/export-excel`, params })
}
} }

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

@ -47,8 +47,13 @@ export const deletePurchaseBarterRequestMain = async (id: number) => {
// 导出采购换货申请主 Excel // 导出采购换货申请主 Excel
export const exportPurchaseBarterRequestMain = async (params) => { export const exportPurchaseBarterRequestMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({url: `/wms/purchase-barter-request-main/export-excel-senior`, data})
} else {
return await request.download({ url: `/wms/purchase-barter-request-main/export-excel`, params }) return await request.download({ url: `/wms/purchase-barter-request-main/export-excel`, params })
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

1
src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRequest/index.vue

@ -154,6 +154,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
if(formField === 'supplierCode'){ if(formField === 'supplierCode'){
setV['supplierCode'] = val[0]['code'] setV['supplierCode'] = val[0]['code']
setV['supplierName'] = val[0]['name'] setV['supplierName'] = val[0]['name']
tableData.value = []
} }
formRef.setValues(setV) formRef.setValues(setV)
}) })

Loading…
Cancel
Save