|
|
@ -162,7 +162,7 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="是否可用" prop="available"> |
|
|
|
<el-switch v-model="data.available" active-value="TRUE" inactive-value='FALSE'/> |
|
|
|
<el-switch v-model="data.available" active-value="TRUE" inactive-value="FALSE" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
@ -257,9 +257,15 @@ |
|
|
|
'inspectionMethodCode', |
|
|
|
null, |
|
|
|
'检验方法', |
|
|
|
SamplingProcess.allSchemas, |
|
|
|
SamplingProcessApi.getSamplingProcessPage, |
|
|
|
null, |
|
|
|
InspectionMethod.allSchemas, |
|
|
|
InspectionMethodApi.getInspectionMethodPage, |
|
|
|
[ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
], |
|
|
|
false, |
|
|
|
null, |
|
|
|
item |
|
|
@ -292,7 +298,13 @@ |
|
|
|
'采样过程编码', |
|
|
|
SamplingProcess.allSchemas, |
|
|
|
SamplingProcessApi.getSamplingProcessPage, |
|
|
|
null, |
|
|
|
[ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
], |
|
|
|
false, |
|
|
|
null, |
|
|
|
item |
|
|
@ -323,9 +335,15 @@ |
|
|
|
'inspectionMethod', |
|
|
|
null, |
|
|
|
'动态修改规则编码', |
|
|
|
SamplingProcess.allSchemas, |
|
|
|
SamplingProcessApi.getSamplingProcessPage, |
|
|
|
null, |
|
|
|
DynamicRule.allSchemas, |
|
|
|
DynamicRuleApi.getDynamicRulePage, |
|
|
|
[ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
], |
|
|
|
false, |
|
|
|
null, |
|
|
|
item |
|
|
@ -341,7 +359,10 @@ |
|
|
|
label="是否允许修改特征值" |
|
|
|
prop="inspectionCharacteristicsBaseVO.isCanUpdate" |
|
|
|
> |
|
|
|
<el-switch v-model="item.inspectionCharacteristicsBaseVO.isCanUpdate" disabled/> |
|
|
|
<el-switch |
|
|
|
v-model="item.inspectionCharacteristicsBaseVO.isCanUpdate" |
|
|
|
disabled |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
@ -390,8 +411,11 @@ |
|
|
|
label="是否设定上限" |
|
|
|
prop="inspectionCharacteristicsBaseVO.quantifyIsCapping" |
|
|
|
> |
|
|
|
<el-switch v-model="item.inspectionCharacteristicsBaseVO.quantifyIsCapping" @change="changeIsCapping" |
|
|
|
:disabled="!item.inspectionCharacteristicsBaseVO.isCanUpdate"/> |
|
|
|
<el-switch |
|
|
|
v-model="item.inspectionCharacteristicsBaseVO.quantifyIsCapping" |
|
|
|
@change="changeIsCapping" |
|
|
|
:disabled="!item.inspectionCharacteristicsBaseVO.isCanUpdate" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
@ -412,9 +436,11 @@ |
|
|
|
label="是否设定下限" |
|
|
|
v-if="item.inspectionCharacteristicsBaseVO.featureType == 0" |
|
|
|
> |
|
|
|
|
|
|
|
<el-switch v-model="item.inspectionCharacteristicsBaseVO.quantifyIsLowlimit" @change="changeLowlimit" |
|
|
|
:disabled="!item.inspectionCharacteristicsBaseVO.isCanUpdate"/> |
|
|
|
<el-switch |
|
|
|
v-model="item.inspectionCharacteristicsBaseVO.quantifyIsLowlimit" |
|
|
|
@change="changeLowlimit" |
|
|
|
:disabled="!item.inspectionCharacteristicsBaseVO.isCanUpdate" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
@ -435,8 +461,11 @@ |
|
|
|
label="是否设定目标值" |
|
|
|
v-if="item.inspectionCharacteristicsBaseVO.featureType == 0" |
|
|
|
> |
|
|
|
<el-switch v-model="item.inspectionCharacteristicsBaseVO.quantifyIsTarget" @change="changeIsTarget" |
|
|
|
:disabled="!item.inspectionCharacteristicsBaseVO.isCanUpdate"/> |
|
|
|
<el-switch |
|
|
|
v-model="item.inspectionCharacteristicsBaseVO.quantifyIsTarget" |
|
|
|
@change="changeIsTarget" |
|
|
|
:disabled="!item.inspectionCharacteristicsBaseVO.isCanUpdate" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
@ -497,9 +526,15 @@ |
|
|
|
'quantifyQuantifyCode', |
|
|
|
null, |
|
|
|
'选择集编码', |
|
|
|
SamplingProcess.allSchemas, |
|
|
|
SamplingProcessApi.getSamplingProcessPage, |
|
|
|
null, |
|
|
|
SelectedSet.allSchemas, |
|
|
|
SelectedSetApi.getSelectedSetPage, |
|
|
|
[ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
], |
|
|
|
false, |
|
|
|
null, |
|
|
|
item |
|
|
@ -520,7 +555,12 @@ |
|
|
|
<ButtonBase :Butttondata="Butttondata" @button-base-click="buttonBaseClick" /> |
|
|
|
</template> |
|
|
|
</Dialog> |
|
|
|
<Dialog title="修改名称" v-model="dialogVisibleName" width="500px" :close-on-click-modal="false"> |
|
|
|
<Dialog |
|
|
|
title="修改名称" |
|
|
|
v-model="dialogVisibleName" |
|
|
|
width="500px" |
|
|
|
:close-on-click-modal="false" |
|
|
|
> |
|
|
|
<div style="padding: 0px 20px"> |
|
|
|
<el-form ref="nameRef" :model="nameForm"> |
|
|
|
<el-form-item |
|
|
@ -546,11 +586,18 @@ import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|
|
|
import * as InspectionProcessPageApi from '@/api/qms/inspectionTemplate' |
|
|
|
import { SearchTable } from '@/components/SearchTable' |
|
|
|
import { SamplingProcess } from '@/views/qms/samplingProcess/samplingProcess.data' |
|
|
|
import * as SamplingProcessApi from '@/api/qms/samplingProcess' |
|
|
|
import { InspectionTemplateMain } from '@/views/qms/basicDataManage/inspectionTemplate/inspectionTemplate.data' |
|
|
|
import * as InspectionTemplateApi from '@/api/qms/inspectionTemplate' |
|
|
|
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' |
|
|
|
import * as ItemBasicApi from '@/api/wms/itembasic' |
|
|
|
import * as SamplingProcessApi from '@/api/qms/samplingProcess' //采样过程 |
|
|
|
import * as InspectionMethodApi from '@/api/qms/inspectionMethod' //检验方法 |
|
|
|
import { InspectionMethod } from '@/views/qms/inspectionMethod/inspectionMethod.data' //检验方法 |
|
|
|
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' //选择集 |
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
|
|
|
|
|
const props = defineProps({ |
|
|
@ -624,7 +671,9 @@ const rules = ref({ |
|
|
|
itemCode: [{ required: true, message: '请选择物料编码', trigger: 'blur' }], |
|
|
|
version: [{ required: true, message: '请填写版本', trigger: 'blur' }], |
|
|
|
testTypeCode: [{ required: true, message: '请选择检验类型编码', trigger: ['blur', 'change'] }], |
|
|
|
programmeTemplateCode: [{ required: true, message: '请选择检验模板编码', trigger:['blur', 'change'] }], |
|
|
|
programmeTemplateCode: [ |
|
|
|
{ required: true, message: '请选择检验模板编码', trigger: ['blur', 'change'] } |
|
|
|
], |
|
|
|
splitRule: [{ required: true, message: '请选择拆分规则', trigger: ['blur', 'change'] }], |
|
|
|
aql: [{ required: true, message: '请选择aql', trigger: ['blur', 'change'] }], |
|
|
|
inspectionLevel: [{ required: true, message: '请选择检验水平', trigger: ['blur', 'change'] }], |
|
|
@ -962,7 +1011,6 @@ const opensearchTable = ( |
|
|
|
// 弹层确定返回所选数据 |
|
|
|
// val : 弹层列表row 数据 |
|
|
|
const searchTableSuccess = async (formField, searchField, val, type, row) => { |
|
|
|
|
|
|
|
if (type == 'tableForm') { |
|
|
|
// 明细查询页赋值 |
|
|
|
row[formField] = val[0][searchField] |
|
|
|