| | |
| | | ]" |
| | | > |
| | | <el-input |
| | | @input="form.cusName = $event.replace(/\s/g, '')" |
| | | v-model="form.cusName" |
| | | placeholder="请输入姓名" |
| | | style="width: 99%" |
| | |
| | | }, |
| | | ]" |
| | | > |
| | | <el-input v-model="form.cusPhone" placeholder="请输入电话" /> |
| | | <el-input |
| | | v-model="form.cusPhone" |
| | | placeholder="请输入电话" |
| | | @input="form.cusPhone = $event.replace(/\s/g, '')" |
| | | /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="婚姻" prop="cusMarryStatus"> |
| | |
| | | <el-input |
| | | v-model="form.cusIdcard" |
| | | placeholder="请输入身份证号" |
| | | @input="inputChange" |
| | | @input="handleIdCardInput" |
| | | style="width: 190px" |
| | | /> |
| | | <!-- <i |
| | | style="font-size: 17px; margin-left: 3px" |
| | |
| | | label-width="106px" |
| | | > |
| | | <el-form-item label="邮箱" prop="cusEmail"> |
| | | <el-input v-model="form.cusEmail" placeholder="请输入邮箱" /> |
| | | <el-input |
| | | v-model="form.cusEmail" |
| | | placeholder="请输入邮箱" |
| | | @input="form.cusEmail = $event.replace(/\s/g, '')" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="民族" prop="cusNational"> |
| | | <el-select |
| | | filterable |
| | | v-model="form.cusNational" |
| | | placeholder="请选择民族" |
| | | style="width: 93%" |
| | | style="width: 94%" |
| | | > |
| | | <el-option |
| | | v-for="dict in dict.type.dict_user_national" |
| | |
| | | <el-select |
| | | :disabled="isDisabled" |
| | | v-model="form.ageUnit" |
| | | style="width: 20%" |
| | | style="width: 19%" |
| | | > |
| | | <el-option |
| | | v-for="dict in dict.type.dict_ageunit" |
| | |
| | | label-width="106px" |
| | | > |
| | | <el-form-item label="卡号" prop="indexCard"> |
| | | <el-input v-model="form.indexCard" placeholder="请输入卡号" /> |
| | | <el-input |
| | | v-model="form.indexCard" |
| | | placeholder="请输入卡号" |
| | | @input="form.indexCard = $event.replace(/\s/g, '')" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="职业" prop="career"> |
| | | <el-select |
| | |
| | | :rules="rules" |
| | | label-width="106px" |
| | | > |
| | | <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="category"> |
| | | <el-form-item label="体检类别" prop="category" label-width="95px"> |
| | | <el-select |
| | | v-model="form.category" |
| | | placeholder="请选择体检类别" |
| | | style="width: 95%" |
| | | style="width: 94%" |
| | | > |
| | | <el-option |
| | | v-for="dict in dict.type.dict_tjtype" |
| | |
| | | <!-- <el-input v-model="form.category" placeholder="请输入体检类别" /> --> |
| | | </el-form-item> |
| | | <el-form-item label="部门" prop="department"> |
| | | <el-input v-model="form.department" placeholder="请输入部门" /> |
| | | <el-input |
| | | v-model="form.department" |
| | | placeholder="请输入部门" |
| | | style="width: 93%" |
| | | /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form |
| | |
| | | <el-form |
| | | :model="form" |
| | | :inline="true" |
| | | label-width="100px" |
| | | label-width="104px" |
| | | style="margin-left: 10px" |
| | | > |
| | | <el-form-item label="应收金额" style="margin-right: 20px"> |
| | |
| | | <el-input-number style="width: 140px" v-model="discount" :precision="2" :step="0.1" :max="10" :min="1" |
| | | @change="numberChange" :disabled="isfalse"></el-input-number> |
| | | </el-form-item> --> |
| | | <el-form-item label="实收金额"> |
| | | <el-form-item label="实收金额" label-width="96px"> |
| | | <el-input |
| | | placeholder="实收金额" |
| | | v-model="TotalPrice" |
| | | disabled |
| | | style="width: 192px" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-form-item style="margin-left: 50px"> |
| | | <el-button type="primary" @click="Package" size="mini" |
| | | >选择套餐</el-button |
| | | > |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import printJS from "print-js"; |
| | | import { getInfo } from "@/api/login"; |
| | | import Packages from "@/components/Packages"; |
| | |
| | | } from "@/api/system/tijian"; |
| | | import VTreeTransfer from "../tijian/TreeTransfer.vue"; |
| | | import historyTj from "@/components/historyTj/index"; |
| | | import { |
| | | getCompany, |
| | | queryCompany, |
| | | } from "@/api/team/tuanti"; |
| | | import { getCompany, queryCompany } from "@/api/team/tuanti"; |
| | | export default { |
| | | components: { |
| | | VTreeTransfer, |
| | |
| | | // }; |
| | | return { |
| | | rules1: { |
| | | cnName: [ |
| | | { required: true, trigger: 'blur' }, |
| | | ], |
| | | contactPerson: [ |
| | | { required: true, trigger: 'blur' }, |
| | | ], |
| | | contactPhone: [ |
| | | { |
| | | required: true, |
| | | trigger: 'blur' |
| | | }, |
| | | { |
| | | pattern: /^1[3-9]\d{9}$/, |
| | | trigger: 'blur' |
| | | } |
| | | ], |
| | | }, |
| | | title: '', |
| | | cnName: [{ required: true, trigger: "blur" }], |
| | | contactPerson: [{ required: true, trigger: "blur" }], |
| | | contactPhone: [ |
| | | { |
| | | required: true, |
| | | trigger: "blur", |
| | | }, |
| | | { |
| | | pattern: /^1[3-9]\d{9}$/, |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | title: "", |
| | | open1: false, |
| | | CompanyList: [], |
| | | marryall: 0, |
| | |
| | | this.title = "添加体检单位信息维护"; |
| | | }, |
| | | idFn1(value) { |
| | | console.log(value); |
| | | if (value) { |
| | | this.form.dictCompId = value; |
| | | // 保存修改前的 dictCompId |
| | | const originalCompId = this.form.dictCompId; |
| | | |
| | | // 更新公司名称 |
| | | this.form.compName = value; |
| | | |
| | | // 遍历公司列表,根据公司名称设置对应的 drugManufacturerId |
| | | 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; |
| | | } |
| | | }); |
| | | |
| | | // 如果 dictCompId 没有变化,重置为空 |
| | | if (this.form.dictCompId === originalCompId) { |
| | | this.form.dictCompId = ""; |
| | | } |
| | | } |
| | | }, |
| | | |
| | | getRemoteData(query) { |
| | | if (query) { |
| | | let compName = query; |
| | |
| | | }); |
| | | }); |
| | | } |
| | | }, |
| | | handleIdCardInput(value) { |
| | | this.form.cusIdcard = value.replace(/\s/g, ""); |
| | | this.inputChange(); // 保留原有的身份证输入处理逻辑 |
| | | }, |
| | | inputChange() { |
| | | const reg = |
| | |
| | | if (this.form.tjType == null) { |
| | | this.form.tjType = 2; |
| | | } |
| | | if (this.form.cusMarryStatus === "null") { |
| | | this.form.cusMarryStatus = "5"; |
| | | } |
| | | if (this.form.cusNational === "null") { |
| | | this.form.cusNational = "1"; |
| | | } |
| | | this.loading = false; |
| | | if (this.form) { |
| | | _this.tcShow = true; |