From 08940753d5afde32279a6f359b7c4b1ef8601adc Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Mon, 28 Oct 2024 17:29:59 +0800 Subject: [PATCH 001/225] =?UTF-8?q?=E7=BC=BA=E9=99=B7HL-6340?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/balanceChangeHistory/index.ts | 62 +++++ .../balanceChangeHistory.data.ts | 149 +++++++++++ .../balanceChangeHistory/index.vue | 244 ++++++++++++++++++ 3 files changed, 455 insertions(+) create mode 100644 src/api/wms/balanceChangeHistory/index.ts create mode 100644 src/views/wms/inventoryManage/balanceChangeHistory/balanceChangeHistory.data.ts create mode 100644 src/views/wms/inventoryManage/balanceChangeHistory/index.vue diff --git a/src/api/wms/balanceChangeHistory/index.ts b/src/api/wms/balanceChangeHistory/index.ts new file mode 100644 index 000000000..0d66d2c2d --- /dev/null +++ b/src/api/wms/balanceChangeHistory/index.ts @@ -0,0 +1,62 @@ +import request from '@/config/axios' + +export interface BalanceChangeHistoryVO { + beforeItemCode: string + beforeBatch: string + beforePackingNumber: string + beforeInventoryStatus: string + beforeLocationCode: string + beforeQty: number + beforeTransNumber: string + beforeId: number + afterItemCode: string + afterBatch: string + afterPackingNumber: string + afterInventoryStatus: string + afterLocationCode: string + afterQty: number + afterTransNumber: string + afterId: number + remark: string +} + +// 查询库存余额变更记录列表 +export const getBalanceChangeHistoryPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/balance-change-history/senior', data }) + } else { + return await request.get({ url: `/wms/balance-change-history/page`, params }) + } +} + +// 查询库存余额变更记录详情 +export const getBalanceChangeHistory = async (id: number) => { + return await request.get({ url: `/wms/balance-change-history/get?id=` + id }) +} + +// 新增库存余额变更记录 +export const createBalanceChangeHistory = async (data: BalanceChangeHistoryVO) => { + return await request.post({ url: `/wms/balance-change-history/create`, data }) +} + +// 修改库存余额变更记录 +export const updateBalanceChangeHistory = async (data: BalanceChangeHistoryVO) => { + return await request.put({ url: `/wms/balance-change-history/update`, data }) +} + +// 删除库存余额变更记录 +export const deleteBalanceChangeHistory = async (id: number) => { + return await request.delete({ url: `/wms/balance-change-history/delete?id=` + id }) +} + +// 导出库存余额变更记录 Excel +export const exportBalanceChangeHistory = async (params) => { + return await request.download({ url: `/wms/balance-change-history/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/balance-change-history/get-import-template' }) +} \ No newline at end of file diff --git a/src/views/wms/inventoryManage/balanceChangeHistory/balanceChangeHistory.data.ts b/src/views/wms/inventoryManage/balanceChangeHistory/balanceChangeHistory.data.ts new file mode 100644 index 000000000..fd59cecba --- /dev/null +++ b/src/views/wms/inventoryManage/balanceChangeHistory/balanceChangeHistory.data.ts @@ -0,0 +1,149 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const BalanceChangeHistoryRules = reactive({ +}) + +export const BalanceChangeHistory = useCrudSchemas(reactive([ + { + label: '变更前_物料代码', + field: 'beforeItemCode', + sort: 'custom', + isSearch: true, + }, + { + label: '变更前_批次', + field: 'beforeBatch', + sort: 'custom', + isSearch: true, + }, + { + label: '变更前_包装号', + field: 'beforePackingNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '变更前_库存状态', + field: 'beforeInventoryStatus', + sort: 'custom', + isSearch: true, + form: { + component: 'Radio' + }, + }, + { + label: '变更前_库位代码', + field: 'beforeLocationCode', + sort: 'custom', + isSearch: true, + }, + { + label: '变更前_数量', + field: 'beforeQty', + sort: 'custom', + isSearch: true, + }, + { + label: '变更前_事务号', + field: 'beforeTransNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '变更前_id', + field: 'beforeId', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '变更后_物料代码', + field: 'afterItemCode', + sort: 'custom', + isSearch: true, + }, + { + label: '变更后_批次', + field: 'afterBatch', + sort: 'custom', + isSearch: true, + }, + { + label: '变更后_包装号', + field: 'afterPackingNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '变更后_库存状态', + field: 'afterInventoryStatus', + sort: 'custom', + isSearch: true, + form: { + component: 'Radio' + }, + }, + { + label: '变更后_库位代码', + field: 'afterLocationCode', + sort: 'custom', + isSearch: true, + }, + { + label: '变更后_数量', + field: 'afterQty', + sort: 'custom', + isSearch: true, + }, + { + label: '变更后_事务号', + field: 'afterTransNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '变更前_id', + field: 'afterId', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isForm: false, + }, + // { + // label: '操作', + // field: 'action', + // isForm: false, + // table: { + // width: 150, + // fixed: 'right' + // } + // } +])) diff --git a/src/views/wms/inventoryManage/balanceChangeHistory/index.vue b/src/views/wms/inventoryManage/balanceChangeHistory/index.vue new file mode 100644 index 000000000..baa9aec20 --- /dev/null +++ b/src/views/wms/inventoryManage/balanceChangeHistory/index.vue @@ -0,0 +1,244 @@ + + + From 611fe3c4fdfd340ea247b5b26cf9778d06cd996b Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Tue, 29 Oct 2024 09:16:55 +0800 Subject: [PATCH 002/225] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../balanceChangeHistory.data.ts | 95 ++++++++++++++----- 1 file changed, 70 insertions(+), 25 deletions(-) diff --git a/src/views/wms/inventoryManage/balanceChangeHistory/balanceChangeHistory.data.ts b/src/views/wms/inventoryManage/balanceChangeHistory/balanceChangeHistory.data.ts index fd59cecba..e159e18ab 100644 --- a/src/views/wms/inventoryManage/balanceChangeHistory/balanceChangeHistory.data.ts +++ b/src/views/wms/inventoryManage/balanceChangeHistory/balanceChangeHistory.data.ts @@ -7,109 +7,157 @@ export const BalanceChangeHistoryRules = reactive({ export const BalanceChangeHistory = useCrudSchemas(reactive([ { - label: '变更前_物料代码', + label: '前-物料代码', field: 'beforeItemCode', sort: 'custom', isSearch: true, + table: { + width: 180 + }, }, { - label: '变更前_批次', + label: '前-批次', field: 'beforeBatch', sort: 'custom', isSearch: true, + table: { + width: 180 + }, }, { - label: '变更前_包装号', + label: '前-包装号', field: 'beforePackingNumber', sort: 'custom', isSearch: true, + table: { + width: 220 + }, }, { - label: '变更前_库存状态', + label: '前-库存状态', field: 'beforeInventoryStatus', sort: 'custom', isSearch: true, + table: { + width: 180 + }, form: { component: 'Radio' }, }, { - label: '变更前_库位代码', + label: '前-库位代码', field: 'beforeLocationCode', sort: 'custom', + table: { + width: 180 + }, isSearch: true, }, { - label: '变更前_数量', + label: '前-数量', field: 'beforeQty', sort: 'custom', + table: { + width: 180 + }, isSearch: true, }, { - label: '变更前_事务号', + label: '前-事务号', field: 'beforeTransNumber', sort: 'custom', + table: { + width: 220 + }, isSearch: true, }, { - label: '变更前_id', + label: '前-ID', field: 'beforeId', sort: 'custom', isSearch: true, + table: { + width: 180 + }, form: { component: 'InputNumber', value: 0 }, }, { - label: '变更后_物料代码', + label: '后-物料代码', field: 'afterItemCode', sort: 'custom', + table: { + width: 180 + }, isSearch: true, }, { - label: '变更后_批次', + label: '后-批次', field: 'afterBatch', sort: 'custom', + table: { + width: 180 + }, isSearch: true, }, { - label: '变更后_包装号', + label: '后-包装号', field: 'afterPackingNumber', sort: 'custom', + table: { + width: 220 + }, isSearch: true, }, { - label: '变更后_库存状态', + label: '后-库存状态', field: 'afterInventoryStatus', sort: 'custom', + table: { + width: 180 + }, isSearch: true, form: { component: 'Radio' }, }, { - label: '变更后_库位代码', + label: '后-库位代码', field: 'afterLocationCode', sort: 'custom', + table: { + width: 180 + }, isSearch: true, }, { - label: '变更后_数量', + label: '后-数量', field: 'afterQty', sort: 'custom', + table: { + width: 180 + }, isSearch: true, }, { - label: '变更后_事务号', + label: '后-事务号', field: 'afterTransNumber', sort: 'custom', + table: { + width: 220 + }, isSearch: true, }, { - label: '变更前_id', + label: '后-ID', field: 'afterId', sort: 'custom', + table: { + width: 180 + }, isSearch: true, form: { component: 'InputNumber', @@ -119,12 +167,18 @@ export const BalanceChangeHistory = useCrudSchemas(reactive([ { label: '备注', field: 'remark', + table: { + width: 180 + }, sort: 'custom', }, { label: '创建时间', field: 'createTime', sort: 'custom', + table: { + width: 180 + }, formatter: dateFormatter, isSearch: true, search: { @@ -137,13 +191,4 @@ export const BalanceChangeHistory = useCrudSchemas(reactive([ }, isForm: false, }, - // { - // label: '操作', - // field: 'action', - // isForm: false, - // table: { - // width: 150, - // fixed: 'right' - // } - // } ])) From 6b3b2589663a9c94cd7a0aa8ccb380286aa88504 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Tue, 29 Oct 2024 10:06:54 +0800 Subject: [PATCH 003/225] =?UTF-8?q?=E7=BC=BA=E9=99=B7HL-6340?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../balanceChangeHistory.data.ts | 60 ++++++++++++++----- .../balanceChangeHistory/index.vue | 2 +- 2 files changed, 47 insertions(+), 15 deletions(-) diff --git a/src/views/wms/inventoryManage/balanceChangeHistory/balanceChangeHistory.data.ts b/src/views/wms/inventoryManage/balanceChangeHistory/balanceChangeHistory.data.ts index e159e18ab..a4cdaeafd 100644 --- a/src/views/wms/inventoryManage/balanceChangeHistory/balanceChangeHistory.data.ts +++ b/src/views/wms/inventoryManage/balanceChangeHistory/balanceChangeHistory.data.ts @@ -63,6 +63,19 @@ export const BalanceChangeHistory = useCrudSchemas(reactive([ }, isSearch: true, }, + { + label: '前-ID', + field: 'beforeId', + sort: 'custom', + isSearch: true, + table: { + width: 180 + }, + form: { + component: 'InputNumber', + value: 0 + }, + }, { label: '前-事务号', field: 'beforeTransNumber', @@ -73,16 +86,19 @@ export const BalanceChangeHistory = useCrudSchemas(reactive([ isSearch: true, }, { - label: '前-ID', - field: 'beforeId', + label: '前-业务类型', + field: 'beforeBusinessType', sort: 'custom', - isSearch: true, table: { - width: 180 + width: 220 }, - form: { - component: 'InputNumber', - value: 0 + }, + { + label: '前-动作', + field: 'beforeInventoryAction', + sort: 'custom', + table: { + width: 220 }, }, { @@ -142,6 +158,19 @@ export const BalanceChangeHistory = useCrudSchemas(reactive([ }, isSearch: true, }, + { + label: '后-ID', + field: 'afterId', + sort: 'custom', + table: { + width: 180 + }, + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + }, + }, { label: '后-事务号', field: 'afterTransNumber', @@ -152,16 +181,19 @@ export const BalanceChangeHistory = useCrudSchemas(reactive([ isSearch: true, }, { - label: '后-ID', - field: 'afterId', + label: '后-业务类型', + field: 'afterBusinessType', sort: 'custom', table: { - width: 180 + width: 220 }, - isSearch: true, - form: { - component: 'InputNumber', - value: 0 + }, + { + label: '后-动作', + field: 'afterInventoryAction', + sort: 'custom', + table: { + width: 220 }, }, { diff --git a/src/views/wms/inventoryManage/balanceChangeHistory/index.vue b/src/views/wms/inventoryManage/balanceChangeHistory/index.vue index baa9aec20..72f7eaf22 100644 --- a/src/views/wms/inventoryManage/balanceChangeHistory/index.vue +++ b/src/views/wms/inventoryManage/balanceChangeHistory/index.vue @@ -103,7 +103,7 @@ const HeadButttondata = [ //defaultButtons.defaultImportBtn({hasPermi:'wms:balanceChangeHistory:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:balance-change-history:export'}), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 - defaultButtons.defaultFilterBtn(null), // 筛选 + // defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 // { // label: '自定义扩展按钮', From e78da4cb873917249ce13c20f5fc49086a443f89 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Tue, 29 Oct 2024 13:17:59 +0800 Subject: [PATCH 004/225] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=95=B0=E9=87=8F?= =?UTF-8?q?=E6=8E=92=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../balanceChangeHistory/balanceChangeHistory.data.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/views/wms/inventoryManage/balanceChangeHistory/balanceChangeHistory.data.ts b/src/views/wms/inventoryManage/balanceChangeHistory/balanceChangeHistory.data.ts index a4cdaeafd..e5b94e6b1 100644 --- a/src/views/wms/inventoryManage/balanceChangeHistory/balanceChangeHistory.data.ts +++ b/src/views/wms/inventoryManage/balanceChangeHistory/balanceChangeHistory.data.ts @@ -61,7 +61,6 @@ export const BalanceChangeHistory = useCrudSchemas(reactive([ table: { width: 180 }, - isSearch: true, }, { label: '前-ID', @@ -156,7 +155,6 @@ export const BalanceChangeHistory = useCrudSchemas(reactive([ table: { width: 180 }, - isSearch: true, }, { label: '后-ID', From e22250deed5eada86f7349954cdf87fc9c3ce606 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Tue, 29 Oct 2024 13:49:37 +0800 Subject: [PATCH 005/225] =?UTF-8?q?HL-6339WMS=20=E5=88=B6=E5=93=81?= =?UTF-8?q?=E5=AD=90=E4=BB=B6=E6=8A=A5=E5=BA=9F=E7=94=B3=E8=AF=B7=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=97=B6=EF=BC=8C=E4=B8=BB=E6=95=B0=E6=8D=AE=E4=B8=8D?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=94=9F=E4=BA=A7=E7=BA=BF=EF=BC=8C=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E6=B7=BB=E5=8A=A0=E6=98=8E=E7=BB=86=EF=BC=8C=E6=AD=A4?= =?UTF-8?q?=E6=97=B6=E4=BC=9A=E5=B8=A6=E5=87=BA=E4=BA=A7=E7=BA=BF=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=EF=BC=8C=E5=90=8E=E9=9D=A2=E9=80=89=E6=8B=A9=E6=9D=A5?= =?UTF-8?q?=E6=BA=90=E5=BA=93=E4=BD=8D=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E7=9A=84=E4=B8=8D=E6=98=AF=E5=89=8D=E9=9D=A2?= =?UTF-8?q?=E4=BA=A7=E7=BA=BF=E4=BB=A3=E7=A0=81=E5=AF=B9=E5=BA=94=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productscrapRequestMain/index.vue | 2 +- .../productscrapRequestMain.data.ts | 29 ++++++++++++++++--- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue index f5557cfc9..8324adae6 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue @@ -476,7 +476,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => newRow['childList'] = [] newRow['singlePrice'] = item['singlePrice'] newRow['amount'] = newRow['qty']*item['singlePrice'] - + newRow['productionLineCode'] = item['productionLineCode'] if(item['bomList'].length>0){ newRow['bomVersionInitOptions'] = item['bomList'].map(item1=>({ label:item1, diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts b/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts index 165bf069c..90b04c253 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts @@ -981,8 +981,9 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive([ key:'productionLineCode', value:'productionLineCode', message: '请填写生产线代码!', - isMainValue: true, - isOptional:true, // isMainValue=true情况,添加参数可选可空的判断 + isMainValue: false, + // isOptional:true, // isMainValue=true情况,添加参数可选可空的判断 + isTableRowValue: true, //查询当前searchTable表中行数据的值 }, // { // key: 'itemCode', @@ -1025,8 +1026,9 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive([ key:'productionLineCode', value:'productionLineCode', message: '请填写生产线代码!', - isMainValue: true, - isOptional:true, // isMainValue=true情况,添加参数可选可空的判断 + isMainValue: false, + // isOptional:true, // isMainValue=true情况,添加参数可选可空的判断 + isTableRowValue: true, //查询当前searchTable表中行数据的值 }, // { // key: 'itemCode', @@ -1103,6 +1105,13 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive([ value: 'workshopCode', message: '请填写车间代码!', isMainValue: true + },{ + key:'productionLineCode', + value:'productionLineCode', + message: '请填写生产线代码!', + isMainValue: false, + // isOptional:true, // isMainValue=true情况,添加参数可选可空的判断 + isTableRowValue: true, //查询当前searchTable表中行数据的值 }], verificationParams: [{ key: 'code', @@ -1127,6 +1136,18 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive([ key: 'available', value: 'TRUE', isMainValue: false + }, { + key: 'workshopCode', + value: 'workshopCode', + message: '请填写车间代码!', + isMainValue: true + },{ + key:'productionLineCode', + value:'productionLineCode', + message: '请填写生产线代码!', + isMainValue: false, + // isOptional:true, // isMainValue=true情况,添加参数可选可空的判断 + isTableRowValue: true, //查询当前searchTable表中行数据的值 }], verificationParams: [{ key: 'code', From 2e31a9d0b13feaf3a4472667138f5050a7b4898d Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Tue, 29 Oct 2024 14:42:30 +0800 Subject: [PATCH 006/225] =?UTF-8?q?=E7=BC=BA=E9=99=B7HL-6326?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productscrapRequestMain.data.ts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts b/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts index 90b04c253..cdca664aa 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts @@ -570,15 +570,14 @@ export const ProductscrapRequestMain = useCrudSchemas( // } // }, // }, - // { - // label: '备注', - // field: 'remark', - // sort: 'custom', - // table: { - // width: 150 - // }, - // isTable: false, - // }, + { + label: '主备注', + field: 'mainRemark', + sort: 'custom', + table: { + width: 150 + }, + }, { label: '部门', field: 'departmentCode', From 1abc8e9f62ce35502f5b66e0d27a61fd96c4d97d Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Tue, 29 Oct 2024 16:15:25 +0800 Subject: [PATCH 007/225] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itemManage/itembasic/itembasic.data.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts b/src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts index 502cf1efc..eab07f83c 100644 --- a/src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts +++ b/src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts @@ -544,7 +544,6 @@ export const ItembasicCopy = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, table: { - width: 180, fixed: 'left' }, }, @@ -554,7 +553,6 @@ export const ItembasicCopy = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, table: { - width: 150 }, }, { @@ -566,7 +564,6 @@ export const ItembasicCopy = useCrudSchemas(reactive([ isSearch: true, isTable: true, table: { - width: 120 } }, { @@ -575,9 +572,6 @@ export const ItembasicCopy = useCrudSchemas(reactive([ sort: 'custom', dictType: DICT_TYPE.ITEM_TYPE, dictClass: 'string', - isTable: true, - table: { - width: 100 - } , + isTable: true } ])) \ No newline at end of file From 92a5a05ba48b49e8f5123c799f0c667ef0612696 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Wed, 30 Oct 2024 08:57:46 +0800 Subject: [PATCH 008/225] =?UTF-8?q?=E7=BC=BA=E9=99=B7:HL-6326=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productscrapRecordMain.data.ts | 41 ++++++++----------- 1 file changed, 16 insertions(+), 25 deletions(-) diff --git a/src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts b/src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts index d3963d5d0..486bafab0 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts +++ b/src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts @@ -286,15 +286,14 @@ export const ProductscrapRecordMain = useCrudSchemas( }, isTable: false }, - // { - // label: '备注', - // field: 'remark', - // sort: 'custom', - // table: { - // width: 150 - // }, - // isTable: false - // }, + { + label: '主备注', + field: 'mainRemark', + sort: 'custom', + table: { + width: 150 + }, + }, { label: '是否已撤销', field: 'revokeFlag', @@ -746,22 +745,14 @@ export const ProductscrapRecordDetail = useCrudSchemas(reactive([ }, isTable: false, }, - // { - // label: '备注', - // field: 'remark', - // sort: 'custom', - // table: { - // width: 150 - // }, - // isSearch: true, - // search: { - // component: 'Input', - // componentProps: { - // placeholder: '请输入备注' - // } - // }, - // isTable: true, - // }, + { + label: '明细备注', + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, + }, { label: '创建时间', field: 'createTime', From e696d742629d66fbe6be4a3bfdcc4d77f72e07fd Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Wed, 30 Oct 2024 09:51:46 +0800 Subject: [PATCH 009/225] =?UTF-8?q?HL-6335SCP=E6=AD=A3=E5=BC=8F=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=EF=BC=8C=E4=BE=9B=E5=BA=94=E5=95=86=E5=8F=91=E7=A5=A8?= =?UTF-8?q?=E8=B4=A2=E5=8A=A1=E7=82=B9=E5=87=BB=E5=AE=A1=E6=A0=B8=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E5=90=8E=EF=BC=8C=E8=B4=A2=E5=8A=A1=E5=87=AD=E8=AF=81?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0=E5=AD=97=E6=AE=B5=E6=9B=B4=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=EF=BC=9A=E6=94=B6+=E4=BE=9B=E5=BA=94=E5=95=86=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E5=89=8D6=E4=B8=AA=E6=B1=89=E5=AD=97+=E5=8F=91?= =?UTF-8?q?=E7=A5=A8+=E5=8F=91=E7=A5=A8=E5=8F=B7=E5=90=8E5=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierinvoice/supplierinvoiceRequestMain/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue index da7d1e0fe..58e404fdd 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue @@ -1138,7 +1138,7 @@ const submitPurchasePass = async (id, submitData) => { const formFinanceRef = ref() const handleFinanceApp = async (row) => { row.postingDate = dayjs().valueOf() - row.voucherNumberRemark = '收到' + row.supplierName + '发票' + row.goldenTaxInvoiceNumber + row.voucherNumberRemark = `收到${row.supplierName?row.supplierName.slice(0,6):''}发票${row.goldenTaxInvoiceNumber?row.goldenTaxInvoiceNumber.length>5?row.goldenTaxInvoiceNumber.slice(row.goldenTaxInvoiceNumber.length-5):row.goldenTaxInvoiceNumber:''}` formFinanceRef.value.open('update', row, null, '财务通过', '财务通过') } From 4825f11b443241becd2695c030215ca319bfb190 Mon Sep 17 00:00:00 2001 From: chenfang <1057876684@qq.com> Date: Wed, 30 Oct 2024 15:53:02 +0800 Subject: [PATCH 010/225] =?UTF-8?q?HL-6311=20=E6=8C=89=E6=9C=80=E6=96=B0?= =?UTF-8?q?=E9=9C=80=E6=B1=82=E4=BF=AE=E6=94=B9=E3=80=8A=E5=99=A8=E5=85=B7?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E3=80=8B=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/containerMainRequest/index.ts | 28 ++++++++--- .../createContainerMainRequest.data.ts | 46 +++++++++---------- .../createContainerMainRequest/index.vue | 2 +- .../initialContainerMainRequest/index.vue | 2 +- .../moveContainerMainRequest/index.vue | 7 ++- .../returnContainerMainRequest/index.vue | 2 +- .../scrapContainerMainRequest/index.vue | 2 +- .../scrapContainerMainRequest.data.ts | 32 ++++++------- 8 files changed, 70 insertions(+), 51 deletions(-) diff --git a/src/api/wms/containerMainRequest/index.ts b/src/api/wms/containerMainRequest/index.ts index 681b93c3e..3544598de 100644 --- a/src/api/wms/containerMainRequest/index.ts +++ b/src/api/wms/containerMainRequest/index.ts @@ -113,14 +113,30 @@ export const exportDeliverContainerMainRequest = async (params) => { } } -// 下载用户导入模板(器具初始化/新增) -export const importTemplate = () => { - return request.download({ url: '/wms/container-main-request/get-import-template' }) + +// 下载用户导入模板(器具初始化) +export const importTemplateInitial = () => { + return request.download({ url: '/wms/container-main-request/get-import-template-initial' }) +} +// 下载用户导入模板(器具新增) +export const importTemplateCreate = () => { + return request.download({ url: '/wms/container-main-request/get-import-template-create' }) +} + +// 下载用户导入模板(器具报废) +export const importTemplateScrap = () => { + return request.download({ url: '/wms/container-main-request/get-import-template-scrap' }) } -// 下载用户导入模板(器具返回/移动/报废) -export const importTemplateReturnAndMove = () => { - return request.download({ url: '/wms/container-main-request/get-import-template-returnAndMove' }) +// 下载用户导入模板(器具移动) +export const importTemplateMove = () => { + return request.download({ url: '/wms/container-main-request/get-import-template-move' }) +} + + +// 下载用户导入模板(器具返回) +export const importTemplateReturn = () => { + return request.download({ url: '/wms/container-main-request/get-import-template-return' }) } // 关闭 diff --git a/src/views/wms/inventoryjobManage/containermanage/createContainerMainRequest/createContainerMainRequest.data.ts b/src/views/wms/inventoryjobManage/containermanage/createContainerMainRequest/createContainerMainRequest.data.ts index dc83cbc1d..b01f5420e 100644 --- a/src/views/wms/inventoryjobManage/containermanage/createContainerMainRequest/createContainerMainRequest.data.ts +++ b/src/views/wms/inventoryjobManage/containermanage/createContainerMainRequest/createContainerMainRequest.data.ts @@ -79,7 +79,7 @@ export const ContainerMainRequest = useCrudSchemas(reactive([ } }, { - label: '初始化库位代码', + label: '到库位代码', field: 'toLocationCode', sort: 'custom', table: { @@ -87,7 +87,7 @@ export const ContainerMainRequest = useCrudSchemas(reactive([ }, tableForm:{ isInpuFocusShow: true, // 开启查询弹窗 - searchListPlaceholder: '请选择初始化库位代码', + searchListPlaceholder: '请选择到库位代码', searchField: 'code', searchTitle: '库位信息', searchAllSchemas: Location.allSchemas, @@ -105,7 +105,7 @@ export const ContainerMainRequest = useCrudSchemas(reactive([ // labelMessage: '信息提示说明!!!', componentProps: { isSearchList: true, // 开启查询弹窗 - searchListPlaceholder: '请选择初始化库位代码', + searchListPlaceholder: '请选择到库位代码', searchField: 'code', searchTitle: '库位信息', searchAllSchemas: Location.allSchemas, @@ -465,6 +465,26 @@ export const ContainerDetailRequest = useCrudSchemas(reactive([ } } }, + { + label: '库存状态', + field: 'toInventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, + dictClass: 'string', + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + tableForm: { + disabled: true, + type: 'Select' + }, + form: { + componentProps: { + disabled: true + } + } + }, { label: '数量', field: 'toQty', @@ -503,26 +523,6 @@ export const ContainerDetailRequest = useCrudSchemas(reactive([ } } }, - { - label: '库存状态', - field: 'toInventoryStatus', - dictType: DICT_TYPE.INVENTORY_STATUS, - dictClass: 'string', - isTable: true, - sort: 'custom', - table: { - width: 150 - }, - tableForm: { - disabled: true, - type: 'Select' - }, - form: { - componentProps: { - disabled: true - } - } - }, { label: '子备注', field: 'remark', diff --git a/src/views/wms/inventoryjobManage/containermanage/createContainerMainRequest/index.vue b/src/views/wms/inventoryjobManage/containermanage/createContainerMainRequest/index.vue index 109951619..de6baf2ea 100644 --- a/src/views/wms/inventoryjobManage/containermanage/createContainerMainRequest/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/createContainerMainRequest/index.vue @@ -534,7 +534,7 @@ const searchFormClick = (searchData) => { /** 初始化 **/ onMounted(async () => { getList() - importTemplateData.templateUrl = await ContainerMainRequestApi.importTemplate() + importTemplateData.templateUrl = await ContainerMainRequestApi.importTemplateCreate() }) diff --git a/src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue b/src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue index 4889d5dcb..9f883e7bf 100644 --- a/src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue @@ -534,7 +534,7 @@ const searchFormClick = (searchData) => { /** 初始化 **/ onMounted(async () => { getList() - importTemplateData.templateUrl = await ContainerMainRequestApi.importTemplate() + importTemplateData.templateUrl = await ContainerMainRequestApi.importTemplateInitial() }) \ No newline at end of file diff --git a/src/views/wms/inventoryjobManage/containermanage/moveContainerMainRequest/index.vue b/src/views/wms/inventoryjobManage/containermanage/moveContainerMainRequest/index.vue index 89f39d8a3..d70759d59 100644 --- a/src/views/wms/inventoryjobManage/containermanage/moveContainerMainRequest/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/moveContainerMainRequest/index.vue @@ -433,6 +433,11 @@ const submitForm = async (formType,submitData) => { if(data.masterId){ data.id = data.masterId } + let findLocation = tableData.value.find(item=>item.fromLocationCode==item.toLocationCode&&item.fromInventoryStatus==item.toInventoryStatus) + if(findLocation){ + message.warning('从库位和到库位不能相同') + return + } data.subList = tableData.value // 拼接子表数据参数 data.subList.forEach(item => { if(item.qty == 0){ @@ -535,7 +540,7 @@ const searchFormClick = (searchData) => { /** 初始化 **/ onMounted(async () => { getList() - importTemplateData.templateUrl = await ContainerMainRequestApi.importTemplateReturnAndMove() + importTemplateData.templateUrl = await ContainerMainRequestApi.importTemplateMove() }) diff --git a/src/views/wms/inventoryjobManage/containermanage/returnContainerMainRequest/index.vue b/src/views/wms/inventoryjobManage/containermanage/returnContainerMainRequest/index.vue index 835adfc5f..6aefd24e0 100644 --- a/src/views/wms/inventoryjobManage/containermanage/returnContainerMainRequest/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/returnContainerMainRequest/index.vue @@ -535,7 +535,7 @@ const searchFormClick = (searchData) => { /** 初始化 **/ onMounted(async () => { getList() - importTemplateData.templateUrl = await ContainerMainRequestApi.importTemplateReturnAndMove() + importTemplateData.templateUrl = await ContainerMainRequestApi.importTemplateReturn() }) diff --git a/src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue b/src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue index c8c79b8b8..ce2b89d73 100644 --- a/src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue @@ -557,7 +557,7 @@ const searchFormClick = (searchData) => { /** 初始化 **/ onMounted(async () => { getList() - importTemplateData.templateUrl = await ContainerMainRequestApi.importTemplateReturnAndMove() + importTemplateData.templateUrl = await ContainerMainRequestApi.importTemplateScrap() }) diff --git a/src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/scrapContainerMainRequest.data.ts b/src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/scrapContainerMainRequest.data.ts index 5d2c76d4b..fa9c45a11 100644 --- a/src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/scrapContainerMainRequest.data.ts +++ b/src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/scrapContainerMainRequest.data.ts @@ -533,6 +533,21 @@ export const ContainerDetailRequest = useCrudSchemas(reactive([ // disabled: true, // }, // }, + { + label: '库存状态', + field: 'toInventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, + dictClass: 'string', + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + tableForm: { + type: 'Select', + disabled: true + }, + }, { label: '数量', field: 'toQty', @@ -566,23 +581,6 @@ export const ContainerDetailRequest = useCrudSchemas(reactive([ type: 'Select' } }, - { - label: '到库存状态', - field: 'toInventoryStatus', - dictType: DICT_TYPE.INVENTORY_STATUS, - dictClass: 'string', - isForm: false, - isTableForm: false, - isTable: false, - sort: 'custom', - table: { - width: 150 - }, - tableForm: { - type: 'Select', - disabled: true - }, - }, { label: '子备注', field: 'remark', From 491617e36230f4b7331919e8ba66dd662c571396 Mon Sep 17 00:00:00 2001 From: chenfang <1057876684@qq.com> Date: Wed, 30 Oct 2024 16:24:50 +0800 Subject: [PATCH 011/225] =?UTF-8?q?HL-6311=20=E5=99=A8=E5=85=B7=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E8=BF=9B=E8=A1=8C=E6=8B=86=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../createContainerRecordMain.data.ts | 357 ++++++++++++++++++ .../createContainerRecordMain/index.vue | 267 +++++++++++++ .../deliverContainerRecordMain.data.ts | 357 ++++++++++++++++++ .../deliverContainerRecordMain/index.vue | 267 +++++++++++++ .../initialContainerRecordMain/index.vue | 299 +++++++++++++++ .../initialContainerRecordMain.data.ts | 357 ++++++++++++++++++ .../moveContainerRecordMain/index.vue | 299 +++++++++++++++ .../moveContainerRecordMain.data.ts | 357 ++++++++++++++++++ .../returnContainerRecordMain/index.vue | 299 +++++++++++++++ .../moveContainerRecordMain.data.ts | 357 ++++++++++++++++++ .../scrapContainerRecordMain/index.vue | 299 +++++++++++++++ .../scrapContainerRecordMain.data.ts | 357 ++++++++++++++++++ 12 files changed, 3872 insertions(+) create mode 100644 src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/createContainerRecordMain.data.ts create mode 100644 src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/index.vue create mode 100644 src/views/wms/inventoryjobManage/containermanage/deliverContainerRecordMain/deliverContainerRecordMain.data.ts create mode 100644 src/views/wms/inventoryjobManage/containermanage/deliverContainerRecordMain/index.vue create mode 100644 src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/index.vue create mode 100644 src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/initialContainerRecordMain.data.ts create mode 100644 src/views/wms/inventoryjobManage/containermanage/moveContainerRecordMain/index.vue create mode 100644 src/views/wms/inventoryjobManage/containermanage/moveContainerRecordMain/moveContainerRecordMain.data.ts create mode 100644 src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/index.vue create mode 100644 src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/moveContainerRecordMain.data.ts create mode 100644 src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/index.vue create mode 100644 src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/scrapContainerRecordMain.data.ts diff --git a/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/createContainerRecordMain.data.ts b/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/createContainerRecordMain.data.ts new file mode 100644 index 000000000..8b65a711b --- /dev/null +++ b/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/createContainerRecordMain.data.ts @@ -0,0 +1,357 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { TableColumn } from '@/types/table' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const ContainerRecordMainRules = reactive({ + available: [required], + concurrencyStamp: [required], +}) + + // 获取当前操作人的部门 + import { useUserStore } from '@/store/modules/user' + const userStore = useUserStore() + const userDept = userStore.userSelfInfo.dept + // id 转str 否则form回显匹配不到 + userDept.id = userDept.id.toString() + const userDeptArray:any = [userDept] + +export const ContainerRecordMain = useCrudSchemas(reactive([ + { + label: '单据号', + field: 'number', + sort: 'custom', + isSearch: true, + isForm: false, + table: { + width: 200 + }, + }, + { + label: '申请单号', + field: 'requestNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '类型', + field: 'type', + sort: 'custom', + dictType: DICT_TYPE.CONTAIN_MANAGE_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true, + table: { + width: 120 + }, + form:{ + componentProps:{ + disabled: true, + } + } + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isForm: false, + isTable:false + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isTable: false + }, + { + label: '部门', + field: 'departmentCode', + sort: 'custom', + isForm: false, + table: { + width: 150 + }, + isTable:false, + formatter: (_: Recordable, __: TableColumn, cellValue: number) => { + return userDeptArray.find((account) => account.id == cellValue)?.name + }, + form: { + value: userDept.id, + component: 'Select', + api: () => userDeptArray, + componentProps: { + disabled: true, + optionsAlias: { + labelField: 'name', + valueField: 'id' + } + } + } + }, + { + label: '扩展属性', + field: 'extraProperties', + sort: 'custom', + isForm: false, + isTable: false + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + isForm: false, + isTable: false + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + isForm: false, + isTable: false, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180 + }, + isSearch: false, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isTable: false, + isForm: false, + }, + { + label: '创建者', + field: 'creator', + table: { + width: 130 + }, + isForm: false, + isTable: false + }, + { + label: '最后更新时间', + field: 'updateTime', + sort: 'custom', + isDetail: true, + isForm: false, + isTable: false, + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + style: {width:'100%'}, + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } + } + }, + { + label: '最后更新者', + field: 'updater', + isDetail: true, + isForm: false, + isTable: false, + table: { + width: 150 + } + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) + +// 表单校验 +export const ContainerRecordDetailRules = reactive({ + fromLocationCode: [required], + toLocationCode: [required], + concurrencyStamp: [required], +}) + +export const ContainerRecordDetail = useCrudSchemas(reactive([ + { + label: 'id', + field: 'id', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '主表ID', + field: 'masterId', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '单据号', + field: 'number', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '器具号', + field: 'containerNumber', + sort: 'custom' + }, + { + label: '来源库位代码', + field: 'fromLocationCode', + sort: 'custom', + }, + { + label: '目标库位代码', + field: 'toLocationCode', + sort: 'custom', + }, + { + label: '到数量', + field: 'toQty', + sort: 'custom', + }, + { + label: '计量单位', + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + tableForm:{ + disabled: true, + type: 'Select' + } + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isTable: false + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } + }, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isTable: true, + isForm: false, + isTableForm: false, + isSearch: true, + }, + { + label: '创建者', + field: 'creator', + table: { + width: 130 + }, + isForm: false, + isTable: true + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '从货主代码', + field: 'fromOwnerCode', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '到货主代码', + field: 'toOwnerCode', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '操作', + field: 'action', + isForm: false, + hiddenInMain:true, + isTableForm: false, + isTable: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/index.vue new file mode 100644 index 000000000..0b2f50e14 --- /dev/null +++ b/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/index.vue @@ -0,0 +1,267 @@ + + + diff --git a/src/views/wms/inventoryjobManage/containermanage/deliverContainerRecordMain/deliverContainerRecordMain.data.ts b/src/views/wms/inventoryjobManage/containermanage/deliverContainerRecordMain/deliverContainerRecordMain.data.ts new file mode 100644 index 000000000..8b65a711b --- /dev/null +++ b/src/views/wms/inventoryjobManage/containermanage/deliverContainerRecordMain/deliverContainerRecordMain.data.ts @@ -0,0 +1,357 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { TableColumn } from '@/types/table' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const ContainerRecordMainRules = reactive({ + available: [required], + concurrencyStamp: [required], +}) + + // 获取当前操作人的部门 + import { useUserStore } from '@/store/modules/user' + const userStore = useUserStore() + const userDept = userStore.userSelfInfo.dept + // id 转str 否则form回显匹配不到 + userDept.id = userDept.id.toString() + const userDeptArray:any = [userDept] + +export const ContainerRecordMain = useCrudSchemas(reactive([ + { + label: '单据号', + field: 'number', + sort: 'custom', + isSearch: true, + isForm: false, + table: { + width: 200 + }, + }, + { + label: '申请单号', + field: 'requestNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '类型', + field: 'type', + sort: 'custom', + dictType: DICT_TYPE.CONTAIN_MANAGE_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true, + table: { + width: 120 + }, + form:{ + componentProps:{ + disabled: true, + } + } + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isForm: false, + isTable:false + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isTable: false + }, + { + label: '部门', + field: 'departmentCode', + sort: 'custom', + isForm: false, + table: { + width: 150 + }, + isTable:false, + formatter: (_: Recordable, __: TableColumn, cellValue: number) => { + return userDeptArray.find((account) => account.id == cellValue)?.name + }, + form: { + value: userDept.id, + component: 'Select', + api: () => userDeptArray, + componentProps: { + disabled: true, + optionsAlias: { + labelField: 'name', + valueField: 'id' + } + } + } + }, + { + label: '扩展属性', + field: 'extraProperties', + sort: 'custom', + isForm: false, + isTable: false + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + isForm: false, + isTable: false + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + isForm: false, + isTable: false, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180 + }, + isSearch: false, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isTable: false, + isForm: false, + }, + { + label: '创建者', + field: 'creator', + table: { + width: 130 + }, + isForm: false, + isTable: false + }, + { + label: '最后更新时间', + field: 'updateTime', + sort: 'custom', + isDetail: true, + isForm: false, + isTable: false, + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + style: {width:'100%'}, + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } + } + }, + { + label: '最后更新者', + field: 'updater', + isDetail: true, + isForm: false, + isTable: false, + table: { + width: 150 + } + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) + +// 表单校验 +export const ContainerRecordDetailRules = reactive({ + fromLocationCode: [required], + toLocationCode: [required], + concurrencyStamp: [required], +}) + +export const ContainerRecordDetail = useCrudSchemas(reactive([ + { + label: 'id', + field: 'id', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '主表ID', + field: 'masterId', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '单据号', + field: 'number', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '器具号', + field: 'containerNumber', + sort: 'custom' + }, + { + label: '来源库位代码', + field: 'fromLocationCode', + sort: 'custom', + }, + { + label: '目标库位代码', + field: 'toLocationCode', + sort: 'custom', + }, + { + label: '到数量', + field: 'toQty', + sort: 'custom', + }, + { + label: '计量单位', + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + tableForm:{ + disabled: true, + type: 'Select' + } + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isTable: false + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } + }, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isTable: true, + isForm: false, + isTableForm: false, + isSearch: true, + }, + { + label: '创建者', + field: 'creator', + table: { + width: 130 + }, + isForm: false, + isTable: true + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '从货主代码', + field: 'fromOwnerCode', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '到货主代码', + field: 'toOwnerCode', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '操作', + field: 'action', + isForm: false, + hiddenInMain:true, + isTableForm: false, + isTable: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/wms/inventoryjobManage/containermanage/deliverContainerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/deliverContainerRecordMain/index.vue new file mode 100644 index 000000000..75f0171f2 --- /dev/null +++ b/src/views/wms/inventoryjobManage/containermanage/deliverContainerRecordMain/index.vue @@ -0,0 +1,267 @@ + + + diff --git a/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/index.vue new file mode 100644 index 000000000..5ae19ffb2 --- /dev/null +++ b/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/index.vue @@ -0,0 +1,299 @@ + + + diff --git a/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/initialContainerRecordMain.data.ts b/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/initialContainerRecordMain.data.ts new file mode 100644 index 000000000..8b65a711b --- /dev/null +++ b/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/initialContainerRecordMain.data.ts @@ -0,0 +1,357 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { TableColumn } from '@/types/table' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const ContainerRecordMainRules = reactive({ + available: [required], + concurrencyStamp: [required], +}) + + // 获取当前操作人的部门 + import { useUserStore } from '@/store/modules/user' + const userStore = useUserStore() + const userDept = userStore.userSelfInfo.dept + // id 转str 否则form回显匹配不到 + userDept.id = userDept.id.toString() + const userDeptArray:any = [userDept] + +export const ContainerRecordMain = useCrudSchemas(reactive([ + { + label: '单据号', + field: 'number', + sort: 'custom', + isSearch: true, + isForm: false, + table: { + width: 200 + }, + }, + { + label: '申请单号', + field: 'requestNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '类型', + field: 'type', + sort: 'custom', + dictType: DICT_TYPE.CONTAIN_MANAGE_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true, + table: { + width: 120 + }, + form:{ + componentProps:{ + disabled: true, + } + } + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isForm: false, + isTable:false + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isTable: false + }, + { + label: '部门', + field: 'departmentCode', + sort: 'custom', + isForm: false, + table: { + width: 150 + }, + isTable:false, + formatter: (_: Recordable, __: TableColumn, cellValue: number) => { + return userDeptArray.find((account) => account.id == cellValue)?.name + }, + form: { + value: userDept.id, + component: 'Select', + api: () => userDeptArray, + componentProps: { + disabled: true, + optionsAlias: { + labelField: 'name', + valueField: 'id' + } + } + } + }, + { + label: '扩展属性', + field: 'extraProperties', + sort: 'custom', + isForm: false, + isTable: false + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + isForm: false, + isTable: false + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + isForm: false, + isTable: false, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180 + }, + isSearch: false, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isTable: false, + isForm: false, + }, + { + label: '创建者', + field: 'creator', + table: { + width: 130 + }, + isForm: false, + isTable: false + }, + { + label: '最后更新时间', + field: 'updateTime', + sort: 'custom', + isDetail: true, + isForm: false, + isTable: false, + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + style: {width:'100%'}, + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } + } + }, + { + label: '最后更新者', + field: 'updater', + isDetail: true, + isForm: false, + isTable: false, + table: { + width: 150 + } + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) + +// 表单校验 +export const ContainerRecordDetailRules = reactive({ + fromLocationCode: [required], + toLocationCode: [required], + concurrencyStamp: [required], +}) + +export const ContainerRecordDetail = useCrudSchemas(reactive([ + { + label: 'id', + field: 'id', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '主表ID', + field: 'masterId', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '单据号', + field: 'number', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '器具号', + field: 'containerNumber', + sort: 'custom' + }, + { + label: '来源库位代码', + field: 'fromLocationCode', + sort: 'custom', + }, + { + label: '目标库位代码', + field: 'toLocationCode', + sort: 'custom', + }, + { + label: '到数量', + field: 'toQty', + sort: 'custom', + }, + { + label: '计量单位', + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + tableForm:{ + disabled: true, + type: 'Select' + } + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isTable: false + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } + }, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isTable: true, + isForm: false, + isTableForm: false, + isSearch: true, + }, + { + label: '创建者', + field: 'creator', + table: { + width: 130 + }, + isForm: false, + isTable: true + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '从货主代码', + field: 'fromOwnerCode', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '到货主代码', + field: 'toOwnerCode', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '操作', + field: 'action', + isForm: false, + hiddenInMain:true, + isTableForm: false, + isTable: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/wms/inventoryjobManage/containermanage/moveContainerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/moveContainerRecordMain/index.vue new file mode 100644 index 000000000..0d04831a3 --- /dev/null +++ b/src/views/wms/inventoryjobManage/containermanage/moveContainerRecordMain/index.vue @@ -0,0 +1,299 @@ + + + diff --git a/src/views/wms/inventoryjobManage/containermanage/moveContainerRecordMain/moveContainerRecordMain.data.ts b/src/views/wms/inventoryjobManage/containermanage/moveContainerRecordMain/moveContainerRecordMain.data.ts new file mode 100644 index 000000000..8b65a711b --- /dev/null +++ b/src/views/wms/inventoryjobManage/containermanage/moveContainerRecordMain/moveContainerRecordMain.data.ts @@ -0,0 +1,357 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { TableColumn } from '@/types/table' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const ContainerRecordMainRules = reactive({ + available: [required], + concurrencyStamp: [required], +}) + + // 获取当前操作人的部门 + import { useUserStore } from '@/store/modules/user' + const userStore = useUserStore() + const userDept = userStore.userSelfInfo.dept + // id 转str 否则form回显匹配不到 + userDept.id = userDept.id.toString() + const userDeptArray:any = [userDept] + +export const ContainerRecordMain = useCrudSchemas(reactive([ + { + label: '单据号', + field: 'number', + sort: 'custom', + isSearch: true, + isForm: false, + table: { + width: 200 + }, + }, + { + label: '申请单号', + field: 'requestNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '类型', + field: 'type', + sort: 'custom', + dictType: DICT_TYPE.CONTAIN_MANAGE_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true, + table: { + width: 120 + }, + form:{ + componentProps:{ + disabled: true, + } + } + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isForm: false, + isTable:false + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isTable: false + }, + { + label: '部门', + field: 'departmentCode', + sort: 'custom', + isForm: false, + table: { + width: 150 + }, + isTable:false, + formatter: (_: Recordable, __: TableColumn, cellValue: number) => { + return userDeptArray.find((account) => account.id == cellValue)?.name + }, + form: { + value: userDept.id, + component: 'Select', + api: () => userDeptArray, + componentProps: { + disabled: true, + optionsAlias: { + labelField: 'name', + valueField: 'id' + } + } + } + }, + { + label: '扩展属性', + field: 'extraProperties', + sort: 'custom', + isForm: false, + isTable: false + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + isForm: false, + isTable: false + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + isForm: false, + isTable: false, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180 + }, + isSearch: false, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isTable: false, + isForm: false, + }, + { + label: '创建者', + field: 'creator', + table: { + width: 130 + }, + isForm: false, + isTable: false + }, + { + label: '最后更新时间', + field: 'updateTime', + sort: 'custom', + isDetail: true, + isForm: false, + isTable: false, + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + style: {width:'100%'}, + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } + } + }, + { + label: '最后更新者', + field: 'updater', + isDetail: true, + isForm: false, + isTable: false, + table: { + width: 150 + } + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) + +// 表单校验 +export const ContainerRecordDetailRules = reactive({ + fromLocationCode: [required], + toLocationCode: [required], + concurrencyStamp: [required], +}) + +export const ContainerRecordDetail = useCrudSchemas(reactive([ + { + label: 'id', + field: 'id', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '主表ID', + field: 'masterId', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '单据号', + field: 'number', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '器具号', + field: 'containerNumber', + sort: 'custom' + }, + { + label: '来源库位代码', + field: 'fromLocationCode', + sort: 'custom', + }, + { + label: '目标库位代码', + field: 'toLocationCode', + sort: 'custom', + }, + { + label: '到数量', + field: 'toQty', + sort: 'custom', + }, + { + label: '计量单位', + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + tableForm:{ + disabled: true, + type: 'Select' + } + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isTable: false + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } + }, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isTable: true, + isForm: false, + isTableForm: false, + isSearch: true, + }, + { + label: '创建者', + field: 'creator', + table: { + width: 130 + }, + isForm: false, + isTable: true + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '从货主代码', + field: 'fromOwnerCode', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '到货主代码', + field: 'toOwnerCode', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '操作', + field: 'action', + isForm: false, + hiddenInMain:true, + isTableForm: false, + isTable: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/index.vue new file mode 100644 index 000000000..0d04831a3 --- /dev/null +++ b/src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/index.vue @@ -0,0 +1,299 @@ + + + diff --git a/src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/moveContainerRecordMain.data.ts b/src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/moveContainerRecordMain.data.ts new file mode 100644 index 000000000..8b65a711b --- /dev/null +++ b/src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/moveContainerRecordMain.data.ts @@ -0,0 +1,357 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { TableColumn } from '@/types/table' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const ContainerRecordMainRules = reactive({ + available: [required], + concurrencyStamp: [required], +}) + + // 获取当前操作人的部门 + import { useUserStore } from '@/store/modules/user' + const userStore = useUserStore() + const userDept = userStore.userSelfInfo.dept + // id 转str 否则form回显匹配不到 + userDept.id = userDept.id.toString() + const userDeptArray:any = [userDept] + +export const ContainerRecordMain = useCrudSchemas(reactive([ + { + label: '单据号', + field: 'number', + sort: 'custom', + isSearch: true, + isForm: false, + table: { + width: 200 + }, + }, + { + label: '申请单号', + field: 'requestNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '类型', + field: 'type', + sort: 'custom', + dictType: DICT_TYPE.CONTAIN_MANAGE_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true, + table: { + width: 120 + }, + form:{ + componentProps:{ + disabled: true, + } + } + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isForm: false, + isTable:false + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isTable: false + }, + { + label: '部门', + field: 'departmentCode', + sort: 'custom', + isForm: false, + table: { + width: 150 + }, + isTable:false, + formatter: (_: Recordable, __: TableColumn, cellValue: number) => { + return userDeptArray.find((account) => account.id == cellValue)?.name + }, + form: { + value: userDept.id, + component: 'Select', + api: () => userDeptArray, + componentProps: { + disabled: true, + optionsAlias: { + labelField: 'name', + valueField: 'id' + } + } + } + }, + { + label: '扩展属性', + field: 'extraProperties', + sort: 'custom', + isForm: false, + isTable: false + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + isForm: false, + isTable: false + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + isForm: false, + isTable: false, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180 + }, + isSearch: false, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isTable: false, + isForm: false, + }, + { + label: '创建者', + field: 'creator', + table: { + width: 130 + }, + isForm: false, + isTable: false + }, + { + label: '最后更新时间', + field: 'updateTime', + sort: 'custom', + isDetail: true, + isForm: false, + isTable: false, + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + style: {width:'100%'}, + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } + } + }, + { + label: '最后更新者', + field: 'updater', + isDetail: true, + isForm: false, + isTable: false, + table: { + width: 150 + } + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) + +// 表单校验 +export const ContainerRecordDetailRules = reactive({ + fromLocationCode: [required], + toLocationCode: [required], + concurrencyStamp: [required], +}) + +export const ContainerRecordDetail = useCrudSchemas(reactive([ + { + label: 'id', + field: 'id', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '主表ID', + field: 'masterId', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '单据号', + field: 'number', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '器具号', + field: 'containerNumber', + sort: 'custom' + }, + { + label: '来源库位代码', + field: 'fromLocationCode', + sort: 'custom', + }, + { + label: '目标库位代码', + field: 'toLocationCode', + sort: 'custom', + }, + { + label: '到数量', + field: 'toQty', + sort: 'custom', + }, + { + label: '计量单位', + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + tableForm:{ + disabled: true, + type: 'Select' + } + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isTable: false + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } + }, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isTable: true, + isForm: false, + isTableForm: false, + isSearch: true, + }, + { + label: '创建者', + field: 'creator', + table: { + width: 130 + }, + isForm: false, + isTable: true + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '从货主代码', + field: 'fromOwnerCode', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '到货主代码', + field: 'toOwnerCode', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '操作', + field: 'action', + isForm: false, + hiddenInMain:true, + isTableForm: false, + isTable: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/index.vue new file mode 100644 index 000000000..91abaf844 --- /dev/null +++ b/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/index.vue @@ -0,0 +1,299 @@ + + + diff --git a/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/scrapContainerRecordMain.data.ts b/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/scrapContainerRecordMain.data.ts new file mode 100644 index 000000000..8b65a711b --- /dev/null +++ b/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/scrapContainerRecordMain.data.ts @@ -0,0 +1,357 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { TableColumn } from '@/types/table' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const ContainerRecordMainRules = reactive({ + available: [required], + concurrencyStamp: [required], +}) + + // 获取当前操作人的部门 + import { useUserStore } from '@/store/modules/user' + const userStore = useUserStore() + const userDept = userStore.userSelfInfo.dept + // id 转str 否则form回显匹配不到 + userDept.id = userDept.id.toString() + const userDeptArray:any = [userDept] + +export const ContainerRecordMain = useCrudSchemas(reactive([ + { + label: '单据号', + field: 'number', + sort: 'custom', + isSearch: true, + isForm: false, + table: { + width: 200 + }, + }, + { + label: '申请单号', + field: 'requestNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '类型', + field: 'type', + sort: 'custom', + dictType: DICT_TYPE.CONTAIN_MANAGE_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true, + table: { + width: 120 + }, + form:{ + componentProps:{ + disabled: true, + } + } + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isForm: false, + isTable:false + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isTable: false + }, + { + label: '部门', + field: 'departmentCode', + sort: 'custom', + isForm: false, + table: { + width: 150 + }, + isTable:false, + formatter: (_: Recordable, __: TableColumn, cellValue: number) => { + return userDeptArray.find((account) => account.id == cellValue)?.name + }, + form: { + value: userDept.id, + component: 'Select', + api: () => userDeptArray, + componentProps: { + disabled: true, + optionsAlias: { + labelField: 'name', + valueField: 'id' + } + } + } + }, + { + label: '扩展属性', + field: 'extraProperties', + sort: 'custom', + isForm: false, + isTable: false + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + isForm: false, + isTable: false + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + isForm: false, + isTable: false, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180 + }, + isSearch: false, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isTable: false, + isForm: false, + }, + { + label: '创建者', + field: 'creator', + table: { + width: 130 + }, + isForm: false, + isTable: false + }, + { + label: '最后更新时间', + field: 'updateTime', + sort: 'custom', + isDetail: true, + isForm: false, + isTable: false, + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + style: {width:'100%'}, + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } + } + }, + { + label: '最后更新者', + field: 'updater', + isDetail: true, + isForm: false, + isTable: false, + table: { + width: 150 + } + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) + +// 表单校验 +export const ContainerRecordDetailRules = reactive({ + fromLocationCode: [required], + toLocationCode: [required], + concurrencyStamp: [required], +}) + +export const ContainerRecordDetail = useCrudSchemas(reactive([ + { + label: 'id', + field: 'id', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '主表ID', + field: 'masterId', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '单据号', + field: 'number', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '器具号', + field: 'containerNumber', + sort: 'custom' + }, + { + label: '来源库位代码', + field: 'fromLocationCode', + sort: 'custom', + }, + { + label: '目标库位代码', + field: 'toLocationCode', + sort: 'custom', + }, + { + label: '到数量', + field: 'toQty', + sort: 'custom', + }, + { + label: '计量单位', + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + tableForm:{ + disabled: true, + type: 'Select' + } + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isTable: false + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } + }, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isTable: true, + isForm: false, + isTableForm: false, + isSearch: true, + }, + { + label: '创建者', + field: 'creator', + table: { + width: 130 + }, + isForm: false, + isTable: true + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '从货主代码', + field: 'fromOwnerCode', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '到货主代码', + field: 'toOwnerCode', + sort: 'custom', + isForm: false, + isTableForm: false, + isTable: false + }, + { + label: '操作', + field: 'action', + isForm: false, + hiddenInMain:true, + isTableForm: false, + isTable: false, + table: { + width: 150, + fixed: 'right' + } + } +])) From 682734bf56bb4be0fa3c52ec62a9f14889a53369 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Wed, 30 Oct 2024 17:07:45 +0800 Subject: [PATCH 012/225] =?UTF-8?q?=E5=99=A8=E5=85=B7=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../initialContainerRecordMain/index.vue | 156 ++---------------- .../initialContainerRecordMain.data.ts | 11 +- 2 files changed, 17 insertions(+), 150 deletions(-) diff --git a/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/index.vue index 5ae19ffb2..4c4d90738 100644 --- a/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/index.vue @@ -1,7 +1,11 @@ - - - - - item.field != "fromLocationCode") -// ContainerRecordDetailAllSchemas.value.tableMainColumns = array -// tableColumns.value = [...ContainerRecordMain.allSchemas.tableColumns,...ContainerRecordDetailAllSchemas.value.tableMainColumns] -// } -// else { -// ContainerRecordDetail.allSchemas.tableMainColumns =JSON.parse(JSON.stringify(ContainerRecordDetail.allSchemas.tableMainColumns)) -// tableColumns.value = [...ContainerRecordMain.allSchemas.tableColumns,...ContainerRecordDetail.allSchemas.tableMainColumns] -// } - +tableObject.params = { + type:'INITIAL' +} +importFileName.value = '器具初始化记录' // 字段设置 更新主列表字段 @@ -167,26 +101,11 @@ const HeadButttondata = [ defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 - // { - // label: '自定义扩展按钮', - // name: 'zdy', - // hide: false, - // type: 'primary', - // icon: 'Select', - // color: '' - // }, ] -const searchList = (model)=>{ - model.type = searchType.value - setSearchParams(model) -} - // 头部按钮事件 const buttonBaseClick = (val, item) => { - if (val == 'add') { // 新增 - openForm('create') - } else if (val == 'export') { // 导出 + if (val == 'export') { // 导出 handleExport() } else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { @@ -201,28 +120,6 @@ const buttonBaseClick = (val, item) => { console.log('其他按钮', item) } } - -// 列表-操作按钮 -const butttondata = (row,$index) => { -const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>-1&&findIndex<$index){ - return [] - } - return [ - // defaultButtons.mainListEditBtn({hasPermi:`wms:{routeName.value}:update`}), // 编辑 - // defaultButtons.mainListDeleteBtn({hasPermi:`wms:{routeName.value}:delete`}), // 删除 - ] -} - -// 列表-操作按钮事件 -const buttonTableClick = async (val, row) => { - if (val == 'edit') { // 编辑 - openForm('update', row) - } else if (val == 'delete') { // 删除 - handleDelete(row.id) - } -} - // 获取部门 用于详情 部门回显 const { wsCache } = useCache() /** 详情操作 */ @@ -233,24 +130,8 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { detailRef.value.openDetail(row, titleName, titleValue,"recordContainerMain") } -/** 添加/修改操作 */ -const basicFormRef = ref() -const openForm = (type: string, row?: any) => { - basicFormRef.value.open(type, row) -} -/** 删除按钮操作 */ -const handleDelete = async (id: number) => { - try { - // 删除的二次确认 - await message.delConfirm() - // 发起删除 - await ContainerRecordMainApi.deleteContainerRecordMain(id) - message.success(t('common.delSuccess')) - // 刷新列表 - buttonBaseClick('refresh',null) - } catch {} -} + /** 导出按钮操作 */ const handleExport = async () => { @@ -260,13 +141,8 @@ const handleExport = async () => { // 发起导出 loadStart() const excelTitle = ref(route.meta.title) - if(businessType.value = 'InitialContainerManage'){ - const data = await ContainerRecordMainApi.exportContainerInitRecordMain(tableObject.params) + const data = await ContainerRecordMainApi.exportContainerInitRecordMain(tableObject.params) download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) - }else { - const data = await ContainerRecordMainApi.exportContainerRecordMain(tableObject.params) - download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) - } } catch { } finally { loadDone() @@ -278,7 +154,7 @@ const searchFormClick = (searchData) => { const cmd = { 'column':'type', 'action':'==', - 'value':searchType.value + 'value':'INITIAL' } if (!Array.isArray(searchData.filters)) { searchData.filters = []; diff --git a/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/initialContainerRecordMain.data.ts b/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/initialContainerRecordMain.data.ts index 8b65a711b..3cdb48b7e 100644 --- a/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/initialContainerRecordMain.data.ts +++ b/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/initialContainerRecordMain.data.ts @@ -39,7 +39,7 @@ export const ContainerRecordMain = useCrudSchemas(reactive([ sort: 'custom', dictType: DICT_TYPE.CONTAIN_MANAGE_TYPE, dictClass: 'string', - isSearch: true, + isSearch: false, isTable: true, table: { width: 120 @@ -180,15 +180,6 @@ export const ContainerRecordMain = useCrudSchemas(reactive([ table: { width: 150 } - }, - { - label: '操作', - field: 'action', - isForm: false, - table: { - width: 150, - fixed: 'right' - } } ])) From 0e4a4f3497172a35365fb758b93bf0f60158ddb5 Mon Sep 17 00:00:00 2001 From: chenfang <1057876684@qq.com> Date: Wed, 30 Oct 2024 17:09:56 +0800 Subject: [PATCH 013/225] =?UTF-8?q?=E5=99=A8=E5=85=B7=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../containermanage/createContainerRecordMain/index.vue | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/index.vue index 0b2f50e14..c3885d7de 100644 --- a/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/index.vue @@ -228,13 +228,8 @@ const handleExport = async () => { // 发起导出 loadStart() const excelTitle = ref(route.meta.title) - if(businessType.value = 'InitialContainerManage'){ - const data = await ContainerRecordMainApi.exportContainerInitRecordMain(tableObject.params) - download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) - }else { - const data = await ContainerRecordMainApi.exportContainerRecordMain(tableObject.params) - download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) - } + const data = await ContainerRecordMainApi.exportContainerInitRecordMain(tableObject.params) + download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { loadDone() From ccd93519233fc67562b76649faef98b0ff76dcc1 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Wed, 30 Oct 2024 17:29:01 +0800 Subject: [PATCH 014/225] =?UTF-8?q?=E5=99=A8=E5=85=B7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../createContainerRecordMain.data.ts | 1 - .../createContainerRecordMain/index.vue | 119 ++----------- .../initialContainerRecordMain/index.vue | 2 +- .../moveContainerRecordMain/index.vue | 154 ++--------------- .../moveContainerRecordMain.data.ts | 10 -- .../returnContainerRecordMain/index.vue | 156 ++--------------- ...a.ts => returnContainerRecordMain.data.ts} | 10 -- .../scrapContainerRecordMain/index.vue | 159 ++---------------- .../scrapContainerRecordMain.data.ts | 10 -- 9 files changed, 65 insertions(+), 556 deletions(-) rename src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/{moveContainerRecordMain.data.ts => returnContainerRecordMain.data.ts} (97%) diff --git a/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/createContainerRecordMain.data.ts b/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/createContainerRecordMain.data.ts index 8b65a711b..fced84e20 100644 --- a/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/createContainerRecordMain.data.ts +++ b/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/createContainerRecordMain.data.ts @@ -39,7 +39,6 @@ export const ContainerRecordMain = useCrudSchemas(reactive([ sort: 'custom', dictType: DICT_TYPE.CONTAIN_MANAGE_TYPE, dictClass: 'string', - isSearch: true, isTable: true, table: { width: 120 diff --git a/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/index.vue index c3885d7de..571136246 100644 --- a/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/index.vue @@ -1,7 +1,11 @@ - - - - - item.field != "fromLocationCode") -// ContainerRecordDetailAllSchemas.value.tableMainColumns = array -// tableColumns.value = [...ContainerRecordMain.allSchemas.tableColumns,...ContainerRecordDetailAllSchemas.value.tableMainColumns] -// } -// else { -// ContainerRecordDetail.allSchemas.tableMainColumns =JSON.parse(JSON.stringify(ContainerRecordDetail.allSchemas.tableMainColumns)) -// tableColumns.value = [...ContainerRecordMain.allSchemas.tableColumns,...ContainerRecordDetail.allSchemas.tableMainColumns] -// } - +tableObject.params = { + type:'CREATE' +} +importFileName.value = '器具新增记录' // 字段设置 更新主列表字段 @@ -135,26 +101,11 @@ const HeadButttondata = [ defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 - // { - // label: '自定义扩展按钮', - // name: 'zdy', - // hide: false, - // type: 'primary', - // icon: 'Select', - // color: '' - // }, ] -const searchList = (model)=>{ - model.type = searchType.value - setSearchParams(model) -} - // 头部按钮事件 const buttonBaseClick = (val, item) => { - if (val == 'add') { // 新增 - openForm('create') - } else if (val == 'export') { // 导出 + if (val == 'export') { // 导出 handleExport() } else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { @@ -169,28 +120,6 @@ const buttonBaseClick = (val, item) => { console.log('其他按钮', item) } } - -// 列表-操作按钮 -const butttondata = (row,$index) => { -const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>-1&&findIndex<$index){ - return [] - } - return [ - // defaultButtons.mainListEditBtn({hasPermi:`wms:{routeName.value}:update`}), // 编辑 - // defaultButtons.mainListDeleteBtn({hasPermi:`wms:{routeName.value}:delete`}), // 删除 - ] -} - -// 列表-操作按钮事件 -const buttonTableClick = async (val, row) => { - if (val == 'edit') { // 编辑 - openForm('update', row) - } else if (val == 'delete') { // 删除 - handleDelete(row.id) - } -} - // 获取部门 用于详情 部门回显 const { wsCache } = useCache() /** 详情操作 */ @@ -201,24 +130,8 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { detailRef.value.openDetail(row, titleName, titleValue,"recordContainerMain") } -/** 添加/修改操作 */ -const basicFormRef = ref() -const openForm = (type: string, row?: any) => { - basicFormRef.value.open(type, row) -} -/** 删除按钮操作 */ -const handleDelete = async (id: number) => { - try { - // 删除的二次确认 - await message.delConfirm() - // 发起删除 - await ContainerRecordMainApi.deleteContainerRecordMain(id) - message.success(t('common.delSuccess')) - // 刷新列表 - buttonBaseClick('refresh',null) - } catch {} -} + /** 导出按钮操作 */ const handleExport = async () => { @@ -241,7 +154,7 @@ const searchFormClick = (searchData) => { const cmd = { 'column':'type', 'action':'==', - 'value': 'CREATE' + 'value':'CREATE' } if (!Array.isArray(searchData.filters)) { searchData.filters = []; diff --git a/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/index.vue index 4c4d90738..c8a01b99a 100644 --- a/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/index.vue @@ -142,7 +142,7 @@ const handleExport = async () => { loadStart() const excelTitle = ref(route.meta.title) const data = await ContainerRecordMainApi.exportContainerInitRecordMain(tableObject.params) - download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) + download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { loadDone() diff --git a/src/views/wms/inventoryjobManage/containermanage/moveContainerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/moveContainerRecordMain/index.vue index 0d04831a3..922e87f07 100644 --- a/src/views/wms/inventoryjobManage/containermanage/moveContainerRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/moveContainerRecordMain/index.vue @@ -1,7 +1,11 @@ - - - - - item.field != "fromLocationCode") - ContainerRecordDetailAllSchemas.value.tableMainColumns = array - tableColumns.value = [...ContainerRecordMain.allSchemas.tableColumns,...ContainerRecordDetailAllSchemas.value.tableMainColumns] - } - else { - ContainerRecordDetail.allSchemas.tableMainColumns =JSON.parse(JSON.stringify(ContainerRecordDetail.allSchemas.tableMainColumns)) - tableColumns.value = [...ContainerRecordMain.allSchemas.tableColumns,...ContainerRecordDetail.allSchemas.tableMainColumns] -} - +importFileName.value = '器具移动记录' // 字段设置 更新主列表字段 @@ -167,26 +101,11 @@ const HeadButttondata = [ defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 - // { - // label: '自定义扩展按钮', - // name: 'zdy', - // hide: false, - // type: 'primary', - // icon: 'Select', - // color: '' - // }, ] -const searchList = (model)=>{ - model.type = searchType.value - setSearchParams(model) -} - // 头部按钮事件 const buttonBaseClick = (val, item) => { - if (val == 'add') { // 新增 - openForm('create') - } else if (val == 'export') { // 导出 + if (val == 'export') { // 导出 handleExport() } else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { @@ -201,28 +120,6 @@ const buttonBaseClick = (val, item) => { console.log('其他按钮', item) } } - -// 列表-操作按钮 -const butttondata = (row,$index) => { -const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>-1&&findIndex<$index){ - return [] - } - return [ - // defaultButtons.mainListEditBtn({hasPermi:`wms:{routeName.value}:update`}), // 编辑 - // defaultButtons.mainListDeleteBtn({hasPermi:`wms:{routeName.value}:delete`}), // 删除 - ] -} - -// 列表-操作按钮事件 -const buttonTableClick = async (val, row) => { - if (val == 'edit') { // 编辑 - openForm('update', row) - } else if (val == 'delete') { // 删除 - handleDelete(row.id) - } -} - // 获取部门 用于详情 部门回显 const { wsCache } = useCache() /** 详情操作 */ @@ -233,24 +130,8 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { detailRef.value.openDetail(row, titleName, titleValue,"recordContainerMain") } -/** 添加/修改操作 */ -const basicFormRef = ref() -const openForm = (type: string, row?: any) => { - basicFormRef.value.open(type, row) -} -/** 删除按钮操作 */ -const handleDelete = async (id: number) => { - try { - // 删除的二次确认 - await message.delConfirm() - // 发起删除 - await ContainerRecordMainApi.deleteContainerRecordMain(id) - message.success(t('common.delSuccess')) - // 刷新列表 - buttonBaseClick('refresh',null) - } catch {} -} + /** 导出按钮操作 */ const handleExport = async () => { @@ -260,13 +141,8 @@ const handleExport = async () => { // 发起导出 loadStart() const excelTitle = ref(route.meta.title) - if(businessType.value = 'InitialContainerManage'){ - const data = await ContainerRecordMainApi.exportContainerInitRecordMain(tableObject.params) - download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) - }else { - const data = await ContainerRecordMainApi.exportContainerRecordMain(tableObject.params) - download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) - } + const data = await ContainerRecordMainApi.exportContainerInitRecordMain(tableObject.params) + download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { loadDone() @@ -278,7 +154,7 @@ const searchFormClick = (searchData) => { const cmd = { 'column':'type', 'action':'==', - 'value':searchType.value + 'value':'MOVE' } if (!Array.isArray(searchData.filters)) { searchData.filters = []; diff --git a/src/views/wms/inventoryjobManage/containermanage/moveContainerRecordMain/moveContainerRecordMain.data.ts b/src/views/wms/inventoryjobManage/containermanage/moveContainerRecordMain/moveContainerRecordMain.data.ts index 8b65a711b..b1c978291 100644 --- a/src/views/wms/inventoryjobManage/containermanage/moveContainerRecordMain/moveContainerRecordMain.data.ts +++ b/src/views/wms/inventoryjobManage/containermanage/moveContainerRecordMain/moveContainerRecordMain.data.ts @@ -39,7 +39,6 @@ export const ContainerRecordMain = useCrudSchemas(reactive([ sort: 'custom', dictType: DICT_TYPE.CONTAIN_MANAGE_TYPE, dictClass: 'string', - isSearch: true, isTable: true, table: { width: 120 @@ -180,15 +179,6 @@ export const ContainerRecordMain = useCrudSchemas(reactive([ table: { width: 150 } - }, - { - label: '操作', - field: 'action', - isForm: false, - table: { - width: 150, - fixed: 'right' - } } ])) diff --git a/src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/index.vue index 0d04831a3..8513b0510 100644 --- a/src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/index.vue @@ -1,7 +1,11 @@ - - - - - import download from '@/utils/download' -import { ContainerRecordMain, ContainerRecordMainRules, ContainerRecordDetail, ContainerRecordDetailRules } from './moveContainerRecordMain.data' +import { ContainerRecordMain, ContainerRecordMainRules, ContainerRecordDetail, ContainerRecordDetailRules } from './returnContainerRecordMain.data' console.log(3444,ContainerRecordDetail) import * as ContainerRecordMainApi from '@/api/wms/containerRecordMain' @@ -86,71 +75,16 @@ const { t } = useI18n() // 国际化 const route = useRoute() // 路由信息 const routeName = ref() routeName.value = route.name -const businessType = ref() const importFileName = ref() -const tableColumns = ref([...ContainerRecordMain.allSchemas.tableColumns, ...ContainerRecordDetail.allSchemas.tableMainColumns]) -// const ContainerRecordDetailTableColumns = ref(JSON.parse(JSON.stringify(ContainerRecordDetail.allSchemas.tableMainColumns))) -const ContainerRecordDetailAllSchemas = ref(JSON.parse(JSON.stringify(ContainerRecordDetail.allSchemas))) -console.log(2233,ContainerRecordDetail.allSchemas.tableMainColumns) -const searchType = ref() +const tableColumns = +ref([ ...ContainerRecordMain.allSchemas.tableColumns,...ContainerRecordDetail.allSchemas.tableMainColumns]) const { tableObject, tableMethods } = useTable({ getListApi: ContainerRecordDetailApi.getContainerRecordDetailPage // 分页接口 }) - -// 判断 路由名称 进行条件过滤 -/** - * - */ - if ( routeName.value == 'ReturnContainerManageRecord') { - tableObject.params = { +tableObject.params = { type:'RETURN' - } - searchType.value = 'RETURN' - businessType.value = 'ReturnContainerManage' - importFileName.value = '器具返回记录' -} else if ( routeName.value == 'MoveContainerManageRecord') { - tableObject.params = { - type:'MOVE' - } - searchType.value = 'MOVE' - businessType.value = 'MoveContainerManage' - importFileName.value = '器具转移记录' -} else if ( routeName.value == 'InitialContainerManageRecord') { - tableObject.params = { - type:'INITIAL', - } - searchType.value = 'INITIAL' - businessType.value = 'InitialContainerManage' - importFileName.value = '器具初始化记录' -} -else if ( routeName.value == 'ScrapContainerManageRecord') { - tableObject.params = { - type:'SCRAP' - } - searchType.value = 'SCRAP' - businessType.value = 'ScrapContainerManage' - importFileName.value = '器具报废记录' -} else if ( routeName.value == 'DeliverContainerManageRecord') { - tableObject.params = { - type: 'DELIVER', - } - searchType.value = 'DELIVER' - businessType.value = 'DeliverContainerManage' - importFileName.value = '器具发运记录' -} else if( routeName.value == 'ContainerManageRecord'){ - businessType.value = 'ContainerManage' - importFileName.value = '器具管理记录' } - if ( routeName.value == 'InitialContainerManageRecord') { - const array = ContainerRecordDetail.allSchemas.tableMainColumns.filter(item=>item.field != "fromLocationCode") - ContainerRecordDetailAllSchemas.value.tableMainColumns = array - tableColumns.value = [...ContainerRecordMain.allSchemas.tableColumns,...ContainerRecordDetailAllSchemas.value.tableMainColumns] - } - else { - ContainerRecordDetail.allSchemas.tableMainColumns =JSON.parse(JSON.stringify(ContainerRecordDetail.allSchemas.tableMainColumns)) - tableColumns.value = [...ContainerRecordMain.allSchemas.tableColumns,...ContainerRecordDetail.allSchemas.tableMainColumns] -} - +importFileName.value = '器具返回记录' // 字段设置 更新主列表字段 @@ -167,26 +101,11 @@ const HeadButttondata = [ defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 - // { - // label: '自定义扩展按钮', - // name: 'zdy', - // hide: false, - // type: 'primary', - // icon: 'Select', - // color: '' - // }, ] -const searchList = (model)=>{ - model.type = searchType.value - setSearchParams(model) -} - // 头部按钮事件 const buttonBaseClick = (val, item) => { - if (val == 'add') { // 新增 - openForm('create') - } else if (val == 'export') { // 导出 + if (val == 'export') { // 导出 handleExport() } else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { @@ -201,28 +120,6 @@ const buttonBaseClick = (val, item) => { console.log('其他按钮', item) } } - -// 列表-操作按钮 -const butttondata = (row,$index) => { -const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>-1&&findIndex<$index){ - return [] - } - return [ - // defaultButtons.mainListEditBtn({hasPermi:`wms:{routeName.value}:update`}), // 编辑 - // defaultButtons.mainListDeleteBtn({hasPermi:`wms:{routeName.value}:delete`}), // 删除 - ] -} - -// 列表-操作按钮事件 -const buttonTableClick = async (val, row) => { - if (val == 'edit') { // 编辑 - openForm('update', row) - } else if (val == 'delete') { // 删除 - handleDelete(row.id) - } -} - // 获取部门 用于详情 部门回显 const { wsCache } = useCache() /** 详情操作 */ @@ -233,24 +130,8 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { detailRef.value.openDetail(row, titleName, titleValue,"recordContainerMain") } -/** 添加/修改操作 */ -const basicFormRef = ref() -const openForm = (type: string, row?: any) => { - basicFormRef.value.open(type, row) -} -/** 删除按钮操作 */ -const handleDelete = async (id: number) => { - try { - // 删除的二次确认 - await message.delConfirm() - // 发起删除 - await ContainerRecordMainApi.deleteContainerRecordMain(id) - message.success(t('common.delSuccess')) - // 刷新列表 - buttonBaseClick('refresh',null) - } catch {} -} + /** 导出按钮操作 */ const handleExport = async () => { @@ -260,13 +141,8 @@ const handleExport = async () => { // 发起导出 loadStart() const excelTitle = ref(route.meta.title) - if(businessType.value = 'InitialContainerManage'){ - const data = await ContainerRecordMainApi.exportContainerInitRecordMain(tableObject.params) - download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) - }else { - const data = await ContainerRecordMainApi.exportContainerRecordMain(tableObject.params) - download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) - } + const data = await ContainerRecordMainApi.exportContainerInitRecordMain(tableObject.params) + download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { loadDone() @@ -278,7 +154,7 @@ const searchFormClick = (searchData) => { const cmd = { 'column':'type', 'action':'==', - 'value':searchType.value + 'value':'RETURN' } if (!Array.isArray(searchData.filters)) { searchData.filters = []; diff --git a/src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/moveContainerRecordMain.data.ts b/src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/returnContainerRecordMain.data.ts similarity index 97% rename from src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/moveContainerRecordMain.data.ts rename to src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/returnContainerRecordMain.data.ts index 8b65a711b..b1c978291 100644 --- a/src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/moveContainerRecordMain.data.ts +++ b/src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/returnContainerRecordMain.data.ts @@ -39,7 +39,6 @@ export const ContainerRecordMain = useCrudSchemas(reactive([ sort: 'custom', dictType: DICT_TYPE.CONTAIN_MANAGE_TYPE, dictClass: 'string', - isSearch: true, isTable: true, table: { width: 120 @@ -180,15 +179,6 @@ export const ContainerRecordMain = useCrudSchemas(reactive([ table: { width: 150 } - }, - { - label: '操作', - field: 'action', - isForm: false, - table: { - width: 150, - fixed: 'right' - } } ])) diff --git a/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/index.vue index 91abaf844..8602f94c8 100644 --- a/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/index.vue @@ -1,7 +1,11 @@ - - - - - import download from '@/utils/download' -import { ContainerRecordMain, ContainerRecordMainRules, ContainerRecordDetail, ContainerRecordDetailRules } from './initialContainerRecordMain.data' +import { ContainerRecordMain, ContainerRecordMainRules, ContainerRecordDetail, ContainerRecordDetailRules } from './scrapContainerRecordMain.data' console.log(3444,ContainerRecordDetail) import * as ContainerRecordMainApi from '@/api/wms/containerRecordMain' @@ -80,77 +69,22 @@ import { formatDate } from '@/utils/formatTime' import { usePageLoading } from '@/hooks/web/usePageLoading' import { json } from 'stream/consumers' const { loadStart, loadDone } = usePageLoading() -defineOptions({ name: 'ContainerRecordMain' }) +defineOptions({ name: 'ScrapContainerManageRecord' }) const message = useMessage() // 消息弹窗 const { t } = useI18n() // 国际化 const route = useRoute() // 路由信息 const routeName = ref() routeName.value = route.name -const businessType = ref() const importFileName = ref() -const tableColumns = ref([...ContainerRecordMain.allSchemas.tableColumns, ...ContainerRecordDetail.allSchemas.tableMainColumns]) -// const ContainerRecordDetailTableColumns = ref(JSON.parse(JSON.stringify(ContainerRecordDetail.allSchemas.tableMainColumns))) -const ContainerRecordDetailAllSchemas = ref(JSON.parse(JSON.stringify(ContainerRecordDetail.allSchemas))) -console.log(2233,ContainerRecordDetail.allSchemas.tableMainColumns) -const searchType = ref() +const tableColumns = +ref([ ...ContainerRecordMain.allSchemas.tableColumns,...ContainerRecordDetail.allSchemas.tableMainColumns]) const { tableObject, tableMethods } = useTable({ getListApi: ContainerRecordDetailApi.getContainerRecordDetailPage // 分页接口 }) - -// 判断 路由名称 进行条件过滤 -/** - * - */ - if ( routeName.value == 'ReturnContainerManageRecord') { - tableObject.params = { - type:'RETURN' - } - searchType.value = 'RETURN' - businessType.value = 'ReturnContainerManage' - importFileName.value = '器具返回记录' -} else if ( routeName.value == 'MoveContainerManageRecord') { - tableObject.params = { - type:'MOVE' - } - searchType.value = 'MOVE' - businessType.value = 'MoveContainerManage' - importFileName.value = '器具转移记录' -} else if ( routeName.value == 'InitialContainerManageRecord') { - tableObject.params = { - type:'INITIAL', - } - searchType.value = 'INITIAL' - businessType.value = 'InitialContainerManage' - importFileName.value = '器具初始化记录' -} -else if ( routeName.value == 'ScrapContainerManageRecord') { - tableObject.params = { +tableObject.params = { type:'SCRAP' - } - searchType.value = 'SCRAP' - businessType.value = 'ScrapContainerManage' - importFileName.value = '器具报废记录' -} else if ( routeName.value == 'DeliverContainerManageRecord') { - tableObject.params = { - type: 'DELIVER', - } - searchType.value = 'DELIVER' - businessType.value = 'DeliverContainerManage' - importFileName.value = '器具发运记录' -} else if( routeName.value == 'ContainerManageRecord'){ - businessType.value = 'ContainerManage' - importFileName.value = '器具管理记录' } - if ( routeName.value == 'InitialContainerManageRecord') { - const array = ContainerRecordDetail.allSchemas.tableMainColumns.filter(item=>item.field != "fromLocationCode") - ContainerRecordDetailAllSchemas.value.tableMainColumns = array - tableColumns.value = [...ContainerRecordMain.allSchemas.tableColumns,...ContainerRecordDetailAllSchemas.value.tableMainColumns] - } - else { - ContainerRecordDetail.allSchemas.tableMainColumns =JSON.parse(JSON.stringify(ContainerRecordDetail.allSchemas.tableMainColumns)) - tableColumns.value = [...ContainerRecordMain.allSchemas.tableColumns,...ContainerRecordDetail.allSchemas.tableMainColumns] -} - +importFileName.value = '器具报废记录' // 字段设置 更新主列表字段 @@ -162,31 +96,15 @@ const updataTableColumns = (val) => { const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ - // defaultButtons.defaultAddBtn({hasPermi:`wms:{routeName.value}:create`}), // 新增 defaultButtons.defaultExportBtn({hasPermi:`wms:${routeName.value}:export`}), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 - // { - // label: '自定义扩展按钮', - // name: 'zdy', - // hide: false, - // type: 'primary', - // icon: 'Select', - // color: '' - // }, ] -const searchList = (model)=>{ - model.type = searchType.value - setSearchParams(model) -} - // 头部按钮事件 const buttonBaseClick = (val, item) => { - if (val == 'add') { // 新增 - openForm('create') - } else if (val == 'export') { // 导出 + if (val == 'export') { // 导出 handleExport() } else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { @@ -201,28 +119,6 @@ const buttonBaseClick = (val, item) => { console.log('其他按钮', item) } } - -// 列表-操作按钮 -const butttondata = (row,$index) => { -const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>-1&&findIndex<$index){ - return [] - } - return [ - // defaultButtons.mainListEditBtn({hasPermi:`wms:{routeName.value}:update`}), // 编辑 - // defaultButtons.mainListDeleteBtn({hasPermi:`wms:{routeName.value}:delete`}), // 删除 - ] -} - -// 列表-操作按钮事件 -const buttonTableClick = async (val, row) => { - if (val == 'edit') { // 编辑 - openForm('update', row) - } else if (val == 'delete') { // 删除 - handleDelete(row.id) - } -} - // 获取部门 用于详情 部门回显 const { wsCache } = useCache() /** 详情操作 */ @@ -233,24 +129,8 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { detailRef.value.openDetail(row, titleName, titleValue,"recordContainerMain") } -/** 添加/修改操作 */ -const basicFormRef = ref() -const openForm = (type: string, row?: any) => { - basicFormRef.value.open(type, row) -} -/** 删除按钮操作 */ -const handleDelete = async (id: number) => { - try { - // 删除的二次确认 - await message.delConfirm() - // 发起删除 - await ContainerRecordMainApi.deleteContainerRecordMain(id) - message.success(t('common.delSuccess')) - // 刷新列表 - buttonBaseClick('refresh',null) - } catch {} -} + /** 导出按钮操作 */ const handleExport = async () => { @@ -260,13 +140,8 @@ const handleExport = async () => { // 发起导出 loadStart() const excelTitle = ref(route.meta.title) - if(businessType.value = 'InitialContainerManage'){ - const data = await ContainerRecordMainApi.exportContainerInitRecordMain(tableObject.params) - download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) - }else { - const data = await ContainerRecordMainApi.exportContainerRecordMain(tableObject.params) - download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) - } + const data = await ContainerRecordMainApi.exportContainerInitRecordMain(tableObject.params) + download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { loadDone() @@ -278,7 +153,7 @@ const searchFormClick = (searchData) => { const cmd = { 'column':'type', 'action':'==', - 'value':searchType.value + 'value':'SCRAP' } if (!Array.isArray(searchData.filters)) { searchData.filters = []; diff --git a/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/scrapContainerRecordMain.data.ts b/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/scrapContainerRecordMain.data.ts index 8b65a711b..b1c978291 100644 --- a/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/scrapContainerRecordMain.data.ts +++ b/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/scrapContainerRecordMain.data.ts @@ -39,7 +39,6 @@ export const ContainerRecordMain = useCrudSchemas(reactive([ sort: 'custom', dictType: DICT_TYPE.CONTAIN_MANAGE_TYPE, dictClass: 'string', - isSearch: true, isTable: true, table: { width: 120 @@ -180,15 +179,6 @@ export const ContainerRecordMain = useCrudSchemas(reactive([ table: { width: 150 } - }, - { - label: '操作', - field: 'action', - isForm: false, - table: { - width: 150, - fixed: 'right' - } } ])) From 7e06d4c5dfd0f8c9ad50527d00bfd6a90b02f978 Mon Sep 17 00:00:00 2001 From: chenfang <1057876684@qq.com> Date: Thu, 31 Oct 2024 10:01:03 +0800 Subject: [PATCH 015/225] =?UTF-8?q?HL-6311=20=E5=99=A8=E5=85=B7=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=AF=BC=E5=87=BA=E6=8B=86=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/containerRecordMain/index.ts | 63 ++++++++- .../createContainerRecordMain.data.ts | 10 +- .../createContainerRecordMain/index.vue | 2 +- .../deliverContainerRecordMain.data.ts | 2 +- .../deliverContainerRecordMain/index.vue | 126 +++--------------- .../initialContainerRecordMain/index.vue | 2 +- .../initialContainerRecordMain.data.ts | 10 +- .../moveContainerRecordMain/index.vue | 2 +- .../returnContainerRecordMain/index.vue | 2 +- .../scrapContainerRecordMain/index.vue | 2 +- .../scrapContainerRecordMain.data.ts | 12 +- 11 files changed, 101 insertions(+), 132 deletions(-) diff --git a/src/api/wms/containerRecordMain/index.ts b/src/api/wms/containerRecordMain/index.ts index 044e9d8ba..3fe4f2c53 100644 --- a/src/api/wms/containerRecordMain/index.ts +++ b/src/api/wms/containerRecordMain/index.ts @@ -58,7 +58,8 @@ export const exportContainerRecordMain = async (params) => { } // 导出器具管理初始化记录主 Excel -export const exportContainerInitRecordMain = async (params) => { +export const exportContainerInitialRecordMain = async (params) => { + params.businessType = 'InitialContainerManage' if (params.isSearch) { delete params.isSearch const data = { ...params } @@ -68,6 +69,66 @@ export const exportContainerInitRecordMain = async (params) => { } } +// 导出器具管理创建记录主 Excel +export const exportContainerCreateRecordMain = async (params) => { + params.businessType = 'CreateContainerManage' + if (params.isSearch) { + delete params.isSearch + const data = { ...params } + return await request.downloadPost({ url: '/wms/container-record-main/export-excel-init-senior', data }) + } else { + return await request.download({ url: `/wms/container-record-main/export-excel-init`, params }) + } +} + +// 导出器具管理返回记录主 Excel +export const exportContainerReturnRecordMain = async (params) => { + params.businessType = 'CreateContainerManage' +if (params.isSearch) { +delete params.isSearch +const data = { ...params } +return await request.downloadPost({ url: '/wms/container-record-main/export-excel-senior', data }) +} else { +return await request.download({ url: `/wms/container-record-main/export-excel`, params }) +} +} + +// 导出器具管理移动记录主 Excel +export const exportContainerMoveRecordMain = async (params) => { + params.businessType = 'MoveContainerManage' +if (params.isSearch) { +delete params.isSearch +const data = { ...params } +return await request.downloadPost({ url: '/wms/container-record-main/export-excel-senior', data }) +} else { +return await request.download({ url: `/wms/container-record-main/export-excel`, params }) +} +} + +// 导出器具管理报废记录主 Excel +export const exportContainerScrapRecordMain = async (params) => { + params.businessType = 'ScrapContainerManage' +if (params.isSearch) { +delete params.isSearch +const data = { ...params } +return await request.downloadPost({ url: '/wms/container-record-main/export-excel-scrap-senior', data }) +} else { +return await request.download({ url: `/wms/container-record-main/export-excel-scrap`, params }) +} +} + +// 导出器具管理发运记录主 Excel +export const exportContainerDeliverRecordMain = async (params) => { + params.businessType = 'DeliverContainerManage' +if (params.isSearch) { +delete params.isSearch +const data = { ...params } +return await request.downloadPost({ url: '/wms/container-record-main/export-excel-init-senior', data }) +} else { +return await request.download({ url: `/wms/container-record-main/export-excel-init`, params }) +} +} + // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/container-record-main/get-import-template' }) diff --git a/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/createContainerRecordMain.data.ts b/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/createContainerRecordMain.data.ts index fced84e20..8c168ccb5 100644 --- a/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/createContainerRecordMain.data.ts +++ b/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/createContainerRecordMain.data.ts @@ -232,11 +232,11 @@ export const ContainerRecordDetail = useCrudSchemas(reactive([ field: 'containerNumber', sort: 'custom' }, - { - label: '来源库位代码', - field: 'fromLocationCode', - sort: 'custom', - }, + // { + // label: '来源库位代码', + // field: 'fromLocationCode', + // sort: 'custom', + // }, { label: '目标库位代码', field: 'toLocationCode', diff --git a/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/index.vue index 571136246..5d482ed10 100644 --- a/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/createContainerRecordMain/index.vue @@ -141,7 +141,7 @@ const handleExport = async () => { // 发起导出 loadStart() const excelTitle = ref(route.meta.title) - const data = await ContainerRecordMainApi.exportContainerInitRecordMain(tableObject.params) + const data = await ContainerRecordMainApi.exportContainerCreateRecordMain(tableObject.params) download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { diff --git a/src/views/wms/inventoryjobManage/containermanage/deliverContainerRecordMain/deliverContainerRecordMain.data.ts b/src/views/wms/inventoryjobManage/containermanage/deliverContainerRecordMain/deliverContainerRecordMain.data.ts index 8b65a711b..ab4b00f7d 100644 --- a/src/views/wms/inventoryjobManage/containermanage/deliverContainerRecordMain/deliverContainerRecordMain.data.ts +++ b/src/views/wms/inventoryjobManage/containermanage/deliverContainerRecordMain/deliverContainerRecordMain.data.ts @@ -39,7 +39,7 @@ export const ContainerRecordMain = useCrudSchemas(reactive([ sort: 'custom', dictType: DICT_TYPE.CONTAIN_MANAGE_TYPE, dictClass: 'string', - isSearch: true, + isSearch: false, isTable: true, table: { width: 120 diff --git a/src/views/wms/inventoryjobManage/containermanage/deliverContainerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/deliverContainerRecordMain/index.vue index 75f0171f2..96e5efbe4 100644 --- a/src/views/wms/inventoryjobManage/containermanage/deliverContainerRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/deliverContainerRecordMain/index.vue @@ -1,7 +1,11 @@ - - - - - item.field != "fromLocationCode") -// ContainerRecordDetailAllSchemas.value.tableMainColumns = array -// tableColumns.value = [...ContainerRecordMain.allSchemas.tableColumns,...ContainerRecordDetailAllSchemas.value.tableMainColumns] -// } -// else { -// ContainerRecordDetail.allSchemas.tableMainColumns =JSON.parse(JSON.stringify(ContainerRecordDetail.allSchemas.tableMainColumns)) -// tableColumns.value = [...ContainerRecordMain.allSchemas.tableColumns,...ContainerRecordDetail.allSchemas.tableMainColumns] -// } - +tableObject.params = { + type:'DELIVER' +} +importFileName.value = '器具发运记录' // 字段设置 更新主列表字段 @@ -135,26 +101,11 @@ const HeadButttondata = [ defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 - // { - // label: '自定义扩展按钮', - // name: 'zdy', - // hide: false, - // type: 'primary', - // icon: 'Select', - // color: '' - // }, ] -const searchList = (model)=>{ - model.type = searchType.value - setSearchParams(model) -} - // 头部按钮事件 const buttonBaseClick = (val, item) => { - if (val == 'add') { // 新增 - openForm('create') - } else if (val == 'export') { // 导出 + if (val == 'export') { // 导出 handleExport() } else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { @@ -169,28 +120,6 @@ const buttonBaseClick = (val, item) => { console.log('其他按钮', item) } } - -// 列表-操作按钮 -const butttondata = (row,$index) => { -const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 - if(findIndex>-1&&findIndex<$index){ - return [] - } - return [ - // defaultButtons.mainListEditBtn({hasPermi:`wms:{routeName.value}:update`}), // 编辑 - // defaultButtons.mainListDeleteBtn({hasPermi:`wms:{routeName.value}:delete`}), // 删除 - ] -} - -// 列表-操作按钮事件 -const buttonTableClick = async (val, row) => { - if (val == 'edit') { // 编辑 - openForm('update', row) - } else if (val == 'delete') { // 删除 - handleDelete(row.id) - } -} - // 获取部门 用于详情 部门回显 const { wsCache } = useCache() /** 详情操作 */ @@ -201,24 +130,8 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { detailRef.value.openDetail(row, titleName, titleValue,"recordContainerMain") } -/** 添加/修改操作 */ -const basicFormRef = ref() -const openForm = (type: string, row?: any) => { - basicFormRef.value.open(type, row) -} -/** 删除按钮操作 */ -const handleDelete = async (id: number) => { - try { - // 删除的二次确认 - await message.delConfirm() - // 发起删除 - await ContainerRecordMainApi.deleteContainerRecordMain(id) - message.success(t('common.delSuccess')) - // 刷新列表 - buttonBaseClick('refresh',null) - } catch {} -} + /** 导出按钮操作 */ const handleExport = async () => { @@ -228,13 +141,8 @@ const handleExport = async () => { // 发起导出 loadStart() const excelTitle = ref(route.meta.title) - if(businessType.value = 'InitialContainerManage'){ - const data = await ContainerRecordMainApi.exportContainerInitRecordMain(tableObject.params) - download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) - }else { - const data = await ContainerRecordMainApi.exportContainerRecordMain(tableObject.params) - download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) - } + const data = await ContainerRecordMainApi.exportContainerDeliverRecordMain(tableObject.params) + download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { loadDone() @@ -246,7 +154,7 @@ const searchFormClick = (searchData) => { const cmd = { 'column':'type', 'action':'==', - 'value': 'CREATE' + 'value':'DELIVER' } if (!Array.isArray(searchData.filters)) { searchData.filters = []; diff --git a/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/index.vue index c8a01b99a..d4250529d 100644 --- a/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/index.vue @@ -141,7 +141,7 @@ const handleExport = async () => { // 发起导出 loadStart() const excelTitle = ref(route.meta.title) - const data = await ContainerRecordMainApi.exportContainerInitRecordMain(tableObject.params) + const data = await ContainerRecordMainApi.exportContainerInitialRecordMain(tableObject.params) download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { diff --git a/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/initialContainerRecordMain.data.ts b/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/initialContainerRecordMain.data.ts index 3cdb48b7e..2e7b5acec 100644 --- a/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/initialContainerRecordMain.data.ts +++ b/src/views/wms/inventoryjobManage/containermanage/initialContainerRecordMain/initialContainerRecordMain.data.ts @@ -224,11 +224,11 @@ export const ContainerRecordDetail = useCrudSchemas(reactive([ field: 'containerNumber', sort: 'custom' }, - { - label: '来源库位代码', - field: 'fromLocationCode', - sort: 'custom', - }, + // { + // label: '来源库位代码', + // field: 'fromLocationCode', + // sort: 'custom', + // }, { label: '目标库位代码', field: 'toLocationCode', diff --git a/src/views/wms/inventoryjobManage/containermanage/moveContainerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/moveContainerRecordMain/index.vue index 922e87f07..8148eb19d 100644 --- a/src/views/wms/inventoryjobManage/containermanage/moveContainerRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/moveContainerRecordMain/index.vue @@ -141,7 +141,7 @@ const handleExport = async () => { // 发起导出 loadStart() const excelTitle = ref(route.meta.title) - const data = await ContainerRecordMainApi.exportContainerInitRecordMain(tableObject.params) + const data = await ContainerRecordMainApi.exportContainerMoveRecordMain(tableObject.params) download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { diff --git a/src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/index.vue index 8513b0510..ab0bb9633 100644 --- a/src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/returnContainerRecordMain/index.vue @@ -141,7 +141,7 @@ const handleExport = async () => { // 发起导出 loadStart() const excelTitle = ref(route.meta.title) - const data = await ContainerRecordMainApi.exportContainerInitRecordMain(tableObject.params) + const data = await ContainerRecordMainApi.exportContainerReturnRecordMain(tableObject.params) download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { diff --git a/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/index.vue index 8602f94c8..f890fbc6a 100644 --- a/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/index.vue @@ -140,7 +140,7 @@ const handleExport = async () => { // 发起导出 loadStart() const excelTitle = ref(route.meta.title) - const data = await ContainerRecordMainApi.exportContainerInitRecordMain(tableObject.params) + const data = await ContainerRecordMainApi.exportContainerScrapRecordMain(tableObject.params) download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { diff --git a/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/scrapContainerRecordMain.data.ts b/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/scrapContainerRecordMain.data.ts index b1c978291..581cb1d1f 100644 --- a/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/scrapContainerRecordMain.data.ts +++ b/src/views/wms/inventoryjobManage/containermanage/scrapContainerRecordMain/scrapContainerRecordMain.data.ts @@ -228,13 +228,13 @@ export const ContainerRecordDetail = useCrudSchemas(reactive([ field: 'fromLocationCode', sort: 'custom', }, + // { + // label: '目标库位代码', + // field: 'toLocationCode', + // sort: 'custom', + // }, { - label: '目标库位代码', - field: 'toLocationCode', - sort: 'custom', - }, - { - label: '到数量', + label: '数量', field: 'toQty', sort: 'custom', }, From 32f91571e467d8fce7992b1660e1037d1d81e94d Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Thu, 31 Oct 2024 10:55:15 +0800 Subject: [PATCH 016/225] =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=94=B6=E8=B4=A7?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1-=E6=9B=B4=E6=96=B0=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/en-US.ts | 1 + src/locales/zh-CN.ts | 1 + src/utils/disposition/defaultButtons.ts | 13 ++++++++++++- .../purchasereceiptJobMain/index.vue | 6 +++++- 4 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index 9d4a6b2c2..3d295d2cb 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -871,6 +871,7 @@ export default { 新增:'Add', 导入:'Import', 导出:'Export', + 更新任务设置:'UpdatingTaskSettings', 刷新:'Refresh', 筛选:'Filter', 选择当页:'As Page', diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index dc482ff9c..5e531dc5f 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -873,6 +873,7 @@ export default { 新增:'新增', 导入:'导入', 导出:'导出', + 更新任务设置:'更新任务设置', 刷新:'刷新', 筛选:'筛选', 选择当页:'选择当页', diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts index 73b968041..e693de83d 100644 --- a/src/utils/disposition/defaultButtons.ts +++ b/src/utils/disposition/defaultButtons.ts @@ -68,7 +68,18 @@ export function defaultExportTableBtn(option: any) { hasPermi: '' }) } - +// 导出按钮 +export function defaultUpdateTaskSettingBtn(option: any) { + return __defaultBtnOption(option, { + label: t(`ts.更新任务设置`).replace('ts.', ''), + name: 'updateTaskSetting', + hide: false, + type: 'warning', + icon: 'ep:refresh', + color: '', + hasPermi: '' + }) +} // 字段设置 // export function defaultFieldSettingBtn(option:any) { diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue index 82a8384bd..7e379b968 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue @@ -176,7 +176,8 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ - defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereceipt-job-main:export'}), // 导出 +defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereceipt-job-main:export'}), // 导出 +defaultButtons.defaultUpdateTaskSettingBtn(null), // 更新任务设置 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -186,6 +187,9 @@ const HeadButttondata = [ const buttonBaseClick = (val, item) => { if (val == 'export') { // 导出 handleExport() + }else if(val == 'updateTaskSetting'){ + // 更新任务设置 + } else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { searchFormClick({ From 20ee40b2a6a8643c59a978f0fde5036ea4c0dd47 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Thu, 31 Oct 2024 11:43:08 +0800 Subject: [PATCH 017/225] =?UTF-8?q?=E7=BC=BA=E9=99=B7:HL-4998=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/purchasereceiptJobMain/index.ts | 5 +++++ .../purchasereceipt/purchasereceiptJobMain/index.vue | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/api/wms/purchasereceiptJobMain/index.ts b/src/api/wms/purchasereceiptJobMain/index.ts index 79e546090..0a7b2fcf8 100644 --- a/src/api/wms/purchasereceiptJobMain/index.ts +++ b/src/api/wms/purchasereceiptJobMain/index.ts @@ -139,3 +139,8 @@ export const acceptPurchasereceiptJobMain = (id: number) => { export const refusalPurchasereceiptJobMain = (data) => { return request.post({ url: '/wms/purchasereceipt-job-main/refusal',data}) } + +// 更新任务配置 +export const updatePurchasereceiptJobConfig = () => { + return request.put({ url: '/wms/purchasereceipt-job-main/updatePurchasereceiptJobConfig'}) +} \ No newline at end of file diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue index 7e379b968..a8136d188 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue @@ -189,7 +189,16 @@ const buttonBaseClick = (val, item) => { handleExport() }else if(val == 'updateTaskSetting'){ // 更新任务设置 - + try { + // loading开始 + loadStart() + PurchasereceiptJobMainApi.updatePurchasereceiptJobConfig() + buttonBaseClick('refresh',null) + message.success(t('更新成功')) + } catch { + } finally { + loadDone() + } } else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { searchFormClick({ From 3f02b74432459a9aec303304c3a8095fb62c8433 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Thu, 31 Oct 2024 13:31:48 +0800 Subject: [PATCH 018/225] =?UTF-8?q?=E7=BC=BA=E9=99=B7:HL-4998=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/purchasereceiptJobMain/index.ts | 5 +++++ .../purchasereceiptJobMain/index.vue | 4 ++-- .../sparereceipt/sparereceiptJobMain/index.vue | 15 ++++++++++++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/api/wms/purchasereceiptJobMain/index.ts b/src/api/wms/purchasereceiptJobMain/index.ts index 0a7b2fcf8..f024ded64 100644 --- a/src/api/wms/purchasereceiptJobMain/index.ts +++ b/src/api/wms/purchasereceiptJobMain/index.ts @@ -143,4 +143,9 @@ export const refusalPurchasereceiptJobMain = (data) => { // 更新任务配置 export const updatePurchasereceiptJobConfig = () => { return request.put({ url: '/wms/purchasereceipt-job-main/updatePurchasereceiptJobConfig'}) +} + +// 维修备件更新任务配置 +export const updatePurchasereceiptJobConfigSpare = () => { + return request.put({ url: '/wms/purchasereceipt-job-main/updatePurchasereceiptJobConfigSpare'}) } \ No newline at end of file diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue index a8136d188..16b901b6a 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue @@ -176,8 +176,8 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ -defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereceipt-job-main:export'}), // 导出 -defaultButtons.defaultUpdateTaskSettingBtn(null), // 更新任务设置 + defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereceipt-job-main:export'}), // 导出 + defaultButtons.defaultUpdateTaskSettingBtn(null), // 更新任务设置 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 diff --git a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue index ae96d00d7..52732514f 100644 --- a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue @@ -142,6 +142,7 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereceipt-job-main:export'}), // 导出 + defaultButtons.defaultUpdateTaskSettingBtn(null), // 更新任务设置 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -151,7 +152,19 @@ const HeadButttondata = [ const buttonBaseClick = (val, item) => { if (val == 'export') { // 导出 handleExport() - } else if (val == 'refresh') { // 刷新 + } else if(val == 'updateTaskSetting'){ + // 更新任务设置 + try { + // loading开始 + loadStart() + PurchasereceiptJobMainApi.updatePurchasereceiptJobConfigSpare() + buttonBaseClick('refresh',null) + message.success(t('更新成功')) + } catch { + } finally { + loadDone() + } + }else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { searchFormClick({ filters: tableObject.params.filters From 4ba18d2770bd4a0c93488e3391e2858564c3989c Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Thu, 31 Oct 2024 14:13:29 +0800 Subject: [PATCH 019/225] =?UTF-8?q?=E5=BA=93=E5=AD=98=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=94=B3=E8=AF=B7-=E5=BA=93=E5=AD=98=E4=BD=99=E9=A2=9D?= =?UTF-8?q?=E8=B4=9F=E6=95=B0=E6=83=85=E5=86=B5=EF=BC=8C=E5=88=B0=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E4=B8=BA0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventorychange/inventorychangeRequestMain/index.vue | 8 ++++---- .../inventorychangeRequestMain.data.ts | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue index 22977da05..b180eb5ec 100644 --- a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue +++ b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue @@ -453,10 +453,10 @@ const submitForm = async (formType, submitData) => { message.warning('请选择到库存状态') return } - if(tableData.value.find(item=>!item.toQty||item.toQty==0)){ - message.warning('请填写到数量') - return - } + // if(tableData.value.find(item=>!item.toQty||item.toQty==0)){ + // message.warning('请填写到数量') + // return + // } if(tableData.value.find(item=>!item.toExpireDate)){ message.warning('请选择到过期日期') return diff --git a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts index 3de351704..cf4f0901c 100644 --- a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts +++ b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts @@ -565,14 +565,12 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive Date: Thu, 31 Oct 2024 15:44:18 +0800 Subject: [PATCH 020/225] =?UTF-8?q?=E7=BC=BA=E9=99=B7:HL-4998=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/purchasereturnJobMain/index.ts | 5 +++++ .../purchasereturn/purchasereturnJobMain/index.vue | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/api/wms/purchasereturnJobMain/index.ts b/src/api/wms/purchasereturnJobMain/index.ts index d452888a3..1e5a4a5ce 100644 --- a/src/api/wms/purchasereturnJobMain/index.ts +++ b/src/api/wms/purchasereturnJobMain/index.ts @@ -106,3 +106,8 @@ export const acceptPurchasereturnJobMain = (id: number) => { export const abandonPurchasereturnJobMain = (id: number) => { return request.put({ url: '/wms/purchasereturn-job-main/abandon?id=' + id }) } + +// 更新任务配置 +export const updatePurchasereturnJobConfig = () => { + return request.put({ url: '/wms/purchasereceipt-job-main/updatePurchasereturnJobConfig'}) +} \ No newline at end of file diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue index 8facc3d1b..6a2e19a37 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue @@ -141,6 +141,7 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereturn-job-main:export'}), // 导出 + defaultButtons.defaultUpdateTaskSettingBtn(null), // 更新任务设置 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -158,6 +159,18 @@ const HeadButttondata = [ const buttonBaseClick = (val, item) => { if (val == 'export') { // 导出 handleExport() + }else if(val == 'updateTaskSetting'){ + // 更新任务设置 + try { + // loading开始 + loadStart() + PurchasereturnJobMainApi.updatePurchasereturnJobConfig() + buttonBaseClick('refresh',null) + message.success(t('更新成功')) + } catch { + } finally { + loadDone() + } } else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { searchFormClick({ From 5e2137918d087f8c97bb01565b8d37d383543530 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Thu, 31 Oct 2024 16:04:36 +0800 Subject: [PATCH 021/225] =?UTF-8?q?=E7=BC=BA=E9=99=B7:HL-4998=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/putawayJobMain/index.ts | 5 +++++ .../putaway/putawayJobMain/index.vue | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/api/wms/putawayJobMain/index.ts b/src/api/wms/putawayJobMain/index.ts index b6fb266d8..3b3c1a496 100644 --- a/src/api/wms/putawayJobMain/index.ts +++ b/src/api/wms/putawayJobMain/index.ts @@ -101,3 +101,8 @@ export const acceptPutawayJobMain = (id: number) => { export const abandonPutawayJobMain = (id: number) => { return request.put({ url: '/wms/putaway-job-main/abandon?id=' + id }) } + +// 更新任务配置 +export const updatePutawayJobMConfig = () => { + return request.put({ url: '/wms/putaway-job-main/updatePutawayJobConfig'}) +} \ No newline at end of file diff --git a/src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue b/src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue index bfaaf2038..fdde89c6b 100644 --- a/src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue @@ -170,6 +170,7 @@ const { getList, setSearchParams } = tableMethods const HeadButttondata = [ defaultButtons.defaultExportBtn({hasPermi:'wms:putaway-job-main:export'}), // 导出 defaultButtons.mainLisSelectiontPointBtn(null), // 批量标签打印 + defaultButtons.defaultUpdateTaskSettingBtn(null), // 更新任务设置 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -197,6 +198,18 @@ const buttonBaseClick = (val, item) => { } } else if (val=='selection_point'){// 批量打印 handleSelectionPoint() + }else if(val == 'updateTaskSetting'){ + // 更新任务设置 + try { + // loading开始 + loadStart() + PutawayJobMainApi.updatePutawayJobMConfig() + buttonBaseClick('refresh',null) + message.success(t('更新成功')) + } catch { + } finally { + loadDone() + } } else if (val == 'filtrate') { // 筛选 } else { // 其他按钮 console.log('其他按钮', item) From 80b1d34eb59f8bc389a284dc552195554096edf2 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Thu, 31 Oct 2024 16:59:38 +0800 Subject: [PATCH 022/225] =?UTF-8?q?=E7=BC=BA=E9=99=B7:HL-4998=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/repleinshJobMain/index.ts | 5 +++++ .../repleinsh/repleinshJobMain/index.vue | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/api/wms/repleinshJobMain/index.ts b/src/api/wms/repleinshJobMain/index.ts index 2869a7745..0485bb27b 100644 --- a/src/api/wms/repleinshJobMain/index.ts +++ b/src/api/wms/repleinshJobMain/index.ts @@ -103,4 +103,9 @@ export const closeRepleinshMain = async (id) => { // 执行发料任务 export const executeRepleinshMain = async (data) => { return await request.put({ url: `/wms/repleinsh-job-main/execute`, data}) +} + +// 更新任务配置 +export const updateRepleinshJobConfig = () => { + return request.put({ url: '/wms/repleinsh-job-main/updateRepleinshJobConfig'}) } \ No newline at end of file diff --git a/src/views/wms/issueManage/repleinsh/repleinshJobMain/index.vue b/src/views/wms/issueManage/repleinsh/repleinshJobMain/index.vue index 021c4b9f2..464eeb495 100644 --- a/src/views/wms/issueManage/repleinsh/repleinshJobMain/index.vue +++ b/src/views/wms/issueManage/repleinsh/repleinshJobMain/index.vue @@ -126,6 +126,7 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ defaultButtons.defaultExportBtn({hasPermi:'wms:repleinsh-job-main:export'}), // 导出 + defaultButtons.defaultUpdateTaskSettingBtn(null), // 更新任务设置 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -143,6 +144,18 @@ const HeadButttondata = [ const buttonBaseClick = (val, item) => { if (val == 'export') { // 导出 handleExport() + }else if(val == 'updateTaskSetting'){ + // 更新任务设置 + try { + // loading开始 + loadStart() + RepleinshJobMainApi.updateRepleinshJobConfig() + buttonBaseClick('refresh',null) + message.success(t('更新成功')) + } catch { + } finally { + loadDone() + } } else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { searchFormClick({ From 82f7bf3e762a590c669c3226f813b6064bf7a8ba Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Thu, 31 Oct 2024 17:28:58 +0800 Subject: [PATCH 023/225] =?UTF-8?q?=E7=BC=BA=E9=99=B7:HL-4998=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/issueJobMain/index.ts | 5 ++++- .../wms/issueManage/issue/issueJobMain/index.vue | 13 +++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/api/wms/issueJobMain/index.ts b/src/api/wms/issueJobMain/index.ts index 0ae3e11c7..a8b182862 100644 --- a/src/api/wms/issueJobMain/index.ts +++ b/src/api/wms/issueJobMain/index.ts @@ -107,4 +107,7 @@ export const executeIssueMain = async (data) => { return await request.put({ url: `/wms/issue-job-main/execute`, data}) } - +// 更新任务配置 +export const updateIssueJobConfig = () => { + return request.put({ url: '/wms/issue-job-main/updateIssueJobConfig'}) +} \ No newline at end of file diff --git a/src/views/wms/issueManage/issue/issueJobMain/index.vue b/src/views/wms/issueManage/issue/issueJobMain/index.vue index 722dce117..ea9b0e4d0 100644 --- a/src/views/wms/issueManage/issue/issueJobMain/index.vue +++ b/src/views/wms/issueManage/issue/issueJobMain/index.vue @@ -126,6 +126,7 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ defaultButtons.defaultExportBtn({hasPermi:'wms:issue-job-main:export'}), // 导出 + defaultButtons.defaultUpdateTaskSettingBtn(null), // 更新任务设置 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -143,6 +144,18 @@ const HeadButttondata = [ const buttonBaseClick = (val, item) => { if (val == 'export') { // 导出 handleExport() + }else if(val == 'updateTaskSetting'){ + // 更新任务设置 + try { + // loading开始 + loadStart() + IssueJobMainApi.updateIssueJobConfig() + buttonBaseClick('refresh',null) + message.success(t('更新成功')) + } catch { + } finally { + loadDone() + } } else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { searchFormClick({ From 7a39ebaaa6ebf4a49eb84c040b66b54329f50ee1 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Fri, 1 Nov 2024 08:48:40 +0800 Subject: [PATCH 024/225] =?UTF-8?q?=E7=BC=BA=E9=99=B7:HL-4998=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/productionreceiptJobMain/index.ts | 5 +++++ .../productionreceiptJobMain/index.vue | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/api/wms/productionreceiptJobMain/index.ts b/src/api/wms/productionreceiptJobMain/index.ts index 34c3e07bf..38c5fad1e 100644 --- a/src/api/wms/productionreceiptJobMain/index.ts +++ b/src/api/wms/productionreceiptJobMain/index.ts @@ -105,4 +105,9 @@ export const closeIssueMain = async (id) => { // 执行发料任务 export const executeIssueMain = async (data) => { return await request.put({ url: `/wms/productionreceipt-job-main/execute`, data}) +} + +// 更新任务配置 +export const updateProductionreceiptJobConfig = () => { + return request.put({ url: '/wms/productionreceipt-job-main/updateProductionreceiptJobConfig'}) } \ No newline at end of file diff --git a/src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue b/src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue index d505694c4..81e8a6603 100644 --- a/src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue +++ b/src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue @@ -118,6 +118,7 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ defaultButtons.defaultExportBtn({hasPermi:'wms:productionreceipt-job-main:export'}), // 导出 + defaultButtons.defaultUpdateTaskSettingBtn(null), // 更新任务设置 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -127,6 +128,18 @@ const HeadButttondata = [ const buttonBaseClick = (val, item) => { if (val == 'export') { // 导出 handleExport() + }else if(val == 'updateTaskSetting'){ + // 更新任务设置 + try { + // loading开始 + loadStart() + ProductionreceiptJobMainApi.updateProductionreceiptJobConfig() + buttonBaseClick('refresh',null) + message.success(t('更新成功')) + } catch { + } finally { + loadDone() + } } else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { searchFormClick({ From 0e8ff119367e392e2f96f8c800677fb0dfe66912 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Fri, 1 Nov 2024 11:02:33 +0800 Subject: [PATCH 025/225] =?UTF-8?q?=E7=BC=BA=E9=99=B7:HL-4998=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/productionreturnJobMain/index.ts | 10 +++++++++ .../productionreturnJobMain/index.vue | 22 +++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/src/api/wms/productionreturnJobMain/index.ts b/src/api/wms/productionreturnJobMain/index.ts index 74bd69d6f..f4e9e2c43 100644 --- a/src/api/wms/productionreturnJobMain/index.ts +++ b/src/api/wms/productionreturnJobMain/index.ts @@ -125,4 +125,14 @@ export const closeProductionreturnMain = async (id) => { // 执行发料任务 export const executeProductionreturnMain = async (data) => { return await request.put({ url: `/wms/productionreturn-job-main/execute`, data}) +} + +// 更新任务配置 +export const updateProductionreturnJobConfig = () => { + return request.put({ url: '/wms/productionreturn-job-main/updateProductionreturnJobConfig'}) +} + +// 更新任务配置-隔离收货任务 +export const updateProductionreturnJobHoldConfig = () => { + return request.put({ url: '/wms/productionreturn-job-main/updateProductionreturnJobHoldConfig'}) } \ No newline at end of file diff --git a/src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue b/src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue index 3296a5f13..88cbd7310 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue +++ b/src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue @@ -129,6 +129,7 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ defaultButtons.defaultExportBtn({hasPermi:'wms:productionreturn-job-main:export'}), // 导出 + defaultButtons.defaultUpdateTaskSettingBtn(null), // 更新任务设置 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -138,6 +139,27 @@ const HeadButttondata = [ const buttonBaseClick = (val, item) => { if (val == 'export') { // 导出 handleExport() + }else if(val == 'updateTaskSetting'){ + // 更新任务设置 + try { + // loading开始 + loadStart() + console.log(routeName.value) + if('ProductionreturnJobMain'==routeName.value){ + // 生产退料任务更新配置 + ProductionreturnJobMainApi.updateProductionreturnJobConfig() + buttonBaseClick('refresh',null) + message.success(t('更新成功')) + }else{ + // 隔离退料任务更新配置 + ProductionreturnJobMainApi.updateProductionreturnJobHoldConfig() + buttonBaseClick('refresh',null) + message.success(t('更新成功')) + } + } catch { + } finally { + loadDone() + } } else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { searchFormClick({ From 32fc3b016cd84ef52b09133741d968852c49a886 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Fri, 1 Nov 2024 11:54:33 +0800 Subject: [PATCH 026/225] =?UTF-8?q?HL-6348=E5=88=B0=E5=BA=93=E5=8C=BA?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sparereceiptRecordMain/sparereceiptRecordMain.data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRecordMain/sparereceiptRecordMain.data.ts b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRecordMain/sparereceiptRecordMain.data.ts index 65c83c25e..4f22e1155 100644 --- a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRecordMain/sparereceiptRecordMain.data.ts +++ b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRecordMain/sparereceiptRecordMain.data.ts @@ -836,7 +836,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive // }, { label: '到库区', - field: 'toAreaCodes', + field: 'toAreaCode', sort: 'custom', table: { width: 150 From 256017712803e9af95f68b0e890ced9bb085f037 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Fri, 1 Nov 2024 13:15:37 +0800 Subject: [PATCH 027/225] =?UTF-8?q?=E7=BC=BA=E9=99=B7:HL-6349=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchasereturnRecordMOrderTypeMain.data.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMOrderTypeMain/purchasereturnRecordMOrderTypeMain.data.ts b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMOrderTypeMain/purchasereturnRecordMOrderTypeMain.data.ts index ed6c01452..eb8575ff4 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMOrderTypeMain/purchasereturnRecordMOrderTypeMain.data.ts +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMOrderTypeMain/purchasereturnRecordMOrderTypeMain.data.ts @@ -638,6 +638,7 @@ export const PurchasereturnRecordMOrderTypeDetail = useCrudSchemas(reactive Date: Fri, 1 Nov 2024 13:54:39 +0800 Subject: [PATCH 028/225] =?UTF-8?q?HL-6334SCP=E6=AD=A3=E5=BC=8F=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=EF=BC=8C=E8=B4=A6=E5=8F=B7=E5=BF=98=E8=AE=B0=E5=AF=86?= =?UTF-8?q?=E7=A0=81=EF=BC=8C=E6=9B=B4=E6=94=B9=E5=AF=B9=E9=82=AE=E7=AE=B1?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=9A=84=E6=A0=B7=E5=BC=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/forgetPassword.vue | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/views/login/forgetPassword.vue b/src/views/login/forgetPassword.vue index 8655c75fa..1e01aa8bf 100644 --- a/src/views/login/forgetPassword.vue +++ b/src/views/login/forgetPassword.vue @@ -10,6 +10,20 @@ >
{{ t('ts.忘记密码') }}
+ + + + + + + + @@ -39,6 +53,10 @@ import { setTenantId, setToken } from '@/utils/auth' import { usePermissionStore } from '@/store/modules/permission' import { getTenantIdByName, sendSmsCode, smsLogin } from '@/api/login' import * as UserApi from '@/api/system/user' +import { getTenant } from '@/utils/systemParam' +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' +const { wsCache } = useCache() +const language = wsCache.get('lang') const { t } = useI18n() const message = useMessage() @@ -53,7 +71,21 @@ const rules = { email: [{ required: true, message: '请输入邮箱', trigger: 'blur' }] } +const tenantEnable = import.meta.env.VITE_APP_TENANT_ENABLE +const tenantArray = ref(JSON.parse(getTenant())) +if('en-US'==language){ + tenantArray.value = tenantArray.value.map(item => ({ + name: item, + aliasName:item.replace('长春','ChangChun').replace('成都','ChengDu') + })); +}else{ + tenantArray.value = tenantArray.value.map(item => ({ + name: item, + aliasName:item + })); +} const loginData = reactive({ + tenantName: tenantArray.value[0].name, username: '', email: '' }) From 22413fd3fc345265544d4a08d71660f8ce456204 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Fri, 1 Nov 2024 15:39:24 +0800 Subject: [PATCH 029/225] =?UTF-8?q?index=E5=88=86=E6=94=AF=E5=86=B2?= =?UTF-8?q?=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.wyf | 78 +++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 69 insertions(+), 9 deletions(-) diff --git a/.env.wyf b/.env.wyf index b6100e378..2fa7437f1 100644 --- a/.env.wyf +++ b/.env.wyf @@ -3,19 +3,70 @@ NODE_ENV=test VITE_DEV=false +# # 达明 +# # # 请求路径 +# VITE_BASE_URL='http://192.168.0.105:12080' +# # 上传路径 +# VITE_UPLOAD_URL='http://192.168.0.105:12080/admin-api/infra/file/upload' + +# 大哥 # # 请求路径 -# VITE_BASE_URL='http://192.168.0.113:12080' +# VITE_BASE_URL='http://192.168.1.252:12080' +# # 上传路径 +# VITE_UPLOAD_URL='http://192.168.1.252:12080/admin-api/infra/file/upload' + +# # 雪冰 +# # # 请求路径 +# VITE_BASE_URL='http://192.168.1.68:12080' # # 上传路径 -# VITE_UPLOAD_URL='http://192.168.0.113:12080/admin-api/infra/file/upload' +# VITE_UPLOAD_URL='http://192.168.1.68:12080/admin-api/infra/file/upload' +# # 依然 +# # # 请求路径 +# VITE_BASE_URL='http://192.168.1.253:12080' +# # 上传路径 +# VITE_UPLOAD_URL='http://192.168.1.253:12080/admin-api/infra/file/upload' + +# # 国强 # # 请求路径 -# VITE_BASE_URL='https://scp.faway-hella.com/api' +# VITE_BASE_URL='http://192.168.0.106:12080' +# # 上传路径 +# VITE_UPLOAD_URL='http:// 192.168.0.106:12080/admin-api/infra/file/upload' + + + + +# 佳兴 +# # # 请求路径 +# VITE_BASE_URL='http://192.168.1.254:12080' +# # 上传路径 +# VITE_UPLOAD_URL='http://192.168.1.254:12080/admin-api/infra/file/upload' + +# # zb +# VITE_BASE_URL='http://192.168.0.37:12080' # # 上传路径 -# VITE_UPLOAD_URL='https://scp.faway-hella.com/api/admin-api/infra/file/upload' +# VITE_UPLOAD_URL='http://192.168.0.37:12080/admin-api/infra/file/upload' -# 请求路径 -VITE_BASE_URL='http://172.21.32.13/api' +# 81 WMS请求路径 82 SCP +VITE_BASE_URL='http://172.22.32.9/api' # 上传路径 -VITE_UPLOAD_URL='http://172.21.32.13/api/admin-api/infra/file/upload' +VITE_UPLOAD_URL='http://172.22.32.9/api/admin-api/infra/file/upload' + + + +# # 81 WMS请求路径 82 SCP +# VITE_BASE_URL='http://172.21.32.14/api' +# # 上传路径 +# VITE_UPLOAD_URL='http://172.21.32.14/api/admin-api/infra/file/upload' + +# # 请求路径 +# VITE_BASE_URL='https://scptest.faway-hella.com/api' +# # 上传路径 +# VITE_UPLOAD_URL='https://scptest.faway-hella.com/api/admin-api/infra/file/upload' + +# # 请求路径 +# VITE_BASE_URL='http://172.21.32.13/api' +# # 上传路径 +# VITE_UPLOAD_URL='http://172.21.32.13/api/admin-api/infra/file/upload' # # 请求路径 @@ -55,10 +106,19 @@ VITE_OUT_DIR=sfms3.0 VITE_INTERFACE_URL='http://dev.ccwin-in.com:25310/magic/web/index.html' # 积木报表请求路径 -VITE_JMREPORT_BASE_URL='http://192.168.0.108:12080' +VITE_JMREPORT_BASE_URL='http://172.22.32.9:90' # 租户配置 VITE_TENANT='["长春1379","成都1397","长春2379"]' # 查看质检报告环境 -VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400' +VITE_REPORT_URL = 'http://localhost' + +# 登录系统升级的提示 +VITE_SYSTERM_UPDATE_ALERT = false + +# 是否需要验证码 +VITE_NEED_CODE = false + +# 是否需要下载PDA链接 +VITE_PDA_URL = true \ No newline at end of file From fe38fcd1dabb5fd5e5b06822613397c1cc39cede Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Fri, 1 Nov 2024 16:47:05 +0800 Subject: [PATCH 030/225] =?UTF-8?q?=E5=AF=B9=E8=B4=A6=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wms/transactionBalancePackage/index.ts | 55 ++++ .../transactionBalancePackage/index.vue | 244 ++++++++++++++++++ .../transactionBalancePackage.data.ts | 111 ++++++++ 3 files changed, 410 insertions(+) create mode 100644 src/api/wms/transactionBalancePackage/index.ts create mode 100644 src/views/wms/reconciliation/transactionBalancePackage/index.vue create mode 100644 src/views/wms/reconciliation/transactionBalancePackage/transactionBalancePackage.data.ts diff --git a/src/api/wms/transactionBalancePackage/index.ts b/src/api/wms/transactionBalancePackage/index.ts new file mode 100644 index 000000000..4711c9be1 --- /dev/null +++ b/src/api/wms/transactionBalancePackage/index.ts @@ -0,0 +1,55 @@ +import request from '@/config/axios' + +export interface TransactionBalancePackageVO { + id: number + packingNumber: string + itemCode: string + batch: string + locationCode: string + inventoryStatusTransaction: string + inventoryStatusBalance: string + qtyTransaction: number + qtyBalance: number + qtyDiff: number +} + +// 查询对账_包装号的事务汇总与余额的差异列表 +export const getTransactionBalancePackagePage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/transaction-balance-package/senior', data }) + } else { + return await request.get({ url: `/wms/transaction-balance-package/page`, params }) + } +} + +// 查询对账_包装号的事务汇总与余额的差异详情 +export const getTransactionBalancePackage = async (id: number) => { + return await request.get({ url: `/wms/transaction-balance-package/get?id=` + id }) +} + +// 新增对账_包装号的事务汇总与余额的差异 +export const createTransactionBalancePackage = async (data: TransactionBalancePackageVO) => { + return await request.post({ url: `/wms/transaction-balance-package/create`, data }) +} + +// 修改对账_包装号的事务汇总与余额的差异 +export const updateTransactionBalancePackage = async (data: TransactionBalancePackageVO) => { + return await request.put({ url: `/wms/transaction-balance-package/update`, data }) +} + +// 删除对账_包装号的事务汇总与余额的差异 +export const deleteTransactionBalancePackage = async (id: number) => { + return await request.delete({ url: `/wms/transaction-balance-package/delete?id=` + id }) +} + +// 导出对账_包装号的事务汇总与余额的差异 Excel +export const exportTransactionBalancePackage = async (params) => { + return await request.download({ url: `/wms/transaction-balance-package/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/transaction-balance-package/get-import-template' }) +} \ No newline at end of file diff --git a/src/views/wms/reconciliation/transactionBalancePackage/index.vue b/src/views/wms/reconciliation/transactionBalancePackage/index.vue new file mode 100644 index 000000000..43f927dac --- /dev/null +++ b/src/views/wms/reconciliation/transactionBalancePackage/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/wms/reconciliation/transactionBalancePackage/transactionBalancePackage.data.ts b/src/views/wms/reconciliation/transactionBalancePackage/transactionBalancePackage.data.ts new file mode 100644 index 000000000..d452f749f --- /dev/null +++ b/src/views/wms/reconciliation/transactionBalancePackage/transactionBalancePackage.data.ts @@ -0,0 +1,111 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const TransactionBalancePackageRules = reactive({ + itemCode: [required], + batch: [required], + inventoryStatusTransaction: [required], + inventoryStatusBalance: [required], +}) + +export const TransactionBalancePackage = useCrudSchemas(reactive([ + { + label: 'id', + field: 'id', + sort: 'custom', + isForm: false, + isTable:false, + }, + { + label: '包装号', + field: 'packingNumber', + sort: 'custom', + table: { + width: 220, + } + }, + { + label: '物料代码', + field: 'itemCode', + sort: 'custom', + table: { + width: 150, + } + }, + { + label: '批次', + field: 'batch', + sort: 'custom', + table: { + width: 150, + } + }, + { + label: '库位代码', + field: 'locationCode', + sort: 'custom', + table: { + width: 150, + } + }, + { + label: '库存状态-库存事务', + field: 'inventoryStatusTransaction', + sort: 'custom', + table: { + width: 220, + } + }, + { + label: '库存状态-库存余额', + field: 'inventoryStatusBalance', + sort: 'custom', + table: { + width: 220, + } + }, + { + label: '数量-库存事务', + field: 'qtyTransaction', + sort: 'custom', + table: { + width: 220, + } + }, + { + label: '数量-库存余额', + field: 'qtyBalance', + sort: 'custom', + table: { + width: 220, + } + }, + { + label: '数量-差值(事务-余额)', + field: 'qtyDiff', + sort: 'custom', + table: { + width: 220, + } + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + table: { + width: 220, + }, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isForm: false, + } +])) From 477f189d99fd5ae603d5f6d7c2ec71812df97322 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Sun, 3 Nov 2024 14:16:15 +0800 Subject: [PATCH 031/225] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E7=94=9F=E6=88=90?= =?UTF-8?q?=E5=AF=B9=E8=B4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wms/notPackageTransactionBalance/index.ts | 54 ++++ .../notPackageTransactionBalance/index.vue | 244 ++++++++++++++++++ .../notPackageTransactionBalance.data.ts | 81 ++++++ 3 files changed, 379 insertions(+) create mode 100644 src/api/wms/notPackageTransactionBalance/index.ts create mode 100644 src/views/wms/reconciliation/notPackageTransactionBalance/index.vue create mode 100644 src/views/wms/reconciliation/notPackageTransactionBalance/notPackageTransactionBalance.data.ts diff --git a/src/api/wms/notPackageTransactionBalance/index.ts b/src/api/wms/notPackageTransactionBalance/index.ts new file mode 100644 index 000000000..8cf84cfa6 --- /dev/null +++ b/src/api/wms/notPackageTransactionBalance/index.ts @@ -0,0 +1,54 @@ +import request from '@/config/axios' + +export interface NotPackageTransactionBalanceVO { + id: number + itemCode: string + locationCode: string + batch: string + cnt: string + sumQtyTransaction: number + sumQtyBalance: number + differenceQty: number + remark: string +} + +// 查询对账_无包装事务余额对数结果列表 +export const getNotPackageTransactionBalancePage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/not-package-transaction-balance/senior', data }) + } else { + return await request.get({ url: `/wms/not-package-transaction-balance/page`, params }) + } +} + +// 查询对账_无包装事务余额对数结果详情 +export const getNotPackageTransactionBalance = async (id: number) => { + return await request.get({ url: `/wms/not-package-transaction-balance/get?id=` + id }) +} + +// 新增对账_无包装事务余额对数结果 +export const createNotPackageTransactionBalance = async (data: NotPackageTransactionBalanceVO) => { + return await request.post({ url: `/wms/not-package-transaction-balance/create`, data }) +} + +// 修改对账_无包装事务余额对数结果 +export const updateNotPackageTransactionBalance = async (data: NotPackageTransactionBalanceVO) => { + return await request.put({ url: `/wms/not-package-transaction-balance/update`, data }) +} + +// 删除对账_无包装事务余额对数结果 +export const deleteNotPackageTransactionBalance = async (id: number) => { + return await request.delete({ url: `/wms/not-package-transaction-balance/delete?id=` + id }) +} + +// 导出对账_无包装事务余额对数结果 Excel +export const exportNotPackageTransactionBalance = async (params) => { + return await request.download({ url: `/wms/not-package-transaction-balance/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/not-package-transaction-balance/get-import-template' }) +} \ No newline at end of file diff --git a/src/views/wms/reconciliation/notPackageTransactionBalance/index.vue b/src/views/wms/reconciliation/notPackageTransactionBalance/index.vue new file mode 100644 index 000000000..abed9f225 --- /dev/null +++ b/src/views/wms/reconciliation/notPackageTransactionBalance/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/wms/reconciliation/notPackageTransactionBalance/notPackageTransactionBalance.data.ts b/src/views/wms/reconciliation/notPackageTransactionBalance/notPackageTransactionBalance.data.ts new file mode 100644 index 000000000..349165076 --- /dev/null +++ b/src/views/wms/reconciliation/notPackageTransactionBalance/notPackageTransactionBalance.data.ts @@ -0,0 +1,81 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const NotPackageTransactionBalanceRules = reactive({ +}) + +export const NotPackageTransactionBalance = useCrudSchemas(reactive([ + // { + // label: 'id', + // field: 'id', + // sort: 'custom', + // isTable: false, + // isForm: false, + // }, + { + label: '物料代码', + field: 'itemCode', + sort: 'custom', + }, + { + label: '库位代码', + field: 'locationCode', + sort: 'custom', + }, + { + label: '批次', + field: 'batch', + sort: 'custom', + }, + { + label: '数量', + field: 'cnt', + sort: 'custom', + }, + { + label: '数量合计-库存事务', + field: 'sumQtyTransaction', + sort: 'custom', + }, + { + label: '数量合计-库存余额', + field: 'sumQtyBalance', + sort: 'custom', + }, + { + label: '事务数量减余额数量', + field: 'differenceQty', + sort: 'custom', + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isForm: false, + }, + // { + // label: '操作', + // field: 'action', + // isForm: false, + // table: { + // width: 150, + // fixed: 'right' + // } + // } +])) From 584cc51d87f91aafedd30dd125150a8694a30f0a Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Mon, 4 Nov 2024 10:11:31 +0800 Subject: [PATCH 032/225] =?UTF-8?q?=E8=AE=A1=E5=88=92=E5=A4=96=E5=87=BA?= =?UTF-8?q?=E5=85=A5=E5=BA=93=EF=BC=8C=E9=99=90=E5=88=B6=E5=8D=95=E6=8D=AE?= =?UTF-8?q?=E5=A4=87=E6=B3=A8=E6=9C=80=E5=A4=A7=E9=95=BF=E5=BA=A612?= =?UTF-8?q?=E4=B8=AA=E5=AD=97=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../unplannedissueRequestMain.data.ts | 7 +++++++ .../unplannedreceiptRequestMain.data.ts | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts index 57c2c5dd2..de84a8941 100644 --- a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts @@ -335,6 +335,13 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([ table: { width: 150 }, + form: { + componentProps: { + type:"textarea", + maxlength:12, + showWordLimit:true + } + } }, { label: '目的地', diff --git a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts index 05419185b..9b50b490a 100644 --- a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts @@ -545,6 +545,13 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive width: 150 }, isTable:true, + form: { + componentProps: { + type:"textarea", + maxlength:12, + showWordLimit:true + } + } //sortTableDefault: 1000, }, { From 23430e3c5dda1190255d7cc167a25cddfb0a8915 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Mon, 4 Nov 2024 11:07:32 +0800 Subject: [PATCH 033/225] =?UTF-8?q?=E7=BC=BA=E9=99=B7:HL-6325=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wms/supplierApbalanceCalendar/index.ts | 56 ++++ .../supplierApbalanceCalendar/index.vue | 244 ++++++++++++++++++ .../supplierApbalanceCalendar.data.ts | 94 +++++++ 3 files changed, 394 insertions(+) create mode 100644 src/api/wms/supplierApbalanceCalendar/index.ts create mode 100644 src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue create mode 100644 src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts diff --git a/src/api/wms/supplierApbalanceCalendar/index.ts b/src/api/wms/supplierApbalanceCalendar/index.ts new file mode 100644 index 000000000..19836c294 --- /dev/null +++ b/src/api/wms/supplierApbalanceCalendar/index.ts @@ -0,0 +1,56 @@ +import request from '@/config/axios' + +export interface SupplierApbalanceCalendarVO { + id: number + beginMonth: string + beginDay: string + endMonth: string + endDay: string + descriiption: string + available: string + remark: string + extraProperties: string + concurrencyStamp: number + siteId: string +} + +// 查询询证函日历列表 +export const getSupplierApbalanceCalendarPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/supplier-apbalance-calendar/senior', data }) + } else { + return await request.get({ url: `/wms/supplier-apbalance-calendar/page`, params }) + } +} + +// 查询询证函日历详情 +export const getSupplierApbalanceCalendar = async (id: number) => { + return await request.get({ url: `/wms/supplier-apbalance-calendar/get?id=` + id }) +} + +// 新增询证函日历 +export const createSupplierApbalanceCalendar = async (data: SupplierApbalanceCalendarVO) => { + return await request.post({ url: `/wms/supplier-apbalance-calendar/create`, data }) +} + +// 修改询证函日历 +export const updateSupplierApbalanceCalendar = async (data: SupplierApbalanceCalendarVO) => { + return await request.put({ url: `/wms/supplier-apbalance-calendar/update`, data }) +} + +// 删除询证函日历 +export const deleteSupplierApbalanceCalendar = async (id: number) => { + return await request.delete({ url: `/wms/supplier-apbalance-calendar/delete?id=` + id }) +} + +// 导出询证函日历 Excel +export const exportSupplierApbalanceCalendar = async (params) => { + return await request.download({ url: `/wms/supplier-apbalance-calendar/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/supplier-apbalance-calendar/get-import-template' }) +} \ No newline at end of file diff --git a/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue b/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue new file mode 100644 index 000000000..ae0ce7f01 --- /dev/null +++ b/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts b/src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts new file mode 100644 index 000000000..d1fda217c --- /dev/null +++ b/src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts @@ -0,0 +1,94 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const SupplierApbalanceCalendarRules = reactive({ + beginMonth: [required], + beginDay: [required], + endMonth: [required], + endDay: [required], + concurrencyStamp: [required], +}) + +export const SupplierApbalanceCalendar = useCrudSchemas(reactive([ + // { + // label: 'id', + // field: 'id', + // sort: 'custom', + // isForm: false, + // }, + { + label: '开始月份', + field: 'beginMonth', + sort: 'custom', + }, + { + label: '开始日期', + field: 'beginDay', + sort: 'custom', + }, + { + label: '结束月份', + field: 'endMonth', + sort: 'custom', + }, + { + label: '结束日期', + field: 'endDay', + sort: 'custom', + }, + { + label: '描述', + field: 'descriiption', + sort: 'custom', + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + isSearch: true, + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isForm: false, + }, + // { + // label: '扩展属性', + // field: 'extraProperties', + // sort: 'custom', + // isSearch: true, + // }, + // { + // label: '并发乐观锁', + // field: 'concurrencyStamp', + // sort: 'custom', + // isSearch: true, + // form: { + // component: 'InputNumber', + // value: 0 + // }, + // }, + // { + // label: '地点ID', + // field: 'siteId', + // sort: 'custom', + // isSearch: true, + // }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) From b50e0ced10df8476874400657cb881a860dc3cad Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Mon, 4 Nov 2024 13:41:20 +0800 Subject: [PATCH 034/225] =?UTF-8?q?=E8=AF=A2=E8=AF=81=E5=87=BD=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierApbalanceCalendar/index.vue | 36 ++++++++++++++++++- .../supplierApbalanceCalendar.data.ts | 29 +++++++++++---- 2 files changed, 57 insertions(+), 8 deletions(-) diff --git a/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue b/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue index ae0ce7f01..e85943fa4 100644 --- a/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue +++ b/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue @@ -47,8 +47,20 @@ :apiUpdate="SupplierApbalanceCalendarApi.updateSupplierApbalanceCalendar" :apiCreate="SupplierApbalanceCalendarApi.createSupplierApbalanceCalendar" @searchTableSuccess="searchTableSuccess" + @onChange="onChange" :isBusiness="false" - /> + > + + +
@@ -65,6 +77,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import dayjs from 'dayjs' defineOptions({ name: 'SupplierApbalanceCalendar' }) @@ -235,6 +248,27 @@ const searchFormClick = (searchData) => { getList() // 刷新当前列表 } +const beginDay = ref('') +const endDay = ref('') +const selectChange = (value,field)=>{ + basicFormRef.value.formRef.formModel[field] = value +} +const daysInMonths = ref([]) +const onChange = (field, value, formRef)=>{ + if(field=='month'){ + let days = [] + for (let i=1;i<=dayjs(`${value}-01`).daysInMonth();i++){ + days.push({ + value:i, + label:i + }) + } + basicFormRef.value.formRef.formModel['beginDay'] = '' + basicFormRef.value.formRef.formModel['endDay'] = '' + daysInMonths.value = days + } +} + /** 初始化 **/ onMounted(async () => { getList() diff --git a/src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts b/src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts index d1fda217c..9e77d578b 100644 --- a/src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts +++ b/src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts @@ -10,6 +10,14 @@ export const SupplierApbalanceCalendarRules = reactive({ concurrencyStamp: [required], }) + +let months = [] +for(let i=0;i<12;i++){ + months.push({ + value: i+1, + label: i+1, + }) +} export const SupplierApbalanceCalendar = useCrudSchemas(reactive([ // { // label: 'id', @@ -18,20 +26,27 @@ export const SupplierApbalanceCalendar = useCrudSchemas(reactive([ // isForm: false, // }, { - label: '开始月份', - field: 'beginMonth', + label: '月份', + field: 'month', sort: 'custom', + form: { + component: 'Select', + componentProps: { + options: months, + placeholder: '请选择月份', + } + }, }, { label: '开始日期', field: 'beginDay', sort: 'custom', }, - { - label: '结束月份', - field: 'endMonth', - sort: 'custom', - }, + // { + // label: '结束月份', + // field: 'endMonth', + // sort: 'custom', + // }, { label: '结束日期', field: 'endDay', From 30cc9ababe67ca2be299bc9e201513d2fed4c106 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Mon, 4 Nov 2024 13:43:30 +0800 Subject: [PATCH 035/225] =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wms/supplierManage/supplierApbalanceCalendar/index.vue | 5 ++++- .../supplierApbalanceCalendar.data.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue b/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue index e85943fa4..f7de2c11e 100644 --- a/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue +++ b/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue @@ -255,7 +255,7 @@ const selectChange = (value,field)=>{ } const daysInMonths = ref([]) const onChange = (field, value, formRef)=>{ - if(field=='month'){ + if(field=='beginMonth'){ let days = [] for (let i=1;i<=dayjs(`${value}-01`).daysInMonth();i++){ days.push({ @@ -265,6 +265,9 @@ const onChange = (field, value, formRef)=>{ } basicFormRef.value.formRef.formModel['beginDay'] = '' basicFormRef.value.formRef.formModel['endDay'] = '' + beginDay.value = '' + endDay.value = '' + daysInMonths.value = days } } diff --git a/src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts b/src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts index 9e77d578b..3c1bf7825 100644 --- a/src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts +++ b/src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts @@ -27,7 +27,7 @@ export const SupplierApbalanceCalendar = useCrudSchemas(reactive([ // }, { label: '月份', - field: 'month', + field: 'beginMonth', sort: 'custom', form: { component: 'Select', From 4e56e916e0529ccfd2abfd4ea95c5192566ad37d Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Mon, 4 Nov 2024 13:44:58 +0800 Subject: [PATCH 036/225] =?UTF-8?q?=20=20=20=20message.error('=E7=BB=93?= =?UTF-8?q?=E6=9D=9F=E6=97=A5=E6=9C=9F=E4=B8=8D=E8=83=BD=E5=B0=8F=E4=BA=8E?= =?UTF-8?q?=E5=BC=80=E5=A7=8B=E6=97=A5=E6=9C=9F')?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wms/supplierManage/supplierApbalanceCalendar/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue b/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue index f7de2c11e..9490866cf 100644 --- a/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue +++ b/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue @@ -167,6 +167,10 @@ const openForm = (type: string, row?: any) => { // form表单提交 const formsSuccess = async (formType,data) => { + if(endDay.value Date: Mon, 4 Nov 2024 13:50:10 +0800 Subject: [PATCH 037/225] =?UTF-8?q?HL-6311=20=E4=BF=AE=E5=A4=8D=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E5=B1=95=E7=A4=BA=E5=AD=97=E6=AE=B5=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../initialContainerMainRequest.data.ts | 40 +++++++++---------- .../scrapContainerMainRequest/index.vue | 8 ++-- .../scrapContainerMainRequest.data.ts | 6 ++- 3 files changed, 28 insertions(+), 26 deletions(-) diff --git a/src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/initialContainerMainRequest.data.ts b/src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/initialContainerMainRequest.data.ts index 8bed7ab51..e83b73dd5 100644 --- a/src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/initialContainerMainRequest.data.ts +++ b/src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/initialContainerMainRequest.data.ts @@ -465,6 +465,26 @@ export const ContainerDetailRequest = useCrudSchemas(reactive([ } } }, + { + label: '库存状态', + field: 'toInventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, + dictClass: 'string', + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + tableForm: { + disabled: true, + type: 'Select' + }, + form: { + componentProps: { + disabled: true + } + } + }, { label: '数量', field: 'toQty', @@ -503,26 +523,6 @@ export const ContainerDetailRequest = useCrudSchemas(reactive([ } } }, - { - label: '库存状态', - field: 'toInventoryStatus', - dictType: DICT_TYPE.INVENTORY_STATUS, - dictClass: 'string', - isTable: true, - sort: 'custom', - table: { - width: 150 - }, - tableForm: { - disabled: true, - type: 'Select' - }, - form: { - componentProps: { - disabled: true - } - } - }, { label: '子备注', field: 'remark', diff --git a/src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue b/src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue index ce2b89d73..c17773476 100644 --- a/src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue @@ -158,7 +158,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => newRow['uom'] = item['uom'] newRow['fromLocationCode'] = item['locationCode'] newRow['fromInventoryStatus'] = item['inventoryStatus'] - newRow['toInventoryStatus'] = 'SCRAP' + newRow['toInventoryStatus'] = item['inventoryStatus'] newRow['toQty'] = item['qty'] tableData.value.push(newRow) }) @@ -426,9 +426,9 @@ const isShowButton = ref(true) const tableFormKeys = {} ContainerDetailRequest.allSchemas.tableFormColumns.forEach(item => { tableFormKeys[item.field] = item.default ? item.default : '' - if(item.field == 'toInventoryStatus'){ - tableFormKeys[item.field] = "SCRAP" - } + // if(item.field == 'toInventoryStatus'){ + // tableFormKeys[item.field] = "SCRAP" + // } }) const tableData = ref([]) diff --git a/src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/scrapContainerMainRequest.data.ts b/src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/scrapContainerMainRequest.data.ts index fa9c45a11..60834a2f2 100644 --- a/src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/scrapContainerMainRequest.data.ts +++ b/src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/scrapContainerMainRequest.data.ts @@ -141,7 +141,9 @@ export const ContainerMainRequest = useCrudSchemas(reactive([ sort: 'custom', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isForm: false, + isSearch: false, + isForm: true, + isTable: false, table: { width: 150 }, @@ -585,7 +587,7 @@ export const ContainerDetailRequest = useCrudSchemas(reactive([ label: '子备注', field: 'remark', sort: 'custom', - isTable: true, + isTable: false, isForm: false, isTableForm: false }, From bbbfdbd253f786feab3e4d9948d3bcde3cf2ae51 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Mon, 4 Nov 2024 13:53:01 +0800 Subject: [PATCH 038/225] =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=8F=AF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts b/src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts index 3c1bf7825..f8c9f2b14 100644 --- a/src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts +++ b/src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts @@ -62,6 +62,8 @@ export const SupplierApbalanceCalendar = useCrudSchemas(reactive([ field: 'available', sort: 'custom', isSearch: true, + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', }, { label: '备注', From 505dfb5c4761b69679399f43939d0ca3673d5384 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Mon, 4 Nov 2024 14:03:08 +0800 Subject: [PATCH 039/225] =?UTF-8?q?=E5=99=A8=E5=85=B7=E7=A7=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../moveContainerMainRequest.data.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/views/wms/inventoryjobManage/containermanage/moveContainerMainRequest/moveContainerMainRequest.data.ts b/src/views/wms/inventoryjobManage/containermanage/moveContainerMainRequest/moveContainerMainRequest.data.ts index e51780c8c..dcf7fa77d 100644 --- a/src/views/wms/inventoryjobManage/containermanage/moveContainerMainRequest/moveContainerMainRequest.data.ts +++ b/src/views/wms/inventoryjobManage/containermanage/moveContainerMainRequest/moveContainerMainRequest.data.ts @@ -436,6 +436,11 @@ export const ContainerDetailRequest = useCrudSchemas(reactive([ searchTitle: '库存余额信息', searchAllSchemas: Balance.allSchemas, searchPage: BalanceApi.getBalanceByQJ, + searchCondition: [{ + key: 'fromLocationCode', + value: 'toLocationCode', + isMainValue: true // 表示查询条件是主表的字段的值 + }] }, form: { // labelMessage: '信息提示说明!!!', @@ -446,6 +451,11 @@ export const ContainerDetailRequest = useCrudSchemas(reactive([ searchTitle: '库存余额信息', searchAllSchemas: Balance.allSchemas, searchPage: BalanceApi.getBalanceByQJ, + searchCondition: [{ + key: 'fromLocationCode', + value: 'toLocationCode', + isMainValue: true // 表示查询条件是主表的字段的值 + }] } } }, From 7b0e8fc1341aee88fc07b5ee49b772617737bb1a Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Mon, 4 Nov 2024 14:12:40 +0800 Subject: [PATCH 040/225] =?UTF-8?q?=E8=AF=A2=E8=AF=81=E5=87=BD=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierManage/supplierApbalanceCalendar/index.vue | 5 ++++- .../supplierApbalanceCalendar.data.ts | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue b/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue index 9490866cf..728b16463 100644 --- a/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue +++ b/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue @@ -261,7 +261,10 @@ const daysInMonths = ref([]) const onChange = (field, value, formRef)=>{ if(field=='beginMonth'){ let days = [] - for (let i=1;i<=dayjs(`${value}-01`).daysInMonth();i++){ + let maxday = dayjs(`${value}-01`).daysInMonth() + if(value==2) maxday = 29 + + for (let i=1;i<=maxday;i++){ days.push({ value:i, label:i diff --git a/src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts b/src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts index f8c9f2b14..b1d91b15b 100644 --- a/src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts +++ b/src/views/wms/supplierManage/supplierApbalanceCalendar/supplierApbalanceCalendar.data.ts @@ -64,6 +64,14 @@ export const SupplierApbalanceCalendar = useCrudSchemas(reactive([ isSearch: true, dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + } }, { label: '备注', From b49cf4bd78a6f79611417f6368a59edfc6983a44 Mon Sep 17 00:00:00 2001 From: chenfang <1057876684@qq.com> Date: Mon, 4 Nov 2024 14:25:26 +0800 Subject: [PATCH 041/225] =?UTF-8?q?HL-6311=20=E5=B7=B2=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../returnContainerMainRequest.data.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/views/wms/inventoryjobManage/containermanage/returnContainerMainRequest/returnContainerMainRequest.data.ts b/src/views/wms/inventoryjobManage/containermanage/returnContainerMainRequest/returnContainerMainRequest.data.ts index fdb53d163..a5ce9bc18 100644 --- a/src/views/wms/inventoryjobManage/containermanage/returnContainerMainRequest/returnContainerMainRequest.data.ts +++ b/src/views/wms/inventoryjobManage/containermanage/returnContainerMainRequest/returnContainerMainRequest.data.ts @@ -436,6 +436,11 @@ export const ContainerDetailRequest = useCrudSchemas(reactive([ searchTitle: '库存余额信息', searchAllSchemas: Balance.allSchemas, searchPage: BalanceApi.getBalanceByQJ, + searchCondition: [{ + key: 'fromLocationCode', + value: 'toLocationCode', + isMainValue: true // 表示查询条件是主表的字段的值 + }] }, form: { // labelMessage: '信息提示说明!!!', @@ -446,6 +451,11 @@ export const ContainerDetailRequest = useCrudSchemas(reactive([ searchTitle: '库存余额信息', searchAllSchemas: Balance.allSchemas, searchPage: BalanceApi.getBalanceByQJ, + searchCondition: [{ + key: 'fromLocationCode', + value: 'toLocationCode', + isMainValue: true // 表示查询条件是主表的字段的值 + }] } } }, From 6f96866f0e6797e87405ce04ac8a6fdb9fc93d75 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Mon, 4 Nov 2024 15:47:18 +0800 Subject: [PATCH 042/225] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E5=AF=B9?= =?UTF-8?q?=E8=B4=A6=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/supplierApbalanceMain/index.ts | 7 ++ .../supplierApbalanceMain/index.vue | 102 +++++++++++++++++- .../supplierApbalanceMain.data.ts | 18 ++++ .../supplierApbalanceCalendar/index.vue | 2 + 4 files changed, 128 insertions(+), 1 deletion(-) diff --git a/src/api/wms/supplierApbalanceMain/index.ts b/src/api/wms/supplierApbalanceMain/index.ts index ed7e2f60c..a3cdc8940 100644 --- a/src/api/wms/supplierApbalanceMain/index.ts +++ b/src/api/wms/supplierApbalanceMain/index.ts @@ -70,3 +70,10 @@ export const exportSupplierApbalanceMain = async (params) => { export const importTemplate = () => { return request.download({ url: '/wms/supplier-apbalance-main/get-import-template' }) } + + +// 查询年月日 +export const getMonthDay = async () => { + return await request.get({ url: `/wms/supplier-apbalance-calendar/getMonthDay`}) +} + diff --git a/src/views/wms/supplierManage/supplierApbalance/supplierApbalanceMain/index.vue b/src/views/wms/supplierManage/supplierApbalance/supplierApbalanceMain/index.vue index 459b3230b..b50b34802 100644 --- a/src/views/wms/supplierManage/supplierApbalance/supplierApbalanceMain/index.vue +++ b/src/views/wms/supplierManage/supplierApbalance/supplierApbalanceMain/index.vue @@ -1,7 +1,23 @@ @@ -97,7 +97,7 @@ type="warning" link @click="removeT(scope.row, scope.$index, scope1.row, scope1.$index)" - >移出{{ t('ts.移出') }} @@ -143,7 +143,7 @@ @click=" removeX(scope.row, scope.$index, item, index, scope1.row, scope1.$index) " - >移出{{ t('ts.移出') }} diff --git a/src/components/SearchTable/src/SearchTable.vue b/src/components/SearchTable/src/SearchTable.vue index b32d0d271..1742328a6 100644 --- a/src/components/SearchTable/src/SearchTable.vue +++ b/src/components/SearchTable/src/SearchTable.vue @@ -39,8 +39,8 @@ - - - - + + + + - - - - - + + + + + Date: Tue, 10 Dec 2024 17:26:11 +0800 Subject: [PATCH 180/225] =?UTF-8?q?=E4=B8=AD=E8=8B=B1=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BasicForm/src/BasicForm.vue | 2 +- .../SearchTable/src/SearchTable.vue | 2 +- .../SearchTableCount/src/SearchTableCount.vue | 4 +- .../SearchTableV2/src/SearchTableV2.vue | 4 +- src/locales/en-US.ts | 52 ++++++++++++++++++- src/locales/zh-CN.ts | 45 ++++++++++++++++ src/views/login/components/QRCodePDA.vue | 3 +- .../supplierUser/supplierUser.data.ts | 8 +-- .../purchaseDiscreteOrderMain/index.vue | 8 +-- .../supplierinvoiceRecordMain/index.vue | 8 +-- .../supplierinvoiceRequestMain/index.vue | 10 ++-- .../index.vue | 6 +-- 12 files changed, 123 insertions(+), 29 deletions(-) diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index 618f4c084..fbc4bb175 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -808,7 +808,7 @@ const submitForm = async () => { const validateForm = await tableFormRef.value.validateForm() if (!validateForm && props.tableFormDataLength) { if (props.tableData.length == 0) { - message.warning('请填写明细信息!') + message.warning(t(`ts.${'请填写明细信息!'}`)) formLoading.value = false return } diff --git a/src/components/SearchTable/src/SearchTable.vue b/src/components/SearchTable/src/SearchTable.vue index 1742328a6..0483631d5 100644 --- a/src/components/SearchTable/src/SearchTable.vue +++ b/src/components/SearchTable/src/SearchTable.vue @@ -269,7 +269,7 @@ const submitForm = async () => { // 多选 } else { if (selections.length == 0) { - message.warning('至少选择一条数据!') + message.warning(t(`ts.${'至少选择一条数据!'}`)) formLoading.value = false return } diff --git a/src/components/SearchTableCount/src/SearchTableCount.vue b/src/components/SearchTableCount/src/SearchTableCount.vue index d49c81f67..754fa0223 100644 --- a/src/components/SearchTableCount/src/SearchTableCount.vue +++ b/src/components/SearchTableCount/src/SearchTableCount.vue @@ -70,7 +70,7 @@