shish 4 лет назад
Родитель
Сommit
aa924bf52d
1 измененных файлов с 10 добавлено и 1 удалено
  1. 10 1
      ghsApp/src/pagesStorehouse/allot/putDetails.vue

+ 10 - 1
ghsApp/src/pagesStorehouse/allot/putDetails.vue

@@ -131,7 +131,16 @@ export default {
 					small += item.smallNum;
 				}
 			}
-			return `${big}/${small}`;
+			big = parseFloat(big.toFixed(2))
+			small = parseFloat(small.toFixed(2))
+			let text = ''
+			if(Number(big)>0){
+				text += big+'扎'
+			}
+			if(Number(small)>0){
+				text += small+'支'
+			}
+			return text
 		}
 	},
 	methods: {