修改生箔工序、烘烤工序
This commit is contained in:
@@ -31,6 +31,14 @@
|
||||
<input v-model="val2" type="text" class="filter_input">
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">收卷辊码</span>
|
||||
</view>
|
||||
<view class="zd-col-17">
|
||||
<input v-model="val3" type="number" class="filter_input">
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">呼叫收卷辊</span>
|
||||
@@ -44,7 +52,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 || !val2}" :disabled="disabled" @tap="_needEmptyAxisv2">生箔下料</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || !val3}" :disabled="disabled" @tap="_needEmptyAxisv2">生箔下料</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -63,6 +71,7 @@
|
||||
title: '',
|
||||
val1: '',
|
||||
val2: '',
|
||||
val3: '',
|
||||
isChecked: false,
|
||||
disabled: false
|
||||
};
|
||||
@@ -77,6 +86,7 @@
|
||||
clearUp () {
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
this.val3 = ''
|
||||
this.isChecked = false
|
||||
this.disabled = false
|
||||
},
|
||||
@@ -116,13 +126,13 @@
|
||||
},
|
||||
async _needEmptyAxisv2 () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val2) {
|
||||
if (!this.val1 || !this.val3) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let checked = this.isChecked ? '1' : '0'
|
||||
let res = await needEmptyAxisv2(this.val1, this.val2, checked)
|
||||
let res = await needEmptyAxisv2(this.val1, this.val2, checked, this.val3)
|
||||
this.clearUp()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
|
||||
Reference in New Issue
Block a user