qx
2024-06-20 5b6260623a61951bc065da832ed330f0ad7ffb37
qxtj
1个文件已修改
61 ■■■■ 已修改文件
src/views/system/tijian/index.vue 61 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/tijian/index.vue
@@ -1628,39 +1628,40 @@
        cusCardId: this.form.cusIdcard,
        proId: item.proPrantId,
      };
      delTbBycusCardIdAndProId(data).then((res) => {});
      getTransitionList(this.form.cusIdcard).then((response) => {
        this.tableData1 = response.data;
        this.TotalPrice1 = 0;
        if (this.tableData1) {
          this.tableData1.forEach((item) => {
            this.TotalPrice1 += item.nowPrice;
            if (item.pacName === null) {
              item.pacName = "单项";
            }
            if (item.pacName == "单项") {
              item.list.forEach((item9) => {
                this.treeList.push(item9.proId);
              });
            }
            this.pacName = item.pacName;
          });
      delTbBycusCardIdAndProId(data).then((res) => {
        getTransitionList(this.form.cusIdcard).then((response) => {
          this.tableData1 = response.data;
          this.TotalPrice1 = 0;
          if (this.tableData1) {
            this.tableData1.forEach((item) => {
              this.TotalPrice1 += item.nowPrice;
              if (item.pacName === null) {
                item.pacName = "单项";
              }
              if (item.pacName == "单项") {
                item.list.forEach((item9) => {
                  this.treeList.push(item9.proId);
                });
              }
              this.pacName = item.pacName;
            });
          const r = /^\+?[0-9][0-9]*$/; //正整数(可以0打头)
          let TotalPrice = this.TotalPrice1 * (this.discount / 10);
          if (r.test(TotalPrice)) {
            this.TotalPrice = TotalPrice + ".00";
            const r = /^\+?[0-9][0-9]*$/; //正整数(可以0打头)
            let TotalPrice = this.TotalPrice1 * (this.discount / 10);
            if (r.test(TotalPrice)) {
              this.TotalPrice = TotalPrice + ".00";
            } else {
              this.TotalPrice = TotalPrice;
            }
            this.list1 = false;
            this.list3 = true;
          } else {
            this.TotalPrice = TotalPrice;
            this.list1 = true;
            this.TotalPrice = "0.00";
          }
          this.list1 = false;
          this.list3 = true;
        } else {
          this.list1 = true;
          this.TotalPrice = "0.00";
        }
        });
      });
    },
    cope() {