Browse Source

YT-1237号口品创建标签应与补给品创建标签保持一致

intex
zhaoyiran 1 week ago
parent
commit
5be417f74f
  1. 308
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts

308
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts

@ -1701,56 +1701,36 @@ export const BackflushDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
/** /**
* @returns {Array} * @returns {Array}
*/ */
export const ProductreceiptRequestLabel = useCrudSchemas(reactive<CrudSchema[]>([ export const ProductreceiptRequestLabel = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生产线代码', label: '物料代码',
field: 'productionLineCodePackage', field: 'itemCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm: {
disabled: true disabled: true
// isInpuFocusShow: true, },
// searchListPlaceholder: '请选择生产线代码', // 输入框占位文本 form: {
// searchField: 'productionLineCode', // 查询弹窗赋值字段 componentProps: {
// searchTitle: '生产线物料关系信息', // 查询弹窗标题 disabled: true
// searchAllSchemas: Productionlineitem.allSchemas, // 查询弹窗所需类 }
// searchPage: ProductionlineitemApi.getProductionlineitemPage, // 查询弹窗所需分页方法
// searchCondition:[{
// key: 'itemCode',
// value: 'itemCode',
// isMainValue: true
// }]
} }
}, },
{ {
label: '供应商代码', label: '批次',
field: 'supplierItemCode', field: 'batch',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm:{
isInpuFocusShow: true,
searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
searchField: 'supplierCode', // 查询弹窗赋值字段
searchTitle: '供应商信息', // 查询弹窗标题
searchAllSchemas: Supplieritem.allSchemas, // 查询弹窗所需类
searchPage: SupplieritemApi.getSupplieritemPage, // 查询弹窗所需分页方法
searchCondition:[{
key: 'itemCode',
value: 'itemCode',
message: '请填写物料代码!',
isMainValue: true
}]
}
}, },
{ {
label: '物料代码', label: '数量',
field: 'itemCode', field: 'qty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -1765,38 +1745,132 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive<CrudSchema[]>(
} }
}, },
{ {
label: '物料名称', label: '计量单位',
field: 'itemName', field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTableForm: false, tableForm: {
isForm: false, disabled: true
},
form: {
componentProps: {
disabled: true
}
}
}, },
{ {
label: '物料描述1', label: '包装规格',
field: 'itemDesc1', field: 'packUnit',
sort: 'custom',
table: {
width: 150,
componentProps: {
disabled: true,
isSearchList: true,
searchListPlaceholder: '请选择包装',
searchField: 'packUnit',
searchTitle: '物品包装信息',
searchAllSchemas: Itempackaging.allSchemas,
searchPage: ItemPackageApi.getItemPackagingPageByItemCode,
searchCondition: [
{
key: 'itemCode',
value: 'itemCode',
message: '请选择订单行',
isMainValue: true
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
]
}
},
tableForm: {
disabled: true,
isInpuFocusShow: true,
searchListPlaceholder: '请选择包装',
searchField: 'packUnit',
searchTitle: '物品包装信息',
searchAllSchemas: Itempackaging.allSchemas,
searchPage: ItemPackageApi.getItemPackagingPageByItemCode,
searchCondition: [
{
key: 'itemCode',
value: 'itemCode',
message: '请选择订单行',
isMainValue: true
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
},
},
{
label: '包装数量',
field: 'packQty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTableForm: false, form: {
isForm: false, componentProps: {
disabled: true
}
},
tableForm: {
disabled: true,
}
}, },
{ {
label: '物料描述2', label: '标签生产线代码',
field: 'itemDesc2', field: 'productionLineCodePackage',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTable: false,
tableForm: {
disabled: true,
},
},
{
label: '供应商代码',
field: 'supplierItemCode',
sort: 'custom',
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
table: {
width: 150
},
tableForm: {
isInpuFocusShow: true,
searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
searchField: 'supplierCode', // 查询弹窗赋值字段
searchTitle: '供应商信息', // 查询弹窗标题
searchAllSchemas: Supplieritem.allSchemas, // 查询弹窗所需类
searchPage: SupplieritemApi.getSupplieritemPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'itemCode',
value: 'itemCode',
message: '请填写物料代码!',
isMainValue: true
}]
}
}, },
{ {
label: '项目代码', label: '物料名称',
field: 'projectCode', field: 'itemName',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -1805,56 +1879,36 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive<CrudSchema[]>(
isForm: false, isForm: false,
}, },
{ {
label: '批次', label: '物料描述1',
field: 'batch', field: 'itemDesc1',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm: { isTableForm: false,
disabled: true, isForm: false,
},
form: {
componentProps: {
disabled: true
}
}
}, },
{ {
label: '数量', label: '物料描述2',
field: 'qty', field: 'itemDesc2',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm: { isTableForm: false,
disabled: true isForm: false,
},
form: {
componentProps: {
disabled: true
}
}
}, },
{ {
label: '计量单位', label: '项目代码',
field: 'uom', field: 'projectCode',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm: { isTableForm: false,
disabled: true isForm: false,
},
form: {
componentProps: {
disabled: true
}
}
}, },
{ {
label: '库存状态', label: '库存状态',
field: 'inventoryStatus', field: 'inventoryStatus',
@ -1862,6 +1916,8 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive<CrudSchema[]>(
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
isTableForm: false,
isForm: false,
table: { table: {
width: 150 width: 150
}, },
@ -1879,22 +1935,8 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive<CrudSchema[]>(
label: '来源生产线代码', label: '来源生产线代码',
field: 'productionLineCode', field: 'productionLineCode',
sort: 'custom', sort: 'custom',
table: { isTableForm: false,
width: 150 isForm: false,
},
tableForm: {
disabled: true
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '来源生产线代码',
field: 'productionLineCode',
sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
@ -1911,6 +1953,8 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive<CrudSchema[]>(
label: '来源工位代码', label: '来源工位代码',
field: 'workStationCode', field: 'workStationCode',
sort: 'custom', sort: 'custom',
isTableForm: false,
isForm: false,
table: { table: {
width: 150 width: 150
}, },
@ -1927,6 +1971,8 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive<CrudSchema[]>(
label: '来源库位代码', label: '来源库位代码',
field: 'fromLocationCode', field: 'fromLocationCode',
sort: 'custom', sort: 'custom',
isTableForm: false,
isForm: false,
table: { table: {
width: 150 width: 150
}, },
@ -1953,78 +1999,13 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive<CrudSchema[]>(
} }
} }
}, },
{
label: '包装规格1',
field: 'packUnit',
sort: 'custom',
table: {
width: 150,
componentProps: {
disabled: true,
isSearchList: true,
searchListPlaceholder: '请选择包装',
searchField: 'packUnit',
searchTitle: '物品包装信息',
searchAllSchemas: Itempackaging.allSchemas,
searchPage: ItemPackageApi.getItempackagingPageByProductreceipt,
searchCondition: [
{
key: 'itemCode',
value: 'itemCode',
message: '请选择订单行',
isMainValue: true
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
]
}
},
tableForm: {
disabled: true,
isInpuFocusShow: true,
searchListPlaceholder: '请选择包装',
searchField: 'packUnit',
searchTitle: '物品包装信息',
searchAllSchemas: Itempackaging.allSchemas,
searchPage: ItemPackageApi.getItempackagingPageByProductreceipt,
searchCondition: [
{
key: 'itemCode',
value: 'itemCode',
message: '请选择订单行',
isMainValue: true
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
},
{
label: '包装数量1',
field: 'packQty',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
},
tableForm: {
disabled: true,
}
},
{ {
label: '包装规格2', label: '包装规格2',
field: 'secondPackUnit', field: 'secondPackUnit',
sort: 'custom', sort: 'custom',
isTableForm: false,
isForm: false,
table: { table: {
width: 150, width: 150,
componentProps: { componentProps: {
@ -2052,6 +2033,7 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive<CrudSchema[]>(
} }
}, },
tableForm: { tableForm: {
enterSearch: true,
disabled: true, disabled: true,
isInpuFocusShow: true, isInpuFocusShow: true,
searchListPlaceholder: '请选择包装', searchListPlaceholder: '请选择包装',
@ -2077,12 +2059,14 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive<CrudSchema[]>(
label: '包装数量2', label: '包装数量2',
field: 'secondPackQty', field: 'secondPackQty',
sort: 'custom', sort: 'custom',
isTableForm: false,
isForm: false,
table: { table: {
width: 150 width: 150
}, },
form: { form: {
componentProps: { componentProps: {
disabled:true disabled: true
} }
}, },
tableForm: { tableForm: {

Loading…
Cancel
Save