|
@@ -282,7 +282,7 @@
|
|
|
placeholder="请选择是否有操作动作"
|
|
|
@change="(val)=>{ fillMaterial(val,scope.$index)}"
|
|
|
>
|
|
|
- <el-option label="无" value=""></el-option>
|
|
|
+ <el-option label="无" value="0"></el-option>
|
|
|
<el-option label="注热水" value="1"></el-option>
|
|
|
<el-option label="蒸汽加热" value="2"></el-option>
|
|
|
<el-option label="搅拌" value="3"></el-option>
|
|
@@ -301,8 +301,8 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-form-item :prop="'formula.'+scope.$index+'.formulaTime'" :rules="rules.formulaTime">
|
|
|
- <el-input-number v-model="scope.row.formulaTime"></el-input-number>
|
|
|
+ <el-form-item :prop="'formula.'+scope.$index+'.formulaTime'" :rules="rules.formulaTime" >
|
|
|
+ <el-input-number v-model="scope.row.formulaTime" :min=0 ></el-input-number>
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -315,8 +315,8 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-form-item :prop="'formula.'+scope.$index+'.formulaWeight'">
|
|
|
- <el-input v-model="scope.row.formulaWeight" type="number"></el-input>
|
|
|
+ <el-form-item :prop="'formula.'+scope.$index+'.formulaWeight' " :rules="rules.formulaWeight">
|
|
|
+ <el-input v-model="scope.row.formulaWeight" type="number" :min=0 ></el-input>
|
|
|
</el-form-item>
|
|
|
|
|
|
</template>
|
|
@@ -393,12 +393,19 @@ export default {
|
|
|
trigger: "blur"
|
|
|
},
|
|
|
|
|
|
- pcTime: {
|
|
|
+ formulaTime: {
|
|
|
required: true,
|
|
|
message: this.$t("rules.require"),
|
|
|
trigger: "blur"
|
|
|
},
|
|
|
|
|
|
+ formulaAct: {
|
|
|
+ required: true,
|
|
|
+ message: this.$t("rules.require"),
|
|
|
+ trigger: "blur"
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
formulaMtId: {
|
|
|
required: true,
|
|
|
message: this.$t("rules.require"),
|
|
@@ -574,13 +581,13 @@ export default {
|
|
|
console.log("setProCfg传参val=" + JSON.stringify(val))
|
|
|
|
|
|
|
|
|
- if (val['isProCfg'] == '1') {
|
|
|
+ //if (val['isProCfg'] == '1') {
|
|
|
console.log("getPfg(specId)即将传参" + val['id'])
|
|
|
this.getPfg(val['id']);
|
|
|
|
|
|
- }
|
|
|
+ // }
|
|
|
console.log("else ,未配置")
|
|
|
- this.productConfig.pcSpeId = val['id'];
|
|
|
+ // this.productConfig.pcSpeId = val['id'];
|
|
|
this.productConfig.pcSepcName = val['specName'];
|
|
|
|
|
|
},
|