no message
This commit is contained in:
@@ -32,9 +32,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-4 button-default button-primary_s" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-9 button-primary button-primary_s" :class="{'button-info': !val1 || !val2 || !index}" :disabled="disabled" @tap="_handheldCageFrame('1')">空笼框送回确认</button>
|
||||
<button class="zd-col-9 button-primary button-primary_s" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_handheldCageFrame('2')">空料架送回确认</button>
|
||||
<button class="zd-col-8 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || !val2 || !index}" :disabled="disabled" @tap="_handheldCageFrame">送回确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -55,7 +54,7 @@
|
||||
title: '',
|
||||
val1: '',
|
||||
val2: '',
|
||||
options: [{ value: '1', text: '货架' }, { value: '2', text: '内部' }, { value: '3', text: '外协' }],
|
||||
options: [{ value: '1', text: '人工折弯区' }, { value: '2', text: '半自动折弯区' }, { value: '3', text: '内部加工区' }],
|
||||
index: '',
|
||||
disabled: false
|
||||
};
|
||||
@@ -67,22 +66,14 @@
|
||||
getScanlist (e) {
|
||||
this.val2 = e.join()
|
||||
},
|
||||
async _handheldCageFrame (type) {
|
||||
async _handheldCageFrame () {
|
||||
this.disabled = true
|
||||
if (type === '1' && (!this.val1 || !this.val2 || !this.index)) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
if (type === '2' && (!this.val1 || !this.val2)) {
|
||||
if (!this.val1 || !this.val2 || !this.index) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
if (type === '1') {
|
||||
let res = await handheldCageFrame(type, this.val1, this.val2, this.index)
|
||||
} else if (type === '2') {
|
||||
let res = await handheldCageFrame(type, this.val1, this.val2, '')
|
||||
}
|
||||
let res = await handheldCageFrame(this.index, this.val1, this.val2)
|
||||
this.clearUp()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
|
||||
Reference in New Issue
Block a user