扫码
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 class="filter_item">
|
||||
@@ -54,7 +54,7 @@
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled1" @tap="toSure">确认</button>
|
||||
<button class="submit-button" @tap="_virtualbillQuery">查询</button>
|
||||
<button class="submit-button" @tap="_virtualbillQuery(val1, val2)">查询</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -81,12 +81,15 @@
|
||||
};
|
||||
},
|
||||
created () {
|
||||
this._virtualbillQuery()
|
||||
this._virtualbillQuery(this.val1, this.val2)
|
||||
this._virtualbillType()
|
||||
},
|
||||
methods: {
|
||||
handleChange (e) {
|
||||
// console.log(e)
|
||||
handleChange1 (e) {
|
||||
this._virtualbillQuery(e, this.val2)
|
||||
},
|
||||
handleChange2 (e) {
|
||||
this._virtualbillQuery(this.val1, e)
|
||||
},
|
||||
/** 选择器 */
|
||||
selectChange(e) {
|
||||
@@ -98,8 +101,8 @@
|
||||
this.options = [...res.data]
|
||||
},
|
||||
/** 初始化查询 */
|
||||
async _virtualbillQuery () {
|
||||
let res = await virtualbillQuery(this.val1, this.val2, this.index)
|
||||
async _virtualbillQuery (val1, val2) {
|
||||
let res = await virtualbillQuery(val1, val2, this.index)
|
||||
this.dataList = [...res.data]
|
||||
},
|
||||
toSure () {
|
||||
|
||||
Reference in New Issue
Block a user