|
|
@ -729,50 +729,6 @@ export const RelegateRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
* @returns {Array} 物料变更申请子表创建标签 |
|
|
|
*/ |
|
|
|
export const RelegateRequestDetailLabel = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '生产线代码', |
|
|
|
field: 'productionLineCodePackage', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled: true |
|
|
|
// isInpuFocusShow: true,
|
|
|
|
// searchListPlaceholder: '请选择生产线代码', // 输入框占位文本
|
|
|
|
// searchField: 'productionLineCode', // 查询弹窗赋值字段
|
|
|
|
// searchTitle: '生产线物料关系信息', // 查询弹窗标题
|
|
|
|
// searchAllSchemas: Productionlineitem.allSchemas, // 查询弹窗所需类
|
|
|
|
// searchPage: ProductionlineitemApi.getProductionlineitemPage, // 查询弹窗所需分页方法
|
|
|
|
// searchCondition:[{
|
|
|
|
// key: 'itemCode',
|
|
|
|
// value: 'itemCode',
|
|
|
|
// isMainValue: true
|
|
|
|
// }]
|
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商代码', |
|
|
|
field: 'supplierItemCode', |
|
|
|
sort: 'custom', |
|
|
|
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: '物料代码', |
|
|
|
field: 'itemCode', |
|
|
@ -831,7 +787,7 @@ export const RelegateRequestDetailLabel = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '批次', |
|
|
|
field: 'batch', |
|
|
|
field: 'fromBatch', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
@ -861,45 +817,6 @@ export const RelegateRequestDetailLabel = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '计量单位', |
|
|
|
field: 'uom', |
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '库存状态', |
|
|
|
field: 'inventoryStatus', |
|
|
|
dictType: DICT_TYPE.INVENTORY_STATUS, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单据号', |
|
|
|
field: 'number', |
|
|
@ -987,10 +904,5 @@ export const RelegateRequestDetailLabel = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
|
|
|
|
//表单校验
|
|
|
|
export const RelegateRequestDetailLabelRules = reactive({ |
|
|
|
supplierItemCode: [ |
|
|
|
{ required: true, message: '请选择供应商', trigger: 'change' } |
|
|
|
], |
|
|
|
productionLineCodePackage: [ |
|
|
|
{ required: true, message: '请选择生产线', trigger: 'change' } |
|
|
|
] |
|
|
|
|
|
|
|
}) |