价格参数修改3
This commit is contained in:
		
							parent
							
								
									d5f384ff56
								
							
						
					
					
						commit
						f00f3f5016
					
				| 
						 | 
				
			
			@ -505,6 +505,7 @@ export default {
 | 
			
		|||
      this.$set(this.form,"salesMode",row.salesMode+'')
 | 
			
		||||
      this.getDrpUnitList()
 | 
			
		||||
      this.$set(this.form,"unitId",row.unitId)
 | 
			
		||||
      this.$set(this.form,"salePrice",Number((row.salePrice/100).toFixed(2))) 
 | 
			
		||||
      this.$set(this.form,"unitPrice",Number((row.unitPrice/100).toFixed(2))) 
 | 
			
		||||
      this.$set(this.form,"barCode",row.barCode)   
 | 
			
		||||
      if(row.nutritionTypeId){
 | 
			
		||||
| 
						 | 
				
			
			@ -536,7 +537,8 @@ export default {
 | 
			
		|||
    submitForm() {
 | 
			
		||||
      this.$refs.form.validate(valid => {
 | 
			
		||||
        if (valid) {
 | 
			
		||||
          this.form.unitPrice = Number(this.form.unitPrice)
 | 
			
		||||
          this.form.salePrice = Number(this.form.salePrice);
 | 
			
		||||
          this.form.unitPrice = Number(this.form.unitPrice); 
 | 
			
		||||
          this.$emit('submit', this.form);
 | 
			
		||||
        }
 | 
			
		||||
      });
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue