1
lkk
6 小时以前 a0a3035f5822585549a5204c7f9a385abfecbf79
src/views/system/packages/index.vue
@@ -7,6 +7,7 @@
      :inline="true"
      v-show="showSearch"
      label-width="68px"
      @submit.native.prevent
    >
      <el-form-item label="组合名称" prop="zhmc">
        <el-input
@@ -262,6 +263,8 @@
              :span-method="objectSpanMethod"
            >
              <el-table-column prop="propinName" label="检查项目">
              </el-table-column>
              <el-table-column prop="sl" label="数量" width="56px">
              </el-table-column>
              <el-table-column prop="proPrice" label="原价" width="56px">
              </el-table-column>
@@ -589,7 +592,10 @@
                      });
                      this.pics = 0;
                      this.DataList.forEach((item) => {
                        this.pics += item.proPrice;
                        console.log(this.DataList,8888);
                        this.pics += item.proPrice * item.sl;
                        // this.pics += item.proPrice;
                      });
                    }
                  });
@@ -612,7 +618,7 @@
              });
              this.pics = 0;
              this.DataList.forEach((item) => {
                this.pics += item.proPrice;
                this.pics += item.proPrice * item.sl;
              });
            });
          });
@@ -623,6 +629,8 @@
    handleCurrentChecked(data, checked, checkedNodes) {
      this.dataObj = data;
      this.checkedObj = checked;
      console.log(checked,555);
      if (checked == true) {
        // this.$refs.tree.setCheckedKeys([data.proId]);
        let proId = data.proId;
@@ -635,7 +643,7 @@
            this.spliceData();
            this.pics = 0;
            this.DataList.forEach((item1) => {
              this.pics += item1.proPrice;
              this.pics += item1.proPrice * item1.sl;
              if (item1.proParentId == data.proId) {
                item1.propinName = data.proName;
                item1.propinPrice = this.dataObj.proPrice;
@@ -648,7 +656,7 @@
            this.list1 = false;
            this.DataList.forEach((item) => {
              this.TotalPrice1 = item.proPrice + this.TotalPrice1;
              this.pics += item.proPrice;
              this.pics += item.proPrice * item.sl;
            });
          }
        });
@@ -667,7 +675,7 @@
          });
          this.pics = 0;
          this.DataList.forEach((item, index) => {
            this.pics += item.proPrice;
            this.pics += item.proPrice * item.sl;
          });
        });
      }
@@ -695,7 +703,7 @@
            this.TotalPrice1 = 0;
            this.pics = 0;
            this.DataList.forEach((item1) => {
              this.pics += item1.proPrice;
              this.pics + item1.proPrice * item1.sl;
              // this.TotalPrice1 = item1.proPrice + this.TotalPrice1;
            });
          }
@@ -704,7 +712,7 @@
        this.DataList.push(data);
        this.pics = 0;
        this.DataList.forEach((item1) => {
          this.pics += item1.proPrice;
          this.pics += item1.proPrice * item1.sl;
          if (item1.proParentId == this.dataObj.proId) {
            item1.propinName = this.dataObj.proName;
            item1.propinPrice = this.dataObj.proPrice;
@@ -715,7 +723,7 @@
        this.pics = 0;
        this.DataList.forEach((item1) => {
          // this.TotalPrice1 = item1.proPrice + this.TotalPrice1;
          this.pics += item1.proPrice;
          this.pics += item1.proPrice * item1.sl;
        });
      }
    },