扫码
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user