付款计划总额要等于合同总金额,批量添加付款计划。点击使用金额跳转。

master
xy 2 years ago
parent ed5f152af2
commit 8d596fd273

@ -203,7 +203,8 @@
<Modal
v-model="isShowAddManyPlan"
title="计划任务">
title="计划任务"
@on-ok="manyCreate">
<div class="many-plan">
<div class="many-plan-item">
@ -378,13 +379,10 @@
contract: {},
signList: [],
signTable: [{
prop: 'created_at',
prop: 'date',
label: '日期',
width: 170,
sortable: false,
formatter: (v1, v2, value) => {
return parseTime(new Date(value))
}
},
{
prop: 'money',
@ -553,6 +551,25 @@
})
},
manyCreate () {
Promise.all(this.manyForm.map(i => {
return addContractSign({
contract_id: this.contract.id,
date: i.date,
content: '',
money: i.money,
remark: ''
})
})).then(res => {
this.getContractSignList()
Message({
type: 'success',
message: '操作成功'
})
this.isShowAddManyPlan = false;
})
},
//oa
async getOaContractInfo() {
try {

@ -591,6 +591,9 @@ export default {
mounted() {
this.contractId = this.$route.query.contractId;
const { plan_id, plan_name } = this.$route.query
this.select.plan_id = plan_id;
this.select.plan_name = plan_name
this.getFundLogs();
},
created() {

@ -37,7 +37,7 @@
<span style="color: red; font-weight: 600; padding-right: 4px"
>*</span
>
项目库选择
项目
</div>
<div class="xy-table-item-content">
<el-input
@ -111,7 +111,10 @@
content: '',
plan_date: '',
actually_date: '',
date: ''
date: '',
introduce: '',
total: '',
audit_total: ''
})
"
>新增</el-button
@ -240,35 +243,35 @@ export default {
},
},
{
prop: "",
prop: "introduce",
label: "评审项目情况简介",
width: 180,
sortable: false,
customFn: row => {
return (
<el-input size="mini" placeholder="评审项目情况简介" clearable={true}></el-input>
<el-input v-model={row.introduce} size="mini" placeholder="评审项目情况简介" clearable={true}></el-input>
)
}
},
{
prop: "",
prop: "total",
label: "总投资金额",
width: 180,
sortable: false,
customFn: row => {
return (
<el-input-number precision={2} controls={false} size="mini" placeholder="总投资金额" clearable={true}></el-input-number>
<el-input-number v-model={row.total} precision={2} controls={false} size="mini" placeholder="总投资金额" clearable={true}></el-input-number>
)
}
},
{
prop: "",
prop: "audit_total",
label: "评审金额",
width: 180,
sortable: false,
customFn: row => {
return (
<el-input-number precision={2} controls={false} size="mini" placeholder="评审金额" clearable={true}></el-input-number>
<el-input-number v-model={row.audit_total} precision={2} controls={false} size="mini" placeholder="评审金额" clearable={true}></el-input-number>
)
}
},
@ -576,7 +579,10 @@ export default {
content: i.content || '',
plan_date: i.plan_date || '',
actually_date: i.actually_date || '',
date: i.date || ''
date: i.date || '',
introduce: i.introduce || '',
total: i.total,
audit_total: i.audit_total
};
});
},

@ -148,7 +148,22 @@
prop: 'use_money_total',
label: '使用金额',
align: 'right',
width: 180
width: 180,
customFn:row => {
return (
<a on={{
['click']:_ => {
this.$router.push({
path: "/contract/paymentRegistrationList_1",
query: {
plan_id: row.id,
plan_name: `[${row.year}]-${row.name}`
}
})
}
}}>{ row.use_money_total }</a>
)
}
},
{
prop: 'calculation_result',

Loading…
Cancel
Save