| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334 |
- <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <!DOCTYPE html>
- <html>
- <head>
- <title>合同支付申请</title>
- <style>
- .ui-button {
- display: inline-block;
- padding: 2px 2px;
- margin-bottom: 0;
- font-size: 8px;
- font-weight: normal;
- line-height: 1.42857143;
- text-align: center;
- white-space: nowrap;
- vertical-align: middle;
- -ms-touch-action: manipulation;
- touch-action: manipulation;
- cursor: pointer;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- background-image: none;
- border: 1px solid transparent;
- border-radius: 4px;
- }
- </style>
- <t:base type="jquery,easyui,tools,DatePicker"></t:base>
- <script type="text/javascript">
- $(document).ready(function(){
- $('#tt').tabs({
- onSelect:function(title){
- $('#tt .panel-body').css('width','auto');
- }
- });
- //格式化数值
- var totalamount = document.getElementById("totalamount");
- totalamount.value = formatterNum(totalamount.value);
-
- // 查看的时候隐藏选择按钮及清除按钮
- if(location.href.indexOf("load=detail")!=-1){
- $("#partnerSearch").remove();
- $("#partnerRedo").remove();
- $("#projectSearch").remove();
- $("#projectRedo").remove();
- /* $("#buttomTable").find('tr:eq(2)').remove(); */
- }
- //审批时,需要显示评价人、评价信息
- if(location.href.indexOf("audit=1")!=-1){
- $("#pingjiaren").show();
- $("#pingjiaxinxi").show();
- //$("#payedrow").show();
- }
- if($("#viewFlag").val() == '1'){
- $(":input").attr("disabled","true");
- $("#partnerSearch").remove();
- $("#partnerRedo").remove();
- $("#projectSearch").remove();
- $("#projectRedo").remove();
- }
- $(".tabs-wrap").css('width','100%');
- });
- </script>
- </head>
- <body style="overflow-x: hidden;">
- <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="contractPaymentController.do?doUpdate" beforeSubmit="beforeSubmit" tipSweep="true">
- <input id="id" name="id" type="hidden" value="${contractPaymentPage.id }"/>
- <input id="invoiceno" name="invoiceno" type="hidden" value="${contractPaymentPage.invoiceno }"/>
- <input id="invoicedate" name="invoicedate" type="hidden" value="${contractPaymentPage.invoicedate }"/>
- <input id="auditdate" name="auditdate" type="hidden" value="${contractPaymentPage.auditdate }"/>
- <input id="applyerid" name="applyerid" type="hidden" value="${contractPaymentPage.applyerid }"/>
- <%-- <input id="supplierevaluate" name="supplierevaluate" type="hidden" value="${contractPaymentPage.supplierevaluate }"/> --%>
- <input id="evaluater" name="evaluater" type="hidden" value="${contractPaymentPage.evaluater }"/>
- <%-- <input id="evaluater" name="evaluater" type="hidden" value="${contractPaymentPage.evaluater }"/> --%>
- <input id="paystatus" name="paystatus" type="hidden" value="${contractPaymentPage.paystatus }"/>
- <input id="payOperator" name="payOperator" type="hidden" value="${contractPaymentPage.payOperator }"/>
- <input id="paymentamount" name="paymentamount" type="hidden" value="${contractPaymentPage.paymentamount }"/>
- <input id="paydate" name="paydate" type="hidden" value="${contractPaymentPage.paydate }"/>
- <input id="billtype" name="billtype" type="hidden" value="${contractPaymentPage.billtype }"/>
- <input id="viewFlag" name="viewFlag" type="hidden" value="${viewFlag }"/>
- <input id="c2lpayment" name="c2lpayment" type="hidden" value="${contractPaymentPage.c2lpayment }"/>
- <input id="c2npayment" name="c2npayment" type="hidden" value="${contractPaymentPage.c2npayment }"/>
- <input id="c2cpayment" name="c2cpayment" type="hidden" value="${contractPaymentPage.c2cpayment }"/>
- <input id="needcheck" name="needcheck" type="hidden" value="0"/>
- <table cellpadding="0" cellspacing="1" class="formtable">
- <tr>
- <td align="right">
- <label class="Validform_label">申请单号:</label>
- </td>
- <td class="value">
- <input id="code" name="code" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${contractPaymentPage.code}'/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">申请单号</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">合同:</label>
- </td>
- <td class="value">
- <c:if test="${contractPaymentPage.billtype=='service' }">
- <t:dictSelect id="contractid" field="contractid" type="list" dictTable="t_b_contract" dictField="id" dictText="name" defaultVal="${contractPaymentPage.contractid}"
- hasLabel="false" readonly="readonly" title="合同" extendJson="{class:'form-control',style:'width:500px'}"></t:dictSelect>
- </c:if>
- <c:if test="${contractPaymentPage.billtype=='purchase' }">
- <t:dictSelect id="contractid" field="contractid" type="list" dictTable="t_b_contract_p" dictField="id" dictText="name" defaultVal="${contractPaymentPage.contractid}"
- hasLabel="false" readonly="readonly" title="合同" extendJson="{class:'form-control',style:'width:500px'}"></t:dictSelect>
- </c:if>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">合同</label>
- </td>
- <td align="right">
- <label class="Validform_label" style="color:#1d953f;">合同有效期日期:</label>
- </td>
- <td class="value">
- <input id="contractStartEnd" name="contractStartEnd" type="text" style="width: 300px;color:#1d953f ;" class="inputxt"
- value='${contractPaymentPage.contractStartEnd}' readonly="readonly" ignore="ignore" />
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">合同有效期日期</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">合同金额:</label>
- </td>
- <td class="value">
- <input id="totalamount" name="totalamount" type="text" style="width: 150px" class="inputxt" datatype="/^(-?\d+)(\.\d+)?$/"
- value='${contractPaymentPage.totalamount}' readonly="readonly" ignore="ignore" />
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">合同金额</label>
- </td>
- <td align="right">
- <label class="Validform_label">累计已支付金额:</label>
- </td>
- <td class="value">
- <c:if test="${contractPaymentPage.billtype=='service' }">
- <t:dictSelect id="totalpayment" field="totalpayment" type="list" dictTable="t_b_contract" dictField="id" dictText="totalpayment" defaultVal="${contractPaymentPage.contractid}"
- hasLabel="false" readonly="readonly" title="累计支付金额" extendJson="{class:'form-control',style:'width:150px'}"></t:dictSelect>
- </c:if>
- <c:if test="${contractPaymentPage.billtype=='purchase' }">
- <t:dictSelect id="totalpayment" field="totalpayment" type="list" dictTable="t_b_contract_p" dictField="id" dictText="totalpayment" defaultVal="${contractPaymentPage.contractid}"
- hasLabel="false" readonly="readonly" title="累计支付金额" extendJson="{class:'form-control',style:'width:150px'}"></t:dictSelect>
- </c:if>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">累计支付金额</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">申请支付金额:</label>
- </td>
- <td class="value">
- <input id="applypayamount" name="applypayamount" type="text" style="width: 150px" class="inputxt" datatype="/^(-?\d+)(\.\d+)?$/"
- oninput="changeToCHN(event)" onKeyUp="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')" ignore="checked"
- onchange="afterApplyChanged(event)" value='${contractPaymentPage.applypayamount}'/>
- <span class="Validform_checktip"></span>
- <label id="applyamountCHN" style="font-size: 18px"></label>
- </td>
- <td align="right">
- <label class="Validform_label">支付方式:</label>
- </td>
- <td class="value">
- <t:dictSelect id="paytype" field="paytype" type="list" typeGroupCode="paytype" defaultVal="${contractPaymentPage.paytype}"
- hasLabel="false" title="支付类型" extendJson="{class:'form-control',style:'width:150px'}"></t:dictSelect>
- <%-- <input id="paytype" name="paytype" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${contractPaymentPage.paytype}'/> --%>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">支付方式</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">本次开票金额:</label>
- </td>
- <td class="value">
- <input id="invoiceamount" name="invoiceamount" type="text" style="width: 150px" class="inputxt" datatype="/^(-?\d+)(\.\d+)?$/" value='${contractPaymentPage.invoiceamount}' ignore="ignore" />
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">本次开票金额</label>
- </td>
- <td align="right">
- <label class="Validform_label">已付至:</label>
- </td>
- <td class="value">
- <input id="payedPeriodEnd" name="payedPeriodEnd" type="text" style="width: 150px" readonly="readonly" class="inputxt" ignore="ignore" value='${contractPaymentPage.payedPeriodEnd}'/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">已付至</label>
- </td>
-
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">供应商:</label>
- </td>
- <td class="value">
- <t:dictSelect id="partnerid" field="partnerid" type="list" dictTable="t_b_related_units" dictField="id" dictText="unit_name" defaultVal="${contractPaymentPage.partnerid}"
- hasLabel="false" readonly="readonly" title="供应商" extendJson="{class:'form-control',style:'width:300px'}"></t:dictSelect>
- </td>
- <td align="right">
- <label class="Validform_label">项目:</label>
- </td>
- <td class="value">
- <t:dictSelect id="projectid" field="projectid" type="list" dictTable="t_b_project" dictField="id" dictText="name" defaultVal="${contractPaymentPage.projectid}"
- hasLabel="false" readonly="readonly" title="项目" extendJson="{class:'form-control',style:'width:300px'}"></t:dictSelect>
- </td>
- </tr>
- <tr>
- <td align="right"><label class="Validform_label"> <font
- color="red" class="requiredIcon">*</font>开始日期:
- </label></td>
- <td class="value"><input id="periodBegin" name="periodBegin"
- type="text" style="width: 150px" class="Wdate"
- value="${contractPaymentPage.periodBegin}"
- onClick='WdatePicker({readOnly:true,enableKeyboard:false,enableInputMask:false,dateFmt: "yyyy-MM-dd"})'
- datatype="*" ignore="checked" /> <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">开始日期</label>
- </td>
- <td align="right"><label class="Validform_label"> <font
- color="red" class="requiredIcon">*</font>截止日期:
- </label></td>
- <td class="value"><input id="periodEnd" name="periodEnd"
- type="text" style="width: 150px" class="Wdate"
- value='${contractPaymentPage.periodEnd}'
- onClick='WdatePicker({readOnly:true,enableKeyboard:false,enableInputMask:false,dateFmt: "yyyy-MM-dd"})'
- ignore="ignore" /> <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">截止日期</label>
- </td>
- </tr>
- <tr >
- <td align="right">
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span>计入预算月份:</label>
- </td>
- <td class="value">
- <input name="budgetMonth" type="text" style="width: 150px" class="Wdate" readonly="readonly" datatype="*" value='${contractPaymentPage.budgetMonth}' onclick="WdatePicker({dateFmt: 'yyyy-MM'})"/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">计入预算月份</label>
- </td>
- </tr>
- <tr id="pingjiaren" >
- <td align="right">
- <label class="Validform_label">本次服务评分:</label>
- </td>
- <td class="value">
- <input id="supplierscore" name="supplierscore" type="text" style="width: 150px" class="inputxt" readonly="readonly"
- ignore="ignore" value='${contractPaymentPage.supplierscore}'/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">本次服务评分</label>
- </td>
- </tr>
- <tr id="pingjiaxinxi" >
- <td align="right">
- <label class="Validform_label">供应商评价详情:</label>
- </td>
- <td class="value" rowspan="1" colspan="4">
- <a href="#" class="easyui-linkbutton l-btn l-btn-plain" plain="true" icon="icon-view"
- onclick="createdetailwindow('查看','maintainBillController.do?maintainbillSelect&cid=${contractPaymentPage.contractid}&ids=${contractPaymentPage.maintainids}&load=detail')" >
- 点击查看
- </a>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">评估报告:</label>
- </td>
- <td class="value">
- <c:if test="${param.load!='detail'}">
- <t:webUploader auto="true" busiId="${contractPaymentPage.id}" readOnly="${param.load=='detail' || in_process}"
- busiTable="t_b_contract_payment"
- bizType="attachment"
- extensions="png,jpg,jpeg,bmp"
- name="attachment" duplicate="true" fileNumLimit="10"
- nullMsg="附件不可为空"></t:webUploader>
- <span class="Validform_checktip Validform_right" style="display: none;">文件已上传</span>
- </c:if>
- <c:if test="${param.load=='detail'}">
- <a href="javascript:void(0)" class="easyui-linkbutton l-btn l-btn-plain" plain="true" icon="icon-detail" onclick="fileList('${contractPaymentPage.id}')">
- 点击查看
- </a>
- </c:if>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">备注:</label>
- </td>
- <td class="value" rowspan="3" colspan="4">
- <textarea id="remark" class="inputxt" style="height: 60px; width: 600px;" name="remark" ignore="ignore" >${contractPaymentPage.remark}</textarea>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">备注</label>
- </td>
- </tr>
- </table>
- <div style="width: auto;height: 200px;">
- <%-- 增加一个div,用于调节页面大小,否则默认太小 --%>
- <div style="width:800px;height:1px;"></div>
- <t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
- <t:tab href="contractPaymentController.do?contractInvoiceList&id=${contractPaymentPage.id}" icon="icon-search" title="发票明细" id="contractInvoice"></t:tab>
- </t:tabs>
- </div>
- </t:formvalid>
- <!-- 添加 附表明细 模版 -->
- <table style="display:none">
- <tbody id="add_contractInvoice_table_template">
- <tr>
- <td align="center"><div style="width: 25px;" name="xh"></div></td>
- <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
- <td align="left">
- <input name="contractInvoiceList[#index#].invoiceno" maxlength="128" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
- <label class="Validform_label" style="display: none;">发票号</label>
- </td>
- <td align="left">
- <input name="contractInvoiceList[#index#].invoiceamount" maxlength="14" type="text" class="inputxt" style="width:120px;"
- datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/" onKeyUp="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')" ignore="ignore" />
- <label class="Validform_label" style="display: none;">本次开票金额</label>
- </td>
- <td align="left">
- <input name="contractInvoiceList[#index#].invoicedate" maxlength="0" type="text" class="Wdate" onClick="WdatePicker()" style="width:120px;" ignore="ignore" />
- <label class="Validform_label" style="display: none;">开票日期</label>
- </td>
- </tr>
- </tbody>
- </table>
- </body>
- <script type="text/javascript" src="plug-in/tools/money.js"></script>
- <script src = "webpage/cn/com/lzt/contractpayment/contractPayment.js"></script>
- <script>
- function fileList(id){
- $.dialog({
- content: 'url:publicpageController.do?tSysFileList&busiId='+id+'&busiTable=t_b_contract_payment&bizType=attachment&extensions=jpg,png&readOnly=true'
- , zIndex: getzIndex(), title: '附件列表', lock: true, width: '800px', height: '600px', opacity: 0.4, button: [
- {name: '<t:mutiLang langKey="common.close"/>', callback: function (){}}
- ]}).zindex();
- }
- </script>
|