qinxianzhangyao
2024-06-11 e19defd15577e70c8e55593d7fe44bab1cbe1a66
src/views/doctor/checkAll/index.vue
@@ -68,7 +68,11 @@
        </el-select>
      </el-form-item>
      <el-form-item> 
        <el-button type="primary" size="mini" @click="submitForm" style="margin-right:15px;"
        <el-button
          type="primary"
          size="mini"
          @click="submitForm"
          style="margin-right: 15px"
          >搜索</el-button
        >
        <el-button size="mini" @click="resetQuery">重置</el-button>
@@ -182,17 +186,25 @@
          <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"
@@ -202,7 +214,7 @@
              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>
@@ -575,13 +587,22 @@
                </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"
                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>
@@ -1047,6 +1068,7 @@
      </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" />
@@ -1064,6 +1086,7 @@
<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 {
@@ -1098,6 +1121,7 @@
    Packages,
    proposal,
    createproposal,
    Prescription,
  },
  dicts: [
    "dict_tjtype",
@@ -1113,6 +1137,7 @@
  name: "checkAll",
  data() {
    return {
      preObj: {},
      baogao: [],
      flags: false,
      jianqianwenzhendata: [],
@@ -1469,6 +1494,16 @@
      });
    },
    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;
@@ -1490,10 +1525,10 @@
      // this.$refs.proposal.getList();
    },
    eventchange(data) {
      this.dataText = data
      console.log(this.textarea1 )
      this.dataText = data;
      console.log(this.textarea1);
      if(this.textarea1 == null ){
        this.textarea1 = ""
        this.textarea1 = "";
      }
      data.forEach((item) => {
        this.textarea1 += item.advice;
@@ -1501,7 +1536,7 @@
    },
    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{
@@ -1641,6 +1676,7 @@
    // 点击详情
    handleClick(row) {
      this.$refs.Pre.open = false;
      this.tableAll = row;
      this.tjproject = "0";
      // if (this.tableAll.cusSex === 0) {
@@ -1946,7 +1982,8 @@
.dialog-footers {
  /* margin-top: 5px; */
  margin-left: calc(100% - 15%);
  display: flex;
  margin-left: calc(100% - 25%);
}
textarea {