shish 3 лет назад
Родитель
Сommit
e739c27f11
2 измененных файлов с 9 добавлено и 3 удалено
  1. 5 3
      ghsApp/src/pagesOrder/arrival.vue
  2. 4 0
      hdApp/src/pagesPurchase/bookProduct.vue

+ 5 - 3
ghsApp/src/pagesOrder/arrival.vue

@@ -105,9 +105,11 @@ export default {
 			return price
 		},
 		settlePrice(){
-			let bookPrice = this.detailInfo.bookPrice ? parseFloat(this.detailInfo.bookPrice):0
+			let bookPrice = this.detailInfo.bookPrice ? parseFloat(this.detailInfo.bookPrice) : 0
 			let price = Number(bookPrice) - Number(this.allPrice)
-			price = parseFloat(Number(price))
+			price = Number(price)
+			price = price.toFixed(2)
+			price = parseFloat(price)
 			return price
 		}
 	},
@@ -135,7 +137,7 @@ export default {
 							break;
 						}
 						if(this.$util.isEmpty(item.xhNum) ||  Number(item.xhNum) < 0){
-							this.$msg('请填写到货数,没有填0')
+							this.$msg('请填写 '+name+' 到货数,没有填0')
 							hasError = true;
 							break;
 						}

+ 4 - 0
hdApp/src/pagesPurchase/bookProduct.vue

@@ -322,6 +322,10 @@ export default {
 
 	},
 	methods: {
+		changeClass(index){
+			this.$refs.selectFlowerNumRef.close()
+			this.swichClass(index)
+		},
 		customUpdate(item) {
 			if(item.variety == 0){
 				this.customNum({ ...item, bigCount: item.bigCount, smallCount: item.smallCount })