Browse Source

缺陷:HL-5762数据筛选问题修复

hella_online_20240904
zhaoxuebing 2 months ago
parent
commit
33127ab131
  1. 201
      src/views/wms/productionManage/processproduction/processproductionRequest/processproductionRequestMain.data.ts

201
src/views/wms/productionManage/processproduction/processproductionRequest/processproductionRequestMain.data.ts

@ -16,6 +16,199 @@ import { Balance } from '@/views/wms/inventoryManage/balance/balance.data'
import { fa } from 'element-plus/es/locale' import { fa } from 'element-plus/es/locale'
export const BalanceBom = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '物料代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
isSearch: true
},
{
label: '批次',
field: 'batch',
sort: 'custom',
table: {
width: 150
},
isSearch: true
},
{
label: '包装号',
field: 'packingNumber',
sort: 'custom',
table: {
width: 150
},
isSearch: true
},
{
label: '包装规格',
field: 'packUnit',
sort: 'custom',
table: {
width: 150
}
},
{
label: '包装数量',
field: 'packQty',
sort: 'custom',
table: {
width: 150
}
},
{
label: '库存数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber'
}
},
{
label: '计量单位',
field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
}
},
{
label: '库位代码',
field: 'locationCode',
sort: 'custom',
table: {
width: 150
},
isSearch: true
},
{
label: '库存状态',
field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
}
},
{
label: '库区类型',
field: 'areaType',
sort: 'custom',
dictType: DICT_TYPE.AREA_TYPE,
dictClass: 'string',
isTable: true,
table: {
width: 150
}
},
{
label: '仓库代码',
field: 'warehouseCode',
sort: 'custom',
table: {
width: 150
}
},
{
label: '库位组代码',
field: 'locationGroupCode',
sort: 'custom',
table: {
width: 150
}
},
{
label: '库区代码',
field: 'areaCode',
sort: 'custom',
table: {
width: 150
}
},
{
label: '到货日期',
field: 'arriveDate',
isTable: true,
formatter: dateFormatter2,
detail: {
dateFormat: 'YYYY-MM-DD'
},
sort: 'custom',
table: {
width: 150
},
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'date',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x'
}
}
},
{
label: '生产日期',
field: 'produceDate',
isTable: true,
formatter: dateFormatter2,
detail: {
dateFormat: 'YYYY-MM-DD'
},
sort: 'custom',
table: {
width: 150
},
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'date',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x'
}
}
},
{
label: '失效日期',
field: 'expireDate',
isTable: true,
formatter: dateFormatter2,
detail: {
dateFormat: 'YYYY-MM-DD'
},
sort: 'custom',
table: {
width: 150
},
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'date',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x'
}
}
},
])
)
export const ProcessproductionRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ export const ProcessproductionRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '单据号', label: '单据号',
@ -474,7 +667,7 @@ export const ProcessproductionRequestDetail = useCrudSchemas(reactive<CrudSchema
searchListPlaceholder: '请选择子物料代码', searchListPlaceholder: '请选择子物料代码',
searchField: 'componentItemCode', searchField: 'componentItemCode',
searchTitle: '库存余额物料清单信息', searchTitle: '库存余额物料清单信息',
searchAllSchemas: Balance.allSchemas, searchAllSchemas: BalanceBom.allSchemas,
searchPage: ProcessproductionRequestMainApi.getProcessproductionChildBomPage, searchPage: ProcessproductionRequestMainApi.getProcessproductionChildBomPage,
searchCondition: [{ searchCondition: [{
key:'productItemCode', key:'productItemCode',
@ -503,7 +696,7 @@ export const ProcessproductionRequestDetail = useCrudSchemas(reactive<CrudSchema
searchListPlaceholder: '请选择子物料代码', searchListPlaceholder: '请选择子物料代码',
searchField: 'componentItemCode', searchField: 'componentItemCode',
searchTitle: '库存余额物料清单信息', searchTitle: '库存余额物料清单信息',
searchAllSchemas: Balance.allSchemas, searchAllSchemas: BalanceBom.allSchemas,
searchPage: ProcessproductionRequestMainApi.getProcessproductionChildBomPage, searchPage: ProcessproductionRequestMainApi.getProcessproductionChildBomPage,
searchCondition: [{ searchCondition: [{
key:'productItemCode', key:'productItemCode',
@ -696,7 +889,6 @@ export const ProcessproductionRequestDetail = useCrudSchemas(reactive<CrudSchema
width: 150 width: 150
}, },
form: { form: {
disabled:true,
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width: '100%'}, style: {width: '100%'},
@ -706,9 +898,8 @@ export const ProcessproductionRequestDetail = useCrudSchemas(reactive<CrudSchema
} }
}, },
tableForm:{ tableForm:{
disabled:true,
type:'FormDate', type:'FormDate',
placeholder: '请选择生日期', placeholder: '请选择生日期',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

Loading…
Cancel
Save