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