Browse Source

查询页面调整

master
陈薪名 1 year ago
parent
commit
329e364d31
  1. 4
      src/components/SearchTable/src/SearchTable.vue
  2. 42
      src/utils/disposition/tableColumns.ts

4
src/components/SearchTable/src/SearchTable.vue

@ -94,10 +94,10 @@ const submitForm = async () => {
width: 80% !important;
}
.searchHeardClass{
height: 200px;
height: 50px;
}
.searchTableClass{
height: 300px;
height: 450px;
overflow-y: auto;
}
</style>

42
src/utils/disposition/tableColumns.ts

@ -700,6 +700,7 @@ export const Bom = useCrudSchemas(reactive<CrudSchema[]>([
label: '父物料代码',
field: 'productItemCode',
isSearch: true,
sort: 'custom',
table: {
width: 150
}
@ -708,6 +709,7 @@ export const Bom = useCrudSchemas(reactive<CrudSchema[]>([
label: '子物料代码',
field: 'componentItemCode',
isSearch: true,
sort: 'custom',
table: {
width: 150
}
@ -717,28 +719,42 @@ export const Bom = useCrudSchemas(reactive<CrudSchema[]>([
field: 'componentUom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
sort: 'custom',
isSearch: true,
isTable: true
isTable: true,
table: {
width: 150
}
},
{
label: '子物料数量',
field: 'componentQty',
isSearch: true,
sort: 'custom',
form: {
component: 'InputNumber',
},
table: {
width: 120
}
},
{
label: '工序代码',
field: 'processCode'
field: 'processCode',
sort: 'custom',
table: {
width: 120
}
},
{
label: '版本',
field: 'version'
field: 'version',
sort: 'custom'
},
{
label: '层级',
field: 'layer',
sort: 'custom',
// form: {
// component: 'Input',
// componentProps: {
@ -751,6 +767,7 @@ export const Bom = useCrudSchemas(reactive<CrudSchema[]>([
label: '生效时间',
field: 'activeTime',
isTable: true,
sort: 'custom',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -769,6 +786,7 @@ export const Bom = useCrudSchemas(reactive<CrudSchema[]>([
label: '失效时间',
field: 'expireTime',
isTable: true,
sort: 'custom',
formatter : dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -805,10 +823,14 @@ export const Bom = useCrudSchemas(reactive<CrudSchema[]>([
label: '创建时间',
field: 'createTime',
isTable: true,
sort: 'custom',
formatter: dateFormatter,
isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 180
}
},
{
@ -859,6 +881,7 @@ export const Stdcostprice = useCrudSchemas(reactive<CrudSchema[]>([
label: '供应商代码',
field: 'supplierCode',
isSearch: true,
sort: 'custom',
table: {
width: 150
}
@ -867,6 +890,7 @@ export const Stdcostprice = useCrudSchemas(reactive<CrudSchema[]>([
label: '物料代码',
field: 'itemCode',
isSearch: true,
sort: 'custom',
table: {
width: 150
}
@ -876,12 +900,14 @@ export const Stdcostprice = useCrudSchemas(reactive<CrudSchema[]>([
field: 'currency',
dictType: DICT_TYPE.CURRENCY,
dictClass: 'string',
sort: 'custom',
isSearch : true,
isTable : true
},
{
label: '价格',
field: 'price',
sort: 'custom',
isSearch: true
},
{
@ -890,6 +916,7 @@ export const Stdcostprice = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 120
},
@ -906,6 +933,7 @@ export const Stdcostprice = useCrudSchemas(reactive<CrudSchema[]>([
label: '生效时间',
field: 'activeTime',
isTable: true,
sort: 'custom',
formatter : dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -924,6 +952,7 @@ export const Stdcostprice = useCrudSchemas(reactive<CrudSchema[]>([
label: '失效时间',
field: 'expireTime',
isTable: true,
sort: 'custom',
formatter : dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -942,6 +971,7 @@ export const Stdcostprice = useCrudSchemas(reactive<CrudSchema[]>([
label: '创建时间',
field: 'createTime',
isForm: false,
sort: 'custom',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -996,6 +1026,7 @@ export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([
label: '完工收货库位',
field: 'fgLocationCode',
isSearch: true,
sort: 'custom',
table: {
width: 150
}
@ -1004,6 +1035,7 @@ export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([
label: '产线代码' ,
field: 'productionLineCode',
isSearch: true,
sort: 'custom',
table: {
width: 150
}
@ -1012,6 +1044,7 @@ export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([
label: '物品代码',
field: 'itemCode',
isSearch: true,
sort: 'custom',
table: {
width: 150
}
@ -1021,6 +1054,7 @@ export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
sort: 'custom',
isSearch: true,
isTable: true,
table: {
@ -1038,6 +1072,7 @@ export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '生效时间',
field: 'activeTime',
sort: 'custom',
formatter : dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -1055,6 +1090,7 @@ export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '失效时间',
field: 'expireTime',
sort: 'custom',
formatter : dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'

Loading…
Cancel
Save