This commit is contained in:
曹辉 2022-09-29 17:41:18 +08:00
parent c1367e7aa9
commit 95dcb99f1e
2 changed files with 1234 additions and 62 deletions

View File

@ -8,10 +8,44 @@
v-show="showSearch"
label-width="90px"
>
<kindergarten
@kinbatlist="kinbatlist"
style="display: inline; padding: 20px 0 20px 0"
></kindergarten>
<el-form-item label="所属幼儿园" prop="categoryName">
<el-button
@click="kindergartenshow = true"
v-if="kindergartenName == '请选择幼儿园'"
style="
width: 230px;
text-align: left;
height: 32px;
color: #c0c4cc;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
"
>{{ kindergartenName }}</el-button
>
<el-button
@click="kindergartenshow = true"
style="width: 230px; text-align: left; height: 32px"
v-else
>{{ kindergartenName }}</el-button
>
</el-form-item>
<el-form-item label="所属批次" prop="categoryName">
<el-button
@click="batchCodeshowclick"
style="width: 230px; text-align: left; height: 32px; color: #c0c4cc"
v-if="batchName == '请选择批次'"
>{{ batchName }}</el-button
>
<el-button
@click="batchCodeshowclick"
style="width: 230px; text-align: left; height: 32px"
v-else
>{{ batchName }}</el-button
>
</el-form-item>
<el-form-item label="报告名称" prop="reportName">
<el-input
v-model="queryParams.reportName"
@ -30,14 +64,20 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="审核状态" prop="checkTime">
<el-input
v-model="queryParams.reportName"
<el-form-item label="审核状态" prop="checkStatus">
<el-select
v-model="queryParams.checkStatus"
placeholder="请选择审核状态"
style="width: 230px"
placeholder="请输入报告名称"
clearable
@keyup.enter.native="handleQuery"
/>
>
<el-option
v-for="item in checkStatuslist"
:key="item.value"
:label="item.name"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button
@ -105,6 +145,17 @@
size="mini"
type="text"
icon="el-icon-download"
v-if="scope.row.checkStatus == 1"
@click="handleExport(scope.row)"
v-hasPermi="['system:kindergartenCheckReport:download']"
>下载</el-button
>
<el-button
disabled
size="mini"
type="text"
icon="el-icon-download"
v-else
@click="handleExport(scope.row)"
v-hasPermi="['system:kindergartenCheckReport:download']"
>下载</el-button
@ -118,7 +169,7 @@
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
@pagination="info"
/>
<!-- 修改幼儿园检测报告对话框 -->
@ -138,7 +189,7 @@
<el-form-item label="报告内容" prop="reportName">
<iframe
ref="pdfCotainer"
:src="pdfurl"
:src="pdfurl + '#toolbar=0'"
width="1000px"
height="550px"
></iframe>
@ -171,15 +222,207 @@
<div style="height: 600px">
<iframe
ref="pdfCotainer"
:src="pdfurl"
:src="pdfurl + '#toolbar=0'"
width="1000px"
height="600px"
frameborder="0"
></iframe>
</div>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="openiframe = false">关闭</el-button>
</div>
</el-dialog>
<!-- // -->
<el-dialog
width="700px"
title="选择批次"
:visible.sync="batchCodeshow"
append-to-body
style="margin-top: 20px"
:before-close="batchCodecancel"
>
<el-form
:model="testqueryParams"
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="90px"
>
<el-form-item label="批次编号" prop="batchCode">
<el-input
v-model="testqueryParams.batchCode"
placeholder="请输入批次编号"
clearable
/>
</el-form-item>
<el-form-item label="批次名称" prop="batchCode">
<el-input
v-model="testqueryParams.batchName"
placeholder="请输入批次名称"
clearable
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="testScore"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="testresetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
<el-table
:data="testScorelist"
align="center"
style="margin-top: 0px"
@cell-dblclick="batchCodeclick"
>
<el-table-column label="请选择" width="200" align="center">
<template slot-scope="scope">
<el-button
type="primary"
style="width: 20px; height: 20px"
v-if="batchCode == scope.row.batchCode"
circle
@click="batchCodeclick(scope.row)"
></el-button>
<el-button
v-else
style="width: 15px; height: 15px"
circle
@click="batchCodeclick(scope.row)"
></el-button>
</template>
</el-table-column>
<el-table-column
property="batchCode"
label="批次编号"
width="230"
align="center"
/>
<el-table-column
property="batchName"
label="批次名称"
width="230"
align="center"
/>
</el-table>
<pagination
v-show="total4 > 0"
:total="total4"
:page.sync="testqueryParams.pageNum"
:limit.sync="testqueryParams.pageSize"
@pagination="testScore"
/>
</el-dialog>
<!-- // -->
<el-dialog
width="850px"
title="选择所属幼儿园"
:visible.sync="kindergartenshow"
append-to-body
:before-close="kindergartencancel"
>
<el-form
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="110px"
>
<el-form-item label="幼儿园名称" prop="kindergartenName">
<el-input
style="width: 200px"
v-model="kqueryParams.kindergartenName"
placeholder="请输入幼儿园名称"
></el-input>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="kinhandleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="kinresetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
<el-table :data="kindergartenList" @cell-dblclick="kindergartenNameclick">
<el-table-column label="请选择" width="70" align="center">
<template slot-scope="scope">
<el-button
type="primary"
style="width: 15px; height: 15px"
circle
@click="kindergartenNameclick(scope.row)"
v-if="kindergartenId == scope.row.id"
></el-button>
<el-button
v-else
style="width: 15px; height: 15px"
circle
@click="kindergartenNameclick(scope.row)"
></el-button>
</template>
</el-table-column>
<el-table-column
property="kindergartenName"
label="幼儿园名字"
width="150"
align="center"
>
</el-table-column>
<el-table-column
property="kindergartenAddress"
label="幼儿园地址"
width="150"
align="center"
>
</el-table-column>
<el-table-column
label="幼儿园所在组织"
align="center"
prop="organizeName"
width="150"
>
</el-table-column>
<el-table-column
property="contacts"
label="联系人"
width="150"
align="center"
>
</el-table-column>
<el-table-column
property="phone"
label="联系电话"
width="150"
align="center"
>
</el-table-column>
</el-table>
<pagination
v-show="total1 > 0"
:total="total1"
:page.sync="kqueryParams.pageNum"
:limit.sync="kqueryParams.pageSize"
@pagination="getList"
/>
</el-dialog>
</div>
</template>
@ -192,12 +435,61 @@ import {
} from "@/api/system/kindergartenCheckReport";
import kindergarten from "../../assembly/kindergarten.vue";
import baseurl from "@/api/baseurl.js";
import {
listKindergartenInfo,
tKindergartenInfo,
} from "@/api/system/kindergartenInfo";
import { getRoleInfo, testScoreBatch } from "@/api/system/quality";
export default {
components: { kindergarten },
name: "KindergartenCheckReport",
data() {
return {
checkStatuslist: [
{
value: 0,
name: "未审核",
},
{
value: 1,
name: "已审核",
},
],
total1: 0,
total4: 0,
//
kindergartenshow: false,
batchCodeshow: false,
//
showSearch: true,
//
kqueryParams: {
pageNum: 1,
pageSize: 10,
organizeId: null,
kindergartenName: null,
kindergartenAddress: null,
kindergartenType: null,
phone: null,
contacts: null,
},
//list
kindergartenList: [],
//
kindergartenName: "请选择幼儿园",
//ID
kindergartenId: "",
//
batchCode: "",
batchName: "请选择批次",
//list
testScorelist: [],
//
testqueryParams: {
pageNum: 1,
pageSize: 10,
},
//
loading: true,
openiframe: false,
@ -241,10 +533,11 @@ export default {
},
created() {
this.getList();
this.info();
},
methods: {
/** 查询幼儿园检测报告列表 */
getList() {
info() {
this.loading = true;
listKindergartenCheckReport(this.queryParams).then((response) => {
this.kindergartenCheckReportList = response.rows;
@ -252,6 +545,20 @@ export default {
this.loading = false;
});
},
getList() {
this.loading = true;
tKindergartenInfo(this.kindergartenType).then((res) => {
this.type = res.data[0];
this.type2 = res.data[1];
});
//list
listKindergartenInfo(this.kqueryParams).then((response) => {
this.kindergartenList = response.rows;
this.total1 = response.total;
// console.log(this.kindergartenList);
});
},
//
cancel() {
this.open = false;
@ -283,10 +590,29 @@ export default {
handleQuery() {
console.log(this.queryParams);
this.queryParams.pageNum = 1;
this.getList();
this.info();
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
pageNum: 1,
pageSize: 10,
kindergartenId: null,
batchCode: null,
reportCode: null,
reportName: null,
physicalSynthAnalysis: null,
downloadAddress: null,
motionLibraryId: null,
checkUserId: null,
checkTime: null,
checkStatus: null,
};
this.kindergartenName = "请选择幼儿园";
this.kindergartenId = "";
//
this.batchCode = "";
this.batchName = "请选择批次";
this.resetForm("queryForm");
this.handleQuery();
},
@ -294,9 +620,10 @@ export default {
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
this.form = row;
existKindergartenCheckReport(row.kindergartenId, row.batchCode).then(
(response) => {
console.log(response);
console.log(this.form);
if (response.code == 200) {
this.title = "修改幼儿园检测报告审批状态";
this.pdfurl = baseurl + response.data.downloadAddress;
@ -315,23 +642,20 @@ export default {
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.id != null) {
updateKindergartenCheckReport(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.queryParams = {
pageNum: 1,
pageSize: 10,
kindergartenId: null,
batchCode: null,
};
this.getList();
});
}
}
});
console.log(this.form);
if (this.form.id != null) {
updateKindergartenCheckReport(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.queryParams = {
pageNum: 1,
pageSize: 10,
kindergartenId: null,
batchCode: null,
};
this.info();
});
}
},
//
lookhand(item) {
@ -360,6 +684,74 @@ export default {
kinbatlist(kindergartenId, batchCode) {
console.log(kindergartenId, batchCode);
},
//
kindergartenNameclick(row) {
this.kindergartenName = row.kindergartenName;
this.queryParams.kindergartenId = row.id;
this.kindergartenId = row.id;
this.kindergartenshow = false;
},
//
batchCodeclick(row) {
this.batchCode = row.batchCode;
this.batchName = row.batchName;
this.queryParams.batchCode = row.batchCode;
this.batchCodeshow = false;
},
//
batchCodeshowclick() {
this.testScore();
this.batchCodeshow = true;
},
//
testScore() {
testScoreBatch(this.testqueryParams).then((res) => {
this.testScorelist = res.rows;
this.total4 = res.total;
});
},
testresetQuery() {
this.testqueryParams = {
pageNum: 1,
pageSize: 10,
batchCode: "",
batchName: "",
};
this.testScore();
},
//
batchCodecancel() {
this.batchCodeshow = false;
this.testresetQuery();
},
//
kindergartencancel() {
this.kindergartenshow = false;
this.kinresetQuery();
},
kinhandleQuery() {
//list
listKindergartenInfo(this.kqueryParams).then((response) => {
this.kindergartenList = response.rows;
this.total1 = response.total;
// console.log(this.kindergartenList);
});
},
kinresetQuery() {
this.kqueryParams = {
pageNum: 1,
pageSize: 10,
organizeId: null,
kindergartenName: null,
kindergartenAddress: null,
kindergartenType: null,
phone: null,
contacts: null,
};
this.kinhandleQuery();
},
},
};
</script>

View File

@ -8,10 +8,34 @@
v-show="showSearch"
label-width="90px"
>
<student
style="display: inline; padding: 20px 0 20px 0"
@itemlist="itemlists"
></student>
<el-form-item label="学生姓名" prop="categoryName">
<el-button
@click="studentshowclick"
v-if="studentname == '请选择学生'"
style="width: 230px; text-align: left; height: 32px; color: #c0c4cc"
>{{ studentname }}</el-button
>
<el-button
@click="studentshowclick"
style="width: 230px; text-align: left; height: 32px"
v-else
>{{ studentname }}</el-button
>
</el-form-item>
<el-form-item label="所属批次" prop="categoryName">
<el-button
@click="batchCodeshowclick"
style="width: 230px; text-align: left; height: 32px; color: #c0c4cc"
v-if="batchName == '请选择批次'"
>{{ batchName }}</el-button
>
<el-button
@click="batchCodeshowclick"
style="width: 230px; text-align: left; height: 32px"
v-else
>{{ batchName }}</el-button
>
</el-form-item>
<el-form-item label="报告名称" prop="reportName">
<el-input
@ -32,13 +56,19 @@
/>
</el-form-item>
<el-form-item label="审核状态" prop="checkUserId">
<el-input
v-model="queryParams.checkUserId"
placeholder="请输入审核状态"
<el-select
v-model="queryParams.checkStatus"
placeholder="请选择审核状态"
style="width: 230px"
clearable
@keyup.enter.native="handleQuery"
/>
>
<el-option
v-for="item in checkStatuslist"
:key="item.value"
:label="item.name"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button
@ -102,6 +132,17 @@
type="text"
icon="el-icon-download"
@click="handleExport(scope.row)"
v-if="scope.row.checkStatus == 1"
v-hasPermi="['system:personalCheckReport:download']"
>下载</el-button
>
<el-button
disabled
size="mini"
type="text"
icon="el-icon-download"
v-else
@click="handleExport(scope.row)"
v-hasPermi="['system:personalCheckReport:download']"
>下载</el-button
>
@ -116,7 +157,437 @@
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- // -->
<el-dialog
width="950px"
title="选择学生"
:visible.sync="studentshow"
append-to-body
:before-close="studentcancel"
>
<el-form
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="90px"
>
<el-form-item label="所属幼儿园" prop="categoryName">
<el-button
@click="kindergartenshow = true"
v-if="kindergartenName == '请选择幼儿园'"
style="width: 200px; text-align: left; height: 32px; color: #c0c4cc"
>{{ kindergartenName }}</el-button
>
<el-button
@click="kindergartenshow = true"
style="width: 200px; text-align: left; height: 32px"
v-else
>{{ kindergartenName }}</el-button
>
</el-form-item>
<el-form-item label="所属班级" prop="categoryName" label-width="80px">
<el-button
@click="classshowclick"
style="width: 200px; text-align: left; height: 32px; color: #c0c4cc"
v-if="className == '请选择班级'"
>{{ className }}</el-button
>
<el-button
@click="classshowclick"
style="width: 200px; text-align: left; height: 32px"
v-else
>{{ className }}</el-button
>
</el-form-item>
<el-form-item label="学生姓名" prop="studentName" label-width="80px">
<el-input
style="width: 200px"
v-model="studentqueryParams.studentName"
placeholder="请输入学生姓名"
></el-input>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="studenthandleQuery"
>搜索</el-button
>
<el-button
icon="el-icon-refresh"
size="mini"
@click="studentresetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
<el-table
:data="studentInfoList"
align="center"
style="margin-top: 10px"
@cell-dblclick="studentclick"
>
<el-table-column label="请选择" width="70" align="center">
<template slot-scope="scope">
<el-button
type="primary"
style="width: 20px; height: 20px"
circle
v-if="studentId == scope.row.id"
@click="studentclick(scope.row)"
></el-button>
<el-button
v-else
style="width: 15px; height: 15px"
circle
@click="studentclick(scope.row)"
></el-button>
</template>
</el-table-column>
<el-table-column
property="className"
label="班级名称"
width="190"
align="center"
/>
<el-table-column
property="studentName"
label="学生姓名"
width="190"
align="center"
/>
<el-table-column
property="studentName"
label="性别"
width="190"
align="center"
>
<template slot-scope="scope">
{{ scope.row.studentSex == "MALE" ? "男" : "女" }}
</template>
</el-table-column>
<el-table-column
property="homeAddress"
label="住址"
width="190"
align="center"
/>
</el-table>
<pagination
v-show="total3 > 0"
:total="total3"
:page.sync="studentqueryParams.pageNum"
:limit.sync="studentqueryParams.pageSize"
@pagination="studentlist"
/>
</el-dialog>
<!-- // -->
<el-dialog
width="860px"
title="选择所属幼儿园"
:visible.sync="kindergartenshow"
append-to-body
:before-close="kindergartencancel"
>
<el-form
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="110px"
>
<el-form-item label="幼儿园名称" prop="kindergartenName">
<el-input
style="width: 200px"
v-model="kqueryParams.kindergartenName"
placeholder="请输入幼儿园名称"
></el-input>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="kinhandleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="kinresetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
<el-table :data="kindergartenList" @cell-dblclick="kindergartenNameclick">
<el-table-column label="请选择" width="70" align="center">
<template slot-scope="scope">
<el-button
type="primary"
style="width: 15px; height: 15px"
circle
@click="kindergartenNameclick(scope.row)"
v-if="kindergartenId == scope.row.id"
></el-button>
<el-button
v-else
style="width: 15px; height: 15px"
circle
@click="kindergartenNameclick(scope.row)"
></el-button>
</template>
</el-table-column>
<el-table-column
property="kindergartenName"
label="幼儿园名字"
width="150"
align="center"
>
</el-table-column>
<el-table-column
property="kindergartenAddress"
label="幼儿园地址"
width="150"
align="center"
>
</el-table-column>
<el-table-column
label="幼儿园所在组织"
align="center"
prop="organizeName"
width="150"
>
</el-table-column>
<el-table-column
property="contacts"
label="联系人"
width="150"
align="center"
>
</el-table-column>
<el-table-column
property="phone"
label="联系电话"
width="150"
align="center"
>
</el-table-column>
</el-table>
<pagination
v-show="total1 > 0"
:total="total1"
:page.sync="kqueryParams.pageNum"
:limit.sync="kqueryParams.pageSize"
@pagination="getList"
/>
</el-dialog>
<!-- // -->
<el-dialog
width="1050px"
title="选择所属班级"
:visible.sync="classshow"
append-to-body
:before-close="classcancel"
>
<el-form
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="110px"
>
<el-form-item label="班级名称" prop="className">
<el-input
style="width: 200px"
v-model="classqueryParams.className"
placeholder="请输入班级名称"
></el-input>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="classhandleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="classresetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
<el-table
:data="classinfoList"
align="center"
style="margin-top: 10px"
@cell-dblclick="classclick"
>
<el-table-column label="请选择" width="70" align="center">
<template slot-scope="scope">
<el-button
type="primary"
style="width: 20px; height: 20px"
circle
@click="classclick(scope.row)"
v-if="classId == scope.row.id"
></el-button>
<el-button
v-else
style="width: 15px; height: 15px"
circle
@click="classclick(scope.row)"
></el-button>
</template>
</el-table-column>
<el-table-column
property="kindergartenName"
label="幼儿园名称"
width="190"
align="center"
/>
<el-table-column
property="className"
label="班级名称"
width="180"
align="center"
>
</el-table-column>
<el-table-column
property="classType"
label="班级类型"
width="160"
align="center"
>
<template slot-scope="scope">
{{ scope.row.classType == dictValue1 ? "大班" : "" }}
{{ scope.row.classType == dictValue2 ? "中班" : "" }}
{{ scope.row.classType == dictValue3 ? "小班" : "" }}
{{ scope.row.classType == dictValue4 ? "毕业" : "" }}
</template>
</el-table-column>
<el-table-column
property="classTeacher"
label="班主任姓名"
width="180"
align="center"
>
</el-table-column>
<el-table-column
property="phone"
label="联系电话"
width="190"
align="center"
>
</el-table-column>
</el-table>
<pagination
v-show="total2 > 0"
:total="total2"
:page.sync="classqueryParams.pageNum"
:limit.sync="classqueryParams.pageSize"
@pagination="classinfo"
/>
</el-dialog>
<!-- // -->
<el-dialog
width="700px"
title="选择批次"
:visible.sync="batchCodeshow"
append-to-body
style="margin-top: 20px"
:before-close="batchCodecancel"
>
<el-form
:model="testqueryParams"
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="90px"
>
<el-form-item label="批次编号" prop="batchCode">
<el-input
v-model="testqueryParams.batchCode"
placeholder="请输入批次编号"
clearable
/>
</el-form-item>
<el-form-item label="批次名称" prop="batchCode">
<el-input
v-model="testqueryParams.batchName"
placeholder="请输入批次名称"
clearable
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="testScore"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="testresetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
<el-table
:data="testScorelist"
align="center"
style="margin-top: 0px"
@cell-dblclick="batchCodeclick"
>
<el-table-column label="请选择" width="200" align="center">
<template slot-scope="scope">
<el-button
type="primary"
style="width: 20px; height: 20px"
v-if="batchCode == scope.row.batchCode"
circle
@click="batchCodeclick(scope.row)"
></el-button>
<el-button
v-else
style="width: 15px; height: 15px"
circle
@click="batchCodeclick(scope.row)"
></el-button>
</template>
</el-table-column>
<el-table-column
property="batchCode"
label="批次编号"
width="230"
align="center"
/>
<el-table-column
property="batchName"
label="批次名称"
width="230"
align="center"
/>
</el-table>
<pagination
v-show="total4 > 0"
:total="total4"
:page.sync="testqueryParams.pageNum"
:limit.sync="testqueryParams.pageSize"
@pagination="testScore"
/>
</el-dialog>
<!-- 修改个人体质检测报告对话框 -->
<el-dialog
:title="title"
@ -133,10 +604,11 @@
</el-form-item>
<iframe
ref="pdfCotainer"
:src="pdfurl"
:src="pdfurl + '#toolbar=0'"
width="1150px"
height="550px"
></iframe>
<!-- <el-form-item label="学生姓名" prop="studentId">
<el-input v-model="form.studentId" placeholder="请输入学生姓名" />
</el-form-item>
@ -162,10 +634,10 @@
width="1050px"
append-to-body
>
<div style="height: 600px">
<div>
<iframe
ref="pdfCotainer"
:src="pdfurl"
:src="pdfurl + '#toolbar=0'"
width="1000px"
height="600px"
></iframe>
@ -178,6 +650,13 @@
</template>
<script>
import {
listKindergartenInfo,
tKindergartenInfo,
} from "@/api/system/kindergartenInfo";
import { listStudentInfo } from "@/api/system/studentInfo";
import { listClassinfo } from "@/api/system/classinfo";
import { getRoleInfo, testScoreBatch } from "@/api/system/quality";
import {
listPersonalCheckReport,
updatePersonalCheckReport,
@ -186,11 +665,97 @@ import {
} from "@/api/system/personalCheckReport";
import student from "../../assembly/student.vue";
import baseurl from "@/api/baseurl.js";
export default {
components: { student },
name: "PersonalCheckReport",
data() {
return {
itemshow: false,
itemshow2: false,
total1: 0,
total2: 0,
total3: 0,
total4: 0,
//
kindergartenshow: false,
classshow: false,
studentshow: false,
batchCodeshow: false,
//
dictValue1: "",
dictValue2: "",
dictValue3: "",
dictValue4: "",
ClassType: "class_type",
//
showSearch: true,
//
form: {},
//
studentqueryParams: {
pageNum: 1,
pageSize: 10,
classId: "",
nationDictId: null,
studentName: null,
studentSex: null,
studentNumber: null,
birthDate: null,
cardNumber: null,
onceName: null,
homeAddress: null,
kindergartenId: null,
},
//
classqueryParams: {
pageNum: 1,
pageSize: 10,
kindergartenId: "",
className: null,
classType: null,
},
//
kqueryParams: {
pageNum: 1,
pageSize: 10,
organizeId: null,
kindergartenName: null,
kindergartenAddress: null,
kindergartenType: null,
phone: null,
contacts: null,
},
//list
kindergartenList: [],
//
kindergartenName: "请选择幼儿园",
//ID
kindergartenId: "",
//list
classinfoList: [],
//
className: "请选择班级",
//ID
classId: "",
//list
studentInfoList: [],
//
studentname: "请选择学生",
//ID
studentId: "",
//
batchCode: "",
batchName: "请选择批次",
//list
testScorelist: [],
//
sythesizestudent: [],
//
testqueryParams: {
pageNum: 1,
pageSize: 10,
},
//
loading: true,
openiframe: false,
@ -233,10 +798,21 @@ export default {
//
rules: {},
pdfurl: null,
checkStatuslist: [
{
value: 0,
name: "未审核",
},
{
value: 1,
name: "已审核",
},
],
};
},
created() {
this.getList();
this.listKindergartenInfoetList();
},
methods: {
/** 查询个人体质检测报告列表 */
@ -310,6 +886,31 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
this.kindergartenName = "请选择幼儿园";
this.kindergartenId = "";
this.className = "请选择班级";
this.classId = "";
this.studentname = "请选择学生";
this.studentId = "";
this.batchCode = "";
this.batchName = "请选择批次";
this.queryParams = {
pageNum: 1,
pageSize: 10,
studentId: null,
batchCode: null,
reportCode: null,
reportName: null,
syntheticalAssess: null,
physicalAnalysisExplain: null,
unqualifyItemExplain: null,
downloadAddress: null,
prescriptionAdvice: null,
motionLibraryId: null,
checkUserId: null,
checkTime: null,
checkStatus: null,
};
this.resetForm("queryForm");
this.handleQuery();
},
@ -337,7 +938,6 @@ export default {
}
});
},
//
lookhand(item) {
console.log(item);
@ -366,20 +966,200 @@ export default {
this.queryParams.batchCode = batchCode;
},
// /** */
// handleDelete(row) {
// const ids = row.id || this.ids;
// this.$modal
// .confirm('"' + ids + '"')
// .then(function () {
// return delPersonalCheckReport(ids);
// })
// .then(() => {
// this.getList();
// this.$modal.msgSuccess("");
// })
// .catch(() => {});
// },
//
classresetQuery() {
this.classqueryParams.className = "";
this.classinfo();
},
classhandleQuery() {
this.classinfo();
},
//
kinresetQuery() {
this.kqueryParams = {
pageNum: 1,
pageSize: 10,
organizeId: null,
kindergartenName: null,
kindergartenAddress: null,
kindergartenType: null,
phone: null,
contacts: null,
};
this.kinhandleQuery();
},
kinhandleQuery() {
listKindergartenInfo(this.kqueryParams).then((response) => {
this.kindergartenList = response.rows;
this.total1 = response.total;
// console.log(this.kindergartenList);
});
},
//
studentresetQuery() {
this.kindergartenName = "请选择幼儿园";
this.kindergartenId = "";
this.className = "请选择班级";
this.classId = "";
this.studentname = "请选择学生";
this.studentId = "";
this.studentqueryParams = {
pageNum: 1,
pageSize: 10,
classId: "",
nationDictId: null,
studentName: null,
studentSex: null,
studentNumber: null,
birthDate: null,
cardNumber: null,
onceName: null,
homeAddress: null,
kindergartenId: null,
};
this.studentlist();
},
//
studenthandleQuery() {
this.studentlist();
},
//
batchCodeshowclick() {
this.testScore();
this.batchCodeshow = true;
},
//
batchCodeclick(row) {
console.log(row);
this.batchCode = row.batchCode;
this.queryParams.batchCode = row.batchCode;
this.batchName = row.batchName;
this.batchCodeshow = false;
},
//
testScore() {
testScoreBatch(this.testqueryParams).then((res) => {
this.testScorelist = res.rows;
this.total4 = res.total;
});
},
testresetQuery() {
this.testqueryParams = {
pageNum: 1,
pageSize: 10,
batchCode: "",
batchName: "",
};
this.testScore();
},
//
batchCodecancel() {
this.batchCodeshow = false;
this.testresetQuery();
},
//
studentshowclick() {
this.studentshow = true;
this.studentlist();
},
//
studentclick(row) {
this.studentname = row.studentName;
this.studentId = row.id;
this.queryParams.studentId = row.id;
this.studentshow = false;
},
//
studentlist() {
listStudentInfo(this.studentqueryParams).then((res) => {
this.studentInfoList = res.rows;
this.total3 = res.total;
// console.log(this.studentInfoList);
});
},
//
classshowclick() {
console.log(this.classqueryParams);
if (
this.classqueryParams.kindergartenId == "" ||
this.classqueryParams.kindergartenId == null
) {
this.$message.error("请先选择幼儿园");
} else {
this.classshow = true;
this.classinfo();
}
// console.log(this.classqueryParams);
},
//
studentcancel() {
this.studentshow = false;
this.kindergartenName = "请选择幼儿园";
this.kindergartenId = "";
this.className = "请选择班级";
this.classId = "";
},
//
kindergartencancel() {
this.kindergartenshow = false;
},
//
classcancel() {
this.classshow = false;
},
//
classclick(row) {
// console.log(row);
this.className = row.className;
this.classId = row.id;
this.studentqueryParams.classId = row.id;
this.classshow = false;
this.studentname = "请选择学生";
this.studentId = "";
},
//
kindergartenNameclick(row) {
this.classqueryParams.kindergartenId = row.id;
this.studentqueryParams.kindergartenId = row.id;
this.className = "请选择班级";
this.classId = "";
this.studentname = "请选择学生";
this.studentId = "";
this.kindergartenName = row.kindergartenName;
this.kindergartenId = row.id;
this.kindergartenshow = false;
},
//
class() {
tKindergartenInfo(this.ClassType).then((res) => {
this.dictValue1 = res.data[0].dictValue;
this.dictValue2 = res.data[1].dictValue;
this.dictValue3 = res.data[2].dictValue;
this.dictValue4 = res.data[3].dictValue;
});
},
//list
classinfo() {
listClassinfo(this.classqueryParams).then((response) => {
this.classinfoList = response.rows;
this.total2 = response.total;
// console.log(this.classinfoList);
});
},
listKindergartenInfoetList() {
//list
listKindergartenInfo(this.kqueryParams).then((response) => {
this.kindergartenList = response.rows;
this.total1 = response.total;
// console.log(this.kindergartenList);
});
},
//
batchCodecancel() {
this.batchCodeshow = false;
},
},
};
</script>