第三方往来单位界面样式修改
parent
45e65f25ca
commit
6f44066cf1
@ -1,168 +1,179 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-form :inline="true" :model="query" size="mini">
|
<el-form :model="query" size="mini" label-width="100px" v-show="showSearch">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-form-item class="query-form-item">
|
<el-col :span="6">
|
||||||
<el-input
|
<el-form-item label="往来单位编码:">
|
||||||
v-model="filterQuery.unitId"
|
<el-input
|
||||||
placeholder="请输入往来单位编码"
|
v-model="filterQuery.unitId"
|
||||||
clearable
|
style="width: 90%"
|
||||||
></el-input>
|
placeholder="请输入往来单位编码"
|
||||||
</el-form-item>
|
clearable
|
||||||
<el-form-item class="query-form-item">
|
></el-input>
|
||||||
<el-input
|
</el-form-item>
|
||||||
v-model="filterQuery.name"
|
</el-col>
|
||||||
placeholder="请输入往来单位"
|
<el-col :span="6">
|
||||||
clearable
|
<el-form-item label="往来单位:">
|
||||||
></el-input>
|
<el-input
|
||||||
</el-form-item>
|
v-model="filterQuery.name"
|
||||||
<el-form-item>
|
style="width: 90%"
|
||||||
<el-button-group style="display:flex;">
|
placeholder="请输入往来单位"
|
||||||
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
|
clearable
|
||||||
<el-button type="primary" icon="el-icon-search" @click="getList">查询</el-button>
|
></el-input>
|
||||||
</el-button-group>
|
</el-form-item>
|
||||||
</el-form-item>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
<div class="top-right-btn">
|
||||||
<el-table
|
<el-button-group style="display:flex;">
|
||||||
v-loading="loading"
|
<el-button icon="el-icon-view" type="primary" @click="hideSearch">显示/隐藏搜索栏</el-button>
|
||||||
:data="list"
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
||||||
style="width: 100%"
|
<el-button type="primary" icon="el-icon-search" @click="getList">查询</el-button>
|
||||||
border highlight-current-row
|
</el-button-group>
|
||||||
>
|
</div>
|
||||||
<el-table-column label="序号" type="index"></el-table-column>
|
<el-divider style="margin: 15px"></el-divider>
|
||||||
<el-table-column label="往来单位ID" prop="unitId" width="100" show-overflow-tooltip></el-table-column>
|
<el-table
|
||||||
<el-table-column label="往来单位" prop="name" show-overflow-tooltip></el-table-column>
|
v-loading="loading"
|
||||||
<el-table-column label="拼音简写" prop="spell" width="100" show-overflow-tooltip></el-table-column>
|
:data="list"
|
||||||
<el-table-column label="地址" prop="addr" show-overflow-tooltip></el-table-column>
|
style="width: 100%"
|
||||||
<el-table-column label="社会信用号" prop="creditNo" width="140" show-overflow-tooltip></el-table-column>
|
border highlight-current-row
|
||||||
<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="序号" type="index"></el-table-column>
|
||||||
</el-table>
|
<el-table-column label="往来单位ID" prop="unitId" width="100" show-overflow-tooltip></el-table-column>
|
||||||
<pagination
|
<el-table-column label="往来单位" prop="name" show-overflow-tooltip></el-table-column>
|
||||||
v-show="total>0"
|
<el-table-column label="拼音简写" prop="spell" width="100" show-overflow-tooltip></el-table-column>
|
||||||
:total="total"
|
<el-table-column label="地址" prop="addr" show-overflow-tooltip></el-table-column>
|
||||||
:page.sync="filterQuery.page"
|
<el-table-column label="社会信用号" prop="creditNo" width="140" show-overflow-tooltip></el-table-column>
|
||||||
:limit.sync="filterQuery.limit"
|
<el-table-column label="联系人" prop="contact" width="100" show-overflow-tooltip></el-table-column>
|
||||||
@pagination="getList"
|
<el-table-column label="联系电话" prop="mobile" show-overflow-tooltip></el-table-column>
|
||||||
/>
|
</el-table>
|
||||||
</el-card>
|
<pagination
|
||||||
</div>
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="filterQuery.page"
|
||||||
|
:limit.sync="filterQuery.limit"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
</el-card>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
filterDetail,
|
filterDetail,
|
||||||
} from "@/api/thrsys/thrCorpsImport";
|
} from "@/api/thrsys/thrCorpsImport";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "ThrCorpsImportDetail",
|
name: "ThrCorpsImportDetail",
|
||||||
props: {
|
props: {
|
||||||
currentRow: {
|
currentRow: {
|
||||||
type: Object,
|
type: Object,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
filterQuery: {
|
showSearch: true,
|
||||||
genKey: null,
|
filterQuery: {
|
||||||
unitId: null,
|
genKey: null,
|
||||||
name: null,
|
unitId: null,
|
||||||
status: null,
|
name: null,
|
||||||
page: 1,
|
status: null,
|
||||||
limit: 10,
|
page: 1,
|
||||||
},
|
limit: 10,
|
||||||
list: [],
|
},
|
||||||
detailList: [],
|
list: [],
|
||||||
total: 0,
|
detailList: [],
|
||||||
status: {
|
total: 0,
|
||||||
0: "未处理",
|
status: {
|
||||||
1: "处理失败",
|
0: "未处理",
|
||||||
2: "处理成功"
|
1: "处理失败",
|
||||||
},
|
2: "处理成功"
|
||||||
};
|
},
|
||||||
},
|
};
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onReset() {
|
onReset() {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: "",
|
path: "",
|
||||||
});
|
});
|
||||||
this.filterQuery = {
|
this.filterQuery = {
|
||||||
genKey: null,
|
genKey: null,
|
||||||
unitId: null,
|
unitId: null,
|
||||||
name: null,
|
name: null,
|
||||||
status: null,
|
status: null,
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 10,
|
limit: 10,
|
||||||
};
|
};
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
getList() {
|
hideSearch() {
|
||||||
this.loading = true;
|
this.showSearch = !this.showSearch;
|
||||||
console.log(" this.genKey = " + this.currentRow)
|
},
|
||||||
this.filterQuery.genKey = this.currentRow.genKey;
|
getList() {
|
||||||
filterDetail(this.filterQuery)
|
this.loading = true;
|
||||||
.then((response) => {
|
console.log(" this.genKey = " + this.currentRow)
|
||||||
|
this.filterQuery.genKey = this.currentRow.genKey;
|
||||||
|
filterDetail(this.filterQuery)
|
||||||
|
.then((response) => {
|
||||||
|
|
||||||
if (response.code == 20000) {
|
if (response.code == 20000) {
|
||||||
this.list = response.data.list || [];
|
this.list = response.data.list || [];
|
||||||
this.total = response.data.total || 0;
|
this.total = response.data.total || 0;
|
||||||
}else {
|
} else {
|
||||||
this.$message.error(response.message);
|
this.$message.error(response.message);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.list = [];
|
this.list = [];
|
||||||
this.total = 0;
|
this.total = 0;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
statusFilterType(status) {
|
statusFilterType(status) {
|
||||||
const statusMap = {
|
const statusMap = {
|
||||||
0: "warning",
|
0: "warning",
|
||||||
1: "danger",
|
1: "danger",
|
||||||
2: "success",
|
2: "success",
|
||||||
};
|
};
|
||||||
return statusMap[status];
|
return statusMap[status];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
filters: {},
|
filters: {},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
.itemTag {
|
.itemTag {
|
||||||
float: left;
|
float: left;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-family: "Microsoft YaHei";
|
font-family: "Microsoft YaHei";
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-row {
|
.el-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-col {
|
.el-col {
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue