From 031061c6a24ac3f19fec7c607794814195776722 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Thu, 21 Nov 2024 16:28:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E5=8F=91=E5=B7=B2=E7=BB=93=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/finishedShipmentDetail/index.ts | 60 +++++ src/api/wms/finishedShipmentMain/index.ts | 56 ++++ .../finishedShipmentMain.data.ts | 85 +++--- .../finishedShipmentMain/index.vue | 48 ++-- .../unfinishedShipmentMain/index.vue | 1 + .../unfinishedShipmentMain.data.ts | 43 ++- .../unfinishedShipmentDetail1/index.vue | 244 ------------------ .../unfinishedShipmentDetail.data.ts | 151 ----------- 8 files changed, 203 insertions(+), 485 deletions(-) create mode 100644 src/api/wms/finishedShipmentDetail/index.ts create mode 100644 src/api/wms/finishedShipmentMain/index.ts delete mode 100644 src/views/wms/deliversettlementManage/unfinishedShipmentDetail1/index.vue delete mode 100644 src/views/wms/deliversettlementManage/unfinishedShipmentDetail1/unfinishedShipmentDetail.data.ts 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 @@