| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749 |
- <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <!-- by qianqw 20150317 -->
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <!-- end -->
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>新增付款申请</title>
- <link href="${pageContext.request.contextPath }/main.css" rel="stylesheet" type="text/css" />
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/file.js"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
- <script src="/shares/xheditor/xheditor-1.1.14/xheditor-1.1.14-zh-cn.min.js" type="text/javascript" ></script>
- <!-- 选择窗口需要加载的js文件 start-->
- <script src="${pageContext.request.contextPath}/liger/lib/json2.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
- <!-- -->
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerTextBox.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerSpinner.js" type="text/javascript"></script>
- <script type="text/javascript" src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js"></script>
- <script type="text/javascript" src="/shares/datePicker/WdatePicker.js"></script>
- <!-- 选择银行账户js文件 -->
- <script type="text/javascript" src="/shares/js/yw/fm/common/chooseAccount.js"></script>
- <script type="text/javascript" src="/shares/js/yw/fm/common/chooseReturnMoney.js"></script>
- <script type="text/javascript" src="/shares/js/yw/fm/common/chooseProject.js"></script>
- <!-- 选择开支类别 -->
- <script type="text/javascript" src="/shares/js/yw/fm/incomestatement/chooseSubjectTree.js"></script>
- <script type="text/javascript">
- var subject="pay_grid";
- var _money=0; //用于存储付款结余金额,0代表没有选择项目或者手动直接输项目
- var payment_list;
- $(function(){
- var tabid="${tabid}";
- $("#tabid").val(stripscriptback(tabid));
- $("#is_spare").click(function(){
- var flag=$(this).attr("checked");
- if(flag){//显示备用金
- $("#spare_money_id_select").show();
- $("#spare_money_id_link").show();
- }else{
- $("#spare_money_id_select").hide();
- $("#spare_money_id_link").hide();
- }
- });
-
- if("${paymenttype}"=="2"){
- var jsonobj="${payment_json}";
- payment_list=eval("("+jsonobj+")");
- f_initPayGrid();
- f_initPurchaseGrid();
- var project_name="${project_name}";
- if(project_name !=null && project_name !=""){
- // $("tr[id^='project_relation']").show();
- var project_id="${project_id}";
- if(project_id !=null && project_id !=""){
- $.ajax({
- url:"fmChooseProjectAction.do?method=getProjectMoney&project_id=${project_id}&time="+new Date().getTime(),
- type:"post",
- dataType:"json",
- success:function(data){
- var obj=data[0];
- call_project("${project_id}",obj.subtotal,obj.petty_cash);
- }
- });
- }
-
- }
- }else{
- f_initToGrid();
- }
-
- });
- var pay_grid=null;
- function f_initToGrid() {
- var columns=[
- { display: '摘要', name: 'digest', type: 'text',isSort: false,width:200,editor: { type: 'text' },
- totalSummary:
- {
- type: 'sum',
- render: function (e) {
- return "<div>" + ' 合计' + "</div>";
- }
- }},
- { display: '开支类别Id', name: 'subject_id',width:2, align: 'center',isSort:false,hide:true},
- { display: '开支类别',
- name: 'subject_name',
- align: 'center',
- width:150,
- editor: { type: 'select',
- ext : function (rowdata){
- var _subject_type="";
- if("${expendType}"=="1"){//付款申请
- _subject_type="BD_FKSQ";
- }else if("${expendType}"=="2"){//费用报销申请
- _subject_type="BD_FYBX";
- }else if("${expendType}"=="3"){//备用金申请
- _subject_type="BD_BYJSQ";
- }else if("${expendType}"=="4"){//其它往来付款
- _subject_type="BD_QTWLFK";
- }
- return {
- onBeforeOpen: chooseSubjectTree({grid_id : "pay_grid",subject_id : "subject_id",subject_name : "subject_name",subject_type:_subject_type})
- };
- }
- }
- },
- { display: '附单据(张)', name: 'invoice', type: 'int',isSort: false,width:150,editor:{type:"int"},
- totalSummary:
- {
- type: 'sum',
- render: function (e) {
- var sum = parseFloat(e.sum);
- return "<div>" + formatnumber(sum,0) + "</div>";
- }
- }
- },
- { display: '金额(¥)', name: 'item_money', type: 'float',isSort: false,width:200,editor: { type: 'float' },
- totalSummary:
- {
- type: 'sum',
- render: function (e) {
- var sum = parseFloat(e.sum);
- return "<div>" + formatnumber(sum,2) + "</div>";
- }
- }
- },
- { display: '备注', name: 'remark', type: 'text',isSort: false,width:200,editor: { type: 'text' }}
- ];
- columns.push({ display: '操作', width:150,render:function(item,rowindex){
- var h="";
- h += "<a href='javascript:cancelEdit(" + rowindex + ")'>删除</a> ";
- return h;
- }});
- pay_grid = $("#pay_grid").ligerGrid({
- columns:columns ,
- data:{Rows:[]},
- usePager: false,
- enabledEdit: true,
- clickToEdit:false,
- rownumbers:true,
- clickToEdit:true,
- rowDraggable:true,
- width :'99%',
- height : '260'
- });
- }
-
- function f_initPayGrid() {
- var columns=[
- { display: '摘要', name: 'digest', type: 'text',isSort: false,width:200,editor: { type: 'text' }
- },
- { display: '开支类别Id', name: 'subject_id',width:2, align: 'center',isSort:false,hide:true},
- { display: '开支类别',
- name: 'subject_name',
- align: 'center',
- width:150,
- editor: { type: 'select',
- ext : function (rowdata){
- var _subject_type="";
- _subject_type="BD_FKSQ";
- return {
- onBeforeOpen: chooseSubjectTree({grid_id : "pay_grid",subject_id : "subject_id",subject_name : "subject_name",subject_type:_subject_type})
- };
- }
- }
- },
- { display: '附单据(张)', name: 'invoice', type: 'int',isSort: false,width:150,editor:{type:"int"}
- },
- { display: '金额(¥)', name: 'item_money', type: 'float',isSort: false,width:200},
- { display: '备注', name: 'remark', type: 'text',isSort: false,width:200,editor: { type: 'text' }}
- ];
- columns.push({ display: '操作', width:150,render:function(item,rowindex){
- var h="";
- h += "<a href='javascript:open_pay()'>采购清单</a> ";
- return h;
- }});
- pay_grid = $("#pay_grid").ligerGrid({
- columns:columns ,
- data:{Rows:[{'digest':'','subject_id':'','subject_name':'','invoice':'0','item_money':'${payment_money}','remark':''}]},
- usePager: false,
- enabledEdit: true,
- clickToEdit:false,
- rownumbers:true,
- clickToEdit:true,
- rowDraggable:true,
- width :'99%',
- height : '260'
- });
- }
- function cancelEdit(rowid) {
- var row=pay_grid.getRow(rowid);
- row.item_money="0";
- pay_grid.deleteRow(rowid);
- }
- function addRow(){
- pay_grid.addRow({
- digest:"",
- subject_id:"",
- subject_name:"",invoice:"0",item_money:"0",remark:""
- });
- }
- function submitForm(){
- pay_grid.endEdit();
- if(checkForm()){
- var detail_data=JSON.stringify(pay_grid.getData());
-
- if(detail_data=="[]"){ //任务状态为发起时,考核组要必选
- $.ligerDialog.warn('请选择付款申请详细信息!');
- return ;
- }
- var msg="";
- var total_money=0;
- var expend_surplusr_money = $("#expend_surplusr_money").val();
- $.each(pay_grid.getData(),function(index,obj){
- var subject_id=obj.subject_id;
- var invoice=obj.invoice;
- var item_money=obj.item_money;
- var html="第"+(parseInt(index)+1)+"行:";
- var content="";
- if((subject_id==null || subject_id=="") && subject_id !="0"){
- content+="开支类别不能为空;";
- }
- if((invoice==null || invoice=="" ) && invoice !="0"){
- content+="附单据不能为空;";
- }
- if((item_money==null || item_money=="") && item_money !="0"){
- content+="金额不能为空;";
- }else{
- total_money=total_money+parseFloat(item_money);
- }
- //by qianqw 20150318
- if(eval(expend_surplusr_money - item_money) < 0){
- content+="申请金额不能大于结余金额;";
- }
- //end
- if(content !=""){
- html +=content;
- msg +=html+"<br/>";
- }
- });
- if(msg !=""){
- $.ligerDialog.error(msg);
- return ;
- }
- var is_spare=$("#is_spare").attr("checked");
- if(is_spare){
- var spare_money_number=$("#spare_money_number").val();
- if(spare_money_number==null || spare_money_number==""){
- $.ligerDialog.error("请选择备用金单号");
- return ;
- }
- }
- if("${project_id}" !=""){
- if(total_money>_money){
- $.ligerDialog.error("合计金额不得大于结余金额!");
- return ;
- }
- }
- if("${expendType}"==1 || "${expendType}"==4){
- do_file();
- }
- if("${paymenttype}"=="2"){
- var purchase_data=JSON.stringify(purchase_grid.getData());
- $("#purchase_data").val(purchase_data);
- }
- $("#detail_data").val(detail_data);
- formJs(submitAddPayment);
- }
- }
- function submitAddPayment(){
- $("#addPayment").submit();
- }
- function checkForm() {
- var rs=true;
- rs = $.validate({
- name : "receipt_account",
- model : [ {
- type : "require",
- msg : "收款户名不能为空!"
- }]
- }) && rs;
- if (rs) {
- return true;
- }
- return false;
- }
-
- function do_file(){
- var files="";
- $.each($("[name=files]"),function(i,obj){
- if(files==""){
- files=$(obj).val();
- }else{
- files +=","+$(obj).val();
- }
- });
- $("#doc_ids").val(files);
- }
-
- function call_project(project_id,subtotal,petty_cash){
- var total_money=0; //项目预算总金额或备用金总金额
- if("${expendType}"=="1" || "${expendType}"=="2"){//付款申请
- total_money=subtotal;
- }else if("${expendType}"=="3"){//备用金
- total_money=petty_cash;
- }
- if(project_id ==null || project_id==""){
- $("tr[id^='project_relation']").hide();
- $("#project_amount_value").html("");
- $("#alreay_expend_money_value").html("");
- $("#expend_surplusr_money_value").html("");
- $("#alreay_expend_money").val("");
- $("#expend_surplusr_money").val("");
- $("#spare_money_id").val("");
- $("#spare_money").val("");
- $("#spare_money_number").val("");
-
- if("${expendType}"==1 || "${expendType}"==2){
- $("#is_spare_tr").hide();
- }
- _money=0;
- return ;
- }
- $.ajax({
- type:"post",
- url:"expenditureStatementAction.do?task=query_project_money&expendType=${expendType}&project_id="+project_id+"&time="+new Date().getTime(),
- dataType:"json",
- success:function(data){
- $("tr[id^='project_relation']").show(); //项目付款信息
- var alreay_expend_money=0; //已支出金额
- if(data[0].total_money ){
- alreay_expend_money=parseInt(data[0].total_money); //已支出金额
- }
- var expend_surplusr_money=total_money-alreay_expend_money; //未支出金额
- _money=expend_surplusr_money;
- $("#project_amount_value").html(total_money);
- $("#alreay_expend_money_value").html(alreay_expend_money);
- $("#expend_surplusr_money_value").html(expend_surplusr_money);
- $("#alreay_expend_money").val(alreay_expend_money);
- $("#expend_surplusr_money").val(expend_surplusr_money);
- $("#spare_money_id").val("");
- $("#spare_money").val("");
- $("#spare_money_number").val("");
-
- if("${expendType}"==1 || "${expendType}"==2){
- $("#is_spare_tr").show();
- }
- },
- error:function(){
- $.ligerDialog.error("网络异常,请联系管理理员!");
- }
- });
- }
-
- /**
- * js过滤特殊字符
- * @param s
- * @returns {String}
- */
- function stripscriptback(s) {
- var pattern = new RegExp("[_]");
- var rs = "";
- for (var i = 0; i < s.length; i++) {
- rs = rs + s.substr(i, 1).replace(pattern, '&');
- }
- return rs;
- }
- //格式化小数点
- function formatnumber(value, num) {
- var a, b, c, i;
- a = value.toString();
- b = a.indexOf(".");
- c = a.length;
- if (num == 0) {
- if (b != -1) {
- a = a.substring(0, b);
- }
- } else {// 如果没有小数点
- if (b == -1) {
- a = a + ".";
- for (i = 1; i <= num; i++) {
- a = a + "0";
- }
- } else {// 有小数点,超出位数自动截取,否则补0
- a = a.substring(0, b + num + 1);
- for (i = c; i <= b + num; i++) {
- a = a + "0";
- }
- }
- }
- return a;
- }
- function openSpare(){
- var project_id=$("#project_id").val();
- if(project_id =="" || project_id==null){
- $.ligerDialog.warn("请先选择项目!");
- return ;
- }
- var url="${pageContext.request.contextPath}/expenditureStatementAction.do?task=toChooseStatement&expendType=3&project_id="+project_id+"&spare_where=alllist";
- openODialog(url,"查看备用金历史记录");
- }
-
- function openPay(){
- var project_id=$("#project_id").val();
- if(project_id =="" || project_id==null){
- $.ligerDialog.warn("请先选择项目!");
- return ;
- }
- var url="${pageContext.request.contextPath}/expenditureStatementAction.do?task=topayStatement&project_id="+project_id;
- oDialog = openTopDialog({
- height : $("body", window.top.document).height() - 150,
- width : $("body", window.top.document).width() - 650,
- url : url,
- showMax : false,
- showToggle : false,
- showMin : false,
- isResize : false,
- modal : false,
- title : "查看付款历史",
- allowClose : true
- });
- }
- function openODialog(owurl, name) {
- oDialog = openTopDialog({
- height : $("body", window.top.document).height() - 150,
- width : $("body", window.top.document).width() - 650,
- url : owurl,
- showMax : false,
- showToggle : false,
- showMin : false,
- isResize : false,
- modal : false,
- title : name,
- allowClose : true
- });
- }
- var purchase_grid;
- function f_initPurchaseGrid() {
- purchase_grid = $("#pay_div").ligerGrid({
- columns:
- [
- { display: '应付账款ID', name: 'account_pay_id', type: 'text',isSort: false, hide: true,width:5},
- { display: '产品ID', name: 'product_id', type: 'text',isSort: false, hide: true,width:5},
- { display: '供应商ID', name: 'supplier_id', type: 'text',isSort: false, hide: true,width:5},
- { display: '请购明细ID', name: 'request_detail_id', type: 'text',isSort: false, hide: true,width:5},
- { display: '项目采购清单ID', name: 'project_buy_id', type: 'text',isSort: false, hide: true,width:5},
- { display: '采购单ID', name: 'purchase_id',type:'text',isSort:false, hide: true,width:5},
- { display: '采购单明细ID', name: 'purchase_detail_id', type: 'text',isSort: false, hide: true,width:5},
- { display: '采购单号', name: 'purchase_number',type:'text',isSort:false,hide: true,width:5},
- { display: '存货编码', name: 'product_num',type:'text',isSort:false,width:100},
- { display: '存货名称', name: 'product_name',type:'text',isSort:false,width:100},
- { display: '规格型号', name: 'product_model_standard',type:'text',isSort:false,width:150},
- { display: '单位', name: 'product_unit_name',type:'text',isSort:false,width:60},
- { display: '单价', name: 'purchase_product_sell_price',type:'float',isSort:false,width:100},
- { display: '本次付款数', name: 'pay_num',type:'text',isSort:false,width:100},
- { display: '本次付款金额', name: 'pay_amount',type:'text',isSort:false,width:100
- }
- ],
- data:{Rows:payment_list},
- width :'99.8%',
- usePager: false,
- height : '95%'
- });
- }
-
- var pay_dialog;
- function open_pay(){
- pay_dialog=$.ligerDialog.open({height: 350,width:800, target: $("#pay_div"),title:"采购清单",
- buttons:[{
- text : '关闭',
- onclick : function(item, dialog) {
- dialog.hidden();
- }
- }]
- });
- }
- </script>
- </head>
- <body>
- <form id="addPayment" action="expenditureStatementAction.do?task=addPay" method="post">
- <input type="hidden" name="tabid" id="tabid" />
- <input type="hidden" name="expendType" value="${expendType }" />
- <input type="hidden" name="expend_type" value="${expendType }" />
- <textarea id="detail_data" name="detail_data" style="width: 100%;display: none;"></textarea>
- <textarea id="purchase_data" name="purchase_data" style="width: 100%;display: none;"></textarea>
- <div id="title" class="form-button">
-
- <c:choose>
- <c:when test="${flowOnOff=='off' }">
- <input id="btnSave" type="button" class="l-button" value="提交" disabled="disabled" />
- <span style="color:red;">请先配置审核流程</span>
- </c:when>
- <c:when test="${fmodel_state=='0' }">
- <input id="btnSave" type="button" class="l-button" value="提交" disabled="disabled" />
- <span style="color:red;">请先启用审核流程</span>
- </c:when>
- <c:otherwise>
- <input id="btnSave" type="button" class="l-button" value="提交" onclick="submitForm()" />
- </c:otherwise>
- </c:choose>
- <input type="button" value="关闭" class="l-button" onclick="closeWindow();"/>
- </div>
- <div class="container-layout" >
- <div class="forum-container" >
- <center>
- <table class="l-table-edit line">
- <c:choose>
- <c:when test="${expendType==1 }">
- <tr>
- <th colspan="4">付款申请单信息</th>
- </tr>
- <tr>
- <td class="l-table-edit-text" width="10%">项目名称:</td>
- <td class="l-table-edit-td" width="40%">
- <input type="hidden" id="project_id" name="project_id" value="${project_id }"/>
- <input type="text" id="project_name" name="project_name" value="${project_name}" style="width:180px;" />
- <c:if test="${isHidden=='show' && paymenttype==1}">
- <input id="btn_suppliers" type="button" class="l-button" value="选择" onclick="chooseProject({project_id:'project_id',project_name:'project_name','okpress':call_project});" />
- </c:if>
- </td>
- <td class="l-table-edit-text" width="10%">付款单号:</td>
- <td class="l-table-edit-td" width="40%">
- ${expend_sta_number}
- <input type="hidden" name="expend_sta_number" id="expend_sta_number" value="${expend_sta_number}" />
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text" width="10%">付款类型:</td>
- <td class="l-table-edit-td" width="40%" >
- <!-- <select id="payment_type" name="payment_type" style="width:100px;" > -->
- <c:forEach items="${payment_type_list}" var="item">
- <c:if test="${item.dvalue==paymenttype }">
- ${item.dname}
- <input type="hidden" name="payment_type" value="${paymenttype }" />
- </c:if>
- </c:forEach>
- <!-- </select> -->
- </td>
- <td class="l-table-edit-text" width="10%">是否到票:</td>
- <td class="l-table-edit-td" width="40%">
- <select id="is_bill" name="is_bill" style="width:100px;">
- <c:forEach items="${isBillList}" var="item">
- <option value="${item.dvalue }" >${item.dname}</option>
- </c:forEach>
- </select>
- </td>
- </tr>
- </c:when>
- <c:when test="${expendType==2 }">
- <tr>
- <th colspan="4">费用报销信息</th>
- </tr>
- <tr>
- <td class="l-table-edit-text" width="10%">项目名称:</td>
- <td class="l-table-edit-td" width="40%">
- <input type="hidden" id="project_id" name="project_id" value=""/>
- <input type="text" id="project_name" name="project_name" value="" style="width:180px;" />
- <c:if test="${isHidden=='show' }">
- <input id="btn_suppliers" type="button" class="l-button" value="选择" onclick="chooseProject({project_id:'project_id',project_name:'project_name','okpress':call_project});" />
- </c:if>
- </td>
- <td class="l-table-edit-text" width="10%">费用报销单号:</td>
- <td class="l-table-edit-td" width="40%">
- ${expend_sta_number}
- <input type="hidden" name="expend_sta_number" id="expend_sta_number" value="${expend_sta_number}" />
- </td>
- </tr>
- </c:when>
- <c:when test="${expendType==3 }">
- <tr>
- <th colspan="4">备用金信息</th>
- </tr>
- <tr>
- <td class="l-table-edit-text" width="10%">项目名称:</td>
- <td class="l-table-edit-td" width="40%">
- <input type="hidden" id="project_id" name="project_id" value=""/>
- <input type="text" id="project_name" name="project_name" value="" style="width:180px;" />
- <c:if test="${isHidden=='show' }">
- <input id="btn_suppliers" type="button" class="l-button" value="选择" onclick="chooseProject({project_id:'project_id',project_name:'project_name','okpress':call_project});" />
- </c:if>
- </td>
- <td class="l-table-edit-text" width="10%">备用金单号:</td>
- <td class="l-table-edit-td" width="40%">
- ${expend_sta_number}
- <input type="hidden" name="expend_sta_number" id="expend_sta_number" value="${expend_sta_number}" />
- </td>
- </tr>
- </c:when>
- <c:when test="${expendType==4 }">
- <tr>
- <th colspan="4">其他往来付款信息</th>
- </tr>
- <tr>
- <td class="l-table-edit-text" width="10%">其它付款单号:</td>
- <td class="l-table-edit-td" width="90%" colspan="3">
- ${expend_sta_number}
- <input type="hidden" name="expend_sta_number" id="expend_sta_number" value="${expend_sta_number}" />
- </td>
- </tr>
- </c:when>
- </c:choose>
-
- <tr>
- <td colspan="4" height="260">
- <!-- 明细 start -->
- <c:if test="${paymenttype==1 || paymenttype==null}">
- <div>
- <a class="l-button" style="width:70px;float:left; margin-top: 10px" onclick="addRow()">添加</a>
- </div>
- </c:if>
- <div class="l-clear"></div>
- <div id="pay_grid" style="margin: 0; padding: 0"></div><br />
- <div style="display:none;"></div>
-
- <!-- 明细 end -->
- </td>
- </tr>
- <c:if test="${expendType==1 || expendType==2 }">
- <tr id="is_spare_tr" style="display:none">
- <td class="l-table-edit-text" colspan="4">
- <span><input type="checkbox" name="is_spare" id="is_spare" value="1"/>是否冲账备用金</span>
- <span style="margin-left:80px;display:none" id="spare_money_id_select" >备用金单号:
- <input type="hidden" id="spare_money_id" name="spare_money_id" value=""/>
- <input type="hidden" id="spare_money" name="spare_money" value=""/>
- <input type="text" id="spare_money_number" name="spare_money_number" value="${map.spare_money_number}" style="width:180px;" readonly="readonly"/>
- <input id="btn_suppliers" type="button" class="l-button" value="选择" onclick="chooseMoney({spare_money_number:'spare_money_number',spare_money_id:'spare_money_id',spare_money:'spare_money',project_id:'project_id',spare_where:'alllist'});" />
- </span>
- <span style="margin-left:80px;display:none" id="spare_money_id_link"><a href="#" onclick="openSpare()">查看备用金历史</a></span>
- </tr>
- </c:if>
- <c:if test="${expendType==1 }">
- <tr id="project_relation" style="display:none">
- <td class="l-table-edit-text" colspan="4">
- <span id="project_amount_span" >预算总金额:<font id="project_amount_value">0</font></span>
- <span id="alreay_expend_money_span" style="margin-left:80px;">已付款金额:<font id="alreay_expend_money_value"></font></span>
- <span id="expend_surplusr_money_span" style="margin-left:80px;">付款结余金额:<font id="expend_surplusr_money_value"></font></span>
- <span id="pay_history" style="margin-left:80px;"><a href="#" onclick="openPay();">查看付款历史</a></span>
- <input type="hidden" name="alreay_expend_money" id="alreay_expend_money" />
- <input type="hidden" name="expend_surplusr_money" id="expend_surplusr_money" />
- </td>
- </tr>
- </c:if>
- <c:if test="${expendType==2 }">
- <tr id="project_relation" style="display:none">
- <td class="l-table-edit-text" colspan="4">
- <span id="project_amount_span" >预算可领用金额:<font id="project_amount_value"></font></span>
- <span id="alreay_expend_money_span" style="margin-left:80px;">已领用金额:<font id="alreay_expend_money_value"></font></span>
- <span id="expend_surplusr_money_span" style="margin-left:80px;">预算结余金额:<font id="expend_surplusr_money_value"></font></span>
- <span id="pay_history" style="margin-left:80px;"><a href="#" onclick="openPay();">查看付款历史</a></span>
- <input type="hidden" name="alreay_expend_money" id="alreay_expend_money" />
- <input type="hidden" name="expend_surplusr_money" id="expend_surplusr_money" />
- </td>
- </tr>
- </c:if>
- <c:if test="${expendType==3 }">
- <tr id="project_relation" style="display:none" >
- <td class="l-table-edit-text" width="10%">预算备用金总金额:</td>
- <td class="l-table-edit-td" width="40%">
- <span id="project_amount_value"></span>
- </td>
- <td class="l-table-edit-text" width="10%">备用金已领用金额:</td>
- <td class="l-table-edit-td" width="40%">
- <span id="alreay_expend_money_value"></span>
- <span id="pay_history_3" style="margin-left:150px;"><a href="#" onclick="openSpare()">查看备用金历史</a>
- </span>
- </td>
- </tr>
- <tr id="project_relation1" style="display:none" >
- <td class="l-table-edit-text" width="10%">备用金结余金额:</td>
- <td class="l-table-edit-td" width="40%">
- <span id="expend_surplusr_money_value"></span>
- <input type="hidden" name="alreay_expend_money" id="alreay_expend_money" />
- <input type="hidden" name="expend_surplusr_money" id="expend_surplusr_money" />
- </td>
- <td class="l-table-edit-text" width="10%">预计还款日期:</td>
- <td class="l-table-edit-td" width="40%">
- <input type="text" class="Wdate" name="return_date" id="return_date" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})">
- </td>
- </tr>
- </c:if>
- <tr>
- <td class="l-table-edit-text" width="10%">收款户名<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td" width="40%">
- <input type="text" id="receipt_account" name="receipt_account" maxlength="10" value="" style="width:180px;" readonly="readonly"/>
- <input type="button" class="l-button" value="选择" id="selectBankUser" onclick="selectAccountRec({account_name:'receipt_account',blank_name:'receipt_bank',blank_account:'receipt_bank_account'});"/>
- </td>
- <td class="l-table-edit-text" width="10%">开户银行:</td>
- <td class="l-table-edit-td" width="40%">
- <input type="text" name="receipt_bank" id="receipt_bank" style="width:180px;" maxlength="40" readonly="readonly"/>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text" width="10%">银行帐号:</td>
- <td class="l-table-edit-td" width="90%" colspan="3">
- <input type="text" name="receipt_bank_account" id="receipt_bank_account" style="width:180px;" maxlength="40" readonly="readonly"/>
- </td>
- </tr>
- <c:if test="${expendType==1 || expendType==4 }">
- <tr>
- <td class="l-table-edit-text" width="10%">附件:</td>
- <td class="l-table-edit-td" width="90%" colspan="3">
- <input type="hidden" id="doc_ids" name="doc_ids" value="" style="width:180px;" readonly="readonly"/>
- <jsp:include page="/include/file.jsp">
- <jsp:param name="fieldName" value="files" />
- <jsp:param name="folder" value="fm/statement" />
- <jsp:param name="size" value="30" />
- <jsp:param name="isView" value="1" />
- <jsp:param name="isDelFile" value="1" />
- <jsp:param name="definedCss" value="file-style" />
- </jsp:include>
- </td>
- </tr>
- </c:if>
- <tr>
- <td class="l-table-edit-text" width="10%">申请人:</td>
- <td class="l-table-edit-td" width="40%">
- ${create_user_name }
- </td>
- <td class="l-table-edit-text" width="10%">申请日期:</td>
- <td class="l-table-edit-td" width="40%">
- ${create_date }
- </td>
- </tr>
-
- </table>
- </center>
- <div class="l-clear"></div>
- <div id="pay_div" style="margin-top:0px;display:none"></div><br />
- <div style="display:none;"></div>
- </div>
- </div>
- <%@include file="/yw/eu/codeflow/workflow/workflow_start_process.jsp"%>
- </form>
- <%@ include file="/include/message.jsp"%>
- </body>
- </html>
|