qinxianzhangyao
2024-06-27 20054e5e163a33fff740851f030577dcf27bb696
qxtj
2个文件已修改
102 ■■■■ 已修改文件
src/views/system/tijianall/index.vue 100 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/tijianall/index.vue
@@ -627,7 +627,7 @@
                    </el-table-column>
                  </el-table>
                  <el-collapse v-model="activeName" accordion v-if="list1">
                  <!-- <el-collapse v-model="activeName" accordion v-if="list1">
                    <div>
                      <el-collapse-item title="请选择项目">
                        <el-table
@@ -648,8 +648,8 @@
                        </el-table>
                      </el-collapse-item>
                    </div>
                  </el-collapse>
                  <h3 v-else style="font-weight: 600">
                  </el-collapse> -->
                  <h3  style="font-weight: 600">
                    合计:{{ marryall }}元
                  </h3>
                </div>
@@ -1860,36 +1860,36 @@
            });
          });
        }
        if (this.DataLists.length != 0) {
          this.DataLists.forEach((selectionitem) => {
            this.Treedata.forEach((item) => {
              if (selectionitem.propinName == item.proName) {
                item.disabled = true;
              }
            });
          });
        }
        // this.checkedkey.push(this.Treedata[0].proId);
        // let proId = this.Treedata[0].proId;
        // getProSonDxList(proId).then((res) => {
        //   this.TreedataList = res.data.list;
        //   this.TreedataList.forEach((item) => {
        //     this.checkedListkey.push(item.proId);
        //     this.DataList.push(item);
        //     this.DataList.forEach((item) => {
        //       item.propinName = this.Treedata[0].proName;
        // if (this.DataLists.length != 0) {
        //   this.DataLists.forEach((selectionitem) => {
        //     this.Treedata.forEach((item) => {
        //       if (selectionitem.propinName == item.proName) {
        //         item.disabled = true;
        //       }
        //     });
        //   });
        //   this.TotalPrice1 = 0;
        //   this.marryall = 0;
        //   if (this.DataList.length != 0) {
        //     this.list1 = false;
        //     this.DataList.forEach((item) => {
        //       this.TotalPrice1 = item.proPrice + this.TotalPrice1;
        //       this.marryall += item.proPrice;
        //     });
        //   }
        // });
        // }
        this.checkedkey.push(this.Treedata[0].proId);
        let proId = this.Treedata[0].proId;
        getProSonDxList(proId).then((res) => {
          this.TreedataList = res.data.list;
          this.TreedataList.forEach((item) => {
            this.checkedListkey.push(item.proId);
            this.DataList.push(item);
            this.DataList.forEach((item) => {
              item.propinName = this.Treedata[0].proName;
            });
          });
          this.TotalPrice1 = 0;
          this.marryall = 0;
          if (this.DataList.length != 0) {
            this.list1 = false;
            this.DataList.forEach((item) => {
              this.TotalPrice1 = item.proPrice + this.TotalPrice1;
              this.marryall += item.proPrice;
            });
          }
        });
        this.loading = false;
      });
    },
@@ -1924,26 +1924,26 @@
          }
        });
      } else if (checked.checkedNodes.length == 0) {
        for (var i = 0; i < data.tjProjectList.length; i++) {
          let proId = data.tjProjectList[i].proId;
          getProSonDxList(proId).then((res) => {
            this.TreedataList = res.data.list;
            this.TreedataList.forEach((item) => {
              this.DataLists.forEach((item1, index) => {
                if (item.proId == item1.proId) {
                  this.DataLists.splice(index, 1);
        // for (var i = 0; i < data.tjProjectList.length; i++) {
        //   let proId = data.tjProjectList[i].proId;
        //   getProSonDxList(proId).then((res) => {
        //     this.TreedataList = res.data.list;
        //     this.TreedataList.forEach((item) => {
        //       this.DataLists.forEach((item1, index) => {
        //         if (item.proId == item1.proId) {
        //           this.DataLists.splice(index, 1);
                  
                }
              });
            });
            this.marryalls = 0
            if(this.DataLists.length != 0){
              this.DataLists.forEach((item1, index) => {
              this.marryalls += item1.proPrice;
              })
            }
          });
        }
        //         }
        //       });
        //     });
        //     this.marryalls = 0
        //     if(this.DataLists.length != 0){
        //       this.DataLists.forEach((item1, index) => {
        //       this.marryalls += item1.proPrice;
        //       })
        //     }
        //   });
        // }
      }
    },
vue.config.js
@@ -53,7 +53,7 @@
      // detail: https://cli.vuejs.org/config/#devserver-proxy
      [process.env.VUE_APP_BASE_API]: {
        // target: `https://ltpeis.xaltjdkj.cn:5801/`,
        target: `http://192.168.1.3:5011`,
        target: `http://192.168.1.113:5011`,
        // // target: `http://192.168.0.99:8080/ltkj-admin`,
        // target: `https://ltpeis.xaltjdkj.cn:5011/ltkj-admin`,
        // target: `http://10.168.0.9:5011`,