diff --git a/src/utils/index.js b/src/utils/index.js
index 09c2c79..202a363 100644
--- a/src/utils/index.js
+++ b/src/utils/index.js
@@ -423,7 +423,7 @@ export function isPcBowser() {
* decimal你保留的几位,默认保留小数后两位
*/
export function formatDecimal(num, decimal = 2) {
- num = num.toString();
+ num = num.toFixed(3).toString();
const index = num.indexOf(".");
if (index !== -1) {
num = num.substring(0, decimal + index + 1);
diff --git a/src/views/invoicing/components/addStockTakin.vue b/src/views/invoicing/components/addStockTakin.vue
index 491b271..b419a4b 100644
--- a/src/views/invoicing/components/addStockTakin.vue
+++ b/src/views/invoicing/components/addStockTakin.vue
@@ -1,24 +1,27 @@
-
+
-
+
-
-
+
+
-
+
-
+
-
+
取 消
@@ -44,14 +47,14 @@
¥{{ scope.row.price }}
-
+
¥{{ scope.row.phasePrice }}
-
+
@@ -131,7 +134,7 @@ export default {
});
this.getTableData()
} catch (error) {
- this.dialogVisible = false
+ this.loading = false
console.log(error)
}
}
@@ -169,7 +172,7 @@ export default {
name: this.searhForm.name,
skuId: this.searhForm.category,
productId: this.searhForm.productId,
- sort: 'id',
+ sort: 'id,desc',
})
this.tableData.list = res.content
this.tableData.total = res.totalElements
diff --git a/src/views/invoicing/goods_stoks.vue b/src/views/invoicing/goods_stoks.vue
index 2aca331..e2f7470 100644
--- a/src/views/invoicing/goods_stoks.vue
+++ b/src/views/invoicing/goods_stoks.vue
@@ -117,7 +117,7 @@
-
+