| | |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" size="mini" @click="submitForm" style="margin-right:15px;" |
| | | <el-form-item> |
| | | <el-button |
| | | type="primary" |
| | | size="mini" |
| | | @click="submitForm" |
| | | style="margin-right: 15px" |
| | | >搜索</el-button |
| | | > |
| | | <el-button size="mini" @click="resetQuery">重置</el-button> |
| | |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | fixed="right" |
| | | title="处方" |
| | | type="text" |
| | | size="mini" |
| | | @click.stop="rowClick(scope.row)" |
| | | icon="el-icon-edit-outline" |
| | | ></el-button> |
| | | <el-button |
| | | fixed="right" |
| | | title="详情" |
| | | type="text" |
| | | size="mini" |
| | | @click="handleClick(scope.row)" |
| | | @click.stop="handleClick(scope.row)" |
| | | icon="el-icon-document-copy" |
| | | ></el-button> |
| | | <!-- <el-button type="text" size="mini" @click="generate(scope.row)" v-if="scope.row.tjStatus=='1'">生成</el-button> --> |
| | | <el-button |
| | | type="text" |
| | | size="mini" |
| | | @click="viewReport(scope.row)" |
| | | @click.stop="viewReport(scope.row)" |
| | | v-if="scope.row.tjStatus == '1'" |
| | | title="预览" |
| | | icon="el-icon-view" |
| | |
| | | size="mini" |
| | | v-if="scope.row.tjStatus == '1'" |
| | | title="撤销" |
| | | @click="getRevoke(scope.row)" |
| | | @click.stop="getRevoke(scope.row)" |
| | | icon="el-icon-refresh-left" |
| | | ></el-button> |
| | | </template> |
| | |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footers" v-if="tjproject == '0'"> |
| | | <div slot="footer" class="dialog-footers" > |
| | | <el-button |
| | | type="primary" |
| | | @click="determine" |
| | | :disabled="isdisabled" |
| | | >提交并生成报告</el-button |
| | | size="mini" |
| | | @click.stop="rowClick" |
| | | icon="el-icon-edit-outline" |
| | | >开处方</el-button |
| | | > |
| | | <div v-if="tjproject == '0'" style="padding-left:10px ;"> |
| | | <el-button |
| | | type="primary" |
| | | @click="determine" |
| | | :disabled="isdisabled" |
| | | >提交并生成报告</el-button |
| | | > |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | |
| | | </span> |
| | | </el-dialog> |
| | | <Packages ref="bbb" :baogao="baogao" /> |
| | | <Prescription ref="Pre" :preObj="preObj" /> |
| | | <proposal ref="proposal" :cusobj="cusobj" @event1="eventchange($event)" /> |
| | | <createproposal ref="createproposal" :creatobj="creatobj" /> |
| | | |
| | |
| | | <script> |
| | | import jianqianwenzhen from "@/components/jianqianwenzhen"; |
| | | import Packages from "@/components/Packages"; |
| | | import Prescription from "@/components/Prescription"; |
| | | import proposal from "@/components/proposal"; |
| | | import createproposal from "@/components/createproposal"; |
| | | import { |
| | |
| | | Packages, |
| | | proposal, |
| | | createproposal, |
| | | Prescription, |
| | | }, |
| | | dicts: [ |
| | | "dict_tjtype", |
| | |
| | | name: "checkAll", |
| | | data() { |
| | | return { |
| | | preObj: {}, |
| | | baogao: [], |
| | | flags: false, |
| | | jianqianwenzhendata: [], |
| | |
| | | hosproy: true, |
| | | remarks: "", |
| | | remark: "", |
| | | creatobj:{}, |
| | | creatobj: {}, |
| | | propdialog: false, |
| | | proIds: "", |
| | | cusobj: {}, |
| | |
| | | }); |
| | | }, |
| | | |
| | | rowClick(row) { |
| | | if(row.tjNumber){ |
| | | this.preObj = row; |
| | | }else{ |
| | | this.preObj = this.tableAll; |
| | | } |
| | | this.$refs.Pre.open = true; |
| | | this.$refs.Pre.title = "处方"; |
| | | }, |
| | | |
| | | // 单选按钮 |
| | | radioChange(value) { |
| | | this.loading = true; |
| | |
| | | // this.$refs.proposal.getList(); |
| | | }, |
| | | eventchange(data) { |
| | | this.dataText = data |
| | | console.log(this.textarea1 ) |
| | | if(this.textarea1 == null ){ |
| | | this.textarea1 = "" |
| | | this.dataText = data; |
| | | console.log(this.textarea1); |
| | | if (this.textarea1 == null) { |
| | | this.textarea1 = ""; |
| | | } |
| | | data.forEach((item) => { |
| | | this.textarea1 += item.advice; |
| | |
| | | }, |
| | | proposalChange() { |
| | | if (this.textarea1) { |
| | | this.creatobj = {proParentList:this.textarea1, isZj: 0} |
| | | this.creatobj = { proParentList: this.textarea1, isZj: 0 }; |
| | | this.$refs.createproposal.open = true; |
| | | this.$refs.createproposal.title = "常用建议维护"; |
| | | }else{ |
| | | } else { |
| | | this.$message({ |
| | | type: "warning ", |
| | | message: "请先填写总检建议", |
| | | }); |
| | | type: "warning ", |
| | | message: "请先填写总检建议", |
| | | }); |
| | | } |
| | | }, |
| | | radiotjprojectChange() { |
| | |
| | | |
| | | // 点击详情 |
| | | handleClick(row) { |
| | | this.$refs.Pre.open = false; |
| | | this.tableAll = row; |
| | | this.tjproject = "0"; |
| | | // if (this.tableAll.cusSex === 0) { |
| | |
| | | |
| | | .dialog-footers { |
| | | /* margin-top: 5px; */ |
| | | margin-left: calc(100% - 15%); |
| | | display: flex; |
| | | margin-left: calc(100% - 25%); |
| | | } |
| | | |
| | | textarea { |