|
|
|
|
@ -243,7 +243,7 @@ import {
|
|
|
|
|
getBudget
|
|
|
|
|
} from "@/api/budget/budget";
|
|
|
|
|
import {
|
|
|
|
|
detailContract
|
|
|
|
|
detailContract, resetMoney
|
|
|
|
|
} from "@/api/contract/contract";
|
|
|
|
|
import {
|
|
|
|
|
Message
|
|
|
|
|
@ -554,7 +554,6 @@ import { listdeptNoAuth } from '@/api/system/department'
|
|
|
|
|
this.paymentRegistrationForm.plan.forEach(item => {
|
|
|
|
|
total += Number(item.use_money)
|
|
|
|
|
})
|
|
|
|
|
console.log(Number(this.paymentRegistrationForm.actMoney).toFixed(2), total.toFixed(2))
|
|
|
|
|
// if (Number(this.paymentRegistrationForm.actMoney).toFixed(2) !== total.toFixed(2)) {
|
|
|
|
|
// Message({
|
|
|
|
|
// type: 'warning',
|
|
|
|
|
@ -580,6 +579,10 @@ import { listdeptNoAuth } from '@/api/system/department'
|
|
|
|
|
money_way_id: this.paymentRegistrationForm.moneyWay.toString(),
|
|
|
|
|
contract_plan_act_links: this.paymentRegistrationForm.plan
|
|
|
|
|
}).then(res => {
|
|
|
|
|
resetMoney({
|
|
|
|
|
id: this.contract.id,
|
|
|
|
|
money: this.contract.money
|
|
|
|
|
})
|
|
|
|
|
this.$emit('refresh')
|
|
|
|
|
this.isShow = false
|
|
|
|
|
Message({
|
|
|
|
|
|