contractp-update-mobile.jsp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <meta http-equiv="Cache-Control" content="no-cache"/>
  8. <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=2.0"/>
  9. <title>物料采购合同</title>
  10. <style>
  11. .ui-button {
  12. display: inline-block;
  13. padding: 2px 2px;
  14. margin-bottom: 0;
  15. font-size: 8px;
  16. font-weight: normal;
  17. line-height: 1.42857143;
  18. text-align: center;
  19. white-space: nowrap;
  20. vertical-align: middle;
  21. -ms-touch-action: manipulation;
  22. touch-action: manipulation;
  23. cursor: pointer;
  24. -webkit-user-select: none;
  25. -moz-user-select: none;
  26. -ms-user-select: none;
  27. user-select: none;
  28. background-image: none;
  29. border: 1px solid transparent;
  30. border-radius: 4px;
  31. }
  32. </style>
  33. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  34. <script type="text/javascript">
  35. $(document).ready(function(){
  36. $('#tt').tabs({
  37. onSelect:function(title){
  38. $('#tt .panel-body').css('width','auto');
  39. }
  40. });
  41. var chn = convertCurrency($("#totalamount").val());
  42. //event.currentTarget.validform_lastval
  43. var label = document.getElementById("totalamountCHN");
  44. label.innerText = chn;
  45. // 查看的时候隐藏选择按钮及清除按钮
  46. if(location.href.indexOf("load=detail")!=-1 ){
  47. $("#partnerSearch").remove();
  48. $("#partnerRedo").remove();
  49. $("#projectSearch").remove();
  50. $("#projectRedo").remove();
  51. if ($("#viewFlag").val() != null && $("#viewFlag").val() == '1'){
  52. // $('#tt').tabs('getTab',"开票明细").panel('options').tab.hide();
  53. // $('#tt').tabs('getTab',"支付进度").panel('options').tab.hide();
  54. }
  55. /* $("#buttomTable").find('tr:eq(2)').remove(); */
  56. }else if ($("#viewFlag").val() != null && $("#viewFlag").val() == '1'){
  57. $("#partnerSearch").remove();
  58. $("#partnerRedo").remove();
  59. $("#projectSearch").remove();
  60. $("#projectRedo").remove();
  61. // $('#tt').tabs('getTab',"开票明细").panel('options').tab.hide();
  62. // $('#tt').tabs('getTab',"支付进度").panel('options').tab.hide();
  63. $(":input").attr("disabled","true");
  64. }else{
  65. // $('#tt').tabs('getTab',"开票明细").panel('options').tab.hide();
  66. // $('#tt').tabs('getTab',"支付进度").panel('options').tab.hide();
  67. }
  68. if(location.href.indexOf("flag=1")!=-1){
  69. $("#tdbtn").show();
  70. }
  71. $(".tabs-wrap").css('width','100%');
  72. });
  73. function btn_ok(){
  74. $("#btnsub").click();
  75. tip("已保存,请重新提交审批");
  76. }
  77. function popWriteOption1(title,width,height,buttonTitle,taskId,nextNodeCount,nextNodeId){
  78. popWriteOption(title,width,height,buttonTitle,taskId,nextNodeCount,nextNodeId);
  79. }
  80. </script>
  81. </head>
  82. <body style="overflow-x: hidden;">
  83. <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="contractPController.do?doUpdate" >
  84. <input id="id" name="id" type="hidden" value="${ContractPPage.id }"/>
  85. <input id="auditdate" name="auditdate" type="hidden" value="${ContractPPage.auditdate }"/>
  86. <input id="busstatus" name="busstatus" type="hidden" value="${ContractPPage.busstatus }"/>
  87. <input id="totalinvoice" name="totalinvoice" type="hidden" value="${ContractPPage.totalinvoice }"/>
  88. <input id="totalpayment" name="totalpayment" type="hidden" value="${ContractPPage.totalpayment }"/>
  89. <input id="totalincome" name="totalincome" type="hidden" value="${ContractPPage.totalincome }"/>
  90. <input id="type" name="type" type="hidden" value="${ContractPPage.type }"/>
  91. <input name="viewFlag" id="viewFlag" value="${viewFlag}" style="display:none" type="hidden" disabled="disabled"/>
  92. <table cellpadding="0" cellspacing="1" class="formtable">
  93. <tr id="tdbtn" style="display: none" >
  94. <td height="38px" align="right" > <!-- style="display: none" -->
  95. <!-- <a href="#" class="easyui-linkbutton l-btn" plain="true" iconcls="icon-le-back" onclick="history.go(-1)">返回</a> -->
  96. <div style="display:none"><input type="submit" id ="btnsub" value=""/></div>
  97. <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-le-ok" onclick="btn_ok()"> &nbsp;&nbsp;&nbsp;保&nbsp;&nbsp;存&nbsp;&nbsp;合&nbsp;&nbsp;同&nbsp; &nbsp;&nbsp; </a>
  98. </td>
  99. </tr>
  100. <tr>
  101. <td align="right">
  102. <label class="Validform_label">合同编码:</label>
  103. </td>
  104. <td class="value">
  105. <input id="code" name="code" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${ContractPPage.code}'/>
  106. <span class="Validform_checktip"></span>
  107. <label class="Validform_label" style="display: none;">合同编码</label>
  108. </td>
  109. </tr>
  110. <tr>
  111. <td align="right">
  112. <label class="Validform_label">合同名称:</label>
  113. </td>
  114. <td class="value">
  115. <input id="name" name="name" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${ContractPPage.name}'/>
  116. <span class="Validform_checktip"></span>
  117. <label class="Validform_label" style="display: none;">合同名称</label>
  118. </td>
  119. </tr>
  120. <tr>
  121. <td align="right">
  122. <label class="Validform_label">合同金额(元):</label>
  123. </td>
  124. <td class="value">
  125. <input id="totalamount" name="totalamount" type="text" style="width: 150px" class="inputxt" datatype="/^(-?\d+)(\.\d+)?$/" ignore="ignore"
  126. onKeyUp="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')" oninput="changeToCHN(event)" value='${ContractPPage.totalamount}'/>
  127. <span class="Validform_checktip"></span>
  128. <br><label id="totalamountCHN" style="font-size: 18px"></label>
  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="signdate" name="signdate" type="text" style="width: 150px" class="Wdate" datatype="*" onClick="WdatePicker()" ignore="checked" value='<fmt:formatDate value='${ContractPPage.signdate}' type="date" pattern="yyyy-MM-dd"/>'/>
  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">
  146. <input id="startdate" name="startdate" type="text" style="width: 150px" class="Wdate" datatype="*" onClick="WdatePicker()" ignore="checked" value='<fmt:formatDate value='${ContractPPage.startdate}' type="date" pattern="yyyy-MM-dd"/>'/>
  147. <span class="Validform_checktip"></span>
  148. <label class="Validform_label" style="display: none;">开始日期</label>
  149. </td>
  150. </tr>
  151. <tr>
  152. <td align="right">
  153. <label class="Validform_label">截止日期:</label>
  154. </td>
  155. <td class="value">
  156. <input id="enddate" name="enddate" type="text" style="width: 150px" class="Wdate" datatype="*" onClick="WdatePicker()" ignore="checked" value='<fmt:formatDate value='${ContractPPage.enddate}' type="date" pattern="yyyy-MM-dd"/>'/>
  157. <span class="Validform_checktip"></span>
  158. <label class="Validform_label" style="display: none;">截止日期</label>
  159. </td>
  160. </tr>
  161. <tr>
  162. <td align="right">
  163. <label class="Validform_label">供应商:</label>
  164. </td>
  165. <td class="value">
  166. <input readonly="true" type="text" id="partnerName" name="partnerName" value='${ContractPPage.partnerName}' style="width: 157px" placeholder="请选择供应商" onclick="openPartnerSelect()">
  167. <input id="partnerid" name="partnerid" type="hidden" value='${ContractPPage.partnerid}'>
  168. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="partnerSearch" onclick="openPartnerSelect()">选择</a>
  169. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="partnerRedo" onclick="callbackCleanPartner()">清空</a>
  170. <label class="Validform_label" style="display: none;">供应商</label>
  171. </td>
  172. </tr>
  173. <tr>
  174. <td align="right">
  175. <label class="Validform_label">项目:</label>
  176. </td>
  177. <td class="value">
  178. <input readonly="true" type="text" id="projectName" name="projectName" value='${ContractPPage.projectName}' style="width: 157px" placeholder="请选择项目名称" onclick="openDepartmentSelect()">
  179. <input id="projectid" name="projectid" type="hidden" value='${ContractPPage.projectid}'>
  180. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="projectSearch" onclick="openDepartmentSelect()">选择</a>
  181. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="projectRedo" onclick="callbackClean()">清空</a>
  182. <label class="Validform_label" style="display: none;">项目</label>
  183. </td>
  184. </tr>
  185. <tr>
  186. <td align="right">
  187. <label class="Validform_label">第三方单位:</label>
  188. </td>
  189. <td class="value">
  190. <input id="thirdpartner" name="thirdpartner" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${ContractPPage.thirdpartner}'/>
  191. <span class="Validform_checktip"></span>
  192. <label class="Validform_label" style="display: none;">第三方单位</label>
  193. </td>
  194. </tr>
  195. <tr>
  196. <td align="right">
  197. <label class="Validform_label">合同描述:</label>
  198. </td>
  199. <td class="value" rowspan="3" >
  200. <textarea id="description" class="inputxt" style="height: 60px; " name="description" ignore="ignore" >${ContractPPage.description}</textarea>
  201. <span class="Validform_checktip"></span>
  202. <label class="Validform_label" style="display: none;">合同描述</label>
  203. </td>
  204. </tr>
  205. <%-- <tr >
  206. <td colspan="4" style="text-align:center;>
  207. <input id="eli" value="${flage}" type="hidden"/>
  208. <c:forEach items="${transitionList}" var="trans">
  209. <li style="list-style:none;"><button class="btn btn-default" style="width:80px; height:35px;border-radius:5px;background:#3275C6;border:0 none;margin-right:5px;color:white;" type="button" id="${trans.nextnode}"
  210. onclick="popWriteOption1('<t:mutiLang langKey="common.task.operate"/>',600,300,'${trans.Transition }','${taskId}',${nextCodeCount},'${trans.nextnode}','${trans.nextnodeName}')" >${trans.Transition }<tton>
  211. </c:forEach>
  212. </td>
  213. </tr> --%>
  214. </table>
  215. <div style="width: auto;height: 200px;display: none;">
  216. <%-- 增加一个div,用于调节页面大小,否则默认太小 --%>
  217. <div style="width:800px;height:1px;"></div>
  218. <t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
  219. <%-- <t:tab href="contractController.do?contractPItemList&id=${ContractPPage.id}" icon="icon-search" title="货品、服务明细" id="contractItem"></t:tab>
  220. <t:tab href="contractController.do?contractPPayruleList&id=${ContractPPage.id}" icon="icon-search" title="支付条款" id="contractPayrule"></t:tab> --%>
  221. </t:tabs>
  222. </div>
  223. </t:formvalid>
  224. <!-- 添加 附表明细 模版 -->
  225. <table style="display:none">
  226. <tbody id="add_contractPayrule_table_template">
  227. <tr>
  228. <td align="center"><div style="width: 25px;" name="xh"></div></td>
  229. <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
  230. <!-- <td align="left">
  231. <input name="contractPPayruleList[#index#].contractid" maxlength="36" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
  232. <label class="Validform_label" style="display: none;">合同</label>
  233. </td> -->
  234. <td align="left">
  235. <input name="contractPPayruleList[#index#].payperiod" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
  236. <label class="Validform_label" style="display: none;">支付期间</label>
  237. </td>
  238. <td align="left">
  239. <input name="contractPPayruleList[#index#].amount" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="/^(-?\d+)(\.\d+)?$/" ignore="ignore" />
  240. <label class="Validform_label" style="display: none;">金额</label>
  241. </td>
  242. <td align="left">
  243. <input name="contractPPayruleList[#index#].percent" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" datatype="/^(-?\d+)(\.\d+)?$/" ignore="ignore" />
  244. <label class="Validform_label" style="display: none;">支付比例</label>
  245. </td>
  246. <td align="left">
  247. <t:dictSelect field="contractPPayruleList[#index#].paytype" type="list" extendJson="{class:'form-control',style:'width:120px'}"
  248. typeGroupCode="paytype" hasLabel="false" title="支付类型" datatype="*" defaultVal="transfer"></t:dictSelect>
  249. <label class="Validform_label" style="display: none;">支付类型</label>
  250. </td>
  251. <td align="left">
  252. <input name="contractPPayruleList[#index#].remark" maxlength="256" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
  253. <label class="Validform_label" style="display: none;">备注</label>
  254. </td>
  255. </tr>
  256. </tbody>
  257. <tbody id="add_contractItem_table_template">
  258. <tr>
  259. <td align="center"><div style="width: 25px;" name="xh"></div></td>
  260. <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
  261. <td align="left">
  262. <input name="contractPItemList[#index#].gname" maxlength="36" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
  263. <label class="Validform_label" style="display: none;">物料</label>
  264. </td>
  265. <td align="left">
  266. <input name="contractPItemList[#index#].price" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/" ignore="ignore" />
  267. <label class="Validform_label" style="display: none;">单价</label>
  268. </td>
  269. <td align="left">
  270. <t:dictSelect field="contractPItemList[#index#].unit" type="list" extendJson="{class:'form-control',style:'width:120px'}"
  271. typeGroupCode="metering_calcu_unit" hasLabel="false" title="计量单位" datatype="*"></t:dictSelect>
  272. <!-- <input name="contractPItemList[#index#].unit" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" /> -->
  273. <label class="Validform_label" style="display: none;">单位</label>
  274. </td>
  275. <td align="left">
  276. <input name="contractPItemList[#index#].quantity" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/" ignore="ignore" />
  277. <label class="Validform_label" style="display: none;">数量</label>
  278. </td>
  279. <td align="left">
  280. <input name="contractPItemList[#index#].amount" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/" ignore="ignore" />
  281. <label class="Validform_label" style="display: none;">金额</label>
  282. </td>
  283. <!-- <td align="left">
  284. <input name="contractPItemList[#index#].gname" maxlength="36" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
  285. <label class="Validform_label" style="display: none;">货品</label>
  286. </td>
  287. <td align="left">
  288. <input name="contractPItemList[#index#].dname" maxlength="36" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
  289. <label class="Validform_label" style="display: none;">设备</label>
  290. </td> -->
  291. <td align="left">
  292. <input name="contractPItemList[#index#].content" maxlength="256" type="text" class="inputxt" style="width:220px;" ignore="ignore" />
  293. <label class="Validform_label" style="display: none;">条款内容</label>
  294. </td>
  295. </tr>
  296. </tbody>
  297. </table>
  298. </body>
  299. <script type="text/javascript" src="plug-in/tools/money.js"></script>
  300. <script src = "webpage/cn/com/lzt/contractp/contractp.js"></script>