contractPayment-add.jsp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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. getSumInvoiceMoney();
  42. $(".tabs-wrap").css('width','100%');
  43. });
  44. function callback(data){
  45. if(data.success){
  46. layer.alert(data.msg, function(index){
  47. frameElement.api.opener.refresh();
  48. if($("#doadd").val() == '1'){
  49. frameElement.api.opener.selectContract('','contractController.do?selectlist');
  50. }
  51. window.closeCurrentDialog();
  52. });
  53. }
  54. else{
  55. layer.alert(data.msg);
  56. }
  57. }
  58. </script>
  59. </head>
  60. <body style="overflow-x: hidden;">
  61. <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="contractPaymentController.do?doAdd" beforeSubmit="beforeSubmit" callback="callback@Override"
  62. tipSweep="true">
  63. <input id="id" name="id" type="hidden" value="${contractPaymentPage.id }"/>
  64. <input id="code" name="code" type="hidden" value="${contractPaymentPage.code }"/>
  65. <input id="invoiceno" name="invoiceno" type="hidden" value="${contractPaymentPage.invoiceno }"/>
  66. <input id="invoicedate" name="invoicedate" type="hidden" value="${contractPaymentPage.invoicedate }"/>
  67. <input id="auditdate" name="auditdate" type="hidden" value="${contractPaymentPage.auditdate }"/>
  68. <input id="applyerid" name="applyerid" type="hidden" value="${contractPaymentPage.applyerid }"/>
  69. <%-- <input id="supplierevaluate" name="supplierevaluate" type="hidden" value="${contractPaymentPage.supplierevaluate }"/>
  70. <input id="supplierscore" name="supplierscore" type="hidden" value="${contractPaymentPage.supplierscore }"/> --%>
  71. <input id="evaluater" name="evaluater" type="hidden" value="${contractPaymentPage.evaluater }"/>
  72. <input id="paystatus" name="paystatus" type="hidden" value="${contractPaymentPage.paystatus }"/>
  73. <input id="payOperator" name="payOperator" type="hidden" value="${contractPaymentPage.payOperator }"/>
  74. <input id="paymentamount" name="paymentamount" type="hidden" value="${contractPaymentPage.paymentamount }"/>
  75. <input id="paydate" name="paydate" type="hidden" value="${contractPaymentPage.paydate }"/>
  76. <input id="billtype" name="billtype" type="hidden" value="${contractPaymentPage.billtype }"/>
  77. <input id="maintainids" name="maintainids" type="hidden" value="${contractPaymentPage.maintainids }"/>
  78. <input id="doadd" name="doadd" type="hidden" value="0"/>
  79. <input id="needcheck" name="needcheck" type="hidden" value="1"/>
  80. <table cellpadding="0" cellspacing="1" class="formtable">
  81. <tr>
  82. <td align="right">
  83. <label class="Validform_label">合同:</label>
  84. </td>
  85. <td class="value">
  86. <c:if test="${contractPaymentPage.billtype=='service' }">
  87. <t:dictSelect id="contractid" field="contractid" type="list" dictTable="t_b_contract" dictField="id" dictText="name" defaultVal="${contractPaymentPage.contractid}"
  88. hasLabel="false" readonly="readonly" title="合同" extendJson="{class:'form-control',style:'width:500px'}"></t:dictSelect>
  89. </c:if>
  90. <c:if test="${contractPaymentPage.billtype=='purchase' }">
  91. <t:dictSelect id="contractid" field="contractid" type="list" dictTable="t_b_contract_p" dictField="id" dictText="name" defaultVal="${contractPaymentPage.contractid}"
  92. hasLabel="false" readonly="readonly" title="合同" extendJson="{class:'form-control',style:'width:500px'}"></t:dictSelect>
  93. </c:if>
  94. <span class="Validform_checktip"></span>
  95. <label class="Validform_label" style="display: none;">合同</label>
  96. </td>
  97. <td align="right">
  98. <label class="Validform_label" style="color:#1d953f;">合同有效期日期:</label>
  99. </td>
  100. <td class="value">
  101. <input id="contractStartEnd" name="contractStartEnd" type="text" style="width: 300px;color:#1d953f ;" class="inputxt"
  102. value='${contractPaymentPage.contractStartEnd}' readonly="readonly" ignore="ignore" />
  103. <span class="Validform_checktip"></span>
  104. <label class="Validform_label" style="display: none;">合同有效期日期</label>
  105. </td>
  106. </tr>
  107. <tr>
  108. <td align="right">
  109. <label class="Validform_label">合同金额:</label>
  110. </td>
  111. <td class="value">
  112. <input id="totalamount" name="totalamount" type="text" style="width: 150px" class="inputxt"
  113. value='${contractPaymentPage.totalamount}' readonly="readonly" ignore="ignore" />
  114. <span class="Validform_checktip"></span>
  115. <label class="Validform_label" style="display: none;">合同金额</label>
  116. </td>
  117. <td align="right">
  118. <label class="Validform_label">累计已支付金额:</label>
  119. </td>
  120. <td class="value">
  121. <c:if test="${contractPaymentPage.billtype=='service' }">
  122. <t:dictSelect id="totalpayment" field="totalpayment" type="list" dictTable="t_b_contract" dictField="id" dictText="totalpayment" defaultVal="${contractPaymentPage.contractid}"
  123. hasLabel="false" readonly="readonly" title="累计支付金额" extendJson="{class:'form-control',style:'width:150px'}"></t:dictSelect>
  124. </c:if>
  125. <c:if test="${contractPaymentPage.billtype=='purchase' }">
  126. <t:dictSelect id="totalpayment" field="totalpayment" type="list" dictTable="t_b_contract_p" dictField="id" dictText="totalpayment" defaultVal="${contractPaymentPage.contractid}"
  127. hasLabel="false" readonly="readonly" title="累计支付金额" extendJson="{class:'form-control',style:'width:150px'}"></t:dictSelect>
  128. </c:if>
  129. <span class="Validform_checktip"></span>
  130. <label class="Validform_label" style="display: none;">累计支付金额</label>
  131. </td>
  132. </tr>
  133. <tr>
  134. <td align="right">
  135. <label class="Validform_label">申请支付金额:</label>
  136. </td>
  137. <td class="value">
  138. <input id="applypayamount" name="applypayamount" type="text" style="width: 150px" class="inputxt" datatype="/^(-?\d+)(\.\d+)?$/"
  139. ignore="checked" oninput="changeToCHN(event)" onKeyUp="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$2.$3')"
  140. onchange="afterApplyChanged(event)"/>
  141. <label id="applyamountCHN" style="font-size: 18px"></label>
  142. </td>
  143. <td align="right">
  144. <label class="Validform_label">支付方式:</label>
  145. </td>
  146. <td class="value">
  147. <t:dictSelect id="paytype" field="paytype" type="list" typeGroupCode="paytype" defaultVal="transfer"
  148. hasLabel="false" title="支付类型" extendJson="{class:'form-control',style:'width:150px'}"></t:dictSelect>
  149. <span class="Validform_checktip"></span>
  150. <label class="Validform_label" style="display: none;">支付方式</label>
  151. </td>
  152. </tr>
  153. <tr>
  154. <td align="right">
  155. <label class="Validform_label">本次开票金额:</label>
  156. </td>
  157. <td class="value">
  158. <input id="invoiceamount" name="invoiceamount" type="text" style="width: 150px" class="inputxt" readonly="readonly" datatype="/^(-?\d+)(\.\d+)?$/" ignore="ignore" />
  159. <span class="Validform_checktip"></span>
  160. <label class="Validform_label" style="display: none;">本次开票金额</label>
  161. </td>
  162. <td align="right">
  163. <label class="Validform_label">已付至:</label>
  164. </td>
  165. <td class="value">
  166. <input id="payedPeriodEnd" name="payedPeriodEnd" type="text" style="width: 150px" class="inputxt" readonly="readonly" ignore="ignore" value='${contractPaymentPage.payedPeriodEnd}'/>
  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. <t:dictSelect id="partnerid" field="partnerid" type="list" dictTable="t_b_related_units" dictField="id" dictText="unit_name" defaultVal="${contractPaymentPage.partnerid}"
  177. hasLabel="false" readonly="readonly" title="供应商" extendJson="{class:'form-control',style:'width:300px'}"></t:dictSelect>
  178. </td>
  179. <td align="right">
  180. <label class="Validform_label">项目:</label>
  181. </td>
  182. <td class="value">
  183. <t:dictSelect id="projectid" field="projectid" type="list" dictTable="t_b_project" dictField="id" dictText="name" defaultVal="${contractPaymentPage.projectid}"
  184. hasLabel="false" readonly="readonly" title="项目" extendJson="{class:'form-control',style:'width:300px'}"></t:dictSelect>
  185. </td>
  186. </tr>
  187. <tr>
  188. <td align="right"><label class="Validform_label"> <font
  189. color="red" class="requiredIcon">*</font>开始日期:
  190. </label></td>
  191. <td class="value"><input id="periodBegin" name="periodBegin"
  192. type="text" style="width: 150px" class="Wdate"
  193. value="${contractPaymentPage.periodBegin}"
  194. onClick='WdatePicker({readOnly:true,enableKeyboard:false,enableInputMask:false,dateFmt: "yyyy-MM-dd"})'
  195. ignore="ignore" /> <span class="Validform_checktip"></span>
  196. <label class="Validform_label" style="display: none;">开始日期</label>
  197. </td>
  198. <td align="right"><label class="Validform_label"> <font
  199. color="red" class="requiredIcon">*</font>截止日期:
  200. </label></td>
  201. <td class="value"><input id="periodEnd" name="periodEnd"
  202. type="text" style="width: 150px" class="Wdate"
  203. value='${contractPaymentPage.periodEnd}'
  204. onClick='WdatePicker({readOnly:true,enableKeyboard:false,enableInputMask:false,dateFmt: "yyyy-MM-dd"})'
  205. ignore="ignore" /> <span class="Validform_checktip"></span>
  206. <label class="Validform_label" style="display: none;">截止日期</label>
  207. </td>
  208. </tr>
  209. <tr >
  210. <td align="right">
  211. <label class="Validform_label"><span color="red" class="requiredIcon">*</span>计入预算月份:</label>
  212. </td>
  213. <td class="value">
  214. <input name="budgetMonth" type="text" style="width: 150px" class="Wdate" readonly="readonly" datatype="*" onclick="WdatePicker({dateFmt: 'yyyy-MM'})"/>
  215. <span class="Validform_checktip"></span>
  216. <label class="Validform_label" style="display: none;">计入预算月份</label>
  217. </td>
  218. </tr>
  219. <tr id="pingjiaren" >
  220. <td align="right">
  221. <label class="Validform_label">本次服务评分:</label>
  222. </td>
  223. <td class="value">
  224. <input id="supplierscore" name="supplierscore" type="text" style="width: 150px" class="inputxt" readonly="readonly" ignore="ignore" value='${contractPaymentPage.supplierscore}'/>
  225. <span class="Validform_checktip"></span>
  226. <label class="Validform_label" style="display: none;">本次服务评分</label>
  227. </td>
  228. </tr>
  229. <tr id="pingjiaxinxi">
  230. <td align="right">
  231. <label class="Validform_label">供应商评价详情:</label>
  232. </td>
  233. <td class="value" rowspan="1" colspan="4">
  234. <a href="#" class="easyui-linkbutton l-btn l-btn-plain" plain="true" icon="icon-view"
  235. onclick="createdetailwindow('查看','maintainBillController.do?maintainbillSelect&cid=${param.cid}&ids=${param.maintainids}&load=detail')" >
  236. 点击查看
  237. </a>
  238. <%--<textarea id="supplierevaluate" class="inputxt" style="height: 60px; width: 600px;" name="supplierevaluate" readonly="readonly" ignore="ignore" >${contractPaymentPage.supplierevaluate}</textarea>--%>
  239. </td>
  240. </tr>
  241. <tr>
  242. <td align="right">
  243. <label class="Validform_label">评估报告:</label>
  244. </td>
  245. <td class="value">
  246. <t:webUploader auto="true" busiId="" readOnly="${param.load=='detail' || in_process}"
  247. busiTable="t_b_contract_payment"
  248. bizType="attachment"
  249. extensions="png,jpg,jpeg,bmp"
  250. name="attachment" duplicate="true" fileNumLimit="10"
  251. nullMsg="附件不可为空"></t:webUploader>
  252. <span class="Validform_checktip Validform_right" style="display: none;">文件已上传</span>
  253. </td>
  254. </tr>
  255. <tr>
  256. <td align="right">
  257. <label class="Validform_label">备注:</label>
  258. </td>
  259. <td class="value" rowspan="3" colspan="4">
  260. <textarea id="remark" class="inputxt" style="height: 60px; width: 600px;" name="remark" ignore="ignore" ></textarea>
  261. <span class="Validform_checktip"></span>
  262. <label class="Validform_label" style="display: none;">备注</label>
  263. </td>
  264. </tr>
  265. </table>
  266. <div style="width: auto;height: 200px;">
  267. <%-- 增加一个div,用于调节页面大小,否则默认太小 --%>
  268. <div style="width:800px;height:1px;"></div>
  269. <t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
  270. <t:tab href="contractPaymentController.do?contractInvoiceList&id=${contractPaymentPage.id}" icon="icon-search" title="发票明细" id="contractInvoice"></t:tab>
  271. </t:tabs>
  272. </div>
  273. </t:formvalid>
  274. <!-- 添加 附表明细 模版 -->
  275. <table style="display:none">
  276. <tbody id="add_contractInvoice_table_template">
  277. <tr>
  278. <td align="center"><div style="width: 25px;" name="xh"></div></td>
  279. <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
  280. <td align="left">
  281. <input name="contractInvoiceList[#index#].invoiceno" maxlength="128" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
  282. <label class="Validform_label" style="display: none;">发票号</label>
  283. </td>
  284. <td align="left">
  285. <input name="contractInvoiceList[#index#].invoiceamount" maxlength="14" type="text" class="inputxt" style="width:120px;"
  286. datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/" onKeyUp="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')" ignore="ignore" />
  287. <label class="Validform_label" style="display: none;">本次开票金额</label>
  288. </td>
  289. <td align="left">
  290. <input name="contractInvoiceList[#index#].invoicedate" maxlength="0" type="text" class="Wdate" onClick="WdatePicker()" style="width:120px;" ignore="ignore" />
  291. <label class="Validform_label" style="display: none;">开票日期</label>
  292. </td>
  293. </tr>
  294. </tbody>
  295. </table>
  296. </body>
  297. <script type="text/javascript" src="plug-in/tools/money.js"></script>
  298. <script src = "webpage/cn/com/lzt/contractpayment/contractPayment.js"></script>