Commit be37c05c by LJM

时间优化

parent 1d00b9b6
Showing with 13 additions and 2 deletions
......@@ -6,7 +6,7 @@
<text class="iconfont icon-juxing6"></text>
<input placeholder="请扫描或输入二维码" class="uni-input" @input="handleInput($event)" placeholder-style="color:#6E767A;" />
</view>
<text class="tt" @click="getData()">查询</text>
<text class="tt" @click="toSearch()">查询</text>
</view>
<!-- 日期选择 -->
<view class="data-search row bothSide verCenter">
......@@ -102,7 +102,6 @@
};
},
onShow() {
this.getAskNum();
this.updateDate();
},
methods: {
......@@ -124,6 +123,7 @@
}
this.date_format = e.detail.value; //显示日期字段更新
this.getData();
this.getAskNum(); //更新问客数量
},
/**
* @param {Object} index
......@@ -169,6 +169,7 @@
this.searchParams.ask_customer_sw_confirm_time = '';
this.searchParams.store_execute_time = formattedDate;
}
this.getAskNum(); //更新问客数量
this.getData();
},
/**
......@@ -178,8 +179,18 @@
handleInput: debounce(function(event) {
var val = event.target.value;
this.searchParams.erp_order_sn = val; //赋值入仓号
this.getAskNum();
this.getData();
}, 800),
/**
* 点击查询按钮
*/
toSearch() {
if (this.searchParams.erp_order_sn) {
this.getAskNum();
this.getData();
}
},
getData() {
this.request(API.askCustomerProblemListV2, 'GET', this.searchParams, true).then(res => {
if (res.err_code === 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment