| | |
| | | }, |
| | | ]" |
| | | > |
| | | <!-- style="display: inline-block; border-bottom: 2px solid blue" |
| | | @click="openname" --> |
| | | |
| | | <span |
| | | slot="label" |
| | | |
| | | style="display: inline-block; border-bottom: 2px solid blue" |
| | | @click="openname" |
| | | > |
| | | 姓名 |
| | | </span> |
| | |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | margin-left: 46px |
| | | margin-left: 46px; |
| | | font-size: 16px; |
| | | margin-right: 20px; |
| | | " |
| | | > |
| | | {{ this.tableData1[0].pacName || "" }} 已选项目条数:<span |
| | | <span v-if="this.tableData1[0]">{{ this.tableData1[0].pacName || "" }}</span> 已选项目条数:<span |
| | | style="font-weight: 700; color: red; margin-right: 5px" |
| | | >{{ this.tableData1.length || 0 }}</span |
| | | >条 |
| | |
| | | </span> |
| | | </el-dialog> |
| | | <Packages ref="aaa" @add="handleChanges" /> |
| | | <selectName ref="bbb" /> |
| | | <selectName ref="bbb" @add="handleChangesName"/> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | } from "@/api/hosp/customer"; |
| | | import { getPrintSetUp } from "@/api/system/examcharge"; |
| | | import { |
| | | tuantiSelect, |
| | | deptTreeSelect, |
| | | projectGetList, |
| | | getOrder, |
| | |
| | | getCusIdcard, |
| | | getPackageListName, |
| | | getaddtTransition, |
| | | tuantiqueren, |
| | | getTransitionList, |
| | | getByTeamNo, |
| | | delTbBycusCardIdAndProId, |
| | |
| | | |
| | | methods: { |
| | | openname() { |
| | | |
| | | this.$refs.bbb.open = true; |
| | | this.$refs.bbb.title = "123"; |
| | | this.$refs.bbb.title = "搜索姓名"; |
| | | this.$refs.bbb.getList(); |
| | | }, |
| | | getCompanyList() { |
| | | this.loading = true; |
| | |
| | | this.responseList = response.data; |
| | | |
| | | this.$modal.msgSuccess("新增成功"); |
| | | // let cusSex = this.form.cusSex; |
| | | // //全部套餐 |
| | | // deptTreeSelect(cusSex).then((response) => { |
| | | // this.newpacName = response.rows; |
| | | // this.loading = false; |
| | | // }); |
| | | // this.handleQuery(); |
| | | |
| | | _this.tcShow = true; |
| | | _this.tcShows = true; |
| | | _this.isDisabled = true; |
| | |
| | | // this.form.cusName = param1[0].pacName; |
| | | // this.form.cusPhone = param1[0].pacRemark; |
| | | }, |
| | | |
| | | handleChangesName(params){ |
| | | this.form.cusName = params[0].xm |
| | | this.form.cusPhone = params[0].sjh |
| | | if (params[0].xb == '男') { |
| | | this.form.cusSex = 0 |
| | | } |
| | | if (params[0].xb == '女') { |
| | | this.form.cusSex = 1 |
| | | } |
| | | if (params[0].xb == '未知') { |
| | | this.form.cusSex = 2 |
| | | } |
| | | }, |
| | | // selected(row, index) { |
| | | // if (this.formPacId !== null) { |
| | | // if (row.pacId == this.formPacId) { |
| | |
| | | handle() { |
| | | this.loading = true; |
| | | this.name = this.queryParam.pacName; |
| | | let param = { |
| | | sex: this.form.cusSex, |
| | | dwId: this.form.dictCompId |
| | | } |
| | | if (this.name) { |
| | | getPackageListName(this.name).then((response) => { |
| | | this.newpacName = response.data; |
| | | this.loading = false; |
| | | }); |
| | | } else { |
| | | deptTreeSelect().then((response) => { |
| | | if(this.form.tjType == 1) { |
| | | tuantiSelect(param).then((response) => { |
| | | this.newpacName = response.data; |
| | | this.loading = false; |
| | | }) |
| | | } else{ |
| | | deptTreeSelect().then((response) => { |
| | | this.newpacName = response.rows; |
| | | this.loading = false; |
| | | }); |
| | | } |
| | | } |
| | | }, |
| | | |
| | |
| | | }, |
| | | |
| | | Package() { |
| | | this.taocan = true; |
| | | |
| | | this.activeNames = "first"; |
| | | let cusSex = this.form.cusSex; |
| | | this.datekey = Date.now(); |
| | | //全部套餐 |
| | | this.loading = true; |
| | | deptTreeSelect(cusSex).then((response) => { |
| | | |
| | | let param = { |
| | | sex: cusSex, |
| | | dwId: this.form.dictCompId || '' |
| | | } |
| | | if(this.form.tjType == 1) { |
| | | if(!this.form.dictCompId) { |
| | | this.$message({ |
| | | type: "warning", |
| | | message: "请先维护单位!", |
| | | }); |
| | | |
| | | } else { |
| | | this.taocan = true; |
| | | this.loading = true; |
| | | tuantiSelect(param).then((res) => { |
| | | this.newpacName = res.data; |
| | | try { |
| | | if (this.tableData1.length >= 1) { |
| | | this.newpacName.forEach((item3) => { |
| | | this.tableData1.forEach((item4) => { |
| | | item4.list.forEach((item6) => { |
| | | if (item6.pacName === item3.pacName) { |
| | | this.$nextTick(() => { |
| | | this.$refs.tb.toggleRowSelection(item3, true); |
| | | }); |
| | | throw Error(); |
| | | } |
| | | }); |
| | | }); |
| | | }); |
| | | } |
| | | } catch (error) {} |
| | | this.loading = false; |
| | | }) |
| | | } |
| | | } else { |
| | | this.taocan = true; |
| | | this.loading = true; |
| | | deptTreeSelect(cusSex).then((response) => { |
| | | this.newpacName = response.rows; |
| | | try { |
| | | if (this.tableData1.length >= 1) { |
| | |
| | | } catch (error) {} |
| | | this.loading = false; |
| | | }); |
| | | // this.getData(); |
| | | } |
| | | |
| | | |
| | | }, |
| | | |
| | | // 点击多选框获取选中数据 |
| | |
| | | pacId: _this.pacId, |
| | | proIds: this.proIds, |
| | | }; |
| | | getaddtTransition(data).then((response) => { |
| | | if (this.form.tjType == 1){ |
| | | tuantiqueren(data).then((response) => { |
| | | if (response.code == 200) { |
| | | let cusId = this.form.cusIdcard; |
| | | this.proIds = []; |
| | |
| | | console.log(失败了); |
| | | } |
| | | }); |
| | | } else { |
| | | getaddtTransition(data).then((response) => { |
| | | if (response.code == 200) { |
| | | let cusId = this.form.cusIdcard; |
| | | this.proIds = []; |
| | | getTransitionList(cusId).then((response) => { |
| | | this.tableData1 = response.data; |
| | | this.TotalPrice1 = 0; |
| | | if (this.tableData1) { |
| | | this.tableData1.forEach((item) => { |
| | | this.TotalPrice1 += item.nowPrice; |
| | | if (item.tjCategory != null) { |
| | | this.tjCategory = item.tjCategory; |
| | | } |
| | | if (item.pacName == "单项") { |
| | | item.list.forEach((item9) => { |
| | | this.treeList.push(item9.proId); |
| | | }); |
| | | } |
| | | this.pacName = item.pacName; |
| | | }); |
| | | |
| | | const r = /^\+?[0-9][0-9]*$/; //正整数(可以0打头) |
| | | let TotalPrice = this.TotalPrice1 * (this.discount / 10); |
| | | if (r.test(TotalPrice)) { |
| | | this.TotalPrice = TotalPrice + ".00"; |
| | | } else { |
| | | this.TotalPrice = TotalPrice; |
| | | } |
| | | this.list1 = false; |
| | | this.list3 = true; |
| | | this.list2 = false; |
| | | } else { |
| | | this.list1 = true; |
| | | this.TotalPrice = "0.00"; |
| | | } |
| | | }); |
| | | } else { |
| | | console.log(失败了); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | this.taocan = false; |
| | | this.defaultKeys = []; |
| | | this.DataLists = []; |
| | | }, |
| | | // changeCategoryKeys(val) { |
| | | // this.proIds = []; |
| | | // this.proIds = val; |
| | | // if (this.DataList.length != 0) { |
| | | // this.DataList.forEach((item) => { |
| | | // this.proIds.push(item.proId); |
| | | // }); |
| | | // } else { |
| | | // this.proIds = []; |
| | | // } |
| | | // }, |
| | | submitCheckinfee() { |
| | | let _this = this; |
| | | if (_this.tjCategory !== "") { |