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