From 7ddaeda00059a702f46e9dd3ed2a8a8ef45eff38 Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Tue, 23 Apr 2024 19:09:27 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=94=B6=E8=B4=A7?= =?UTF-8?q?=E8=AE=B0=E5=BD=95+=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchasereceiptRecordMain.data.ts | 140 +++++++++++++++--- 1 file changed, 118 insertions(+), 22 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts index de243d9c7..5895c7b8f 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts @@ -1,5 +1,6 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' +import { t } from '@wangeditor/editor' @@ -16,6 +17,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ fixed: 'left' }, isSearch: true, + sortSearchDefault:1 }, { label: '申请单号', @@ -24,7 +26,6 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, - isSearch: true, }, { label: '任务单号', @@ -41,6 +42,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, + isSearch: true }, { label: 'ERP单据号(无用)', @@ -67,6 +69,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, + isTable:false }, { label: '供应商代码', @@ -76,6 +79,8 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ width: 150 }, isSearch: true, + sortSearchDefault:2, + isTable:false }, { label: '到月台代码', @@ -84,6 +89,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false }, { label: '承运商', @@ -92,6 +98,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false }, { label: '运输方式', @@ -100,6 +107,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false }, { label: '数据来源', @@ -115,6 +123,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ } }, isSearch: false, + isTable:false }, { label: '车牌号', @@ -123,6 +132,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false }, { label: '从仓库代码', @@ -131,6 +141,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false }, { label: '到仓库代码', @@ -139,13 +150,14 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false }, { label: '从库区类型范围', field: 'fromAreaTypes', dictType: DICT_TYPE.AREA_TYPE, dictClass: 'string', - isTable: true, + isTable: false, sort: 'custom', table: { width: 150 @@ -156,7 +168,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ field: 'toAreaTypes', dictType: DICT_TYPE.AREA_TYPE, dictClass: 'string', - isTable: true, + isTable: false, sort: 'custom', table: { width: 150 @@ -169,6 +181,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false }, { label: '到库区代码范围', @@ -177,6 +190,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false }, { label: '出库事务类型', @@ -185,6 +199,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false }, { label: '入库事务类型', @@ -193,6 +208,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false }, { label: '执行时间', @@ -205,6 +221,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, + isTable:false, form: { component: 'DatePicker', componentProps: { @@ -225,6 +242,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, + isTable:false, form: { component: 'DatePicker', componentProps: { @@ -246,6 +264,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, + isTable:false, form: { component: 'DatePicker', componentProps: { @@ -266,6 +285,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, + isTable:false, form: { component: 'DatePicker', componentProps: { @@ -282,6 +302,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false, }, // { // label: '代码', @@ -296,7 +317,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ field: 'interfaceType', dictType: DICT_TYPE.INTERFACE_TYPE, dictClass: 'string', - isTable: true, + isTable: false, sort: 'custom', table: { width: 150 @@ -309,6 +330,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false, }, { label: '备注', @@ -317,6 +339,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false, }, { label: '创建者', @@ -325,6 +348,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false, }, { label: '创建时间', @@ -337,6 +361,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 180 }, + isTable:false, form: { component: 'DatePicker', componentProps: { @@ -352,7 +377,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true, + isTable: false, sort: 'custom', table: { width: 150 @@ -375,7 +400,27 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ width: 300, fixed: 'right' }, - } + }, + { + label: '批次', // 实际是子表的从批次,为了不影响页面,单独放上面 + field: 'fromBatch', + sort: 'custom', + isForm:false, + isTableForm:false, + table: { + width: 150 + }, + sortTableDefault:1000 + }, + { + label: '包装号', // 实际是子表的从包装号,为了不影响页面,单独放上面 + field: 'fromPackingNumber', + sort: 'custom', + table: { + width: 150 + }, + sortTableDefault:1001 + }, ])) // 表单校验 @@ -439,14 +484,24 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive width: 180, fixed: 'left' }, + hiddenInMain:true }, { - label: '订单号', + label: '检验申请单号', + field: 'inspectNumber', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '采购订单号', field: 'poNumber', sort: 'custom', table: { width: 150 }, + isSearch: true }, { label: '订单行', @@ -463,6 +518,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + isSearch: true }, { label: '物料名称', @@ -479,6 +535,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { label: '物料描述2', @@ -487,6 +544,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { label: '从批次', @@ -495,6 +553,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { label: '到批次', @@ -503,6 +562,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { label: '替代批次', @@ -511,6 +571,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { label: '从包装号', @@ -519,6 +580,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { label: '到包装号', @@ -527,6 +589,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { label: '从器具号', @@ -535,6 +598,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { label: '到器具号', @@ -543,6 +607,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { label: '数量', @@ -553,7 +618,8 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive }, form: { component: 'InputNumber', - } + }, + sortTableDefault:1000 }, { label: '计量单位', @@ -565,29 +631,32 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + sortTableDefault:1000 }, - { - label: '包装数量', - field: 'packQty', + label: '包装规格', + field: 'packUnit', + dictClass: 'string', + isTable: true, sort: 'custom', table: { width: 150 }, - form: { - component: 'InputNumber', - } + sortTableDefault:1001 }, { - label: '包装规格', - field: 'packUnit', - dictClass: 'string', - isTable: true, + label: '包装数量', + field: 'packQty', sort: 'custom', table: { width: 150 }, + form: { + component: 'InputNumber', + }, + sortTableDefault:1001 }, + { label: '供应商计量数量', @@ -598,7 +667,8 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive }, form: { component: 'InputNumber', - } + }, + hiddenInMain:true }, { label: '供应商计量单位', @@ -610,6 +680,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { @@ -622,6 +693,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { label: '从库位代码', @@ -630,6 +702,8 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + sortTableDefault:1100 + }, { label: '到库位代码', @@ -638,6 +712,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + sortTableDefault:1101 }, { label: '从库位组代码', @@ -646,6 +721,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { label: '到库位组代码', @@ -654,6 +730,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { label: '从库区代码', @@ -662,6 +739,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true, }, { label: '到库区代码', @@ -670,6 +748,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { label: '从货主代码', @@ -678,6 +757,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { label: '到货主代码', @@ -686,6 +766,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { label: '到货日期', @@ -707,6 +788,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive valueFormat: 'x', } }, + hiddenInMain:true }, { label: '生产日期', @@ -728,6 +810,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive valueFormat: 'x', } }, + hiddenInMain:true }, { label: '过期日期', @@ -749,6 +832,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive valueFormat: 'x', } }, + hiddenInMain:true }, { label: '转换率', @@ -759,7 +843,8 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive }, form: { component: 'InputNumber', - } + }, + hiddenInMain:true }, { label: '目检结果', @@ -768,6 +853,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { label: '目检照片', @@ -776,6 +862,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { label: '不合格原因', @@ -787,6 +874,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { label: '单价', @@ -797,7 +885,8 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive }, form: { component: 'InputNumber', - } + }, + hiddenInMain:true }, { label: '金额', @@ -808,7 +897,8 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive }, form: { component: 'InputNumber', - } + }, + hiddenInMain:true }, // { // label: '任务明细ID', @@ -826,6 +916,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, // { // label: '代码', @@ -845,6 +936,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { label: '备注', @@ -853,6 +945,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { label: '创建时间', @@ -865,6 +958,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 180 }, + hiddenInMain:true, form: { component: 'DatePicker', componentProps: { @@ -881,6 +975,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive table: { width: 150 }, + hiddenInMain:true }, { label: '操作', @@ -964,6 +1059,7 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive< width: 180, fixed: 'left' }, + hiddenInMain:true, form: { componentProps: { disabled:true From 05a44cbb9996a5aad1f396bcd8dfa848d57d5fff Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Tue, 23 Apr 2024 19:18:34 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=94=B6=E8=8E=B7?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=EF=BC=8C=E5=88=B0=E5=8C=85=E8=A3=85=E5=8F=B7?= =?UTF-8?q?=EF=BC=8C=E5=88=B0=E6=89=B9=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.wyf | 16 +++++----- .../purchasereceiptJobMain.data.ts | 31 +++++++++++++++++-- 2 files changed, 36 insertions(+), 11 deletions(-) diff --git a/.env.wyf b/.env.wyf index a957ea11d..ee1d6eb3a 100644 --- a/.env.wyf +++ b/.env.wyf @@ -3,16 +3,16 @@ NODE_ENV=test VITE_DEV=false -# # # # 请求路径 -# VITE_BASE_URL='http://192.168.0.108:12080' -# # 上传路径 -# VITE_UPLOAD_URL='http://192.168.0.108:12080/admin-api/infra/file/upload' - # 请求路径 -VITE_BASE_URL='http://dev.ccwin-in.com:25300/api' - +VITE_BASE_URL='http://192.168.0.108:12080' # 上传路径 -VITE_UPLOAD_URL='http://dev.ccwin-in.com:25300/api/admin-api/infra/file/upload' +VITE_UPLOAD_URL='http://192.168.0.108:12080/admin-api/infra/file/upload' + +# # 请求路径 +# VITE_BASE_URL='http://dev.ccwin-in.com:25300/api' + +# # 上传路径 +# VITE_UPLOAD_URL='http://dev.ccwin-in.com:25300/api/admin-api/infra/file/upload' # 接口前缀 VITE_API_BASEPATH= diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/purchasereceiptJobMain.data.ts b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/purchasereceiptJobMain.data.ts index 952bc0156..1c5634cfa 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/purchasereceiptJobMain.data.ts +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/purchasereceiptJobMain.data.ts @@ -608,7 +608,29 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ width: 120, fixed: 'right' }, - } + }, + { + label: '包装号', // 实际是子表的到包装号,为了不影响页面,单独放上面 + field: 'toPackingNumber', + sort: 'custom', + isForm:false, + isTableForm:false, + table: { + width: 150 + }, + sortTableDefault:1001, + }, + { + label: '批次', // 实际是子表的到批次,为了不影响页面,单独放上面 + field: 'toBatch', + sort: 'custom', + isForm:false, + isTableForm:false, + table: { + width: 150 + }, + sortTableDefault:1001, + }, ])) //表单校验 @@ -675,6 +697,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ width: 150 }, isSearch:true, + hiddenInMain:true, sortTableDefault:1001, sortSearchDefault:1002 }, @@ -696,7 +719,8 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ }, sortTableDefault:1000, sortSearchDefault:1000, - isSearch:true + isSearch:true, + hiddenInMain:true, }, { label: '替代批次', @@ -1025,7 +1049,8 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ fixed: 'right' }, isTableForm:true, - } + }, + ])) //表单校验 From ee7b47aa965e0d34c6d20b699fe0d40f50cdb553 Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Tue, 23 Apr 2024 19:37:45 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E5=8F=91=E8=B4=A7=E8=AE=A1=E5=88=92?= =?UTF-8?q?=EF=BC=8C=E6=88=90=E5=93=81=E5=8F=91=E8=B4=A7=E4=B8=BB=E5=AD=90?= =?UTF-8?q?=E8=A1=A8=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deliver/deliverJobMain/index.vue | 21 ++++++++----- .../deliver/deliverRecordMain/index.vue | 17 ++++++---- .../deliver/deliverRequestMain/index.vue | 29 ++++++++++------- .../deliverplan/deliverPlanMain/index.vue | 31 +++++++++++-------- 4 files changed, 59 insertions(+), 39 deletions(-) diff --git a/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue b/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue index 84cd46e12..ffeaf4fa7 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue @@ -1,7 +1,7 @@ -