Browse Source

代码优化开发20211017

MSY 3 years ago
parent
commit
c72b8fb410

+ 2 - 2
src/views/customer/Customer.vue

@@ -785,7 +785,7 @@ import XLSX from "xlsx";
             this.customerRec.customerName = this.customer.customerName;
           },
           changeAmt(value){
-           value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '');
+           value=value.replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '');
            this.customerRecharge.rechargeMony = value;
          },
           getBase64(file) {
@@ -856,7 +856,7 @@ import XLSX from "xlsx";
          async customRecharge(){
              this.customerRecharge['customerName'] = this.customer['customerName'];
              const response = await this.$http.post(`customer/customRecharge`, this.customerRecharge);
-                  if(response.data.code === 0) {
+                  if(response.data.data == true) {
                     this.loadData();
                     this.accIsclose = false;
                     this.$message({

+ 1 - 1
src/views/customer/custRecTime.vue

@@ -5,7 +5,7 @@
           <el-col :span="24">
             <div class="top">
                <el-input  placeholder="客户名称" class="input-demo" v-model="formCondition.customerName"></el-input>
-               <el-date-picker v-model="formCondition.serviceEndTime" type="date" value-format="yyyy-MM-dd" placeholder="到期日"> </el-date-picker>
+               <el-date-picker v-model="formCondition.serviceEndTime" type="daterange" value-format="yyyy-MM-dd HH:mm:SS" range-separator="至" start-placeholder="服务结束时间始" end-placeholder="服务结束时间止"></el-date-picker>
                <el-button type="success" style="margin-left: 1%;" @click="loadData">查询</el-button>
                <el-button type="primary" style="margin-left: 1%;" @click="exportExcel">导出报表</el-button>
             </div>

+ 1 - 1
src/views/customer/customerRecharge.vue

@@ -29,7 +29,7 @@
           </el-table-column>
            <el-table-column
             prop="beforeMony"
-            label="充值账户余额"
+            label="充值账户余额"
             show-overflow-tooltip>
             <template slot-scope="scope">
                <span>{{scope.row.beforeMony| rounding}}</span>

+ 9 - 0
src/views/noCar/nocarRec.vue

@@ -74,6 +74,15 @@
             label="ETC卡号"
             show-overflow-tooltip>
           </el-table-column>
+           <el-table-column
+            prop="interType"
+            label="对接方式"
+            show-overflow-tooltip>
+             <template slot-scope="scope">
+              <span v-if="scope.row.interType == 0">接口</span>
+              <span v-else-if="scope.row.interType == 1">平台</span>
+            </template>
+          </el-table-column>
           <el-table-column
             prop="recStatus"
             label="备案状态"

+ 9 - 0
src/views/selfCar/selfcarRec.vue

@@ -89,6 +89,15 @@
             label="ETC卡号"
             show-overflow-tooltip>
           </el-table-column>
+            <el-table-column
+            prop="interType"
+            label="对接方式"
+            show-overflow-tooltip>
+             <template slot-scope="scope">
+              <span v-if="scope.row.interType == 0">接口</span>
+              <span v-else-if="scope.row.interType == 1">平台</span>
+            </template>
+          </el-table-column>
           <el-table-column
             prop="recStatus"
             label="备案状态"