qinxianzhangyao
2023-11-15 1c2ff3d97d19398a00340e72b4642de16f98458a
src/views/system/refund/index.vue
@@ -185,9 +185,9 @@
      numberList: [],
      // 表单参数
      form: {
        tjNum: "",
        tjName: "",
        tjPhone: "",
        tjNum: null,
        tjName: null,
        tjPhone: null,
      },
    };
  },
@@ -205,7 +205,8 @@
    handle() {
      this.loading = true;
      getTjRefundList(this.form).then((response) => {
        this.customerList = response.data;
        if( response.data){
          this.customerList = response.data;
        this.customerList.forEach((item1) => {
          this.tjnumber = item1.tjNumber;
        });
@@ -233,6 +234,8 @@
        });
        this.total = response.total;
        this.loading = false;
        }
      });
    },
@@ -268,7 +271,7 @@
      this.multipleSelection = val;
      this.refundPros = [];
      this.refundPros = this.multipleSelection;
      this.formInline.price = "";
      this.formInline.price = 0;
      this.multipleSelection.forEach((item) => {
        this.tollCollectorName = item.tollCollector;
        if (this.formInline.price) {
@@ -281,6 +284,7 @@
    // 退费
    handleRefund() {
      console.log(this.form)
      this.customerList.forEach((item) => {
        (this.orderIds = item.tjFlowingWater.orderId),
          (this.copewith = item.totalAmount);
@@ -322,7 +326,8 @@
        this.mobanId = res.data.mobanId;
        if (res.code === 200) {
          this.$modal.msgSuccess("退费成功");
          // this.handle();
          this.form.tjNum = res.data.waterId
          this.handle();
          // this.$forceUpdate();
          this.idList = res.data;
          const tjnumber = this.tjnumber;