|
@@ -3,6 +3,7 @@
|
|
|
<div class="d-flex flex-between pt7">
|
|
|
<div>
|
|
|
<el-button type="primary" @click="exportAll">导出</el-button>
|
|
|
+ <el-button type="primary" @click="addData">生成学生人数统计</el-button>
|
|
|
<!-- <el-button type="primary" @click="addData">添加</el-button>
|
|
|
<el-button
|
|
|
type="danger"
|
|
@@ -55,6 +56,10 @@
|
|
|
</div>
|
|
|
|
|
|
<el-table
|
|
|
+ class="print_table"
|
|
|
+ width="100%"
|
|
|
+ cellpadding="0"
|
|
|
+ cellspacing="0"
|
|
|
:data="tableData"
|
|
|
tooltip-effect="dark"
|
|
|
v-loading="loading"
|
|
@@ -120,140 +125,105 @@
|
|
|
></el-pagination>
|
|
|
</footer>
|
|
|
|
|
|
- <el-dialog :visible.sync="detailDialogFormVisible" width="700px">
|
|
|
- <div id="printBox">
|
|
|
- <h3 class="text-center mb45">XXX学校高等教育学生学籍卡</h3>
|
|
|
- <el-form ref="form" :model="dialogForm" label-width="0px">
|
|
|
- <table class="form-table" cellpadding="0" cellspacing="0">
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <h3 class="font-size-14">学生姓名</h3>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div class="font-size-14">
|
|
|
- {{ detailInfo.xdx_xsxm }}
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <h3 class="font-size-14">性别</h3>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div class="font-size-14">{{ detailInfo.xdx_xb_option_n }}</div>
|
|
|
- </td>
|
|
|
-
|
|
|
- <td rowspan="5" class="text-center">
|
|
|
- <img
|
|
|
- v-if="detailInfo.xdx_sczp"
|
|
|
- style="width: 120px; height: 160px"
|
|
|
- :src="detailInfo.xdx_sczp"
|
|
|
- alt=""
|
|
|
- />
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <h3 class="font-size-14">民族</h3>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div class="font-size-14">{{ detailInfo.xdx_mz }}</div>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <h3 class="font-size-14">出生年月</h3>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div class="font-size-14">{{ detailInfo.xdx_csrq }}</div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <h3 class="font-size-14">身份证号</h3>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div class="font-size-14">{{ detailInfo.xdx_zjhm }}</div>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <h3 class="font-size-14">政治面貌</h3>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div class="font-size-14">{{ detailInfo.xdx_zzmm }}</div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <h3 class="font-size-14">籍贯</h3>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div class="font-size-14">{{ detailInfo.xdx_jg }}</div>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <h3 class="font-size-14">家庭住址</h3>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div class="font-size-14">{{ detailInfo.xdx_jtzz }}</div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <h3 class="font-size-14" style="height: 53px">爱好</h3>
|
|
|
- </td>
|
|
|
- <td colspan="3">
|
|
|
- <div class="font-size-14" style="height: 53px">
|
|
|
- {{ detailInfo.xdx_ahtc }}
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- <table class="form-table-two" cellpadding="0" cellspacing="0">
|
|
|
- <tr v-if="jtcyDetailInfo.length > 0">
|
|
|
- <td rowspan="3" class="w20">
|
|
|
- <h3 class="font-size-14">家庭主要</h3>
|
|
|
- </td>
|
|
|
- <td class="w10">
|
|
|
- <h3 class="font-size-14">称谓</h3>
|
|
|
- </td>
|
|
|
- <td class="w10">
|
|
|
- <h3 class="font-size-14">姓名</h3>
|
|
|
- </td>
|
|
|
- <td class="w15">
|
|
|
- <h3 class="font-size-14">政治面貌</h3>
|
|
|
- </td>
|
|
|
- <td class="w20">
|
|
|
- <h3 class="font-size-14">工作单位</h3>
|
|
|
- </td>
|
|
|
- <td class="w10">
|
|
|
- <h3 class="font-size-14">职务</h3>
|
|
|
- </td>
|
|
|
- <td class="w20">
|
|
|
- <h3 class="font-size-14">手机号码</h3>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
+ <el-dialog :visible.sync="detailDialogFormVisible" width="820px">
|
|
|
+ <div class="w-210mm mx-auto">
|
|
|
+ <div
|
|
|
+ class="py-4 px-18 w-210mm relative min-h-40 text-black"
|
|
|
+ id="printBox"
|
|
|
+ >
|
|
|
+ <el-form ref="form" :model="dialogForm">
|
|
|
+ <table
|
|
|
+ class="print_table"
|
|
|
+ width="100%"
|
|
|
+ cellpadding="0"
|
|
|
+ cellspacing="0"
|
|
|
+ >
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <td colspan="14">{{ school_name }}学生学籍卡</td>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <!-- <tr>
|
|
|
+ <td colspan="14">景宁畲族自治县教育局</td>
|
|
|
+ </tr> -->
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2">学生姓名</td>
|
|
|
+ <td colspan="4">{{ detailInfo.xdx_xsxm }}</td>
|
|
|
+ <td colspan="2">性别</td>
|
|
|
+ <td colspan="4">
|
|
|
+ {{ detailInfo.xdx_xb_option_n }}
|
|
|
+ </td>
|
|
|
+ <td
|
|
|
+ rowspan="4"
|
|
|
+ style="width: 114px; height: 156px; padding: 0 0 0 1px"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ v-if="detailInfo.xdx_sczp"
|
|
|
+ style="width: 114px; height: 156px"
|
|
|
+ :src="detailInfo.xdx_sczp"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2">民族</td>
|
|
|
+ <td colspan="4">{{ detailInfo.xdx_mz }}</td>
|
|
|
+ <td colspan="2">出生年月</td>
|
|
|
+ <td colspan="4" class="ignore">{{ detailInfo.xdx_csrq }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2">身份证号</td>
|
|
|
+ <td colspan="4">{{ detailInfo.xdx_zjhm }}</td>
|
|
|
+ <td colspan="2">政治面貌</td>
|
|
|
+ <td colspan="4" class="ignore">{{ detailInfo.xdx_zzmm }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2">籍贯</td>
|
|
|
+ <td colspan="4">{{ detailInfo.xdx_jg }}</td>
|
|
|
+ <td colspan="2"></td>
|
|
|
+ <td colspan="4" class="ignore"></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2">家庭住址</td>
|
|
|
+ <td colspan="12">{{ detailInfo.xdx_jtzz }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2">爱好</td>
|
|
|
+ <td colspan="12">{{ detailInfo.xdx_ahtc }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr v-if="jtcyDetailInfo.length > 0">
|
|
|
+ <td
|
|
|
+ class="last"
|
|
|
+ colspan="2"
|
|
|
+ :rowspan="jtcyDetailInfo.length + 1"
|
|
|
+ >
|
|
|
+ 家庭主要
|
|
|
+ </td>
|
|
|
+ <td colspan="2">称谓</td>
|
|
|
+ <td colspan="2">姓名</td>
|
|
|
+ <td colspan="2">政治面貌</td>
|
|
|
+ <td colspan="2">工作单位</td>
|
|
|
+ <td colspan="2">职务</td>
|
|
|
+ <td colspan="2">手机号码</td>
|
|
|
+ </tr>
|
|
|
|
|
|
- <tr v-for="(item, index) in jtcyDetailInfo" :key="index">
|
|
|
- <td>
|
|
|
- <div class="font-size-14">{{ item.xdxj_cw }}</div>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div class="font-size-14">{{ item.xdxj_xm }}</div>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div class="font-size-14">{{ item.xdxj_zzmm }}</div>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div class="font-size-14">{{ item.xdxj_gzdw }}</div>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div class="font-size-14">{{ item.xdxj_zw }}</div>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div class="font-size-14">{{ item.xdxj_sjhm }}</div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </el-form>
|
|
|
- </div>
|
|
|
- <div slot="footer" class="text-center">
|
|
|
- <el-button @click="formCancel">取 消</el-button>
|
|
|
- <el-button type="primary" @click="printHTML">打印</el-button>
|
|
|
+ <tr v-for="(item, index) in jtcyDetailInfo" :key="index">
|
|
|
+ <td colspan="2" class="ignore">{{ item.xdxj_cw }}</td>
|
|
|
+ <td colspan="2">{{ item.xdxj_xm }}</td>
|
|
|
+ <td colspan="2">{{ item.xdxj_zzmm }}</td>
|
|
|
+ <td colspan="2">{{ item.xdxj_gzdw }}</td>
|
|
|
+ <td colspan="2">{{ item.xdxj_zw }}</td>
|
|
|
+ <td colspan="2">{{ item.xdxj_sjhm }}</td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ <div slot="footer" class="text-center">
|
|
|
+ <el-button @click="formCancel">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="printHTML">打印</el-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -263,7 +233,7 @@
|
|
|
import { xjk_list, xjk_detail, family_list, xqgl_list } from "./api";
|
|
|
import { request } from "@/utils/request";
|
|
|
import { useUserStore } from "@/stores/user";
|
|
|
-const { token } = useUserStore();
|
|
|
+const { token, user_org } = useUserStore();
|
|
|
export default {
|
|
|
name: "index",
|
|
|
data() {
|
|
@@ -317,9 +287,32 @@ export default {
|
|
|
detailDialogFormVisible: false,
|
|
|
jtcyDetailInfo: [],
|
|
|
team_id: "",
|
|
|
+ school_name: "",
|
|
|
+ dept_id: "",
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
+ addData() {
|
|
|
+ this.loading = true;
|
|
|
+ request({
|
|
|
+ url: "xddy/dygl_xsrstjlb/recreate_data",
|
|
|
+ data: {
|
|
|
+ token: token,
|
|
|
+ site: "jnmf",
|
|
|
+ client: "web",
|
|
|
+ api: "json",
|
|
|
+ page: "1",
|
|
|
+ limit: "10000",
|
|
|
+ issubmit: 1,
|
|
|
+ dept_id: this.dept_id,
|
|
|
+ },
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code == "1") {
|
|
|
+ this.loading = false;
|
|
|
+ this.getListData();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
printHTML() {
|
|
|
this.$print({
|
|
|
printable: "printBox",
|
|
@@ -332,7 +325,7 @@ export default {
|
|
|
this.cur_page = val;
|
|
|
this.getListData();
|
|
|
},
|
|
|
- async getListData() {
|
|
|
+ getListData() {
|
|
|
this.loading = true;
|
|
|
xqgl_list({ limit: 999 }).then((res) => {
|
|
|
if (res.code == 1) {
|
|
@@ -347,7 +340,7 @@ export default {
|
|
|
xdx_xsxh: this.xdx_xsxh,
|
|
|
xdx_lxfs: this.xdx_lxfs,
|
|
|
class_name: this.class_name,
|
|
|
- team_id: this.team_id,
|
|
|
+ // team_id: this.team_id,
|
|
|
};
|
|
|
xjk_list(data).then((res) => {
|
|
|
this.loading = false;
|
|
@@ -379,7 +372,9 @@ export default {
|
|
|
if (res.code == 1) {
|
|
|
this.detailInfo = res.data.one_info;
|
|
|
let a = this.detailInfo.xdx_sczp.indexOf("|");
|
|
|
- this.detailInfo.xdx_sczp = this.detailInfo.xdx_sczp.substring(0, a);
|
|
|
+ this.detailInfo.xdx_sczp =
|
|
|
+ window.globalVariables.api +
|
|
|
+ this.detailInfo.xdx_sczp.substring(0, a);
|
|
|
console.log(this.detailInfo.xdx_sczp, 123);
|
|
|
}
|
|
|
});
|
|
@@ -394,6 +389,9 @@ export default {
|
|
|
},
|
|
|
|
|
|
formCancel() {
|
|
|
+ this.detailInfo = {};
|
|
|
+ this.jtcyDetailInfo = {};
|
|
|
+ this.dialogFormVisible = false;
|
|
|
this.detailDialogFormVisible = false;
|
|
|
},
|
|
|
|
|
@@ -417,47 +415,22 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.getListData();
|
|
|
+ if (user_org) {
|
|
|
+ user_org.map((item) => {
|
|
|
+ if (item.uo_type === "2") {
|
|
|
+ this.school_name = item.uo_name;
|
|
|
+ this.dept_id = item.uo_id;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
|
|
|
-
|
|
|
<style lang="scss" scoped>
|
|
|
+@import "/public/print.css";
|
|
|
::v-deep .el-input {
|
|
|
width: 160px;
|
|
|
}
|
|
|
-.form-table {
|
|
|
- width: 100%;
|
|
|
- border-collapse: collapse;
|
|
|
- padding: auto;
|
|
|
- td {
|
|
|
- width: 20%;
|
|
|
- height: 30px;
|
|
|
- line-height: 30px;
|
|
|
- padding: 4px 4px 5px 5px;
|
|
|
- border: 1px solid #dbdbdb;
|
|
|
- }
|
|
|
- td:nth-child(odd) {
|
|
|
- background-color: #f0f3f8;
|
|
|
- }
|
|
|
- td:nth-child(5) {
|
|
|
- background-color: #fff;
|
|
|
- }
|
|
|
-}
|
|
|
-.form-table-two {
|
|
|
- width: 100%;
|
|
|
- border-collapse: collapse;
|
|
|
- padding: auto;
|
|
|
- td {
|
|
|
- height: 30px;
|
|
|
- line-height: 30px;
|
|
|
- padding: 4px 4px 5px 5px;
|
|
|
- border: 1px solid #dbdbdb;
|
|
|
- border-top: none;
|
|
|
- }
|
|
|
- tr:first-child {
|
|
|
- background-color: #f0f3f8;
|
|
|
- }
|
|
|
-}
|
|
|
-</style>
|
|
|
+</style>
|