From 84dff5a40a0f1ba861fd03756ba5c2a0677bf1be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Tue, 17 Oct 2023 11:14:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/disposition/tableColumns.ts | 311 ++++++++++++++++++++++---- 1 file changed, 272 insertions(+), 39 deletions(-) diff --git a/src/utils/disposition/tableColumns.ts b/src/utils/disposition/tableColumns.ts index 1b779fe9d..5b9cf5061 100644 --- a/src/utils/disposition/tableColumns.ts +++ b/src/utils/disposition/tableColumns.ts @@ -811,7 +811,7 @@ export const Stdcostprice = useCrudSchemas(reactive([ }, { label: '是否可用', - field: 'avaliable', + field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isSearch: true, @@ -945,6 +945,15 @@ export const Productionlineitem = useCrudSchemas(reactive([ { label: '创建者', field: 'creator' + }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } } ])) @@ -1107,6 +1116,15 @@ export const Supplier = useCrudSchemas(reactive([ { label: '创建者', field: 'creator' + }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } } ])) @@ -1242,6 +1260,15 @@ export const Supplieritem = useCrudSchemas(reactive([ detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } + }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } } ])) @@ -1333,6 +1360,15 @@ export const Purchaseprice = useCrudSchemas(reactive([ { label: '创建者', field: 'creator' + }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } } ])) @@ -1408,7 +1444,8 @@ export const Customer = useCrudSchemas(reactive([ field: 'currency', dictType: DICT_TYPE.CURRENCY, dictClass: 'string', - isTable: true + isTable: true, + isSearch: true }, { label: '税率', @@ -1419,14 +1456,16 @@ export const Customer = useCrudSchemas(reactive([ field: 'type', dictType: DICT_TYPE.CUSTOMER_TYPE, dictClass: 'string', - isTable: true + isTable: true, + isSearch: true }, { label: '是否可用', field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true + isTable: true, + isSearch: true }, { label: '生效时间', @@ -1462,6 +1501,15 @@ export const Customer = useCrudSchemas(reactive([ { label: '创建者', field: 'creator' + }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } } ])) @@ -1528,7 +1576,8 @@ export const Customerdock = useCrudSchemas(reactive([ dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: true, - isForm: false + isForm: false, + isSearch: true }, { label: '生效时间', @@ -1564,6 +1613,15 @@ export const Customerdock = useCrudSchemas(reactive([ { label: '创建者', field: 'creator' + }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } } ])) @@ -1680,6 +1738,15 @@ export const Customeritem = useCrudSchemas(reactive([ { label: '创建者', field: 'creator' + }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } } ])) @@ -1726,7 +1793,8 @@ export const Project = useCrudSchemas(reactive([ field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true + isTable: true, + isSearch: true }, { label: '生效时间', @@ -1762,6 +1830,15 @@ export const Project = useCrudSchemas(reactive([ { label: '创建者', field: 'creator' + }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } } ])) @@ -1804,7 +1881,8 @@ export const Saleprice = useCrudSchemas(reactive([ field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true + isTable: true, + isSearch: true }, { label: '生效时间', @@ -1840,6 +1918,15 @@ export const Saleprice = useCrudSchemas(reactive([ { label: '创建者', field: 'creator' + }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } } ])) @@ -1891,7 +1978,8 @@ export const Warehouse = useCrudSchemas(reactive([ field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true + isTable: true, + isSearch: true }, { label: '生效时间', @@ -1927,6 +2015,15 @@ export const Warehouse = useCrudSchemas(reactive([ { label: '创建者', field: 'creator' + }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } } ])) @@ -1989,7 +2086,8 @@ export const Dock = useCrudSchemas(reactive([ field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true + isTable: true, + isSearch: true }, { label: '生效时间', @@ -2025,6 +2123,15 @@ export const Dock = useCrudSchemas(reactive([ { label: '创建者', field: 'creator' + }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } } ])) @@ -2066,7 +2173,7 @@ export const Area = useCrudSchemas(reactive([ { label: '类型', field: 'type', - dictType: DICT_TYPE.TRUE_FALSE, + dictType: DICT_TYPE.AREA_TYPE, dictClass: 'string', isSearch: true, isTable: true @@ -2084,7 +2191,8 @@ export const Area = useCrudSchemas(reactive([ field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true + isTable: true, + isSearch: true }, { label: '生效时间', @@ -2120,6 +2228,15 @@ export const Area = useCrudSchemas(reactive([ { label: '创建者', field: 'creator' + }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } } ])) @@ -2149,7 +2266,7 @@ export const Locationgroup = useCrudSchemas(reactive([ }, { label: '名称', - field: 'mame' + field: 'name' }, { label: '仓库代码', @@ -2164,7 +2281,8 @@ export const Locationgroup = useCrudSchemas(reactive([ field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true + isTable: true, + isSearch: true }, { label: '生效时间', @@ -2200,6 +2318,15 @@ export const Locationgroup = useCrudSchemas(reactive([ { label: '创建者', field: 'creator' + }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } } ])) @@ -2300,7 +2427,8 @@ export const Location = useCrudSchemas(reactive([ field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true + isTable: true, + isSearch: true, }, { label: '生效时间', @@ -2336,6 +2464,15 @@ export const Location = useCrudSchemas(reactive([ { label: '创建者', field: 'creator' + }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } } ])) @@ -2421,13 +2558,21 @@ export const Workshop = useCrudSchemas(reactive([ field: 'createTime', isTable: true, formatter: dateFormatter, - isForm: false, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, - { label: '备注', field: 'remark', isTable: false }, - { label: '创建者', field: 'creator', isTable: false, isForm: false } + { label: '备注', field: 'remark' }, + { label: '创建者', field: 'creator' }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } + } ])) //表单校验 @@ -2503,13 +2648,21 @@ export const Productionline = useCrudSchemas(reactive([ field: 'createTime', isTable: true, formatter: dateFormatter, - isForm: false, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, - { label: '备注', field: 'remark', isTable: false }, - { label: '创建者', field: 'creator', isTable: false, isForm: false } + { label: '备注', field: 'remark' }, + { label: '创建者', field: 'creator' }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } + } ])) //表单校验 @@ -2592,13 +2745,21 @@ export const Workstation = useCrudSchemas(reactive([ field: 'createTime', isTable: true, formatter: dateFormatter, - isForm: false, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, - { label: '备注', field: 'remark', isTable: false }, - { label: '创建者', field: 'creator', isTable: false, isForm: false } + { label: '备注', field: 'remark' }, + { label: '创建者', field: 'creator' }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } + } ])) //表单检验 @@ -2676,13 +2837,21 @@ export const Process = useCrudSchemas(reactive([ field: 'createTime', isTable: true, formatter: dateFormatter, - isForm: false, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, - { label: '备注', field: 'remark', isTable: false }, - { label: '创建者', field: 'creator', isTable: false, isForm: false } + { label: '备注', field: 'remark' }, + { label: '创建者', field: 'creator' }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } + } ])) //表单检验 @@ -2758,13 +2927,21 @@ export const Systemcalendar = useCrudSchemas(reactive([ field: 'createTime', isTable: true, formatter: dateFormatter, - isForm: false, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, - { label: '备注', field: 'remark', isTable: false }, - { label: '创建者', field: 'creator', isTable: false, isForm: false } + { label: '备注', field: 'remark' }, + { label: '创建者', field: 'creator' }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } + } ])) //表单校验 @@ -2851,13 +3028,21 @@ export const Accountcalendar = useCrudSchemas(reactive([ field: 'createTime', isTable: true, formatter: dateFormatter, - isForm: false, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, - { label: '备注', field: 'remark', isTable: false }, - { label: '创建者', field: 'creator', isTable: false, isForm: false } + { label: '备注', field: 'remark', }, + { label: '创建者', field: 'creator' }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } + } ])) //表单校验 @@ -2937,13 +3122,21 @@ export const Currencyexchange = useCrudSchemas(reactive([ field: 'createTime', isTable: true, formatter: dateFormatter, - isForm: false, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' } }, - { label: '备注', field: 'remark', isTable: false }, - { label: '创建者', field: 'creator', isTable: false, isForm: false } + { label: '备注', field: 'remark' }, + { label: '创建者', field: 'creator' }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } + } ])) //表单校验 @@ -3035,7 +3228,8 @@ export const Owner = useCrudSchemas(reactive([ field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true + isTable: true, + isSearch: true }, { label: '生效时间', @@ -3071,6 +3265,15 @@ export const Owner = useCrudSchemas(reactive([ { label: '创建者', field: 'creator' + }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } } ])) @@ -3160,7 +3363,8 @@ export const Carrier = useCrudSchemas(reactive([ field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true + isTable: true, + isSearch: true }, { label: '生效时间', @@ -3196,6 +3400,15 @@ export const Carrier = useCrudSchemas(reactive([ { label: '创建者', field: 'creator' + }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } } ])) @@ -3254,7 +3467,8 @@ export const Shift = useCrudSchemas(reactive([ field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true + isTable: true, + isSearch: true }, { label: '生效时间', @@ -3290,6 +3504,15 @@ export const Shift = useCrudSchemas(reactive([ { label: '创建者', field: 'creator' + }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } } ])) @@ -3333,7 +3556,8 @@ export const Team = useCrudSchemas(reactive([ field: 'available', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true + isTable: true, + isSearch: true }, { label: '生效时间', @@ -3369,6 +3593,15 @@ export const Team = useCrudSchemas(reactive([ { label: '创建者', field: 'creator' + }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false , + table: { + width: 150 + } } ]))