|
@@ -19,47 +19,55 @@
|
|
|
});
|
|
|
|
|
|
function getSelectedItem() {
|
|
|
+ var ss= document.getElementById("iframe").contentWindow.document.getElementById("opinion").value
|
|
|
+ $("#reimburseRemarks").val(ss);
|
|
|
//获取意见栏信息
|
|
|
- var reimburseRemarks = $("#reimburseRemarks").val();
|
|
|
- if(reimburseRemarks == undefined || reimburseRemarks == null || reimburseRemarks == ''){
|
|
|
- top.layer.msg("请输入审核意见")
|
|
|
- }
|
|
|
- return "0" + "_item_" + reimburseRemarks;
|
|
|
+ var reimburseRemarks = $("#reimburseRemarks").val();
|
|
|
+ if(reimburseRemarks == undefined || reimburseRemarks == null || reimburseRemarks == ''){
|
|
|
+ top.layer.msg("请输入审核意见")
|
|
|
+ }
|
|
|
+ return "0" + "_item_" + reimburseRemarks;
|
|
|
}
|
|
|
</script>
|
|
|
</head>
|
|
|
<body>
|
|
|
-<div class="wrapper wrapper-content">
|
|
|
+<div class="single-form">
|
|
|
<div class="layui-row">
|
|
|
<div class="full-width fl">
|
|
|
<div class="layui-row">
|
|
|
+ <div class="form-group-label">
|
|
|
+ <div style="float: right"> <a href="javascript:void(0)" style='background-color: #FFB800' onclick="openDialogre('添加模板', '${ctx}/auditTemplate/auditTemplate/toSave?identification=${identification}','80%', '50%','','添加,关闭')" class="nav-btn layui-btn layui-btn-sm" ><i class="fa fa-file-excel-o"></i> 添加审核意见模板</a></div>
|
|
|
+ <h2>审核意见</h2>
|
|
|
+ </div>
|
|
|
+ <iframe id="iframe" src="${ctx}/auditTemplate/auditTemplate/iframeView?identification=${identification}" name="listresult" frameborder="0" align="left" width="100%" height="300" scrolling="value">${auditOpinion}</iframe>
|
|
|
<form:form id="searchForm" modelAttribute="projectReportData" action="" method="post" class="layui-form">
|
|
|
<div class="commonQuery">
|
|
|
- <div class="layui-item layui-col-sm12 lw7 with-textarea">
|
|
|
- <label class="layui-form-label double-line"><span class="require-item">*</span>审核意见:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <div class="layui-item layui-col-sm6 lw7 with-textarea">
|
|
|
- <div class="layui-input-block" style="margin-left:0px;position: relative">
|
|
|
- <textarea placeholder="请输入审核意见:" id="reimburseRemarks" name="reimburseRemarks" style="width: 100%" rows="10" class="form-control required" maxlength="500">${auditOpinion}</textarea>
|
|
|
- <a id="clearOpinon" class="layui-btn" style="position: absolute;bottom: 10px;right: 20px;">清空</a>
|
|
|
- <input type="file" name="upload_files" style="display: none;">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm4 lw6 with-textarea">
|
|
|
- <div class="layui-input-block" style="margin-left:10px;">
|
|
|
- <div style="padding: 5px 0px;"><input type="checkbox" lay-filter="raopinion" name="sh" value="同意" title="同意" style="cursor:pointer" class="apen"/></div>
|
|
|
- <div style="padding: 5px 0px;"><input type="checkbox" lay-filter="raopinion" name="sh" value="不同意" title="不同意" style="cursor:pointer" class="apen"/></div>
|
|
|
- <div style="padding: 5px 0px;"><input type="checkbox" lay-filter="raopinion" name="sh" value="请领导审核" title="请领导审核" style="cursor:pointer" class="apen"/></div>
|
|
|
- <div style="padding: 5px 0px;">
|
|
|
- <form:select path="consultantRemarks" id="auditOpinion" lay-filter="zixunOpinion" lay-verify="zixunOpinion" class="form-control simple-select">
|
|
|
- <form:option value=""/>
|
|
|
- <form:options items="${fns:getMainDictListOnProjectAdvent('consultant_comments')}" itemLabel="label" itemValue="label" htmlEscape="false"/>
|
|
|
- </form:select>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <input type="hidden" id="reimburseRemarks" name="reimburseRemarks" value="${auditOpinion}" maxlength="250">
|
|
|
+<%-- <div class="layui-item layui-col-sm12 lw7 with-textarea">--%>
|
|
|
+ <%-- <label class="layui-form-label double-line"><span class="require-item">*</span>审核意见:</label>--%>
|
|
|
+ <%-- <div class="layui-input-block">--%>
|
|
|
+ <%-- <div class="layui-item layui-col-sm6 lw7 with-textarea">--%>
|
|
|
+ <%-- <div class="layui-input-block" style="margin-left:0px;position: relative">--%>
|
|
|
+ <%-- <textarea placeholder="请输入审核意见:" id="reimburseRemarks" name="reimburseRemarks" style="width: 100%" rows="10" class="form-control required" maxlength="500">${auditOpinion}</textarea>--%>
|
|
|
+ <%-- <a id="clearOpinon" class="layui-btn" style="position: absolute;bottom: 10px;right: 20px;">清空</a>--%>
|
|
|
+ <%-- <input type="file" name="upload_files" style="display: none;">--%>
|
|
|
+ <%-- </div>--%>
|
|
|
+ <%-- </div>--%>
|
|
|
+ <%-- <div class="layui-item layui-col-sm4 lw6 with-textarea">--%>
|
|
|
+ <%-- <div class="layui-input-block" style="margin-left:10px;">--%>
|
|
|
+ <%-- <div style="padding: 5px 0px;"><input type="checkbox" lay-filter="raopinion" name="sh" value="同意" title="同意" style="cursor:pointer" class="apen"/></div>--%>
|
|
|
+ <%-- <div style="padding: 5px 0px;"><input type="checkbox" lay-filter="raopinion" name="sh" value="不同意" title="不同意" style="cursor:pointer" class="apen"/></div>--%>
|
|
|
+ <%-- <div style="padding: 5px 0px;"><input type="checkbox" lay-filter="raopinion" name="sh" value="请领导审核" title="请领导审核" style="cursor:pointer" class="apen"/></div>--%>
|
|
|
+ <%-- <div style="padding: 5px 0px;">--%>
|
|
|
+ <%-- <form:select path="consultantRemarks" id="auditOpinion" lay-filter="zixunOpinion" lay-verify="zixunOpinion" class="form-control simple-select">--%>
|
|
|
+ <%-- <form:option value=""/>--%>
|
|
|
+ <%-- <form:options items="${fns:getMainDictListOnProjectAdvent('consultant_comments')}" itemLabel="label" itemValue="label" htmlEscape="false"/>--%>
|
|
|
+ <%-- </form:select>--%>
|
|
|
+ <%-- </div>--%>
|
|
|
+ <%-- </div>--%>
|
|
|
+ <%-- </div>--%>
|
|
|
+ <%-- </div>--%>
|
|
|
+ <%-- </div>--%>
|
|
|
</div>
|
|
|
</form:form>
|
|
|
</div>
|
|
@@ -67,58 +75,98 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<script>
|
|
|
- $(document).ready(function() {
|
|
|
- $("#clearOpinon").click(function(){
|
|
|
- var s=$("input[name='sh']").length;
|
|
|
- for(var i=0;i<s;i++){
|
|
|
- $("input[name='sh']").attr("checked",false)
|
|
|
- layui.form.render();
|
|
|
- }
|
|
|
- $("#reimburseRemarks").val("");
|
|
|
- })
|
|
|
- $("#clearOpinons").click(function(){
|
|
|
- var s=$("input[name='shs']").length;
|
|
|
- for(var i=0;i<s;i++){
|
|
|
- $("input[name='shs']").attr("checked",false)
|
|
|
- layui.form.render();
|
|
|
- }
|
|
|
- $("#fuzerenOpinion").val("");
|
|
|
- })
|
|
|
- layui.use(['form', 'layer'], function () {
|
|
|
- var form = layui.form;
|
|
|
- //下拉框监听器
|
|
|
- layui.form.on('select(zixunOpinion)', function(data){
|
|
|
- var span=data.value;
|
|
|
- if(span!=""){
|
|
|
- var opinion=$("#reimburseRemarks").val()+span+";"
|
|
|
- $("#reimburseRemarks").val(opinion);
|
|
|
- }
|
|
|
- });
|
|
|
- layui.form.on('checkbox(raopinion)', function(data){
|
|
|
- var span=data.value;
|
|
|
- if(span!=""){
|
|
|
- $(this).attr("checked",false)
|
|
|
- var opinion=$("#reimburseRemarks").val()+span+";"
|
|
|
- $("#reimburseRemarks").val(opinion);
|
|
|
- }
|
|
|
- });
|
|
|
- layui.form.on('select(fuzerenOpinion)', function(data){
|
|
|
- var span=data.value;
|
|
|
- if(span!=""){
|
|
|
- var opinion=$("#fuzerenOpinion").val()+span+";"
|
|
|
- $("#fuzerenOpinion").val(opinion);
|
|
|
+ // $(document).ready(function() {
|
|
|
+ // $("#clearOpinon").click(function(){
|
|
|
+ // var s=$("input[name='sh']").length;
|
|
|
+ // for(var i=0;i<s;i++){
|
|
|
+ // $("input[name='sh']").attr("checked",false)
|
|
|
+ // layui.form.render();
|
|
|
+ // }
|
|
|
+ // $("#reimburseRemarks").val("");
|
|
|
+ // })
|
|
|
+ // $("#clearOpinons").click(function(){
|
|
|
+ // var s=$("input[name='shs']").length;
|
|
|
+ // for(var i=0;i<s;i++){
|
|
|
+ // $("input[name='shs']").attr("checked",false)
|
|
|
+ // layui.form.render();
|
|
|
+ // }
|
|
|
+ // $("#fuzerenOpinion").val("");
|
|
|
+ // })
|
|
|
+ // layui.use(['form', 'layer'], function () {
|
|
|
+ // var form = layui.form;
|
|
|
+ // //下拉框监听器
|
|
|
+ // layui.form.on('select(zixunOpinion)', function(data){
|
|
|
+ // var span=data.value;
|
|
|
+ // if(span!=""){
|
|
|
+ // var opinion=$("#reimburseRemarks").val()+span+";"
|
|
|
+ // $("#reimburseRemarks").val(opinion);
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // layui.form.on('checkbox(raopinion)', function(data){
|
|
|
+ // var span=data.value;
|
|
|
+ // if(span!=""){
|
|
|
+ // $(this).attr("checked",false)
|
|
|
+ // var opinion=$("#reimburseRemarks").val()+span+";"
|
|
|
+ // $("#reimburseRemarks").val(opinion);
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // layui.form.on('select(fuzerenOpinion)', function(data){
|
|
|
+ // var span=data.value;
|
|
|
+ // if(span!=""){
|
|
|
+ // var opinion=$("#fuzerenOpinion").val()+span+";"
|
|
|
+ // $("#fuzerenOpinion").val(opinion);
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // layui.form.on('checkbox(raopinions)', function(data){
|
|
|
+ // var span=data.value;
|
|
|
+ // if(span!=""){
|
|
|
+ // $(this).attr("checked",false)
|
|
|
+ // var opinion=$("#fuzerenOpinion").val()+span+";"
|
|
|
+ // $("#fuzerenOpinion").val(opinion);
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // });
|
|
|
+ // })
|
|
|
+ function f1(row) {
|
|
|
+ // window.parent.document.getElementById('opinion').value = row;
|
|
|
+ $("#opinion").val(row)
|
|
|
+ }
|
|
|
+ function openDialogre(title,url,width,height,target,buttons) {
|
|
|
+ if (navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)) {//如果是移动端,就使用自适应大小弹窗
|
|
|
+ width = 'auto';
|
|
|
+ height = 'auto';
|
|
|
+ } else {//如果是PC端,根据用户设置的width和height显示。
|
|
|
+ }
|
|
|
+ var split = buttons.split(",");
|
|
|
+ top.layer.open({
|
|
|
+ type: 2,
|
|
|
+ area: [width, height],
|
|
|
+ title: title,
|
|
|
+ maxmin: true, //开启最大化最小化按钮
|
|
|
+ skin: 'three-btns',
|
|
|
+ content: url,
|
|
|
+ btn: split,
|
|
|
+ btn1: function(index, layero){
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
+ var inputForm = body.find('#inputForm');
|
|
|
+ var top_iframe;
|
|
|
+ if(target){
|
|
|
+ top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
+ }else{
|
|
|
+ top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
}
|
|
|
- });
|
|
|
- layui.form.on('checkbox(raopinions)', function(data){
|
|
|
- var span=data.value;
|
|
|
- if(span!=""){
|
|
|
- $(this).attr("checked",false)
|
|
|
- var opinion=$("#fuzerenOpinion").val()+span+";"
|
|
|
- $("#fuzerenOpinion").val(opinion);
|
|
|
+ inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
+ if(iframeWin.contentWindow.doSubmit(1) ){
|
|
|
+ // top.layer.close(index);//关闭对话框。
|
|
|
+ setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
|
|
|
+ setTimeout(function(){top.layer.close(document.getElementById('iframe').contentWindow.location.reload())}, 100);
|
|
|
}
|
|
|
- });
|
|
|
+ },
|
|
|
+ btn2:function(index){
|
|
|
+ }
|
|
|
});
|
|
|
- })
|
|
|
+ }
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|