| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -70,7 +70,15 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            prop="displayName" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          ></el-table-column> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          <el-table-column label="价格" prop="price"></el-table-column> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          <el-table-column label="价格" prop="price"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <template slot-scope="scope"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              <input | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                type="text" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                v-model="scope.row.price" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                @blur="inputchang(scope.row)" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              /> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </template> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          </el-table-column> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </el-table> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      <div class="operatebottom"> | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -136,7 +144,6 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					</template> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					<script> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { getapi, postapi } from "@/api/api"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { mapState } from "vuex"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					export default { | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -156,6 +163,7 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      temporaryselection: [], //已选组合项目table | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      copegroupdata: [], //复制分组 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      addrulst: [], //添加保存的Id | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      price: "", //价格 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  computed: { | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -166,6 +174,10 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    this.getportfolioitems(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  methods: { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    inputchang(v) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.price = v.price; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      console.log(this.price); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //保存按钮 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    Onsubmit() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      if (!this.personnelUnit.customerOrgGroupId) { | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -195,31 +207,35 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //移除按钮 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    addselecteditems() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //personnelUnit.nogroupselected | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      if (this.rightselctedata.length == 0) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        this.$message.warning("已选数据为空无法移动"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      console.log(this.personnelUnit.id); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      if (this.personnelUnit.form.id == "") { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        alert("请先选择单位类别"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      } else { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        let count = this.rightselctedata.length - 1; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        for (var i = count; i >= 0; i--) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          // this.personnelUnit.nogroupselected.splice(i, 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          if ( | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            // !this.rightselctedata.includes(this.rightselctedata[i].displayName) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            [...new Set(this.rightselctedata)] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          ) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.tabledata.push(this.rightselctedata[i]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.personnelUnit.nogroupselected.splice(i, 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					           | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //personnelUnit.nogroupselected | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (this.rightselctedata.length == 0) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          this.$message.warning("已选数据为空无法移动"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } else { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          let count = this.rightselctedata.length - 1; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          for (var i = count; i >= 0; i--) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            // this.personnelUnit.nogroupselected.splice(i, 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if ( | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              // !this.rightselctedata.includes(this.rightselctedata[i].displayName) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              [...new Set(this.rightselctedata)] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            ) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              this.tabledata.push(this.rightselctedata[i]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              this.personnelUnit.nogroupselected.splice(i, 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            // this.tabledata.push(this.rightselctedata[i]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          // this.tabledata.push(this.rightselctedata[i]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        // this. | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        this.rightselctedata.forEach((item) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          this.addrulst.push({ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            asbitemId: item.id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            price: item.price, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            customerOrgGroupId: this.personnelUnit.customerOrgGroupId, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          // this. | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          this.rightselctedata.forEach((item) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.addrulst.push({ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              asbitemId: item.id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              price: item.price, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              customerOrgGroupId: this.personnelUnit.customerOrgGroupId, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //右侧勾选按钮 | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -230,35 +246,41 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    // 添加按钮 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    removedata() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      if (this.unselecteddata.length == 0) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        this.$message.warning("未选数据为空无法移动"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      if (this.personnelUnit.form.id == "") { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        alert("请先选择单位分组"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      } else { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        this.saveornot = false; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        let count = this.unselecteddata.length - 1; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        for (var i = count; i >= 0; i--) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          // this.tabledata.splice(i, 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          // this.personnelUnit.nogroupselected.push(this.unselecteddata[i]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          if ([...new Set(this.unselecteddata)]) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.tabledata.splice(i, 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.personnelUnit.nogroupselected.push(this.unselecteddata[i]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (this.unselecteddata.length == 0) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          this.$message.warning("未选数据为空无法移动"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } else { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          this.saveornot = false; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          let count = this.unselecteddata.length - 1; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          for (var i = count; i >= 0; i--) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            // this.tabledata.splice(i, 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            // this.personnelUnit.nogroupselected.push(this.unselecteddata[i]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if ([...new Set(this.unselecteddata)]) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              this.tabledata.splice(i, 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              this.personnelUnit.nogroupselected.push(this.unselecteddata[i]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        this.unselecteddata.forEach((item) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          this.addrulst.push({ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            asbitemId: item.id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            price: item.price, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            customerOrgGroupId: this.personnelUnit.customerOrgGroupId, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          console.log(this.price); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          this.unselecteddata.forEach((item) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					           this.price=item.price | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.addrulst.push({ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              asbitemId: item.id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              price: item.price, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              // price: this.price, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              customerOrgGroupId: this.personnelUnit.customerOrgGroupId, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        console.log(this.addrulst, "hhhhhhh"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        // this.selecteddata = this.unselecteddata; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        // 复制 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //  let count = this.unselecteddata.length - 1; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        // for (var i = count; i >= 0; i--) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //   this.tabledata.splice(i, 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //   this.selecteddata.push(this.unselecteddata[i]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        // } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          console.log(this.addrulst, "hhhhhhh"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          // this.selecteddata = this.unselecteddata; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          // 复制 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          //  let count = this.unselecteddata.length - 1; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          // for (var i = count; i >= 0; i--) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          //   this.tabledata.splice(i, 1); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          //   this.selecteddata.push(this.unselecteddata[i]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          // } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    // 左侧未选 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |