This commit is contained in:
2022-10-13 16:56:47 +08:00
parent 57640d8a5b
commit 06995ac3d7
8 changed files with 45 additions and 47 deletions

View File

@@ -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]
},
/** 确认 */