diff --git a/src/api/wms/finishedShipmentDetail/index.ts b/src/api/wms/finishedShipmentDetail/index.ts new file mode 100644 index 000000000..fffcf28ee --- /dev/null +++ b/src/api/wms/finishedShipmentDetail/index.ts @@ -0,0 +1,60 @@ +import request from '@/config/axios' + +export interface FinishedShipmentDetailVO { + id: number + masterId: number + materialCode: string + materialName: string + backNumber: string + materialDescription: string + shipmentQuantity: number + unitPrice: number + lockedQuantity: number + available: string + deletionTime: Date + deleterId: string + extraProperties: string + concurrencyStamp: number + siteId: string +} + +// 查询已发未结发货记录子列表 +export const getFinishedShipmentDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/finished-shipment-record-detail/senior', data }) + } else { + return await request.get({ url: `/wms/finished-shipment-record-detail/page`, params }) + } +} + +// 查询已发未结发货记录子详情 +export const getFinishedShipmentDetail = async (id: number) => { + return await request.get({ url: `/wms/finished-shipment-record-detail/get?id=` + id }) +} + +// 新增已发未结发货记录子 +export const createFinishedShipmentDetail = async (data: FinishedShipmentDetailVO) => { + return await request.post({ url: `/wms/finished-shipment-record-detail/create`, data }) +} + +// 修改已发未结发货记录子 +export const updateFinishedShipmentDetail = async (data: FinishedShipmentDetailVO) => { + return await request.put({ url: `/wms/finished-shipment-record-detail/update`, data }) +} + +// 删除已发未结发货记录子 +export const deleteFinishedShipmentDetail = async (id: number) => { + return await request.delete({ url: `/wms/finished-shipment-record-detail/delete?id=` + id }) +} + +// 导出已发未结发货记录子 Excel +export const exportFinishedShipmentDetail = async (params) => { + return await request.download({ url: `/wms/finished-shipment-record-detail/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/finished-shipment-record-detail/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/finishedShipmentMain/index.ts b/src/api/wms/finishedShipmentMain/index.ts new file mode 100644 index 000000000..b3b1666e9 --- /dev/null +++ b/src/api/wms/finishedShipmentMain/index.ts @@ -0,0 +1,56 @@ +import request from '@/config/axios' + +export interface FinishedShipmentMainVO { + id: number + orderNumber: string + shipmentRecordNumber: string + shipmentType: string + customerOrderNumber: string + available: string + deletionTime: Date + deleterId: string + extraProperties: string + concurrencyStamp: number + siteId: string +} + +// 查询已发未结发货记录主列表 +export const getFinishedShipmentMainPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/finished-shipment-record-main/senior', data }) + } else { + return await request.get({ url: `/wms/finished-shipment-record-main/page`, params }) + } +} + +// 查询已发未结发货记录主详情 +export const getFinishedShipmentMain = async (id: number) => { + return await request.get({ url: `/wms/finished-shipment-record-main/get?id=` + id }) +} + +// 新增已发未结发货记录主 +export const createFinishedShipmentMain = async (data: FinishedShipmentMainVO) => { + return await request.post({ url: `/wms/finished-shipment-record-main/create`, data }) +} + +// 修改已发未结发货记录主 +export const updateFinishedShipmentMain = async (data: FinishedShipmentMainVO) => { + return await request.put({ url: `/wms/finished-shipment-record-main/update`, data }) +} + +// 删除已发未结发货记录主 +export const deleteFinishedShipmentMain = async (id: number) => { + return await request.delete({ url: `/wms/finished-shipment-record-main/delete?id=` + id }) +} + +// 导出已发未结发货记录主 Excel +export const exportFinishedShipmentMain = async (params) => { + return await request.download({ url: `/wms/finished-shipment-record-main/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/finished-shipment-record-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/views/wms/deliversettlementManage/saleEstimate/finishedShipmentMain/finishedShipmentMain.data.ts b/src/views/wms/deliversettlementManage/saleEstimate/finishedShipmentMain/finishedShipmentMain.data.ts index ab7989872..f97d78199 100644 --- a/src/views/wms/deliversettlementManage/saleEstimate/finishedShipmentMain/finishedShipmentMain.data.ts +++ b/src/views/wms/deliversettlementManage/saleEstimate/finishedShipmentMain/finishedShipmentMain.data.ts @@ -2,7 +2,7 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter } from '@/utils/formatTime' // 表单校验 -export const UnfinishedShipmentMainRules = reactive({ +export const FinishedShipmentMainRules = reactive({ orderNumber: [required], shipmentRecordNumber: [required], shipmentType: [required], @@ -11,7 +11,7 @@ export const UnfinishedShipmentMainRules = reactive({ concurrencyStamp: [required] }) -export const UnfinishedShipmentMain = useCrudSchemas(reactive([ +export const FinishedShipmentMain = useCrudSchemas(reactive([ { label: '单据号', @@ -22,6 +22,15 @@ export const UnfinishedShipmentMain = useCrudSchemas(reactive([ }, isSearch: true }, + { + label: '已发未结记录单号', + field: 'unfinishedNumber', + sort: 'custom', + table: { + width: 150, + }, + isSearch: true + }, { label: '发货记录单号', field: 'shipmentRecordNumber', @@ -32,7 +41,7 @@ export const UnfinishedShipmentMain = useCrudSchemas(reactive([ isSearch: true }, { - label: '发货方式', + label: '发货类型', field: 'shipmentType', sort: 'custom', isSearch: true, @@ -69,7 +78,7 @@ export const UnfinishedShipmentMain = useCrudSchemas(reactive([ // 表单校验 -export const UnfinishedShipmentDetailRules = reactive({ +export const FinishedShipmentDetailRules = reactive({ materialCode: [required], materialName: [required], backNumber: [required], @@ -81,7 +90,7 @@ export const UnfinishedShipmentDetailRules = reactive({ concurrencyStamp: [required] }) -export const UnfinishedShipmentDetail = useCrudSchemas(reactive([ +export const FinishedShipmentDetail = useCrudSchemas(reactive([ { label: '物料代码', @@ -126,9 +135,36 @@ export const UnfinishedShipmentDetail = useCrudSchemas(reactive([ } } }, + // { + // label: '发货数量', + // field: 'shipmentQuantity', + // sort: 'custom', + // table: { + // width: 150, + // }, + // isSearch: true, + // form: { + // component: 'InputNumber', + // value: 0 + // } + // }, + + // { + // label: '锁定数量', + // field: 'lockedQuantity', + // sort: 'custom', + // table: { + // width: 150, + // }, + // isSearch: true, + // form: { + // component: 'InputNumber', + // value: 0 + // } + // }, { - label: '发货数量', - field: 'shipmentQuantity', + label: '已结数量', + field: 'qty', sort: 'custom', table: { width: 150, @@ -148,36 +184,6 @@ export const UnfinishedShipmentDetail = useCrudSchemas(reactive([ }, isSearch: true }, - { - label: '锁定数量', - field: 'lockedQuantity', - sort: 'custom', - table: { - width: 150, - }, - isSearch: true, - form: { - component: 'InputNumber', - value: 0 - } - }, - // { - // label: '是否可用', - // field: 'available', - // sort: 'custom', - // dictType: DICT_TYPE.TRUE_FALSE, - // dictClass: 'string', // 默认都是字符串类型其他暂不考虑 - // isSearch: true, - // form: { - // component: 'Switch', - // value: 'TRUE', - // componentProps: { - // inactiveValue: 'FALSE', - // activeValue: 'TRUE' - // } - // } - // }, - { label: '创建时间', field: 'createTime', @@ -195,7 +201,8 @@ export const UnfinishedShipmentDetail = useCrudSchemas(reactive([ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] } }, - isForm: false + isForm: false, + hiddenInMain:true }, { label: '创建人', @@ -205,6 +212,8 @@ export const UnfinishedShipmentDetail = useCrudSchemas(reactive([ width: 150 }, isTable: true, + hiddenInMain:true + }, // { // label: '操作', diff --git a/src/views/wms/deliversettlementManage/saleEstimate/finishedShipmentMain/index.vue b/src/views/wms/deliversettlementManage/saleEstimate/finishedShipmentMain/index.vue index f45b7826a..23f0d3730 100644 --- a/src/views/wms/deliversettlementManage/saleEstimate/finishedShipmentMain/index.vue +++ b/src/views/wms/deliversettlementManage/saleEstimate/finishedShipmentMain/index.vue @@ -1,7 +1,7 @@