|
@@ -21,7 +21,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="盒子名称">
|
|
|
- a{{boxOptions}}b
|
|
|
+<!-- a{{boxOptions}}b-->
|
|
|
<el-select v-model="operateConsumbleForm.box_id" placeholder="">
|
|
|
<el-option
|
|
|
v-for="(item, index) in boxOptions"
|
|
@@ -71,12 +71,14 @@
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="耗材归属">
|
|
|
+<!-- v-if="type=='edit' && operateConsumbleForm.consumption_algorithm_id==5" disabled=""-->
|
|
|
+ <el-form-item label="耗材归属" >
|
|
|
+ {{type=='edit'}}{{operateConsumbleForm.consumption_algorithm_id==5}}
|
|
|
<el-select
|
|
|
v-model="operateConsumbleForm.ascription"
|
|
|
placeholder="请选择"
|
|
|
>
|
|
|
- <el-option
|
|
|
+ <el-option :disabled="item.disabled"
|
|
|
v-for="item in ascriptionOption"
|
|
|
:label="item.label"
|
|
|
:value="item.value"
|
|
@@ -91,13 +93,14 @@
|
|
|
@visible-change="consumptionAlgorithmListFnc"
|
|
|
placeholder="请选择"
|
|
|
>
|
|
|
- <el-option
|
|
|
+ <el-option :disabled="item.disabled"
|
|
|
v-for="(item, index) in consumptionAlgorithmOption"
|
|
|
:label="item.consumption_algorithm"
|
|
|
:value="item.id"
|
|
|
:key="+new Date() + index"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
+
|
|
|
</template>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="使用率" v-if="type === 'edit'">
|
|
@@ -250,6 +253,11 @@ export default {
|
|
|
{
|
|
|
label: "盒子",
|
|
|
value: "盒子"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "新风设备",
|
|
|
+ value: "新风设备",
|
|
|
+ disabled: true
|
|
|
}
|
|
|
],
|
|
|
activeBoxDetailSelf: {}
|
|
@@ -351,6 +359,19 @@ export default {
|
|
|
});
|
|
|
if (res.code === 200) {
|
|
|
this.consumptionAlgorithmOption = res.result.data;
|
|
|
+ for(var _t = 0; _t <= this.consumptionAlgorithmOption.length; _t ++){
|
|
|
+ console.log("this.consumptionAlgorithmOption[_t] is",this.consumptionAlgorithmOption[_t])
|
|
|
+ if (this.consumptionAlgorithmOption[_t]!== undefined){
|
|
|
+ // console.log('this.consumptionAlgorithmOption[_t].id=',this.consumptionAlgorithmOption[_t].id)
|
|
|
+ if (this.consumptionAlgorithmOption[_t].id==5){
|
|
|
+ this.consumptionAlgorithmOption[_t].disabled = true
|
|
|
+ }else{
|
|
|
+ this.consumptionAlgorithmOption[_t].disabled = false
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ console.log('///////this.consumptionAlgorithmOption=',this.consumptionAlgorithmOption)
|
|
|
}
|
|
|
},
|
|
|
async consumptionTypeListFnc() {
|