| | |
| | | /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="单位名称" prop="dictCompId"> |
| | | <el-form-item label="单位名称" prop="compName"> |
| | | <el-select |
| | | :remote-method="getRemoteData" |
| | | :disabled="isDisabled" |
| | | v-model="form.compName" |
| | | remote |
| | | default-first-option |
| | | allow-create |
| | | filterable |
| | | style="width: 300px" |
| | | style="width: 200px" |
| | | placeholder="请选择单位名称" |
| | | clearable |
| | | @change="idFn1" |
| | |
| | | v-for="dict in CompanyList" |
| | | :key="dict.cnName" |
| | | :label="dict.cnName" |
| | | :value="dict.drugManufacturerId" |
| | | :value="dict.cnName" |
| | | /> |
| | | </el-select> |
| | | <i class="el-icon-circle-plus-outline" @click="handleAdd1"></i> |
| | | <!-- <i class="el-icon-circle-plus-outline" @click="handleAdd1"></i> --> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="文化程度" prop="wenHua"> |
| | | <el-form-item label="文化程度" prop="wenHua" label-width="93px"> |
| | | <el-input |
| | | :disabled="isDisabled" |
| | | v-model="form.wenHua" |
| | |
| | | this.getList1(); |
| | | // this.getData(); |
| | | }, |
| | | mounted() { |
| | | |
| | | }, |
| | | mounted() {}, |
| | | |
| | | methods: { |
| | | getCompanyList() { |
| | |
| | | this.title = "添加体检单位信息维护"; |
| | | }, |
| | | idFn1(value) { |
| | | |
| | | if (value) { |
| | | this.form.dictCompId = value; |
| | | |
| | | const originalCompId = this.form.dictCompId; |
| | | this.form.compName = value; |
| | | this.CompanyList.forEach((item) => { |
| | | if (item.drugManufacturerId == this.form.dictCompId) { |
| | | this.form.compName = item.cnName; |
| | | if (item.cnName == this.form.compName) { |
| | | this.form.dictCompId = item.drugManufacturerId; |
| | | } |
| | | }); |
| | | |
| | | if (this.form.dictCompId === originalCompId) { |
| | | this.form.dictCompId = ''; |
| | | } |
| | | }, |
| | | getRemoteData(query) { |
| | | if (query) { |
| | | let compName = query; |
| | | queryCompany(compName).then((response) => { |
| | | this.CompanyList = response.data; |
| | | this.CompanyList.forEach((item) => { |
| | | this.objs = item; |
| | | }); |
| | | }); |
| | | } |
| | | }, |
| | | getCurrentDateTime() { |
| | |
| | | } else { |
| | | let configKey = "getInfoFromSqlData"; |
| | | getconfigKey(configKey).then((res) => { |
| | | |
| | | if (res.code == 200) { |
| | | if (res.msg == "N") { |
| | | var websocket = null; |
| | |
| | | } else if ("MozWebSocket" in window) { |
| | | websocket = new MozWebSocket(url); |
| | | } else { |
| | | |
| | | } |
| | | |
| | | if (websocket == null) { |
| | |
| | | |
| | | //接收到消息的回调方法 |
| | | websocket.onmessage = (event) => { |
| | | |
| | | var resultObj = eval("(" + event.data + ")"); |
| | | //resultFlag为0代表读卡成功 |
| | | |
| | |
| | | readCardWebSocket(resultObj) { |
| | | let _this = this; |
| | | if (resultObj.code === 200 && resultObj.data.name != null) { |
| | | |
| | | |
| | | //回显相关数据 |
| | | _this.form.cusName = resultObj.data.name; |
| | | _this.form.cusSex = resultObj.data.sex == "0" ? "女" : "男"; |
| | |
| | | } else if ("MozWebSocket" in window) { |
| | | websocket = new MozWebSocket(url); |
| | | } else { |
| | | |
| | | } |
| | | if (websocket == null) { |
| | | alert("11111"); |
| | |
| | | } else if ("MozWebSocket" in window) { |
| | | websocket = new MozWebSocket(url); |
| | | } else { |
| | | |
| | | } |
| | | if (websocket == null) { |
| | | alert("11111"); |
| | |
| | | getProParentIdDxList().then((response) => { |
| | | this.Treedata = response.data.list; |
| | | |
| | | |
| | | if (this.tableData[0]) { |
| | | this.tableData[0].tjProjectList.forEach((selectionitem) => { |
| | | this.Treedata.forEach((item) => { |
| | |
| | | // this.DataLists.push(this.packagedataList[i]); |
| | | getProSonDxList(proId).then((res) => { |
| | | this.TreedataList = res.data.list; |
| | | |
| | | |
| | | this.TreedataList.forEach((item) => { |
| | | // this.checkedListkey1.push(item.proId); |
| | |
| | | }; |
| | | getaddtTransition(data).then((response) => { |
| | | if (response.code == 200) { |
| | | |
| | | let cusId = this.form.cusIdcard; |
| | | this.proIds = []; |
| | | getTransitionList(cusId).then((response) => { |
| | |
| | | }); |
| | | } else { |
| | | console.log(失败了); |
| | | |
| | | } |
| | | }); |
| | | this.taocan = false; |