From adab571c767ed5d956d3118a0ad19fc081b4155e Mon Sep 17 00:00:00 2001 From: chenfang Date: Thu, 16 May 2024 15:29:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=80=E5=94=AE=E5=8F=91=E8=BF=90=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=AD=97=E6=AE=B5=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../saleShipmentMainRecord/index.vue | 5 +- .../saleShipmentMainRecord.data.ts | 64 +++++++++++++++++-- 2 files changed, 59 insertions(+), 10 deletions(-) diff --git a/src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue b/src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue index b8e1c3b9d..779e7f7df 100644 --- a/src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue +++ b/src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue @@ -81,8 +81,7 @@ const { t } = useI18n() // 国际化 const route = useRoute() // 路由信息 const routeName = ref() routeName.value = route.name -const tableColumns = ref([SaleShipmentMainRecord.allSchemas.tableColumns,...SaleShipmentDetailRecord.allSchemas.tableMainColumns]) -// const tableColumns = ref(SaleShipmentMainRecord.allSchemas.tableColumns) +const tableColumns = ref([...SaleShipmentMainRecord.allSchemas.tableColumns,...SaleShipmentDetailRecord.allSchemas.tableMainColumns]) // 查询页面返回 const searchTableSuccess = (formField, searchField, val, formRef) => { nextTick(() => { @@ -98,7 +97,7 @@ const updataTableColumns = (val) => { } const { tableObject, tableMethods } = useTable({ - getListApi: SaleShipmentMainRecordApi.getSaleShipmentMainRecordPage // 分页接口 + getListApi: SaleShipmentDetailRecordApi.getSaleShipmentDetailRecordPage // 分页接口 }) // 获得表格的各种操作 diff --git a/src/views/wms/deliversettlementManage/saleShipmentMainRecord/saleShipmentMainRecord.data.ts b/src/views/wms/deliversettlementManage/saleShipmentMainRecord/saleShipmentMainRecord.data.ts index 8f83a53e2..1d97d749b 100644 --- a/src/views/wms/deliversettlementManage/saleShipmentMainRecord/saleShipmentMainRecord.data.ts +++ b/src/views/wms/deliversettlementManage/saleShipmentMainRecord/saleShipmentMainRecord.data.ts @@ -11,17 +11,26 @@ export const SaleShipmentMainRecord = useCrudSchemas(reactive([ field: 'number', sort: 'custom', isSearch: true, + table: { + width: 200, + } }, { label: '申请单号', field: 'requestNumber', sort: 'custom', isSearch: true, + table: { + width: 200, + } }, { label: '客户代码', field: 'customerCode', sort: 'custom', + table: { + width: 150, + } }, { label: '发票时间', @@ -36,6 +45,9 @@ export const SaleShipmentMainRecord = useCrudSchemas(reactive([ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] } }, + table: { + width: 200, + }, form: { component: 'DatePicker', componentProps: { @@ -64,6 +76,9 @@ export const SaleShipmentMainRecord = useCrudSchemas(reactive([ valueFormat: 'x' } }, + table: { + width: 200, + } }, { label: '是否可用', @@ -75,13 +90,14 @@ export const SaleShipmentMainRecord = useCrudSchemas(reactive([ label: '部门', field: 'departmentCode', sort: 'custom', - + isTable:false }, { label: '业务类型', field: 'businessType', sort: 'custom', + isTable:false }, { label: '创建时间', @@ -121,35 +137,41 @@ export const SaleShipmentDetailRecordRules = reactive({ }) export const SaleShipmentDetailRecord = useCrudSchemas(reactive([ - { - label: '单据号', - field: 'number', - sort: 'custom', - }, { label: '销售订单号', field: 'soNumber', sort: 'custom', + table: { + width: 200, + } }, { label: '销售订单行', field: 'soLine', sort: 'custom', + table: { + width: 150, + } }, { label: '从货主代码', field: 'fromOwnerCode', sort: 'custom', + isTable:false }, { label: '包装号', field: 'packingNumber', sort: 'custom', + isTable:false }, { label: '批次', field: 'batch', sort: 'custom', + table: { + width: 150, + } }, { label: '库存状态', @@ -158,11 +180,15 @@ export const SaleShipmentDetailRecord = useCrudSchemas(reactive([ form: { component: 'Radio' }, + isTable:false }, { label: '从库位代码', field: 'fromLocationCode', sort: 'custom', + table: { + width: 130, + } }, { label: '主表ID', @@ -172,31 +198,41 @@ export const SaleShipmentDetailRecord = useCrudSchemas(reactive([ component: 'InputNumber', value: 0 }, + isTable:false }, { label: '物品代码', field: 'itemCode', sort: 'custom', + table: { + width: 150, + } }, { label: '物品名称', field: 'itemName', sort: 'custom', + table: { + width: 150, + } }, { label: '物品描述1', field: 'itemDesc1', sort: 'custom', + isTable:false }, { label: '物品描述2', field: 'itemDesc2', sort: 'custom', + isTable:false }, { label: '项目代码', field: 'projectCode', sort: 'custom', + isTable:false }, { label: '数量', @@ -206,12 +242,22 @@ export const SaleShipmentDetailRecord = useCrudSchemas(reactive([ { label: '计量单位', field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isTable: true, sort: 'custom', + table: { + width: 150 + }, + tableForm: { + type: 'Select' + } }, { label: '备注', field: 'remark', sort: 'custom', + isTable:false }, { label: '创建时间', @@ -226,12 +272,13 @@ export const SaleShipmentDetailRecord = useCrudSchemas(reactive([ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] } }, - isForm: false, + isTable: false, }, { label: '并发乐观锁', field: 'concurrencyStamp', sort: 'custom', + isTable:false }, { label: '地点ID', @@ -241,11 +288,14 @@ export const SaleShipmentDetailRecord = useCrudSchemas(reactive([ component: 'InputNumber', value: 0 }, + isTable:false }, { label: '操作', field: 'action', isForm: false, + hiddenInMain:true, + isTable:false, table: { width: 150, fixed: 'right'