| | |
| | | method: 'get', |
| | | }) |
| | | } |
| | | |
| | | // 获取症状接口集 |
| | | export function getZhengZhuang() { |
| | | return request({ |
| | | url: '/hosp/history/getZhengZhuang', |
| | | method: 'get', |
| | | }) |
| | | } |
| | | |
| | |
| | | style="width: 700px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="既往病史" prop="medicalHistory"> |
| | | <el-form-item label="其他" prop="medicalHistory"> |
| | | <el-input |
| | | type="textarea" |
| | | rows="4" |
| | | v-model="form.medicalHistory" |
| | | placeholder="请输入既往病史" |
| | | placeholder="请输入" |
| | | style="width: 700px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="症状" prop="zzsjj"> |
| | | <el-select |
| | | multiple |
| | | filterable |
| | | v-model="form.zzsjj" |
| | | placeholder="请选择症状" |
| | | clearable |
| | | style="width: 700px" |
| | | > |
| | | <el-option |
| | | v-for="dict in zhenghuzangList" |
| | | :key="dict.id" |
| | | :label="dict.proName" |
| | | :value="dict.proName" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </div> |
| | | </el-collapse-item> |
| | |
| | | </el-form-item> |
| | | <el-form-item label="末次月经" prop="mociage"> |
| | | <el-input v-model="form.mociage" style="width: 100px" /> |
| | | </el-form-item> |
| | | <el-form-item label="是否异常" prop="yjsfyc"> |
| | | <el-select |
| | | filterable |
| | | v-model="form.yjsfyc" |
| | | placeholder="请选择是否异常" |
| | | clearable |
| | | style="width: 150px" |
| | | > |
| | | <el-option |
| | | v-for="dict in dict.type.sys_yes_no" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </div> |
| | | </el-collapse-item> |
| | |
| | | </el-form-item> |
| | | </div> |
| | | </el-collapse-item> |
| | | <el-collapse-item title="既往病史" name="5"> |
| | | <el-collapse-item title="职业病" name="5"> |
| | | <div style="width: 900px"> |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | |
| | | prop="index" |
| | | width="50" |
| | | /> --> |
| | | <el-table-column label="疾病类型" prop="type"> |
| | | <template slot-scope="scope"> |
| | | <!-- <el-input |
| | | size="mini" |
| | | v-model="scope.row.diseaseName" |
| | | placeholder="请输入疾病名称" |
| | | /> --> |
| | | <el-select |
| | | v-model="scope.row.type" |
| | | remote |
| | | filterable |
| | | placeholder="请选择疾病类型" |
| | | clearable |
| | | @change="jibing" |
| | | > |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="疾病名称" prop="diseaseName"> |
| | | <template slot-scope="scope"> |
| | | <!-- <el-input |
| | |
| | | filterable |
| | | placeholder="请选择病种名" |
| | | clearable |
| | | @change="jibing" |
| | | > |
| | | <el-option |
| | | v-for="dict in rulesList" |
| | |
| | | </div> |
| | | </el-collapse-item> |
| | | |
| | | <el-collapse-item title="职业史" name="7"> |
| | | <el-collapse-item title="职业史" name="7" v-show="zhiye"> |
| | | <div style="width: 900px"> |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | |
| | | type="date" |
| | | placeholder="选择日期" |
| | | :picker-options="pickerOptions" |
| | | style="width: 130px" |
| | | value-format="yyyy-MM-dd" |
| | | > |
| | | </el-date-picker> |
| | |
| | | type="date" |
| | | placeholder="选择日期" |
| | | :picker-options="pickerOptions" |
| | | style="width: 130px" |
| | | value-format="yyyy-MM-dd" |
| | | > |
| | | </el-date-picker> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { updateHistory, getInfoById, getZhengZhuang } from "@/api/hosp/history"; |
| | | import { listRules } from "@/api/hosp/rules"; |
| | | import { listIcd } from "@/api/system/icd"; |
| | | import { updateHistory } from "@/api/hosp/history"; |
| | | export default { |
| | | dicts: ["tj_smoking_pinlv", "sys_yes_no", "tj_work_status", "tj_work"], |
| | | name: "jianqianwenzhen", |
| | | props: { |
| | | jianqianwenzhendata: { |
| | | type: Array, //数组类型 |
| | | default: () => [], |
| | | default: null, |
| | | }, |
| | | jianqianwenzhendatas: { |
| | | type: Array, //字符串类型 |
| | | default: null, |
| | | }, |
| | | }, |
| | | data() { |
| | | let checkPhoneNum = (rule, value, callback) => { |
| | | console.log(value); |
| | | let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/); |
| | | if (value == "" && value == undefined && !value) { |
| | | return callback(""); |
| | |
| | | } |
| | | }; |
| | | return { |
| | | zhenghuzangList: [], |
| | | options: [ |
| | | { |
| | | value: "既往病", |
| | | label: "既往病", |
| | | }, |
| | | { |
| | | value: "职业病", |
| | | label: "职业病", |
| | | }, |
| | | ], |
| | | icd: "", |
| | | zhiye: true, |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | |
| | | watch: { |
| | | jianqianwenzhendata(val, newVla) { |
| | | if (val) { |
| | | console.log(val); |
| | | this.loading = false; |
| | | this.form = val; |
| | | val.forEach((item) => { |
| | | let tjNumber = item; |
| | | getInfoById(tjNumber).then((response) => { |
| | | this.form = response.data; |
| | | if (this.form.cusSex === "1") { |
| | | this.sex = true; |
| | | } else { |
| | | this.sex = false; |
| | | } |
| | | if (this.form.tjLx === "02") { |
| | | this.zhiye = true; |
| | | } else { |
| | | this.zhiye = false; |
| | | } |
| | | if (this.form.xiyan == null) { |
| | | this.form.xiyan = "1"; |
| | | } |
| | | if (this.form.yjsfyc == null) { |
| | | this.form.yjsfyc = "N"; |
| | | } |
| | | if (this.form.xiyanpinlv == null) { |
| | | this.form.xiyanpinlv = "0"; |
| | |
| | | if (this.form.yinjiuyear == null) { |
| | | this.form.yinjiuyear = "0"; |
| | | } |
| | | this.form.tjAskHistorysList = val.tjAskHistorysList; |
| | | this.form.tjAskHistorysList = response.data.tjAskHistorysList; |
| | | // this.isdisabled= true |
| | | }); |
| | | }); |
| | | this.loading = false; |
| | | } |
| | | |
| | | // if (this.fList) { |
| | | // this.getList() |
| | | // } |
| | | }, |
| | | jianqianwenzhendatas(valse, newVla) { |
| | | console.log(valse); |
| | | if (valse) { |
| | | console.log(valse); |
| | | let tjNumber = valse.tjNum; |
| | | console.log(tjNumber,111); |
| | | getInfoById(tjNumber).then((response) => { |
| | | this.form = response.data; |
| | | if (this.form.cusSex === "1") { |
| | | this.sex = true; |
| | | } else { |
| | | this.sex = false; |
| | | } |
| | | if (this.form.tjLx === "02") { |
| | | this.zhiye = true; |
| | | } else { |
| | | this.zhiye = false; |
| | | } |
| | | if (this.form.xiyan == null) { |
| | | this.form.xiyan = "1"; |
| | | } |
| | | if (this.form.yjsfyc == null) { |
| | | this.form.yjsfyc = "N"; |
| | | } |
| | | if (this.form.xiyanpinlv == null) { |
| | | this.form.xiyanpinlv = "0"; |
| | | } |
| | | if (this.form.xiyanyear == null) { |
| | | this.form.xiyanyear = "0"; |
| | | } |
| | | if (this.form.yinjiu == null) { |
| | | this.form.yinjiu = "1"; |
| | | } |
| | | if (this.form.yinjiupinlv == null) { |
| | | this.form.yinjiupinlv = "0"; |
| | | } |
| | | if (this.form.yinjiuyear == null) { |
| | | this.form.yinjiuyear = "0"; |
| | | } |
| | | this.form.tjAskHistorysList = response.data.tjAskHistorysList; |
| | | // this.isdisabled= true |
| | | }); |
| | | this.loading = false; |
| | | } |
| | | |
| | | // if (this.fList) { |
| | |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | this.getzhenzhuangList(); |
| | | }, |
| | | methods: { |
| | | /** 查询疾病字典列表 */ |
| | | getList() { |
| | | listRules(this.queryParams).then((response) => { |
| | | this.rulesList = response.rows; |
| | | }); |
| | | }, |
| | | |
| | | getzhenzhuangList() { |
| | | getZhengZhuang().then((response) => { |
| | | this.zhenghuzangList = response.data; |
| | | }); |
| | | }, |
| | | |
| | | jibing(sel) { |
| | | console.log(sel); |
| | | this.rulesList.forEach((item) => { |
| | | console.log(item); |
| | | if (sel == item.bingzhong) { |
| | | this.icd = item.aid; |
| | | } |
| | | }); |
| | | }, |
| | | // 搜索 |
| | |
| | | diseaseCompany: "", |
| | | isOk: "", |
| | | remark: "", |
| | | icdId: "", |
| | | type: "", |
| | | Selection, |
| | | }); |
| | | } else { |
| | |
| | | diseaseCompany: "", |
| | | isOk: "", |
| | | remark: "", |
| | | icdId: "", |
| | | type: "", |
| | | Selection, |
| | | }); |
| | | } |
| | |
| | | Message.warning("请先填写客户名"); |
| | | } |
| | | this.$forceUpdate(); |
| | | }, |
| | | addmemberss() { |
| | | if (this.form.cusName) { |
| | | if (!this.form.workLogs) { |
| | | this.form.workLogs = []; |
| | | this.form.workLogs.push({ |
| | | // id: parseInt(length), |
| | | beginTime: "", |
| | | endTime: "", |
| | | workCompany: "", |
| | | workDept: "", |
| | | workType: "", |
| | | harmTypeLogs: "", |
| | | fangHu: "", |
| | | Selection, |
| | | }); |
| | | } else { |
| | | this.form.workLogs.push({ |
| | | // id: parseInt(length), |
| | | beginTime: "", |
| | | endTime: "", |
| | | workCompany: "", |
| | | workDept: "", |
| | | workType: "", |
| | | harmTypeLogs: "", |
| | | fangHu: "", |
| | | Selection, |
| | | }); |
| | | } |
| | | } else { |
| | | Message.warning("请先填写客户名"); |
| | | } |
| | | this.$forceUpdate(); |
| | | }, |
| | | delememberss() { |
| | | let that = this; |
| | | if (that.form.workLogs.length == that.chageall.length) { |
| | | that.form.workLogs = []; |
| | | } else { |
| | | that.chageall.forEach((item1, index1) => { |
| | | that.form.workLogs.forEach((item, index) => { |
| | | if (item == item1) { |
| | | that.form.workLogs.splice(index, 1); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | }, |
| | | delemembers() { |
| | | let that = this; |
| | | if (that.form.tjAskHistorysList.length == that.bingshiall.length) { |
| | | that.form.tjAskHistorysList = []; |
| | | } else { |
| | | that.bingshiall.forEach((item1, index1) => { |
| | | that.form.tjAskHistorysList.forEach((item, index) => { |
| | | if (item == item1) { |
| | | that.form.tjAskHistorysList.splice(index, 1); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | }, |
| | | handlebingChange(selection) { |
| | | this.bingshiall = []; |
| | |
| | | }, |
| | | /** 提交按钮 */ |
| | | submitForm() { |
| | | this.form.tjNum = this.jianqianwenzhendata.tjNum; |
| | | // this.form.tjNum = this.jianqianwenzhendata.tjNum; |
| | | // this.form.tjAskHistorysList.icdId = this.icd; |
| | | updateHistory(this.form).then((response) => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | }); |
| | |
| | | :before-close="handleClose1" |
| | | > |
| | | <jianqianwenzhen |
| | | :jianqianwenzhendata="jianqianwenzhendata" |
| | | :jianqianwenzhendatas="jianqianwenzhendatas" |
| | | ></jianqianwenzhen> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="jianqians = false">取 消</el-button> |
| | |
| | | components: { Public, Historicalreport,jianqianwenzhen }, |
| | | data() { |
| | | return { |
| | | lishi:true, |
| | | lishi:false, |
| | | rowes:{}, |
| | | jianqianwenzhendata:[], |
| | | jianqianwenzhendatas:[], |
| | | jianqians:false, |
| | | selected: false, |
| | | checkval: false, |
| | |
| | | if (res.data[0] != null) { |
| | | this.reportHistorydata = res.data; |
| | | } |
| | | if(this.reportHistorydata.length >= 1){ |
| | | this.lishi = true; |
| | | }else{ |
| | | this.lishi = true; |
| | | this.$modal.msgError("暂无历史报告"); |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | jianqian() { |
| | | let tjNumber = this.rowes.tjNumber; |
| | | getInfoById(tjNumber).then((response) => { |
| | | this.jianqianwenzhendata = response.data; |
| | | this.jianqianwenzhendatas = response.data; |
| | | if (this.form.xiyan == null) { |
| | | this.form.xiyan = "1"; |
| | | } |
| | |
| | | |
| | | <script> |
| | | import jianqianwenzhen from "@/components/jianqianwenzhen"; |
| | | import { updateHistory, getInfoById } from "@/api/hosp/history"; |
| | | import { Message } from "element-ui"; |
| | | import { getOrderList } from "@/api/hosp/order"; |
| | | import { listHarmType } from "@/api/hosp/harmType"; |
| | |
| | | } |
| | | }); |
| | | let tjNumber = selection.map((item) => item.tjNumber); |
| | | getInfoById(tjNumber).then((response) => { |
| | | this.jianqianwenzhendata = response.data; |
| | | if (this.form.xiyan == null) { |
| | | this.form.xiyan = "1"; |
| | | } |
| | | if (this.form.xiyanpinlv == null) { |
| | | this.form.xiyanpinlv = "0"; |
| | | } |
| | | if (this.form.xiyanyear == null) { |
| | | this.form.xiyanyear = "0"; |
| | | } |
| | | if (this.form.yinjiu == null) { |
| | | this.form.yinjiu = "1"; |
| | | } |
| | | if (this.form.yinjiupinlv == null) { |
| | | this.form.yinjiupinlv = "0"; |
| | | } |
| | | if (this.form.yinjiuyear == null) { |
| | | this.form.yinjiuyear = "0"; |
| | | } |
| | | this.form.tjAskHistorysList = response.data.tjAskHistorysList; |
| | | // this.isdisabled= true |
| | | }); |
| | | this.jianqianwenzhendata = tjNumber; |
| | | // getInfoById(tjNumber).then((response) => { |
| | | // this.jianqianwenzhendata = response.data; |
| | | // if (this.form.xiyan == null) { |
| | | // this.form.xiyan = "1"; |
| | | // } |
| | | // if (this.form.xiyanpinlv == null) { |
| | | // this.form.xiyanpinlv = "0"; |
| | | // } |
| | | // if (this.form.xiyanyear == null) { |
| | | // this.form.xiyanyear = "0"; |
| | | // } |
| | | // if (this.form.yinjiu == null) { |
| | | // this.form.yinjiu = "1"; |
| | | // } |
| | | // if (this.form.yinjiupinlv == null) { |
| | | // this.form.yinjiupinlv = "0"; |
| | | // } |
| | | // if (this.form.yinjiuyear == null) { |
| | | // this.form.yinjiuyear = "0"; |
| | | // } |
| | | // this.form.tjAskHistorysList = response.data.tjAskHistorysList; |
| | | // // this.isdisabled= true |
| | | // }); |
| | | }, |
| | | tableRowClassName({ row, rowIndex }) { |
| | | for (let i = 0; i < this.selectList.length; i++) { |
| | |
| | | } |
| | | }, |
| | | |
| | | delemembers() { |
| | | let that = this; |
| | | if (that.form.tjAskHistorysList.length == that.bingshiall.length) { |
| | | that.form.tjAskHistorysList = []; |
| | | } else { |
| | | that.bingshiall.forEach((item1, index1) => { |
| | | that.form.tjAskHistorysList.forEach((item, index) => { |
| | | if (item == item1) { |
| | | that.form.tjAskHistorysList.splice(index, 1); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | addmemberss() { |
| | | if (this.form.cusName) { |
| | | if (!this.form.workLogs) { |
| | | this.form.workLogs = []; |
| | | this.form.workLogs.push({ |
| | | id: parseInt(length), |
| | | beginTime: "", |
| | | endTime: "", |
| | | workCompany: "", |
| | | workDept: "", |
| | | workType: "", |
| | | harmTypeLogs: "", |
| | | fangHu: "", |
| | | Selection, |
| | | }); |
| | | } else { |
| | | this.form.workLogs.push({ |
| | | id: parseInt(length), |
| | | beginTime: "", |
| | | endTime: "", |
| | | workCompany: "", |
| | | workDept: "", |
| | | workType: "", |
| | | harmTypeLogs: "", |
| | | fangHu: "", |
| | | Selection, |
| | | }); |
| | | } |
| | | } else { |
| | | Message.warning("请先填写客户名"); |
| | | } |
| | | this.$forceUpdate(); |
| | | }, |
| | | |
| | | delememberss() { |
| | | let that = this; |
| | | if (that.form.workLogs.length == that.chageall.length) { |
| | | that.form.workLogs = []; |
| | | } else { |
| | | that.chageall.forEach((item1, index1) => { |
| | | that.form.workLogs.forEach((item, index) => { |
| | | if (item == item1) { |
| | | that.form.workLogs.splice(index, 1); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | |
| | | |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | tjFlowingWater: this.tjFlowingWater, |
| | | userId, |
| | | tjType, |
| | | tjCategory:this.tjCategory |
| | | }; |
| | | } else { |
| | | data = { |
| | |
| | | tjFlowingWater: this.tjFlowingWater, |
| | | userId, |
| | | tjType, |
| | | tjCategory:this.tjCategory |
| | | }; |
| | | } |
| | | getOrder(data).then((res) => { |
| | |
| | | cusSex: [ |
| | | { required: true, validator: checkPhoneNum, trigger: "change" }, |
| | | ], |
| | | category: [ |
| | | { required: true, validator: checkPhoneNum, trigger: "change" }, |
| | | ], |
| | | cusBrithday: [ |
| | | { required: true, validator: checkPhoneNum, trigger: "blur" }, |
| | | ], |
| | |
| | | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | //target: `https://ltpeis.xaltjdkj.cn:5501/prod-api/getInfo`, |
| | | target: `http://192.168.0.111:5011`, |
| | | target: `http://192.168.0.105:5011`, |
| | | // // target: `http://192.168.0.99:8080/ltkj-admin`, |
| | | // target: `https://ltpeis.xaltjdkj.cn:5011/ltkj-admin`, |
| | | // target: `http://10.168.0.9:5011`, |