扫码
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<span class="filter_label">木箱</span>
|
||||
</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box v-model="val1"
|
||||
<search-box v-model="val1" @handleChange="handleChange1"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
@@ -17,7 +17,7 @@
|
||||
<span class="filter_label">点位</span>
|
||||
</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box v-model="val2" />
|
||||
<search-box v-model="val2" @handleChange="handleChange2" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -52,7 +52,7 @@
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !dataList.length}" :disabled="disabled1" @tap="_stoutConfirm">出库确认</button>
|
||||
<button class="submit-button" @tap="_stivtQuery">查询</button>
|
||||
<button class="submit-button" @tap="_stivtQuery(val1, val2)">查询</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -79,12 +79,15 @@
|
||||
created () {
|
||||
},
|
||||
methods: {
|
||||
handleChange (e) {
|
||||
// console.log(e)
|
||||
handleChange1 (e) {
|
||||
this._stivtQuery(e, this.val2)
|
||||
},
|
||||
handleChange2 (e) {
|
||||
this._stivtQuery(this.val1, e)
|
||||
},
|
||||
/** 初始化查询 */
|
||||
async _stivtQuery () {
|
||||
let res = await stivtQuery(this.val1, this.val2)
|
||||
async _stivtQuery (val1, val2) {
|
||||
let res = await stivtQuery(val1, val2)
|
||||
this.dataList = [...res.data]
|
||||
},
|
||||
async _stoutConfirm () {
|
||||
@@ -94,7 +97,7 @@
|
||||
this.disabled1 = false
|
||||
this.pkId = ''
|
||||
this.pkObj = {}
|
||||
this._stivtQuery()
|
||||
this._stivtQuery(this.val1, this.val2)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
@@ -114,7 +117,7 @@
|
||||
this.disabled1 = false
|
||||
this.pkId = ''
|
||||
this.pkObj = {}
|
||||
this._stivtQuery()
|
||||
this._stivtQuery(this.val1, this.val2)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
|
||||
Reference in New Issue
Block a user