New file |
| | |
| | | <template> |
| | | <div> |
| | | <el-dialog |
| | | :title="title" |
| | | :visible.sync="open" |
| | | width="1200px" |
| | | append-to-body |
| | | > |
| | | <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> |
| | | <el-form-item label="建议内容" prop="advice"> |
| | | <el-input |
| | | type="textarea" |
| | | v-model="propform.advice" |
| | | :autosize="{ minRows: 9, maxRows: 10 }" |
| | | placeholder="请输入建议" |
| | | /> |
| | | </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> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | getKjTjAdviceKjbqBySex, |
| | | getCyTjAdviceKjbqBySex, |
| | | } from "@/api/hosp/project"; |
| | | import { getInfo } from "@/api/login"; |
| | | export default { |
| | | name: "Packagese", |
| | | props: { |
| | | cusobj: Object, |
| | | }, |
| | | data() { |
| | | return { |
| | | tjproposal: "0", |
| | | open: false, |
| | | openone: false, |
| | | // 弹出层标题 |
| | | title: "", |
| | | total: 0, |
| | | dataList: [], |
| | | // 遮罩层 |
| | | loading: false, |
| | | queryParams: { |
| | | sex: "", |
| | | isZj: "", |
| | | userId: "", |
| | | page: 1, |
| | | pageSize: 10, |
| | | }, |
| | | list: [], |
| | | 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) { |
| | | this.getList(); |
| | | } |
| | | }, |
| | | }, |
| | | mounted() { |
| | | // this.getList() |
| | | }, |
| | | |
| | | created() { |
| | | // if( this.queryParams){ |
| | | // 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; |
| | | }); |
| | | }, |
| | | 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; |
| | | }); |
| | | }); |
| | | } |
| | | }, |
| | | handleOk() { |
| | | this.open = false; |
| | | if (this.list.length != 0) { |
| | | this.$emit("event1", this.list); |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .pag { |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: center; |
| | | } |
| | | |
| | | .pag1 { |
| | | width: 30%; |
| | | } |
| | | </style> |
| | | |
| | |
| | | :total="total" |
| | | :page.sync="queryParams.page" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | @pagination="radiotjproposalChange" |
| | | /> |
| | | </div> |
| | | </div> |
| | |
| | | watch: { |
| | | cusobj(val, newVla) { |
| | | // console.log(val,newVla,1111) |
| | | this.fList= val |
| | | this.fList = val; |
| | | this.queryParams.sex = val.sex; |
| | | this.queryParams.isZj = val.isZj; |
| | | if (this.queryParams.sex) { |
| | |
| | | this.getAllList(); |
| | | }, |
| | | handleSelectionChange(selection) { |
| | | // if (selection.length > 1) { |
| | | // this.$refs.elTable.clearSelection(); // 清空所有选择 |
| | | // this.$refs.elTable.toggleRowSelection(selection.pop()); // 设置选择项 |
| | | // } |
| | | // if (selection.length > 1) { |
| | | // this.$refs.elTable.clearSelection(); // 清空所有选择 |
| | | // this.$refs.elTable.toggleRowSelection(selection.pop()); // 设置选择项 |
| | | // } |
| | | this.list = selection; |
| | | console.log( this.list) |
| | | console.log(this.list); |
| | | }, |
| | | radiotjproposalChange() { |
| | | if (this.tjproposal == "0") { |
| | | this.queryParams.isZj = this.fList.isZj; |
| | | this.queryParams.userId = null |
| | | this.getList(); |
| | | } else { |
| | | this.loading = true; |
| | |
| | | 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; |
| | | if (res.data) { |
| | | this.dataList = res.data.records; |
| | | this.total = res.data.total; |
| | | |
| | | } else { |
| | | this.dataList =[] |
| | | this.total = 0 |
| | | this.$modal.msgError(res.msg); |
| | | } |
| | | this.loading = false; |
| | | }); |
| | | }); |
| | |
| | | </el-dialog> |
| | | <Packages ref="bbb" :baogao="baogao" /> |
| | | <proposal ref="proposal" :cusobj="cusobj" @event1="eventchange($event)" /> |
| | | <createproposal ref="createproposal" :textarea1="textarea1" /> |
| | | |
| | | <el-dialog |
| | | title="常用建议维护" |
| | | :visible.sync="propdialog" |
| | | width="500px" |
| | | append-to-body |
| | | > |
| | | <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> |
| | | <el-form-item label="建议内容" prop="advice"> |
| | | <el-input |
| | | type="textarea" |
| | | v-model="propform.advice" |
| | | :autosize="{ minRows: 9, maxRows: 10 }" |
| | | placeholder="请输入建议" |
| | | /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitpropForm">确 定</el-button> |
| | | <el-button @click="cancel">取 消</el-button> |
| | | </div> |
| | | |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | |
| | | import jianqianwenzhen from "@/components/jianqianwenzhen"; |
| | | import Packages from "@/components/Packages"; |
| | | import proposal from "@/components/proposal"; |
| | | import createproposal from "@/components/createproposal"; |
| | | import { |
| | | getcheckList, |
| | | getTjdetailList, |
| | |
| | | Historicalreport, |
| | | jianqianwenzhen, |
| | | Packages, |
| | | proposal, |
| | | proposal,createproposal |
| | | }, |
| | | dicts: [ |
| | | "dict_tjtype", |
| | |
| | | }); |
| | | }, |
| | | proposalChange() { |
| | | this.propdialog = true; |
| | | this.$refs.createproposal.open = true; |
| | | this.$refs.createproposal.title = "常用建议维护"; |
| | | }, |
| | | radiotjprojectChange() { |
| | | if (this.tjproject == "0") { |