| | |
| | | > |
| | | <el-table-column type="selection" width="40" align="center" /> |
| | | <el-table-column label="编码" width="70" align="center" prop="id" /> |
| | | <el-table-column |
| | | label="用户名" |
| | | width="70" |
| | | align="center" |
| | | prop="userName" |
| | | /> |
| | | <el-table-column label="标题" width="120" align="center" prop="title" /> |
| | | <el-table-column label="建议内容" align="left" prop="advice" /> |
| | | <!-- <el-table-column |
| | |
| | | name: "Packagese", |
| | | props: { |
| | | cusobj: Object, |
| | | mrjy: String, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | this.fList = val; |
| | | this.queryParams.sex = val.sex; |
| | | this.queryParams.isZj = val.isZj; |
| | | this.tjproposal = "0"; |
| | | // this.tjproposal = "0"; |
| | | this.getList(); |
| | | }, |
| | | mrjy(val) { |
| | | /* if (val === "Y") { |
| | | this.tjproposal = "1"; // 默认选中“常用建议” |
| | | this.radiotjproposalChange("1"); // 手动触发相关逻辑 |
| | | } */ |
| | | const mode = val === "Y" ? "1" : "0"; |
| | | this.setTjProposal(mode); |
| | | }, |
| | | }, |
| | | |
| | | methods: { |
| | | setTjProposal(mode) { |
| | | if (this.tjproposal !== mode) { |
| | | this.tjproposal = mode; |
| | | this.radiotjproposalChange(mode); // 执行切换逻辑 |
| | | } |
| | | }, |
| | | getAllList() { |
| | | this.loading = true; |
| | | this.openone = true; |
| | |
| | | </el-dialog> |
| | | <Packages ref="bbb" :baogao="baogao" /> |
| | | <Prescription ref="Pre" :preObj="preObj" /> |
| | | <proposal ref="proposal" :cusobj="cusobj" @event1="eventchange($event)" /> |
| | | <proposal ref="proposal" :cusobj="cusobj" :mrjy="mrjy" @event1="eventchange($event)" /> |
| | | <createproposal ref="createproposal" :creatobj="creatobj" /> |
| | | <el-dialog title="常用建议维护" :visible.sync="propdialog" width="500px" append-to-body></el-dialog> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import _ from "lodash"; |
| | | import { getConfigKey } from "@/api/system/config"; |
| | | import jianqianwenzhen from "@/components/jianqianwenzhen"; |
| | | import Packages from "@/components/Packages"; |
| | | import Prescription from "@/components/Prescription"; |
| | |
| | | yichangList: [], |
| | | fcList: [], |
| | | statusList: [], |
| | | mrjy:"", |
| | | queryParam: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | |
| | | |
| | | propoChange() { |
| | | this.cusobj = { sex: this.tableAll.cusSex, isZj: 0 }; |
| | | this.$refs.proposal.open = true; |
| | | getConfigKey("mrzscyjy").then((res) => { |
| | | this.mrjy = res.msg; // 会触发 watch → 设置 tjproposal = "1" |
| | | console.log(res,4444); |
| | | |
| | | // 等数据状态准备好后再打开弹窗 |
| | | this.$refs.proposal.title = "建议方案"; |
| | | this.$refs.proposal.open = true; |
| | | }); |
| | | |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | eventchange(data) { |
| | | this.dataText = data; |
| | | if (this.textarea1 == null) { |
| | |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="序号" align="center" prop="id" width="80" /> |
| | | <el-table-column |
| | | label="序号" |
| | | align="center" |
| | | type="index" |
| | | :index="indexMethod" |
| | | width="80" |
| | | /> |
| | | <el-table-column label="关键字" align="center" prop="gjz" /> |
| | | <el-table-column |
| | | label="操作" |
| | |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | |
| | | indexMethod(index) { |
| | | return index + 1; // 从100开始编号 |
| | | }, |
| | | |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |