Kaynağa Gözat

信用额度区间查询

zhouhao 2 yıl önce
ebeveyn
işleme
4b10632036
1 değiştirilmiş dosya ile 33 ekleme ve 1 silme
  1. 33 1
      src/views/finance/credit_list.vue

+ 33 - 1
src/views/finance/credit_list.vue

@@ -18,6 +18,19 @@
                     </el-select>
                   </el-form-item>
                 </el-col>
+                <el-col :xs="24" :sm="12" :lg="8">
+                    <el-form-item label="额度区间" style="margin-bottom: 0">
+                      <div class="fanwei">
+                        <el-form-item prop="minFreeAmount">
+                          <el-input v-model="searchForm.minFreeAmount" placeholder="最小可用信用额度" />
+                        </el-form-item>
+                        <span>-</span>
+                        <el-form-item prop="maxFreeAmount">
+                          <el-input v-model="searchForm.maxFreeAmount" placeholder="最大可用信用额度" />
+                        </el-form-item>
+                      </div>
+                    </el-form-item>
+                  </el-col>
               </el-row>
             </el-form>
           </template>
@@ -76,6 +89,12 @@
                 {{ (scope.row.usedCreditAmount + scope.row.freeCreditAmount) | numToFixed }}
               </template>
             </el-table-column>
+            <el-table-column align="right" label="当前信用余额" prop="amount" min-width="160" show-overflow-tooltip>
+              <template slot-scope="scope">
+                {{ scope.row.freeCreditAmount | numToFixed }}
+              </template>
+            </el-table-column>
+            
             <el-table-column align="center" label="操作" min-width="160" show-overflow-tooltip>
               <template slot-scope="scope">
                 <el-button
@@ -163,7 +182,9 @@ export default {
       listTotal: 0, // 列表总数
       dataList: [], // 列表数据
       searchForm: {
-        customerId: ''
+        customerId: '',
+        minFreeAmount:'',
+        maxFreeAmount:''
       }, //搜索表单
       listLoading: false, // 列表加载loading
       showRecord: true,
@@ -253,6 +274,8 @@ export default {
     //清空
     clearFn() {
       this.$refs.searchForm.resetFields()
+      this.getCustomerData({ pageSize: -1, pageNum: 1 })
+
     },
     //搜索
     searchFn() {
@@ -317,4 +340,13 @@ export default {
   display: inline-block;
   margin-right: 10px;
 }
+.fanwei {
+  display: flex;
+
+  span {
+    margin: 0 20px;
+    line-height: 28px;
+  }
+}
+
 </style>