|
@@ -3,28 +3,24 @@
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
<el-col :span="24" class="search">
|
|
|
- <el-col :span="5">
|
|
|
- <span>筛选条件:</span>
|
|
|
- <el-select v-model="search.is_exist" placeholder="请选择催办状态">
|
|
|
- <el-option label="已催办" value="1"></el-option>
|
|
|
- <el-option label="未催办" value="2"></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>
|
|
|
+ <span>筛选条件:</span>
|
|
|
+ <el-select class="input" clearable v-model="search.is_exist" placeholder="请选择催办状态">
|
|
|
+ <el-option label="已催办" value="1"></el-option>
|
|
|
+ <el-option label="未催办" value="2"></el-option>
|
|
|
+ </el-select>
|
|
|
+ <span>输入条件:</span>
|
|
|
+ <el-input v-model="search.company_name" clearable :placeholder="placeholder" class="input"></el-input>
|
|
|
<!--<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-button class="btnSearch" @click="toQuery">查询</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
<el-table
|
|
|
+ v-loading = "pictLoading"
|
|
|
+ element-loading-text = "数据正在加载中"
|
|
|
+ element-loading-spinner = "el-icon-loading"
|
|
|
ref="tableData"
|
|
|
:data="tableData"
|
|
|
tooltip-effect="dark"
|
|
@@ -35,8 +31,9 @@
|
|
|
>
|
|
|
<!--<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" width="300"> </el-table-column>
|
|
|
- <el-table-column property="money" label="融资金额(万元)" align="center"> </el-table-column>
|
|
|
+ <el-table-column property="company_name" label="企业名称" align="center"
|
|
|
+ width="300"></el-table-column>
|
|
|
+ <el-table-column property="money" label="融资金额(万元)" align="center"></el-table-column>
|
|
|
|
|
|
<el-table-column label="需求状态" align="center">
|
|
|
<template slot-scope="scope">
|
|
@@ -50,9 +47,9 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column property="person" label="联系人" align="center"> </el-table-column>
|
|
|
- <el-table-column property="institution_name" label="金融机构名称" align="center"> </el-table-column>
|
|
|
- <el-table-column property="product_name" label="产品名称" align="center"> </el-table-column>
|
|
|
+ <el-table-column property="person" label="联系人" align="center"></el-table-column>
|
|
|
+ <el-table-column property="institution_name" 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">
|
|
@@ -127,17 +124,22 @@
|
|
|
limit: 10,
|
|
|
dialogVisible: false,
|
|
|
elImage: '',
|
|
|
- tempId:'',
|
|
|
- tempState:'',
|
|
|
+ tempId: '',
|
|
|
+ tempState: '',
|
|
|
dialogFormVisible: false,
|
|
|
- input:'',
|
|
|
- confirm:'确定',
|
|
|
- cancel:'取消',
|
|
|
+ input: '',
|
|
|
+ confirm: '确定',
|
|
|
+ cancel: '取消',
|
|
|
+ pictLoading:true,
|
|
|
}),
|
|
|
- created() {
|
|
|
+ watch:{
|
|
|
+ tableData(){
|
|
|
+ this.pictLoading = false;
|
|
|
+ }
|
|
|
},
|
|
|
- computed: {
|
|
|
+ created() {
|
|
|
},
|
|
|
+ computed: {},
|
|
|
methods: {
|
|
|
handleSelectionChange(val) {
|
|
|
this.multipleSelection = val;
|
|
@@ -151,9 +153,11 @@
|
|
|
this.$emit('select', {skip: 0, limit: val, ...this.search});
|
|
|
},
|
|
|
handleCurrentChange(val) {
|
|
|
+ this.$set(this, `pictLoading`, true);
|
|
|
this.$emit('select', {skip: (val - 1) * this.limit, limit: this.limit, ...this.search});
|
|
|
},
|
|
|
toQuery() {
|
|
|
+ this.$set(this, `pictLoading`, true);
|
|
|
this.$set(this, `currentPage`, 1);
|
|
|
this.$emit('select', {skip: 0, limit: this.limit, ...this.search});
|
|
|
},
|
|
@@ -164,39 +168,42 @@
|
|
|
}
|
|
|
},
|
|
|
showImage(image) {
|
|
|
- if(image){
|
|
|
+ if (image) {
|
|
|
this.$set(this, `elImage`, image);
|
|
|
this.$set(this, `dialogVisible`, true);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.$set(this, `dialogVisible`, false);
|
|
|
}
|
|
|
},
|
|
|
getDate(val) {
|
|
|
- if(val){
|
|
|
- return this.format(new Date(Number(val)),'yyyy年MM月dd');
|
|
|
+ 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());
|
|
|
+ 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'){
|
|
|
+ publish(row) {
|
|
|
+ if (row.publish_state === '1') {
|
|
|
this.$message.error('已发布');
|
|
|
- return ;
|
|
|
+ return;
|
|
|
}
|
|
|
- this.$emit('publish', {row:row,skip: (this.currentPage - 1) * this.limit, limit: this.limit, ...this.search});
|
|
|
+ this.$emit('publish', {
|
|
|
+ row: row,
|
|
|
+ skip: (this.currentPage - 1) * this.limit,
|
|
|
+ limit: this.limit, ...this.search
|
|
|
+ });
|
|
|
},
|
|
|
- openDialog(){
|
|
|
+ openDialog() {
|
|
|
this.$set(this, `input`, '');
|
|
|
},
|
|
|
- confirmClick(){
|
|
|
+ confirmClick() {
|
|
|
this.$set(this, `dialogFormVisible`, false);
|
|
|
- switch(this.tempState)
|
|
|
- {
|
|
|
+ switch (this.tempState) {
|
|
|
case '0':
|
|
|
break;
|
|
|
case '1':
|
|
@@ -204,20 +211,37 @@
|
|
|
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});
|
|
|
+ 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});
|
|
|
+ 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});
|
|
|
+ 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(){
|
|
|
+ cancelClick() {
|
|
|
this.$set(this, `dialogFormVisible`, false);
|
|
|
- switch(this.tempState)
|
|
|
- {
|
|
|
+ switch (this.tempState) {
|
|
|
case '0':
|
|
|
break;
|
|
|
case '1':
|
|
@@ -227,17 +251,22 @@
|
|
|
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});
|
|
|
+ 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){
|
|
|
+ updateState(row, state) {
|
|
|
this.$set(this, `tempId`, row.id);
|
|
|
this.$set(this, `tempState`, state);
|
|
|
- switch(state)
|
|
|
- {
|
|
|
+ switch (state) {
|
|
|
case '0':
|
|
|
break;
|
|
|
case '1':
|
|
@@ -245,9 +274,9 @@
|
|
|
case '2':
|
|
|
break;
|
|
|
case '3':
|
|
|
- if(row.current_state === state){
|
|
|
+ if (row.current_state === state) {
|
|
|
this.$message.error('已停用');
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.$set(this, `confirm`, '停用');
|
|
|
this.$set(this, `cancel`, '取消');
|
|
|
this.$set(this, `dialogFormVisible`, true);
|
|
@@ -266,8 +295,7 @@
|
|
|
}
|
|
|
},
|
|
|
getState(val) {
|
|
|
- switch(val)
|
|
|
- {
|
|
|
+ switch (val) {
|
|
|
case '0':
|
|
|
return '未审核';
|
|
|
case '1':
|
|
@@ -282,8 +310,7 @@
|
|
|
},
|
|
|
getDemandState(val) {
|
|
|
let match = val.intelligent_follow.creditStatus;
|
|
|
- switch(match)
|
|
|
- {
|
|
|
+ switch (match) {
|
|
|
case '0':
|
|
|
return '已接单';
|
|
|
case '1':
|
|
@@ -299,26 +326,25 @@
|
|
|
getTimeoutState(val) {
|
|
|
let match = val.intelligent_follow.creditStatus;
|
|
|
let timeout = val.next_is_timeout === '1' ? '已超时' : '未超时';
|
|
|
- switch(match)
|
|
|
- {
|
|
|
+ switch (match) {
|
|
|
case '0':
|
|
|
- return '审批'+ timeout;
|
|
|
+ return '审批' + timeout;
|
|
|
case '1':
|
|
|
return '';
|
|
|
case '2':
|
|
|
- return '放款'+ timeout;
|
|
|
+ return '放款' + timeout;
|
|
|
case '3':
|
|
|
return '';
|
|
|
case '9':
|
|
|
- return '接单'+ timeout;
|
|
|
+ return '接单' + timeout;
|
|
|
}
|
|
|
},
|
|
|
- tableRowClassName({ row, rowIndex }) {
|
|
|
- console.log(row.creditStatus, rowIndex);
|
|
|
- if (row.next_is_timeout == '1') {
|
|
|
- return 'warning-row';
|
|
|
+ tableRowClassName({row, rowIndex}) {
|
|
|
+ console.log(row.creditStatus, rowIndex);
|
|
|
+ if (row.next_is_timeout == '1') {
|
|
|
+ return 'warning-row';
|
|
|
}
|
|
|
- return '';
|
|
|
+ return '';
|
|
|
},
|
|
|
},
|
|
|
};
|
|
@@ -343,13 +369,15 @@
|
|
|
/deep/ .el-table td {
|
|
|
padding: 11px 0;
|
|
|
}
|
|
|
- /deep/ .el-table .cell {
|
|
|
+
|
|
|
+ /deep/ .el-table .cell {
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
white-space: nowrap;
|
|
|
}
|
|
|
- /deep/.el-table .warning-row {
|
|
|
- background:oldlace;
|
|
|
+
|
|
|
+ /deep/ .el-table .warning-row {
|
|
|
+ background: oldlace;
|
|
|
}
|
|
|
|
|
|
.other {
|
|
@@ -378,11 +406,7 @@
|
|
|
|
|
|
.input {
|
|
|
width: 150px;
|
|
|
- }
|
|
|
-
|
|
|
- /deep/ .el-input__inner {
|
|
|
- height: 35px;
|
|
|
- line-height: 35px;
|
|
|
+ margin-right: 10px;
|
|
|
}
|
|
|
|
|
|
.btnSearch {
|
|
@@ -414,4 +438,42 @@
|
|
|
.list {
|
|
|
padding: 0 20px;
|
|
|
}
|
|
|
+
|
|
|
+ /deep/ .el-icon-view:before {
|
|
|
+ content: "替";
|
|
|
+ font-size: 16px;
|
|
|
+ visibility: hidden;
|
|
|
+ }
|
|
|
+ /deep/ .el-icon-view {
|
|
|
+ background: url(../../assets/xiangqing.png) center no-repeat;
|
|
|
+ background-size: cover;
|
|
|
+ width: 25px;
|
|
|
+ height: 25px;
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/.el-loading-spinner .el-loading-text {
|
|
|
+ color: #e9021d;
|
|
|
+ margin: 3px 0;
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
+ /deep/ .el-icon-loading {
|
|
|
+ background: url(../../assets/loading.png) center no-repeat;
|
|
|
+ background-size: cover;
|
|
|
+ width: 25px;
|
|
|
+ height: 25px;
|
|
|
+ }
|
|
|
+ /deep/ .el-icon-loading:before {
|
|
|
+ content: "替";
|
|
|
+ visibility: hidden;
|
|
|
+ }
|
|
|
+ /deep/ .el-input__suffix {
|
|
|
+ .el-input__suffix-inner {
|
|
|
+ border-color: unset;
|
|
|
+
|
|
|
+ .el-icon-circle-close:before {
|
|
|
+ content: "\e79d" !important;
|
|
|
+ font-size: 20px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|