+ >
+
-
diff --git a/src/mycomponents/qty/recommendQty.vue b/src/mycomponents/qty/recommendQty.vue
index c96707ac..394a3799 100644
--- a/src/mycomponents/qty/recommendQty.vue
+++ b/src/mycomponents/qty/recommendQty.vue
@@ -3,16 +3,20 @@
-
+
{{Number(dataContent.qty)}}
+
+ /
+ {{ calc(dataContent.qty,dataContent.packQty)}}
+
+
-
@@ -66,7 +70,7 @@
type: Boolean,
default: true
},
- objTextStyle:{
+ objTextStyle: {
type: Object,
default: null
}
@@ -75,7 +79,9 @@
},
methods: {
-
+ calc(qty, packQty) {
+ return Math.ceil(Number(qty) / Number(packQty));
+ }
},
}