| | |
| | | filterable |
| | | placeholder="请选择疾病类型" |
| | | clearable |
| | | @change="jibing" |
| | | > |
| | | <el-option |
| | | v-for="item in options" |
| | |
| | | > |
| | | <el-option |
| | | v-for="dict in rulesList" |
| | | :key="dict.aid" |
| | | :label="dict.bingzhong" |
| | | :value="dict.bingzhong" |
| | | :key="dict.id" |
| | | :label="dict.icdname" |
| | | :value="dict.icdname" |
| | | /> |
| | | </el-select> |
| | | </template> |
| | |
| | | |
| | | <script> |
| | | import { updateHistory, getInfoById, getZhengZhuang } from "@/api/hosp/history"; |
| | | import { listRules } from "@/api/hosp/rules"; |
| | | import { list } from "@/api/hosp/rules"; |
| | | import { listIcd } from "@/api/system/icd"; |
| | | export default { |
| | | dicts: ["tj_smoking_pinlv", "sys_yes_no", "tj_work_status", "tj_work"], |
| | |
| | | props: { |
| | | jianqianwenzhendata: { |
| | | type: Array, //数组类型 |
| | | default: null, |
| | | }, |
| | | jianqianwenzhendatas: { |
| | | type: Array, //字符串类型 |
| | | default: null, |
| | | }, |
| | | }, |
| | |
| | | } |
| | | }; |
| | | return { |
| | | diseaseNames: "", |
| | | zhenghuzangList: [], |
| | | options: [ |
| | | { |
| | |
| | | label: "职业病", |
| | | }, |
| | | ], |
| | | icd: "", |
| | | icdId: "", |
| | | zhiye: true, |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | pageSize: 100, |
| | | }, |
| | | dataList: [], |
| | | pickerOptions: { |
| | |
| | | }); |
| | | 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); |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | this.getzhenzhuangList(); |
| | | console.log("接收", this.jianqianwenzhendata); |
| | | if (this.jianqianwenzhendata.length == 1) { |
| | | this.jianqianwenzhendata.forEach((item) => { |
| | | let tjNumber = item; |
| | | getInfoById(tjNumber).then((response) => { |
| | | this.form = response.data; |
| | | if (this.form.cusSex === "1") { |
| | |
| | | this.form.tjAskHistorysList = response.data.tjAskHistorysList; |
| | | // this.isdisabled= true |
| | | }); |
| | | }); |
| | | this.loading = false; |
| | | } |
| | | |
| | | // if (this.fList) { |
| | | // this.getList() |
| | | // } |
| | | }, |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | this.getzhenzhuangList(); |
| | | }, |
| | | methods: { |
| | | /** 查询疾病字典列表 */ |
| | | getList() { |
| | | listRules(this.queryParams).then((response) => { |
| | | list(this.queryParams).then((response) => { |
| | | this.rulesList = response.rows; |
| | | console.log(this.rulesList); |
| | | }); |
| | | }, |
| | | |
| | |
| | | this.zhenghuzangList = response.data; |
| | | }); |
| | | }, |
| | | |
| | | jibing(sel) { |
| | | console.log(sel); |
| | | this.rulesList.forEach((item) => { |
| | | console.log(item); |
| | | if (sel == item.bingzhong) { |
| | | this.icd = item.aid; |
| | | } |
| | | }); |
| | | }, |
| | | // 搜索 |
| | | getRemoteData(query) { |
| | | if (query) { |
| | | let data = { |
| | | bingzhong: query, |
| | | }; |
| | | listRules(data).then((response) => { |
| | | this.rulesList = response.rows; |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | // 新增行 |
| | | addmembers() { |
| | | if (this.form.cusName) { |
| | |
| | | } |
| | | this.$forceUpdate(); |
| | | }, |
| | | |
| | | jibing(sel) { |
| | | console.log(sel); |
| | | this.diseaseNames = sel; |
| | | this.rulesList.forEach((item) => { |
| | | if (sel == item.icdname) { |
| | | this.icdId = item.id; |
| | | console.log(this.icdId); |
| | | } |
| | | }); |
| | | }, |
| | | // 搜索 |
| | | getRemoteData(query) { |
| | | if (query) { |
| | | let data = { |
| | | icdname: query, |
| | | pageNum: 1, |
| | | pageSize: 200, |
| | | }; |
| | | list(data).then((response) => { |
| | | this.rulesList = response.rows; |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | delememberss() { |
| | | let that = this; |
| | | if (that.form.workLogs.length == that.chageall.length) { |
| | |
| | | }, |
| | | /** 提交按钮 */ |
| | | submitForm() { |
| | | // this.form.tjNum = this.jianqianwenzhendata.tjNum; |
| | | // this.form.tjAskHistorysList.icdId = this.icd; |
| | | this.form.tjAskHistorysList.forEach(element=>{ |
| | | // console.log(element,111); |
| | | this.rulesList.forEach((item) => { |
| | | // console.log(item,222); |
| | | if(element.diseaseName == item.icdname){ |
| | | element.icdId = item.id; |
| | | } |
| | | }); |
| | | |
| | | }) |
| | | updateHistory(this.form).then((response) => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | }); |