fourcal/src/main/resources/templates/admin/project_budget_edit.ftl

557 lines
32 KiB
Plaintext
Raw Normal View History

2021-11-02 06:43:42 +00:00
<#assign base=request.contextPath />
<#import "../common/defaultLayout.ftl" as defaultLayout>
<@defaultLayout.layout>
<style type="text/css">
/**让所有的模态对话框都居中*/
.am-modal.am-modal-prompt.am-modal-active {
transform: translate(-50%, -50%) scale(1);
left: 50%;
top: 50%;
margin-left: 0;
margin-top: 0!important;
}
</style>
2021-11-02 06:43:42 +00:00
<div class="admin-content">
<div class="admin-content-body">
<div class="am-cf am-padding">
<div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">项目概算表</strong> / <small>${project.name}</small></div>
</div>
<form method="post" class="am-form" id="pmsForm" action="${base}/project/budgetEditSave">
<!--选项卡tabsbegin-->
<div class="am-tabs am-margin" data-am-tabs>
<ul class="am-tabs-nav am-nav am-nav-tabs">
<li class="am-active"><a href="#tab1">项目基本信息</a></li>
<li><a href="#tab2">项目详细信息</a></li>
</ul>
<div class="am-tabs-bd">
<div class="am-tab-panel am-fade am-in am-active" id="tab1">
<input name="id" id="id" type="hidden" value="${project.id}" />
<!--验证表单元素validate) begin-->
<div class="am-g am-form-group am-margin-top">
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>部门名称</div>
<div class="am-u-sm-6 am-u-md-6">
<span>${project.deptName}</span>
</div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>
<div class="am-g am-form-group am-margin-top">
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>项目计划开始时间</div>
<div class="am-u-sm-2 am-u-md-2">
<div class="am-form-group am-form-icon">
<i class="am-icon-calendar"></i>
<input type="text" class="am-form-field am-input-sm" id="startDate"
name="startDate" autocomplete="off"
value="${project.startDate}" placeholder="项目计划开始时间"
data-am-datepicker>
</div>
</div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>
<div class="am-g am-form-group am-margin-top">
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>项目计划结束时间</div>
<div class="am-u-sm-2 am-u-md-2">
<div class="am-form-group am-form-icon">
<i class="am-icon-calendar"></i>
<input type="text" class="am-form-field am-input-sm" id="endDate"
name="endDate" autocomplete="off"
value="${project.endDate}" placeholder="项目计划结束时间"
data-am-datepicker>
</div>
</div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>
<div class="am-g am-form-group am-margin-top">
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>项目名称</div>
<div class="am-u-sm-6 am-u-md-6">
<input type="text" class="am-input" data-validate-async data-validation-message="请输入项目名称20字符以内"
name="name" placeholder="请输入项目名称20字符以内" maxlength="20"
value="${project.name}" required readonly/>
</div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>
<div class="am-g am-form-group am-margin-top">
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>项目类型</div>
<div class="am-u-sm-6 am-u-md-6">
<select data-am-selected id="type" name="type" readonly="">
<option value="1" <#if project.type=1>selected</#if>>工程集成类</option>
<option value="2" <#if project.type=2>selected</#if>>设备集成类</option>
<option value="3" <#if project.type=3>selected</#if>>战略合作类</option>
</select>
</div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>
<div class="am-g am-form-group am-margin-top">
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>垫资模式</div>
<div class="am-u-sm-6 am-u-md-6">
2021-11-02 10:46:29 +00:00
<select data-am-selected id="underwrittenMode" name="underwrittenMode" readonly>
2021-11-02 06:43:42 +00:00
<option value="1" <#if project.underwrittenMode=1>selected</#if>>A类-不垫资(战略合作)</option>
<option value="2" <#if project.underwrittenMode=2>selected</#if>>B类-不垫资(背靠背)</option>
<option value="3" <#if project.underwrittenMode=3>selected</#if>>C类-垫资(账期覆盖)</option>
<option value="4" <#if project.underwrittenMode=4>selected</#if>>D类-垫资(账期不覆盖)</option>
</select>
</div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>
<div class="am-g am-form-group am-margin-top">
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>客户名称</div>
<div class="am-u-sm-6 am-u-md-6">
<input type="text" class="am-input" data-validate-async data-validation-message="请输入客户名称20字符以内"
name="customer" placeholder="请输入客户名称20字符以内" maxlength="20"
value="${project.customer}" required readonly/>
</div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>
<div class="am-g am-form-group am-margin-top">
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>终端客户名称</div>
<div class="am-u-sm-6 am-u-md-6">
<input type="text" class="am-input" data-validate-async data-validation-message="请输入终端客户名称20字符以内"
name="terminalCustomer" placeholder="请输入终端客户名称20字符以内" maxlength="20"
value="${project.terminalCustomer}" required readonly/>
</div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>
<div class="am-g am-form-group am-margin-top">
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>垫资利息</div>
<div class="am-u-sm-6 am-u-md-6">
<input type="number" class="am-input" data-validate-async data-validation-message="请输入垫资利息"
name="advanceInterestAmount" placeholder="单位(元)" maxlength="20"
value="${project.advanceInterestAmount}" required />
</div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>
<div class="am-g am-form-group am-margin-top">
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>垫资峰值</div>
<div class="am-u-sm-6 am-u-md-6">
<input type="number" class="am-input" data-validate-async data-validation-message="请输入垫资峰值"
name="advancePeakAmount" placeholder="单位(元)" maxlength="20"
value="${project.advancePeakAmount}" required />
</div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>
<div class="am-g am-form-group am-margin-top">
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>合同金额</div>
<div class="am-u-sm-6 am-u-md-6">
<input type="number" class="am-input" data-validate-async data-validation-message="请输入合同金额"
name="contractAmount" placeholder="单位(元)" maxlength="20"
value="${project.contractAmount}" required />
</div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>
<div class="am-g am-form-group am-margin-top">
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>行业场景应用</div>
<div class="am-u-sm-6 am-u-md-6">
<input type="text" class="am-input" data-validate-async data-validation-message="请输入行业场景应用"
name="industryScenario" placeholder="请输入行业场景应用" maxlength="20"
value="${project.industryScenario}" required readonly/>
</div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>
<div class="am-g am-form-group am-margin-top">
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>华智产品金额</div>
<div class="am-u-sm-6 am-u-md-6">
<input type="number" class="am-input" data-validate-async data-validation-message="华智产品金额"
name="huazhiProductAmount" placeholder="单位(元)" maxlength="20"
value="${project.huazhiProductAmount!}" />
</div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>
<div class="am-g am-form-group am-margin-top">
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>紫光其他产品金额</div>
<div class="am-u-sm-6 am-u-md-6">
<input type="number" class="am-input" data-validate-async data-validation-message="请输入紫光其他产品金额"
name="ziguangOtherAmount" placeholder="单位(元)" maxlength="20"
value="${project.ziguangOtherAmount!}" />
</div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>
<div class="am-g am-form-group am-margin-top">
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>主合同收款条款</div>
<div class="am-u-sm-6 am-u-md-6">
<input type="text" class="am-input" data-validate-async data-validation-message="请输入收款条款"
name="mainContractCollectionTerms" placeholder="请输入收款条款" maxlength="20"
value="${project.mainContractCollectionTerms}" required />
</div>
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>
</div>
<!--验证表单元素validate end-->
</div>
<div class="am-tabs-bd">
<div class="am-tab-panel am-fade am-in" id="tab2">
<span class="am-text-lg">收入</span>
2021-11-02 10:46:29 +00:00
<span class="am-text-primary"><a style="cursor: pointer" id="income-detail">收入明细表</a></span>
2021-11-02 06:43:42 +00:00
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
<tbody>
<tr class="am-text-xl">
<td>类别</td>
<td>费用</td>
<td>含税金额(元)</td>
<td>不含税金额(元)</td>
</tr>
<tr>
<td>收入</td>
<td>设备类</td>
2021-11-02 09:33:34 +00:00
<td><input name="incomeDeviceTaxInclude" value="${budgetBean.incomeDeviceTaxInclude!1}" required readonly></td>
<td><input name="incomeDeviceTaxExclude" value="${budgetBean.incomeDeviceTaxExclude!2}" required readonly></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>收入</td>
<td>工程类</td>
2021-11-02 09:33:34 +00:00
<td><input name="incomeEngineerTaxInclude" value="${budgetBean.incomeEngineerTaxInclude!3}" required readonly></td>
<td><input name="incomeEngineerTaxExclude" value="${budgetBean.incomeEngineerTaxExclude!4}" required readonly></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>收入</td>
<td>服务类</td>
2021-11-02 09:33:34 +00:00
<td><input name="incomeServiceTaxInclude" value="${budgetBean.incomeServiceTaxInclude!5}" required readonly></td>
<td><input name="incomeServiceTaxExclude" value="${budgetBean.incomeServiceTaxExclude!6}" required readonly></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>合计</td>
<td></td>
2021-11-02 09:33:34 +00:00
<td><input name="incomeTotalTaxInclude" value="${budgetBean.incomeTotalTaxInclude!7}" readonly required></td>
<td><input name="incomeTotalTaxExclude" value="${budgetBean.incomeTotalTaxExclude!8}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
</tbody>
</table>
<span class="am-text-lg">成本</span>
2021-11-02 10:46:29 +00:00
<span class="am-text-primary"><a style="cursor: pointer">采购成本明细表</a></span>
<span class="am-text-primary"><a style="cursor: pointer">项目管理成本表</a></span>
2021-11-02 06:43:42 +00:00
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
<tbody>
<tr class="am-text-xl">
<td>类别</td>
<td>费用</td>
<td>费用项目</td>
<td>含税金额(元)</td>
<td>不含税金额(元)</td>
</tr>
<tr>
<td>成本</td>
<td>采购成本</td>
<td>设备</td>
2021-11-02 09:33:34 +00:00
<td><input name="costPurchaseDeviceTaxInclude" value="${budgetBean.costPurchaseDeviceTaxInclude!9}" readonly required></td>
<td><input name="costPurchaseDeviceTaxExclude" value="${budgetBean.costPurchaseDeviceTaxExclude!10}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>成本</td>
<td>采购成本</td>
<td>施工</td>
2021-11-02 09:33:34 +00:00
<td><input name="costPurchaseBuildTaxInclude" value="${budgetBean.costPurchaseBuildTaxInclude!11}" readonly required></td>
<td><input name="costPurchaseBuildTaxExclude" value="${budgetBean.costPurchaseBuildTaxExclude!12}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>成本</td>
<td>采购成本</td>
<td>服务</td>
2021-11-02 09:33:34 +00:00
<td><input name="costPurchaseServiceTaxInclude" value="${budgetBean.costPurchaseServiceTaxInclude!13}" readonly required></td>
<td><input name="costPurchaseServiceTaxExclude" value="${budgetBean.costPurchaseServiceTaxExclude!0}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>成本</td>
<td>采购成本</td>
<td>其他</td>
2021-11-02 09:33:34 +00:00
<td><input name="costPurchaseOtherTaxInclude" value="${budgetBean.costPurchaseOtherTaxInclude!14}" readonly required></td>
<td><input name="costPurchaseOtherTaxExclude" value="${budgetBean.costPurchaseOtherTaxExclude!15}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>成本</td>
<td>项目管理成本</td>
<td>项目管理成本</td>
2021-11-02 09:44:46 +00:00
<td><#--<input name="costProjectManageTaxInclude" value="${budgetBean.costProjectManageTaxInclude!}" readonly required>-->/</td>
2021-11-02 09:33:34 +00:00
<td><input name="costProjectManageTaxExclude" value="${budgetBean.costProjectManageTaxExclude!17}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>成本</td>
<td>其他</td>
<td>其他</td>
2021-11-02 09:33:34 +00:00
<td><input name="costOtherOtherTaxInclude" value="${budgetBean.costOtherOtherTaxInclude!}" required></td>
<td><input name="costOtherOtherTaxExclude" value="${budgetBean.costOtherOtherTaxExclude!}" required></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>合计</td>
<td></td>
<td></td>
2021-11-02 09:33:34 +00:00
<td><input name="costTotalTaxInclude" value="${budgetBean.costTotalTaxInclude!18}" readonly required></td>
<td><input name="costTotalTaxExclude" value="${budgetBean.costTotalTaxExclude!19}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
</tbody>
</table>
<span class="am-text-lg">管理</span>
2021-11-02 10:46:29 +00:00
<span class="am-text-primary"><a style="cursor: pointer">资金计划表</a></span>
2021-11-02 06:43:42 +00:00
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
<tbody>
<tr class="am-text-xl">
<td>类别</td>
<td>费用项目</td>
<td>不含税金额(元)</td>
</tr>
<tr>
<td>财务费用</td>
<td>资金占用成本</td>
2021-11-02 09:33:34 +00:00
<td><input name="costExpropriationTaxExclude" value="${budgetBean.costExpropriationTaxExclude!20}" required readonly></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>公司管理费用</td>
<td></td>
2021-11-02 09:33:34 +00:00
<td><input name="costCompanyManageTaxExclude" value="${budgetBean.costCompanyManageTaxExclude!}" required></td>
2021-11-02 06:43:42 +00:00
</tr>
</tbody>
</table>
<span class="am-text-lg">利润率计算</span>
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
<tbody>
<tr class="am-text-xl">
<td>类别</td>
<td>不含税金额(元)</td>
<td>利润率(%</td>
</tr>
<tr>
<td>项目毛利</td>
2021-11-02 09:33:34 +00:00
<td><input name="projectGrossProfit" value="${budgetBean.projectGrossProfit!21}" readonly required></td>
<td><input name="projectGrossProfitRate" value="${budgetBean.projectGrossProfitRate!22}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>项目贡献利润率</td>
2021-11-02 09:33:34 +00:00
<td><input name="projectContributionProfit" value="${budgetBean.projectContributionProfit!23}" readonly required></td>
<td><input name="projectContributionProfitRate" value="${budgetBean.projectContributionProfitRate!24}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
</tbody>
</table>
<span class="am-text-lg">现金流量表</span>
2021-11-02 10:46:29 +00:00
<span class="am-text-primary"><a style="cursor: pointer">资金计划表</a></span>
2021-11-02 06:43:42 +00:00
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
<tbody>
<tr class="am-text-xl">
<td>类别</td>
<td>金额(元)</td>
</tr>
<tr>
<td>销售商品、提供劳务收到的现金a</td>
2021-11-02 09:33:34 +00:00
<td><input name="" value="${budgetBean.a!0}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>收到的税费返还b</td>
2021-11-02 09:33:34 +00:00
<td><input name="" value="${budgetBean.a!0}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>收到其他与经营活动有关的现金c</td>
2021-11-02 09:33:34 +00:00
<td><input name="" value="${budgetBean.a!0}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>购买商品、接受劳务支付的现d</td>
2021-11-02 09:33:34 +00:00
<td><input name="" value="${budgetBean.a!0}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>支付的各项税费e</td>
2021-11-02 09:33:34 +00:00
<td><input name="" value="${budgetBean.a!0}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>支付其他与经营活动有关的现金f</td>
2021-11-02 09:33:34 +00:00
<td><input name="" value="${budgetBean.a!0}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>经营活动产生的现金流量净额g</td>
2021-11-02 09:33:34 +00:00
<td><input name="" value="${budgetBean.a!0}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>投资活动现金流入h</td>
2021-11-02 09:33:34 +00:00
<td><input name="" value="${budgetBean.a!0}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>投资活动现金流出i</td>
2021-11-02 09:33:34 +00:00
<td><input name="" value="${budgetBean.a!0}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>投资活动产生的现金流量净额j</td>
2021-11-02 09:33:34 +00:00
<td><input name="" value="${budgetBean.a!0}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>融资资金流入k</td>
2021-11-02 09:33:34 +00:00
<td><input name="" value="${budgetBean.a!0}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>还款资金流出l</td>
2021-11-02 09:33:34 +00:00
<td><input name="" value="${budgetBean.a!0}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>筹资活动产生的现金流量净额m</td>
2021-11-02 09:33:34 +00:00
<td><input name="" value="${budgetBean.a!0}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
<tr>
<td>货币资金净增加额n</td>
2021-11-02 09:33:34 +00:00
<td><input name="" value="${budgetBean.a!0}" readonly required></td>
2021-11-02 06:43:42 +00:00
</tr>
</tbody>
</table>
</div>
<!--验证表单元素validate end-->
</div>
</div>
</div>
2021-11-02 10:46:29 +00:00
<div class="am-modal am-modal-prompt" style="width: 1200px;max-height:600px;overflow-y:auto;" tabindex="-1" id="my-prompt-income-detail">
2021-11-02 10:46:29 +00:00
<div class="am-modal-dialog">
<div class="am-modal-hd">新增销售收入明细表——${project.name}</div>
<div class="am-modal-bd">
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;" id="incomeTable">
2021-11-02 10:46:29 +00:00
<tbody>
<tr>
2021-11-02 10:46:29 +00:00
<td>类别</td>
<td>名称</td>
<td>单位</td>
<td>数量</td>
<td>单价</td>
<td>税率(%</td>
<td>含税总金额(元)</td>
<td>不含税金额(元)</td>
<td>操作</td>
2021-11-02 10:46:29 +00:00
</tr>
<#if incomeDetails??>
<#list incomeDetails as incomeDetail>
<tr>
<td>
<select style="width: auto" class="am-modal-prompt-input am-modal-prompt-input-income">
<option value="1" <#if incomeDetail.type == 1>selected</#if>>设备类</option>
<option value="2" <#if incomeDetail.type == 2>selected</#if>>工程类</option>
<option value="3" <#if incomeDetail.type == 3>selected</#if>>服务类</option>
</select>
</td>
<td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-income" value="${incomeDetail.name!}"></td>
<td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-income" value="${incomeDetail.unit!}"></td>
<td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-income input-changeable-amount" value="${incomeDetail.amount!}"></td>
<td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-income input-changeable-price" value="${incomeDetail.price!}"></td>
<td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-income input-changeable-tax-rate" value="${incomeDetail.taxRate!}"></td>
<td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-income input-changeable-total-tax-include" value="${incomeDetail.totalTaxInclude!}" readonly></td>
<td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-income input-changeable-total-tax-exclude" value="${incomeDetail.totalTaxExclude!}" readonly></td>
<td><button type="button" class="am-btn am-btn-warning am-btn-xs am-modal-line-delete">删除</button></td>
</tr>
</#list>
</#if>
<#--<tr>
2021-11-02 10:46:29 +00:00
<td>
<select data-am-selected class="am-modal-prompt-input">
2021-11-02 10:46:29 +00:00
<option value="1">设备类</option>
<option value="2">工程类</option>
<option value="3">服务类</option>
</select>
</td>
<td><input type="text" class="am-modal-prompt-input"></td>
<td><input type="text" class="am-modal-prompt-input"></td>
<td><input type="text" class="am-modal-prompt-input"></td>
<td><input type="text" class="am-modal-prompt-input"></td>
<td><input type="text" class="am-modal-prompt-input"></td>
<td><input type="text" class="am-modal-prompt-input" readonly></td>
<td><input type="text" class="am-modal-prompt-input" readonly></td>
</tr>-->
2021-11-02 10:46:29 +00:00
</tbody>
</table>
<button type="button" id="incomeAddBtn" class="am-btn am-btn-primary am-btn-xs">添加一行</button>
2021-11-02 10:46:29 +00:00
</div>
<div class="am-modal-footer">
<span class="am-modal-btn" data-am-modal-cancel>取消</span>
<span class="am-modal-btn" data-am-modal-confirm>保存</span>
2021-11-02 10:46:29 +00:00
</div>
</div>
</div>
2021-11-02 06:43:42 +00:00
<!--选项卡tabsend-->
<div class="am-margin">
<button type="button" class="am-btn am-btn-warning am-btn-xs" onclick="javascript:history.go(-1);">返回上一级</button>
<button type="submit" class="am-btn am-btn-primary am-btn-xs" id="saveDraft">保存草稿</button>
<button type="submit" class="am-btn am-btn-primary am-btn-xs" id="saveApprove">提交审核</button>
</div>
</form>
</div>
</div>
<script src="${base}/assets/js/project_budget.js"></script>
<script>
$(function () {
$("#saveDraft").click(function () {
$("#pmsForm").attr("action","${base}/project/budgetEditSave");
$("#pmsForm").submit();
});
$("#saveApprove").click(function () {
$("#pmsForm").attr("action","${base}/project/budgetEditSaveAndApprove");
$("#pmsForm").submit();
});
2021-11-02 10:46:29 +00:00
$("#income-detail").click(function () {
$('#my-prompt-income-detail').modal({
relatedTarget: this,
onConfirm: function(e) {
//不能使用e.data因为无法获取动态添加的
var data = collectIncomeData("am-modal-prompt-input-income");
saveIncome("${base}/project/budgetEditSaveIncomeDetail", data, $("#id").val());
2021-11-02 10:46:29 +00:00
},
onCancel: function(e) {
}
});
});
$("#incomeAddBtn").click(function () {
var template = '<tr>\n' +
' <td>\n' +
' <select style="width: auto" class="am-modal-prompt-input am-modal-prompt-input-income">\n' +
' <option value="1">设备类</option>\n' +
' <option value="2">工程类</option>\n' +
' <option value="3">服务类</option>\n' +
' </select>\n' +
' </td>\n' +
' <td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-income"></td>\n' +
' <td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-income"></td>\n' +
' <td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-income input-changeable-amount"></td>\n' +
' <td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-income input-changeable-price"></td>\n' +
' <td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-income input-changeable-tax-rate"></td>\n' +
' <td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-income input-changeable-total-tax-include" readonly></td>\n' +
' <td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-income input-changeable-total-tax-exclude" readonly></td>\n' +
' <td><button type="button" class="am-btn am-btn-warning am-btn-xs am-modal-line-delete">删除</button></td>\n' +
' </tr>';
$("#incomeTable").append(template);
bindDeleteBtn();
bindIncomeChangeableInput();
});
bindDeleteBtn();
bindIncomeChangeableInput();
2021-11-02 06:43:42 +00:00
});
</script>
</@defaultLayout.layout>