linwenling
2023-09-25 4818a96301063bfea4a5d01bb475721a9de54bff
修改旅游 可新增每日详情
1个文件已修改
20 ■■■■ 已修改文件
ruoyi-ui/src/views/travel/index.vue 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/travel/index.vue
@@ -909,6 +909,7 @@
          console.error("请求错误:", error);
        }
      }
      this.formDat2.detailList = await getData();  // 调用async函数来获取数据并赋值给detailList
      console.log(" this.formDat2.detailList");
@@ -940,8 +941,8 @@
      this.formDat.totalPrice=totalPrice;
      console.log(this.formDat2)
      console.log(this.formDat);
      console.log("?");
      debugger
      this.$refs["elForm"].validate(valid => {
        if (valid) {
@@ -949,6 +950,13 @@
            this.$modal.msgSuccess("新增成功");
            this.centerDialogVisible = false;
            this.getList();
          });
          updateTravelPrice(this.formDat2).then(response => {
            this.$modal.msgSuccess("费用新增成功");
            this.centerDialogVisible = false;
          });
          Object.keys(this.formDat2).forEach(key => {
            this.formDat2[key] = '';
          });
          Object.keys(this.formDat).forEach(key => {
            this.formDat[key] = '';
@@ -958,11 +966,11 @@
        }
      });
      this.$refs["elForm1"].validate(valid => {
        console.log(valid)
        debugger
        if (valid) {
          updateTravelPrice(this.formDat2).then(response => {
            // this.$modal.msgSuccess("费用新增成功");
            this.$modal.msgSuccess("费用新增成功");
            this.centerDialogVisible = false;
          });
          Object.keys(this.formDat2).forEach(key => {
@@ -1120,7 +1128,7 @@
        return delTravelBase(id);
      }).then(() => {
        updateTravelPrice(this.formDat7).then(response => {
          this.$modal.msgSuccess("费用修改成功");
          this.$modal.msgSuccess("费用删除成功");
        });
        this.getList();