This commit is contained in:
2022-11-30 12:10:49 +08:00
parent 1d3240dc7e
commit fbaab6b342
3 changed files with 10 additions and 17 deletions

View File

@@ -10,6 +10,7 @@
<view class="filter_input_wraper">
<search-box
v-model="val1"
@handleChange="handleChange"
/>
</view>
</view>
@@ -53,7 +54,7 @@
</view>
<view class="submit-bar">
<button class="submit-button" :class="{'btn-disabled': !val1}" :disabled="disabled2" @tap="_customerPrint">打印</button>
<button class="submit-button" :class="{'btn-disabled': !val1}" :disabled="disabled1" @tap="_customerInfo">查询</button>
<button class="submit-button" :class="{'btn-disabled': !val1}" :disabled="disabled1" @tap="_customerInfo(val1)">查询</button>
</view>
</view>
</template>
@@ -76,8 +77,11 @@
};
},
methods: {
handleChange (e) {
this._customerInfo(e)
},
/** 查询 */
async _customerInfo () {
async _customerInfo (e) {
this.disabled1 = true
if (!this.val1) {
uni.showToast({
@@ -88,7 +92,7 @@
return
}
try {
let res = await customerInfo(this.val1)
let res = await customerInfo(e)
this.dataList = [...res.data]
this.disabled1 = false
} catch (e) {