更改需求
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Author: zhp
|
||||
* @Date: 2023-12-08 13:46:17
|
||||
* @LastEditTime: 2024-03-25 08:50:25
|
||||
* @LastEditTime: 2024-04-10 16:46:44
|
||||
* @LastEditors: zhp
|
||||
* @Description:
|
||||
-->
|
||||
@@ -73,13 +73,13 @@
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
<el-row :gutter="24" v-for="(item,index) in ingredientList" :key="item.id">
|
||||
<el-col :span="6">
|
||||
<el-col :span="4">
|
||||
<el-form-item label="成分">
|
||||
{{ item.name }}
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item :prop="'checkValueList.' + index + '.checkValue'" label="成分含量"
|
||||
<el-form-item :prop="'checkValueList.' + index + '.minCheckValue'" label="最小检测值"
|
||||
:rules="[{ required: true, message: '成分含量不能为空', trigger: 'blur' }]">
|
||||
<el-input oninput="value=value.replace(/[^\d]/g,'')" :disabled="isdetail"
|
||||
style="width: 90%;margin-right: 10px;" :max="item.maxValue" :min='item.minValue'
|
||||
@@ -93,11 +93,25 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item :prop="'checkValueList.' + index + '.maxCheckValue'" label="最大检测值"
|
||||
:rules="[{ required: true, message: '成分含量不能为空', trigger: 'blur' }]">
|
||||
<el-input oninput="value=value.replace(/[^\d]/g,'')" :disabled="isdetail"
|
||||
style="width: 90%;margin-right: 10px;" :max="item.maxValue" :min='item.minValue'
|
||||
v-model.number="dataForm.checkValueList[index].checkValue"
|
||||
@change="judgeValue(arguments[0],item.minValue,item.maxValue,index)"></el-input>
|
||||
<span v-if="dataForm.checkValueList[index].showIcon">
|
||||
<!-- <i class="el-icon-success"></i> -->
|
||||
<svg-icon v-if="dataForm.checkValueList[index].isStandard" icon-class="standards" />
|
||||
<svg-icon v-else icon-class="noStandards" />
|
||||
</span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item :prop="'checkValueList.' + index + '.minValue'" label="最小值">
|
||||
<el-input disabled style="width: 90%;margin-right: 10px;" v-model="item.minValue"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-col :span="4">
|
||||
<el-form-item :prop="'checkValueList.' + index + '.minValue'" label="最大值">
|
||||
<el-input disabled style="width: 90%;margin-right: 10px;" v-model="item.maxValue"></el-input>
|
||||
</el-form-item>
|
||||
@@ -304,7 +318,9 @@ export default {
|
||||
mainId: this.dataForm.id,
|
||||
id:ele.id,
|
||||
checkDetId: ele.checkDetId,
|
||||
checkValue: ele.checkValue
|
||||
minCheckValue: ele.minCheckValue,
|
||||
maxCheckValue: ele.maxCheckValue
|
||||
|
||||
}))
|
||||
})
|
||||
Promise.all(array).then(res => {
|
||||
@@ -344,7 +360,9 @@ export default {
|
||||
array.push(this.createDet({
|
||||
mainId: response.data,
|
||||
checkDetId: ele.checkDetId,
|
||||
checkValue: ele.checkValue
|
||||
minCheckValue: ele.minCheckValue,
|
||||
maxCheckValue: ele.maxCheckValue
|
||||
|
||||
}))
|
||||
})
|
||||
Promise.all(array).then(res => {
|
||||
@@ -382,7 +400,8 @@ export default {
|
||||
return {
|
||||
mainId: null,
|
||||
checkDetId: ele.id,
|
||||
checkValue: null,
|
||||
minCheckValue:null,
|
||||
maxCheckValue: null,
|
||||
isStandard: true,
|
||||
showIcon:false,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user