contractPayment-update.jsp 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>合同支付申请</title>
  7. <style>
  8. .ui-button {
  9. display: inline-block;
  10. padding: 2px 2px;
  11. margin-bottom: 0;
  12. font-size: 8px;
  13. font-weight: normal;
  14. line-height: 1.42857143;
  15. text-align: center;
  16. white-space: nowrap;
  17. vertical-align: middle;
  18. -ms-touch-action: manipulation;
  19. touch-action: manipulation;
  20. cursor: pointer;
  21. -webkit-user-select: none;
  22. -moz-user-select: none;
  23. -ms-user-select: none;
  24. user-select: none;
  25. background-image: none;
  26. border: 1px solid transparent;
  27. border-radius: 4px;
  28. }
  29. </style>
  30. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  31. <script type="text/javascript">
  32. $(document).ready(function(){
  33. $('#tt').tabs({
  34. onSelect:function(title){
  35. $('#tt .panel-body').css('width','auto');
  36. }
  37. });
  38. //格式化数值
  39. var totalamount = document.getElementById("totalamount");
  40. totalamount.value = formatterNum(totalamount.value);
  41. // 查看的时候隐藏选择按钮及清除按钮
  42. if(location.href.indexOf("load=detail")!=-1){
  43. $("#partnerSearch").remove();
  44. $("#partnerRedo").remove();
  45. $("#projectSearch").remove();
  46. $("#projectRedo").remove();
  47. /* $("#buttomTable").find('tr:eq(2)').remove(); */
  48. }
  49. //审批时,需要显示评价人、评价信息
  50. if(location.href.indexOf("audit=1")!=-1){
  51. $("#pingjiaren").show();
  52. $("#pingjiaxinxi").show();
  53. //$("#payedrow").show();
  54. }
  55. if($("#viewFlag").val() == '1'){
  56. $(":input").attr("disabled","true");
  57. $("#partnerSearch").remove();
  58. $("#partnerRedo").remove();
  59. $("#projectSearch").remove();
  60. $("#projectRedo").remove();
  61. }
  62. $(".tabs-wrap").css('width','100%');
  63. });
  64. </script>
  65. </head>
  66. <body style="overflow-x: hidden;">
  67. <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="contractPaymentController.do?doUpdate" beforeSubmit="beforeSubmit" tipSweep="true">
  68. <input id="id" name="id" type="hidden" value="${contractPaymentPage.id }"/>
  69. <input id="invoiceno" name="invoiceno" type="hidden" value="${contractPaymentPage.invoiceno }"/>
  70. <input id="invoicedate" name="invoicedate" type="hidden" value="${contractPaymentPage.invoicedate }"/>
  71. <input id="auditdate" name="auditdate" type="hidden" value="${contractPaymentPage.auditdate }"/>
  72. <input id="applyerid" name="applyerid" type="hidden" value="${contractPaymentPage.applyerid }"/>
  73. <%-- <input id="supplierevaluate" name="supplierevaluate" type="hidden" value="${contractPaymentPage.supplierevaluate }"/> --%>
  74. <input id="evaluater" name="evaluater" type="hidden" value="${contractPaymentPage.evaluater }"/>
  75. <%-- <input id="evaluater" name="evaluater" type="hidden" value="${contractPaymentPage.evaluater }"/> --%>
  76. <input id="paystatus" name="paystatus" type="hidden" value="${contractPaymentPage.paystatus }"/>
  77. <input id="payOperator" name="payOperator" type="hidden" value="${contractPaymentPage.payOperator }"/>
  78. <input id="paymentamount" name="paymentamount" type="hidden" value="${contractPaymentPage.paymentamount }"/>
  79. <input id="paydate" name="paydate" type="hidden" value="${contractPaymentPage.paydate }"/>
  80. <input id="billtype" name="billtype" type="hidden" value="${contractPaymentPage.billtype }"/>
  81. <input id="viewFlag" name="viewFlag" type="hidden" value="${viewFlag }"/>
  82. <input id="c2lpayment" name="c2lpayment" type="hidden" value="${contractPaymentPage.c2lpayment }"/>
  83. <input id="c2npayment" name="c2npayment" type="hidden" value="${contractPaymentPage.c2npayment }"/>
  84. <input id="c2cpayment" name="c2cpayment" type="hidden" value="${contractPaymentPage.c2cpayment }"/>
  85. <input id="needcheck" name="needcheck" type="hidden" value="0"/>
  86. <table cellpadding="0" cellspacing="1" class="formtable">
  87. <tr>
  88. <td align="right">
  89. <label class="Validform_label">申请单号:</label>
  90. </td>
  91. <td class="value">
  92. <input id="code" name="code" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${contractPaymentPage.code}'/>
  93. <span class="Validform_checktip"></span>
  94. <label class="Validform_label" style="display: none;">申请单号</label>
  95. </td>
  96. </tr>
  97. <tr>
  98. <td align="right">
  99. <label class="Validform_label">合同:</label>
  100. </td>
  101. <td class="value">
  102. <c:if test="${contractPaymentPage.billtype=='service' }">
  103. <t:dictSelect id="contractid" field="contractid" type="list" dictTable="t_b_contract" dictField="id" dictText="name" defaultVal="${contractPaymentPage.contractid}"
  104. hasLabel="false" readonly="readonly" title="合同" extendJson="{class:'form-control',style:'width:500px'}"></t:dictSelect>
  105. </c:if>
  106. <c:if test="${contractPaymentPage.billtype=='purchase' }">
  107. <t:dictSelect id="contractid" field="contractid" type="list" dictTable="t_b_contract_p" dictField="id" dictText="name" defaultVal="${contractPaymentPage.contractid}"
  108. hasLabel="false" readonly="readonly" title="合同" extendJson="{class:'form-control',style:'width:500px'}"></t:dictSelect>
  109. </c:if>
  110. <span class="Validform_checktip"></span>
  111. <label class="Validform_label" style="display: none;">合同</label>
  112. </td>
  113. <td align="right">
  114. <label class="Validform_label" style="color:#1d953f;">合同有效期日期:</label>
  115. </td>
  116. <td class="value">
  117. <input id="contractStartEnd" name="contractStartEnd" type="text" style="width: 300px;color:#1d953f ;" class="inputxt"
  118. value='${contractPaymentPage.contractStartEnd}' readonly="readonly" ignore="ignore" />
  119. <span class="Validform_checktip"></span>
  120. <label class="Validform_label" style="display: none;">合同有效期日期</label>
  121. </td>
  122. </tr>
  123. <tr>
  124. <td align="right">
  125. <label class="Validform_label">合同金额:</label>
  126. </td>
  127. <td class="value">
  128. <input id="totalamount" name="totalamount" type="text" style="width: 150px" class="inputxt" datatype="/^(-?\d+)(\.\d+)?$/"
  129. value='${contractPaymentPage.totalamount}' readonly="readonly" ignore="ignore" />
  130. <span class="Validform_checktip"></span>
  131. <label class="Validform_label" style="display: none;">合同金额</label>
  132. </td>
  133. <td align="right">
  134. <label class="Validform_label">累计已支付金额:</label>
  135. </td>
  136. <td class="value">
  137. <c:if test="${contractPaymentPage.billtype=='service' }">
  138. <t:dictSelect id="totalpayment" field="totalpayment" type="list" dictTable="t_b_contract" dictField="id" dictText="totalpayment" defaultVal="${contractPaymentPage.contractid}"
  139. hasLabel="false" readonly="readonly" title="累计支付金额" extendJson="{class:'form-control',style:'width:150px'}"></t:dictSelect>
  140. </c:if>
  141. <c:if test="${contractPaymentPage.billtype=='purchase' }">
  142. <t:dictSelect id="totalpayment" field="totalpayment" type="list" dictTable="t_b_contract_p" dictField="id" dictText="totalpayment" defaultVal="${contractPaymentPage.contractid}"
  143. hasLabel="false" readonly="readonly" title="累计支付金额" extendJson="{class:'form-control',style:'width:150px'}"></t:dictSelect>
  144. </c:if>
  145. <span class="Validform_checktip"></span>
  146. <label class="Validform_label" style="display: none;">累计支付金额</label>
  147. </td>
  148. </tr>
  149. <tr>
  150. <td align="right">
  151. <label class="Validform_label">申请支付金额:</label>
  152. </td>
  153. <td class="value">
  154. <input id="applypayamount" name="applypayamount" type="text" style="width: 150px" class="inputxt" datatype="/^(-?\d+)(\.\d+)?$/"
  155. oninput="changeToCHN(event)" onKeyUp="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')" ignore="checked"
  156. onchange="afterApplyChanged(event)" value='${contractPaymentPage.applypayamount}'/>
  157. <span class="Validform_checktip"></span>
  158. <label id="applyamountCHN" style="font-size: 18px"></label>
  159. </td>
  160. <td align="right">
  161. <label class="Validform_label">支付方式:</label>
  162. </td>
  163. <td class="value">
  164. <t:dictSelect id="paytype" field="paytype" type="list" typeGroupCode="paytype" defaultVal="${contractPaymentPage.paytype}"
  165. hasLabel="false" title="支付类型" extendJson="{class:'form-control',style:'width:150px'}"></t:dictSelect>
  166. <%-- <input id="paytype" name="paytype" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${contractPaymentPage.paytype}'/> --%>
  167. <span class="Validform_checktip"></span>
  168. <label class="Validform_label" style="display: none;">支付方式</label>
  169. </td>
  170. </tr>
  171. <tr>
  172. <td align="right">
  173. <label class="Validform_label">本次开票金额:</label>
  174. </td>
  175. <td class="value">
  176. <input id="invoiceamount" name="invoiceamount" type="text" style="width: 150px" class="inputxt" datatype="/^(-?\d+)(\.\d+)?$/" value='${contractPaymentPage.invoiceamount}' ignore="ignore" />
  177. <span class="Validform_checktip"></span>
  178. <label class="Validform_label" style="display: none;">本次开票金额</label>
  179. </td>
  180. <td align="right">
  181. <label class="Validform_label">已付至:</label>
  182. </td>
  183. <td class="value">
  184. <input id="payedPeriodEnd" name="payedPeriodEnd" type="text" style="width: 150px" readonly="readonly" class="inputxt" ignore="ignore" value='${contractPaymentPage.payedPeriodEnd}'/>
  185. <span class="Validform_checktip"></span>
  186. <label class="Validform_label" style="display: none;">已付至</label>
  187. </td>
  188. </tr>
  189. <tr>
  190. <td align="right">
  191. <label class="Validform_label">供应商:</label>
  192. </td>
  193. <td class="value">
  194. <t:dictSelect id="partnerid" field="partnerid" type="list" dictTable="t_b_related_units" dictField="id" dictText="unit_name" defaultVal="${contractPaymentPage.partnerid}"
  195. hasLabel="false" readonly="readonly" title="供应商" extendJson="{class:'form-control',style:'width:300px'}"></t:dictSelect>
  196. </td>
  197. <td align="right">
  198. <label class="Validform_label">项目:</label>
  199. </td>
  200. <td class="value">
  201. <t:dictSelect id="projectid" field="projectid" type="list" dictTable="t_b_project" dictField="id" dictText="name" defaultVal="${contractPaymentPage.projectid}"
  202. hasLabel="false" readonly="readonly" title="项目" extendJson="{class:'form-control',style:'width:300px'}"></t:dictSelect>
  203. </td>
  204. </tr>
  205. <tr>
  206. <td align="right"><label class="Validform_label"> <font
  207. color="red" class="requiredIcon">*</font>开始日期:
  208. </label></td>
  209. <td class="value"><input id="periodBegin" name="periodBegin"
  210. type="text" style="width: 150px" class="Wdate"
  211. value="${contractPaymentPage.periodBegin}"
  212. onClick='WdatePicker({readOnly:true,enableKeyboard:false,enableInputMask:false,dateFmt: "yyyy-MM-dd"})'
  213. datatype="*" ignore="checked" /> <span class="Validform_checktip"></span>
  214. <label class="Validform_label" style="display: none;">开始日期</label>
  215. </td>
  216. <td align="right"><label class="Validform_label"> <font
  217. color="red" class="requiredIcon">*</font>截止日期:
  218. </label></td>
  219. <td class="value"><input id="periodEnd" name="periodEnd"
  220. type="text" style="width: 150px" class="Wdate"
  221. value='${contractPaymentPage.periodEnd}'
  222. onClick='WdatePicker({readOnly:true,enableKeyboard:false,enableInputMask:false,dateFmt: "yyyy-MM-dd"})'
  223. ignore="ignore" /> <span class="Validform_checktip"></span>
  224. <label class="Validform_label" style="display: none;">截止日期</label>
  225. </td>
  226. </tr>
  227. <tr >
  228. <td align="right">
  229. <label class="Validform_label"><span color="red" class="requiredIcon">*</span>计入预算月份:</label>
  230. </td>
  231. <td class="value">
  232. <input name="budgetMonth" type="text" style="width: 150px" class="Wdate" readonly="readonly" datatype="*" value='${contractPaymentPage.budgetMonth}' onclick="WdatePicker({dateFmt: 'yyyy-MM'})"/>
  233. <span class="Validform_checktip"></span>
  234. <label class="Validform_label" style="display: none;">计入预算月份</label>
  235. </td>
  236. </tr>
  237. <tr id="pingjiaren" >
  238. <td align="right">
  239. <label class="Validform_label">本次服务评分:</label>
  240. </td>
  241. <td class="value">
  242. <input id="supplierscore" name="supplierscore" type="text" style="width: 150px" class="inputxt" readonly="readonly"
  243. ignore="ignore" value='${contractPaymentPage.supplierscore}'/>
  244. <span class="Validform_checktip"></span>
  245. <label class="Validform_label" style="display: none;">本次服务评分</label>
  246. </td>
  247. </tr>
  248. <tr id="pingjiaxinxi" >
  249. <td align="right">
  250. <label class="Validform_label">供应商评价详情:</label>
  251. </td>
  252. <td class="value" rowspan="1" colspan="4">
  253. <a href="#" class="easyui-linkbutton l-btn l-btn-plain" plain="true" icon="icon-view"
  254. onclick="createdetailwindow('查看','maintainBillController.do?maintainbillSelect&cid=${contractPaymentPage.contractid}&ids=${contractPaymentPage.maintainids}&load=detail')" >
  255. 点击查看
  256. </a>
  257. </td>
  258. </tr>
  259. <tr>
  260. <td align="right">
  261. <label class="Validform_label">评估报告:</label>
  262. </td>
  263. <td class="value">
  264. <c:if test="${param.load!='detail'}">
  265. <t:webUploader auto="true" busiId="${contractPaymentPage.id}" readOnly="${param.load=='detail' || in_process}"
  266. busiTable="t_b_contract_payment"
  267. bizType="attachment"
  268. extensions="png,jpg,jpeg,bmp"
  269. name="attachment" duplicate="true" fileNumLimit="10"
  270. nullMsg="附件不可为空"></t:webUploader>
  271. <span class="Validform_checktip Validform_right" style="display: none;">文件已上传</span>
  272. </c:if>
  273. <c:if test="${param.load=='detail'}">
  274. <a href="javascript:void(0)" class="easyui-linkbutton l-btn l-btn-plain" plain="true" icon="icon-detail" onclick="fileList('${contractPaymentPage.id}')">
  275. 点击查看
  276. </a>
  277. </c:if>
  278. </td>
  279. </tr>
  280. <tr>
  281. <td align="right">
  282. <label class="Validform_label">备注:</label>
  283. </td>
  284. <td class="value" rowspan="3" colspan="4">
  285. <textarea id="remark" class="inputxt" style="height: 60px; width: 600px;" name="remark" ignore="ignore" >${contractPaymentPage.remark}</textarea>
  286. <span class="Validform_checktip"></span>
  287. <label class="Validform_label" style="display: none;">备注</label>
  288. </td>
  289. </tr>
  290. </table>
  291. <div style="width: auto;height: 200px;">
  292. <%-- 增加一个div,用于调节页面大小,否则默认太小 --%>
  293. <div style="width:800px;height:1px;"></div>
  294. <t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
  295. <t:tab href="contractPaymentController.do?contractInvoiceList&id=${contractPaymentPage.id}" icon="icon-search" title="发票明细" id="contractInvoice"></t:tab>
  296. </t:tabs>
  297. </div>
  298. </t:formvalid>
  299. <!-- 添加 附表明细 模版 -->
  300. <table style="display:none">
  301. <tbody id="add_contractInvoice_table_template">
  302. <tr>
  303. <td align="center"><div style="width: 25px;" name="xh"></div></td>
  304. <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
  305. <td align="left">
  306. <input name="contractInvoiceList[#index#].invoiceno" maxlength="128" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
  307. <label class="Validform_label" style="display: none;">发票号</label>
  308. </td>
  309. <td align="left">
  310. <input name="contractInvoiceList[#index#].invoiceamount" maxlength="14" type="text" class="inputxt" style="width:120px;"
  311. datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/" onKeyUp="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')" ignore="ignore" />
  312. <label class="Validform_label" style="display: none;">本次开票金额</label>
  313. </td>
  314. <td align="left">
  315. <input name="contractInvoiceList[#index#].invoicedate" maxlength="0" type="text" class="Wdate" onClick="WdatePicker()" style="width:120px;" ignore="ignore" />
  316. <label class="Validform_label" style="display: none;">开票日期</label>
  317. </td>
  318. </tr>
  319. </tbody>
  320. </table>
  321. </body>
  322. <script type="text/javascript" src="plug-in/tools/money.js"></script>
  323. <script src = "webpage/cn/com/lzt/contractpayment/contractPayment.js"></script>
  324. <script>
  325. function fileList(id){
  326. $.dialog({
  327. content: 'url:publicpageController.do?tSysFileList&busiId='+id+'&busiTable=t_b_contract_payment&bizType=attachment&extensions=jpg,png&readOnly=true'
  328. , zIndex: getzIndex(), title: '附件列表', lock: true, width: '800px', height: '600px', opacity: 0.4, button: [
  329. {name: '<t:mutiLang langKey="common.close"/>', callback: function (){}}
  330. ]}).zindex();
  331. }
  332. </script>