From b0f1bce9577a73cc56598999fd544adbd36fdfb0 Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Tue, 23 Apr 2024 17:53:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=94=B6=E8=B4=A7=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1+=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchasereceiptJobMain.data.ts | 98 +++++++++++++++---- 1 file changed, 80 insertions(+), 18 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/purchasereceiptJobMain.data.ts b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/purchasereceiptJobMain.data.ts index 6b35d7e79..952bc0156 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/purchasereceiptJobMain.data.ts +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/purchasereceiptJobMain.data.ts @@ -1,5 +1,6 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' +import { fa } from 'element-plus/es/locale' /** * @returns {Array} 采购收货任务主表 @@ -14,6 +15,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ fixed: 'left' }, isSearch: true, + sortSearchDefault:1 }, { label: '申请单号', @@ -22,7 +24,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ table: { width: 180 }, - isSearch: true, + isSearch: false, }, { label: '发货单号', @@ -31,11 +33,13 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ table: { width: 180 }, + isSearch: true }, { label: '要货计划单号', field: 'ppNumber', sort: 'custom', + isTable:false, table: { width: 180 }, @@ -44,15 +48,18 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ label: '供应商代码', field: 'supplierCode', sort: 'custom', + sortTableDefault:1, table: { width: 150 }, isSearch: true, + sortSearchDefault:2 }, { label: '到月台代码', field: 'toDockCode', sort: 'custom', + isTable:false, table: { width: 150 }, @@ -64,6 +71,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ table: { width: 150 }, + sortTableDefault:1010 }, { label: '数据来源', @@ -87,6 +95,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ table: { width: 150 }, + sortTableDefault:1011 }, { label: '车牌号', @@ -95,11 +104,13 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ table: { width: 150 }, + sortTableDefault:1012 }, { label: '从仓库代码', field: 'fromWarehouseCode', sort: 'custom', + isTable:false, table: { width: 150 }, @@ -108,6 +119,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ label: '到仓库代码', field: 'toWarehouseCode', sort: 'custom', + isTable:false, table: { width: 150 }, @@ -128,6 +140,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ label: '申请时间', field: 'requestTime', sort: 'custom', + isTable:false, table: { width: 180 }, @@ -151,6 +164,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ table: { width: 180 }, + isTable:false, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -169,7 +183,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ field: 'status', dictType: DICT_TYPE.JOB_STATUS, dictClass: 'string', - isSearch: true, + isSearch: false, isTable: true, sort: 'custom', table: { @@ -187,6 +201,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ table: { width: 180 }, + isTable:false, form: { component: 'DatePicker', componentProps: { @@ -211,6 +226,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false, form: { component: 'InputNumber', } @@ -222,6 +238,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false, form: { component: 'InputNumber', } @@ -233,6 +250,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false, }, { label: '岗位', @@ -241,6 +259,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false, }, { label: '承接人', @@ -249,6 +268,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false, }, { label: '承接时间', @@ -261,6 +281,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ table: { width: 180 }, + isTable:false, form: { component: 'DatePicker', componentProps: { @@ -277,6 +298,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false, }, { label: '完成时间', @@ -289,6 +311,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ table: { width: 180 }, + isTable:false, form: { component: 'DatePicker', componentProps: { @@ -303,7 +326,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ field: 'fromAreaTypes', dictType: DICT_TYPE.AREA_TYPE, dictClass: 'string', - isTable: true, + isTable: false, sort: 'custom', table: { width: 150 @@ -314,7 +337,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ field: 'toAreaTypes', dictType: DICT_TYPE.AREA_TYPE, dictClass: 'string', - isTable: true, + isTable: false, sort: 'custom', table: { width: 150 @@ -327,6 +350,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false, }, { label: '到库区代码范围', @@ -335,6 +359,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false, }, { label: '业务类型', @@ -343,6 +368,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false, }, { label: '备注', @@ -351,6 +377,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false, }, { label: '创建者', @@ -359,6 +386,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ table: { width: 150 }, + isTable:false, }, { label: '创建时间', @@ -371,6 +399,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ table: { width: 180 }, + isTable:false, form: { component: 'DatePicker', componentProps: { @@ -385,7 +414,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ field: 'autoComplete', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true, + isTable: false, form: { component: 'Switch', value: 'TRUE', @@ -404,7 +433,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ field: 'allowModifyLocation', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true, + isTable: false, form: { component: 'Switch', value: 'TRUE', @@ -423,7 +452,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ field: 'allowModifyQty', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true, + isTable: false, form: { component: 'Switch', value: 'TRUE', @@ -442,7 +471,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ field: 'allowBiggerQty', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true, + isTable: false, form: { component: 'Switch', value: 'TRUE', @@ -461,7 +490,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ field: 'allowSmallerQty', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true, + isTable: false, form: { component: 'Switch', value: 'TRUE', @@ -480,7 +509,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ field: 'allowModifyInventoryStatus', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true, + isTable: false, form: { component: 'Switch', value: 'TRUE', @@ -499,7 +528,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ field: 'allowContinuousScanning', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true, + isTable: false, form: { component: 'Switch', value: 'TRUE', @@ -518,7 +547,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ field: 'allowPartialComplete', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true, + isTable: false, form: { component: 'Switch', value: 'TRUE', @@ -537,7 +566,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ field: 'allowModifyBatch', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true, + isTable: false, form: { component: 'Switch', value: 'TRUE', @@ -556,7 +585,7 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive([ field: 'allowModifyPackingNumber', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', - isTable: true, + isTable: false, form: { component: 'Switch', value: 'TRUE', @@ -645,11 +674,15 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 150 }, + isSearch:true, + sortTableDefault:1001, + sortSearchDefault:1002 }, { label: '器具号', field: 'containerNumber', sort: 'custom', + hiddenInMain:true, table: { width: 150 }, @@ -661,6 +694,9 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 150 }, + sortTableDefault:1000, + sortSearchDefault:1000, + isSearch:true }, { label: '替代批次', @@ -669,6 +705,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '到货日期', @@ -681,6 +718,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 180 }, + hiddenInMain:true, form: { component: 'DatePicker', componentProps: { @@ -702,6 +740,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 180 }, + hiddenInMain:true, form: { component: 'DatePicker', componentProps: { @@ -723,6 +762,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 180 }, + hiddenInMain:true, form: { component: 'DatePicker', componentProps: { @@ -743,6 +783,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '从库位代码', @@ -751,6 +792,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 150 }, + sortTableDefault:1005 }, { label: '到库位代码', @@ -759,14 +801,17 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 150 }, + sortTableDefault:1006 }, { - label: '订单号', + label: '采购订单号', field: 'poNumber', sort: 'custom', table: { width: 150 }, + isSearch:true, + }, { label: '订单行', @@ -785,7 +830,8 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', - } + }, + sortTableDefault:1003 }, { label: '包装规格', @@ -796,6 +842,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 150 }, + sortTableDefault:1002 }, { label: '供应商计量数量', @@ -804,6 +851,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, form: { component: 'InputNumber', } @@ -818,6 +866,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '转换率', @@ -828,7 +877,8 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', - } + }, + hiddenInMain:true, }, { label: '从货主代码', @@ -837,6 +887,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '到货主代码', @@ -845,6 +896,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '物料代码', @@ -853,6 +905,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 150 }, + isSearch:true }, { label: '物料名称', @@ -869,6 +922,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '物料描述2', @@ -877,6 +931,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '项目代码', @@ -885,6 +940,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '数量', @@ -895,7 +951,8 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ }, form: { component: 'InputNumber', - } + }, + hiddenInMain:true, }, { label: '计量单位', @@ -907,6 +964,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 150 }, + sortTableDefault:1004 }, { label: '单据号', @@ -915,6 +973,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 180 }, + hiddenInMain:true, }, { label: '备注', @@ -923,6 +982,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '创建者', @@ -931,6 +991,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain:true, }, { label: '创建时间', @@ -951,6 +1012,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive([ valueFormat: 'x', } }, + hiddenInMain:true, }, { label: '操作',