tj
qinxianzhangyao
2023-10-26 4bdd0b1ef2aff1fd6f174b0f44a7248c0d2168f1
src/views/system/charge/index.vue
@@ -107,7 +107,7 @@
      adviceList: [],
      // 遮罩层
      loading: false,
      disabled: "",
      disabled: 1,
      isDisabled: false,
      // 绑定单选按钮
      tjStatus: "0",
@@ -158,7 +158,7 @@
    submitFormchanck() {
      this.loading = true;
      getfindTj(this.form).then((response) => {
        if (response.data) {
        if (response.data != []) {
          this.tableData = response.data;
          this.tableData.forEach(item1 => {
            this.tjnumber = item1.tjNumber;
@@ -194,6 +194,7 @@
          });
        } else {
          this.tableData = [];
          this.disabled = 1
        }
        this.loading = false;
@@ -379,20 +380,22 @@
          orderId: this.OrderId,
        };
        getwater(data).then((res) => {
          if (res.msg !="该订单已付款 无须再付") {
            this.mobanId = res.data.mobanId;
            this.waterId = res.data.waterId;
          if (res.msg != "该订单已付款 无须再付") {
            this.$modal.msgSuccess("操作成功");
            // this.radioChange();
            // this.submitFormchanck();
            const tjnumber = this.waterId;
            const viewNum = this.mobanId;
            const params = { viewNum, tjnumber };
            this.$tab.openPage("收款小票", "/report/charge", params);
          } else{
            this.disabled = 1
            if (res.data) {
              this.mobanId = res.data.mobanId;
              this.waterId = res.data.waterId;
              const tjnumber = this.waterId;
              const viewNum = this.mobanId;
              const params = { viewNum, tjnumber };
              this.$tab.openPage("收款小票", "/report/charge", params);
            }
          } else {
            this.$message({
              type: "warning ",
              message: "查询到您已退款,请您重新预约!",
              message: "res.msg",
            });
          }