| | |
| | | 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 |
| | |
| | | /> |
| | | </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> |
| | |
| | | </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(); |
| | | } |
| | | }, |
| | |
| | | // } |
| | | }, |
| | | 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; |
| | |
| | | </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> |
| | |
| | | Historicalreport, |
| | | jianqianwenzhen, |
| | | Packages, |
| | | proposal,createproposal |
| | | proposal, |
| | | createproposal, |
| | | }, |
| | | dicts: [ |
| | | "dict_tjtype", |
| | |
| | | remarks: "", |
| | | remark: "", |
| | | propdialog: false, |
| | | propform: {}, |
| | | proIds: "", |
| | | cusobj: {}, |
| | | xiaojie: "", |
| | |
| | | Deptobj: "", |
| | | // 点击参数 |
| | | changedate: [], |
| | | dataText: [], |
| | | status: {}, |
| | | // 查询参数 |
| | | queryParams: { |
| | |
| | | // 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") { |
| | |
| | | cancel() { |
| | | this.propdialog = false; |
| | | }, |
| | | submitpropForm() {}, |
| | | |
| | | // 是否关闭弹窗 |
| | | handleClose(done) { |
| | |
| | | // 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`, |