|
@@ -6,8 +6,8 @@
|
|
|
<div class="top">
|
|
|
<el-input placeholder="客户名称" class="input-demo" v-model="formCondition.customerName"></el-input>
|
|
|
<el-input placeholder="主体名称" class="input-demo" v-model="formCondition.company"></el-input>
|
|
|
- <el-input placeholder="最小金额" v-model="formCondition.moneyLower" @input="changeAmt" class="input-demo" ></el-input>
|
|
|
- <el-input placeholder="最大金额" v-model="formCondition.moneyUpper" @input="changeAmt" class="input-demo" ></el-input>
|
|
|
+ <el-input placeholder="最小金额" v-model="formCondition.moneyLower" @input="changeAmtLower" class="input-demo" ></el-input>
|
|
|
+ <el-input placeholder="最大金额" v-model="formCondition.moneyUpper" @input="changeAmtUpper" class="input-demo" ></el-input>
|
|
|
<el-button type="success" style="margin-left: 1%;" @click="firstLoadData">查询</el-button>
|
|
|
<el-button type="primary" style="margin-left: 1%;" @click="exportExcel">导出报表</el-button>
|
|
|
</div>
|
|
@@ -102,9 +102,13 @@ import XLSX from "xlsx";
|
|
|
this.pagesize = 8;
|
|
|
this.loadData();
|
|
|
},
|
|
|
- changeAmt(value){
|
|
|
+ changeAmtLower(value){
|
|
|
value=value.replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '');
|
|
|
- this.customerRecharge.rechargeMony = value;
|
|
|
+ this.formCondition.moneyLower = value;
|
|
|
+ },
|
|
|
+ changeAmtUpper(value){
|
|
|
+ value=value.replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '');
|
|
|
+ this.formCondition.moneyUpper = value;
|
|
|
},
|
|
|
// 列表展示
|
|
|
async loadData() {
|
|
@@ -113,8 +117,8 @@ import XLSX from "xlsx";
|
|
|
formData.append('size', this.pagesize);
|
|
|
formData.append('customerName', this.formCondition.customerName);
|
|
|
formData.append('company', this.formCondition.company);
|
|
|
- formData.append('moneyLower', this.formCondition.moneyLower||0);
|
|
|
- formData.append('moneyUpper', this.formCondition.moneyUpper||0);
|
|
|
+ formData.append('moneyLower', this.formCondition.moneyLower||-1);
|
|
|
+ formData.append('moneyUpper', this.formCondition.moneyUpper||-1);
|
|
|
const response = await this.$http.post(`customer/findCustomerMoney`, formData);
|
|
|
if (response.data.code === 0) {
|
|
|
this.customeRecMoneyListTable = response.data.data.records;
|