contract-update-mobile2.jsp 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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="contractController.do?doUpdate" >
  84. <input id="id" name="id" type="hidden" value="${contractPage.id }"/>
  85. <input id="auditdate" name="auditdate" type="hidden" value="${contractPage.auditdate }"/>
  86. <input id="busstatus" name="busstatus" type="hidden" value="${contractPage.busstatus }"/>
  87. <input id="totalinvoice" name="totalinvoice" type="hidden" value="${contractPage.totalinvoice }"/>
  88. <input id="totalpayment" name="totalpayment" type="hidden" value="${contractPage.totalpayment }"/>
  89. <input id="totalincome" name="totalincome" type="hidden" value="${contractPage.totalincome }"/>
  90. <input id="type" name="type" type="hidden" value="${contractPage.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='${contractPage.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='${contractPage.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='${contractPage.totalamount}'/>
  127. <span class="Validform_checktip"></span>
  128. <br><label id="totalamountCHN" style="font-size: 18px"></label>
  129. </td>
  130. </tr>
  131. <tr id="specialTotalAmount" style="display: none">
  132. <td align="right">
  133. <label class="Validform_label">项目专项金额(元):</label>
  134. </td>
  135. <td class="value">
  136. <input id="specialAmount" name="specialAmount" type="text" style="width: 150px" class="inputxt" datatype="/^(-?\d+)(\.\d+)?$/" ignore="ignore"
  137. readonly="readonly" value='${specialTotalAmount}'/>
  138. <span class="Validform_checktip"></span>
  139. <label style="font-size: 18px"></label>
  140. </td>
  141. </tr>
  142. <tr>
  143. <td align="right">
  144. <label class="Validform_label">累计已签专项金额(元):</label>
  145. </td>
  146. <td class="value">
  147. <input id="contractedAmount" name="contractedAmount" type="text" style="width: 150px" class="inputxt" datatype="/^(-?\d+)(\.\d+)?$/" ignore="ignore"
  148. readonly="readonly" value='${contractedAmount}'/>
  149. <span class="Validform_checktip"></span>
  150. <label style="font-size: 18px"></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="signdate" name="signdate" type="text" style="width: 150px" class="Wdate" datatype="*" onClick="WdatePicker()" ignore="checked" value='<fmt:formatDate value='${contractPage.signdate}' type="date" pattern="yyyy-MM-dd"/>'/>
  159. <span class="Validform_checktip"></span>
  160. <label class="Validform_label" style="display: none;">签订日期</label>
  161. </td>
  162. </tr>
  163. <tr>
  164. <td align="right">
  165. <label class="Validform_label">服务开始日期:</label>
  166. </td>
  167. <td class="value">
  168. <input id="startdate" name="startdate" type="text" style="width: 150px" class="Wdate" datatype="*" onClick="WdatePicker()" ignore="checked" value='<fmt:formatDate value='${contractPage.startdate}' type="date" pattern="yyyy-MM-dd"/>'/>
  169. <span class="Validform_checktip"></span>
  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 id="enddate" name="enddate" type="text" style="width: 150px" class="Wdate" datatype="*" onClick="WdatePicker()" ignore="checked" value='<fmt:formatDate value='${contractPage.enddate}' type="date" pattern="yyyy-MM-dd"/>'/>
  179. <span class="Validform_checktip"></span>
  180. <label class="Validform_label" style="display: none;">失效日期</label>
  181. </td>
  182. </tr>
  183. <tr>
  184. <td align="right">
  185. <label class="Validform_label">供应商:</label>
  186. </td>
  187. <td class="value">
  188. <input readonly="true" type="text" id="partnerName" name="partnerName" value='${contractPage.partnerName}' style="width: 157px" placeholder="请选择供应商" onclick="openPartnerSelect()">
  189. <input id="partnerid" name="partnerid" type="hidden" value='${contractPage.partnerid}'>
  190. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="partnerSearch" onclick="openPartnerSelect()">选择</a>
  191. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="partnerRedo" onclick="callbackCleanPartner()">清空</a>
  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">
  200. <input readonly="true" type="text" id="projectName" name="projectName" value='${contractPage.projectName}' style="width: 157px" placeholder="请选择项目名称" onclick="openDepartmentSelect()">
  201. <input id="projectid" name="projectid" type="hidden" value='${contractPage.projectid}'>
  202. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="projectSearch" onclick="openDepartmentSelect()">选择</a>
  203. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="projectRedo" onclick="callbackClean()">清空</a>
  204. <label class="Validform_label" style="display: none;">项目</label>
  205. </td>
  206. </tr>
  207. <tr>
  208. <td align="right">
  209. <label class="Validform_label">第三方单位:</label>
  210. </td>
  211. <td class="value">
  212. <input id="thirdpartner" name="thirdpartner" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${contractPage.thirdpartner}'/>
  213. <span class="Validform_checktip"></span>
  214. <label class="Validform_label" style="display: none;">第三方单位</label>
  215. </td>
  216. </tr>
  217. <tr>
  218. <td align="right">
  219. <label class="Validform_label">合同描述:</label>
  220. </td>
  221. <td class="value" rowspan="3" >
  222. <textarea id="description" class="inputxt" style="height: 60px; " name="description" ignore="ignore" >${contractPage.description}</textarea>
  223. <span class="Validform_checktip"></span>
  224. <label class="Validform_label" style="display: none;">合同描述</label>
  225. </td>
  226. </tr>
  227. <%-- <tr >
  228. <td colspan="4" style="text-align:center;>
  229. <input id="eli" value="${flage}" type="hidden"/>
  230. <c:forEach items="${transitionList}" var="trans">
  231. <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}"
  232. onclick="popWriteOption1('<t:mutiLang langKey="common.task.operate"/>',600,300,'${trans.Transition }','${taskId}',${nextCodeCount},'${trans.nextnode}','${trans.nextnodeName}')" >${trans.Transition }<tton>
  233. </c:forEach>
  234. </td>
  235. </tr> --%>
  236. </table>
  237. <div style="width: auto;height: 200px;display: none;">
  238. <%-- 增加一个div,用于调节页面大小,否则默认太小 --%>
  239. <div style="width:800px;height:1px;"></div>
  240. <t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
  241. <%-- <t:tab href="contractController.do?contractItemList&id=${contractPage.id}" icon="icon-search" title="货品、服务明细" id="contractItem"></t:tab>
  242. <t:tab href="contractController.do?contractPayruleList&id=${contractPage.id}" icon="icon-search" title="支付条款" id="contractPayrule"></t:tab> --%>
  243. </t:tabs>
  244. </div>
  245. </t:formvalid>
  246. <!-- 添加 附表明细 模版 -->
  247. <table style="display:none">
  248. <tbody id="add_contractPayrule_table_template">
  249. <tr>
  250. <td align="center"><div style="width: 25px;" name="xh"></div></td>
  251. <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
  252. <!-- <td align="left">
  253. <input name="contractPayruleList[#index#].contractid" maxlength="36" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
  254. <label class="Validform_label" style="display: none;">合同</label>
  255. </td> -->
  256. <td align="left">
  257. <input name="contractPayruleList[#index#].payperiod" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
  258. <label class="Validform_label" style="display: none;">支付期间</label>
  259. </td>
  260. <td align="left">
  261. <input name="contractPayruleList[#index#].amount" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="/^(-?\d+)(\.\d+)?$/" ignore="ignore" />
  262. <label class="Validform_label" style="display: none;">金额</label>
  263. </td>
  264. <td align="left">
  265. <input name="contractPayruleList[#index#].percent" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" datatype="/^(-?\d+)(\.\d+)?$/" ignore="ignore" />
  266. <label class="Validform_label" style="display: none;">支付比例</label>
  267. </td>
  268. <td align="left">
  269. <t:dictSelect field="contractPayruleList[#index#].paytype" type="list" extendJson="{class:'form-control',style:'width:120px'}"
  270. typeGroupCode="paytype" hasLabel="false" title="支付类型" datatype="*" defaultVal="transfer"></t:dictSelect>
  271. <label class="Validform_label" style="display: none;">支付类型</label>
  272. </td>
  273. <td align="left">
  274. <input name="contractPayruleList[#index#].remark" maxlength="256" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
  275. <label class="Validform_label" style="display: none;">备注</label>
  276. </td>
  277. </tr>
  278. </tbody>
  279. <tbody id="add_contractItem_table_template">
  280. <tr>
  281. <td align="center"><div style="width: 25px;" name="xh"></div></td>
  282. <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
  283. <td align="left">
  284. <input name="contractItemList[#index#].sname" 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="contractItemList[#index#].price" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/" ignore="ignore" />
  289. <label class="Validform_label" style="display: none;">单价</label>
  290. </td>
  291. <td align="left">
  292. <t:dictSelect field="contractItemList[#index#].unit" type="list" extendJson="{class:'form-control',style:'width:120px'}"
  293. typeGroupCode="metering_calcu_unit" hasLabel="false" title="计量单位" datatype="*"></t:dictSelect>
  294. <!-- <input name="contractItemList[#index#].unit" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" /> -->
  295. <label class="Validform_label" style="display: none;">单位</label>
  296. </td>
  297. <td align="left">
  298. <input name="contractItemList[#index#].quantity" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/" ignore="ignore" />
  299. <label class="Validform_label" style="display: none;">数量</label>
  300. </td>
  301. <td align="left">
  302. <input name="contractItemList[#index#].amount" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/" ignore="ignore" />
  303. <label class="Validform_label" style="display: none;">金额</label>
  304. </td>
  305. <!-- <td align="left">
  306. <input name="contractItemList[#index#].gname" maxlength="36" 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="contractItemList[#index#].dname" maxlength="36" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
  311. <label class="Validform_label" style="display: none;">设备</label>
  312. </td> -->
  313. <td align="left">
  314. <input name="contractItemList[#index#].content" maxlength="256" type="text" class="inputxt" style="width:220px;" ignore="ignore" />
  315. <label class="Validform_label" style="display: none;">条款内容</label>
  316. </td>
  317. </tr>
  318. </tbody>
  319. </table>
  320. </body>
  321. <script type="text/javascript" src="plug-in/tools/money.js"></script>
  322. <script src = "webpage/cn/com/lzt/contract/contract.js"></script>