bugfix zentao 2

This commit is contained in:
lb 2023-09-15 14:49:31 +08:00
parent 772a4b0633
commit 7d2bfaea18
4 changed files with 10 additions and 11 deletions

View File

@ -65,7 +65,7 @@ const switchBtn = {
}, },
methods: {}, methods: {},
render: function (h) { render: function (h) {
console.log("render....") console.log('render....');
return h( return h(
'el-switch', 'el-switch',
{ {
@ -187,6 +187,7 @@ export default {
label: '编码', label: '编码',
prop: 'code', prop: 'code',
url: '/base/equipment-group/getCode', url: '/base/equipment-group/getCode',
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
}, },
], ],
[ [
@ -194,7 +195,7 @@ export default {
input: true, input: true,
label: '标识', label: '标识',
prop: 'name', prop: 'name',
// rules: [{ required: true, message: '', trigger: 'blur' }], rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
// bind: { // bind: {
// disabled: true, // some condition, like detail mode... // disabled: true, // some condition, like detail mode...
// } // }

View File

@ -180,6 +180,7 @@ export default {
select: true, select: true,
label: '关联表名', label: '关联表名',
prop: 'plcId', prop: 'plcId',
labelKey: `plcTableName`,
url: '/base/equipment-plc/listAll', url: '/base/equipment-plc/listAll',
rules: [{ required: true, message: '不能为空', trigger: 'blur' }], rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
}, },

View File

@ -91,9 +91,9 @@ export default {
rules: [ rules: [
{ {
type: 'number', type: 'number',
message: '请输入', message: '请输入数',
trigger: 'blur', trigger: 'blur',
transform: (val) => Number(val), transform: (val) => Number.isInteger(Number(val)) && Number(val),
}, },
], ],
}, },
@ -120,7 +120,7 @@ export default {
textarea: true, textarea: true,
label: '检测内容', label: '检测内容',
prop: 'inspectionDetContent', prop: 'inspectionDetContent',
rules: [{ required: true, message: '不能为空', trigger: 'blur' }], // rules: [{ required: true, message: '', trigger: 'blur' }],
}, },
], ],
], ],
@ -173,17 +173,14 @@ export default {
filter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'), filter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'),
}, },
{ {
width: 128,
prop: 'productionName', prop: 'productionName',
label: '产线', label: '产线',
}, },
{ {
width: 128,
prop: 'sectionName', prop: 'sectionName',
label: '工段', label: '工段',
}, },
{ {
width: 128,
prop: 'inspectionDetContent', prop: 'inspectionDetContent',
label: '检测内容', label: '检测内容',
}, },
@ -217,7 +214,7 @@ export default {
searchBarKeys: ['inspectionDetContent'], searchBarKeys: ['inspectionDetContent'],
form: { form: {
id: null, id: null,
inspectionDetId: null, buttonId: null,
inspectionDetContent: null, inspectionDetContent: null,
productionId: null, productionId: null,
sectionId: null, sectionId: null,
@ -244,7 +241,7 @@ export default {
reset() { reset() {
this.form = { this.form = {
id: null, id: null,
inspectionDetId: null, buttonId: null,
inspectionDetContent: null, inspectionDetContent: null,
productionId: null, productionId: null,
sectionId: null, sectionId: null,

View File

@ -275,7 +275,7 @@ export default {
handleDelete(row) { handleDelete(row) {
const id = row.id; const id = row.id;
this.$modal this.$modal
.confirm('是否确认删除质量检测信息基础编号为"' + id + '"的数据项?') .confirm('是否确认删除检测信息"' + row.content + '?')
.then(function () { .then(function () {
return deleteQualityInspectionDet(id); return deleteQualityInspectionDet(id);
}) })