|
|
|
|
@ -68,16 +68,16 @@
|
|
|
|
|
style="width: 150px;" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template v-slot:audit_money>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">审计金额
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content xy-table-item-price">
|
|
|
|
|
<el-input clearable placeholder="请填写审计金额" v-model="paymentRegistrationForm.audit_money" style="width: 150px;" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template v-slot:audit_money>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">审计金额
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content xy-table-item-price">
|
|
|
|
|
<el-input clearable placeholder="请填写审计金额" v-model="form.audit_money" style="width: 150px;" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:deductionMoney>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
@ -159,7 +159,8 @@
|
|
|
|
|
getBudget
|
|
|
|
|
} from "@/api/budget/budget";
|
|
|
|
|
import {
|
|
|
|
|
detailContract
|
|
|
|
|
detailContract,
|
|
|
|
|
editorContract
|
|
|
|
|
} from "@/api/contract/contract";
|
|
|
|
|
import {
|
|
|
|
|
Message
|
|
|
|
|
@ -207,13 +208,16 @@
|
|
|
|
|
isShowPaymentRegistration: false,
|
|
|
|
|
paymentRegistrationForm: {
|
|
|
|
|
applyMoney: "",
|
|
|
|
|
deductionMoney: "",
|
|
|
|
|
audit_money:"",
|
|
|
|
|
deductionMoney: "",
|
|
|
|
|
audit_money: "",
|
|
|
|
|
type: "",
|
|
|
|
|
isLast: false,
|
|
|
|
|
plan: [],
|
|
|
|
|
remark: ""
|
|
|
|
|
},
|
|
|
|
|
form: {
|
|
|
|
|
audit_money: 0
|
|
|
|
|
},
|
|
|
|
|
paymentRegistrationRules: {
|
|
|
|
|
applyMoney: [{
|
|
|
|
|
required: true,
|
|
|
|
|
@ -316,18 +320,22 @@
|
|
|
|
|
async getContract(info) {
|
|
|
|
|
this.contract = await detailContract({
|
|
|
|
|
id: info.id
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.paymentRegistrationForm.plan = this.contract.plans.map(item => {
|
|
|
|
|
return {
|
|
|
|
|
plan_id: item.id,
|
|
|
|
|
use_money: item.useMoney,
|
|
|
|
|
new_money: item.money,
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.form.audit_money = this.contract.audit_money;
|
|
|
|
|
|
|
|
|
|
const res = await getFundLog({
|
|
|
|
|
contract_id: this.contract.id
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
this.payment = res.data
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
@ -338,14 +346,21 @@
|
|
|
|
|
discount_money: this.paymentRegistrationForm.deductionMoney,
|
|
|
|
|
type: this.paymentRegistrationForm.type,
|
|
|
|
|
is_end: this.paymentRegistrationForm.isLast ? 1 : 0,
|
|
|
|
|
remark: this.paymentRegistrationForm.remark
|
|
|
|
|
remark: this.paymentRegistrationForm.remark,
|
|
|
|
|
audit_money: this.paymentRegistrationForm.audit_money
|
|
|
|
|
}
|
|
|
|
|
addFundLog(data).then(res => {
|
|
|
|
|
this.isShowPaymentRegistration = false
|
|
|
|
|
Message({
|
|
|
|
|
type: 'success',
|
|
|
|
|
message: "操作成功"
|
|
|
|
|
})
|
|
|
|
|
//付款申请后同时更新一下合同中审计金额
|
|
|
|
|
editorContract({
|
|
|
|
|
id: this.contract.id,
|
|
|
|
|
audit_money: this.form.audit_money
|
|
|
|
|
}).then(r => {
|
|
|
|
|
Message({
|
|
|
|
|
type: 'success',
|
|
|
|
|
message: "操作成功"
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
this.$refs['paymentRegistration'].reset()
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|