diff --git a/package.json b/package.json index bf3f4a80..746d83a1 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "normalize.css": "7.0.0", "nprogress": "0.2.0", "print-js": "^1.0.61", + "python2": "0.0.1", "screenfull": "3.3.3", "showdown": "1.8.6", "simplemde": "1.11.2", @@ -99,7 +100,7 @@ "lint-staged": "7.2.2", "mini-css-extract-plugin": "0.4.1", "node-notifier": "5.2.1", - "node-sass": "^4.12.0", + "node-sass": "^4.14.1", "optimize-css-assets-webpack-plugin": "5.0.0", "ora": "3.0.0", "path-to-regexp": "2.4.0", diff --git a/src/views/SaleOut/AddSaleOut.vue b/src/views/SaleOut/AddSaleOut.vue index 0aef2d8b..aa402680 100644 --- a/src/views/SaleOut/AddSaleOut.vue +++ b/src/views/SaleOut/AddSaleOut.vue @@ -21,7 +21,7 @@ - + diff --git a/src/views/StockArrival/AddStockArrival.vue b/src/views/StockArrival/AddStockArrival.vue index 45b86c36..96da50f8 100644 --- a/src/views/StockArrival/AddStockArrival.vue +++ b/src/views/StockArrival/AddStockArrival.vue @@ -691,7 +691,8 @@ export default { }, // 计算金额 getMoney(row) { - row.money = (row.arrivalQuantity * row.price).toFixed(6) + row.money = (row.arrivalQuantity * (Number(row.includeTaxPrice) / (1 + (row.taxRate / 100)))).toFixed(2) + return row.money }, getways() { diff --git a/src/views/StockArrival/components/MyDialog.vue b/src/views/StockArrival/components/MyDialog.vue index f8959f23..65c1f3b5 100644 --- a/src/views/StockArrival/components/MyDialog.vue +++ b/src/views/StockArrival/components/MyDialog.vue @@ -600,7 +600,8 @@ export default { }, // 计算金额 getMoney(row) { - row.money = (row.arrivalQuantity * row.price).toFixed(6) + row.money = (row.arrivalQuantity * (Number(row.includeTaxPrice) / (1 + (row.taxRate / 100)))).toFixed(2) + return row.money }, gettaxRate(row) { diff --git a/src/views/StockInvoice/AddStockInvoice.vue b/src/views/StockInvoice/AddStockInvoice.vue index f58de404..10785068 100644 --- a/src/views/StockInvoice/AddStockInvoice.vue +++ b/src/views/StockInvoice/AddStockInvoice.vue @@ -974,7 +974,7 @@ export default { }, // 计算金额 getMoney(row) { - row.money = (row.quantity * row.price).toFixed(2) + row.money = (row.quantity * (Number(row.includeTaxPrice) / (1 + (row.taxRate / 100)))).toFixed(2) return row.money }, getways() { diff --git a/src/views/StockInvoice/components/MyDialog.vue b/src/views/StockInvoice/components/MyDialog.vue index 254db60a..74741cd1 100644 --- a/src/views/StockInvoice/components/MyDialog.vue +++ b/src/views/StockInvoice/components/MyDialog.vue @@ -932,7 +932,8 @@ export default { }, // 计算金额 getMoney(row) { - row.money = (row.quantity * row.price).toFixed(2) + row.money = (row.quantity * (Number(row.includeTaxPrice) / (1 + (row.taxRate / 100)))).toFixed(2) + return row.money }, getways() { diff --git a/src/views/StockOrder/AddStockOrder.vue b/src/views/StockOrder/AddStockOrder.vue index ab1d7192..8734cdf5 100644 --- a/src/views/StockOrder/AddStockOrder.vue +++ b/src/views/StockOrder/AddStockOrder.vue @@ -613,7 +613,7 @@ export default { methods: { getcurrency() { const mycountry = this.$store.getters.countryId - console.log('mycountry============', mycountry) + // console.log('mycountry============', mycountry) if (mycountry === 1) { this.personalForm.currency = '3' } else if (mycountry === 2) { @@ -627,7 +627,7 @@ export default { const hasPermission = roles.some(role => { return permissionRoles.includes(role) }) - console.log('hasPermission=======', hasPermission) + // console.log('hasPermission=======', hasPermission) return hasPermission }, handlechooseRep() { @@ -927,7 +927,7 @@ export default { }, // 计算金额 getMoney(row) { - row.money = (row.stockQuantity * row.price).toFixed(6) + row.money = (row.stockQuantity * (Number(row.includeTaxPrice) / (1 + (row.taxRate / 100)))).toFixed(2) return row.money }, // 选择源单类型事件 diff --git a/src/views/StockOrder/components/MyDialog.vue b/src/views/StockOrder/components/MyDialog.vue index e3229b3d..51a5e93a 100644 --- a/src/views/StockOrder/components/MyDialog.vue +++ b/src/views/StockOrder/components/MyDialog.vue @@ -780,7 +780,8 @@ export default { }, // 计算金额 getMoney(row) { - row.money = (row.stockQuantity * row.price).toFixed(6) + row.money = (row.stockQuantity * (Number(row.includeTaxPrice) / (1 + (row.taxRate / 100)))).toFixed(2) + return row.money }, // 选择源单类型事件 diff --git a/src/views/Stockenter/addstockenter.vue b/src/views/Stockenter/addstockenter.vue index 1bac8fd0..9951a01b 100644 --- a/src/views/Stockenter/addstockenter.vue +++ b/src/views/Stockenter/addstockenter.vue @@ -166,7 +166,7 @@ @@ -1042,9 +1042,10 @@ export default { } }, // 入库金额计算 - getSize(scope, quan, pric) { - scope.row.enterMoney = (Number(quan) * Number(pric)).toFixed(6) - return (quan * pric).toFixed(6) + getSize(row) { + row.money = (row.actualEnterQuantity * (Number(row.includeTaxPrice) / (1 + (row.taxRate / 100)))).toFixed(2) + + return row.money }, getmylocation(scope) { if (scope.row.flag === undefined) { diff --git a/src/views/Stockenter/components/MyDialog.vue b/src/views/Stockenter/components/MyDialog.vue index 1fe2ef20..6e723602 100644 --- a/src/views/Stockenter/components/MyDialog.vue +++ b/src/views/Stockenter/components/MyDialog.vue @@ -181,7 +181,7 @@ @@ -570,8 +570,9 @@ export default { } }, // 入库金额计算 - getSize(quan, pric) { - return quan * pric + getSize(row) { + row.money = (row.actualEnterQuantity * (Number(row.includeTaxPrice) / (1 + (row.taxRate / 100)))).toFixed(2) + return row.money }, getmylocation(scope) { if (scope.row.flag === undefined) {