| | |
| | | }, |
| | | ]" |
| | | > |
| | | <!-- style="display: inline-block; border-bottom: 2px solid blue" |
| | | @click="openname" --> |
| | | <span |
| | | slot="label" |
| | | |
| | | > |
| | | 姓名 |
| | | </span> |
| | | <el-input |
| | | v-model="form.cusName" |
| | | placeholder="请输入姓名" |
| | |
| | | > |
| | | <el-button type="primary" plain size="mini" @click="setImage()" |
| | | >拍照</el-button |
| | | ><br /> |
| | | > |
| | | <br /> |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | <h3 style="font-weight: 600">合计:{{ marryall }}元</h3> |
| | | <!-- <el-collapse v-model="activeName" accordion v-if="list1"> |
| | | <div> |
| | | <el-collapse-item title="请选择项目"> |
| | | <el-table |
| | | :data="DataList" |
| | | border |
| | | style="width: 100%" |
| | | height="400" |
| | | :span-method="objectSpanMethod" |
| | | > |
| | | <el-table-column |
| | | prop="proName" |
| | | label="项目" |
| | | width="180" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column prop="ordPrice" label="原价"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-collapse-item> |
| | | </div> |
| | | </el-collapse> --> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <div style="text-align: center; margin-bottom: 10px"> |
| | | <div |
| | | style=" |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: flex-start; |
| | | width: 100%; |
| | | " |
| | | > |
| | | <div |
| | | style=" |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | margin-left: 46px |
| | | font-size: 16px; |
| | | margin-right: 20px; |
| | | " |
| | | > |
| | | {{ this.tableData1[0].pacName || "" }} 已选项目条数:<span |
| | | style="font-weight: 700; color: red; margin-right: 5px" |
| | | >{{ this.tableData1.length || 0 }}</span |
| | | >条 |
| | | </div> |
| | | 已选项目列表 |
| | | </div> |
| | | <div |
| | |
| | | <template slot="title"> |
| | | <div style="width: 70%"> |
| | | {{ |
| | | item.pacName + |
| | | ":" + |
| | | item.parentName + |
| | | " (应收金额:" + |
| | | item.ordPrice + |
| | |
| | | <div style="width: 20%"> |
| | | <el-button |
| | | type="primary" |
| | | @click="candelete(item)" |
| | | @click.stop="candelete(item)" |
| | | style="float: right" |
| | | >删 除</el-button |
| | | > |
| | |
| | | style="width: 100%" |
| | | height="270" |
| | | > |
| | | <el-table-column prop="s" label="项目" width="180"> |
| | | <el-table-column prop="proName" label="项目" width="180"> |
| | | </el-table-column> |
| | | <el-table-column prop="proType" label="性别" width="180"> |
| | | <template |
| | |
| | | </span> |
| | | </el-dialog> |
| | | <Packages ref="aaa" @add="handleChanges" /> |
| | | <selectName ref="bbb" /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import selectName from "@/components/selectName"; |
| | | import { dataURLtoFile, random } from "./file"; |
| | | import { getInfo } from "@/api/login"; |
| | | import { |
| | |
| | | getByTjNum, |
| | | } from "@/api/hosp/customer"; |
| | | import { getPrintSetUp } from "@/api/system/examcharge"; |
| | | import axios from "axios"; |
| | | import { getIp } from "@/utils/auth"; |
| | | import { |
| | | deptTreeSelect, |
| | | projectGetList, |
| | |
| | | VTreeTransfer, |
| | | historyTj, |
| | | Packages, |
| | | selectName, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | lishi: false, |
| | | table: false, |
| | | HistoryList: {}, |
| | | index: 0, |
| | | index: [], |
| | | names: "", |
| | | inputSSS: "", |
| | | dictType: [ |
| | |
| | | this.getCurrentDateTime(); |
| | | this.startTimer(); |
| | | this.getList1(); |
| | | |
| | | // this.getData(); |
| | | }, |
| | | mounted() {}, |
| | | |
| | | methods: { |
| | | openname() { |
| | | this.$refs.bbb.open = true; |
| | | this.$refs.bbb.title = "123"; |
| | | }, |
| | | getCompanyList() { |
| | | this.loading = true; |
| | | getconfigKey("team_reservation_default_day").then((res) => { |
| | |
| | | if (this.form.cusSex === "未知") { |
| | | this.form.cusSex = 2; |
| | | } |
| | | if (this.form.tjType === '') { |
| | | this.form.tjType = this.dict.type.dict_team[0].value; |
| | | } |
| | | |
| | | addCustomer(this.form).then((response) => { |
| | | this.responseList = response.data; |
| | | |
| | | this.$modal.msgSuccess("新增成功"); |
| | | // let cusSex = this.form.cusSex; |
| | | // //全部套餐 |
| | |
| | | this.list1 = false; |
| | | this.list2 = true; |
| | | this.list3 = false; |
| | | this.top = false; |
| | | } else { |
| | | this.list1 = true; |
| | | this.TotalPrice = "0.00"; |
| | | this.top = false; |
| | | } |
| | | }); |
| | | } else { |
| | |
| | | this.$message.warning("未查到用户信息"); |
| | | } |
| | | }); |
| | | // .catch((error) => { |
| | | // this.$message.error("此用户不存在"); |
| | | // }); |
| | | } else { |
| | | let configKey = "getInfoFromSqlData"; |
| | | getconfigKey(configKey).then((res) => { |
| | |
| | | var jsonObj = { |
| | | // name: "readCert", |
| | | }; |
| | | // var jStr = JSON.stringify(jsonObj); |
| | | // this.websocket.send(jStr); |
| | | |
| | | this.dialogVisible = false; |
| | | }; |
| | | |
| | | //接收到消息的回调方法 |
| | | websocket.onmessage = (event) => { |
| | | var resultObj = eval("(" + event.data + ")"); |
| | | //resultFlag为0代表读卡成功 |
| | | |
| | | // TODO 以下代码可能是泾川使用的 |
| | | // this.jingChuanHandlerWebSocketResult(resultObj) |
| | | this.readCardWebSocket(resultObj); |
| | | }; |
| | | |
| | | //连接关闭的回调方法 |
| | | websocket.onclose = function () { |
| | | alert("读卡器连接关闭"); |
| | | }; |
| | |
| | | this.cardreader = true; |
| | | _this.cardreaderradio = 3; |
| | | _this.inputSSS = ""; |
| | | // let url = window.location.protocol + "//" + window.location.host; |
| | | |
| | | // axios |
| | | // .get("http://localhost:81/dev-api/readCertCardInfos") |
| | | // .then((res) => { |
| | | |
| | | // }) |
| | | // .catch((err) => { |
| | | |
| | | // }); |
| | | |
| | | // readCertCardInfos().then((res) => { |
| | | // _this.form.cusName = res.data.name; |
| | | // _this.form.cusSex = |
| | | // res.data.sex; |
| | | // _this.form.cusNational = res.data.mz; |
| | | // _this.form.cusBrithday = res.data.csrq; |
| | | // if (_this.form.cusBrithday) { |
| | | // _this.form.cusBrithday = _this.form.cusBrithday.replace( |
| | | // /^(\d{4})(\d{2})(\d{2})$/, |
| | | // "$1-$2-$3" |
| | | // ); |
| | | // } |
| | | // _this.form.cusAddr = res.data.addres; |
| | | // _this.form.cusIdcard = res.data.card; |
| | | // }); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | // 最新使用webSocket通信 |
| | | readCardWebSocket(resultObj) { |
| | | let _this = this; |
| | |
| | | } |
| | | }); |
| | | }, |
| | | // // 默认接受四个值 { 当前行的值, 当前列的值, 行的下标, 列的下标 } |
| | | objectSpanMethod({ row, column, rowIndex, columnIndex }) { |
| | | let fields = ["propinName"]; |
| | | let cellValue = row[column.property]; |
| | |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | |
| | | <style> |
| | | .el-form-item__error { |