qinxianzhangyao
2024-02-19 24a7498b036f89c9287bc1c565641ff97830ff51
qxtj
1个文件已修改
25 ■■■■ 已修改文件
src/views/hosp/order/index.vue 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hosp/order/index.vue
@@ -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">
                @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">
              <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();
@@ -1059,10 +1074,12 @@
  display: flex;
  margin-top: 8px;
}
.tab3{
 max-height: 500px;
  overflow-y:auto;
}
.outside1 {
  width: 700px;
  display: flex;