This commit is contained in:
2026-01-09 10:19:19 +08:00
parent e05a972dbd
commit ddf1525626
7 changed files with 248 additions and 38 deletions

View File

@@ -11,6 +11,7 @@
<view class="zd-col-24 filter_select">
<search-box
v-model="val1"
@handleChange="handleChange"
/>
</view>
</view>
@@ -114,11 +115,17 @@
selectChange (e) {
this.index = e
},
handleChange (e) {
if (e) {
this._queryPointInDtl()
}
},
async _queryPointInDtl () {
try {
let res = await queryPointInDtl(this.val1)
if (res && res.data.length > 0) {
this.dataList = [...res.data]
this.num = this.dataList.reduce((sum, item) => sum + Number(item.qty), 0)
} else {
this.dataList = []
}