| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -43,13 +43,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          <el-button class="btnClass" @click="delAbs(patientRegisterAbsChoosed,'all')">全部移除</el-button> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          <el-button class="btnClass" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            @click="btnSave" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            >保存 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          </el-button> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </div>         | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      <!--已选组合项目--> | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -83,7 +77,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <el-table-column label="折扣" prop="price" min-width="50" align="center"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              <template slot-scope="scope"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <el-input | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  @change="discount(scope.$index)" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  @input="changeDiscount(scope.$index)" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  type="number" size="small" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  v-model="scope.row.discount" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                /> | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -99,6 +93,13 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              </template> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </el-table-column> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <el-table-column label="数量" prop="customerOrgGroupDetailAmount" min-width="40" align="center"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              <template slot-scope="scope"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <el-input | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  @input="changePrices(scope.$index)" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  type="number" size="small"  | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  v-model="scope.row.customerOrgGroupDetailAmount"  | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                /> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              </template> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </el-table-column> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <el-table-column label="标准金额" prop="asbitemMoney" min-width="60" align="center"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </el-table-column> | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -116,6 +117,9 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      <div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <el-button class="btnClass">复制套餐</el-button> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      <div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <el-button class="btnClass" @click="btnSave">保存</el-button> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    </div>     | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					</template> | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -499,17 +503,39 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    changeDiscount(index){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.customerOrgGroupAsbitems[index].customerOrgGroupDetailPrice =  | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      (this.customerOrgGroupAsbitems[index].discount *  this.customerOrgGroupAsbitems[index].price/100).toFixed(2) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					       | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.customerOrgGroupAsbitems[index].customerOrgGroupDetailMoney =  | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      (this.customerOrgGroupAsbitems[index].customerOrgGroupDetailPrice * this.customerOrgGroupAsbitems[index].customerOrgGroupDetailAmount).toFixed(2) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //this.getSummaries() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					       | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //修改价格或数量 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    changePrices(index){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.customerOrgGroupAsbitems[index].customerOrgGroupDetailMoney =  | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      (this.customerOrgGroupAsbitems[index].customerOrgGroupDetailPrice * this.customerOrgGroupAsbitems[index].customerOrgGroupDetailAmount).toFixed(2) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.customerOrgGroupAsbitems[index].discount = (this.customerOrgGroupAsbitems[index].customerOrgGroupDetailPrice * 100 / this.customerOrgGroupAsbitems[index].price).toFixed(2) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.refreshTable('tableCustomerOrgGroupAsbitems') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //this.getSummaries() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //合计 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    getSummaries(param) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      console.log('getSummaries param',param) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      // if(!param){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //   param = { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //     columns:[{}, {}, {}, {}, {}, {}, {property: 'asbitemMoney'},{property: 'customerOrgGroupDetailMoney'}], | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //     data:this.customerOrgGroupAsbitems | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //   } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      // } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      const { columns, data } = param; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      const sumCol = [6, 7]  //需合计的列 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      const sums = []; | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -529,7 +555,7 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        sums[index] = 0 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        data.forEach(e => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          if (!isNaN(e[column.property])) sums[index] += e[column.property]// * e['amount'] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          if (!isNaN(e[column.property])) sums[index] += Number(e[column.property])// * e['amount'] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        sums[index] = sums[index].toFixed(2) //+ ' 元'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -542,22 +568,8 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    changingprices(price) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.price = price; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    discount(index) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      console.log(index); //100标准价格 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.personnelUnit.nogroupselected[index].price = Math.round( | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        (100 * Number(this.personnelUnit.nogroupselected[index].queueTime)) / | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          100, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        2 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      ); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    inputchang(row, newVal) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.price = row.price; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      console.log(this.price); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //保存按钮 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    btnSave() { | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -565,17 +577,23 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        this.$message.warning("请先选中单位分组") | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      let body = [] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      // [ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //   { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //     "customerOrgGroupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //     "asbitemId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //     "price": 0, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //     "amount": 0 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //   } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      // ] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      let body = { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        customerOrgGroupId:this.customerOrgGroup.id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        details:[] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      // { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //   "customerOrgGroupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //   "details": [ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //     { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //       "customerOrgGroupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //       "asbitemId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //       "price": 0, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //       "amount": 0 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //     } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //   ] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      // } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.customerOrgGroupAsbitems.forEach(e =>{ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        body.push({ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        body.details.push({ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          customerOrgGroupId:this.customerOrgGroup.id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          asbitemId:e.asbitemId, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          price:e.customerOrgGroupDetailPrice, | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |