change
This commit is contained in:
@@ -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 = []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user