查询
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="_emptyConfirm">入库确认</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2 || !index}" @tap="_queryMaterialInfo">查询</button>
|
||||
<button class="submit-button" @tap="_queryMaterialInfo">查询</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -88,6 +88,7 @@
|
||||
},
|
||||
created () {
|
||||
this._queryProductArea()
|
||||
this._queryMaterialInfo()
|
||||
},
|
||||
methods: {
|
||||
/** 选择器 */
|
||||
@@ -101,10 +102,11 @@
|
||||
},
|
||||
/** 初始化查询 */
|
||||
async _queryMaterialInfo () {
|
||||
if (!this.val1 || !this.val2 || !this.index) {
|
||||
return
|
||||
let area = ''
|
||||
if (this.index !== '') {
|
||||
area = this.options[this.index].value
|
||||
}
|
||||
let res = await queryMaterialInfo1(this.val1, this.val2, this.options[this.index].value)
|
||||
let res = await queryMaterialInfo1(this.val1, this.val2, area)
|
||||
this.dataList = [...res.rows]
|
||||
},
|
||||
/** 确认 */
|
||||
|
||||
Reference in New Issue
Block a user