| | |
| | | isTaxAfter: tot |
| | | }; |
| | | if (tot == 0) { |
| | | TotalcalculationFn(bojite).then(row => { |
| | | if ((row.code = 200)) { |
| | | this.$modal.msgSuccess(row.msg); |
| | | } else { |
| | | this.$modal.msgError(row.msg); |
| | | } |
| | | }); |
| | | TotalcalculationFn(bojite) |
| | | .then(row => { |
| | | if (row.code == 200) { |
| | | this.$modal.msgSuccess(row.msg); |
| | | } else { |
| | | console.log(123); |
| | | this.$modal.msgError(row.msg); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | this.$modal.msgError(error); |
| | | }); |
| | | } else { |
| | | const hasValue = this.overallidsvalue.every(obj => obj.istax == 1); |
| | | if (hasValue) { |
| | | TotalcalculationFn(bojite).then(row => { |
| | | if ((row.code = 200)) { |
| | | this.$modal.msgSuccess(row.msg); |
| | | } else { |
| | | this.$modal.msgError(row.msg); |
| | | } |
| | | }); |
| | | TotalcalculationFn(bojite) |
| | | .then(row => { |
| | | if (row.code == 200) { |
| | | this.$modal.msgSuccess(row.msg); |
| | | } else { |
| | | this.$modal.msgError(row.msg); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | this.$modal.msgError(error); |
| | | }); |
| | | } else { |
| | | this.$modal.msgError("请选择算税后的数据进行合并计算"); |
| | | } |