| | |
| | | > |
| | | <el-button |
| | | type="primary" |
| | | @click="inputChange" |
| | | @click="inputChanges" |
| | | v-show="lishi" |
| | | size="mini" |
| | | :disabled="confirm" |
| | |
| | | ></iframe> |
| | | </div> |
| | | </el-dialog> |
| | | <el-drawer |
| | | title="历史体检记录" |
| | | :visible.sync="table" |
| | | direction="rtl" |
| | | size="50%" |
| | | > |
| | | <el-table :data="HistoryList" style="width: 95%; margin-left: 20px"> |
| | | <el-table-column |
| | | property="tjNum" |
| | | label="体检号" |
| | | align="center" |
| | | :show-overflow-tooltip="true" |
| | | ></el-table-column> |
| | | <el-table-column |
| | | property="userName" |
| | | label="姓名" |
| | | align="center" |
| | | :show-overflow-tooltip="true" |
| | | ></el-table-column> |
| | | <el-table-column |
| | | property="tjTime" |
| | | label="体检时间" |
| | | align="center" |
| | | :show-overflow-tooltip="true" |
| | | ></el-table-column> |
| | | <el-table-column |
| | | property="tjProName" |
| | | label="体检项目" |
| | | align="center" |
| | | :show-overflow-tooltip="true" |
| | | ></el-table-column> |
| | | </el-table> |
| | | </el-drawer> |
| | | <el-dialog |
| | | <el-dialog |
| | | title="提示" |
| | | :visible.sync="dialogVisiblese" |
| | | width="30%" |
| | |
| | | <el-button type="primary" @click="copes">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <historyTj :cusIdCard="form.cusIdcard" ref="historyTj"></historyTj> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | } from "@/api/system/tijian"; |
| | | import { MessageBox } from "element-ui"; |
| | | import VTreeTransfer from "../tijian/TreeTransfer.vue"; |
| | | import historyTj from "@/components/historyTj/index"; |
| | | export default { |
| | | components: { |
| | | VTreeTransfer, |
| | | VTreeTransfer,historyTj |
| | | }, |
| | | dicts: [ |
| | | "dict_user_national", |
| | |
| | | // } |
| | | // }; |
| | | return { |
| | | proIdList: [], |
| | | tableDatas: [], |
| | | dialogVisiblese: false, |
| | | lishi: false, |
| | |
| | | this.form.cusBrithday = birthday; |
| | | this.form.age = age; |
| | | } |
| | | let cusIdCard = this.form.cusIdcard; |
| | | getHistryTjOrderByCusIdCard(cusIdCard).then((res) => { |
| | | if (res.code == 200) { |
| | | |
| | | // let cusIdCard = this.form.cusIdcard; |
| | | // getHistryTjOrderByCusIdCard(cusIdCard).then((res) => { |
| | | // if (res.code == 200) { |
| | | this.table = true; |
| | | this.lishi = true; |
| | | this.HistoryList = res.data; |
| | | } |
| | | }); |
| | | // this.HistoryList = res.data; |
| | | // } |
| | | // }); |
| | | } else { |
| | | // return this.$message.error("请输入正确的身份证号!");; |
| | | } |
| | | }, |
| | | inputChanges(){ |
| | | this.$refs.historyTj.getlist(); |
| | | }, |
| | | cope() { |
| | | let cusIdCard = this.form.cusIdcard; |
| | | getHistryTjOrderProByCusIdCard(cusIdCard).then((res) => { |
| | | console.log(res); |
| | | this.copeList = res.data; |
| | | if (res.data.length != 0) { |
| | | if (res.msg !="暂无历史记录") { |
| | | this.dialogVisiblese = true; |
| | | } else { |
| | | this.$message.warning("暂无历史体检记录!"); |
| | |
| | | } |
| | | |
| | | let _this = this; |
| | | console.log(this.tableDatas.length); |
| | | if (this.tableDatas.length != 0) { |
| | | this.tableDatas.forEach((item) => { |
| | | _this.pacId = this.tableDatas.pacId; |
| | | _this.proId = this.tableDatas.proId; |
| | | console.log(_this.pacId, 888); |
| | | }); |
| | | |
| | | this.tableDatas.forEach((item) => { |
| | | if (item.pacId != null) { |
| | | _this.pacId = item.pacId; |
| | | } else { |
| | | item.list.forEach((items) => { |
| | | _this.proIdList.push(items.proId); |
| | | console.log(_this.pacId, 888); |
| | | }); |
| | | } |
| | | }); |
| | | } else { |
| | | _this.pacId = ""; |
| | | } |
| | | let data = { |
| | | cusId, |
| | | pacId: _this.pacId, |
| | | proIds: _this.proId, |
| | | proIds: _this.proIdList, |
| | | }; |
| | | getaddtTransition(data).then((response) => { |
| | | if (response.msg === "操作成功") { |
| | |
| | | // 点击多选框获取选中数据 |
| | | handleSelectionChange(selection, row) { |
| | | this.tableData = selection; |
| | | console.log(this.tableData); |
| | | if (selection.length > 1) { |
| | | let del_row = selection.shift(); |
| | | this.$refs.tb.toggleRowSelection(del_row, false); //设置这一行取消选中 |
| | |
| | | // 最后提交按钮 |
| | | submitPrice() { |
| | | let _this = this; |
| | | console.log(_this.tableData1.length, 111); |
| | | if (_this.tableData1.length > 0) { |
| | | let userId = this.form.cusIdcard; |
| | | console.log(userId, 222); |
| | | let tjType = this.form.tjType == 2 ? "个人" : "团队"; |
| | | console.log(this.tableData[0], 444); |
| | | if (this.tableData[0]) { |
| | | var pacId = this.tableData[0].pacId; |
| | | console.log(pacId, 333); |
| | | } |
| | | // let copeWith = this.TotalPrice1; |
| | | // let paidIn = this.TotalPrice; |
| | |
| | | // } |
| | | let data; |
| | | if (pacId) { |
| | | console.log(pacId); |
| | | data = { |
| | | pacId, |
| | | department: this.form.department, |