qinxianzhangyao
2024-07-08 53b7cfd8589201ec728c68a08b4ea07d94e66258
src/views/doctor/checkAll/index.vue
@@ -243,69 +243,79 @@
      :with-header="false"
      size="80%"
    >
      <div style="font-size: 14px">
        <table
          style="
            width: 96%;
            margin: 10px 10px;
            border: 1px solid #dfe6ec;
            border-collapse: collapse;
          "
          cellspacing="4"
        >
          <caption style="background-color: #f8f8f9; font-size: 18px">
            {{
              tableAll.cusName
            }}的体检资料
          </caption>
          <tr style="border: 1px solid #dfe6ec; border-collapse: collapse">
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
              姓名:
            </td>
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
              {{ tableAll.cusName }}
            </td>
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
              性别:
            </td>
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
              {{
                tableAll.cusSex == 0
                  ? "男"
                  : tableAll.cusSex == 1
                  ? "女"
                  : "未知"
              }}
            </td>
          </tr>
          <tr style="border: 1px solid #dfe6ec; border-collapse: collapse">
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
              体检单号:
            </td>
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
              {{ tableAll.tjNumber }}
            </td>
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
              体检时间:
            </td>
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
              {{ tableAll.tjTime }}
            </td>
          </tr>
        </table>
      </div>
      <div>
        <el-row>
          <el-col :span="18">
            <div style="margin: 10px 10px">
               <!--<el-radio-group
                v-model="tjproject"
                @input="radiotjprojectChange"
                style="margin-left: 20px"
            <div style="font-size: 14px">
              <table
                style="
                  width: 98%;
                  margin: 10px 10px;
                  border: 1px solid #dfe6ec;
                  border-collapse: collapse;
                "
                cellspacing="4"
              >
                <el-radio-button label="0">体检项目</el-radio-button>
                <el-radio-button label="1">化验项目</el-radio-button>
              </el-radio-group> -->
                <caption style="background-color: #f8f8f9; font-size: 18px">
                  {{
                    tableAll.cusName
                  }}的体检资料
                </caption>
                <tr
                  style="border: 1px solid #dfe6ec; border-collapse: collapse;height: 36px;"
                >
                  <td
                    style="border: 1px solid #dfe6ec; border-collapse: collapse"
                  >
                    姓名:
                  </td>
                  <td
                    style="border: 1px solid #dfe6ec; border-collapse: collapse"
                  >
                    {{ tableAll.cusName }}
                  </td>
                  <td
                    style="border: 1px solid #dfe6ec; border-collapse: collapse"
                  >
                    性别:
                  </td>
                  <td
                    style="border: 1px solid #dfe6ec; border-collapse: collapse"
                  >
                    {{
                      tableAll.cusSex == 0
                        ? "男"
                        : tableAll.cusSex == 1
                        ? "女"
                        : "未知"
                    }}
                  </td>
                </tr>
                <tr
                  style="border: 1px solid #dfe6ec; border-collapse: collapse;height: 36px;"
                >
                  <td
                    style="border: 1px solid #dfe6ec; border-collapse: collapse"
                  >
                    体检单号:
                  </td>
                  <td
                    style="border: 1px solid #dfe6ec; border-collapse: collapse"
                  >
                    {{ tableAll.tjNumber }}
                  </td>
                  <td
                    style="border: 1px solid #dfe6ec; border-collapse: collapse"
                  >
                    体检时间:
                  </td>
                  <td
                    style="border: 1px solid #dfe6ec; border-collapse: collapse"
                  >
                    {{ tableAll.tjTime }}
                  </td>
                </tr>
              </table>
            </div>
          </el-col>
          <el-col :span="6">
@@ -348,7 +358,13 @@
              :key="index"
              style="margin-left: 10px"
            >
              <div style="text-align: center; background-color: #f8f8f9;margin-top: 10px;">
              <div
                style="
                  text-align: center;
                  background-color: #aad8df;
                  margin-top: 10px;
                "
              >
                {{ item.parent || "" }}
              </div>
              <el-table
@@ -356,6 +372,7 @@
                border
                style="width: 100%"
                :row-style="changRed"
                :header-cell-style="{background:'#aad8df'}"
              >
                <el-table-column align="center" label="检测项目" width="240">
                  <template slot-scope="scope">
@@ -384,16 +401,16 @@
                  <template slot-scope="scope">
                    <div v-if="scope.row.project != null">
                      {{
                        scope.row.standard.tjStandardGtValue +
                        "-" +
                        scope.row.standard.tjStandardLtValue || "/"
                        scope.row.standard.tjStandardGtValue ||
                        "/" + "-" + scope.row.standard.tjStandardLtValue ||
                        "/"
                      }}
                    </div>
                    <div v-else>{{ scope.row.stanId || "/"}}</div>
                    <div v-else>{{ scope.row.stanId || "/" }}</div>
                  </template>
                </el-table-column>
              </el-table>
              <table style="width: 100%" v-if="tjproject!='1'">
              <table style="width: 100%" v-if="tjproject != '1'">
                <tr
                  style="border: 1px solid #dfe6ec; border-collapse: collapse"
                >
@@ -401,17 +418,17 @@
                    style="
                      border: 1px solid #dfe6ec;
                      border-collapse: collapse;
                      width: 240px;
                      width:7%
                    "
                  >
                    小结:
                  </td>
                  <td
                    style="
                      border: 1px solid #dfe6ec;
                      border-collapse: collapse;
                      width: 180px;
                      border: 1px solid #dfe6ec;width:45%
                    "
                  >
                    <el-input v-model="item.remark" disabled></el-input>
                    <!-- <el-select v-model="item.value" multiple filterable placeholder="请选择" style="width: 100%" @change="xiAoJieChange($event, item)">
@@ -423,13 +440,13 @@
                    style="
                      border: 1px solid #dfe6ec;
                      border-collapse: collapse;
                      width: 350px;
                      width:15%
                    "
                  >
                    主检医师:
                  </td>
                  <td
                    style="border: 1px solid #dfe6ec; border-collapse: collapse"
                    style="border: 1px solid #dfe6ec; border-collapse: collapse" colspan="2"
                  >
                    {{ item.doctorName }}
                  </td>
@@ -451,8 +468,8 @@
                    备注:
                  </td>
                  <td
                    style="border: 1px solid #dfe6ec; border-collapse: collapse;"
                    colspan="2"
                    style="border: 1px solid #dfe6ec; border-collapse: collapse"
                    colspan="3"
                  >
                    <textarea
                      placeholder="请输入内容"
@@ -468,7 +485,7 @@
              </table>
            </div>
            <div style="margin: 0 0px 10px 15px" v-if="tjproject!='1'">
            <div style="margin: 0 0px 10px 15px" v-if="tjproject != '1'">
              <el-button type="primary" @click="propoChange"
                >快捷建议</el-button
              >
@@ -481,7 +498,7 @@
              ref="numberValidateForm"
              label-width="80px"
              class="demo-ruleForm"
              v-if="tjproject!='1'"
              v-if="tjproject != '1'"
            >
              <el-form-item label="总检建议">
                <el-input
@@ -496,7 +513,7 @@
            </el-form>
            <div slot="footer" class="dialog-footers">
              <el-button
              v-if="tjproject == '0'"
                v-if="tjproject == '0'"
                type="primary"
                size="mini"
                @click.stop="rowClick"
@@ -1467,14 +1484,14 @@
            }
            this.changedate.forEach((item) => {
              // this.remark = item.remark;
              item.sons.forEach((item3) => {
                if (item3.standard.tjStandardGtValue === null) {
                  item3.standard.tjStandardGtValue = "";
                }
                if (item3.standard.tjStandardLtValue === null) {
                  item3.standard.tjStandardLtValue = "";
                }
              });
              // item.sons.forEach((item3) => {
              //   if (item3.standard.tjStandardGtValue === null) {
              //     item3.standard.tjStandardGtValue = "";
              //   }
              //   if (item3.standard.tjStandardLtValue === null) {
              //     item3.standard.tjStandardLtValue = "";
              //   }
              // });
              // item.remark = "";
            });
          } else {
@@ -1590,8 +1607,8 @@
      }
    },
    handleCurrentChange(val){
      this.handleClick(val)
    handleCurrentChange(val) {
      this.handleClick(val);
    },
    // 点击详情
@@ -1632,17 +1649,17 @@
                    for (let i = 0; i < this.changedate.length; i++) {
                      this.remark = this.changedate[i].remark;
                    }
                    console.log( this.changedate)
                    console.log(this.changedate);
                    this.changedate.forEach((item) => {
                      // this.remark = item.remark;
                      item.sons.forEach((item3) => {
                        if (item3.standard.tjStandardGtValue === null) {
                          item3.standard.tjStandardGtValue = "";
                        }
                        if (item3.standard.tjStandardLtValue === null) {
                          item3.standard.tjStandardLtValue = "";
                        }
                      });
                      // item.sons.forEach((item3) => {
                      //   if (item3.standard.tjStandardGtValue === null) {
                      //     item3.standard.tjStandardGtValue = "";
                      //   }
                      //   if (item3.standard.tjStandardLtValue === null) {
                      //     item3.standard.tjStandardLtValue = "";
                      //   }
                      // });
                    });
                  } else {
                    this.$message({
@@ -1686,14 +1703,14 @@
                          this.textarea1 = item.checkAdvice;
                          // this.remark = item.remark;
                          item.sons.forEach((item3) => {
                            if (item3.standard.tjStandardGtValue === null) {
                              item3.standard.tjStandardGtValue = "";
                            }
                            if (item3.standard.tjStandardLtValue === null) {
                              item3.standard.tjStandardLtValue = "";
                            }
                          });
                          // item.sons.forEach((item3) => {
                          //   if (item3.standard.tjStandardGtValue === null) {
                          //     item3.standard.tjStandardGtValue = "";
                          //   }
                          //   if (item3.standard.tjStandardLtValue === null) {
                          //     item3.standard.tjStandardLtValue = "";
                          //   }
                          // });
                          // item.remark = "";
                        });
                      } else {
@@ -1911,6 +1928,7 @@
  border: none;
  outline: none;
}
</style>