111
lkk
2025-01-22 21230681ce497427ec17b93e1c66dc58ae739446
src/views/doctor/checkAll/index.vue
@@ -655,21 +655,44 @@
                  >
                    <el-table-column type="expand">
                      <template slot-scope="props">
                        <div
                          v-if="
                            props.row.advices && props.row.advices.length > 0
                          "
                        >
                        <div>
                          <div
                            v-for="(jianyi, index1) in props.row.advices"
                            :key="index1"
                            style="padding: 0 10px; margin-bottom: 10px"
                            v-if="
                              props.row.advices && props.row.advices.length > 0
                            "
                          >
                            <div
                              v-for="(jianyi, index1) in props.row.advices"
                              :key="index1"
                              style="padding: 0 10px; margin-bottom: 10px"
                            >
                              <div>
                                标题:
                                <el-input
                                  v-model="jianyi.bt"
                                  size="small"
                                  type="textarea"
                                  autosize
                                ></el-input>
                              </div>
                              <div>
                                内容:
                                <el-input
                                  v-model="jianyi.nr"
                                  size="small"
                                  type="textarea"
                                  autosize
                                ></el-input>
                              </div>
                            </div>
                          </div>
                          <!-- 如果 advices 为空时,渲染空的输入框 -->
                          <div v-else>
                            <div>
                              标题:
                              <!-- {{ jianyi.bt || "" }} -->
                              <el-input
                                v-model="jianyi.bt"
                                v-model="emptyAdvice.bt"
                                size="small"
                                type="textarea"
                                autosize
@@ -678,7 +701,7 @@
                            <div>
                              内容:
                              <el-input
                                v-model="jianyi.nr"
                                v-model="emptyAdvice.nr"
                                size="small"
                                type="textarea"
                                autosize
@@ -686,7 +709,6 @@
                            </div>
                          </div>
                        </div>
                        <!-- <div v-else style="padding: 0 10px">暂无内容</div> -->
                      </template>
                    </el-table-column>
@@ -737,23 +759,45 @@
                  >
                    <el-table-column type="expand">
                      <template slot-scope="props">
                        <div
                          v-if="
                            props.row.advices && props.row.advices.length > 0
                          "
                        >
                        <div>
                          <!-- 如果 advices 非空,渲染其内容 -->
                          <div
                            v-for="(jianyi, index1) in props.row.advices"
                            :key="index1"
                            style="padding: 0 10px; margin-bottom: 10px"
                            v-if="
                              props.row.advices && props.row.advices.length > 0
                            "
                          >
                            <!-- <div>标题:{{ jianyi.bt || "" }}</div>
                            <div>内容:{{ jianyi.nr || "" }}</div> -->
                            <div
                              v-for="(jianyi, index1) in props.row.advices"
                              :key="index1"
                              style="padding: 0 10px; margin-bottom: 10px"
                            >
                              <div>
                                标题:
                                <el-input
                                  v-model="jianyi.bt"
                                  size="small"
                                  type="textarea"
                                  autosize
                                ></el-input>
                              </div>
                              <div>
                                内容:
                                <el-input
                                  v-model="jianyi.nr"
                                  size="small"
                                  type="textarea"
                                  autosize
                                ></el-input>
                              </div>
                            </div>
                          </div>
                          <!-- 如果 advices 为空时,渲染空的输入框 -->
                          <div v-else>
                            <div>
                              标题:
                              <!-- {{ jianyi.bt || "" }} -->
                              <el-input
                                v-model="jianyi.bt"
                                v-model="emptyAdvice.bt"
                                size="small"
                                type="textarea"
                                autosize
@@ -762,7 +806,7 @@
                            <div>
                              内容:
                              <el-input
                                v-model="jianyi.nr"
                                v-model="emptyAdvice.nr"
                                size="small"
                                type="textarea"
                                autosize
@@ -770,7 +814,6 @@
                            </div>
                          </div>
                        </div>
                        <!-- <div v-else style="padding: 0 10px">暂无内容</div> -->
                      </template>
                    </el-table-column>
@@ -1368,7 +1411,10 @@
  data() {
    return {
      // 更新总检建议
      emptyAdvice: {
        bt: "",
        nr: "",
      },
      initialTotalCheckAdvice: "",
      initialState: "",
      preObj: {},
@@ -2331,7 +2377,7 @@
        .flat(); // 使用 flat() 方法将嵌套数组展平
      console.log(dataList, 777);
     /*  addOrder(dataList).then((res) => {
      /*  addOrder(dataList).then((res) => {
        console.log(res, 999);
      }); */
      getTjdetailList(data)
@@ -2382,7 +2428,12 @@
            });
            // 等待所有请求完成
            Promise.all([reportPromise, statePromise,addOrderPromise, ...updatePromises])
            Promise.all([
              reportPromise,
              statePromise,
              addOrderPromise,
              ...updatePromises,
            ])
              .then(() => {
                // 所有请求完成,关闭 loading
                this.loading = false;
@@ -2591,6 +2642,7 @@
    max-height: calc(100vh - 100px); /* 假设你想为顶部和底部留出一些空间 */
    overflow-y: auto; /* 允许垂直滚动 */
    padding: 0 0 50px; /* 可选:添加一些内边距以避免内容紧贴边缘 */
    padding-bottom: 200px;
  }
}