预算页面
parent
0507b9cc39
commit
79adced54c
|
@ -106,6 +106,26 @@ SELECT_CATEGORY_TYPE_MAP_DATA={};
|
||||||
getAjax(base+"/procurement/type/map", null, initTypeCategory);
|
getAjax(base+"/procurement/type/map", null, initTypeCategory);
|
||||||
});*/
|
});*/
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
$("#cost-detail").click(function () {
|
||||||
|
$('#my-prompt-cost-detail').modal({
|
||||||
|
relatedTarget: this,
|
||||||
|
closeOnConfirm:false,
|
||||||
|
onConfirm: function(e) {
|
||||||
|
//不能使用e.data,因为无法获取动态添加的
|
||||||
|
var data = collectData("am-modal-prompt-input-cost");
|
||||||
|
//data = prepareAjaxData(data, COST_DETAIL_ARR, $("#id").val(),false);
|
||||||
|
data = prepareAjaxDataVerify(data, COST_DETAIL, $("#id").val());
|
||||||
|
if(data){
|
||||||
|
postAjax(base+"/project/budgetEditSaveCostDetail", data, updateCostData);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onCancel: function(e) {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
//保存采购成本明细表
|
//保存采购成本明细表
|
||||||
$(function () {
|
$(function () {
|
||||||
$("#costTableSave").click(function () {
|
$("#costTableSave").click(function () {
|
||||||
|
|
|
@ -49,6 +49,26 @@ SELECT_CATEGORY_TYPE_MAP_DATA_MANAGER={};
|
||||||
initTypeCategoryManage();
|
initTypeCategoryManage();
|
||||||
});*/
|
});*/
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
$("#cost-project-manage-detail").click(function () {
|
||||||
|
$('#my-prompt-cost-project-manage-detail').modal({
|
||||||
|
relatedTarget: this,
|
||||||
|
closeOnConfirm:false,
|
||||||
|
onConfirm: function(e) {
|
||||||
|
//不能使用e.data,因为无法获取动态添加的
|
||||||
|
var data = collectData("am-modal-prompt-input-cost-project-manage");
|
||||||
|
//data = prepareAjaxData(data, COST_PROJECT_MANAGE_DETAIL_ARR, $("#id").val(),true);
|
||||||
|
data = prepareAjaxDataVerify(data, COST_PROJECT_MANAGE_DETAIL, $("#id").val());
|
||||||
|
if(data){
|
||||||
|
postAjax(base+"/project/budgetEditSaveCostProjectManageDetail", data, updateCostProjectManageData);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onCancel: function(e) {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
//保存项目管理成本表
|
//保存项目管理成本表
|
||||||
$(function () {
|
$(function () {
|
||||||
|
|
|
@ -36,6 +36,26 @@ INCOME_DETAIL={
|
||||||
});
|
});
|
||||||
});*/
|
});*/
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
$("#income-detail").click(function () {
|
||||||
|
$('#my-prompt-income-detail').modal({
|
||||||
|
relatedTarget: this,
|
||||||
|
closeOnConfirm:false,
|
||||||
|
onConfirm: function(e) {
|
||||||
|
//不能使用e.data,因为无法获取动态添加的
|
||||||
|
var data = collectData("am-modal-prompt-input-income");
|
||||||
|
//data = prepareAjaxData(data, INCOME_DETAIL_ARR, $("#id").val(),false);
|
||||||
|
data = prepareAjaxDataVerify(data, INCOME_DETAIL, $("#id").val());
|
||||||
|
if(data.details){
|
||||||
|
postAjax(base+"/project/budgetEditSaveIncomeDetail", data, updateIncomeData);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onCancel: function(e) {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
//保存收入明细表
|
//保存收入明细表
|
||||||
$(function () {
|
$(function () {
|
||||||
$("#incomeTableSave").click(function () {
|
$("#incomeTableSave").click(function () {
|
||||||
|
|
|
@ -63,6 +63,33 @@ BUDGET_PLAN_DETAIL={
|
||||||
});*/
|
});*/
|
||||||
|
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
$(".budget-plan-detail").click(function () {
|
||||||
|
$('#my-prompt-budget-plan-detail').modal({
|
||||||
|
relatedTarget: this,
|
||||||
|
closeOnConfirm:false,
|
||||||
|
onConfirm: function(e) {
|
||||||
|
//校验数据正确性
|
||||||
|
var message = verifyBudgetPlan();
|
||||||
|
if (message) {
|
||||||
|
layuiAlert(message);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
//不能使用e.data,因为无法获取动态添加的
|
||||||
|
var data = collectData("am-modal-prompt-input-budget-plan-detail");
|
||||||
|
//data = prepareAjaxData(data, BUDGET_PLAN_DETAIL_ARR, $("#id").val(),false);
|
||||||
|
data = prepareAjaxDataVerify(data, BUDGET_PLAN_DETAIL, $("#id").val());
|
||||||
|
if(data){
|
||||||
|
postAjax(base+"/project/budgetEditSaveBudgetPlanDetail", data, updateBudgetPlanDetailData);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onCancel: function(e) {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
//保存资金计划表
|
//保存资金计划表
|
||||||
$(function () {
|
$(function () {
|
||||||
$("#budgetPlanDetailTableSave").click(function () {
|
$("#budgetPlanDetailTableSave").click(function () {
|
||||||
|
|
|
@ -430,6 +430,9 @@
|
||||||
</#if>
|
</#if>
|
||||||
<span class="am-text-lg">收入</span>
|
<span class="am-text-lg">收入</span>
|
||||||
<span class="am-text-primary"><a style="cursor: pointer" id="income-detail">收入明细表</a></span>
|
<span class="am-text-primary"><a style="cursor: pointer" id="income-detail">收入明细表</a></span>
|
||||||
|
<span class="am-text-primary"><a style="cursor: pointer" id="cost-detail">采购成本明细表</a></span>
|
||||||
|
<span class="am-text-primary"><a style="cursor: pointer" id="cost-project-manage-detail">项目管理成本表</a></span>
|
||||||
|
<span class="am-text-primary budget-plan-detail"><a style="cursor: pointer">资金计划表</a></span>
|
||||||
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
|
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr class="am-text-lg">
|
<tr class="am-text-lg">
|
||||||
|
@ -465,8 +468,8 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<span class="am-text-lg">成本</span>
|
<span class="am-text-lg">成本</span>
|
||||||
<span class="am-text-primary"><a style="cursor: pointer" id="cost-detail">采购成本明细表</a></span>
|
<#-- <span class="am-text-primary"><a style="cursor: pointer" id="cost-detail">采购成本明细表</a></span>
|
||||||
<span class="am-text-primary"><a style="cursor: pointer" id="cost-project-manage-detail">项目管理成本表</a></span>
|
<span class="am-text-primary"><a style="cursor: pointer" id="cost-project-manage-detail">项目管理成本表</a></span>-->
|
||||||
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
|
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr class="am-text-lg">
|
<tr class="am-text-lg">
|
||||||
|
@ -528,7 +531,7 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<span class="am-text-lg">管理</span>
|
<span class="am-text-lg">管理</span>
|
||||||
<span class="am-text-primary budget-plan-detail"><a style="cursor: pointer">资金计划表</a></span>
|
<#--<span class="am-text-primary budget-plan-detail"><a style="cursor: pointer">资金计划表</a></span>-->
|
||||||
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
|
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr class="am-text-lg">
|
<tr class="am-text-lg">
|
||||||
|
@ -576,7 +579,7 @@
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<span class="am-text-lg">现金流量表</span>
|
<span class="am-text-lg">现金流量表</span>
|
||||||
<span class="am-text-primary budget-plan-detail"><a style="cursor: pointer">资金计划表</a></span>
|
<#--<span class="am-text-primary budget-plan-detail"><a style="cursor: pointer">资金计划表</a></span>-->
|
||||||
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
|
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr class="am-text-lg">
|
<tr class="am-text-lg">
|
||||||
|
@ -1377,7 +1380,7 @@
|
||||||
<div class="am-modal am-modal-prompt" style="width: 1200px;max-height:600px;overflow-y:auto;"
|
<div class="am-modal am-modal-prompt" style="width: 1200px;max-height:600px;overflow-y:auto;"
|
||||||
tabindex="-1" id="my-prompt-income-detail">
|
tabindex="-1" id="my-prompt-income-detail">
|
||||||
<div class="am-modal-dialog">
|
<div class="am-modal-dialog">
|
||||||
<div class="am-modal-hd">新增销售收入明细表——${project.name}</div>
|
<div class="am-modal-hd">销售收入明细表——${project.name}</div>
|
||||||
<div class="am-modal-bd">
|
<div class="am-modal-bd">
|
||||||
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;"
|
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;"
|
||||||
id="incomeTable">
|
id="incomeTable">
|
||||||
|
@ -1462,7 +1465,7 @@
|
||||||
<div class="am-modal am-modal-prompt" style="width: 1200px;max-height:600px;overflow-y:auto;"
|
<div class="am-modal am-modal-prompt" style="width: 1200px;max-height:600px;overflow-y:auto;"
|
||||||
tabindex="-1" id="my-prompt-cost-detail">
|
tabindex="-1" id="my-prompt-cost-detail">
|
||||||
<div class="am-modal-dialog">
|
<div class="am-modal-dialog">
|
||||||
<div class="am-modal-hd">新增采购成本明细表——${project.name}</div>
|
<div class="am-modal-hd">采购成本明细表——${project.name}</div>
|
||||||
<div class="am-modal-bd">
|
<div class="am-modal-bd">
|
||||||
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;"
|
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;"
|
||||||
id="costTable">
|
id="costTable">
|
||||||
|
@ -1557,7 +1560,7 @@
|
||||||
<div class="am-modal am-modal-prompt" style="width: 1200px;max-height:600px;overflow-y:auto;"
|
<div class="am-modal am-modal-prompt" style="width: 1200px;max-height:600px;overflow-y:auto;"
|
||||||
tabindex="-1" id="my-prompt-cost-project-manage-detail">
|
tabindex="-1" id="my-prompt-cost-project-manage-detail">
|
||||||
<div class="am-modal-dialog">
|
<div class="am-modal-dialog">
|
||||||
<div class="am-modal-hd">新增项目管理成本明细表——${project.name}</div>
|
<div class="am-modal-hd">项目管理成本明细表——${project.name}</div>
|
||||||
<div class="am-modal-bd">
|
<div class="am-modal-bd">
|
||||||
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;"
|
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;"
|
||||||
id="costProjectManageTable">
|
id="costProjectManageTable">
|
||||||
|
@ -1658,7 +1661,7 @@
|
||||||
<div class="am-modal am-modal-prompt" style="width: 1200px;max-height:600px;overflow-y:auto;"
|
<div class="am-modal am-modal-prompt" style="width: 1200px;max-height:600px;overflow-y:auto;"
|
||||||
tabindex="-1" id="my-prompt-budget-plan-detail">
|
tabindex="-1" id="my-prompt-budget-plan-detail">
|
||||||
<div class="am-modal-dialog">
|
<div class="am-modal-dialog">
|
||||||
<div class="am-modal-hd">新增资金计划明细表——${project.name}</div>
|
<div class="am-modal-hd">资金计划明细表——${project.name}</div>
|
||||||
<div class="am-modal-bd">
|
<div class="am-modal-bd">
|
||||||
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;"
|
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;"
|
||||||
id="budgetPlanDetailTable">
|
id="budgetPlanDetailTable">
|
||||||
|
|
Loading…
Reference in New Issue