弹窗输入

master
xxssyyyyssxx 2021-11-02 18:46:29 +08:00
parent 57f5401fb9
commit 378ef3e760
2 changed files with 95 additions and 6 deletions

View File

@ -160,6 +160,15 @@ public class ProjectController extends BaseController{
projectService.budgetEditSave(project, budgetBean, InterfaceUtil.getAdmin(), ApproveStatusEnum.APPROVAL_UNCOMMIT);
return "redirect:/project/list";
}
/**
*
*/
@RequestMapping("/budgetEditSaveAndApprove")
public String budgetEditSaveAndApprove(Project project, BudgetBean budgetBean,
Map<String, Object> model) {
projectService.budgetEditSave(project, budgetBean, InterfaceUtil.getAdmin(), ApproveStatusEnum.APPROVAL_PENDING);
return "redirect:/project/list";
}
/**
*

View File

@ -81,7 +81,7 @@
<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="underwrittenMode" name="underwrittenMode" readonly="">
<select data-am-selected id="underwrittenMode" name="underwrittenMode" readonly>
<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>
@ -179,7 +179,7 @@
<div class="am-tabs-bd">
<div class="am-tab-panel am-fade am-in" id="tab2">
<span class="am-text-lg">收入</span>
<span class="am-text-primary"><a>收入明细表</a></span>
<span class="am-text-primary"><a style="cursor: pointer" id="income-detail">收入明细表</a></span>
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
<tbody>
<tr class="am-text-xl">
@ -215,8 +215,8 @@
</tbody>
</table>
<span class="am-text-lg">成本</span>
<span class="am-text-primary"><a>采购成本明细表</a></span>
<span class="am-text-primary"><a>项目管理成本表</a></span>
<span class="am-text-primary"><a style="cursor: pointer">采购成本明细表</a></span>
<span class="am-text-primary"><a style="cursor: pointer">项目管理成本表</a></span>
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
<tbody>
<tr class="am-text-xl">
@ -278,7 +278,7 @@
</tbody>
</table>
<span class="am-text-lg">管理</span>
<span class="am-text-primary"><a>资金计划表</a></span>
<span class="am-text-primary"><a style="cursor: pointer">资金计划表</a></span>
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
<tbody>
<tr class="am-text-xl">
@ -321,7 +321,7 @@
</table>
<span class="am-text-lg">现金流量表</span>
<span class="am-text-primary"><a>资金计划表</a></span>
<span class="am-text-primary"><a style="cursor: pointer">资金计划表</a></span>
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
<tbody>
<tr class="am-text-xl">
@ -391,6 +391,74 @@
</div>
</div>
</div>
<div class="am-modal am-modal-prompt" style="width: 1000px;" tabindex="-1" id="my-prompt-income-detail">
<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;">
<tbody>
<tr class="am-text-xl">
<td>类别</td>
<td>名称</td>
<td>单位</td>
<td>数量</td>
<td>单价</td>
<td>税率(%</td>
<td>含税总金额(元)</td>
<td>不含税金额(元)</td>
</tr>
<tr>
<td>
<select data-am-selected>
<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>
<tr>
<td>
<select data-am-selected>
<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>
<tr>
<td></td>
</tr>
</tbody>
</table>
</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>
</div>
</div>
</div>
<!--选项卡tabsend-->
<div class="am-margin">
<button type="button" class="am-btn am-btn-warning am-btn-xs" onclick="javascript:history.go(-1);">返回上一级</button>
@ -412,6 +480,18 @@
$("#pmsForm").attr("action","${base}/project/budgetEditSaveAndApprove");
$("#pmsForm").submit();
});
$("#income-detail").click(function () {
$('#my-prompt-income-detail').modal({
relatedTarget: this,
onConfirm: function(e) {
console.log(e);
alert('你输入的是:' + e.data || '')
},
onCancel: function(e) {
}
});
});
});
</script>
</@defaultLayout.layout>