Browse Source

YT-1828物料基本信息详情中的采购订单页面样式显示不正确

intex_online20241228
张立 1 month ago
parent
commit
d92a64828c
  1. 1
      src/components/Table/src/Table.vue
  2. 2
      src/hooks/web/useCrudSchemas.ts
  3. 48
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

1
src/components/Table/src/Table.vue

@ -385,6 +385,7 @@ export default defineComponent({
headerAlign={headerAlign} headerAlign={headerAlign}
{...props} {...props}
prop={v.field} prop={v.field}
minWidth={v.minWidth}
> >
{{ {{
default: (data: TableSlotDefault) => default: (data: TableSlotDefault) =>

2
src/hooks/web/useCrudSchemas.ts

@ -43,6 +43,8 @@ type CrudTableParams = {
show?: boolean show?: boolean
// 列宽配置 // 列宽配置
width?: number | string width?: number | string
// 最小列宽配置
minWidth?: number | string
// 列是否固定在左侧或者右侧 // 列是否固定在左侧或者右侧
fixed?: 'left' | 'right' fixed?: 'left' | 'right'
} & Omit<FormSchema, 'field'> } & Omit<FormSchema, 'field'>

48
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

@ -19,7 +19,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
sortTableDefault: 1, sortTableDefault: 1,
table: { table: {
width: 180, minWidth: 150,
fixed: 'left' fixed: 'left'
}, },
}, },
@ -35,7 +35,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
sortTableDefault: 2, sortTableDefault: 2,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 minWidth: 150
}, },
form: { form: {
value: '1', value: '1',
@ -50,7 +50,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: { table: {
width: 150 minWidth: 150
}, },
form: { form: {
labelMessage: '影响明细中品番,需在供应商物料中维护', labelMessage: '影响明细中品番,需在供应商物料中维护',
@ -89,7 +89,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
sortTableDefault:4, sortTableDefault:4,
table: { table: {
width: 150 minWidth: 150
}, },
}, },
{ {
@ -102,7 +102,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
sortTableDefault: 5, sortTableDefault: 5,
table: { table: {
width: 150 minWidth: 150
}, },
}, },
// { // {
@ -112,7 +112,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
// isSearch: true, // isSearch: true,
// sort: 'custom', // sort: 'custom',
// table: { // table: {
// width: 150 // minWidth: 150
// }, // },
// }, // },
@ -126,7 +126,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 minWidth: 150
}, },
sortTableDefault: 6, sortTableDefault: 6,
form: { form: {
@ -151,7 +151,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 minWidth: 150
}, },
sortTableDefault: 7, sortTableDefault: 7,
form: { form: {
@ -170,7 +170,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isTable: false, isTable: false,
table: { table: {
width: 150 minWidth: 150
}, },
}, },
{ {
@ -178,7 +178,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'taxRate', field: 'taxRate',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 minWidth: 150
}, },
isTable: false, isTable: false,
form: { form: {
@ -198,7 +198,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
isTable: false, isTable: false,
isForm: false, isForm: false,
table: { table: {
width: 150 minWidth: 150
}, },
}, },
{ {
@ -207,7 +207,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isTable: false, isTable: false,
table: { table: {
width: 150 minWidth: 150
}, },
}, },
{ {
@ -216,7 +216,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isTable: false, isTable: false,
table: { table: {
width: 150 minWidth: 150
}, },
}, },
{ {
@ -225,7 +225,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isTable: false, isTable: false,
table: { table: {
width: 150 minWidth: 150
}, },
}, },
{ {
@ -236,7 +236,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
isTable: false, isTable: false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 minWidth: 150
}, },
isForm: false, isForm: false,
form: { form: {
@ -255,7 +255,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
isTable: false, isTable: false,
isForm:false, isForm:false,
table: { table: {
width: 150 minWidth: 150
}, },
}, },
@ -266,7 +266,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
isTable:true, isTable:true,
isForm:false, isForm:false,
table: { table: {
width: 150 minWidth: 150
}, },
}, },
@ -275,7 +275,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'businessType', field: 'businessType',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 minWidth: 150
}, },
isForm: false, isForm: false,
isTable: false, isTable: false,
@ -292,7 +292,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'dataSource', field: 'dataSource',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 minWidth: 150
}, },
isForm: false, isForm: false,
isTable: false, isTable: false,
@ -304,12 +304,12 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
// field: 'currentStage', // field: 'currentStage',
// sort: 'custom', // sort: 'custom',
// table: { // table: {
// width: 150 // minWidth: 150
// }, // },
// form: { // form: {
// component: 'InputNumber', // component: 'InputNumber',
// componentProps: { // componentProps: {
// style: {width:'100%'}, // style: {minWidth:'100%'},
// min: 0 // min: 0
// } // }
// }, // },
@ -324,7 +324,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
isTable: true, isTable: true,
table: { table: {
width: 150 minWidth: 150
}, },
sortTableDefault: 1000, sortTableDefault: 1000,
}, },
@ -339,7 +339,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
table: { table: {
width: 180 minWidth: 150
}, },
form: { form: {
component: 'DatePicker', component: 'DatePicker',
@ -910,7 +910,7 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
// dateFormat: 'YYYY-MM-DD HH:mm:ss' // dateFormat: 'YYYY-MM-DD HH:mm:ss'
// }, // },
// table: { // table: {
// width: 180 // width: 150
// }, // },
// hiddenInMain:false, // hiddenInMain:false,
// isForm: false, // isForm: false,

Loading…
Cancel
Save