|
|
|
@ -1,23 +1,32 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<el-card class="el-card">
|
|
|
|
|
<el-form :inline="true" :model="filterQuery" class="query-form" size="mini">
|
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
|
<el-form size="mini" :model="filterQuery" label-width="100px" v-show="showSearch">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="单位编码:">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="filterQuery.unitId"
|
|
|
|
|
placeholder="请输入往来单位编码"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
clearable
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="往来单位:">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="filterQuery.name"
|
|
|
|
|
placeholder="请输入往来单位"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
clearable
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
|
<el-select v-model="filterQuery.thirdSys" placeholder="请选择第三方系统" @change="thirdSysChange">
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="外部系统:">
|
|
|
|
|
<el-select v-model="filterQuery.thirdSys" style="width: 90%" placeholder="请选择第三方系统"
|
|
|
|
|
@change="thirdSysChange">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in thirdSys"
|
|
|
|
|
:key="item.value"
|
|
|
|
@ -28,16 +37,22 @@
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<div class="top-right-btn">
|
|
|
|
|
<el-button-group style="display:flex;">
|
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
|
|
|
|
|
<el-button icon="el-icon-view" type="primary" @click="hideSearch">显示/隐藏搜索栏</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="getList">查询</el-button>
|
|
|
|
|
<el-button type="primary" icon="search" @click="clearAll"
|
|
|
|
|
<el-button type="primary" icon="el-icon-delete-solid" @click="clearAll"
|
|
|
|
|
v-if="!this.thirdSysDetail.enabled">清空全部
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-button-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
</div>
|
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%" border highlight-current-row>
|
|
|
|
|
<el-table-column label="序号" type="index" width="60"></el-table-column>
|
|
|
|
|
<el-table-column label="往来单位ID" prop="id" width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
@ -47,9 +62,9 @@
|
|
|
|
|
<el-table-column label="社会信用号" prop="creditNo" width="140" show-overflow-tooltip></el-table-column>
|
|
|
|
|
<el-table-column label="联系人" prop="contact" width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
|
<el-table-column label="联系电话" prop="mobile" show-overflow-tooltip></el-table-column>
|
|
|
|
|
<el-table-column label="操作" v-if="thirdSysDetail.fromType!=0" width="150px">
|
|
|
|
|
<el-table-column label="操作" v-if="thirdSysDetail.fromType!=0" width="60">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="text" size="small" @click.native.stop="deleteDialog(scope.row)" :disabled="!delFalg"
|
|
|
|
|
<el-button type="text" @click.native.stop="deleteDialog(scope.row)" :disabled="!delFalg"
|
|
|
|
|
>删除
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
@ -79,6 +94,7 @@ import {findConfig} from "@/api/thrsys/spsSyncStatus";
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterQuery: {
|
|
|
|
|
unitId: null,
|
|
|
|
|
name: null,
|
|
|
|
@ -90,7 +106,7 @@ export default {
|
|
|
|
|
list: [],
|
|
|
|
|
thirdSys: [],
|
|
|
|
|
thirdSysDetail: null,
|
|
|
|
|
delFalg:true,
|
|
|
|
|
delFalg: true,
|
|
|
|
|
uploadFileUrl: null,
|
|
|
|
|
fileList: [],
|
|
|
|
|
uploadData: {
|
|
|
|
@ -139,6 +155,9 @@ export default {
|
|
|
|
|
this.total = 0;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
hideSearch() {
|
|
|
|
|
this.showSearch = !this.showSearch;
|
|
|
|
|
},
|
|
|
|
|
deleteDialog(row) {
|
|
|
|
|
this.$confirm("此操作将永久删除该往来单位信息, 是否继续?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
@ -251,10 +270,10 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
getConFig(){
|
|
|
|
|
findConfig().then((response) =>{
|
|
|
|
|
getConFig() {
|
|
|
|
|
findConfig().then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.delFalg=response.data.basicThirdCorp;
|
|
|
|
|
this.delFalg = response.data.basicThirdCorp;
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|