lkk
2024-12-16 c7b33db117fd2893d7d1c93bf5d46e87d33e44d0
src/views/system/refund/index.vue
@@ -6,7 +6,7 @@
        <el-row>
          <el-col :span="6">
            <el-form-item label="体检号" prop="tjNum" style="display: flex;">
              <el-input ref="inputName" v-model="form.tjNum" placeholder="请输入体检号" />
              <el-input ref="inputName" v-model="form.tjNum" placeholder="请输入体检号" @keyup.enter.native="handle"  @blur="hb" />
            </el-form-item>
          </el-col>
          <el-col :span="5">
@@ -185,9 +185,9 @@
      numberList: [],
      // 表单参数
      form: {
        tjNum: "",
        tjName: "",
        tjPhone: "",
        tjNum: null,
        tjName: null,
        tjPhone: null,
      },
    };
  },
@@ -200,12 +200,18 @@
        this.$refs.inputName.focus();
      });
    },
    hb(){
      console.log(this.form.tjNum);
       if (this.form.tjNum != null) {
        this.handle();
      }
    },
    /** 搜索操作 */
    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 +239,8 @@
        });
        this.total = response.total;
        this.loading = false;
        }
      });
    },
@@ -268,7 +276,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 +289,7 @@
    // 退费
    handleRefund() {
      console.log(this.form)
      this.customerList.forEach((item) => {
        (this.orderIds = item.tjFlowingWater.orderId),
          (this.copewith = item.totalAmount);
@@ -322,7 +331,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;
@@ -337,7 +347,7 @@
</script>
<style>
#sig .el-table__header-wrapper .el-checkbox {
/* #sig .el-table__header-wrapper .el-checkbox {
  display: none;
}
} */
</style>