| | |
| | | placeholder="请输入体检号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | @blur="handleQuery" |
| | | @blur="hb" |
| | | style="width: 160px" |
| | | /> |
| | | </el-form-item> |
| | |
| | | <!-- </div> --> |
| | | </div> |
| | | |
| | | <div style="margin-right: 70%"> |
| | | <pagination |
| | | v-show="total > 0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | <div class="pag"> |
| | | <div class="pag1"> |
| | | <pagination |
| | | v-show="total > 0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <el-drawer |
| | | title="我是标题" |
| | |
| | | </div> |
| | | </div> |
| | | <div class="tanchuangbox_right"> |
| | | <div> |
| | | <div v-if="row.tjType == '02'"> |
| | | <span>职业史</span> |
| | | <div style="width: 100%; min-height: 300px"></div> |
| | | <div style="width: 100%; min-height: 200px; margin-top: 10px"> |
| | | <el-table |
| | | border |
| | | :data="row.workLogs" |
| | | style="width: 100%" |
| | | max-height="200" |
| | | > |
| | | <el-table-column |
| | | prop="beginTime" |
| | | label="开始时间" |
| | | align="center" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="endTime" |
| | | label="结束时间" |
| | | align="center" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="workCompany" |
| | | label="工作单位" |
| | | align="center" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="workDept" |
| | | label="部门" |
| | | align="center" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="workType" |
| | | label="工种" |
| | | align="center" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | | <div style="display: flex; margin-top: 20px"> |
| | | <div |
| | |
| | | </div> |
| | | <div style="margin-top: 20px"> |
| | | <span>检查医生:</span> |
| | | <el-input |
| | | v-model="input" |
| | | style="width: 160px; margin-right: 10px" |
| | | ></el-input> |
| | | <el-date-picker v-model="value1" type="date" placeholder="选择日期"> |
| | | </el-date-picker> |
| | | <el-select |
| | | v-model="doctorName" |
| | | placeholder="请选择" |
| | | style="width: 30%" |
| | | filterable |
| | | @change="selName" |
| | | > |
| | | <el-option |
| | | v-for="item in userList" |
| | | :key="item.userId" |
| | | :label="item.nickName" |
| | | :value="item.userId" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | <!-- <el-date-picker v-model="value1" type="date" placeholder="选择日期"> |
| | | </el-date-picker> --> |
| | | </div> |
| | | <div style="margin-top: 20px"> |
| | | <!-- <el-button type="primary">生成小结</el-button> --> |
| | |
| | | require("echarts/lib/component/tooltip"); |
| | | require("echarts/lib/component/legend"); |
| | | require("echarts/lib/chart/pie"); |
| | | |
| | | import { listUser } from "@/api/system/user"; |
| | | import { getInfo } from "@/api/login"; |
| | | import Public from "@/components/public"; |
| | | export default { |
| | | dicts: [ |
| | |
| | | components: { Public }, |
| | | data() { |
| | | return { |
| | | remark:"", |
| | | tjNum:"", |
| | | doctorName:"", |
| | | userList: [], |
| | | remark: "", |
| | | pureTestId: "", |
| | | youerList: { |
| | | qdwb: null, |
| | |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | this.getListUser(); |
| | | }, |
| | | mounted() { |
| | | this.$nextTick(() => { |
| | |
| | | }); |
| | | }, |
| | | methods: { |
| | | /** 查询用户列表 */ |
| | | getListUser() { |
| | | listUser(this.addDateRange(this.queryParams, this.dateRange)).then( |
| | | (response) => { |
| | | this.userList = response.rows; |
| | | // this.userList.forEach((element) => { |
| | | // const userName = this.$store.state.user.name; |
| | | // if (userName == element.userName) { |
| | | // this.doctorName = element.nickName; |
| | | // } |
| | | // }); |
| | | } |
| | | ); |
| | | getInfo().then((response) => { |
| | | this.info = response.user; |
| | | this.deptId = response.user.deptId; |
| | | this.userId = response.user.userId; |
| | | this.nickName = response.user.nickName; |
| | | }); |
| | | }, |
| | | ysels(val) { |
| | | this.youeryuanshi1[0] = val; |
| | | this.getech(); |
| | |
| | | this.zuoerjiaozheng1[5] = val; |
| | | this.getech3(); |
| | | }, |
| | | selName(val) { |
| | | this.doctorName = val; |
| | | console.log(this.doctorName); |
| | | // this.userList.forEach(item =>{ |
| | | // if(val === item.userId){ |
| | | // this.doctorName = item.nickName |
| | | // } |
| | | // }) |
| | | }, |
| | | handleRowClick(selection) { |
| | | this.row = selection.customer; |
| | | selection.list.forEach((item) => { |
| | |
| | | }); |
| | | this.row.tjType = Number(selection.customer.tjType); |
| | | this.drawer = true; |
| | | let pureTestId = this.pureTestId; |
| | | getTjPureToneTestDetilList(pureTestId).then((res) => { |
| | | if (res.data != []) { |
| | | res.data.forEach((item) => { |
| | | let data = { |
| | | pureTestId:this.pureTestId, |
| | | tjNum:this.row.tjNumber, |
| | | } |
| | | getTjPureToneTestDetilList(data).then((res) => { |
| | | if (res.data != {}) { |
| | | this.doctorName = res.data.doctorName; |
| | | this.remark = res.data.remark; |
| | | res.data.detilList.forEach((item) => { |
| | | if (item.rd == "右耳") { |
| | | this.youerList = item; |
| | | this.youeryuanshi1[0] = this.youerList.qdwb; |
| | |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | hb(){ |
| | | if (this.queryParams.tjNum != null) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | |
| | | this.zuoerList.rd = "左耳"; |
| | | this.shuangerList.pureTestId = this.pureTestId; |
| | | this.shuangerList.rd = "双耳"; |
| | | let data = [this.youerList, this.zuoerList, this.shuangerList]; |
| | | saveTjPureToneTestDetil(data).then((res) => { |
| | | let pureToneTestDetils = [this.youerList, this.zuoerList, this.shuangerList]; |
| | | let remark = this.remark; |
| | | let tjNum = this.row.tjNumber; |
| | | let doctorName = this.doctorName; |
| | | saveTjPureToneTestDetil(pureToneTestDetils,remark,tjNum,doctorName).then((res) => { |
| | | console.log(res); |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("提交成功"); |
| | |
| | | .ss_txt { |
| | | width: 60px; |
| | | } |
| | | .pag { |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: center; |
| | | } |
| | | |
| | | .pag1 { |
| | | width: 30%; |
| | | } |
| | | </style> |