Explorar o código

Merge branch 'master' of http://git.cc-lotus.info/financial_platform/finance-cms

wq %!s(int64=5) %!d(string=hai) anos
pai
achega
6317eb846b

+ 350 - 331
src/layout/financingTUrgeHandle/seeList.vue

@@ -1,364 +1,383 @@
 <template>
-    <div id="seeList">
-        <el-row>
-            <el-col :span="24">
-                <el-col :span="24" class="search">
-                    <el-col :span="5">
-                        <span>筛选条件:</span>
-                        <el-select v-model="search.status" placeholder="请选择处理状态">
-                            <el-option label="已处理" value="2"></el-option>
-                            <el-option label="未处理" value="1"></el-option>
-                        </el-select>
-                    </el-col>
-                    <el-col :span="4">
-                        <span>输入条件:</span>
-                        <el-input v-model="search.company_name" :placeholder="placeholder" class="input"></el-input>
-                    </el-col>
-                    <!--<el-col :span="7">
+  <div id="seeList">
+    <el-row>
+      <el-col :span="24">
+        <el-col :span="24" class="search">
+          <el-col :span="5">
+            <span>筛选条件:</span>
+            <el-select v-model="search.status" placeholder="请选择处理状态">
+              <el-option label="已处理" value="2"></el-option>
+              <el-option label="未处理" value="1"></el-option>
+            </el-select>
+          </el-col>
+          <el-col :span="4">
+            <span>输入条件:</span>
+            <el-input v-model="search.company_name" :placeholder="placeholder" class="input"></el-input>
+          </el-col>
+          <!--<el-col :span="7">
                       <span>时间选择:</span>
                       <el-date-picker v-model="search.date" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"> </el-date-picker>
                     </el-col>-->
-                    <el-col :span="8">
-                        <el-button class="btnSearch" @click="toQuery">查询</el-button>
-                        <el-button class="btnSearch qing" @click="toClear">清空</el-button>
-                    </el-col>
-                </el-col>
-                <el-col :span="24">
-                    <el-table
-                            ref="tableData"
-                            :data="tableData"
-                            tooltip-effect="dark"
-                            :default-sort="{ prop: 'date', order: 'descending' }"
-                            style="width: 100%"
-                            @selection-change="handleSelectionChange"
-                    >
-                        <!--<el-table-column type="selection" align="center"> </el-table-column>-->
-                        <el-table-column type="index" label="序号" width="50" align="center"></el-table-column>
-                        <el-table-column property="company_name" label="企业名称" align="center"> </el-table-column>
-                        <el-table-column property="money" label="融资金额(万元)" align="center"> </el-table-column>
-                        <el-table-column property="person" label="联系人" align="center"> </el-table-column>
-                        <el-table-column property="product_name" label="产品名称" align="center"> </el-table-column>
-                        <el-table-column label="催办机构" align="center">
-                            <template slot-scope="scope">
-                                <span>{{ scope.row.company_type === '1' ?  '政府部门' : scope.row.company_type === '2' ? '金控集团' : ''}}</span>
-                            </template>
-                        </el-table-column>
-                        <el-table-column label="催办时间" align="center">
-                            <template slot-scope="scope">
-                                <span>{{ getDate(scope.row.time)}}</span>
-                            </template>
-                        </el-table-column>
+          <el-col :span="8">
+            <el-button class="btnSearch" @click="toQuery">查询</el-button>
+            <el-button class="btnSearch qing" @click="toClear">清空</el-button>
+          </el-col>
+        </el-col>
+        <el-col :span="24">
+          <el-table
+            ref="tableData"
+            :data="tableData"
+            tooltip-effect="dark"
+            :default-sort="{ prop: 'date', order: 'descending' }"
+            style="width: 100%"
+            @selection-change="handleSelectionChange"
+          >
+            <!--<el-table-column type="selection" align="center"> </el-table-column>-->
+            <el-table-column type="index" label="序号" width="50" align="center"></el-table-column>
+            <el-table-column property="company_name" label="企业名称" align="center"> </el-table-column>
+            <el-table-column property="money" label="融资金额(万元)" align="center"> </el-table-column>
+            <el-table-column property="person" label="联系人" align="center"> </el-table-column>
+            <el-table-column property="product_name" label="产品名称" align="center"> </el-table-column>
+            <el-table-column label="催办机构" align="center">
+              <template slot-scope="scope">
+                <span>{{ scope.row.company_type === '1' ? '政府部门' : scope.row.company_type === '2' ? '金控集团' : '' }}</span>
+              </template>
+            </el-table-column>
+            <el-table-column label="催办时间" align="center">
+              <template slot-scope="scope">
+                <span>{{ getDate(scope.row.time) }}</span>
+              </template>
+            </el-table-column>
 
-                        <el-table-column label="处理状态" align="center">
-                            <template slot-scope="scope">
-                                <span>{{ scope.row.status === '1' ? '未处理' : '已处理'}}</span>
-                            </template>
-                        </el-table-column>
+            <el-table-column label="处理状态" align="center">
+              <template slot-scope="scope">
+                <span>{{ scope.row.status === '1' ? '未处理' : '已处理' }}</span>
+              </template>
+            </el-table-column>
 
-                        <el-table-column label="处理时间" align="center">
-                            <template slot-scope="scope">
-                                <span>{{ getDate(scope.row.handle_time)}}</span>
-                            </template>
-                        </el-table-column>
+            <el-table-column label="处理时间" align="center">
+              <template slot-scope="scope">
+                <span>{{ getDate(scope.row.handle_time) }}</span>
+              </template>
+            </el-table-column>
 
-                        <el-table-column label="操作" align="center" width="300px">
-                            <template slot-scope="scope">
-                                <el-button size="mini" type="text" class="other" @click="handle(scope.row)">处理</el-button>
-                            </template>
-                        </el-table-column>
-                    </el-table>
-                    <el-row>
-                        <el-pagination
-                                @size-change="handleSizeChange"
-                                @current-change="handleCurrentChange"
-                                :current-page.sync="currentPage"
-                                :page-sizes="[10, 20, 30, 40]"
-                                :page-size.sync="limit"
-                                background
-                                layout="total, sizes, prev, pager, next, jumper"
-                                :total="total"
-                        >
-                        </el-pagination>
-                    </el-row>
-                </el-col>
-            </el-col>
-        </el-row>
-        <el-dialog
-                :visible.sync="dialogVisible"
-                width="30%"
-        >
-            <el-image :src="elImage" style="height:100%;width:100% "></el-image>
-        </el-dialog>
-        <el-dialog title="审核意见" :visible.sync="dialogFormVisible" width="30%" @open="openDialog">
-            <el-input v-model="input" autocomplete="off" placeholder="请输入审核意见"></el-input>
-            <div slot="footer" class="dialog-footer">
-                <el-button type="primary" @click="confirmClick">{{confirm}}</el-button>
-                <el-button @click="cancelClick">{{cancel}}</el-button>
-            </div>
-        </el-dialog>
-    </div>
+            <el-table-column label="操作" align="center" width="300px">
+              <template slot-scope="scope">
+                <el-button size="mini" type="text" class="other" @click="handle(scope.row)">处理</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+          <el-row>
+            <el-pagination
+              @size-change="handleSizeChange"
+              @current-change="handleCurrentChange"
+              :current-page.sync="currentPage"
+              :page-sizes="[10, 20, 30, 40]"
+              :page-size.sync="limit"
+              background
+              layout="total, sizes, prev, pager, next, jumper"
+              :total="total"
+            >
+            </el-pagination>
+          </el-row>
+        </el-col>
+      </el-col>
+    </el-row>
+    <el-dialog :visible.sync="dialogVisible" width="30%">
+      <el-image :src="elImage" style="height:100%;width:100% "></el-image>
+    </el-dialog>
+    <el-dialog title="审核意见" :visible.sync="dialogFormVisible" width="30%" @open="openDialog">
+      <el-input v-model="input" autocomplete="off" placeholder="请输入审核意见"></el-input>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="confirmClick">{{ confirm }}</el-button>
+        <el-button @click="cancelClick">{{ cancel }}</el-button>
+      </div>
+    </el-dialog>
+  </div>
 </template>
 
 <script>
-    export default {
-        name: 'seeList',
-        props: {
-            tableData: null,
-            total: null,
-        },
-        components: {},
-        data: () => ({
-            placeholder: '请输入企业名称',
-            search: {},
-            currentPage: 1,
-            limit: 10,
-            dialogVisible: false,
-            elImage: '',
-            tempId:'',
-            tempState:'',
-            dialogFormVisible: false,
-            input:'',
-            confirm:'确定',
-            cancel:'取消',
-        }),
-        created() {
-        },
-        computed: {
-        },
-        methods: {
-            handleSelectionChange(val) {
-                this.multipleSelection = val;
-            },
-            deleteRow(id) {
-                this.$set(this, `currentPage`, 1);
-                this.$emit('deleteRow', {id: id, skip: 0, limit: this.limit, ...this.search});
-            },
-            handleSizeChange(val) {
-                this.$set(this, `currentPage`, 1);
-                this.$emit('select', {skip: 0, limit: val, ...this.search});
-            },
-            handleCurrentChange(val) {
-                this.$emit('select', {skip: (val - 1) * this.limit, limit: this.limit, ...this.search});
-            },
-            toQuery() {
-                this.$set(this, `currentPage`, 1);
-                this.$emit('select', {skip: 0, limit: this.limit, ...this.search});
-            },
-            toClear() {
-                this.$set(this, `search`, {});
-                /*let keys = Object.keys(this.search);
+export default {
+  name: 'seeList',
+  props: {
+    tableData: null,
+    total: null,
+  },
+  components: {},
+  data: () => ({
+    placeholder: '请输入企业名称',
+    search: {},
+    currentPage: 1,
+    limit: 10,
+    dialogVisible: false,
+    elImage: '',
+    tempId: '',
+    tempState: '',
+    dialogFormVisible: false,
+    input: '',
+    confirm: '确定',
+    cancel: '取消',
+  }),
+  created() {},
+  computed: {},
+  methods: {
+    handleSelectionChange(val) {
+      this.multipleSelection = val;
+    },
+    deleteRow(id) {
+      this.$set(this, `currentPage`, 1);
+      this.$emit('deleteRow', { id: id, skip: 0, limit: this.limit, ...this.search });
+    },
+    handleSizeChange(val) {
+      this.$set(this, `currentPage`, 1);
+      this.$emit('select', { skip: 0, limit: val, ...this.search });
+    },
+    handleCurrentChange(val) {
+      this.$emit('select', { skip: (val - 1) * this.limit, limit: this.limit, ...this.search });
+    },
+    toQuery() {
+      this.$set(this, `currentPage`, 1);
+      this.$emit('select', { skip: 0, limit: this.limit, ...this.search });
+    },
+    toClear() {
+      this.$set(this, `search`, {});
+      /*let keys = Object.keys(this.search);
                 for (const key of keys) {
                     this.$set(this.search, `${key}`, '');
                 }*/
-            },
-            handle(row) {
-                if(row.status === '2'){
-                    this.$message.error('已处理');
-                    return ;
-                }
-                this.$emit('handle', {id:row.id,skip: (this.currentPage - 1) * this.limit, limit: this.limit, ...this.search});
-            },
-            showImage(image) {
-                if(image){
-                    this.$set(this, `elImage`, image);
-                    this.$set(this, `dialogVisible`, true);
-                }else{
-                    this.$set(this, `dialogVisible`, false);
-                }
-            },
-            getDate(val) {
-                if(val){
-                    return this.format(new Date(Number(val)),'yyyy年MM月dd');
-                }
-                return '';
-            },
-            format(date,formatStr){
-                formatStr=formatStr.replace(/yyyy|YYYY/,date.getFullYear());
-                formatStr=formatStr.replace(/MM/,(date.getMonth()+1)>9?(date.getMonth()+1).toString():'0' + (date.getMonth()+1));
-                formatStr=formatStr.replace(/dd|DD/,date.getDate()>9?date.getDate().toString():'0' + date.getDate());
-                return formatStr;
-            },
-            publish(row){
-                if(row.publish_state === '1'){
-                    this.$message.error('已发布');
-                    return ;
-                }
-                this.$emit('publish', {row:row,skip: (this.currentPage - 1) * this.limit, limit: this.limit, ...this.search});
-            },
-            openDialog(){
-                this.$set(this, `input`, '');
-            },
-            confirmClick(){
-                this.$set(this, `dialogFormVisible`, false);
-                switch(this.tempState)
-                {
-                    case '0':
-                        break;
-                    case '1':
-                        break;
-                    case '2':
-                        break;
-                    case '3':
-                        this.$emit('updateState', {id:this.tempId,state:this.tempState,result:this.input,skip: (this.currentPage - 1) * this.limit, limit: this.limit, ...this.search});
-                        break;
-                    case '-2':
-                        this.$emit('updateState', {id:this.tempId,state:'1',result:this.input,skip: (this.currentPage - 1) * this.limit, limit: this.limit, ...this.search});
-                        break;
-                    case '9':
-                        this.$emit('updateState', {id:this.tempId,state:this.tempState,result:this.input,skip: (this.currentPage - 1) * this.limit, limit: this.limit, ...this.search});
-                        break;
-                }
-            },
-            cancelClick(){
-                this.$set(this, `dialogFormVisible`, false);
-                switch(this.tempState)
-                {
-                    case '0':
-                        break;
-                    case '1':
-                        break;
-                    case '2':
-                        break;
-                    case '3':
-                        break;
-                    case '-2':
-                        this.$emit('updateState', {id:this.tempId,state:'2',result:this.input,skip: (this.currentPage - 1) * this.limit, limit: this.limit, ...this.search});
-                        break;
-                    case '9':
-                        break;
-                }
-            },
-            updateState(row,state){
-                this.$set(this, `tempId`, row.id);
-                this.$set(this, `tempState`, state);
-                switch(state)
-                {
-                    case '0':
-                        break;
-                    case '1':
-                        break;
-                    case '2':
-                        break;
-                    case '3':
-                        if(row.current_state === state){
-                            this.$message.error('已停用');
-                        }else{
-                            this.$set(this, `confirm`, '停用');
-                            this.$set(this, `cancel`, '取消');
-                            this.$set(this, `dialogFormVisible`, true);
-                        }
-                        break;
-                    case '-2':
-                        this.$set(this, `confirm`, '审核通过');
-                        this.$set(this, `cancel`, '审核拒绝');
-                        this.$set(this, `dialogFormVisible`, true);
-                        break;
-                    case '9':
-                        this.$set(this, `confirm`, '完成');
-                        this.$set(this, `cancel`, '取消');
-                        this.$set(this, `dialogFormVisible`, true);
-                        break;
-                }
-            },
-            getState(val) {
-                switch(val)
-                {
-                    case '0':
-                        return '未审核';
-                    case '1':
-                        return '审核通过';
-                    case '2':
-                        return '审核拒绝';
-                    case '9':
-                        return '完成';
-                    case '3':
-                        return '停用';
-                }
-            },
-        },
-    };
+    },
+    handle(row) {
+      if (row.status === '2') {
+        this.$message.error('已处理');
+        return;
+      }
+      this.$emit('handle', { id: row.id, skip: (this.currentPage - 1) * this.limit, limit: this.limit, ...this.search });
+    },
+    showImage(image) {
+      if (image) {
+        this.$set(this, `elImage`, image);
+        this.$set(this, `dialogVisible`, true);
+      } else {
+        this.$set(this, `dialogVisible`, false);
+      }
+    },
+    getDate(val) {
+      if (val) {
+        return this.format(new Date(Number(val)), 'yyyy年MM月dd');
+      }
+      return '';
+    },
+    format(date, formatStr) {
+      formatStr = formatStr.replace(/yyyy|YYYY/, date.getFullYear());
+      formatStr = formatStr.replace(/MM/, date.getMonth() + 1 > 9 ? (date.getMonth() + 1).toString() : '0' + (date.getMonth() + 1));
+      formatStr = formatStr.replace(/dd|DD/, date.getDate() > 9 ? date.getDate().toString() : '0' + date.getDate());
+      return formatStr;
+    },
+    publish(row) {
+      if (row.publish_state === '1') {
+        this.$message.error('已发布');
+        return;
+      }
+      this.$emit('publish', { row: row, skip: (this.currentPage - 1) * this.limit, limit: this.limit, ...this.search });
+    },
+    openDialog() {
+      this.$set(this, `input`, '');
+    },
+    confirmClick() {
+      this.$set(this, `dialogFormVisible`, false);
+      switch (this.tempState) {
+        case '0':
+          break;
+        case '1':
+          break;
+        case '2':
+          break;
+        case '3':
+          this.$emit('updateState', {
+            id: this.tempId,
+            state: this.tempState,
+            result: this.input,
+            skip: (this.currentPage - 1) * this.limit,
+            limit: this.limit,
+            ...this.search,
+          });
+          break;
+        case '-2':
+          this.$emit('updateState', {
+            id: this.tempId,
+            state: '1',
+            result: this.input,
+            skip: (this.currentPage - 1) * this.limit,
+            limit: this.limit,
+            ...this.search,
+          });
+          break;
+        case '9':
+          this.$emit('updateState', {
+            id: this.tempId,
+            state: this.tempState,
+            result: this.input,
+            skip: (this.currentPage - 1) * this.limit,
+            limit: this.limit,
+            ...this.search,
+          });
+          break;
+      }
+    },
+    cancelClick() {
+      this.$set(this, `dialogFormVisible`, false);
+      switch (this.tempState) {
+        case '0':
+          break;
+        case '1':
+          break;
+        case '2':
+          break;
+        case '3':
+          break;
+        case '-2':
+          this.$emit('updateState', {
+            id: this.tempId,
+            state: '2',
+            result: this.input,
+            skip: (this.currentPage - 1) * this.limit,
+            limit: this.limit,
+            ...this.search,
+          });
+          break;
+        case '9':
+          break;
+      }
+    },
+    updateState(row, state) {
+      this.$set(this, `tempId`, row.id);
+      this.$set(this, `tempState`, state);
+      switch (state) {
+        case '0':
+          break;
+        case '1':
+          break;
+        case '2':
+          break;
+        case '3':
+          if (row.current_state === state) {
+            this.$message.error('已停用');
+          } else {
+            this.$set(this, `confirm`, '停用');
+            this.$set(this, `cancel`, '取消');
+            this.$set(this, `dialogFormVisible`, true);
+          }
+          break;
+        case '-2':
+          this.$set(this, `confirm`, '审核通过');
+          this.$set(this, `cancel`, '审核拒绝');
+          this.$set(this, `dialogFormVisible`, true);
+          break;
+        case '9':
+          this.$set(this, `confirm`, '完成');
+          this.$set(this, `cancel`, '取消');
+          this.$set(this, `dialogFormVisible`, true);
+          break;
+      }
+    },
+    getState(val) {
+      switch (val) {
+        case '0':
+          return '未审核';
+        case '1':
+          return '审核通过';
+        case '2':
+          return '审核拒绝';
+        case '9':
+          return '完成';
+        case '3':
+          return '停用';
+      }
+    },
+  },
+};
 </script>
 
 <style lang="less" scoped>
-    /deep/ .el-checkbox__input.is-checked .el-checkbox__inner {
-        background-color: red;
-        border-color: red;
-    }
+/deep/ .el-checkbox__input.is-checked .el-checkbox__inner {
+  background-color: red;
+  border-color: red;
+}
 
-    /deep/ .el-checkbox__input.is-indeterminate .el-checkbox__inner {
-        background-color: red;
-        border-color: red;
-    }
+/deep/ .el-checkbox__input.is-indeterminate .el-checkbox__inner {
+  background-color: red;
+  border-color: red;
+}
 
-    /deep/ .el-table th {
-        background-color: #f5f6fa;
-        padding: 8px 0;
-    }
+/deep/ .el-table th {
+  background-color: #f5f6fa;
+  padding: 8px 0;
+}
 
-    /deep/ .el-table td {
-        padding: 11px 0;
-    }
+/deep/ .el-table td {
+  padding: 11px 0;
+}
 
-    .other {
-        color: #f36302;
-    }
+.other {
+  color: #f36302;
+}
 
-    .view {
-        color: #f36302;
-    }
+.view {
+  color: #f36302;
+}
 
-    .edit {
-        color: #2ccc02;
-    }
+.edit {
+  color: #2ccc02;
+}
 
-    .delete {
-        color: #e9021d;
-    }
+.delete {
+  color: #e9021d;
+}
 
-    /deep/ .el-pagination {
-        padding: 26px 20px;
-    }
+/deep/ .el-pagination {
+  padding: 26px 20px;
+}
 
-    /deep/ .el-pagination.is-background .el-pager li:not(.disabled).active {
-        background-color: red;
-    }
+/deep/ .el-pagination.is-background .el-pager li:not(.disabled).active {
+  background-color: red;
+}
 
-    .input {
-        width: 150px;
-    }
+.input {
+  width: 150px;
+}
 
-    /deep/ .el-input__inner {
-        height: 35px;
-        line-height: 35px;
-    }
+/deep/ .el-input__inner {
+  height: 35px;
+  line-height: 35px;
+}
 
-    .btnSearch {
-        width: 80px;
-        height: 34px;
-        background: rgba(233, 2, 29, 1);
-        border-radius: 4px;
-        padding: 0;
-        color: #fff;
-    }
+.btnSearch {
+  width: 80px;
+  height: 34px;
+  background: rgba(233, 2, 29, 1);
+  border-radius: 4px;
+  padding: 0;
+  color: #fff;
+}
 
-    .qing {
-        background: rgba(185, 185, 185, 1);
-    }
+.qing {
+  background: rgba(185, 185, 185, 1);
+}
 
-    .top {
-        height: 50px;
-        margin: 0 0 10px 0;
-    }
+.top {
+  height: 50px;
+  margin: 0 0 10px 0;
+}
 
-    .search {
-        background: #ffffff;
-        width: 97%;
-        height: 35px;
-        margin: 20px;
-        margin-left: 0px;
-    }
+.search {
+  background: #ffffff;
+  width: 97%;
+  height: 35px;
+  margin: 20px;
+  margin-left: 0px;
+}
 
-    .list {
-        padding: 0 20px;
-    }
+.list {
+  padding: 0 20px;
+}
 </style>

+ 58 - 0
src/layout/intelligentDocking/intelligentDockingFinishDetails.vue

@@ -0,0 +1,58 @@
+<template>
+  <div id="intelligentDockingFollowDetails">
+    <el-row>
+      <el-col :span="24">
+        <el-col :span="24">
+          <el-form ref="form" :model="form" label-width="160px">
+            <el-form-item label="企业名称:">
+              <span>{{ form.company.company_name }}</span>
+            </el-form-item>
+            <el-form-item label="联系人:">
+              <span>{{ form.person }}</span>
+            </el-form-item>
+            <el-form-item label="融资金额(万元):">
+              <span>{{ form.money }}</span>
+            </el-form-item>
+            <el-form-item label="授信金融(万元):">
+              <span>{{ form.follow.credit_money }}</span>
+            </el-form-item>
+            <el-form-item label="融资期限(个月):">
+              <span>{{ form.claims_min_term }}个月~{{ form.claims_max_term }}个月</span>
+            </el-form-item>
+            <el-form-item label="融资利率:">
+              <span>{{ form.mongey_min_rate }}%~{{ form.mongey_max_rate }}%</span>
+            </el-form-item>
+            <el-form-item label="担保方式:">
+              <span>{{ form.dictionary.name }}</span>
+            </el-form-item>
+            <el-form-item label="预计何时有融资需求:">
+              <span>{{ form.when.name }}</span>
+            </el-form-item>
+            <el-form-item label="补充信息:">
+              <span>{{ form.additional_information }}</span>
+            </el-form-item>
+            <el-form-item label="对接产品:">
+              <span>{{ form.finance_claims.name }}</span>
+            </el-form-item>
+          </el-form>
+        </el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'intelligentDockingFollowDetails',
+  props: {
+    form: null,
+  },
+  components: {},
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped></style>

+ 85 - 0
src/layout/intelligentDocking/intelligentDockingFinishList.vue

@@ -0,0 +1,85 @@
+<template>
+  <div id="intelligentDockingFinishList">
+    <el-row>
+      <el-col :span="24">
+        <el-table ref="debtTable" :data="debtTable" style="width: 100%" border>
+          <el-table-column type="index" label="序号" width="50" align="center"> </el-table-column>
+          <el-table-column property="intelligent.company_name" label="企业名称" align="center"> </el-table-column>
+          <el-table-column property="intelligent.money" label="融资金额(万元)" align="center"> </el-table-column>
+          <el-table-column label="利率范围" align="center">
+            <template slot-scope="scope">
+              <span style="margin-left: 10px">{{ scope.row.intelligent.mongey_min_rate }}%~{{ scope.row.intelligent.mongey_max_rate }}%</span>
+            </template>
+          </el-table-column>
+          <el-table-column label="当前状态" align="center">
+            <template slot-scope="scope">
+              <span style="margin-left: 10px">{{
+                scope.row.creditStatus == '0'
+                  ? '接单'
+                  : scope.row.creditStatus == '1'
+                  ? '已完成'
+                  : scope.row.creditStatus == '2'
+                  ? '已审批'
+                  : scope.row.creditStatus == '3'
+                  ? '已拒绝'
+                  : ' '
+              }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column fixed="right" label="操作" align="center">
+            <template slot-scope="scope">
+              <el-button
+                @click="$router.push({ path: '/intelligentDocking/intelligentDockingFinishDetail', query: { intelligentId: scope.row.intelligentId } })"
+                type="text"
+                icon="el-icon-view"
+                title="查看详情"
+              ></el-button>
+            </template>
+          </el-table-column>
+        </el-table>
+        <el-row class="page">
+          <el-pagination
+            @size-change="handleSizeChange"
+            @current-change="handleCurrentChange"
+            :current-page="currentPage"
+            :page-size="10"
+            layout="total, prev, pager, next, jumper"
+            :total="total"
+          >
+          </el-pagination>
+        </el-row>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'intelligentDockingFinishList',
+  props: {
+    debtTable: null,
+    total: null,
+  },
+  components: {},
+  data: () => ({
+    currentPage: 1,
+  }),
+  created() {},
+  computed: {},
+  methods: {
+    handleSizeChange(val) {
+      console.log(`每页 ${val} 条`);
+    },
+    handleCurrentChange(val) {
+      this.$emit('pagechange', { skip: val });
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.page {
+  text-align: center;
+  padding: 15px 0;
+}
+</style>

+ 23 - 8
src/layout/intelligentDocking/intelligentDockingFollowDetails.vue

@@ -45,7 +45,7 @@
     </el-row>
     <el-dialog title="审核" :visible.sync="shenheDialog" :show-close="false">
       <el-form :model="shenheForm">
-        <el-form-item label="备注">
+        <el-form-item label="备注" :label-width="formLabelWidth">
           <el-input v-model="shenheForm.senhemessage" type="textarea" :autosize="{ minRows: 2, maxRows: 4 }"></el-input>
         </el-form-item>
       </el-form>
@@ -54,10 +54,15 @@
         <el-button type="primary" @click="shenheBtn">确 定</el-button>
       </div>
     </el-dialog>
-    <el-dialog title="授信" :visible.sync="shouxinDialog" :show-close="false">
-      <el-form :model="shouxinForm">
-        <el-form-item label="备注">
-          <el-input v-model="shouxinForm.money" type="text" placeholder="请输入授信金额"></el-input>
+    <el-dialog title="授信" :visible.sync="shouxinDialog" :show-close="false" class="demo-ruleForm">
+      <el-form :model="shouxinForm" ref="shouxinForm">
+        <el-form-item
+          label="授信金额"
+          prop="money"
+          :label-width="formLabelWidth"
+          :rules="[{ required: true, message: '金额不能为空' }, , { type: 'number', message: '金额必须为数字值' }]"
+        >
+          <el-input v-model.number="shouxinForm.money" type="text" autocomplete="off" placeholder="请输入授信金额(万元)"></el-input>
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
@@ -73,39 +78,49 @@ export default {
   name: 'intelligentDockingFollowDetails',
   props: {
     form: null,
-    shenheDialog: null,
+    // shenheDialog: null,
     shenheForm: null,
-    shouxinDialog: null,
+    // shouxinDialog: null,
     shouxinForm: null,
   },
   components: {},
-  data: () => ({}),
+  data: () => ({
+    shenheDialog: false,
+    shouxinDialog: false,
+    formLabelWidth: '80px',
+  }),
   created() {},
   computed: {},
   methods: {
     // 打开审核
     shenheBtns() {
+      this.shenheDialog = true;
       this.$emit('shenheBtns');
     },
     // 取消审核
     shenheOut() {
+      this.shenheDialog = false;
       this.$emit('shenheOut');
     },
     // 提交审核
     shenheBtn() {
       this.$emit('shenheBtn', { data: this.shenheForm });
+      this.shenheDialog = false;
     },
     // 打开授信
     shouxinBtns() {
+      this.shouxinDialog = true;
       this.$emit('shouxinBtns');
     },
     // 取消授信
     shouxinOut() {
+      this.shouxinDialog = false;
       this.$emit('shouxinOut');
     },
     // 提交授信
     shouxinBtn() {
       this.$emit('shouxinBtn', { data: this.shouxinForm });
+      this.shouxinDialog = false;
     },
   },
 };

+ 1 - 2
src/layout/layout-part/menus.vue

@@ -58,7 +58,7 @@
           <el-menu-item index="/financeclaims/insitionIndex">金融机构提交至审核</el-menu-item>
         </el-menu-item-group>
       </el-submenu>
-        <el-menu-item index="/companyup/index"> <i class="el-icon-s-grid"></i>企业修改信息审核管理</el-menu-item>
+      <el-menu-item index="/companyup/index"> <i class="el-icon-s-grid"></i>企业修改信息审核管理</el-menu-item>
       <el-submenu index="5">
         <template v-slot:title>
           <i class="el-icon-s-grid"></i>
@@ -77,7 +77,6 @@
 
       <el-menu-item index="/tUrgeHandle/seeIndex"> <i class="el-icon-s-grid"></i>企业申请信息催办处理</el-menu-item>
       <el-menu-item index="/financingTUrgeHandle/seeIndex"> <i class="el-icon-s-grid"></i>我要融资催办处理</el-menu-item>
-
     </el-menu>
   </div>
 </template>

+ 350 - 331
src/layout/tUrgeHandle/seeList.vue

@@ -1,364 +1,383 @@
 <template>
-    <div id="seeList">
-        <el-row>
-            <el-col :span="24">
-                <el-col :span="24" class="search">
-                    <el-col :span="5">
-                        <span>筛选条件:</span>
-                        <el-select v-model="search.status" placeholder="请选择处理状态">
-                            <el-option label="已处理" value="2"></el-option>
-                            <el-option label="未处理" value="1"></el-option>
-                        </el-select>
-                    </el-col>
-                    <el-col :span="4">
-                        <span>输入条件:</span>
-                        <el-input v-model="search.company_name" :placeholder="placeholder" class="input"></el-input>
-                    </el-col>
-                    <!--<el-col :span="7">
+  <div id="seeList">
+    <el-row>
+      <el-col :span="24">
+        <el-col :span="24" class="search">
+          <el-col :span="5">
+            <span>筛选条件:</span>
+            <el-select v-model="search.status" placeholder="请选择处理状态">
+              <el-option label="已处理" value="2"></el-option>
+              <el-option label="未处理" value="1"></el-option>
+            </el-select>
+          </el-col>
+          <el-col :span="4">
+            <span>输入条件:</span>
+            <el-input v-model="search.company_name" :placeholder="placeholder" class="input"></el-input>
+          </el-col>
+          <!--<el-col :span="7">
                       <span>时间选择:</span>
                       <el-date-picker v-model="search.date" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"> </el-date-picker>
                     </el-col>-->
-                    <el-col :span="8">
-                        <el-button class="btnSearch" @click="toQuery">查询</el-button>
-                        <el-button class="btnSearch qing" @click="toClear">清空</el-button>
-                    </el-col>
-                </el-col>
-                <el-col :span="24">
-                    <el-table
-                            ref="tableData"
-                            :data="tableData"
-                            tooltip-effect="dark"
-                            :default-sort="{ prop: 'date', order: 'descending' }"
-                            style="width: 100%"
-                            @selection-change="handleSelectionChange"
-                    >
-                        <!--<el-table-column type="selection" align="center"> </el-table-column>-->
-                        <el-table-column type="index" label="序号" width="50" align="center"></el-table-column>
-                        <el-table-column property="company_name" label="企业名称" align="center"> </el-table-column>
-                        <el-table-column property="money" label="融资金额(万元)" align="center"> </el-table-column>
-                        <el-table-column property="use" label="融资用途" align="center"> </el-table-column>
-                        <el-table-column property="product_name" label="产品名称" align="center"> </el-table-column>
-                        <el-table-column label="催办机构" align="center">
-                            <template slot-scope="scope">
-                                <span>{{ scope.row.company_type === '1' ?  '政府部门' : scope.row.company_type === '2' ? '金控集团' : ''}}</span>
-                            </template>
-                        </el-table-column>
-                        <el-table-column label="催办时间" align="center">
-                            <template slot-scope="scope">
-                                <span>{{ getDate(scope.row.time)}}</span>
-                            </template>
-                        </el-table-column>
+          <el-col :span="8">
+            <el-button class="btnSearch" @click="toQuery">查询</el-button>
+            <el-button class="btnSearch qing" @click="toClear">清空</el-button>
+          </el-col>
+        </el-col>
+        <el-col :span="24">
+          <el-table
+            ref="tableData"
+            :data="tableData"
+            tooltip-effect="dark"
+            :default-sort="{ prop: 'date', order: 'descending' }"
+            style="width: 100%"
+            @selection-change="handleSelectionChange"
+          >
+            <!--<el-table-column type="selection" align="center"> </el-table-column>-->
+            <el-table-column type="index" label="序号" width="50" align="center"></el-table-column>
+            <el-table-column property="company_name" label="企业名称" align="center"> </el-table-column>
+            <el-table-column property="money" label="融资金额(万元)" align="center"> </el-table-column>
+            <el-table-column property="use" label="融资用途" align="center"> </el-table-column>
+            <el-table-column property="product_name" label="产品名称" align="center"> </el-table-column>
+            <el-table-column label="催办机构" align="center">
+              <template slot-scope="scope">
+                <span>{{ scope.row.company_type === '1' ? '政府部门' : scope.row.company_type === '2' ? '金控集团' : '' }}</span>
+              </template>
+            </el-table-column>
+            <el-table-column label="催办时间" align="center">
+              <template slot-scope="scope">
+                <span>{{ getDate(scope.row.time) }}</span>
+              </template>
+            </el-table-column>
 
-                        <el-table-column label="处理状态" align="center">
-                            <template slot-scope="scope">
-                                <span>{{ scope.row.status === '1' ? '未处理' : '已处理'}}</span>
-                            </template>
-                        </el-table-column>
+            <el-table-column label="处理状态" align="center">
+              <template slot-scope="scope">
+                <span>{{ scope.row.status === '1' ? '未处理' : '已处理' }}</span>
+              </template>
+            </el-table-column>
 
-                        <el-table-column label="处理时间" align="center">
-                            <template slot-scope="scope">
-                                <span>{{ getDate(scope.row.handle_time)}}</span>
-                            </template>
-                        </el-table-column>
+            <el-table-column label="处理时间" align="center">
+              <template slot-scope="scope">
+                <span>{{ getDate(scope.row.handle_time) }}</span>
+              </template>
+            </el-table-column>
 
-                        <el-table-column label="操作" align="center" width="300px">
-                            <template slot-scope="scope">
-                                <el-button size="mini" type="text" class="other" @click="handle(scope.row)">处理</el-button>
-                            </template>
-                        </el-table-column>
-                    </el-table>
-                    <el-row>
-                        <el-pagination
-                                @size-change="handleSizeChange"
-                                @current-change="handleCurrentChange"
-                                :current-page.sync="currentPage"
-                                :page-sizes="[10, 20, 30, 40]"
-                                :page-size.sync="limit"
-                                background
-                                layout="total, sizes, prev, pager, next, jumper"
-                                :total="total"
-                        >
-                        </el-pagination>
-                    </el-row>
-                </el-col>
-            </el-col>
-        </el-row>
-        <el-dialog
-                :visible.sync="dialogVisible"
-                width="30%"
-        >
-            <el-image :src="elImage" style="height:100%;width:100% "></el-image>
-        </el-dialog>
-        <el-dialog title="审核意见" :visible.sync="dialogFormVisible" width="30%" @open="openDialog">
-            <el-input v-model="input" autocomplete="off" placeholder="请输入审核意见"></el-input>
-            <div slot="footer" class="dialog-footer">
-                <el-button type="primary" @click="confirmClick">{{confirm}}</el-button>
-                <el-button @click="cancelClick">{{cancel}}</el-button>
-            </div>
-        </el-dialog>
-    </div>
+            <el-table-column label="操作" align="center" width="300px">
+              <template slot-scope="scope">
+                <el-button size="mini" type="text" class="other" @click="handle(scope.row)">处理</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+          <el-row>
+            <el-pagination
+              @size-change="handleSizeChange"
+              @current-change="handleCurrentChange"
+              :current-page.sync="currentPage"
+              :page-sizes="[10, 20, 30, 40]"
+              :page-size.sync="limit"
+              background
+              layout="total, sizes, prev, pager, next, jumper"
+              :total="total"
+            >
+            </el-pagination>
+          </el-row>
+        </el-col>
+      </el-col>
+    </el-row>
+    <el-dialog :visible.sync="dialogVisible" width="30%">
+      <el-image :src="elImage" style="height:100%;width:100% "></el-image>
+    </el-dialog>
+    <el-dialog title="审核意见" :visible.sync="dialogFormVisible" width="30%" @open="openDialog">
+      <el-input v-model="input" autocomplete="off" placeholder="请输入审核意见"></el-input>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="confirmClick">{{ confirm }}</el-button>
+        <el-button @click="cancelClick">{{ cancel }}</el-button>
+      </div>
+    </el-dialog>
+  </div>
 </template>
 
 <script>
-    export default {
-        name: 'seeList',
-        props: {
-            tableData: null,
-            total: null,
-        },
-        components: {},
-        data: () => ({
-            placeholder: '请输入企业名称',
-            search: {},
-            currentPage: 1,
-            limit: 10,
-            dialogVisible: false,
-            elImage: '',
-            tempId:'',
-            tempState:'',
-            dialogFormVisible: false,
-            input:'',
-            confirm:'确定',
-            cancel:'取消',
-        }),
-        created() {
-        },
-        computed: {
-        },
-        methods: {
-            handleSelectionChange(val) {
-                this.multipleSelection = val;
-            },
-            deleteRow(id) {
-                this.$set(this, `currentPage`, 1);
-                this.$emit('deleteRow', {id: id, skip: 0, limit: this.limit, ...this.search});
-            },
-            handleSizeChange(val) {
-                this.$set(this, `currentPage`, 1);
-                this.$emit('select', {skip: 0, limit: val, ...this.search});
-            },
-            handleCurrentChange(val) {
-                this.$emit('select', {skip: (val - 1) * this.limit, limit: this.limit, ...this.search});
-            },
-            toQuery() {
-                this.$set(this, `currentPage`, 1);
-                this.$emit('select', {skip: 0, limit: this.limit, ...this.search});
-            },
-            toClear() {
-                this.$set(this, `search`, {});
-                /*let keys = Object.keys(this.search);
+export default {
+  name: 'seeList',
+  props: {
+    tableData: null,
+    total: null,
+  },
+  components: {},
+  data: () => ({
+    placeholder: '请输入企业名称',
+    search: {},
+    currentPage: 1,
+    limit: 10,
+    dialogVisible: false,
+    elImage: '',
+    tempId: '',
+    tempState: '',
+    dialogFormVisible: false,
+    input: '',
+    confirm: '确定',
+    cancel: '取消',
+  }),
+  created() {},
+  computed: {},
+  methods: {
+    handleSelectionChange(val) {
+      this.multipleSelection = val;
+    },
+    deleteRow(id) {
+      this.$set(this, `currentPage`, 1);
+      this.$emit('deleteRow', { id: id, skip: 0, limit: this.limit, ...this.search });
+    },
+    handleSizeChange(val) {
+      this.$set(this, `currentPage`, 1);
+      this.$emit('select', { skip: 0, limit: val, ...this.search });
+    },
+    handleCurrentChange(val) {
+      this.$emit('select', { skip: (val - 1) * this.limit, limit: this.limit, ...this.search });
+    },
+    toQuery() {
+      this.$set(this, `currentPage`, 1);
+      this.$emit('select', { skip: 0, limit: this.limit, ...this.search });
+    },
+    toClear() {
+      this.$set(this, `search`, {});
+      /*let keys = Object.keys(this.search);
                 for (const key of keys) {
                     this.$set(this.search, `${key}`, '');
                 }*/
-            },
-            handle(row) {
-                if(row.status === '2'){
-                    this.$message.error('已处理');
-                    return ;
-                }
-                this.$emit('handle', {id:row.id,skip: (this.currentPage - 1) * this.limit, limit: this.limit, ...this.search});
-            },
-            showImage(image) {
-                if(image){
-                    this.$set(this, `elImage`, image);
-                    this.$set(this, `dialogVisible`, true);
-                }else{
-                    this.$set(this, `dialogVisible`, false);
-                }
-            },
-            getDate(val) {
-                if(val){
-                    return this.format(new Date(Number(val)),'yyyy年MM月dd');
-                }
-                return '';
-            },
-            format(date,formatStr){
-                formatStr=formatStr.replace(/yyyy|YYYY/,date.getFullYear());
-                formatStr=formatStr.replace(/MM/,(date.getMonth()+1)>9?(date.getMonth()+1).toString():'0' + (date.getMonth()+1));
-                formatStr=formatStr.replace(/dd|DD/,date.getDate()>9?date.getDate().toString():'0' + date.getDate());
-                return formatStr;
-            },
-            publish(row){
-                if(row.publish_state === '1'){
-                    this.$message.error('已发布');
-                    return ;
-                }
-                this.$emit('publish', {row:row,skip: (this.currentPage - 1) * this.limit, limit: this.limit, ...this.search});
-            },
-            openDialog(){
-                this.$set(this, `input`, '');
-            },
-            confirmClick(){
-                this.$set(this, `dialogFormVisible`, false);
-                switch(this.tempState)
-                {
-                    case '0':
-                        break;
-                    case '1':
-                        break;
-                    case '2':
-                        break;
-                    case '3':
-                        this.$emit('updateState', {id:this.tempId,state:this.tempState,result:this.input,skip: (this.currentPage - 1) * this.limit, limit: this.limit, ...this.search});
-                        break;
-                    case '-2':
-                        this.$emit('updateState', {id:this.tempId,state:'1',result:this.input,skip: (this.currentPage - 1) * this.limit, limit: this.limit, ...this.search});
-                        break;
-                    case '9':
-                        this.$emit('updateState', {id:this.tempId,state:this.tempState,result:this.input,skip: (this.currentPage - 1) * this.limit, limit: this.limit, ...this.search});
-                        break;
-                }
-            },
-            cancelClick(){
-                this.$set(this, `dialogFormVisible`, false);
-                switch(this.tempState)
-                {
-                    case '0':
-                        break;
-                    case '1':
-                        break;
-                    case '2':
-                        break;
-                    case '3':
-                        break;
-                    case '-2':
-                        this.$emit('updateState', {id:this.tempId,state:'2',result:this.input,skip: (this.currentPage - 1) * this.limit, limit: this.limit, ...this.search});
-                        break;
-                    case '9':
-                        break;
-                }
-            },
-            updateState(row,state){
-                this.$set(this, `tempId`, row.id);
-                this.$set(this, `tempState`, state);
-                switch(state)
-                {
-                    case '0':
-                        break;
-                    case '1':
-                        break;
-                    case '2':
-                        break;
-                    case '3':
-                        if(row.current_state === state){
-                            this.$message.error('已停用');
-                        }else{
-                            this.$set(this, `confirm`, '停用');
-                            this.$set(this, `cancel`, '取消');
-                            this.$set(this, `dialogFormVisible`, true);
-                        }
-                        break;
-                    case '-2':
-                        this.$set(this, `confirm`, '审核通过');
-                        this.$set(this, `cancel`, '审核拒绝');
-                        this.$set(this, `dialogFormVisible`, true);
-                        break;
-                    case '9':
-                        this.$set(this, `confirm`, '完成');
-                        this.$set(this, `cancel`, '取消');
-                        this.$set(this, `dialogFormVisible`, true);
-                        break;
-                }
-            },
-            getState(val) {
-                switch(val)
-                {
-                    case '0':
-                        return '未审核';
-                    case '1':
-                        return '审核通过';
-                    case '2':
-                        return '审核拒绝';
-                    case '9':
-                        return '完成';
-                    case '3':
-                        return '停用';
-                }
-            },
-        },
-    };
+    },
+    handle(row) {
+      if (row.status === '2') {
+        this.$message.error('已处理');
+        return;
+      }
+      this.$emit('handle', { id: row.id, skip: (this.currentPage - 1) * this.limit, limit: this.limit, ...this.search });
+    },
+    showImage(image) {
+      if (image) {
+        this.$set(this, `elImage`, image);
+        this.$set(this, `dialogVisible`, true);
+      } else {
+        this.$set(this, `dialogVisible`, false);
+      }
+    },
+    getDate(val) {
+      if (val) {
+        return this.format(new Date(Number(val)), 'yyyy年MM月dd');
+      }
+      return '';
+    },
+    format(date, formatStr) {
+      formatStr = formatStr.replace(/yyyy|YYYY/, date.getFullYear());
+      formatStr = formatStr.replace(/MM/, date.getMonth() + 1 > 9 ? (date.getMonth() + 1).toString() : '0' + (date.getMonth() + 1));
+      formatStr = formatStr.replace(/dd|DD/, date.getDate() > 9 ? date.getDate().toString() : '0' + date.getDate());
+      return formatStr;
+    },
+    publish(row) {
+      if (row.publish_state === '1') {
+        this.$message.error('已发布');
+        return;
+      }
+      this.$emit('publish', { row: row, skip: (this.currentPage - 1) * this.limit, limit: this.limit, ...this.search });
+    },
+    openDialog() {
+      this.$set(this, `input`, '');
+    },
+    confirmClick() {
+      this.$set(this, `dialogFormVisible`, false);
+      switch (this.tempState) {
+        case '0':
+          break;
+        case '1':
+          break;
+        case '2':
+          break;
+        case '3':
+          this.$emit('updateState', {
+            id: this.tempId,
+            state: this.tempState,
+            result: this.input,
+            skip: (this.currentPage - 1) * this.limit,
+            limit: this.limit,
+            ...this.search,
+          });
+          break;
+        case '-2':
+          this.$emit('updateState', {
+            id: this.tempId,
+            state: '1',
+            result: this.input,
+            skip: (this.currentPage - 1) * this.limit,
+            limit: this.limit,
+            ...this.search,
+          });
+          break;
+        case '9':
+          this.$emit('updateState', {
+            id: this.tempId,
+            state: this.tempState,
+            result: this.input,
+            skip: (this.currentPage - 1) * this.limit,
+            limit: this.limit,
+            ...this.search,
+          });
+          break;
+      }
+    },
+    cancelClick() {
+      this.$set(this, `dialogFormVisible`, false);
+      switch (this.tempState) {
+        case '0':
+          break;
+        case '1':
+          break;
+        case '2':
+          break;
+        case '3':
+          break;
+        case '-2':
+          this.$emit('updateState', {
+            id: this.tempId,
+            state: '2',
+            result: this.input,
+            skip: (this.currentPage - 1) * this.limit,
+            limit: this.limit,
+            ...this.search,
+          });
+          break;
+        case '9':
+          break;
+      }
+    },
+    updateState(row, state) {
+      this.$set(this, `tempId`, row.id);
+      this.$set(this, `tempState`, state);
+      switch (state) {
+        case '0':
+          break;
+        case '1':
+          break;
+        case '2':
+          break;
+        case '3':
+          if (row.current_state === state) {
+            this.$message.error('已停用');
+          } else {
+            this.$set(this, `confirm`, '停用');
+            this.$set(this, `cancel`, '取消');
+            this.$set(this, `dialogFormVisible`, true);
+          }
+          break;
+        case '-2':
+          this.$set(this, `confirm`, '审核通过');
+          this.$set(this, `cancel`, '审核拒绝');
+          this.$set(this, `dialogFormVisible`, true);
+          break;
+        case '9':
+          this.$set(this, `confirm`, '完成');
+          this.$set(this, `cancel`, '取消');
+          this.$set(this, `dialogFormVisible`, true);
+          break;
+      }
+    },
+    getState(val) {
+      switch (val) {
+        case '0':
+          return '未审核';
+        case '1':
+          return '审核通过';
+        case '2':
+          return '审核拒绝';
+        case '9':
+          return '完成';
+        case '3':
+          return '停用';
+      }
+    },
+  },
+};
 </script>
 
 <style lang="less" scoped>
-    /deep/ .el-checkbox__input.is-checked .el-checkbox__inner {
-        background-color: red;
-        border-color: red;
-    }
+/deep/ .el-checkbox__input.is-checked .el-checkbox__inner {
+  background-color: red;
+  border-color: red;
+}
 
-    /deep/ .el-checkbox__input.is-indeterminate .el-checkbox__inner {
-        background-color: red;
-        border-color: red;
-    }
+/deep/ .el-checkbox__input.is-indeterminate .el-checkbox__inner {
+  background-color: red;
+  border-color: red;
+}
 
-    /deep/ .el-table th {
-        background-color: #f5f6fa;
-        padding: 8px 0;
-    }
+/deep/ .el-table th {
+  background-color: #f5f6fa;
+  padding: 8px 0;
+}
 
-    /deep/ .el-table td {
-        padding: 11px 0;
-    }
+/deep/ .el-table td {
+  padding: 11px 0;
+}
 
-    .other {
-        color: #f36302;
-    }
+.other {
+  color: #f36302;
+}
 
-    .view {
-        color: #f36302;
-    }
+.view {
+  color: #f36302;
+}
 
-    .edit {
-        color: #2ccc02;
-    }
+.edit {
+  color: #2ccc02;
+}
 
-    .delete {
-        color: #e9021d;
-    }
+.delete {
+  color: #e9021d;
+}
 
-    /deep/ .el-pagination {
-        padding: 26px 20px;
-    }
+/deep/ .el-pagination {
+  padding: 26px 20px;
+}
 
-    /deep/ .el-pagination.is-background .el-pager li:not(.disabled).active {
-        background-color: red;
-    }
+/deep/ .el-pagination.is-background .el-pager li:not(.disabled).active {
+  background-color: red;
+}
 
-    .input {
-        width: 150px;
-    }
+.input {
+  width: 150px;
+}
 
-    /deep/ .el-input__inner {
-        height: 35px;
-        line-height: 35px;
-    }
+/deep/ .el-input__inner {
+  height: 35px;
+  line-height: 35px;
+}
 
-    .btnSearch {
-        width: 80px;
-        height: 34px;
-        background: rgba(233, 2, 29, 1);
-        border-radius: 4px;
-        padding: 0;
-        color: #fff;
-    }
+.btnSearch {
+  width: 80px;
+  height: 34px;
+  background: rgba(233, 2, 29, 1);
+  border-radius: 4px;
+  padding: 0;
+  color: #fff;
+}
 
-    .qing {
-        background: rgba(185, 185, 185, 1);
-    }
+.qing {
+  background: rgba(185, 185, 185, 1);
+}
 
-    .top {
-        height: 50px;
-        margin: 0 0 10px 0;
-    }
+.top {
+  height: 50px;
+  margin: 0 0 10px 0;
+}
 
-    .search {
-        background: #ffffff;
-        width: 97%;
-        height: 35px;
-        margin: 20px;
-        margin-left: 0px;
-    }
+.search {
+  background: #ffffff;
+  width: 97%;
+  height: 35px;
+  margin: 20px;
+  margin-left: 0px;
+}
 
-    .list {
-        padding: 0 20px;
-    }
+.list {
+  padding: 0 20px;
+}
 </style>

+ 6 - 0
src/router/index.js

@@ -149,6 +149,12 @@ const routes = [
     path: '/intelligentDocking/intelligentDockingFollow',
     component: () => import('../views/intelligentDocking/intelligentDockingFollow.vue'),
   },
+  // 银企对接已关注详情
+  {
+    path: '/intelligentDocking/intelligentDockingFinishDetail',
+    component: () => import('../views/intelligentDocking/intelligentDockingFinishDetail.vue'),
+  },
+
   // 详情
   {
     path: '/intelligentDocking/intelligentDockingFollowDetail',

+ 5 - 0
src/store/intelligentFollow.js

@@ -34,6 +34,11 @@ const actions = {
     const res = await this.$axios.$post(`${api.intelligentFollow}/getFollowList`, payload);
     return res;
   },
+  // 已完成列表
+  async getFinishList({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.intelligentFollow}/getFinishList`, payload);
+    return res;
+  },
 };
 export default {
   namespaced: true,

+ 98 - 99
src/views/financingTUrgeHandle/seeIndex.vue

@@ -13,112 +13,111 @@
   </div>
 </template>
 <script>
-  import topInfo from '@/layout/custom/topInfo.vue';
-  import seeList from '@/layout/financingTUrgeHandle/seeList.vue';
-  import { mapState, createNamespacedHelpers, mapGetters } from 'vuex';
-  const { mapActions: tUrgeHandle } = createNamespacedHelpers('tUrgeHandle');
-  const { mapActions: dictionary } = createNamespacedHelpers('dictionary');
+import topInfo from '@/layout/custom/topInfo.vue';
+import seeList from '@/layout/financingTUrgeHandle/seeList.vue';
+import { mapState, createNamespacedHelpers, mapGetters } from 'vuex';
+const { mapActions: tUrgeHandle } = createNamespacedHelpers('tUrgeHandle');
+const { mapActions: dictionary } = createNamespacedHelpers('dictionary');
 
-  export default {
-    name: 'index',
-    props: {},
-    components: {
-      topInfo, //头部导航
-      seeList, //列表
+export default {
+  name: 'index',
+  props: {},
+  components: {
+    topInfo, //头部导航
+    seeList, //列表
+  },
+  data: () => ({
+    topTitle: '我要融资催办处理',
+    display: '',
+    tableData: [],
+    total: 0,
+  }),
+  created() {
+    this.select();
+  },
+  computed: {
+    ...mapState(['user']),
+  },
+  methods: {
+    ...tUrgeHandle(['create', 'delete', 'update', 'fetch', 'query', 'originalQuery']),
+    ...dictionary({ dictQuery: 'query' }),
+    async select({ skip = 0, limit = 10, ...info } = {}) {
+      console.log(this.user);
+      const res = await this.originalQuery({ skip, limit, jg_id: this.user.userid, type: '2', ...info });
+      if (this.$checkRes(res)) {
+        this.$set(this, `tableData`, res.data);
+        this.$set(this, `total`, res.total);
+      }
     },
-    data: () => ({
-      topTitle: '我要融资催办处理',
-      display: '',
-      tableData: [],
-      total: 0,
-    }),
-    created() {
-      this.select();
-    },
-    computed: {
-      ...mapState(['user']),
-    },
-    methods: {
-      ...tUrgeHandle(['create', 'delete', 'update', 'fetch', 'query','originalQuery']),
-      ...dictionary({dictQuery:'query'}),
-      async select({ skip = 0, limit = 10, ...info } = {}) {
-        console.log(this.user);
-        const res = await this.originalQuery({ skip, limit,jg_id:this.user.userid, type:'2',...info });
-        if (this.$checkRes(res)) {
-          this.$set(this, `tableData`, res.data);
-          this.$set(this, `total`, res.total);
-        }
-      },
-      async handle({id,skip, limit, ...info}) {
-        console.log(id);
+    async handle({ id, skip, limit, ...info }) {
+      console.log(id);
 
-        let data = {};
-        data.id = id;
-        data.status = '2';
-        data.handle_time = new Date().getTime();
+      let data = {};
+      data.id = id;
+      data.status = '2';
+      data.handle_time = new Date().getTime();
 
-        const res = await this.update(data);
-        this.$checkRes(res, '处理成功', '处理失败');
+      const res = await this.update(data);
+      this.$checkRes(res, '处理成功', '处理失败');
 
-        this.select({ skip, limit, ...info });
-      },
-      add() {
-        this.$router.push({ path: '/tDeclarationApproval/detail' });
-      },
-      async deleteRow({ id, skip = 0, limit = 10, ...info } = {}) {
-        const res = await this.delete(id);
-        this.$checkRes(res, '删除成功', '删除失败');
-        this.select({ skip, limit, ...info });
-      },
-      async publish({ row ,skip = 0, limit = 10, ...info } = {}){
-        let res = await this.update({id:row.id,publish_state:1,publish_state_description:'已发布',publish_time:new Date().getTime()});
-        this.$checkRes(res, '发布成功', '发布失败');
-        this.select({ skip, limit, ...info });
-      },
-      async updateState({ id ,state ,result,skip = 0, limit = 10, ...info } = {}){
-        let res = null;
-        switch(state)
-        {
-          case '0':
-            break ;
-          case '1':
-            res = await this.state({id:id,current_approval_id:this.user.uid,state:state,state_description:'',result_description:result});
-            this.$checkRes(res, '审核成功', '审核失败');
-            break;
-          case '2':
-            res = await this.state({id:id,current_approval_id:this.user.uid,state:state,state_description:'',result_description:result});
-            this.$checkRes(res, '审核成功', '审核失败');
-            break;
-          case '3':
-            res = await this.state({id:id,current_approval_id:this.user.uid,state:state,state_description:'',result_description:result});
-            this.$checkRes(res, '停用成功', '停用失败');
-            break;
-          case '9':
-            res = await this.state({id:id,current_approval_id:this.user.uid,state:state,state_description:'',result_description:result});
-            this.$checkRes(res, '完成成功', '完成失败');
-            break;
-        }
-        this.select({ skip, limit, ...info });
-      },
+      this.select({ skip, limit, ...info });
+    },
+    add() {
+      this.$router.push({ path: '/tDeclarationApproval/detail' });
+    },
+    async deleteRow({ id, skip = 0, limit = 10, ...info } = {}) {
+      const res = await this.delete(id);
+      this.$checkRes(res, '删除成功', '删除失败');
+      this.select({ skip, limit, ...info });
+    },
+    async publish({ row, skip = 0, limit = 10, ...info } = {}) {
+      let res = await this.update({ id: row.id, publish_state: 1, publish_state_description: '已发布', publish_time: new Date().getTime() });
+      this.$checkRes(res, '发布成功', '发布失败');
+      this.select({ skip, limit, ...info });
+    },
+    async updateState({ id, state, result, skip = 0, limit = 10, ...info } = {}) {
+      let res = null;
+      switch (state) {
+        case '0':
+          break;
+        case '1':
+          res = await this.state({ id: id, current_approval_id: this.user.uid, state: state, state_description: '', result_description: result });
+          this.$checkRes(res, '审核成功', '审核失败');
+          break;
+        case '2':
+          res = await this.state({ id: id, current_approval_id: this.user.uid, state: state, state_description: '', result_description: result });
+          this.$checkRes(res, '审核成功', '审核失败');
+          break;
+        case '3':
+          res = await this.state({ id: id, current_approval_id: this.user.uid, state: state, state_description: '', result_description: result });
+          this.$checkRes(res, '停用成功', '停用失败');
+          break;
+        case '9':
+          res = await this.state({ id: id, current_approval_id: this.user.uid, state: state, state_description: '', result_description: result });
+          this.$checkRes(res, '完成成功', '完成失败');
+          break;
+      }
+      this.select({ skip, limit, ...info });
     },
-  };
+  },
+};
 </script>
 
 <style lang="less" scoped>
-  .top {
-    height: 50px;
-    margin: 0 0 10px 0;
-  }
-  .main {
-    min-height: 765px;
-    background: #ffffff;
-  }
-  .search {
-    width: 97%;
-    height: 35px;
-    margin: 20px;
-  }
-  .list {
-    padding: 0 20px;
-  }
+.top {
+  height: 50px;
+  margin: 0 0 10px 0;
+}
+.main {
+  min-height: 765px;
+  background: #ffffff;
+}
+.search {
+  width: 97%;
+  height: 35px;
+  margin: 20px;
+}
+.list {
+  padding: 0 20px;
+}
 </style>

+ 42 - 6
src/views/intelligentDocking/intelligentDockingFinish.vue

@@ -1,18 +1,54 @@
 <template>
   <div id="intelligentDockingFinish">
-    <p>intelligentDockingFinish</p>
+    <el-row>
+      <el-col :span="24">
+        <el-col :span="24">
+          <topInfo :topTitle="topTitle" :display="display"></topInfo>
+        </el-col>
+        <el-col :span="24">
+          <intelligentDockingFinishList :debtTable="debtTable" :total="total" @pagechange="pagechange"></intelligentDockingFinishList>
+        </el-col>
+      </el-col>
+    </el-row>
   </div>
 </template>
 
 <script>
+import topInfo from '@/layout/common/topInfo.vue';
+import intelligentDockingFinishList from '@/layout/intelligentDocking/intelligentDockingFinishList.vue';
+import { mapState, mapMutations, createNamespacedHelpers } from 'vuex';
+const { mapActions: intelligentFollow } = createNamespacedHelpers('intelligentFollow');
 export default {
   name: 'intelligentDockingFinish',
   props: {},
-  components: {},
-  data: () => ({}),
-  created() {},
-  computed: {},
-  methods: {},
+  components: {
+    topInfo, //头部
+    intelligentDockingFinishList, //列表
+  },
+  data: () => ({
+    topTitle: '银企对接已完成列表',
+    display: 'none',
+    debtTable: [],
+    total: 0,
+  }),
+  created() {
+    this.searchInfo();
+  },
+  computed: {
+    ...mapState(['user']),
+  },
+  methods: {
+    ...intelligentFollow(['getFinishList']),
+    async searchInfo({ skip = 1, limit = 10, uid = this.user.uid, userid = this.user.userid, creditStatus = 1 } = {}) {
+      const res = await this.getFinishList({ skip, limit, uid, userid, creditStatus });
+      this.$set(this, `debtTable`, res.data.res);
+      this.$set(this, `total`, res.data.total);
+    },
+    // 分頁
+    pagechange(skip) {
+      console.log(skip);
+    },
+  },
 };
 </script>
 

+ 83 - 0
src/views/intelligentDocking/intelligentDockingFinishDetail.vue

@@ -0,0 +1,83 @@
+<template>
+  <div id="intelligentDockingFinishDetail">
+    <el-row>
+      <el-col :span="24">
+        <el-col :span="24">
+          <topInfo :topTitle="topTitle" :display="display"></topInfo>
+        </el-col>
+        <el-col :span="24" class="main">
+          <el-col :span="24">
+            <detailTop @goBack="goBack"></detailTop>
+          </el-col>
+          <el-col :span="24">
+            <intelligentDockingFinishDetails :form="form"></intelligentDockingFinishDetails>
+          </el-col>
+        </el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import topInfo from '@/layout/common/topInfo.vue';
+import detailTop from '@/layout/common/detailTop.vue';
+import intelligentDockingFinishDetails from '@/layout/intelligentDocking/intelligentDockingFinishDetails.vue';
+import { createNamespacedHelpers, mapGetters, mapState } from 'vuex';
+const { mapActions: intelligentDocking } = createNamespacedHelpers('intelligentDocking');
+export default {
+  name: 'intelligentDockingFinishDetail',
+  props: {},
+  components: {
+    topInfo, //头部
+    detailTop, //返回
+    intelligentDockingFinishDetails, //详情
+  },
+  data: () => ({
+    topTitle: '银企对接已关注详情',
+    display: 'none',
+    form: {
+      company: {},
+      dictionary: {},
+      finance_claims: {},
+      when: {},
+      follow: {},
+    },
+  }),
+  created() {
+    this.searchInfo();
+  },
+  computed: {
+    ...mapState(['user']),
+    intelligentId() {
+      return this.$route.query.intelligentId;
+    },
+  },
+  methods: {
+    ...intelligentDocking(['dockingSearch']),
+    // 查询详情
+    async searchInfo() {
+      if (this.intelligentId) {
+        const res = await this.dockingSearch({ id: this.intelligentId });
+        for (const val of res.result) {
+          this.$set(this, `form`, val);
+        }
+      }
+    },
+    // 返回
+    goBack() {
+      this.$router.go(-1);
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.main {
+  float: left;
+  width: 100%;
+  min-height: 780px;
+  box-shadow: 0 0 5px #999;
+  border-radius: 10px;
+  padding: 20px;
+}
+</style>

+ 3 - 1
src/views/intelligentDocking/intelligentDockingFollow.vue

@@ -82,7 +82,9 @@ export default {
       data.guanzhuid = this.jujueInfo._id;
       data.intelligentId = this.jujueInfo.intelligentId;
       data.userid = this.jujueInfo.intelligent.uid;
-      data.creditStatus = 3;
+      if (this.jujueInfo.intelligent.refuse_times == '3') {
+        data.creditStatus = 3;
+      }
       const res = await this.refuseDocking(data);
       if (res.errcode === 0) {
         this.$message({

+ 32 - 9
src/views/intelligentDocking/intelligentDockingFollowDetail.vue

@@ -13,7 +13,6 @@
             <intelligentDockingFollowDetails
               :form="form"
               :shenheForm="shenheForm"
-              :shenheDialog="shenheDialog"
               @shenheBtns="shenheBtns"
               @shenheOut="shenheOut"
               @shenheBtn="shenheBtn"
@@ -36,6 +35,7 @@ import detailTop from '@/layout/common/detailTop.vue';
 import intelligentDockingFollowDetails from '@/layout/intelligentDocking/intelligentDockingFollowDetails.vue';
 import { createNamespacedHelpers, mapGetters, mapState } from 'vuex';
 const { mapActions: intelligentDocking } = createNamespacedHelpers('intelligentDocking');
+const { mapActions: intelligentFollow } = createNamespacedHelpers('intelligentFollow');
 export default {
   name: 'intelligentDockingFollowDetail',
   props: {},
@@ -55,7 +55,6 @@ export default {
       follow: {},
     },
     shenheForm: {},
-    shenheDialog: false,
     shouxinDialog: false,
     shouxinForm: {},
   }),
@@ -70,6 +69,7 @@ export default {
   },
   methods: {
     ...intelligentDocking(['dockingSearch']),
+    ...intelligentFollow(['credit']),
     // 查询详情
     async searchInfo() {
       if (this.intelligentId) {
@@ -81,17 +81,28 @@ export default {
     },
     // 打开审核
     shenheBtns() {
-      this.shenheDialog = true;
+      // this.shenheDialog = true;
     },
     // 取消审核
     shenheOut() {
-      this.shenheDialog = false;
+      // this.shenheDialog = false;
       this.shenheForm = {};
     },
     // 提交审核
-    shenheBtn({ data }) {
-      this.shenheDialog = false;
-      console.log(data);
+    async shenheBtn({ data }) {
+      data.id = this.form.follow._id;
+      data.creditStatus = 2;
+      const res = await this.credit(data);
+      if (res.errcode === 0) {
+        this.$message({
+          message: '审核成功',
+          type: 'success',
+        });
+        this.goBack();
+        this.searchInfo();
+      } else {
+        this.$message.error('审核失败');
+      }
     },
     // 打开授信
     shouxinBtns() {
@@ -103,8 +114,20 @@ export default {
       this.shouxinForm = {};
     },
     // 提交授信
-    shouxinBtn({ data }) {
-      console.log(data);
+    async shouxinBtn({ data }) {
+      data.id = this.form.follow._id;
+      data.creditStatus = 1;
+      const res = await this.credit(data);
+      if (res.errcode === 0) {
+        this.$message({
+          message: '授信成功',
+          type: 'success',
+        });
+        this.goBack();
+        this.searchInfo();
+      } else {
+        this.$message.error('授信失败');
+      }
     },
     // 返回
     goBack() {