jf пре 5 година
родитељ
комит
8e0a13b94a
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      ghsApp/src/mixins/allMoreSelectInput.js
  2. 1 1
      ghsApp/src/pagesPurchase/add.vue

+ 1 - 1
ghsApp/src/mixins/allMoreSelectInput.js

@@ -16,7 +16,7 @@ export default {
 			let smallCount = this.customData.smallCount;
 			let smallCount = this.customData.smallCount;
 			let bigCount = this.customData.bigCount;
 			let bigCount = this.customData.bigCount;
 			let weight = this.customData.weight;
 			let weight = this.customData.weight;
-			this.customData.realityWeight = smallCount * weight / ratio + bigCount * weight
+			this.customData.realityWeight = (smallCount * weight / ratio + bigCount * weight).toFixed(2)
 		},
 		},
 		// 离开全选input
 		// 离开全选input
 		moveAllInput(e){
 		moveAllInput(e){

+ 1 - 1
ghsApp/src/pagesPurchase/add.vue

@@ -93,7 +93,7 @@
 					<view class="select-cmd_bx">
 					<view class="select-cmd_bx">
 						<view class="num_bx">
 						<view class="num_bx">
 							<view class="kc">重量</view>
 							<view class="kc">重量</view>
-							<allSelectInput :isActive="isWeightActive" :isFocus="isWeightFocus" :value="customData.realityWeight.toFixed(2)" :placeholder="'公斤'"
+							<allSelectInput :isActive="isWeightActive" :isFocus="isWeightFocus" :value="customData.realityWeight" :placeholder="'公斤'"
 																							:width="416" :height="80" :fontSize="40"
 																							:width="416" :height="80" :fontSize="40"
 																							@deleteInputVal="deleteWeightInputVal" @initAllInput="initWeightAllInput" @moveAllInput="moveWeightAllInput">
 																							@deleteInputVal="deleteWeightInputVal" @initAllInput="initWeightAllInput" @moveAllInput="moveWeightAllInput">
 							</allSelectInput>
 							</allSelectInput>