空木箱入库添加层数

This commit is contained in:
2024-05-10 14:07:13 +08:00
parent 9074563bcf
commit 1a12c9bfad
2 changed files with 16 additions and 3 deletions

View File

@@ -27,6 +27,12 @@
<search-box v-model="val3" /> <search-box v-model="val3" />
</view> </view>
</view> </view>
<view class="filter_item">
<view class="filter_label">层数</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
</view>
</view>
</view> </view>
</view> </view>
<view class="zd-row submitbar"> <view class="zd-row submitbar">
@@ -50,10 +56,15 @@
val1: '', val1: '',
val2: '', val2: '',
val3: '', val3: '',
options: [{value: '1', text: '1'}, {value: '2', text: '2'}, {value: '3', text: '3'}],
index: '',
disabled: false disabled: false
}; };
}, },
methods: { methods: {
selectChange (e) {
this.index = e
},
async _twoPdaBoxIn () { async _twoPdaBoxIn () {
this.disabled = true this.disabled = true
if (!this.val1 || !this.val2 || !this.val3) { if (!this.val1 || !this.val2 || !this.val3) {
@@ -61,7 +72,7 @@
return return
} }
try { try {
let res = await twoPdaBoxIn(this.val1, this.val2, this.val3) let res = await twoPdaBoxIn(this.val1, this.val2, this.val3, this.index)
uni.showToast({ uni.showToast({
title: res.message, title: res.message,
icon: 'none' icon: 'none'
@@ -75,6 +86,7 @@
this.val1 = '' this.val1 = ''
this.val2 = '' this.val2 = ''
this.val3 = '' this.val3 = ''
this.index = ''
} }
} }
} }

View File

@@ -20,12 +20,13 @@ export const twoPdaVehicleIn = (code, type, pcode) => request({
* 二期空木箱入库 * 二期空木箱入库
*/ */
// 1.1空木箱入库-【入库按钮】 // 1.1空木箱入库-【入库按钮】
export const twoPdaBoxIn = (code, no, pcode) => request({ export const twoPdaBoxIn = (code, no, pcode, layer) => request({
url:'api/twoPda/vehicle/boxIn', url:'api/twoPda/vehicle/boxIn',
data: { data: {
vehicle_code: code, vehicle_code: code,
box_no: no, box_no: no,
point_code: pcode point_code: pcode,
layer: layer
} }
}) })
/** /**