qx
2024-06-20 772d8df8a3ee02a6fe2dbd6ba7216e3e3ee0ec63
src/views/system/Checkout/index.vue
@@ -33,8 +33,9 @@
          clearable
          v-model="createTimeList"
          @change="dateChangebirthday1"
          style="width: 240px"
          value-format="yyyy-MM-dd"
          :default-time="['00:00:00', '23:59:00']"
          format="yyyy-MM-dd HH:mm"
          value-format="yyyy-MM-dd HH:mm"
          type="daterange"
          range-separator="-"
          start-placeholder="开始日期"
@@ -323,7 +324,7 @@
        <el-table-column label="弃检" prop="type2" width="86" align="center">
          <template slot-scope="scope">
            <el-checkbox
              @change="handelcheckbox"
              @change="handelcheckbox(scope.row)"
              v-model="scope.row.type2"
              :disabled="leave"
            >
@@ -334,7 +335,7 @@
        <el-table-column label="延期" prop="type3" width="86" align="center">
          <template slot-scope="scope">
            <el-checkbox
              @change="handelcheck"
              @change="handelcheck(scope.row)"
              v-model="scope.row.type3"
              :disabled="leave"
            >
@@ -390,7 +391,9 @@
  goOut,
  getPdf,
  goabandon,
  getNewDateList,
} from "@/api/hosp/order";
import moment from "moment";
import { getwater } from "@/api/hosp/customer";
import ViewPdf from "@/components/ViewPdf";
import { projectGetList, getaddtTransition } from "@/api/system/tijian";
@@ -406,7 +409,7 @@
      leave: false,
      checked: false,
      radioId1: false,
      createTimeList: "",
      createTimeList: [],
      cusId: "",
      payType: "0",
      dialogVisible: false,
@@ -519,8 +522,9 @@
    };
  },
  created() {
    this.getNowTime();
    this.getList();
    // this.getNowTime();
    this.getdate();
  },
  mounted() {
    this.$nextTick(() => {
@@ -528,6 +532,15 @@
    });
  },
  methods: {
    getdate() {
      getNewDateList().then((res) => {
        this.createTimeList = [
          moment(res.data).format("YYYY-MM-DD 00:00:00"),
          moment(res.data).format("YYYY-MM-DD 23:59:00"),
        ];
        this.getList();
      });
    },
    // / 处理默认选中当前日期
    getNowTime() {
      var curDate = new Date().getTime();
@@ -552,8 +565,18 @@
    },
    /** 查询体检记录列表 */
    getList() {
      this.queryParams.djbeginTime = this.startTime[0];
      this.queryParams.djendTime = this.startTime[1];
      if (this.startTime) {
        this.queryParams.djbeginTime = this.startTime[0];
        this.queryParams.djendTime = this.startTime[1];
      } else if(this.createTimeList){
        this.queryParams.djbeginTime = this.createTimeList[0];
        this.queryParams.djendTime = this.createTimeList[1];
      } else if(this.createTimeList == null){
        this.queryParams.djbeginTime = null;
        this.queryParams.djendTime = null;
      }
      this.loading = true;
      getQianLiList(this.queryParams).then((response) => {
        this.orderList = response.data.list;
@@ -637,18 +660,20 @@
      };
      this.resetForm("form");
    },
    hb(){
       if (this.queryParams.tjNum != undefined) {
    hb() {
      if (this.queryParams.tjNum != undefined) {
        this.handleQuery();
      }
    },
    /** 搜索按钮操作 */
    handleQuery() {
        this.queryParams.pageNum = 1;
        this.getList();
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.createTimeList = []
      this.startTime= []
      this.resetForm("queryForm");
      this.handleQuery();
    },
@@ -749,11 +774,15 @@
      //   }
      // })
      for (let i = 0; i <= this.numberList.length; i++) {
        if(val.proId == this.numberList[i].proId){
        if (this.numberList[i].type2 === true) {
          this.numberList[i].type3 = false;
          this.tcShow = false;
          return;
        }else{
          return
        }
      }
      }
      // this.type2 = val
      // this.numberList.forEach(item => {
@@ -771,6 +800,7 @@
    },
    handelcheck(val) {
      // this.numberList.forEach(item => {
      //   if(item.type3 === true){
      //     item.type2 = false
@@ -779,12 +809,21 @@
      //     this.tcShow = false
      //   }
      // })
      for (let i = 0; i <= this.numberList.length; i++) {
        if (this.numberList[i].type3 === true) {
        if(val.proId == this.numberList[i].proId){
          if(this.numberList[i].type3){
          if (this.numberList[i].type3 === true) {
          this.numberList[i].type2 = false;
          this.tcShow = true;
          return;
        }
        }else{
          return
        }
        }
      }
      // this.numberList.forEach(item => {
      //   if (item.type === true) {