qinxianzhangyao
2024-02-19 24a7498b036f89c9287bc1c565641ff97830ff51
qxtj
1个文件已修改
43 ■■■■■ 已修改文件
src/views/hosp/order/index.vue 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hosp/order/index.vue
@@ -7,7 +7,7 @@
      </el-form-item>
      <el-form-item label="体检号" prop="tjNum">
        <el-input ref="inputName" v-model="queryParams.tjNum" placeholder="请输入体检号" style="width: 170px" clearable
          @keyup.enter.native="handleQuery"  @blur="hb" />
          @keyup.enter.native="handleQuery" @blur="hb" />
      </el-form-item>
      <el-form-item label="登记时间" prop="createTimeList">
        <el-date-picker v-model="createTimeList" type="datetimerange" align="right" :picker-options="pickerOptions"
@@ -203,10 +203,12 @@
      <el-row type="flex" class="row-bg" justify="space-around">
        <el-col :span="6">
          <div style="text-align: center; margin-bottom: 10px;margin-top:10px">项目列表</div>
          <el-input placeholder="输入关键字进行过滤" v-model="filterText">
          </el-input>
          <div class="tab3">
            <div class="outside1">
              <el-tree  v-loading="loading" :data="Treedata" show-checkbox node-key="proId" :props="defaultProps"
                @check-change="handleCurrentChecked">
              <el-tree v-loading="loading" :data="Treedata" show-checkbox node-key="proId" :props="defaultProps"
                @check-change="handleCurrentChecked" :filter-node-method="filterNode" ref="tree">
              </el-tree>
            </div>
          </div>
@@ -292,14 +294,17 @@
    </el-dialog>
    <!-- 添加补录项目 -->
    <el-dialog :title="title" :visible.sync="Projectopen1" width="980px" style="height: 860px" append-to-body>
    <el-dialog :title="title" :visible.sync="Projectopen1" width="1200px" style="height: 860px" append-to-body>
      <el-row type="flex" class="row-bg" justify="space-around">
        <el-col :span="8">
          <div style="text-align: center; margin-bottom: 10px;margin-top:10px">项目列表</div>
          <el-input placeholder="输入关键字进行过滤" v-model="filterText">
          </el-input>
          <div class="tab3">
            <div class="outside1" >
              <el-tree  v-loading="loading" :data="Treedata" show-checkbox node-key="proId" :props="defaultProps"
                @check-change="handleCurrentChecked">
            <div class="outside1">
              <el-tree class="filter-tree" v-loading="loading" :data="Treedata" show-checkbox node-key="proId"
                :props="defaultProps" @check-change="handleCurrentChecked" :filter-node-method="filterNode" ref="tree">
              </el-tree>
            </div>
          </div>
@@ -446,6 +451,7 @@
  name: "Order",
  data() {
    return {
      filterText: '',
      orderIds: "",
      tjnumbers: "",
      cusIds: "",
@@ -554,6 +560,11 @@
      },
    };
  },
  watch: {
    filterText(val) {
      this.$refs.tree.filter(val);
    }
  },
  created() {
    this.getNowTime();
    this.getList();
@@ -564,6 +575,10 @@
    });
  },
  methods: {
    filterNode(value, data) {
      if (!value) return true;
      return data.proName.indexOf(value) !== -1;
    },
    // / 处理默认选中当前日期
    getNowTime() {
      var curDate = new Date(new Date().setHours(0, 0, 0, 0)).getTime();
@@ -737,8 +752,8 @@
      };
      this.resetForm("form");
    },
    hb(){
       if (this.queryParams.tjNum != undefined) {
    hb() {
      if (this.queryParams.tjNum != undefined) {
        this.handleQuery();
      }
    },
@@ -883,7 +898,7 @@
          item.tjProjectList.forEach(item1 => {
            this.proIds.push(item1.proId);
          })
        });
      }
    },
@@ -1059,10 +1074,12 @@
  display: flex;
  margin-top: 8px;
}
.tab3{
 max-height: 500px;
  overflow-y:auto;
.tab3 {
  max-height: 500px;
  overflow-y: auto;
}
.outside1 {
  width: 700px;
  display: flex;