contractp-add.jsp 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  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. $(".tabs-wrap").css('width','100%');
  39. });
  40. </script>
  41. </head>
  42. <body style="overflow-x: hidden;">
  43. <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="contractPController.do?doAdd" >
  44. <input id="id" name="id" type="hidden" value="${ContractPPage.id }"/>
  45. <input id="auditdate" name="auditdate" type="hidden" value="${ContractPPage.auditdate }"/>
  46. <input id="busstatus" name="busstatus" type="hidden" value="${ContractPPage.busstatus }"/>
  47. <input id="totalinvoice" name="totalinvoice" type="hidden" value="${ContractPPage.totalinvoice }"/>
  48. <input id="totalpayment" name="totalpayment" type="hidden" value="${ContractPPage.totalpayment }"/>
  49. <input id="totalincome" name="totalincome" type="hidden" value="${ContractPPage.totalincome }"/>
  50. <input id="type" name="type" type="hidden" value="${ContractPPage.type }"/>
  51. <table cellpadding="0" cellspacing="1" class="formtable">
  52. <tr>
  53. <td align="right">
  54. <label class="Validform_label">合同编码:</label>
  55. </td>
  56. <td class="value">
  57. <input id="code" name="code" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
  58. <span class="Validform_checktip"></span>
  59. <label class="Validform_label" style="display: none;">合同编码</label>
  60. </td>
  61. </tr>
  62. <tr>
  63. <td align="right">
  64. <label class="Validform_label"><span color="red" class="requiredIcon">*</span>合同名称:</label>
  65. </td>
  66. <td class="value">
  67. <input id="name" name="name" type="text" style="width: 350px" datatype="*" class="inputxt" ignore="checked" />
  68. <span class="Validform_checktip"></span>
  69. <label class="Validform_label" style="display: none;">合同名称</label>
  70. </td>
  71. </tr>
  72. <tr>
  73. <td align="right">
  74. <label class="Validform_label"><span color="red" class="requiredIcon">*</span>合同金额(元):</label>
  75. </td>
  76. <td class="value">
  77. <input id="totalamount" name="totalamount" type="text" style="width: 150px" class="inputxt" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/"
  78. onKeyUp="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')" oninput="changeToCHN(event)" datatype="*" ignore="checked" />
  79. <span class="Validform_checktip"></span>
  80. <label id="totalamountCHN" style="font-size: 18px"></label>
  81. </td>
  82. </tr>
  83. <tr>
  84. <td align="right">
  85. <label class="Validform_label"><span color="red" class="requiredIcon">*</span>签订日期:</label>
  86. </td>
  87. <td class="value">
  88. <input id="signdate" name="signdate" type="text" style="width: 150px" class="Wdate" datatype="*" onClick="WdatePicker()" ignore="ignore" />
  89. <span class="Validform_checktip"></span>
  90. <label class="Validform_label" style="display: none;">签订日期</label>
  91. </td>
  92. </tr>
  93. <tr>
  94. <td align="right">
  95. <label class="Validform_label"><span color="red" class="requiredIcon">*</span>开始日期:</label>
  96. </td>
  97. <td class="value">
  98. <input id="startdate" name="startdate" type="text" style="width: 150px" class="Wdate" datatype="*" onClick="WdatePicker()" ignore="ignore" />
  99. <span class="Validform_checktip"></span>
  100. <label class="Validform_label" style="display: none;">开始日期</label>
  101. </td>
  102. <td align="right">
  103. <label class="Validform_label"><span color="red" class="requiredIcon">*</span>截止日期:</label>
  104. </td>
  105. <td class="value">
  106. <input id="enddate" name="enddate" type="text" style="width: 150px" class="Wdate" datatype="*" onClick="WdatePicker()" ignore="ignore" />
  107. <span class="Validform_checktip"></span>
  108. <label class="Validform_label" style="display: none;">截止日期</label>
  109. </td>
  110. </tr>
  111. <tr>
  112. <td align="right">
  113. <label class="Validform_label"><span color="red" class="requiredIcon">*</span>供应商:</label>
  114. </td>
  115. <td class="value">
  116. <input readonly="true" type="text" id="partnerName" name="partnerName" style="width: 157px" placeholder="请选择供应商" onclick="openPartnerSelect()">
  117. <input id="partnerid" name="partnerid" type="hidden" value="">
  118. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="partnerSearch" onclick="openPartnerSelect()">选择</a>
  119. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="partnerRedo" onclick="callbackCleanPartner()">清空</a>
  120. </td>
  121. <td align="right">
  122. <label class="Validform_label"><span color="red" class="requiredIcon">*</span>项目:</label>
  123. </td>
  124. <td class="value">
  125. <input readonly="true" type="text" id="projectName" name="projectName" style="width: 157px" placeholder="请选择项目名称" onclick="openDepartmentSelect()">
  126. <input id="projectid" name="projectid" type="hidden" value="">
  127. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="departSearch" onclick="openDepartmentSelect()">选择</a>
  128. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="departRedo" onclick="callbackClean()">清空</a>
  129. </td>
  130. </tr>
  131. <tr>
  132. <td align="right">
  133. <label class="Validform_label">第三方单位:</label>
  134. </td>
  135. <td class="value">
  136. <input id="thirdpartner" name="thirdpartner" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
  137. <span class="Validform_checktip"></span>
  138. <label class="Validform_label" style="display: none;">第三方单位</label>
  139. </td>
  140. </tr>
  141. <tr>
  142. <td align="right">
  143. <label class="Validform_label">合同描述:</label>
  144. </td>
  145. <td class="value" rowspan="3" colspan="4">
  146. <textarea id="description" class="inputxt" style="height: 60px; width: 600px;" name="description" ignore="ignore" ></textarea>
  147. <span class="Validform_checktip"></span>
  148. <label class="Validform_label" style="display: none;">合同描述</label>
  149. </td>
  150. </tr>
  151. </table>
  152. <div style="width: auto;height: 200px;">
  153. <%-- 增加一个div,用于调节页面大小,否则默认太小 --%>
  154. <div style="width:800px;height:1px;"></div>
  155. <t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
  156. <t:tab href="contractPController.do?contractPItemList&id=${ContractPPage.id}" icon="icon-search" title="物料明细" id="contractItem"></t:tab>
  157. <t:tab href="contractPController.do?contractPPayruleList&id=${ContractPPage.id}" icon="icon-search" title="支付条款" id="contractPayrule"></t:tab>
  158. </t:tabs>
  159. </div>
  160. </t:formvalid>
  161. <!-- 添加 附表明细 模版 -->
  162. <table style="display:none">
  163. <tbody id="add_contractPayrule_table_template">
  164. <tr>
  165. <td align="center"><div style="width: 25px;" name="xh"></div></td>
  166. <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
  167. <td align="left">
  168. <input name="contractPPayruleList[#index#].payperiod" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
  169. <label class="Validform_label" style="display: none;">支付期间</label>
  170. </td>
  171. <td align="left">
  172. <input name="contractPPayruleList[#index#].amount" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="/^(-?\d+)(\.\d+)?$/" ignore="ignore" />
  173. <label class="Validform_label" style="display: none;">金额</label>
  174. </td>
  175. <td align="left">
  176. <input name="contractPPayruleList[#index#].percent" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" datatype="/^(-?\d+)(\.\d+)?$/" ignore="ignore" />
  177. <label class="Validform_label" style="display: none;">支付比例</label>
  178. </td>
  179. <td align="left">
  180. <t:dictSelect field="contractPPayruleList[#index#].paytype" type="list" extendJson="{class:'form-control',style:'width:120px'}"
  181. typeGroupCode="paytype" hasLabel="false" title="支付类型" datatype="*" defaultVal="transfer"></t:dictSelect>
  182. <label class="Validform_label" style="display: none;">支付类型</label>
  183. </td>
  184. <td align="left">
  185. <input name="contractPPayruleList[#index#].remark" maxlength="256" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
  186. <label class="Validform_label" style="display: none;">备注</label>
  187. </td>
  188. </tr>
  189. </tbody>
  190. <tbody id="add_contractItem_table_template">
  191. <tr>
  192. <td align="center"><div style="width: 25px;" name="xh"></div></td>
  193. <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
  194. <td align="left">
  195. <input name="contractPItemList[#index#].gname" maxlength="36" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
  196. <label class="Validform_label" style="display: none;">物料</label>
  197. </td>
  198. <td align="left">
  199. <input name="contractPItemList[#index#].price" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/" ignore="ignore" />
  200. <label class="Validform_label" style="display: none;">单价</label>
  201. </td>
  202. <td align="left">
  203. <t:dictSelect field="contractPItemList[#index#].unit" type="list" extendJson="{class:'form-control',style:'width:120px'}"
  204. typeGroupCode="metering_calcu_unit" hasLabel="false" title="计量单位" datatype="*"></t:dictSelect>
  205. <!-- <input name="contractPItemList[#index#].unit" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" /> -->
  206. <label class="Validform_label" style="display: none;">单位</label>
  207. </td>
  208. <td align="left">
  209. <input name="contractPItemList[#index#].quantity" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/" ignore="ignore" />
  210. <label class="Validform_label" style="display: none;">数量</label>
  211. </td>
  212. <td align="left">
  213. <input name="contractPItemList[#index#].amount" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/" ignore="ignore" />
  214. <label class="Validform_label" style="display: none;">金额</label>
  215. </td>
  216. <!-- <td align="left">
  217. <input name="contractPItemList[#index#].gname" maxlength="36" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
  218. <label class="Validform_label" style="display: none;">货品</label>
  219. </td>
  220. <td align="left">
  221. <input name="contractPItemList[#index#].dname" maxlength="36" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
  222. <label class="Validform_label" style="display: none;">设备</label>
  223. </td> -->
  224. <td align="left">
  225. <input name="contractPItemList[#index#].content" maxlength="256" type="text" class="inputxt" style="width:220px;" ignore="ignore" />
  226. <label class="Validform_label" style="display: none;">条款内容</label>
  227. </td>
  228. </tr>
  229. </tbody>
  230. </table>
  231. </body>
  232. <script type="text/javascript" src="plug-in/tools/money.js"></script>
  233. <script src = "webpage/cn/com/lzt/contractp/contractp.js"></script>