空木箱入库修改
This commit is contained in:
@@ -3,14 +3,6 @@
|
||||
<nav-bar title="空木箱入库"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="filter_item">
|
||||
<view class="filter_label_wraper">
|
||||
<span class="filter_label">载具号</span>
|
||||
</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box v-model="val1" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label_wraper">
|
||||
<span class="filter_label">木箱号</span>
|
||||
@@ -37,7 +29,7 @@
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
<button class="zd-col-6 btn-submit btn-default letter-30" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-15 btn-submit btn-success letter-30" :class="{'btn-info': !val1 || !val2 || !val3}" :disabled="disabled" @tap="_twoPdaBoxIn">入库</button>
|
||||
<button class="zd-col-15 btn-submit btn-success letter-30" :class="{'btn-info': !val2 || !val3}" :disabled="disabled" @tap="_twoPdaBoxIn">入库</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -55,7 +47,6 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
val1: '',
|
||||
val2: '',
|
||||
val3: '',
|
||||
options: [{value: '1', text: '1'}, {value: '2', text: '2'}, {value: '3', text: '3'}],
|
||||
@@ -72,12 +63,12 @@
|
||||
},
|
||||
async _twoPdaBoxIn () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val2 || !this.val3) {
|
||||
if (!this.val2 || !this.val3) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await twoPdaBoxIn(this.val1, this.val2, this.val3, this.index)
|
||||
let res = await twoPdaBoxIn(this.val2, this.val3, this.index)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
@@ -88,7 +79,6 @@
|
||||
}
|
||||
},
|
||||
clearUp () {
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
this.val3 = ''
|
||||
this.index = ''
|
||||
|
||||
@@ -20,10 +20,9 @@ export const twoPdaVehicleIn = (code, type, pcode) => request({
|
||||
* 二期空木箱入库
|
||||
*/
|
||||
// 1.1空木箱入库-【入库按钮】
|
||||
export const twoPdaBoxIn = (code, no, pcode, layer) => request({
|
||||
export const twoPdaBoxIn = (no, pcode, layer) => request({
|
||||
url:'api/twoPda/vehicle/boxIn',
|
||||
data: {
|
||||
vehicle_code: code,
|
||||
box_no: no,
|
||||
point_code: pcode,
|
||||
layer: layer
|
||||
|
||||
Reference in New Issue
Block a user