diff --git a/src/api/wms/purchaseBarterRecordDetail/index.ts b/src/api/wms/purchaseBarterRecordDetail/index.ts new file mode 100644 index 000000000..91bd582f9 --- /dev/null +++ b/src/api/wms/purchaseBarterRecordDetail/index.ts @@ -0,0 +1,27 @@ +import request from '@/config/axios' + +export interface PurchaseBarterRecordDetailVO { + masterId: number + itemCode: string + itemName: string + uom: string + batch: string + packUnit: string + qty: number + reason: string +} + +// 查询采购换货申请明细列表 +export const getPurchaseBarterRecordDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/purchase-barter-record-detail/senior', data }) + } else { + return await request.get({ url: `/wms/purchase-barter-record-detail/page`, params }) + } +} + +export async function exportPurchaseBarterRecord(params: any) { + +} diff --git a/src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRecord/index.vue b/src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRecord/index.vue new file mode 100644 index 000000000..6fcd4a008 --- /dev/null +++ b/src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRecord/index.vue @@ -0,0 +1,158 @@ + + + diff --git a/src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRecord/purchaseBarterRecordMain.data.ts b/src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRecord/purchaseBarterRecordMain.data.ts new file mode 100644 index 000000000..7a0f30cca --- /dev/null +++ b/src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRecord/purchaseBarterRecordMain.data.ts @@ -0,0 +1,95 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' + +export const PurchaseBarterRecordMain = useCrudSchemas(reactive([ + { + label: '记录单号', + field: 'number', + sort: 'custom', + isSearch: true, + isForm: false, + table: { + width: 180, + fixed: 'left' + } + }, + { + label: '申请单号', + field: 'number', + sort: 'custom', + isSearch: true, + isForm: false, + table: { + width: 180, + } + }, + { + label: '状态', + field: 'status', + sort: 'custom', + isSearch: true, + isForm: false, + dictType: DICT_TYPE.REQUEST_STATUS, + dictClass: 'string', + }, + { + label: '供应商代码', + field: 'supplierCode', + sort: 'custom', + isSearch: true, + }, + { + label: '供应商名称', + field: 'supplierName', + sort: 'custom', + isSearch: false, + } +])) + +export const PurchaseBarterRecordDetail = useCrudSchemas(reactive([ + { + label: '物料代码', + field: 'itemCode', + sort: 'custom', + isSearch: true, + table: { + width: 150 + }, + }, + { + label: '物料名称', + field: 'itemName', + sort: 'custom', + isSearch: false, + }, + { + label: '计量单位', + field: 'uom', + sort: 'custom', + isSearch: false, + }, + { + label: '批次', + field: 'batch', + sort: 'custom', + isSearch: true, + }, + { + label: '包装规格', + field: 'packUnit', + sort: 'custom', + isSearch: false, + }, + { + label: '换货数量', + field: 'qty', + sort: 'custom', + isSearch: false, + }, + { + label: '换货原因 ', + field: 'reason', + sort: 'custom', + isSearch: false, + }, +])) +