条件
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
<view class="zd-col-5">
|
||||
<span class="filter_label">温度</span>
|
||||
</view>
|
||||
<view class="zd-col-19">
|
||||
<view class="zd-col-17">
|
||||
<input v-model="val3" type="number" class="filter_input">
|
||||
</view>
|
||||
<view class="zd-col-2 filter_label">度</view>
|
||||
@@ -93,7 +93,7 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-4 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-6 button-primary" :class="{'button-info': !val1 || !val5 || index1 === '' || !val3 || !val4}" :disabled="disabled" @tap="_doModifyRawInfos">修改信息</button>
|
||||
<button class="zd-col-6 button-primary" :class="{'button-info': !val1 || !val5 || index1 === '' || !val3 || !val4 || !val2}" :disabled="disabled" @tap="_doModifyRawInfos">修改信息</button>
|
||||
<button class="zd-col-6 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_bakingQuality('1')">质检合格</button>
|
||||
<button class="zd-col-6 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_bakingQuality('0')">再次烘烤</button>
|
||||
</view>
|
||||
@@ -181,7 +181,7 @@
|
||||
},
|
||||
async _doModifyRawInfos () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val5 || this.index1 === '' || !this.val3 || !this.val4) {
|
||||
if (!this.val1 || !this.val5 || this.index1 === '' || !this.val3 || !this.val4 || !this.val2) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-8 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || !val3}" :disabled="disabled" @tap="_needEmptyAxisv2">生箔下料</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || !val3 || !val2}" :disabled="disabled" @tap="_needEmptyAxisv2">生箔下料</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -148,7 +148,7 @@
|
||||
},
|
||||
async _needEmptyAxisv2 () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val3) {
|
||||
if (!this.val1 || !this.val3 || !this.val2) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user