peixh 4 роки тому
батько
коміт
04c568499b
1 змінених файлів з 34 додано та 3 видалено
  1. 34 3
      front-vue/src/views/service/cost/userCostManage.vue

+ 34 - 3
front-vue/src/views/service/cost/userCostManage.vue

@@ -28,7 +28,7 @@
           v-show="showSearch"
           label-width="auto"
         >
-          <el-form-item label="融资编号" prop="zfrNumber" size="large">
+          <!-- <el-form-item label="融资编号" prop="zfrNumber" size="large">
             <el-input
               maxlength="30"
               v-model="queryParams.zfrNumber"
@@ -45,7 +45,28 @@
               clearable
               @keyup.enter.native="handleQuery"
             />
-          </el-form-item>
+          </el-form-item> -->
+          <el-form-item label="类型" prop="zciQuery" size="large">
+            <el-select v-model="queryParams.zciQuery" clearable>
+              <el-option
+              v-for="dict in queryOptions"
+              :key="dict.dictValue"
+              :label="dict.dictLabel"
+              :value="dict.dictValue"
+              v-if="dict.dictValue == '02' && companyType  != '02'"
+              />
+              <el-option
+              v-for="dict in queryOptions"
+              :key="dict.dictValue"
+              :label="dict.dictLabel"
+              :value="dict.dictValue"
+              v-if="dict.dictValue != '02'"
+              />
+            </el-select>
+        </el-form-item>
+        <el-form-item prop="zciValue" v-if="this.queryParams.zciQuery"  size="large">
+          <el-input v-model="queryParams.zciValue" placeholder="请输入关键字模糊查询" clearable maxlength="25"/>
+        </el-form-item>
           <el-form-item label="融资状态" prop="zfrStatus" size="large">
             <el-select v-model="queryParams.zfrStatus" placeholder="融资状态" clearable>
               <el-option
@@ -319,6 +340,8 @@ export default {
   },
   data() {
     return {
+      //企业类型
+      companyType: null,
       //费用列表
       costList: [],
       //创建时间范围
@@ -329,6 +352,8 @@ export default {
       zciInvoiceStatusOptions: [],
       //融资状态
       zfrStatusOptions: [],
+      //筛选条件
+      queryOptions: [],
       //操作员Id
       userId: "",
       // 遮罩层
@@ -357,7 +382,9 @@ export default {
         coreScyName: null,
         zciStatus: null,
         zfrStatus: null,
-        zciInvoiceStatus: null
+        zciInvoiceStatus: null,
+        zciQuery: null,
+        zciValue: null
       },
       //筛选按钮的数据列表,与table表头的数据一致 --显示隐藏列用
       tableList: [
@@ -464,6 +491,9 @@ export default {
     this.getDicts("	ser_zfr_status").then(response => {
       this.zfrStatusOptions = response.data;
     });
+    this.getDicts("	zc_zci_query").then(response => {
+      this.queryOptions = response.data;
+    });
     this.getUser();
     this.getList();
   },
@@ -753,6 +783,7 @@ export default {
     getUser() {
       getUser().then(response => {
         this.userId = response.data.userId;
+        this.companyType = response.data.scyType
       });
     }
   }