贴标捆扎
This commit is contained in:
@@ -23,10 +23,16 @@
|
|||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="filter_item">
|
||||||
|
<view class="filter_label">重量</view>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<input type="number" class="filter_input" v-model="val3">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="submit-bar">
|
<view class="submit-bar">
|
||||||
<button class="submit-button" :class="{'btn-disabled': !val1 }" :disabled="disabled1" @tap="_mendCode">贴标</button>
|
<button class="submit-button" :class="{'btn-disabled': !val1 || !val3 }" :disabled="disabled1" @tap="_mendCode">贴标</button>
|
||||||
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled2" @tap="_stBale">捆扎</button>
|
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled2" @tap="_stBale">捆扎</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -45,6 +51,7 @@
|
|||||||
return {
|
return {
|
||||||
val1: '',
|
val1: '',
|
||||||
val2: '',
|
val2: '',
|
||||||
|
val3: '',
|
||||||
disabled1: false,
|
disabled1: false,
|
||||||
disabled2: false
|
disabled2: false
|
||||||
};
|
};
|
||||||
@@ -52,17 +59,18 @@
|
|||||||
methods: {
|
methods: {
|
||||||
async _mendCode () {
|
async _mendCode () {
|
||||||
this.disabled1 = true
|
this.disabled1 = true
|
||||||
if (!this.val1) {
|
if (!this.val1 || !this.val3) {
|
||||||
this.disabled1 = false
|
this.disabled1 = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await mendCode(this.val1)
|
let res = await mendCode(this.val1, this.val3)
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
this.val1 = ''
|
this.val1 = ''
|
||||||
|
this.val3 = ''
|
||||||
this.disabled1 = false
|
this.disabled1 = false
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled1 = false
|
this.disabled1 = false
|
||||||
|
|||||||
@@ -451,10 +451,11 @@ data: {
|
|||||||
* 贴标捆扎
|
* 贴标捆扎
|
||||||
*/
|
*/
|
||||||
// 1.1贴标
|
// 1.1贴标
|
||||||
export const mendCode = (no) => request({
|
export const mendCode = (no, weight) => request({
|
||||||
url:'api/pda/st/mendCode',
|
url:'api/pda/st/mendCode',
|
||||||
data: {
|
data: {
|
||||||
box_no: no
|
box_no: no,
|
||||||
|
weight: weight
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
//1.2捆扎
|
//1.2捆扎
|
||||||
|
|||||||
Reference in New Issue
Block a user