Browse Source

Q3通知单修改字段

hella_online_20240816
parent
commit
41195e5f11
  1. 4
      src/views/qms/inspectionQ3/index.vue
  2. 156
      src/views/qms/inspectionQ3/inspectionQ3.data.ts

4
src/views/qms/inspectionQ3/index.vue

@ -340,10 +340,10 @@ const buttonTableClick = async (val, row) => {
openForm('update', row)
} else if (val == 'delete') {
//
handleDelete(row.id)
handleDelete(row.masterId)
} else if (val == 'finish') {
//
handleFinish(row.id)
handleFinish(row.masterId)
}
}

156
src/views/qms/inspectionQ3/inspectionQ3.data.ts

@ -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: '描述',
field: 'desc',
@ -391,7 +267,7 @@ export const InspectionQ3Detail = useCrudSchemas(
label: '物料号',
field: 'itemCode',
sort: 'custom',
isTable: false,
isTable: true,
isDetail: true,
isSearch: false,
table: {
@ -460,7 +336,7 @@ export const InspectionQ3Detail = useCrudSchemas(
field: 'qty',
sort: 'custom',
isSearch: false,
isTable: false,
isTable: true,
tableForm: {
type: 'InputNumber',
@ -475,7 +351,7 @@ export const InspectionQ3Detail = useCrudSchemas(
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isSearch: false,
isTable: false,
isTable: true,
tableForm: {
type: 'Select',
disabled: true
@ -490,7 +366,7 @@ export const InspectionQ3Detail = useCrudSchemas(
label: '单价',
field: 'price',
sort: 'custom',
isTable: false,
isTable: true,
isSearch: false,
tableForm: {
disabled: true
@ -506,7 +382,7 @@ export const InspectionQ3Detail = useCrudSchemas(
field: 'amount',
sort: 'custom',
isSearch: false,
isTable: false,
isTable: true,
isForm: false,
tableForm: {
disabled: true
@ -522,7 +398,7 @@ export const InspectionQ3Detail = useCrudSchemas(
field: 'costCode',
sort: 'custom',
isSearch: false,
isTable: false,
isTable: true,
isForm: true,
tableForm: {
isInpuFocusShow: true,
@ -557,7 +433,7 @@ export const InspectionQ3Detail = useCrudSchemas(
dictType: DICT_TYPE.QMS_Q3_CODE,
dictClass: 'string',
isSearch: true,
isTable: false,
isTable: true,
tableForm: {
type: 'Select'
}
@ -568,7 +444,7 @@ export const InspectionQ3Detail = useCrudSchemas(
sort: 'custom',
dictClass: 'string',
isSearch: false,
isTable: false,
isTable: true,
form: {
component: 'Select',
componentProps: {
@ -591,7 +467,7 @@ export const InspectionQ3Detail = useCrudSchemas(
field: 'defectType',
sort: 'custom',
isSearch: false,
isTable: false,
isTable: true,
form: {
component: 'Select'
}
@ -602,7 +478,7 @@ export const InspectionQ3Detail = useCrudSchemas(
hiddenInMain: true,
sort: 'custom',
isSearch: false,
isTable: false,
isTable: true,
form: {
component: 'Select'
}
@ -625,8 +501,12 @@ export const InspectionQ3Detail = useCrudSchemas(
//表单校验
export const InspectionQ3DetailRules = reactive({
itemCode: [{ required: true, message: '请选择物料代码', trigger: 'change' }],
packingNumber: [{ required: true, message: '请输入包装号', trigger: 'blur' }],
batch: [{ required: true, message: '请输入批次', trigger: 'blur' }],
inventoryStatus: [{ required: true, message: '请选择库存状态', trigger: 'change' }],
toLocationCode: [{ required: true, message: '请输入到库位代码', trigger: 'blur' }]
qty: [{ required: true, message: '请输入数量', trigger: 'change' }],
price: [{ required: true, message: '请选择单价', trigger: 'change' }],
amount: [{ required: true, message: '请选择金额', trigger: 'change' }],
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' }]
})

Loading…
Cancel
Save