|
|
@ -434,7 +434,7 @@ import * as DynamicRuleApi from '@/api/qms/dynamicRule' //动态修改规则 |
|
|
|
import { DynamicRule } from '@/views/qms/basicDataManage/dynamicRule/dynamicRule.data' //动态修改规则 |
|
|
|
import * as SelectedSetApi from '@/api/qms/selectedSet' //选择集 |
|
|
|
import { SelectedSet } from '@/views/qms/basicDataManage/selectedSet/selectedSet.data' //选择集 |
|
|
|
import { validateInteger,validateTwoNum,validateMaxNumber5 } from '@/utils/validator' |
|
|
|
import { validateInteger,validateTwoNum,validateMaxNumber5,validateNumSix } from '@/utils/validator' |
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
|
|
|
|
|
const props = defineProps({ |
|
|
@ -501,6 +501,7 @@ const rules = ref({ |
|
|
|
description: [{ required: true, message: '请填写描述', trigger: 'blur' }], |
|
|
|
version: [ |
|
|
|
{ required: true, message: '请填写版本', trigger: 'blur' }, |
|
|
|
{ validator:validateNumSix, message: '版本号小数点前位数不得大于6', trigger: 'blur'}, |
|
|
|
{ validator:validateTwoNum, message: '小数点后最多2位', trigger: 'blur'} |
|
|
|
], |
|
|
|
inspectionCode: [{ required: true, message: '请选择检验方案模板', trigger: 'blur' }], |
|
|
@ -562,6 +563,7 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any |
|
|
|
formType.value = type |
|
|
|
if (row) { |
|
|
|
data.value = JSON.parse(JSON.stringify(row)) |
|
|
|
data.value.version = String(data.value.version) |
|
|
|
let list = await InspectionProcessPageApi.getListByTempleteCode(row.code) |
|
|
|
list.forEach((item, index) => { |
|
|
|
editableTabsValue.value = index + 1 |
|
|
|