Browse Source

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

hella_online_20240904
zhaoxuebing 3 weeks 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'
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[]>([
{
label: '单据号',
@ -474,7 +667,7 @@ export const ProcessproductionRequestDetail = useCrudSchemas(reactive<CrudSchema
searchListPlaceholder: '请选择子物料代码',
searchField: 'componentItemCode',
searchTitle: '库存余额物料清单信息',
searchAllSchemas: Balance.allSchemas,
searchAllSchemas: BalanceBom.allSchemas,
searchPage: ProcessproductionRequestMainApi.getProcessproductionChildBomPage,
searchCondition: [{
key:'productItemCode',
@ -503,7 +696,7 @@ export const ProcessproductionRequestDetail = useCrudSchemas(reactive<CrudSchema
searchListPlaceholder: '请选择子物料代码',
searchField: 'componentItemCode',
searchTitle: '库存余额物料清单信息',
searchAllSchemas: Balance.allSchemas,
searchAllSchemas: BalanceBom.allSchemas,
searchPage: ProcessproductionRequestMainApi.getProcessproductionChildBomPage,
searchCondition: [{
key:'productItemCode',
@ -696,7 +889,6 @@ export const ProcessproductionRequestDetail = useCrudSchemas(reactive<CrudSchema
width: 150
},
form: {
disabled:true,
component: 'DatePicker',
componentProps: {
style: {width: '100%'},
@ -706,9 +898,8 @@ export const ProcessproductionRequestDetail = useCrudSchemas(reactive<CrudSchema
}
},
tableForm:{
disabled:true,
type:'FormDate',
placeholder: '请选择生日期',
placeholder: '请选择生日期',
valueFormat: 'x',
}
},

Loading…
Cancel
Save