su
su1124
2023-12-05 872aed0fd757885e3a77f71f4fdfbc38de70a3a3
src/views/system/tijianall/index.vue
@@ -226,24 +226,24 @@
                style="width: 190px"
              />
            </el-form-item>
             <el-form-item
                label="体检类型"
                prop="tjType"
                style="margin-right: 20px"
            <el-form-item
              label="体检类型"
              prop="tjType"
              style="margin-right: 20px"
            >
              <el-select
                style="width: 145px"
                v-model="form.tjType"
                placeholder="请选择体检类型"
              >
                <el-select
                  style="width: 145px"
                  v-model="form.tjType"
                  placeholder="请选择体检类型"
                >
                  <el-option
                    v-for="dict in dict.type.dict_team"
                    :key="dict.value"
                    :label="dict.label"
                    :value="parseInt(dict.value)"
                  ></el-option>
                </el-select>
              </el-form-item>
                <el-option
                  v-for="dict in dict.type.dict_team"
                  :key="dict.value"
                  :label="dict.label"
                  :value="parseInt(dict.value)"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-form>
        </div>
      </el-col>
@@ -427,7 +427,6 @@
              label-width="75px"
              style="margin-left: 10px"
            >
              <el-form-item label="应收金额" style="margin-right: 20px">
                <el-input
                  placeholder="应收金额"
@@ -459,14 +458,23 @@
                  @click="submitPrice"
                  size="mini"
                  :disabled="confirm"
                  >预约登记</el-button>
                  <el-button
                  >预约登记</el-button
                >
                <el-button
                 v-show="lishi"
                  type="primary"
                  @click="cope"
                  size="mini"
                  >一键复制</el-button
                >
                <el-button
                  type="primary"
                  @click="inputChange"
                  v-show="lishi"
                  size="mini"
                  :disabled="confirm"
                  >历史体检记录</el-button>
                  >历史体检记录</el-button
                >
              </el-form-item>
            </el-form>
          </template>
@@ -631,14 +639,53 @@
        ></iframe>
      </div>
    </el-dialog>
    <el-drawer title="历史体检记录" :visible.sync="table" direction="rtl" size="50%">
      <el-table :data="HistoryList" style="width:95%;margin-left:20px">
        <el-table-column property="tjNum" label="体检号" align="center" :show-overflow-tooltip="true"></el-table-column>
        <el-table-column property="userName" label="姓名" align="center" :show-overflow-tooltip="true"></el-table-column>
        <el-table-column property="tjTime" label="体检时间" align="center" :show-overflow-tooltip="true"></el-table-column>
        <el-table-column property="tjProName" label="体检项目" align="center" :show-overflow-tooltip="true"></el-table-column>
    <el-drawer
      title="历史体检记录"
      :visible.sync="table"
      direction="rtl"
      size="50%"
    >
      <el-table :data="HistoryList" style="width: 95%; margin-left: 20px">
        <el-table-column
          property="tjNum"
          label="体检号"
          align="center"
          :show-overflow-tooltip="true"
        ></el-table-column>
        <el-table-column
          property="userName"
          label="姓名"
          align="center"
          :show-overflow-tooltip="true"
        ></el-table-column>
        <el-table-column
          property="tjTime"
          label="体检时间"
          align="center"
          :show-overflow-tooltip="true"
        ></el-table-column>
        <el-table-column
          property="tjProName"
          label="体检项目"
          align="center"
          :show-overflow-tooltip="true"
        ></el-table-column>
      </el-table>
    </el-drawer>
    <el-dialog
      title="提示"
      :visible.sync="dialogVisiblese"
      width="30%"
      :before-close="handleClose"
    >
      <span>需要复制最近一次的体检项目吗?</span>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisiblese = false">取 消</el-button>
        <el-button type="primary" @click="dialogVisiblese = false"
          >确 定</el-button
        >
      </span>
    </el-dialog>
  </div>
</template>
  
@@ -702,7 +749,8 @@
    //   }
    // };
    return {
      lishi:false,
      dialogVisiblese:false,
      lishi: false,
      table: false,
      HistoryList: {},
      index: 0,
@@ -934,6 +982,23 @@
        // return this.$message.error("请输入正确的身份证号!");;
      }
    },
    cope(){
      let cusIdCard = this.form.cusIdcard;
      getHistryTjOrderByCusIdCard(cusIdCard).then((res) => {
            if(res.data.length != 0){
              this.dialogVisiblese = true;
            }else{
              this.$message.warning('暂无历史体检记录!');
            }
        });
    },
     handleClose(done) {
        this.$confirm('确认关闭?')
          .then(_ => {
            done();
          })
          .catch(_ => {});
      },
    getList1() {
      getInfo().then((response) => {
        this.getInfodis = response.user.discount;