qinxianzhangyao
2024-06-26 875d196974438d546e4ca79ba0067a799c5f3a8b
qxtj
1个文件已修改
115 ■■■■ 已修改文件
src/views/system/Checkout/index.vue 115 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/Checkout/index.vue
@@ -318,7 +318,11 @@
        </el-table-column>
        <el-table-column label="完成" prop="type" width="86" align="center">
          <template slot-scope="scope">
            <el-checkbox v-model="scope.row.type" disabled></el-checkbox>
            <el-checkbox
              @change="handelcheckbox1(scope.row)"
              v-model="scope.row.type"
              :disabled="scope.row.leave"
            ></el-checkbox>
          </template>
        </el-table-column>
        <el-table-column label="弃检" prop="type2" width="86" align="center">
@@ -326,7 +330,7 @@
            <el-checkbox
              @change="handelcheckbox(scope.row)"
              v-model="scope.row.type2"
              :disabled="leave"
              :disabled="scope.row.leave"
            >
              <!-- <el-checkbox v-model="scope.row.type2"></el-checkbox> -->
            </el-checkbox>
@@ -337,7 +341,7 @@
            <el-checkbox
              @change="handelcheck(scope.row)"
              v-model="scope.row.type3"
              :disabled="leave"
              :disabled="scope.row.leave"
            >
            </el-checkbox>
          </template>
@@ -438,6 +442,7 @@
      // remarkId1: "",
      type: null,
      type1: null,
      types: null,
      // 套餐提交按钮
      confirm: false,
      list1: true,
@@ -523,7 +528,7 @@
  },
  created() {
    // this.getNowTime();
    this.getdate();
  },
  mounted() {
@@ -568,14 +573,13 @@
      if (this.startTime) {
        this.queryParams.djbeginTime = this.startTime[0];
        this.queryParams.djendTime = this.startTime[1];
      } else if(this.createTimeList){
      } else if (this.createTimeList) {
        this.queryParams.djbeginTime = this.createTimeList[0];
        this.queryParams.djendTime = this.createTimeList[1];
      } else if(this.createTimeList == null){
      } else if (this.createTimeList == null) {
        this.queryParams.djbeginTime = null;
        this.queryParams.djendTime = null;
      }
      this.loading = true;
      getQianLiList(this.queryParams).then((response) => {
@@ -672,8 +676,8 @@
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.createTimeList = []
      this.startTime= []
      this.createTimeList = [];
      this.startTime = [];
      this.resetForm("queryForm");
      this.handleQuery();
    },
@@ -767,22 +771,58 @@
      });
    },
    handelcheckbox(val) {
    handelcheckbox1(val) {
      // this.numberList.forEach(item => {
      //   if(item.type2 === true){
      //     item.type3 = false
      //   }
      // })
      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
        if (val.proId == this.numberList[i].proId) {
          if (this.numberList[i].type === true) {
            this.numberList[i].type3 = false;
            this.numberList[i].type2 = false;
            this.tcShow = false;
            return;
          } else {
            return;
          }
        }
      }
      // this.type2 = val
      // this.numberList.forEach(item => {
      //   if (item.type === true) {
      //     item.type2 = false;
      //     item.type3 = false;
      //   } else{
      //     this.type2 = val
      //     if (this.type2 === true) {
      //       item.type = false
      //       item.type3 = false
      //     }
      //   }
      // })
    },
    handelcheckbox(val) {
      // this.numberList.forEach(item => {
      //   if(item.type2 === true){
      //     item.type3 = false
      //   }
      // })
      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.numberList[i].type = false;
            this.tcShow = false;
            return;
          } else {
            return;
          }
        }
      }
      // this.type2 = val
      // this.numberList.forEach(item => {
@@ -800,7 +840,6 @@
    },
    handelcheck(val) {
      // this.numberList.forEach(item => {
      //   if(item.type3 === true){
      //     item.type2 = false
@@ -809,21 +848,19 @@
      //     this.tcShow = false
      //   }
      // })
      for (let i = 0; i <= this.numberList.length; i++) {
        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;
        if (val.proId == this.numberList[i].proId) {
          if (this.numberList[i].type3) {
            if (this.numberList[i].type3 === true) {
              this.numberList[i].type2 = false;
              this.numberList[i].type = false;
              this.tcShow = true;
              return;
            }
          } else {
            return;
          }
        }
        }else{
          return
        }
        }
      }
      // this.numberList.forEach(item => {
      //   if (item.type === true) {
@@ -845,6 +882,7 @@
    /** 签离按钮操作 */
    handleDelete() {
      this.title = "签离登记";
      this.numberList = [];
      this.List.forEach((item) => {
        this.formIn = item;
        if (this.formIn.tjCustomerSex === 0) {
@@ -867,13 +905,14 @@
              item.type = true;
              item.type2 = false;
              item.type3 = false;
              this.leave = true;
              item.leave = true;
            } else {
              this.leave = false;
              item.leave = false;
            }
            item = {
              type2: false,
              type3: false,
              leave: false,
            };
          });
          this.open = true;
@@ -891,13 +930,21 @@
        }
      });
    },
    // 确认弃检
    canaffirm() {
      this.List.forEach((item) => {
        this.tjNumber = item.tjNumber;
      });
      this.numberList.forEach((element) => {
        if (element.type2 === true) {
        if (element.type === true) {
          this.types = 1;
          this.DataList.push({
            tjNumber: this.tjNumber,
            type: this.types,
            remarkId: element.remarkId,
          });
        } else if (element.type2 === true) {
          this.type = 2;
          this.DataList.push({
            tjNumber: this.tjNumber,