From c126e3094c8b456ee75f06b167c40298c2b5bbbe Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期五, 26 四月 2024 10:40:04 +0800 Subject: [PATCH] qxtj --- src/views/doctor/checkAll/index.vue | 25 +++++--- vue.config.js | 2 src/components/createproposal/index.vue | 96 +++++++++++-------------------- 3 files changed, 51 insertions(+), 72 deletions(-) diff --git a/src/components/createproposal/index.vue b/src/components/createproposal/index.vue index a7c09be..95901fa 100644 --- a/src/components/createproposal/index.vue +++ b/src/components/createproposal/index.vue @@ -6,12 +6,14 @@ width="1200px" append-to-body > - <el-form ref="form" :model="propform" label-width="80px"> + <el-form ref="form" :model="propform" label-width="80px"> <el-form-item label="寤鸿鏍囬" prop="title"> <el-input v-model="propform.title" placeholder="璇疯緭鍏ュ悕绉版爣棰�" /> </el-form-item> - <el-form-item label="蹇嵎鏍囩" prop="title"> - <el-input v-model="propform.title" placeholder="璇疯緭鍏ュ悕绉版爣棰�" /> + <el-form-item label="蹇嵎鏍囩" prop="kjbq"> + <el-checkbox-group v-model="propform.kjbq" @change="handleCheckedCitiesChange"> + <el-checkbox v-for="(item,index) in dataList" :key="index" :label="item.id" >{{ item.kjbq}}</el-checkbox> + </el-checkbox-group> </el-form-item> <el-form-item label="寤鸿鍐呭" prop="advice"> <el-input @@ -22,7 +24,7 @@ /> </el-form-item> </el-form> - + <span slot="footer" class="dialog-footer"> <el-button @click="open = false">鍙� 娑�</el-button> <el-button type="primary" @click="handleOk">纭� 瀹�</el-button> @@ -32,45 +34,43 @@ </template> <script> -import { - getKjTjAdviceKjbqBySex, - getCyTjAdviceKjbqBySex, -} from "@/api/hosp/project"; +import { getTjAdviceKjbqByFl } from "@/api/system/biaoqianzidian"; import { getInfo } from "@/api/login"; export default { - name: "Packagese", + name: "createproposal", props: { - cusobj: Object, + dataText: Array, }, data() { return { - tjproposal: "0", + propform: { + advice: "", + kjbq:[], + }, open: false, openone: false, // 寮瑰嚭灞傛爣棰� title: "", - total: 0, dataList: [], // 閬僵灞� loading: false, queryParams: { - sex: "", - isZj: "", - userId: "", - page: 1, + pageNum: 1, pageSize: 10, + userId: null, + qyzt: 0, }, list: [], - fList: {}, + fList: [], }; }, watch: { - cusobj(val, newVla) { - // console.log(val,newVla,1111) - this.fList= val - this.queryParams.sex = val.sex; - this.queryParams.isZj = val.isZj; - if (this.queryParams.sex) { + dataText(val, newVla) { + this.fList = val; + val.forEach((item) => { + this.propform.advice += item.advice; + }); + if (this.propform.advice) { this.getList(); } }, @@ -85,49 +85,21 @@ // } }, methods: { - getAllList() { - this.loading = true; - this.openone = true; - getTjHyBgList(this.queryParams).then((res) => { - this.dataList = res.data.records; - this.loading = false; - }); - }, getList() { this.loading = true; - getKjTjAdviceKjbqBySex(this.queryParams).then((res) => { - this.dataList = res.data.records; - this.total = res.data.total; - this.loading = false; + getInfo().then((res) => { + this.queryParams.userId = res.user.userId; + getTjAdviceKjbqByFl(this.queryParams).then((res) => { + if(res.data){ + this.dataList = res.data.records; + } + + this.loading = false; + }); }); }, - handleQuery() { - this.getAllList(); - }, - handleSelectionChange(selection) { - // if (selection.length > 1) { - // this.$refs.elTable.clearSelection(); // 娓呯┖鎵�鏈夐�夋嫨 - // this.$refs.elTable.toggleRowSelection(selection.pop()); // 璁剧疆閫夋嫨椤� - // } - this.list = selection; - console.log( this.list) - }, - radiotjproposalChange() { - if (this.tjproposal == "0") { - this.queryParams.isZj = this.fList.isZj; - 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.dataList = res.data.records; - this.total = res.data.total; - this.loading = false; - }); - }); - } + handleCheckedCitiesChange(val){ + console.log(val) }, handleOk() { this.open = false; diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue index 5b02f2b..a97c0b8 100644 --- a/src/views/doctor/checkAll/index.vue +++ b/src/views/doctor/checkAll/index.vue @@ -1048,15 +1048,14 @@ </el-dialog> <Packages ref="bbb" :baogao="baogao" /> <proposal ref="proposal" :cusobj="cusobj" @event1="eventchange($event)" /> - <createproposal ref="createproposal" :textarea1="textarea1" /> - + <createproposal ref="createproposal" :dataText="dataText" /> + <el-dialog title="甯哥敤寤鸿缁存姢" :visible.sync="propdialog" width="500px" append-to-body > - </el-dialog> </div> </template> @@ -1097,7 +1096,8 @@ Historicalreport, jianqianwenzhen, Packages, - proposal,createproposal + proposal, + createproposal, }, dicts: [ "dict_tjtype", @@ -1124,7 +1124,6 @@ remarks: "", remark: "", propdialog: false, - propform: {}, proIds: "", cusobj: {}, xiaojie: "", @@ -1193,6 +1192,7 @@ Deptobj: "", // 鐐瑰嚮鍙傛暟 changedate: [], + dataText: [], status: {}, // 鏌ヨ鍙傛暟 queryParams: { @@ -1489,13 +1489,21 @@ // this.$refs.proposal.getList(); }, eventchange(data) { + this.dataText = data data.forEach((item) => { - this.textarea1 += item.advice + this.textarea1 += item.advice; }); }, proposalChange() { - this.$refs.createproposal.open = true; - this.$refs.createproposal.title = "甯哥敤寤鸿缁存姢"; + if (this.dataText.length != 0) { + this.$refs.createproposal.open = true; + this.$refs.createproposal.title = "甯哥敤寤鸿缁存姢"; + }else{ + this.$message({ + type: "warning ", + message: "璇峰厛濉啓鎬绘寤鸿", + }); + } }, radiotjprojectChange() { if (this.tjproject == "0") { @@ -1770,7 +1778,6 @@ cancel() { this.propdialog = false; }, - submitpropForm() {}, // 鏄惁鍏抽棴寮圭獥 handleClose(done) { diff --git a/vue.config.js b/vue.config.js index 6d0cc77..2f2ec9c 100644 --- a/vue.config.js +++ b/vue.config.js @@ -53,7 +53,7 @@ // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { //target: `https://ltpeis.xaltjdkj.cn:5501/prod-api/getInfo`, - target: `http://192.168.0.113:5011`, + target: `http://192.168.1.113:5011`, // // target: `http://192.168.0.99:8080/ltkj-admin`, // target: `https://ltpeis.xaltjdkj.cn:5011/ltkj-admin`, // target: `http://10.168.0.9:5011`, -- Gitblit v1.8.0