|
@ -157,130 +157,6 @@ export const InspectionQ3Main = useCrudSchemas( |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
|
|
|
label: '物料代码', |
|
|
|
|
|
field: 'itemCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isForm: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '数量', |
|
|
|
|
|
field: 'qty', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isForm: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '计量单位', |
|
|
|
|
|
field: 'uom', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isForm: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '单价', |
|
|
|
|
|
field: 'price', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isForm: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '金额', |
|
|
|
|
|
field: 'amount', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'InputNumber', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
min: 0, |
|
|
|
|
|
precision: 2 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '成本中心代码', |
|
|
|
|
|
field: 'costCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
enterSearch: true, |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择成本中心', // 输入框占位文本
|
|
|
|
|
|
searchField: 'costcentreCode', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '成本中心信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: QadCostcentre.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: QadCostcentreApi.getQadCostcentrePage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
verificationParams: [ |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'costcentreCode', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
value: '', |
|
|
|
|
|
isMainValue: false, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isFormModel: true |
|
|
|
|
|
} |
|
|
|
|
|
] // 失去焦点校验参数
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
label: '缺陷编码', |
|
|
|
|
|
field: 'defectCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
dictType: DICT_TYPE.QMS_Q3_CODE, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'Select' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '缺陷位置', |
|
|
|
|
|
field: 'defectLocation', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isForm: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '缺陷类型', |
|
|
|
|
|
field: 'defectType', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'Select' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '问题原因', |
|
|
|
|
|
field: 'problemReason', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isForm: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '描述', |
|
|
label: '描述', |
|
|
field: 'desc', |
|
|
field: 'desc', |
|
@ -391,7 +267,7 @@ export const InspectionQ3Detail = useCrudSchemas( |
|
|
label: '物料号', |
|
|
label: '物料号', |
|
|
field: 'itemCode', |
|
|
field: 'itemCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isTable: false, |
|
|
isTable: true, |
|
|
isDetail: true, |
|
|
isDetail: true, |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
table: { |
|
|
table: { |
|
@ -460,7 +336,7 @@ export const InspectionQ3Detail = useCrudSchemas( |
|
|
field: 'qty', |
|
|
field: 'qty', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
isTable: false, |
|
|
isTable: true, |
|
|
|
|
|
|
|
|
tableForm: { |
|
|
tableForm: { |
|
|
type: 'InputNumber', |
|
|
type: 'InputNumber', |
|
@ -475,7 +351,7 @@ export const InspectionQ3Detail = useCrudSchemas( |
|
|
dictType: DICT_TYPE.UOM, |
|
|
dictType: DICT_TYPE.UOM, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
isTable: false, |
|
|
isTable: true, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
type: 'Select', |
|
|
type: 'Select', |
|
|
disabled: true |
|
|
disabled: true |
|
@ -490,7 +366,7 @@ export const InspectionQ3Detail = useCrudSchemas( |
|
|
label: '单价', |
|
|
label: '单价', |
|
|
field: 'price', |
|
|
field: 'price', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isTable: false, |
|
|
isTable: true, |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
disabled: true |
|
|
disabled: true |
|
@ -506,7 +382,7 @@ export const InspectionQ3Detail = useCrudSchemas( |
|
|
field: 'amount', |
|
|
field: 'amount', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
isTable: false, |
|
|
isTable: true, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
disabled: true |
|
|
disabled: true |
|
@ -522,7 +398,7 @@ export const InspectionQ3Detail = useCrudSchemas( |
|
|
field: 'costCode', |
|
|
field: 'costCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
isTable: false, |
|
|
isTable: true, |
|
|
isForm: true, |
|
|
isForm: true, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
isInpuFocusShow: true, |
|
|
isInpuFocusShow: true, |
|
@ -557,7 +433,7 @@ export const InspectionQ3Detail = useCrudSchemas( |
|
|
dictType: DICT_TYPE.QMS_Q3_CODE, |
|
|
dictType: DICT_TYPE.QMS_Q3_CODE, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
isTable: false, |
|
|
isTable: true, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
type: 'Select' |
|
|
type: 'Select' |
|
|
} |
|
|
} |
|
@ -568,7 +444,7 @@ export const InspectionQ3Detail = useCrudSchemas( |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
isTable: false, |
|
|
isTable: true, |
|
|
form: { |
|
|
form: { |
|
|
component: 'Select', |
|
|
component: 'Select', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -591,7 +467,7 @@ export const InspectionQ3Detail = useCrudSchemas( |
|
|
field: 'defectType', |
|
|
field: 'defectType', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
isTable: false, |
|
|
isTable: true, |
|
|
form: { |
|
|
form: { |
|
|
component: 'Select' |
|
|
component: 'Select' |
|
|
} |
|
|
} |
|
@ -602,7 +478,7 @@ export const InspectionQ3Detail = useCrudSchemas( |
|
|
hiddenInMain: true, |
|
|
hiddenInMain: true, |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
isTable: false, |
|
|
isTable: true, |
|
|
form: { |
|
|
form: { |
|
|
component: 'Select' |
|
|
component: 'Select' |
|
|
} |
|
|
} |
|
@ -625,8 +501,12 @@ export const InspectionQ3Detail = useCrudSchemas( |
|
|
//表单校验
|
|
|
//表单校验
|
|
|
export const InspectionQ3DetailRules = reactive({ |
|
|
export const InspectionQ3DetailRules = reactive({ |
|
|
itemCode: [{ required: true, message: '请选择物料代码', trigger: 'change' }], |
|
|
itemCode: [{ required: true, message: '请选择物料代码', trigger: 'change' }], |
|
|
packingNumber: [{ required: true, message: '请输入包装号', trigger: 'blur' }], |
|
|
qty: [{ required: true, message: '请输入数量', trigger: 'change' }], |
|
|
batch: [{ required: true, message: '请输入批次', trigger: 'blur' }], |
|
|
price: [{ required: true, message: '请选择单价', trigger: 'change' }], |
|
|
inventoryStatus: [{ required: true, message: '请选择库存状态', trigger: 'change' }], |
|
|
amount: [{ required: true, message: '请选择金额', trigger: 'change' }], |
|
|
toLocationCode: [{ required: true, message: '请输入到库位代码', trigger: 'blur' }] |
|
|
costCode: [{ required: true, message: '请选择成本中心编码', trigger: 'change' }], |
|
|
|
|
|
defectLocation: [{ required: true, message: '请选择缺陷位置', trigger: 'change' }], |
|
|
|
|
|
defectType: [{ required: true, message: '请选择缺陷类型', trigger: 'change' }], |
|
|
|
|
|
problemReason: [{ required: true, message: '请选择问题原因', trigger: 'change' }], |
|
|
|
|
|
defectCode: [{ required: true, message: '请选择缺陷编码', trigger: 'change' }] |
|
|
}) |
|
|
}) |
|
|