diff --git a/src/components/Table/src/Table.vue b/src/components/Table/src/Table.vue index 0f44e08bb..43881054e 100644 --- a/src/components/Table/src/Table.vue +++ b/src/components/Table/src/Table.vue @@ -385,6 +385,7 @@ export default defineComponent({ headerAlign={headerAlign} {...props} prop={v.field} + minWidth={v.minWidth} > {{ default: (data: TableSlotDefault) => diff --git a/src/hooks/web/useCrudSchemas.ts b/src/hooks/web/useCrudSchemas.ts index 914091ff4..a43c5bc84 100644 --- a/src/hooks/web/useCrudSchemas.ts +++ b/src/hooks/web/useCrudSchemas.ts @@ -43,6 +43,8 @@ type CrudTableParams = { show?: boolean // 列宽配置 width?: number | string + // 最小列宽配置 + minWidth?: number | string // 列是否固定在左侧或者右侧 fixed?: 'left' | 'right' } & Omit diff --git a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts index 21f22d0df..3a30605cb 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts +++ b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts @@ -1042,7 +1042,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive sortTableDefault: 1003, sortSearchDefault: 5, tableForm: { - disabled: true + disabled: true, + isPlaceholder:false }, form: { componentProps: { diff --git a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts index cabe822be..1c065f636 100644 --- a/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts +++ b/src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts @@ -1098,7 +1098,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas( isSearch: true, sortTableDefault: 1003, tableForm: { - disabled: true + disabled: true, + isPlaceholder:false }, form: { componentProps: { @@ -1856,7 +1857,8 @@ export const ProductreceiptRequestLabel = useCrudSchemas( key: 'itemCode', value: 'itemCode', message: '请先选择品番!', - isMainValue: true + isMainValue: true, + paramsFrom:'tableForm' } ], verificationParams: [ diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts index 3988ef713..a6f67b895 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts @@ -19,7 +19,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ isForm: false, sortTableDefault: 1, table: { - width: 180, + minWidth: 150, fixed: 'left' }, }, @@ -35,7 +35,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ sortTableDefault: 2, sort: 'custom', table: { - width: 150 + minWidth: 150 }, form: { value: '1', @@ -50,7 +50,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, table: { - width: 150 + minWidth: 150 }, form: { labelMessage: '影响明细中品番,需在供应商物料中维护', @@ -89,7 +89,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ sort: 'custom', sortTableDefault:4, table: { - width: 150 + minWidth: 150 }, }, { @@ -102,7 +102,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ sort: 'custom', sortTableDefault: 5, table: { - width: 150 + minWidth: 150 }, }, // { @@ -112,7 +112,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ // isSearch: true, // sort: 'custom', // table: { - // width: 150 + // minWidth: 150 // }, // }, @@ -126,7 +126,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ }, sort: 'custom', table: { - width: 180 + minWidth: 150 }, sortTableDefault: 6, form: { @@ -151,7 +151,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ }, sort: 'custom', table: { - width: 180 + minWidth: 150 }, sortTableDefault: 7, form: { @@ -170,7 +170,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ sort: 'custom', isTable: false, table: { - width: 150 + minWidth: 150 }, }, { @@ -178,7 +178,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ field: 'taxRate', sort: 'custom', table: { - width: 150 + minWidth: 150 }, isTable: false, form: { @@ -198,7 +198,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ isTable: false, isForm: false, table: { - width: 150 + minWidth: 150 }, }, { @@ -207,7 +207,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ sort: 'custom', isTable: false, table: { - width: 150 + minWidth: 150 }, }, { @@ -216,7 +216,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ sort: 'custom', isTable: false, table: { - width: 150 + minWidth: 150 }, }, { @@ -225,7 +225,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ sort: 'custom', isTable: false, table: { - width: 150 + minWidth: 150 }, }, { @@ -236,7 +236,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ isTable: false, sort: 'custom', table: { - width: 150 + minWidth: 150 }, isForm: false, form: { @@ -255,7 +255,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ isTable: false, isForm:false, table: { - width: 150 + minWidth: 150 }, }, @@ -266,7 +266,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ isTable:true, isForm:false, table: { - width: 150 + minWidth: 150 }, }, @@ -275,7 +275,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ field: 'businessType', sort: 'custom', table: { - width: 150 + minWidth: 150 }, isForm: false, isTable: false, @@ -292,7 +292,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ field: 'dataSource', sort: 'custom', table: { - width: 150 + minWidth: 150 }, isForm: false, isTable: false, @@ -304,12 +304,12 @@ export const PurchaseMain = useCrudSchemas(reactive([ // field: 'currentStage', // sort: 'custom', // table: { - // width: 150 + // minWidth: 150 // }, // form: { // component: 'InputNumber', // componentProps: { - // style: {width:'100%'}, + // style: {minWidth:'100%'}, // min: 0 // } // }, @@ -324,7 +324,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ isForm: false, isTable: true, table: { - width: 150 + minWidth: 150 }, sortTableDefault: 1000, }, @@ -339,7 +339,7 @@ export const PurchaseMain = useCrudSchemas(reactive([ sort: 'custom', isForm: false, table: { - width: 180 + minWidth: 150 }, form: { component: 'DatePicker', @@ -910,7 +910,7 @@ export const PurchaseDetail = useCrudSchemas(reactive([ // dateFormat: 'YYYY-MM-DD HH:mm:ss' // }, // table: { - // width: 180 + // width: 150 // }, // hiddenInMain:false, // isForm: false,