| | |
| | | <div class="pag" v-if="tjproposal == '0'"> |
| | | <div class="pag1"> |
| | | <pagination |
| | | v-show="total > 0" |
| | | v-show="total1 > 0" |
| | | :total="total1" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | :page.sync="queryParams1.pageNum" |
| | | :limit.sync="queryParams1.pageSize" |
| | | @pagination="radiotjproposalChange" |
| | | /> |
| | | </div> |
| | |
| | | } from "@/api/hosp/project"; |
| | | import { listAdvicerules } from "@/api/hosp/advicerules"; |
| | | import { getInfo } from "@/api/login"; |
| | | import { get } from "sortablejs"; |
| | | export default { |
| | | name: "Packagese", |
| | | props: { |
| | |
| | | sex: "", |
| | | isZj: "", |
| | | userId: "", |
| | | page: 1, |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | jynr: "", |
| | | jybt: "", |
| | | }, |
| | | queryParams1: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | jymc: "", |
| | | sex: "", |
| | | isZj: "", |
| | | userId: "", |
| | | }, |
| | | list: [], |
| | | fList: {}, |
| | |
| | | this.loading = true; |
| | | this.openone = true; |
| | | getTjHyBgList(this.queryParams).then((res) => { |
| | | console.log(res,6666); |
| | | |
| | | this.dataList = res.data.records; |
| | | this.loading = false; |
| | | }); |
| | |
| | | console.log(this.list); |
| | | }, |
| | | search() { |
| | | this.queryParams.jybt = this.searchAdv; |
| | | this.queryParams.page = 1; |
| | | this.queryParams1.jymc = this.searchAdv; |
| | | this.queryParams1.pageNum = 1; |
| | | this.loading = true; |
| | | getKjTjAdviceKjbqBySex(this.queryParams).then((res) => { |
| | | this.dataList = res.data.records; |
| | | this.total = res.data.total; |
| | | listAdvicerules(this.queryParams1).then((res) => { |
| | | this.advicerulesList = res.rows; |
| | | this.total1 = res.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | radiotjproposalChange() { |
| | | if (this.tjproposal == "0") { |
| | | this.searchAdv = ""; |
| | | this.queryParams.isZj = this.fList.isZj; |
| | | this.queryParams.userId = null; |
| | | this.queryParams1.isZj = this.fList.isZj; |
| | | this.queryParams1.userId = null; |
| | | this.getList(); |
| | | } else { |
| | | this.loading = true; |
| | | getInfo().then((res) => { |
| | | this.queryParams.userId = res.user.userId; |
| | | this.queryParams.isZj = null; |
| | | getCyTjAdviceKjbqBySex(this.queryParams).then((res) => { |
| | | this.queryParams1.userId = res.user.userId; |
| | | this.queryParams1.isZj = null; |
| | | getCyTjAdviceKjbqBySex(this.queryParams1).then((res) => { |
| | | if (res.data) { |
| | | this.advicerulesList = res.data.records; |
| | | this.total1 = res.data.total; |
| | | this.dataList = res.data.records; |
| | | this.total = res.data.total; |
| | | } else { |
| | | this.advicerulesList = []; |
| | | this.total1 = 0; |
| | | this.dataList = []; |
| | | this.total = 0; |
| | | this.$modal.msgError(res.msg); |
| | |
| | | :before-close="handleClose" |
| | | :with-header="false" |
| | | size="100%" |
| | | |
| | | > |
| | | <div class="top"> |
| | | <table |
| | |
| | | </el-dialog> |
| | | <Packages ref="bbb" :baogao="baogao" /> |
| | | <Prescription ref="Pre" :preObj="preObj" /> |
| | | <proposal ref="proposal" :cusobj="cusobj" :tjNumber="tjNumber" @event1="eventchange($event)" /> |
| | | <proposal |
| | | ref="proposal" |
| | | :cusobj="cusobj" |
| | | :tjNumber="tjNumber" |
| | | @event1="eventchange($event)" |
| | | /> |
| | | <createproposal ref="createproposal" :creatobj="creatobj" /> |
| | | |
| | | <el-dialog |
| | |
| | | }, |
| | | eventchange(data) { |
| | | this.dataText = data; |
| | | console.log(data, 6655); |
| | | |
| | | if (this.textarea1 == null) { |
| | | this.textarea1 = ""; |
| | | } |
| | | data.forEach((item) => { |
| | | /* data.forEach((item) => { |
| | | this.textarea1 += item.advice; |
| | | }); */ |
| | | data.forEach((item) => { |
| | | this.textarea1 += (item.advice || item.jynr || "") + "\n"; |
| | | }); |
| | | }, |
| | | proposalChange() { |
| | |
| | | if (res.data) { |
| | | // this.Testitems = res.data |
| | | this.changedate = res.data; |
| | | |
| | | this.changedate.forEach((item) => { |
| | | this.textarea1 = item.checkAdvice; |
| | | }); |
| | |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | style="width: 170px" |
| | | @input="onInput" |
| | | /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="姓名" prop="name"> |
| | |
| | | }); |
| | | }, |
| | | methods: { |
| | | onInput(val) { |
| | | this.inputVal = val.replace(/\s+/g, ""); // 清除所有空格 |
| | | }, |
| | | handleDateChange(val) { |
| | | if (val && val.length === 2) { |
| | | this.queryParams.start = val[0]; // 设置开始时间 |
| | |
| | | ]" |
| | | > |
| | | <el-input |
| | | @input="form.cusName = $event.replace(/\s/g, '')" |
| | | @input="form.cusName = $event.replace(/\s/g, '')" |
| | | v-model="form.cusName" |
| | | placeholder="请输入姓名" |
| | | style="width: 99%" |
| | |
| | | trigger: 'blur', |
| | | }, |
| | | ]" |
| | | > |
| | | |
| | | <el-input v-model="form.cusPhone" placeholder="请输入电话" @input="form.cusPhone = $event.replace(/\s/g, '')"/> |
| | | > |
| | | <el-input |
| | | v-model="form.cusPhone" |
| | | placeholder="请输入电话" |
| | | @input="form.cusPhone = $event.replace(/\s/g, '')" |
| | | /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="婚姻" prop="cusMarryStatus"> |
| | |
| | | placeholder="请输入身份证号" |
| | | @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="请输入邮箱" @input="form.cusEmail = $event.replace(/\s/g, '')"/> |
| | | <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 |
| | |
| | | label-width="106px" |
| | | > |
| | | <el-form-item label="卡号" prop="indexCard"> |
| | | <el-input v-model="form.indexCard" placeholder="请输入卡号" @input="form.indexCard = $event.replace(/\s/g, '')"/> |
| | | <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 |
| | |
| | | |
| | | // 如果 dictCompId 没有变化,重置为空 |
| | | if (this.form.dictCompId === originalCompId) { |
| | | this.form.dictCompId = ''; |
| | | this.form.dictCompId = ""; |
| | | } |
| | | } |
| | | }, |
| | |
| | | } |
| | | }, |
| | | handleIdCardInput(value) { |
| | | this.form.cusIdcard = value.replace(/\s/g, ''); |
| | | this.inputChange(); // 保留原有的身份证输入处理逻辑 |
| | | }, |
| | | this.form.cusIdcard = value.replace(/\s/g, ""); |
| | | this.inputChange(); // 保留原有的身份证输入处理逻辑 |
| | | }, |
| | | inputChange() { |
| | | const reg = |
| | | /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/; |