|
|
@@ -195,7 +195,7 @@
|
|
|
<!-- 左边 -->
|
|
|
<view class="decoctControlTopLeft">
|
|
|
<text>温度设置</text>
|
|
|
- <u-input placeholder="请输入"></u-input>
|
|
|
+ <u-input placeholder="请输入" v-model="temperature"></u-input>
|
|
|
<view class="addTemperature">
|
|
|
<u-button class="addTemperatureBtn" @click="addTemperature"></u-button>
|
|
|
<!-- <uni-icons custom-prefix="iconfont" type="icon-zengjia-huoyue" size="30"></uni-icons>-->
|
|
|
@@ -211,13 +211,13 @@
|
|
|
<!-- 右边 -->
|
|
|
<view class="decoctControlTopRight">
|
|
|
<text>时间设置</text>
|
|
|
- <u-input placeholder="请输入"></u-input>
|
|
|
+ <u-input placeholder="请输入" v-model="temperatureTime"></u-input>
|
|
|
<view class="addTime">
|
|
|
- <u-button class="addTimeBtn"></u-button>
|
|
|
+ <u-button class="addTimeBtn" @click="addTemperatureTime"></u-button>
|
|
|
</view>
|
|
|
|
|
|
<view class="subTime">
|
|
|
- <u-button class="subTimeBtn"></u-button>
|
|
|
+ <u-button class="subTimeBtn" @click="subTemperatureTime"></u-button>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
@@ -228,7 +228,7 @@
|
|
|
<!-- 左边 -->
|
|
|
<view class="decoctControlTopLeft">
|
|
|
<text>当前温度</text>
|
|
|
- <u-input placeholder="请输入"></u-input>
|
|
|
+ <u-input placeholder="请输入" v-model="currentTemperature"></u-input>
|
|
|
<view class="addTemperature">
|
|
|
<u-button class="addTemperatureBtn"></u-button>
|
|
|
</view>
|
|
|
@@ -241,7 +241,7 @@
|
|
|
<!-- 右边 -->
|
|
|
<view class="decoctControlTopRight">
|
|
|
<text>高温时间</text>
|
|
|
- <u-input placeholder="请输入"></u-input>
|
|
|
+ <u-input placeholder="请输入" v-model="hightTemperature"></u-input>
|
|
|
<view class="addTemperature">
|
|
|
<u-button class="addTemperatureBtn"></u-button>
|
|
|
</view>
|
|
|
@@ -331,13 +331,13 @@
|
|
|
<!-- 左边 -->
|
|
|
<view class="decoctControlTopLeft">
|
|
|
<text>封边温度</text>
|
|
|
- <u-input placeholder="请输入"></u-input>
|
|
|
+ <u-input placeholder="请输入" v-model="edegTemperature"></u-input>
|
|
|
<view class="addTemperature">
|
|
|
- <u-button class="addTemperatureBtn"></u-button>
|
|
|
+ <u-button class="addTemperatureBtn" @click="addEdegTemperature"></u-button>
|
|
|
</view>
|
|
|
|
|
|
<view class="subTime">
|
|
|
- <u-button class="subTimeBtn"></u-button>
|
|
|
+ <u-button class="subTimeBtn" @click="subEdegTemperature"></u-button>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
@@ -345,13 +345,13 @@
|
|
|
<!-- 右边 -->
|
|
|
<view class="decoctControlTopRight">
|
|
|
<text>封口温度</text>
|
|
|
- <u-input placeholder="请输入"></u-input>
|
|
|
+ <u-input placeholder="请输入" v-model="sealingTemperature"></u-input>
|
|
|
<view class="addTemperature">
|
|
|
- <u-button class="addTemperatureBtn"></u-button>
|
|
|
+ <u-button class="addTemperatureBtn" @click="addSealingTemperature"></u-button>
|
|
|
</view>
|
|
|
|
|
|
<view class="subTime">
|
|
|
- <u-button class="subTimeBtn"></u-button>
|
|
|
+ <u-button class="subTimeBtn" @click="subSealingTemperature"></u-button>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
@@ -587,6 +587,12 @@ export default {
|
|
|
components: {UImage, UInput, UForm, UButton},
|
|
|
data(){
|
|
|
return {
|
|
|
+ sealingTemperature:0,
|
|
|
+ edegTemperature:0,
|
|
|
+ hightTemperature:0,
|
|
|
+ currentTemperature:0,
|
|
|
+ temperatureTime:0,
|
|
|
+ temperature:0,
|
|
|
decoctControlStatus:true,
|
|
|
decoctControlOnOffStatus:true,
|
|
|
packageControlOnOffStatus:true,
|
|
|
@@ -647,11 +653,37 @@ export default {
|
|
|
clearTimeout(this.checkTimer);
|
|
|
},
|
|
|
methods:{
|
|
|
+ addSealingTemperature(){
|
|
|
+ console.log("增加封口温度")
|
|
|
+ this.sealingTemperature++;
|
|
|
+ },
|
|
|
+ subSealingTemperature(){
|
|
|
+ console.log("减少封口温度")
|
|
|
+ this.sealingTemperature--;
|
|
|
+ },
|
|
|
+ addEdegTemperature(){
|
|
|
+ console.log("增加封边温度")
|
|
|
+ this.edegTemperature++;
|
|
|
+ },
|
|
|
+ subEdegTemperature(){
|
|
|
+ console.log("减少封边温度")
|
|
|
+ this.edegTemperature--;
|
|
|
+ },
|
|
|
+ addTemperatureTime(){
|
|
|
+ console.log("增加煎药时间")
|
|
|
+ this.temperatureTime++;
|
|
|
+ },
|
|
|
+ subTemperatureTime(){
|
|
|
+ console.log("减少煎药时间")
|
|
|
+ this.temperatureTime--;
|
|
|
+ },
|
|
|
addTemperature(){
|
|
|
console.log("增加煎药温度")
|
|
|
+ this.temperature++;
|
|
|
},
|
|
|
subTemperature(){
|
|
|
console.log("减少煎药温度")
|
|
|
+ this.temperature--;
|
|
|
},
|
|
|
decoctControlChange(){
|
|
|
if(this.decoctControlStatus){
|