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

master
xy 2 years ago
parent ed5f152af2
commit 8d596fd273

@ -203,7 +203,8 @@
<Modal <Modal
v-model="isShowAddManyPlan" v-model="isShowAddManyPlan"
title="计划任务"> title="计划任务"
@on-ok="manyCreate">
<div class="many-plan"> <div class="many-plan">
<div class="many-plan-item"> <div class="many-plan-item">
@ -378,13 +379,10 @@
contract: {}, contract: {},
signList: [], signList: [],
signTable: [{ signTable: [{
prop: 'created_at', prop: 'date',
label: '日期', label: '日期',
width: 170, width: 170,
sortable: false, sortable: false,
formatter: (v1, v2, value) => {
return parseTime(new Date(value))
}
}, },
{ {
prop: 'money', 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 //oa
async getOaContractInfo() { async getOaContractInfo() {
try { try {

@ -591,6 +591,9 @@ export default {
mounted() { mounted() {
this.contractId = this.$route.query.contractId; 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(); this.getFundLogs();
}, },
created() { created() {

@ -37,7 +37,7 @@
<span style="color: red; font-weight: 600; padding-right: 4px" <span style="color: red; font-weight: 600; padding-right: 4px"
>*</span >*</span
> >
项目库选择 项目
</div> </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-input <el-input
@ -111,7 +111,10 @@
content: '', content: '',
plan_date: '', plan_date: '',
actually_date: '', actually_date: '',
date: '' date: '',
introduce: '',
total: '',
audit_total: ''
}) })
" "
>新增</el-button >新增</el-button
@ -240,35 +243,35 @@ export default {
}, },
}, },
{ {
prop: "", prop: "introduce",
label: "评审项目情况简介", label: "评审项目情况简介",
width: 180, width: 180,
sortable: false, sortable: false,
customFn: row => { customFn: row => {
return ( 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: "总投资金额", label: "总投资金额",
width: 180, width: 180,
sortable: false, sortable: false,
customFn: row => { customFn: row => {
return ( 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: "评审金额", label: "评审金额",
width: 180, width: 180,
sortable: false, sortable: false,
customFn: row => { customFn: row => {
return ( 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 || '', content: i.content || '',
plan_date: i.plan_date || '', plan_date: i.plan_date || '',
actually_date: i.actually_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', prop: 'use_money_total',
label: '使用金额', label: '使用金额',
align: 'right', 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', prop: 'calculation_result',

Loading…
Cancel
Save