| | |
| | | <span slot="label" style="display: inline-block; border-bottom: 2px solid blue" @click="openname"> |
| | | 姓名 |
| | | </span> |
| | | <el-input v-model="form.cusName" placeholder="请输入姓名" :disabled="isDisabled" @input="form.cusName = $event.replace(/\s/g, '')" /> |
| | | <el-input v-model="form.cusName" placeholder="请输入姓名" :disabled="isDisabled" |
| | | @input="form.cusName = $event.replace(/\s/g, '')" /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="证件类型" prop="idType"> |
| | |
| | | <span slot="label" style="display: inline-block; border-bottom: 2px solid blue" @click="handleQuery"> |
| | | 证件号码 |
| | | </span> |
| | | <el-input :disabled="isDisabled" v-model="form.cusIdcard" placeholder="请输入身份证号" @input="handleIdCardInput"/> |
| | | <el-input :disabled="isDisabled" v-model="form.cusIdcard" placeholder="请输入身份证号" |
| | | @input="handleIdCardInput" /> |
| | | <!-- <i style=" |
| | | font-size: 1rem; |
| | | position: absolute; |
| | |
| | | trigger: 'blur', |
| | | }, |
| | | ]"> |
| | | <el-input v-model="form.cusPhone" placeholder="请输入联系电话" :disabled="isDisabled" @input="form.cusPhone = $event.replace(/\s/g, '')"/> |
| | | <el-input v-model="form.cusPhone" placeholder="请输入联系电话" :disabled="isDisabled" |
| | | @input="form.cusPhone = $event.replace(/\s/g, '')" /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="出生日期" prop="cusBrithday"> |
| | |
| | | margin-top: 10px; |
| | | "> |
| | | 已选项目列表 |
| | | |
| | | |
| | | </div> |
| | | <el-table :data="DataLists" border style="width: 100%" height="400" :span-method="objectspanmethod"> |
| | | <el-table-column prop="propinName" label="检查项目"> |
| | |
| | | this.tableData1[0].pacName || "" |
| | | }}</span> |
| | | 已选项目条数:<span style="font-weight: 700; color: red; margin-right: 5px">{{ this.tableData1.length || 0 |
| | | }}</span>条 |
| | | }}</span>条 |
| | | </div> |
| | | 已选项目列表 |
| | | </div> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="nowPrice" label="实收金额"> |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.nowPrice.toFixed(2) }} |
| | | </template> |
| | | |
| | | </el-table-column> |
| | | <el-table-column prop="proCheckMethod" label="是否空腹"> |
| | | <template slot-scope="scope"> |
| | |
| | | }, |
| | | methods: { |
| | | handleIdCardInput(value) { |
| | | this.form.cusIdcard = value.replace(/\s/g, ''); |
| | | this.inputChange(); // 保留原有的身份证输入处理逻辑 |
| | | }, |
| | | this.form.cusIdcard = value.replace(/\s/g, ''); |
| | | this.inputChange(); // 保留原有的身份证输入处理逻辑 |
| | | }, |
| | | debounceNumberChange(currentValue, oldValue) { |
| | | clearTimeout(this.debounceTimer); |
| | | this.debounceTimer = setTimeout(() => { |
| | |
| | | this.open1 = true; |
| | | this.title = "添加体检单位信息维护"; |
| | | }, |
| | | idFn1(value) { |
| | | if (value) { |
| | | // console.log(value); |
| | | idFn1() { |
| | | if (this.form.firmName) { |
| | | const originalCompId = this.form.firmId; |
| | | this.form.firmName = value; |
| | | this.CompanyList.forEach((item) => { |
| | | if (item.cnName == this.form.firmName) { |
| | | this.form.firmId = item.drugManufacturerId; |
| | |
| | | if (this.form.firmId === originalCompId) { |
| | | this.form.firmId = ""; |
| | | } |
| | | if (this.form.firmId) { |
| | | this.form.tjType = this.dict.type.dict_team[2].value; |
| | | } |
| | | |
| | | } |
| | | |
| | | if (this.form.firmName) { |
| | | this.form.tjType = this.dict.type.dict_team[1].value; |
| | | }else{ |
| | | this.form.tjType = this.dict.type.dict_team[0].value; |
| | | } |
| | | |
| | | }, |
| | | getCurrentDateTime() { |
| | | const currentDate = new Date(); |
| | |
| | | // return data.proEngName.indexOf(value) !== -1; |
| | | // } |
| | | if (!value) return true; |
| | | if (data.proName.indexOf(value) !== -1) return true; |
| | | if (data.proEngName.indexOf(value) !== -1) return true; |
| | | // 匹配小写 |
| | | let arr = data.proName.spell('low', 'array'); |
| | | let spell = arr.join(''); |
| | | let lengths = [0]; |
| | | for (var i = 0; i < arr.length - 1; i++) { |
| | | lengths.push(lengths[i] + arr[i].length); |
| | | }; |
| | | //判断label完整拼音 中 输入值的 index 是不是等于某个汉字第一个拼音字母的index值 |
| | | if(lengths.indexOf(spell.indexOf(value)) !== -1) return true |
| | | // 大写 |
| | | let arrUp = data.proName.spell('up', 'array'); |
| | | let spellUp = arrUp.join(''); |
| | | let lengthsUp = [0]; |
| | | for (var i = 0; i < arrUp.length - 1; i++) { |
| | | lengthsUp.push(lengthsUp[i] + arrUp[i].length); |
| | | }; |
| | | return lengthsUp.indexOf(spellUp.indexOf(value)) !== -1; |
| | | if (data.proName.indexOf(value) !== -1) return true; |
| | | if (data.proEngName.indexOf(value) !== -1) return true; |
| | | // 匹配小写 |
| | | let arr = data.proName.spell('low', 'array'); |
| | | let spell = arr.join(''); |
| | | let lengths = [0]; |
| | | for (var i = 0; i < arr.length - 1; i++) { |
| | | lengths.push(lengths[i] + arr[i].length); |
| | | }; |
| | | //判断label完整拼音 中 输入值的 index 是不是等于某个汉字第一个拼音字母的index值 |
| | | if (lengths.indexOf(spell.indexOf(value)) !== -1) return true |
| | | // 大写 |
| | | let arrUp = data.proName.spell('up', 'array'); |
| | | let spellUp = arrUp.join(''); |
| | | let lengthsUp = [0]; |
| | | for (var i = 0; i < arrUp.length - 1; i++) { |
| | | lengthsUp.push(lengthsUp[i] + arrUp[i].length); |
| | | }; |
| | | return lengthsUp.indexOf(spellUp.indexOf(value)) !== -1; |
| | | }, |
| | | filterpackage(value, data) { |
| | | if (!value) return true; |
| | |
| | | this.TotalPrice1 = 0; |
| | | if (this.tableData1) { |
| | | this.tableData1.forEach((item) => { |
| | | // parseFloat(item.nowPrice.toFixed(2)) |
| | | |
| | | this.TotalPrice1 += item.ordPrice; |
| | | this.TotalPrice += item.nowPrice; |
| | | if (item.pacName === null) { |
| | |
| | | }, |
| | | /** 登记提交按钮 */ |
| | | /** 登记提交按钮 */ |
| | | submitForm() { |
| | | let _this = this; |
| | | this.$refs["form"].validate((valid) => { |
| | | if (valid) { |
| | | // 创建表单数据的副本并去除空格 |
| | | const formData = { ...this.form }; |
| | | formData.cusName = formData.cusName ? formData.cusName.replace(/\s/g, '') : ''; |
| | | formData.cusPhone = formData.cusPhone ? formData.cusPhone.replace(/\s/g, '') : ''; |
| | | formData.cusIdcard = formData.cusIdcard ? formData.cusIdcard.replace(/\s/g, '') : ''; |
| | | submitForm() { |
| | | let _this = this; |
| | | this.$refs["form"].validate((valid) => { |
| | | if (valid) { |
| | | // 创建表单数据的副本并去除空格 |
| | | const formData = { ...this.form }; |
| | | formData.cusName = formData.cusName ? formData.cusName.replace(/\s/g, '') : ''; |
| | | formData.cusPhone = formData.cusPhone ? formData.cusPhone.replace(/\s/g, '') : ''; |
| | | formData.cusIdcard = formData.cusIdcard ? formData.cusIdcard.replace(/\s/g, '') : ''; |
| | | |
| | | // 处理性别值 |
| | | if (formData.cusSex === "女") { |
| | | formData.cusSex = 1; |
| | | } |
| | | if (formData.cusSex === "男") { |
| | | formData.cusSex = 0; |
| | | } |
| | | if (formData.cusSex === "未知") { |
| | | formData.cusSex = 2; |
| | | } |
| | | if (formData.tjType === "") { |
| | | formData.tjType = this.dict.type.dict_team[0].value; |
| | | } |
| | | // 处理性别值 |
| | | if (formData.cusSex === "女") { |
| | | formData.cusSex = 1; |
| | | } |
| | | if (formData.cusSex === "男") { |
| | | formData.cusSex = 0; |
| | | } |
| | | if (formData.cusSex === "未知") { |
| | | formData.cusSex = 2; |
| | | } |
| | | if (formData.tjType === "") { |
| | | formData.tjType = this.dict.type.dict_team[0].value; |
| | | } |
| | | |
| | | addCustomer(formData).then((response) => { |
| | | this.responseList = response.data; |
| | | this.form.tjType = this.dict.type.dict_team[0].value; |
| | | this.$modal.msgSuccess("新增成功"); |
| | | _this.tcShow = true; |
| | | _this.isDisabled = true; |
| | | _this.top = false; |
| | | addCustomer(formData).then((response) => { |
| | | this.responseList = response.data; |
| | | this.form.tjType = this.dict.type.dict_team[0].value; |
| | | this.$modal.msgSuccess("新增成功"); |
| | | _this.tcShow = true; |
| | | _this.isDisabled = true; |
| | | _this.top = false; |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | | }, |
| | | |
| | | getmailType() { |
| | | if (this.getType == "2") { |
| | |
| | | if (this.form.reservationId != null) { |
| | | if (this.form.groupingId) { |
| | | this.form.firmName = this.form.compName; |
| | | this.form.tjType = this.dict.type.dict_team[2].value; |
| | | this.form.tjType = this.dict.type.dict_team[1].value; |
| | | this.CompanyList.forEach((item) => { |
| | | if (item.cnName == this.form.firmName) { |
| | | this.form.firmId = item.drugManufacturerId; |
| | |
| | | this.malldisble = false; |
| | | this.defaultKeys = []; |
| | | this.DataLists = []; |
| | | |
| | | |
| | | }, |
| | | |
| | | cancell() { |
| | |
| | | processOrderItems(cusId) { |
| | | getTransitionList1(cusId).then((response) => { |
| | | this.tableData1 = response.data; |
| | | let Price = 0; |
| | | if (this.tableData1) { |
| | | this.tableData1.forEach((item) => { |
| | | if (item.tjCategory != null) { |
| | |
| | | }); |
| | | } |
| | | this.TotalPrice1 += item.ordPrice || 0; // 累加应收金额 |
| | | this.TotalPrice += item.nowPrice || 0; // 累加实收金额 |
| | | Price += item.nowPrice || 0; // 累加实收金额 |
| | | this.TotalPrice = Price.toFixed(2) |
| | | }); |
| | | console.log(this.TotalPrice1, this.TotalPrice) |
| | | // 计算折扣 |
| | | this.discount = this.TotalPrice1 > 0 ? |
| | | (Math.floor((this.TotalPrice / this.TotalPrice1) * 100) / 100) * 10 : 0; |
| | |
| | | }); |
| | | }, |
| | | submitCheckinfee() { |
| | | let _this = this; |
| | | if (_this.tjCategory !== "") { |
| | | let List = _this.tableData1; |
| | | if (this.responseList.cusId) { |
| | | var userId = this.responseList.cusId; |
| | | } else { |
| | | var userId = _this.form.cusId; |
| | | } |
| | | let tjType = _this.form.tjType; |
| | | if (this.tableData[0]) { |
| | | var pacId = this.tableData[0].pacId; |
| | | } |
| | | let _this = this; |
| | | if (_this.tjCategory !== "") { |
| | | let List = _this.tableData1; |
| | | if (this.responseList.cusId) { |
| | | var userId = this.responseList.cusId; |
| | | } else { |
| | | var userId = _this.form.cusId; |
| | | } |
| | | let tjType = _this.form.tjType; |
| | | if (this.tableData[0]) { |
| | | var pacId = this.tableData[0].pacId; |
| | | } |
| | | |
| | | // 去空格处理 |
| | | const processedForm = { |
| | | ...this.form, |
| | | cusName: this.form.cusName ? this.form.cusName.replace(/\s/g, '') : '', |
| | | cusPhone: this.form.cusPhone ? this.form.cusPhone.replace(/\s/g, '') : '', |
| | | cusIdcard: this.form.cusIdcard ? this.form.cusIdcard.replace(/\s/g, '') : '' |
| | | }; |
| | | // 去空格处理 |
| | | const processedForm = { |
| | | ...this.form, |
| | | cusName: this.form.cusName ? this.form.cusName.replace(/\s/g, '') : '', |
| | | cusPhone: this.form.cusPhone ? this.form.cusPhone.replace(/\s/g, '') : '', |
| | | cusIdcard: this.form.cusIdcard ? this.form.cusIdcard.replace(/\s/g, '') : '' |
| | | }; |
| | | |
| | | List.forEach((item) => { |
| | | if (item.list) { |
| | | item.list.forEach((item1) => { |
| | | this.tjOrderList.push({ |
| | | proName: item1.proName, |
| | | proPrice: item1.nowPrice, |
| | | proId: item1.proId, |
| | | }); |
| | | List.forEach((item) => { |
| | | if (item.list) { |
| | | item.list.forEach((item1) => { |
| | | this.tjOrderList.push({ |
| | | proName: item1.proName, |
| | | proPrice: item1.nowPrice, |
| | | proId: item1.proId, |
| | | }); |
| | | }); |
| | | } else if (item.tjProjectList) { |
| | | item.tjProjectList.forEach((item1) => { |
| | | this.tjOrderList.push({ |
| | | proName: item1.proName, |
| | | proPrice: item1.priceNow, |
| | | proId: item1.proId, |
| | | }); |
| | | }); |
| | | } else { |
| | | this.tjOrderList.push({ |
| | | proName: item.proName, |
| | | proPrice: item.ysPrice, |
| | | proId: item.proId, |
| | | }); |
| | | } |
| | | }); |
| | | } else if (item.tjProjectList) { |
| | | item.tjProjectList.forEach((item1) => { |
| | | this.tjOrderList.push({ |
| | | proName: item1.proName, |
| | | proPrice: item1.priceNow, |
| | | proId: item1.proId, |
| | | |
| | | let copeWith = this.TotalPrice1; |
| | | let paidIn = this.TotalPrice.toString(); |
| | | let discount = this.discount; |
| | | this.tjFlowingWater = { copeWith, paidIn, discount }; |
| | | |
| | | let data; |
| | | if (pacId || this.getType == "2") { |
| | | data = { |
| | | photo: this.srcUrl, |
| | | pacId, |
| | | tjOrderList: this.tjOrderList, |
| | | tjFlowingWater: this.tjFlowingWater, |
| | | userId, |
| | | tjType, |
| | | getType: this.getType, |
| | | addAddress: this.addAddress, |
| | | tjCategory: this.tjCategory, |
| | | // 使用去掉空格后的数据 |
| | | cusName: processedForm.cusName, |
| | | cusPhone: processedForm.cusPhone, |
| | | cusIdcard: processedForm.cusIdcard |
| | | }; |
| | | } else { |
| | | data = { |
| | | photo: this.srcUrl, |
| | | tjOrderList: this.tjOrderList, |
| | | tjFlowingWater: this.tjFlowingWater, |
| | | userId, |
| | | tjType, |
| | | getType: this.getType, |
| | | tjCategory: this.tjCategory, |
| | | // 使用去掉空格后的数据 |
| | | cusName: processedForm.cusName, |
| | | cusPhone: processedForm.cusPhone, |
| | | cusIdcard: processedForm.cusIdcard |
| | | }; |
| | | } |
| | | |
| | | getOrder(data).then((res) => { |
| | | this.$modal.msgSuccess("提交成功"); |
| | | this.tjNumbers = res.msg; |
| | | this.charge = true; |
| | | let data = { |
| | | tjNum: res.msg, |
| | | }; |
| | | getfindTj(data).then((response) => { |
| | | if (response.data) { |
| | | this.feeitems = response.data; |
| | | if (this.feeitems.length != 0) { |
| | | this.$nextTick(() => { |
| | | this.$refs.multipleTable.toggleRowSelection( |
| | | this.feeitems[0], |
| | | true |
| | | ); |
| | | }); |
| | | } else { |
| | | this.$refs.multipleTable.clearSelection(); |
| | | } |
| | | this.loading = false; |
| | | } else { |
| | | this.feeitems = []; |
| | | this.loading = false; |
| | | } |
| | | }); |
| | | }); |
| | | } else { |
| | | this.tjOrderList.push({ |
| | | proName: item.proName, |
| | | proPrice: item.ysPrice, |
| | | proId: item.proId, |
| | | }); |
| | | this.$modal.msgError("请选择体检类别"); |
| | | } |
| | | }); |
| | | |
| | | let copeWith = this.TotalPrice1; |
| | | let paidIn = this.TotalPrice.toString(); |
| | | let discount = this.discount; |
| | | this.tjFlowingWater = { copeWith, paidIn, discount }; |
| | | |
| | | let data; |
| | | if (pacId || this.getType == "2") { |
| | | data = { |
| | | photo: this.srcUrl, |
| | | pacId, |
| | | tjOrderList: this.tjOrderList, |
| | | tjFlowingWater: this.tjFlowingWater, |
| | | userId, |
| | | tjType, |
| | | getType: this.getType, |
| | | addAddress: this.addAddress, |
| | | tjCategory: this.tjCategory, |
| | | // 使用去掉空格后的数据 |
| | | cusName: processedForm.cusName, |
| | | cusPhone: processedForm.cusPhone, |
| | | cusIdcard: processedForm.cusIdcard |
| | | }; |
| | | } else { |
| | | data = { |
| | | photo: this.srcUrl, |
| | | tjOrderList: this.tjOrderList, |
| | | tjFlowingWater: this.tjFlowingWater, |
| | | userId, |
| | | tjType, |
| | | getType: this.getType, |
| | | tjCategory: this.tjCategory, |
| | | // 使用去掉空格后的数据 |
| | | cusName: processedForm.cusName, |
| | | cusPhone: processedForm.cusPhone, |
| | | cusIdcard: processedForm.cusIdcard |
| | | }; |
| | | } |
| | | |
| | | getOrder(data).then((res) => { |
| | | this.$modal.msgSuccess("提交成功"); |
| | | this.tjNumbers = res.msg; |
| | | this.charge = true; |
| | | let data = { |
| | | tjNum: res.msg, |
| | | }; |
| | | getfindTj(data).then((response) => { |
| | | if (response.data) { |
| | | this.feeitems = response.data; |
| | | if (this.feeitems.length != 0) { |
| | | this.$nextTick(() => { |
| | | this.$refs.multipleTable.toggleRowSelection( |
| | | this.feeitems[0], |
| | | true |
| | | ); |
| | | }); |
| | | } else { |
| | | this.$refs.multipleTable.clearSelection(); |
| | | } |
| | | this.loading = false; |
| | | } else { |
| | | this.feeitems = []; |
| | | this.loading = false; |
| | | } |
| | | }); |
| | | }); |
| | | } else { |
| | | this.$modal.msgError("请选择体检类别"); |
| | | } |
| | | }, |
| | | }, |
| | | |
| | | // 表格单选 |
| | | handleSelect(selection, val) { |
| | |
| | | } |
| | | |
| | | .filter-tree { |
| | | overflow-y: auto; /* 保留纵向滚动条 */ |
| | | overflow-x: hidden; /* 隐藏横向滚动条 */ |
| | | overflow-y: auto; |
| | | /* 保留纵向滚动条 */ |
| | | overflow-x: hidden; |
| | | /* 隐藏横向滚动条 */ |
| | | height: 350px; |
| | | } |
| | | |
| | |
| | | width: 100%; |
| | | display: flex; |
| | | } |
| | | |
| | | /* .tab3 { |
| | | overflow-y: auto; |
| | | } |