processContract.jsp 68 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133
  1. <%@page import="com.yw.bpm.system.util.SystemUtil" %>
  2. <%@page import="com.yw.core.session.OASession" %>
  3. <%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
  4. <jsp:useBean id="oasession" class="com.yw.core.session.OASession" scope="session"/>
  5. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  6. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  8. <html class="width960">
  9. <head>
  10. <title>流程审批</title>
  11. <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
  12. <META http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate">
  13. <meta http-equiv="X-UA-Compatible" content="IE=edge;">
  14. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css"/>
  15. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css"/>
  16. <link href="${pageContext.request.contextPath}/yw/bpm/form.css" rel="stylesheet" type="text/css"/>
  17. <script type="text/javascript" src="/shares/js/jquery-1.8.2.js"></script>
  18. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  19. <script type="text/javascript" src="/shares/js/constant.js"></script>
  20. <script type="text/javascript" src="/shares/js/common.js"></script>
  21. <script type="text/javascript" src="/shares/js/yw/bpm/oa.js"></script>
  22. <script type="text/javascript" src="/shares/js/yw/bpm/customflow/customFlow.js"></script>
  23. <script type="text/javascript" src="/shares/js/file.js"></script>
  24. <script type="text/javascript" src="/shares/datePicker/WdatePicker.js"></script>
  25. <script type="text/javascript" src="${pageContext.request.contextPath}/yw/contract/contractFlowCustom/js/contract.js"></script>
  26. <script type="text/javascript" src="/shares/js/yw/bpm/seal/seal.js"></script>
  27. <script type="text/javascript">
  28. var insId = "${requestScope.flow.insId}";
  29. var formId = "${requestScope.flow.formId.formId}";
  30. var table_fields = "${curTacheModel.table_fields}";
  31. var departmental_opinion = table_fields.indexOf(",departmental_opinion,") > -1;
  32. var dgm_opinion = table_fields.indexOf(",deputy_general_manager_opinion,") > -1;
  33. var audit_dgm_opinion = table_fields.indexOf(",audit_deputy_general_manager_opinion,") > -1;
  34. var gm_opinion = table_fields.indexOf(",general_manager_opinion,") > -1;
  35. var finance_opinion = table_fields.indexOf(",finance_opinion,") > -1;
  36. var chairman_opinion = table_fields.indexOf(",chairman_opinion,") > -1;
  37. var se = "${curTacheModel.n_se}";
  38. $(function () {
  39. // 初始化合同类型监听器
  40. initContractTypeListener();
  41. if (se != 1) {
  42. $("#addBuyInfo").remove();
  43. $(".substract1").remove();
  44. $("#addFromExcel").remove();
  45. $("#addPayInfo").remove();
  46. $(".substract2").remove();
  47. $(".TextDisplay").each(function (i, v) { // 将input隐藏,显示该input的文本值(不带文本框)
  48. $(v).hide();
  49. if ($(v).val() == '') {
  50. //$(v).after('------------');
  51. } else {
  52. $(v).after($(v).val());
  53. }
  54. });
  55. }else{
  56. // 发起环节:根据当前合同类型初始化需方供方显示(保留原有值)
  57. var contractType = $("#contract_type").val();
  58. if(contractType) {
  59. adjustPartyDisplay(contractType, true);
  60. }
  61. addMaterialIdAndName();
  62. addPayIdAndName();
  63. updateContractMoneyState();
  64. initPriceForProcess();
  65. }
  66. $("#contract_signdate").ligerDateEditor({ showTime: false, labelAlign: 'left'});
  67. loadTypeTree("selectUserButton1",{type:"singleuser",tab:"1,3,8",backId:"salesman",backName:"salesman_name"});
  68. loadTypeTree("selectDeptButton",{type:"singledept",tab:"1",backId:"duty_department",backName:"duty_department_name"});
  69. loadTypeTree("selectUserButton2",{type:"singleuser",tab:"1,3,8",backId:"duty_man",backName:"duty_man_name"});
  70. $("#contract_startdate").ligerDateEditor({ showTime: false, labelAlign: 'left'});
  71. $("#contract_enddate").ligerDateEditor({ showTime: false, labelAlign: 'left'});
  72. //点击添加tr
  73. $("#addBuyInfo").click(function () {
  74. material_search();
  75. });
  76. $("#addPayInfo").click(function () {
  77. addPayInfo();
  78. addPayIdAndName();
  79. });
  80. //删除某行数据
  81. $(".substract1").live('click', function () {
  82. var obj = $(this).parent().parent();
  83. $.ligerDialog.confirm('确定删除该行', function (yes) {
  84. if (yes == true) {
  85. obj.remove();
  86. addMaterialIdAndName();
  87. /* // 检查物料行是否为空
  88. if ($(".startTr1").not(".hide").length === 0) {
  89. $("#purchaseId").val('');
  90. $("#purchaseNumber").val('');
  91. } */
  92. calculateTotalPrice();
  93. updateContractMoneyState();
  94. // 检查是否需要删除付款信息
  95. checkAndRemovePaymentInfo();
  96. }
  97. });
  98. });
  99. $(".substract2").live('click', function () {
  100. var obj = $(this).parent().parent();
  101. $.ligerDialog.confirm('确定删除该行', function (yes) {
  102. if (yes == true) {
  103. obj.remove();
  104. addPayIdAndName();
  105. }
  106. });
  107. });
  108. // 监听合同金额手动输入
  109. $("#contract_money").on('input', function() {
  110. var contractMoney = parseFloat($("#contract_money").val());
  111. if(contractMoney){
  112. // 标记为用户手动输入
  113. $(this).data("manual-input", true);
  114. }else{
  115. $(this).removeData("manual-input");
  116. }
  117. //calculatePaymentAmount();
  118. });
  119. // 监听付款比例变化
  120. $(document).on('input', '.startTr2:not(.hide) .proportion,.startTr2:not(.hide) .amountPaid', function() {
  121. calculatePaymentAmount();
  122. });
  123. // 物料输入变化时更新状态
  124. $(document).on('input', '.startTr1:not(.hide) input.price, .startTr1:not(.hide) input.priceTax, .startTr1:not(.hide) input.cess, .startTr1:not(.hide) input.qty', function () {
  125. var row = $(this).closest('tr')[0];
  126. calculatePrice(row);
  127. });
  128. $("#contract_money").on('blur', function() {
  129. var contractMoney = parseFloat($(this).val()) || 0;
  130. var totalPrice = parseFloat($("#totalPrice").val()) || 0;
  131. // 只有当totalPrice有值且合同金额小于物料总金额时,才进行提示和修正
  132. if (totalPrice > 0 && contractMoney < totalPrice) {
  133. $(this).removeData("manual-input");
  134. $("#contract_money").val(totalPrice);
  135. addError("合同金额不能小于物料总金额: " + totalPrice.toFixed(2));
  136. }
  137. calculatePaymentAmount();
  138. });
  139. $(document).on('blur', '.startTr1:not(.hide) input.qty', function() {
  140. var qty = parseFloat($(this).val()) || 0;
  141. if (qty <= 0) {
  142. addError("物料数量必须大于0");
  143. }
  144. });
  145. });
  146. //保存表单
  147. function save() {
  148. saveAjaxForm("${pageContext.request.contextPath}/contractFlowCustomAction.do?task=process", "formIns");
  149. }
  150. function checkForm() {
  151. var rs = true;
  152. var contract_number = $("#contract_number").val();
  153. if (contract_number) {
  154. validContractNumber(contract_number, function(flag) {
  155. rs = flag ? checkFormMore() : false;
  156. });
  157. } else {
  158. rs = checkFormMore();
  159. }
  160. return rs;
  161. }
  162. function checkFormMore(){
  163. var mindate=$("#contract_startdate").val();
  164. var maxdate=$("#contract_enddate").val();
  165. var rs = true;
  166. // 检查各字段是否需要验证 (启动节点或在 table_fields 配置中)
  167. var contract_number_required = (se == 1 || table_fields.indexOf(',contract_number,') > -1);
  168. var contract_name_required = (se == 1 || table_fields.indexOf(',contract_name,') > -1);
  169. var contract_type_required = (se == 1 || table_fields.indexOf(',contract_type,') > -1);
  170. var salesman_required = (se == 1 || table_fields.indexOf(',salesman_name,') > -1);
  171. var contract_money_required = (se == 1 || table_fields.indexOf(',contract_money,') > -1);
  172. var supplierName_required = (se == 1 || table_fields.indexOf(',supplierName,') > -1);
  173. if(contract_number_required){
  174. rs = $.validate({name:"contractInfo.contract_number",model:[{type:"require",msg:"合同编号不能为空!"},
  175. {type:"len",max:100,msg:"合同编号长度不能超过100!"}]}) && rs;
  176. }
  177. if(contract_name_required){
  178. rs = $.validate({name:"contractInfo.contract_name",model:[{type:"require",msg:"合同名称不能为空!"},
  179. {type:"len",max:100,msg:"合同名称长度不能超过 100!"}]}) && rs;
  180. }
  181. if(contract_type_required){
  182. rs = $.validate({name:"contractInfo.contract_type",model:[{type:"require",msg:"合同类型不能为空!"}]}) && rs;
  183. }
  184. if(salesman_required){
  185. rs = $.validate({name:"contractInfo.salesman",model:[{type:"require",msg:"经办人不能为空!"}]}) && rs;
  186. }
  187. if(contract_money_required){
  188. rs = $.validate({name:"contractInfo.contract_money",model:[{type:"isNumber",msg:"只能是数字!"}]}) && rs;
  189. }
  190. // 根据合同类型验证不同字段:采购合同验证供方,销售合同验证需方
  191. var contractType = $("#contract_type").val();
  192. if(supplierName_required) {
  193. if(contractType == '1') {
  194. // 销售合同:验证需方(客户)
  195. rs = $.validate({name:"firstparty_name_text",model:[{type:"require",msg:"需方不能为空!"}]}) && rs;
  196. } else {
  197. // 采购合同:验证供方(供应商)
  198. rs = $.validate({name:"secondparty_name_text",model:[{type:"require",msg:"供方不能为空!"}]}) && rs;
  199. }
  200. }
  201. if(departmental_opinion){
  202. rs = $.validate({name: "departmental_opinion_imgval", model: [{type: "require", msg: "部门领导意见不能为空!"}]}) && rs;
  203. }
  204. if(dgm_opinion){
  205. rs = $.validate({name: "deputy_general_manager_opinion_imgval", model: [{type: "require", msg: "分管副总意见不能为空!"}]}) && rs;
  206. }
  207. if(audit_dgm_opinion){
  208. rs = $.validate({name: "audit_deputy_general_manager_opinion_imgval", model: [{type: "require", msg: "分管副总意见不能为空!"}]}) && rs;
  209. }
  210. if(gm_opinion){
  211. rs = $.validate({name: "general_manager_opinion_imgval", model: [{type: "require", msg: "总经理意见不能为空!"}]}) && rs;
  212. }
  213. if(finance_opinion){
  214. rs = $.validate({name: "finance_opinion_imgval", model: [{type: "require", msg: "财务部门意见不能为空!"}]}) && rs;
  215. }
  216. if(chairman_opinion){
  217. rs = $.validate({name: "chairman_opinion_imgval", model: [{type: "require", msg: "董事长意见不能为空!"}]}) && rs;
  218. }
  219. if (se == 1) {
  220. $(".startTr1").not(".hide").each(function (i, v) {
  221. rs = $.validate({ name: "contractMaterialList[" + i + "].qty", model: [{type: "require", msg: "数量不能为空!"},{type : "custom",validator:function(value){ return /^\d+(\.\d+)?$/.test(value) && parseFloat(value) > 0; },msg:"数量必须是大于 0 的数字!"}] }) && rs;
  222. rs = $.validate({ name: "contractMaterialList[" + i + "].price", model: [{type: "require", msg: "税前单价不能为空!"}] }) && rs;
  223. rs = $.validate({ name: "contractMaterialList[" + i + "].cess", model: [{type: "require", msg: "税率不能为空!"}] }) && rs;
  224. rs = $.validate({ name: "contractMaterialList[" + i + "].priceTax", model: [{type: "require", msg: "税后单价不能为空!"}] }) && rs;
  225. });
  226. $(".startTr2").not(".hide").each(function (i, v) {
  227. rs = $.validate({ name: "contractPaymentList[" + i + "].payType", model: [{type: "require", msg: "付款方式不能为空!"}] }) && rs;
  228. rs = $.validate({ name: "contractPaymentList[" + i + "].proportion", model: [{type: "require", msg: "比例不能为空!"},{type : "custom",validator:function(value){ return /^\d+(\.\d+)?$/.test(value) && parseFloat(value) > 0; },msg:"比例必须是大于 0 的数字!"}] }) && rs;
  229. rs = $.validate({ name: "contractPaymentList[" + i + "].amount", model: [{type: "require", msg: "金额不能为空!"}] }) && rs;
  230. /* rs = $.validate({ name: "contractPaymentList[" + i + "].amountPaid", model: [{type: "require", msg: "已付金额不能为空!"}] }) && rs; */
  231. });
  232. if(rs == true){
  233. var detailSize = $('.startTr1:not(.hide)').length;
  234. if(detailSize > 0){
  235. var contract_money = parseFloat($("#contract_money").val()) || 0;
  236. var totalPrice = parseFloat($("#totalPrice").val()) || 0;
  237. if(totalPrice > 0) {
  238. if(!contract_money){
  239. $("#contract_money").val(totalPrice);
  240. }else if(contract_money < totalPrice){
  241. addError("合同金额不能小于物料总金额: " + totalPrice.toFixed(2));
  242. rs = false;
  243. }
  244. }
  245. }
  246. }
  247. }
  248. return rs;
  249. }
  250. function validContractNumber(contract_number, callback) {
  251. var universalid = $("#universalid").val();
  252. var isExistContractNum = false;
  253. $.ajax({
  254. type: "POST",
  255. url: "contractEntry.do?task=isExistContractNumForFlow",
  256. data: { "contract_number": contract_number,"universalid":universalid, },
  257. timeout: 10000,
  258. dataType: "json",
  259. async: false,
  260. success: function (data) {
  261. if (data != null) {
  262. if (data.error != null) {
  263. addError(data.error);
  264. isExistContractNum = true;
  265. }
  266. }
  267. callback(!isExistContractNum);
  268. },
  269. error: function () {
  270. // 处理请求错误的情况
  271. callback(false);
  272. }
  273. });
  274. }
  275. /* // 使用事件委托监听所有输入框的变化
  276. $(document).on('input', '.startTr1:not(.hide) input.price, .startTr1:not(.hide) input.priceTax, .startTr1:not(.hide) input.cess, .startTr1:not(.hide) input.qty', function () {
  277. // 当任何行的单价、税率、数量发生变化时,重新计算该行的另一单价和总价
  278. var row = $(this).closest('tr')[0];
  279. calculatePrice(row);
  280. }); */
  281. // 页面加载完成后初始化总价
  282. $(document).ready(function() {
  283. calculateTotalPrice();
  284. });
  285. </script>
  286. <style type="text/css">
  287. .l-table-edit-new {
  288. width: 100px;
  289. font-size: 14px;
  290. font-weight: normal;
  291. line-height: 20px;
  292. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  293. }
  294. .input-width {
  295. width: 100px;
  296. text-align: center;
  297. padding-left: 0px;
  298. }
  299. table.l-table-edit-custom {
  300. border-collapse: collapse;
  301. width: 99%;
  302. }
  303. table.l-table-edit-custom th,
  304. table.l-table-edit-custom td {
  305. border: 1px solid #000;
  306. padding: 8px;
  307. }
  308. table.l-table-edit-custom th {
  309. background-color: #f2f2f2;
  310. }
  311. table.l-table-edit-new {
  312. border-collapse: collapse;
  313. width: 99%;
  314. text-align: center;
  315. }
  316. table.l-table-edit-new th,
  317. table.l-table-edit-new td {
  318. border: 1px solid #000;
  319. padding: 8px 0 !important;
  320. text-align: center;
  321. }
  322. table.l-table-edit-new th {
  323. background-color: #f2f2f2;
  324. }
  325. .disabled-section {
  326. opacity: 0.6;
  327. pointer-events: none;
  328. position: relative;
  329. }
  330. .disabled-section::after {
  331. content: "请先填写物料信息";
  332. position: absolute;
  333. top: 50%;
  334. left: 50%;
  335. transform: translate(-50%, -50%);
  336. background-color: rgba(255, 255, 255, 0.9);
  337. padding: 10px;
  338. border-radius: 5px;
  339. color: #ff0000;
  340. font-weight: bold;
  341. z-index: 1000;
  342. }
  343. .manual-input-hint {
  344. font-size: 12px;
  345. color: #888;
  346. margin-top: 5px;
  347. }
  348. .error-border {
  349. border: 1px solid red !important;
  350. }
  351. .inline-error {
  352. color: red;
  353. font-size: 12px;
  354. margin-left: 10px;
  355. }
  356. .disabled-section {
  357. opacity: 0.6;
  358. pointer-events: none;
  359. position: relative;
  360. }
  361. .disabled-section::after {
  362. content: "请先填写物料信息";
  363. position: absolute;
  364. top: 50%;
  365. left: 50%;
  366. transform: translate(-50%, -50%);
  367. background-color: rgba(255, 255, 255, 0.9);
  368. padding: 10px;
  369. border-radius: 5px;
  370. color: #ff0000;
  371. font-weight: bold;
  372. z-index: 1000;
  373. }
  374. </style>
  375. </head>
  376. <body>
  377. <form action="applianceBuyAction.do" method="post" id="formIns" name="formIns">
  378. <div>
  379. <div style="height: auto; width: 189px;">
  380. <img src="${pageContext.request.contextPath}/images/yzlogo.png"
  381. style="max-height: 77px; width: auto;">
  382. </div>
  383. <div style="text-align:center;">
  384. <div style="font-size: 20px;">
  385. 湖南韫珠环保科技有限公司
  386. </div>
  387. <div style="font-size: 20px;">
  388. 合同审批单
  389. </div>
  390. </div>
  391. <div style="text-align:right;padding-right: 100px;">流程流水号:${contractInfo.processId}</div>
  392. </div>
  393. <table class="l-table-edit line l-table-edit-custom" width="99%">
  394. <tr>
  395. <td class="l-table-edit-text">填报部门:</td>
  396. <td class="l-table-edit-td">
  397. <input type="hidden" id="department" name="contractInfo.department" value="${contractInfo.department}"/>
  398. ${contractInfo.department}
  399. <input type="hidden" id="initiator" name="contractInfo.initiator" value="${contractInfo.initiator}"/>
  400. </td>
  401. <td class="l-table-edit-text">经办人
  402. <c:if test="${fn:contains(curTacheModel.table_fields, ',salesman_name,') || curTacheModel.n_se eq 1}">
  403. <font color="red">*</font>:
  404. </c:if>
  405. </td>
  406. <td class="l-table-edit-td" colspan="2">
  407. <c:choose>
  408. <c:when test="${fn:contains(curTacheModel.table_fields, ',salesman_sign,') || curTacheModel.n_se eq 1}">
  409. <input id="salesman_name" name="contractInfo.salesman_name" type="text" value="${contractInfo.contract_entrying_operator_name }" readonly="readonly"/>
  410. <input id="salesman" name="contractInfo.salesman" type="hidden" value="${contractInfo.salesman }"/>
  411. <input id="selectUserButton1" name="selectUserButton1" type="button" class="l-button" value="选择人员" />
  412. </c:when>
  413. <c:otherwise>
  414. ${contractInfo.contract_entrying_operator_name}
  415. </c:otherwise>
  416. </c:choose>
  417. </td>
  418. <td class="l-table-edit-text">电话:</td>
  419. <td class="l-table-edit-td" style="width: 150px;">
  420. <c:choose>
  421. <c:when test="${fn:contains(curTacheModel.table_fields, ',salesmanTel,') || curTacheModel.n_se eq 1}">
  422. <input id="salesmanTel" name="contractInfo.salesmanTel" type="text" value="${contractInfo.salesmanTel }"/>
  423. </c:when>
  424. <c:otherwise>
  425. ${contractInfo.salesmanTel}
  426. </c:otherwise>
  427. </c:choose>
  428. </td>
  429. </tr>
  430. <tr>
  431. <td class="l-table-edit-text">填报日期:</td>
  432. <td class="l-table-edit-td" colspan="2">
  433. <input type="hidden" id="applyDate" name="contractInfo.applyDate" value="${contractInfo.applyDate}"/>
  434. ${contractInfo.applyDate}
  435. </td>
  436. <td class="l-table-edit-text">合同编号
  437. <c:if test="${fn:contains(curTacheModel.table_fields, ',contract_number,') || curTacheModel.n_se eq 1}">
  438. <font color="red">*</font>:
  439. </c:if>
  440. </td>
  441. <td class="l-table-edit-td" colspan="3">
  442. <c:choose>
  443. <c:when test="${fn:contains(curTacheModel.table_fields, ',contract_number,') || curTacheModel.n_se eq 1}">
  444. <input type="text" id="contract_number" name="contractInfo.contract_number" value="${contractInfo.contract_number }"/>
  445. </c:when>
  446. <c:otherwise>
  447. <input type="hidden" id="contract_number" name="contractInfo.contract_number" value="${contractInfo.contract_number }"/>${contractInfo.contract_number }
  448. </c:otherwise>
  449. </c:choose>
  450. </td>
  451. </tr>
  452. <tr>
  453. <td class="l-table-edit-text" rowspan="7">合同立项内容</td>
  454. <td class="l-table-edit-text">合同名称
  455. <c:if test="${fn:contains(curTacheModel.table_fields, ',contract_name,') || curTacheModel.n_se eq 1}">
  456. <font color="red">*</font>:
  457. </c:if>
  458. </td>
  459. <td class="l-table-edit-td" colspan="2">
  460. <c:choose>
  461. <c:when test="${fn:contains(curTacheModel.table_fields, ',contract_name,') || curTacheModel.n_se eq 1}">
  462. <input type="text" id="contract_name" name="contractInfo.contract_name" value="${contractInfo.contract_name }">
  463. </c:when>
  464. <c:otherwise>
  465. ${contractInfo.contract_name }
  466. </c:otherwise>
  467. </c:choose>
  468. </td>
  469. <td class="l-table-edit-text">合同金额:</td>
  470. <td class="l-table-edit-td" colspan="2">
  471. <c:choose>
  472. <c:when test="${fn:contains(curTacheModel.table_fields, ',contract_money,') || curTacheModel.n_se eq 1}">
  473. <input type="text" id="contract_money" name="contractInfo.contract_money" value="${contractInfo.contract_money }" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="value=value.replace(/[^\d\.]/g,'')">
  474. <div class="contract-money-hint manual-input-hint" style="display: none;">
  475. 合同金额可随时输入,添加物料后会自动计算总金额
  476. </div>
  477. </c:when>
  478. <c:otherwise>
  479. ${contractInfo.contract_money }
  480. </c:otherwise>
  481. </c:choose>
  482. </td>
  483. </tr>
  484. <tr>
  485. <td class="l-table-edit-text">合同内容:</td>
  486. <td class="l-table-edit-td" colspan="5">
  487. <c:choose>
  488. <c:when test="${fn:contains(curTacheModel.table_fields, ',contractContent,') || curTacheModel.n_se eq 1}">
  489. <textarea id="contractContent" name="contractInfo.contractContent" rows="3" cols="80">${contractInfo.contractContent}</textarea>
  490. </c:when>
  491. <c:otherwise>
  492. ${contractInfo.contractContent}
  493. </c:otherwise>
  494. </c:choose>
  495. </td>
  496. </tr>
  497. <tr>
  498. <td class="l-table-edit-text" rowspan="2">合同类型
  499. <c:if test="${fn:contains(curTacheModel.table_fields, ',contract_type,') || curTacheModel.n_se eq 1}">
  500. <font color="red">*</font>:
  501. </c:if>
  502. </td>
  503. <td class="l-table-edit-td" rowspan="2" colspan="2">
  504. <c:choose>
  505. <c:when test="${fn:contains(curTacheModel.table_fields, ',contract_type,') || curTacheModel.n_se eq 1}">
  506. <select id="contract_type" name="contractInfo.contract_type" style="width:130px;">
  507. <c:forEach items="${typeList }" var="item">
  508. <option value="${item.contract_type }" ${item.contract_type==contractInfo.contract_type?'selected=selected':'' } >${item.contract_type_name }</option>
  509. </c:forEach>
  510. </select>
  511. </c:when>
  512. <c:otherwise>
  513. ${contractInfo.contract_type_name }
  514. </c:otherwise>
  515. </c:choose>
  516. </td>
  517. <td class="l-table-edit-text">所属项目或产品:</td>
  518. <td class="l-table-edit-td" colspan="2">
  519. <c:choose>
  520. <c:when test="${fn:contains(curTacheModel.table_fields, ',projectItem,') || curTacheModel.n_se eq 1}">
  521. <input type="text" id="projectItem" name="contractInfo.projectItem" value="${contractInfo.projectItem }">
  522. </c:when>
  523. <c:otherwise>
  524. ${contractInfo.projectItem }
  525. </c:otherwise>
  526. </c:choose>
  527. </td>
  528. </tr>
  529. <tr>
  530. <td class="l-table-edit-text">使用位置:</td>
  531. <td class="l-table-edit-td" colspan="2">
  532. <c:choose>
  533. <c:when test="${fn:contains(curTacheModel.table_fields, ',usePosition,') || curTacheModel.n_se eq 1}">
  534. <input type="text" id="usePosition" name="contractInfo.usePosition" value="${contractInfo.usePosition }">
  535. </c:when>
  536. <c:otherwise>
  537. ${contractInfo.usePosition }
  538. </c:otherwise>
  539. </c:choose>
  540. </td>
  541. </tr>
  542. <tr>
  543. <td class="l-table-edit-text">需方
  544. <c:if test="${fn:contains(curTacheModel.table_fields, ',firstparty_name,') || curTacheModel.n_se eq 1}">
  545. <font color="red">*</font>:
  546. </c:if>
  547. </td>
  548. <td class="l-table-edit-td" colspan="2">
  549. <c:choose>
  550. <c:when test="${fn:contains(curTacheModel.table_fields, ',firstparty_name,') || curTacheModel.n_se eq 1}">
  551. <!-- 采购合同:显示公司名称(只读) -->
  552. <input id="firstparty_name_display" type="text" value="${contractInfo.firstparty_name }" readonly="readonly" style="display:block;"/>
  553. <!-- 销售合同:显示选择客户按钮 -->
  554. <div id="clientSelectDiv" style="display:none;">
  555. <input id="firstparty_name_text" name="firstparty_name_text" type="text" value="${contractInfo.firstparty_name }" readonly="readonly"/>
  556. <input id="selectClientBtn" type="button" class="button_fj" value="选择客户" onclick="client_search()"/>
  557. </div>
  558. <input id="firstparty_name" name="contractInfo.firstparty_name" type="hidden" value="${contractInfo.firstparty_name }"/>
  559. </c:when>
  560. <c:otherwise>
  561. ${contractInfo.firstparty_name }
  562. </c:otherwise>
  563. </c:choose>
  564. </td>
  565. <td class="l-table-edit-text" rowspan="2">对方联系人及电话:</td>
  566. <td class="l-table-edit-td" colspan="2" rowspan="2">
  567. <c:choose>
  568. <c:when test="${fn:contains(curTacheModel.table_fields, ',other_contractor,') || curTacheModel.n_se eq 1}">
  569. <input id="other_contractor" name="contractInfo.other_contractor" type='text' value="${contractInfo.other_contractor }"/>
  570. </c:when>
  571. <c:otherwise>
  572. ${contractInfo.other_contractor }
  573. </c:otherwise>
  574. </c:choose>
  575. </td>
  576. </tr>
  577. <tr>
  578. <td class="l-table-edit-text">供方
  579. <c:if test="${fn:contains(curTacheModel.table_fields, ',secondparty_name,') || curTacheModel.n_se eq 1}">
  580. <font color="red">*</font>:
  581. </c:if>
  582. </td>
  583. <td class="l-table-edit-td" colspan="2">
  584. <c:choose>
  585. <c:when test="${fn:contains(curTacheModel.table_fields, ',secondparty_name,') || curTacheModel.n_se eq 1}">
  586. <!-- 采购合同:显示选择供应商按钮 -->
  587. <div id="supplierSelectDiv" style="display:block;">
  588. <input id="secondparty_name_text" name="secondparty_name_text" type="text" value="${contractInfo.secondparty_name }" readonly="readonly"/>
  589. <input id="selectSupplierBtn" type="button" class="button_fj" value="选择供应商" onclick="supplier_search()"/>
  590. </div>
  591. <!-- 销售合同:显示公司名称(只读) -->
  592. <input id="secondparty_name_display" type="text" value="${companyName}" readonly="readonly" style="display:none;"/>
  593. <input id="secondparty_name" name="contractInfo.secondparty_name" type="hidden" value="${contractInfo.secondparty_name }"/>
  594. </c:when>
  595. <c:otherwise>
  596. ${contractInfo.secondparty_name }
  597. </c:otherwise>
  598. </c:choose>
  599. </td>
  600. </tr>
  601. <tr>
  602. <td class="l-table-edit-text">随合同提交的其它材料:</td>
  603. <td class="l-table-edit-td" colspan="2">
  604. <c:choose>
  605. <c:when test="${fn:contains(curTacheModel.table_fields, ',otherFile,') || curTacheModel.n_se eq 1}">
  606. <textarea id="otherFile" name="contractInfo.otherFile">${contractInfo.otherFile}</textarea>
  607. </c:when>
  608. <c:otherwise>
  609. ${contractInfo.otherFile }
  610. </c:otherwise>
  611. </c:choose>
  612. </td>
  613. <td class="l-table-edit-text">经办人签字:</td>
  614. <td class="l-table-edit-td" colspan="2">
  615. <c:choose>
  616. <c:when test="${fn:contains(curTacheModel.table_fields, ',salesman_sign,') || curTacheModel.n_se eq 1}">
  617. <input id="salesmanSign" name="contractInfo.salesmanSign" type='text' value="${contractInfo.salesmanSign }"/>
  618. </c:when>
  619. <c:otherwise>
  620. ${contractInfo.salesmanSign }
  621. </c:otherwise>
  622. </c:choose>
  623. </td>
  624. </tr>
  625. <tr>
  626. <td class="l-table-edit-text">部门领导意见:
  627. <c:if test="${fn:contains(curTacheModel.table_fields, ',departmental_opinion,')}">
  628. <font color="red">*</font>
  629. </c:if>
  630. </td>
  631. <td class="l-table-edit-td" colspan="6">
  632. <c:choose>
  633. <c:when test="${fn:contains(curTacheModel.table_fields, ',departmental_opinion,')}">
  634. <c:choose>
  635. <c:when test="${empty contractPurchaseForm.departmentalOpinion}">
  636. <input id="departmentalOpinion" value="" name="contractPurchaseForm.departmentalOpinion" type="hidden" value="">
  637. <div id="departmental_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
  638. <input id="departmental_opinionbtn" value="盖章" name="departmental_opinionbtn" type="button" onclick="selectSeal('departmental_opinion')" style="float: left; display: block;">
  639. </div>
  640. <input id="departmental_opinion" value="" name="departmental_opinion" type="hidden">
  641. <input id="departmental_opinion_imgval" name="departmental_opinion_imgval" type="hidden" value="">
  642. </c:when>
  643. <c:otherwise>
  644. <div id="departmental_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
  645. <img src="${departmentalOpinion_sealpath}" class="dragme" style="left:${departmentalOpinion_x}px;top:${departmentalOpinion_y}px;" id="departmental_opinion_img" name="departmental_opinion_img" value="departmental_opinion|${departmentalOpinion_sealId}" onmousedown="selectmouse(this);">
  646. <img width="12" height="12" title="删除" id="departmental_opinion_imgdel" name="departmental_opinion_imgdel" style="cursor: pointer;" src="/shares/images/no.png" onclick="deleteFseal('${departmentalOpinion_sealId}','departmental_opinion','forvalPwd');">
  647. <input id="departmental_opinionbtn" value="盖章" name="departmental_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('departmental_opinion')">
  648. </div>
  649. <input id="departmental_opinion" value="${departmentalOpinion_formSealInsId}" name="departmental_opinion" type="hidden">
  650. <input id="departmental_opinion_imgval" name="departmental_opinion_imgval" type="hidden" value="${departmentalOpinion_imgval}">
  651. </c:otherwise>
  652. </c:choose>
  653. </c:when>
  654. <c:otherwise>
  655. <div id="departmental_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
  656. <img src="${departmentalOpinion_sealpath}" class="dragme" style="left:${departmentalOpinion_x}px;top:${departmentalOpinion_y}px;" id="departmental_opinion_img" name="departmental_opinion_img" value="departmental_opinion|${departmentalOpinion_sealId}">
  657. <input id="departmental_opinionbtn" value="盖章" name="departmental_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('departmental_opinion')">
  658. </div>
  659. <input id="departmental_opinion" value="${departmentalOpinion_formSealInsId}" name="departmental_opinion" type="hidden">
  660. <input id="departmental_opinion_imgval" name="departmental_opinion_imgval" type="hidden" value="${departmentalOpinion_imgval}">
  661. </c:otherwise>
  662. </c:choose>
  663. </td>
  664. </tr>
  665. <tr>
  666. <td class="l-table-edit-text">财务部门意见:
  667. <c:if test="${fn:contains(curTacheModel.table_fields, ',finance_opinion,')}">
  668. <font color="red">*</font>
  669. </c:if>
  670. </td>
  671. <td class="l-table-edit-td" colspan="6">
  672. <c:choose>
  673. <c:when test="${fn:contains(curTacheModel.table_fields, ',finance_opinion,')}">
  674. <c:choose>
  675. <c:when test="${empty contractPurchaseForm.financeOpinion}">
  676. <input id="financeOpinion" value="" name="contractPurchaseForm.financeOpinion" type="hidden" value="">
  677. <div id="finance_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
  678. <input id="finance_opinionbtn" value="盖章" name="finance_opinionbtn" type="button" onclick="selectSeal('finance_opinion')" style="float: left; display: block;">
  679. </div>
  680. <input id="finance_opinion" value="" name="finance_opinion" type="hidden">
  681. <input id="finance_opinion_imgval" name="finance_opinion_imgval" type="hidden" value="">
  682. </c:when>
  683. <c:otherwise>
  684. <div id="finance_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
  685. <img src="${financeOpinion_sealpath}" class="dragme" style="left:${financeOpinion_x}px;top:${financeOpinion_y}px;" id="finance_opinion_img" name="finance_opinion_img" value="finance_opinion|${financeOpinion_sealId}" onmousedown="selectmouse(this);">
  686. <img width="12" height="12" title="删除" id="finance_opinion_imgdel" name="finance_opinion_imgdel" style="cursor: pointer;" src="/shares/images/no.png" onclick="deleteFseal('${financeOpinion_sealId}','finance_opinion','forvalPwd');">
  687. <input id="finance_opinionbtn" value="盖章" name="finance_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('finance_opinion')">
  688. </div>
  689. <input id="finance_opinion" value="${financeOpinion_formSealInsId}" name="chairman1_opinion" type="hidden">
  690. <input id="finance_opinion_imgval" name="finance_opinion_imgval" type="hidden" value="${financeOpinion_imgval}">
  691. </c:otherwise>
  692. </c:choose>
  693. </c:when>
  694. <c:otherwise>
  695. <div id="finance_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
  696. <img src="${financeOpinion_sealpath}" class="dragme" style="left:${financeOpinion_x}px;top:${financeOpinion_y}px;" id="finance_opinion_img" name="finance_opinion_img" value="finance_opinion|${financeOpinion_sealId}">
  697. <input id="finance_opinionbtn" value="盖章" name="finance_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('finance_opinion')">
  698. </div>
  699. <input id="finance_opinion" value="${financeOpinion_formSealInsId}" name="finance_opinion" type="hidden">
  700. <input id="finance_opinion_imgval" name="finance_opinion_imgval" type="hidden" value="${financeOpinion_imgval}">
  701. </c:otherwise>
  702. </c:choose>
  703. </td>
  704. </tr>
  705. <tr>
  706. <td class="l-table-edit-text">分管副总意见:
  707. <c:if test="${fn:contains(curTacheModel.table_fields, ',deputy_general_manager_opinion,')}">
  708. <font color="red">*</font>
  709. </c:if>
  710. </td>
  711. <td class="l-table-edit-td" colspan="6">
  712. <c:choose>
  713. <c:when test="${fn:contains(curTacheModel.table_fields, ',deputy_general_manager_opinion,')}">
  714. <c:choose>
  715. <c:when test="${empty contractPurchaseForm.dgmOpinion}">
  716. <input id="dgmOpinion" value="" name="contractPurchaseForm.dgmOpinion" type="hidden" value="">
  717. <div id="deputy_general_manager_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
  718. <input id="deputy_general_manager_opinionbtn" value="盖章" name="deputy_general_manager_opinionbtn" type="button" onclick="selectSeal('deputy_general_manager_opinion')" style="float: left; display: block;">
  719. </div>
  720. <input id="deputy_general_manager_opinion" value="" name="deputy_general_manager_opinion" type="hidden">
  721. <input id="deputy_general_manager_opinion_imgval" name="deputy_general_manager_opinion_imgval" type="hidden" value="">
  722. </c:when>
  723. <c:otherwise>
  724. <div id="deputy_general_manager_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
  725. <img src="${dgmOpinion_sealpath}" class="dragme" style="left:${dgmOpinion_x}px;top:${dgmOpinion_y}px;" id="deputy_general_manager_opinion_img" name="deputy_general_manager_opinion_img" value="deputy_general_manager_opinion|${dgmOpinion_sealId}" onmousedown="selectmouse(this);">
  726. <img width="12" height="12" title="删除" id="deputy_general_manager_opinion_imgdel" name="deputy_general_manager_opinion_imgdel" style="cursor: pointer;" src="/shares/images/no.png" onclick="deleteFseal('${dgmOpinion_sealId}','deputy_general_manager_opinion','forvalPwd');">
  727. <input id="deputy_general_manager_opinionbtn" value="盖章" name="deputy_general_manager_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('deputy_general_manager_opinion')">
  728. </div>
  729. <input id="deputy_general_manager_opinion" value="${dgmOpinion_formSealInsId}" name="deputy_general_manager_opinion" type="hidden">
  730. <input id="deputy_general_manager_opinion_imgval" name="deputy_general_manager_opinion_imgval" type="hidden" value="${dgmOpinion_imgval}">
  731. </c:otherwise>
  732. </c:choose>
  733. </c:when>
  734. <c:otherwise>
  735. <div id="deputy_general_manager_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
  736. <img src="${dgmOpinion_sealpath}" class="dragme" style="left:${dgmOpinion_x}px;top:${dgmOpinion_y}px;" id="deputy_general_manager_opinion_img" name="deputy_general_manager_opinion_img" value="deputy_general_manager_opinion|${dgmOpinion_sealId}">
  737. <input id="deputy_general_manager_opinionbtn" value="盖章" name="deputy_general_manager_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('deputy_general_manager_opinion')">
  738. </div>
  739. <input id="deputy_general_manager_opinion" value="${dgmOpinion_formSealInsId}" name="deputy_general_manager_opinion" type="hidden">
  740. <input id="deputy_general_manager_opinion_imgval" name="deputy_general_manager_opinion_imgval" type="hidden" value="${dgmOpinion_imgval}">
  741. </c:otherwise>
  742. </c:choose>
  743. </td>
  744. </tr>
  745. <tr>
  746. <td class="l-table-edit-text">分管副总意见:
  747. <c:if test="${fn:contains(curTacheModel.table_fields, ',audit_deputy_general_manager_opinion,')}">
  748. <font color="red">*</font>
  749. </c:if>
  750. </td>
  751. <td class="l-table-edit-td" colspan="6">
  752. <c:choose>
  753. <c:when test="${fn:contains(curTacheModel.table_fields, ',audit_deputy_general_manager_opinion,')}">
  754. <c:choose>
  755. <c:when test="${empty contractInfo.auditDgmOpinion}">
  756. <input id="auditDgmOpinion" value="" name="contractInfo.auditDgmOpinion" type="hidden" value="">
  757. <div id="audit_deputy_general_manager_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
  758. <input id="audit_deputy_general_manager_opinionbtn" value="盖章" name="audit_deputy_general_manager_opinionbtn" type="button" onclick="selectSeal('audit_deputy_general_manager_opinion')" style="float: left; display: block;">
  759. </div>
  760. <input id="audit_deputy_general_manager_opinion" value="" name="audit_deputy_general_manager_opinion" type="hidden">
  761. <input id="audit_deputy_general_manager_opinion_imgval" name="audit_deputy_general_manager_opinion_imgval" type="hidden" value="">
  762. </c:when>
  763. <c:otherwise>
  764. <div id="audit_deputy_general_manager_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
  765. <img src="${auditDgmOpinion_sealpath}" class="dragme" style="left:${auditDgmOpinion_x}px;top:${auditDgmOpinion_y}px;" id="audit_deputy_general_manager_opinion_img" name="audit_deputy_general_manager_opinion_img" value="audit_deputy_general_manager_opinion|${auditDgmOpinion_sealId}" onmousedown="selectmouse(this);">
  766. <img width="12" height="12" title="删除" id="audit_deputy_general_manager_opinion_imgdel" name="audit_deputy_general_manager_opinion_imgdel" style="cursor: pointer;" src="/shares/images/no.png" onclick="deleteFseal('${auditDgmOpinion_sealId}','audit_deputy_general_manager_opinion','forvalPwd');">
  767. <input id="audit_deputy_general_manager_opinionbtn" value="盖章" name="audit_deputy_general_manager_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('audit_deputy_general_manager_opinion')">
  768. </div>
  769. <input id="audit_deputy_general_manager_opinion" value="${auditDgmOpinion_formSealInsId}" name="audit_deputy_general_manager_opinion" type="hidden">
  770. <input id="audit_deputy_general_manager_opinion_imgval" name="audit_deputy_general_manager_opinion_imgval" type="hidden" value="${auditDgmOpinion_imgval}">
  771. </c:otherwise>
  772. </c:choose>
  773. </c:when>
  774. <c:otherwise>
  775. <div id="audit_deputy_general_manager_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
  776. <img src="${auditDgmOpinion_sealpath}" class="dragme" style="left:${auditDgmOpinion_x}px;top:${auditDgmOpinion_y}px;" id="audit_deputy_general_manager_opinion_img" name="audit_deputy_general_manager_opinion_img" value="audit_deputy_general_manager_opinion|${auditDgmOpinion_sealId}">
  777. <input id="audit_deputy_general_manager_opinionbtn" value="盖章" name="audit_deputy_general_manager_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('audit_deputy_general_manager_opinion')">
  778. </div>
  779. <input id="audit_deputy_general_manager_opinion" value="${auditDgmOpinion_formSealInsId}" name="audit_deputy_general_manager_opinion" type="hidden">
  780. <input id="audit_deputy_general_manager_opinion_imgval" name="audit_deputy_general_manager_opinion_imgval" type="hidden" value="${auditDgmOpinion_imgval}">
  781. </c:otherwise>
  782. </c:choose>
  783. </td>
  784. </tr>
  785. <tr>
  786. <td class="l-table-edit-text">总经理意见:
  787. <c:if test="${fn:contains(curTacheModel.table_fields, ',general_manager_opinion,')}">
  788. <font color="red">*</font>
  789. </c:if>
  790. </td>
  791. <td class="l-table-edit-td" colspan="6">
  792. <c:choose>
  793. <c:when test="${fn:contains(curTacheModel.table_fields, ',general_manager_opinion,')}">
  794. <c:choose>
  795. <c:when test="${empty contractPurchaseForm.gmOpinion}">
  796. <input id="gmOpinion" value="" name="contractPurchaseForm.gmOpinion" type="hidden" value="">
  797. <div id="general_manager_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
  798. <input id="general_manager_opinionbtn" value="盖章" name="general_manager_opinionbtn" type="button" onclick="selectSeal('general_manager_opinion')" style="float: left; display: block;">
  799. </div>
  800. <input id="general_manager_opinion" value="" name="general_manager_opinion" type="hidden">
  801. <input id="general_manager_opinion_imgval" name="general_manager_opinion_imgval" type="hidden" value="">
  802. </c:when>
  803. <c:otherwise>
  804. <div id="general_manager_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
  805. <img src="${gmOpinion_sealpath}" class="dragme" style="left:${gmOpinion_x}px;top:${gmOpinion_y}px;" id="general_manager_opinion_img" name="general_manager_opinion_img" value="general_manager_opinion|${gmOpinion_sealId}" onmousedown="selectmouse(this);">
  806. <img width="12" height="12" title="删除" id="general_manager_opinion_imgdel" name="general_manager_opinion_imgdel" style="cursor: pointer;" src="/shares/images/no.png" onclick="deleteFseal('${gmOpinion_sealId}','general_manager_opinion','forvalPwd');">
  807. <input id="general_manager_opinionbtn" value="盖章" name="general_manager_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('general_manager_opinion')">
  808. </div>
  809. <input id="general_manager_opinion" value="${gmOpinion_formSealInsId}" name="general_manager_opinion" type="hidden">
  810. <input id="general_manager_opinion_imgval" name="general_manager_opinion_imgval" type="hidden" value="${gmOpinion_imgval}">
  811. </c:otherwise>
  812. </c:choose>
  813. </c:when>
  814. <c:otherwise>
  815. <div id="general_manager_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
  816. <img src="${gmOpinion_sealpath}" class="dragme" style="left:${gmOpinion_x}px;top:${gmOpinion_y}px;" id="general_manager_opinion_img" name="general_manager_opinion_img" value="general_manager_opinion|${gmOpinion_sealId}">
  817. <input id="general_manager_opinionbtn" value="盖章" name="general_manager_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('general_manager_opinion')">
  818. </div>
  819. <input id="general_manager_opinion" value="${gmOpinion_formSealInsId}" name="general_manager_opinion" type="hidden">
  820. <input id="general_manager_opinion_imgval" name="general_manager_opinion_imgval" type="hidden" value="${gmOpinion_imgval}">
  821. </c:otherwise>
  822. </c:choose>
  823. </td>
  824. </tr>
  825. <tr>
  826. <td class="l-table-edit-text">董事长意见:
  827. <c:if test="${fn:contains(curTacheModel.table_fields, ',chairman_opinion,')}">
  828. <font color="red">*</font>
  829. </c:if>
  830. </td>
  831. <td class="l-table-edit-td" colspan="6">
  832. <c:choose>
  833. <c:when test="${fn:contains(curTacheModel.table_fields, ',chairman_opinion,')}">
  834. <c:choose>
  835. <c:when test="${empty contractPurchaseForm.chairmanOpinion}">
  836. <input id="chairmanOpinion" value="" name="contractPurchaseForm.chairmanOpinion" type="hidden" value="">
  837. <div id="chairman_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
  838. <input id="chairman_opinionbtn" value="盖章" name="chairman_opinionbtn" type="button" onclick="selectSeal('chairman_opinion')" style="float: left; display: block;">
  839. </div>
  840. <input id="chairman_opinion" value="" name="chairman_opinion" type="hidden">
  841. <input id="chairman_opinion_imgval" name="chairman_opinion_imgval" type="hidden" value="">
  842. </c:when>
  843. <c:otherwise>
  844. <div id="chairman_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
  845. <img src="${chairmanOpinion_sealpath}" class="dragme" style="left:${chairmanOpinion_x}px;top:${chairmanOpinion_y}px;" id="chairman_opinion_img" name="chairman_opinion_img" value="chairman_opinion|${chairmanOpinion_sealId}" onmousedown="selectmouse(this);">
  846. <img width="12" height="12" title="删除" id="chairman_opinion_imgdel" name="chairman_opinion_imgdel" style="cursor: pointer;" src="/shares/images/no.png" onclick="deleteFseal('${chairmanOpinion_sealId}','chairman_opinion','forvalPwd');">
  847. <input id="chairman_opinionbtn" value="盖章" name="chairman_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('chairman_opinion')">
  848. </div>
  849. <input id="chairman_opinion" value="${chairmanOpinion_formSealInsId}" name="chairman_opinion" type="hidden">
  850. <input id="chairman_opinion_imgval" name="chairman_opinion_imgval" type="hidden" value="${chairmanOpinion_imgval}">
  851. </c:otherwise>
  852. </c:choose>
  853. </c:when>
  854. <c:otherwise>
  855. <div id="chairman_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
  856. <img src="${chairmanOpinion_sealpath}" class="dragme" style="left:${chairmanOpinion_x}px;top:${chairmanOpinion_y}px;" id="chairman_opinion_img" name="chairman_opinion_img" value="chairman_opinion|${chairmanOpinion_sealId}">
  857. <input id="chairman_opinionbtn" value="盖章" name="chairman_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('chairman_opinion')">
  858. </div>
  859. <input id="chairman_opinion" value="${chairmanOpinion_formSealInsId}" name="chairman_opinion" type="hidden">
  860. <input id="chairman_opinion_imgval" name="chairman_opinion_imgval" type="hidden" value="${chairmanOpinion_imgval}">
  861. </c:otherwise>
  862. </c:choose>
  863. </td>
  864. </tr>
  865. </table>
  866. <div id="secondDiv">
  867. <table id="headTable" class="l-table-edit line" style="width:99%">
  868. <tr>
  869. <td colspan="2" style="text-align:center; font-size:16px;font-weight:bold;">
  870. <span style="font-size: 20px;">付款信息</span>
  871. <img align="bottom" id="addPayInfo" style="cursor: pointer" class="add"
  872. src="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/${sessionScope.css}/images/index/jia.png">
  873. </td>
  874. </tr>
  875. </table>
  876. <table class="l-table-edit-new" width="99%">
  877. <tr>
  878. <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">付款方式</th>
  879. <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">比例(%)</th>
  880. <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">金额</th>
  881. <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">已付金额</th>
  882. <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">付款时间</th>
  883. <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">付款状态</th>
  884. <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">备注</th>
  885. </tr>
  886. <c:forEach items="${contractPaymentList}" var="items">
  887. <tr class="startTr2">
  888. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  889. <c:choose>
  890. <c:when test="${curTacheModel.n_se ne 1}">
  891. <c:set var="currentPayTypeName" value="" /> <%-- 初始化一个变量用于存储找到的名称 --%>
  892. <c:forEach items="${paymentList}" var="payItem">
  893. <c:if test="${payItem.payType eq items.payType}">
  894. <c:set var="currentPayTypeName" value="${payItem.payTypeName}" />
  895. </c:if>
  896. </c:forEach>
  897. <input type="text" name="" class="input-width payTypeName TextDisplay" value="${currentPayTypeName}" readonly>
  898. </c:when>
  899. <c:otherwise>
  900. <select name="" class="input-width payType TextDisplay">
  901. <c:forEach items="${paymentList }" var="item">
  902. <option value="${item.payType }" ${item.payType==items.payType?'selected=selected':'' } >${item.payTypeName }</option>
  903. </c:forEach>
  904. </select>
  905. </c:otherwise>
  906. </c:choose>
  907. </td>
  908. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  909. <input type="hidden" name="" class="input-width universalid" value="${items.universalid}">
  910. <input type="text" name="" class="input-width proportion TextDisplay" value="${items.proportion}" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="value=value.replace(/[^\d\.]/g,'')" >%
  911. </td>
  912. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  913. <input type="text" name="" class="input-width amount TextDisplay" value="${items.amount}" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="value=value.replace(/[^\d\.]/g,'')" readonly>
  914. </td>
  915. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  916. <input type="text" name="" class="input-width amountPaid TextDisplay" value="${items.amountPaid}" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="value=value.replace(/[^\d\.]/g,'')">
  917. </td>
  918. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  919. <input type="text" name="" class="input-width payTime TextDisplay" value="${items.payTime}" readonly>
  920. </td>
  921. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  922. <input type="text" name="" class="input-width payStatusName TextDisplay" value="${items.payStatusName}" readonly>
  923. <input type="hidden" name="" class="input-width payStatus" value="${items.payStatus}">
  924. </td>
  925. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  926. <input type="text" name="" class="input-width remark TextDisplay" value="${items.remark}">
  927. <img align="bottom" style="cursor: pointer" class="substract2" src="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/${sessionScope.css}/images/index/jian.png">
  928. </td>
  929. </tr>
  930. </c:forEach>
  931. <tr id="secondPoint"></tr>
  932. </table>
  933. </div>
  934. <div id="firstDiv">
  935. <table id="headTable" class="l-table-edit line" style="width:99%">
  936. <tr>
  937. <td colspan="2" style="text-align:center; font-size:16px;font-weight:bold;">
  938. <span style="font-size: 20px;">物品信息</span>
  939. <img align="bottom" id="addBuyInfo" style="cursor: pointer" class="add"
  940. src="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/${sessionScope.css}/images/index/jia.png">
  941. <input type="button" class='l-button' id="addFromExcel" onclick="addExcel()" value="导入物品" />
  942. </td>
  943. </tr>
  944. </table>
  945. <table class="l-table-edit-new" width="99%" border="1" cellspacing="0" cellpadding="0" style="border-collapse: collapse;">
  946. <tr>
  947. <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">物料编码</th>
  948. <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">物料名称</th>
  949. <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">型号/规格</th>
  950. <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">单位</th>
  951. <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">数量</th>
  952. <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">税前单价</th>
  953. <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">税率(%)</th>
  954. <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">税后单价</th>
  955. <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">采购申请单编号</th>
  956. </tr>
  957. <c:forEach items="${contractMaterialList}" var="items">
  958. <tr class="startTr1">
  959. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  960. <input type="hidden" name="" class="input-width universalid" value="${items.universalid}">
  961. <input type="text" name="" class="input-width itemCode TextDisplay" value="${items.itemCode}" readonly>
  962. </td>
  963. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  964. <input type="text" name="" class="input-width itemName TextDisplay" value="${items.itemName}" readonly>
  965. </td>
  966. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  967. <input type="text" name="" class="input-width specification TextDisplay" value="${items.specification}" readonly>
  968. </td>
  969. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  970. <input type="text" name="" class="input-width measureName TextDisplay" value="${items.measureName}" readonly>
  971. </td>
  972. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  973. <input type="text" name="" class="input-width qty TextDisplay" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="value=value.replace(/[^\d\.]/g,'')" value="${items.qty}">
  974. </td>
  975. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  976. <input type="text" name="" class="input-width price TextDisplay" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="value=value.replace(/[^\d\.]/g,'')" value="${items.price}">
  977. </td>
  978. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  979. <input type="text" name="" class="input-width cess TextDisplay" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="value=value.replace(/[^\d\.]/g,'')" value="${items.cess}">
  980. </td>
  981. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  982. <input type="text" name="" class="input-width priceTax TextDisplay" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="value=value.replace(/[^\d\.]/g,'')" value="${items.priceTax}">
  983. </td>
  984. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  985. <input type="text" name="" class="input-width purchaseNumber TextDisplay" value="${items.purchaseNumber}" readonly>
  986. <input type="hidden" name="" class="input-width purchaseId" value="${items.purchaseId}">
  987. <img align="bottom" style="cursor: pointer" class="substract1" src="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/${sessionScope.css}/images/index/jian.png">
  988. </td>
  989. </tr>
  990. </c:forEach>
  991. <tr id="firstPoint"></tr>
  992. <input id="purchaseId" name="contractInfo.purchaseId" type="hidden" value="${contractInfo.purchaseId }"/>
  993. <input id="purchaseNumber" name="contractInfo.purchaseNumber" type="hidden" value="${contractInfo.purchaseNumber }"/>
  994. <input id="totalPrice" name="contractInfo.totalPrice" type="hidden" value=""/>
  995. </table>
  996. </div>
  997. <br>
  998. <br>
  999. <br>
  1000. <br>
  1001. <input type="hidden" id="se" name="se" value="${curTacheModel.n_se}">
  1002. <input type="hidden" id="table_fields" name="table_fields" value="${curTacheModel.table_fields}">
  1003. <input type="hidden" id="universalid" name="contractInfo.universalid" value="${contractInfo.universalid}">
  1004. <input type="hidden" id="lFormInsId" name="contractInfo.lFormInsId" value="${contractInfo.lFormInsId}">
  1005. <input id="relation_ids" name="contractInfo.relation_ids" value="" type="hidden"/>
  1006. <input id="contract_entrying_operator" name="contractInfo.contract_entrying_operator" type="hidden" value="${contractInfo.contract_entrying_operator }" />
  1007. <!-- 存储公司名称,用于销售合同时对调需方供方 -->
  1008. <input id="companyName" name="companyName" value="${companyName}" type="hidden"/>
  1009. <!-- 供方/客户编码和名称 -->
  1010. <input id="supplierCode" name="contractInfo.supplierCode" type="hidden" value="${contractInfo.supplierCode }"/>
  1011. <input id="supplierName" name="contractInfo.supplierName" type="hidden" value="${contractInfo.supplierName }"/>
  1012. </form>
  1013. </body>
  1014. </html>
  1015. <!-- *********************************************************模板************************************************************ -->
  1016. <table>
  1017. <!-- ***************************************************模板 ------- 物料信息-->
  1018. <tr id="template_1" class="startTr1 hide">
  1019. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  1020. <input type="text" name="" class="input-width itemCode" readonly>
  1021. </td>
  1022. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  1023. <input type="text" name="" class="input-width itemName" readonly>
  1024. </td>
  1025. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  1026. <input type="text" name="" class="input-width specification" readonly>
  1027. </td>
  1028. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  1029. <input type="text" name="" class="input-width measureName" readonly>
  1030. </td>
  1031. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  1032. <input type="text" name="" class="input-width qty" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="if(value.trim()==='')value='0';">
  1033. </td>
  1034. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  1035. <input type="text" name="" class="input-width price" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="if(value.trim()==='')value='0';">
  1036. </td>
  1037. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  1038. <input type="text" name="" class="input-width cess" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="if(value.trim()==='')value='0';">
  1039. </td>
  1040. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  1041. <input type="text" name="" class="input-width priceTax" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="if(value.trim()==='')value='0';">
  1042. </td>
  1043. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  1044. <input type="text" name="" class="input-width purchaseNumber" readonly>
  1045. <input type="hidden" name="" class="input-width purchaseId">
  1046. <img align="bottom" style="cursor: pointer" class="substract1" src="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/${sessionScope.css}/images/index/jian.png">
  1047. </td>
  1048. </tr>
  1049. <!-- ***************************************************模板 ------- 付款信息-->
  1050. <tr id="template_2" class="startTr2 hide">
  1051. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  1052. <select name="" class="input-width payType">
  1053. <option value="" selected="selected">--请选择--</option>
  1054. <c:forEach items="${paymentList }" var="item">
  1055. <option value="${item.payType }" >${item.payTypeName }</option>
  1056. </c:forEach>
  1057. </select>
  1058. </td>
  1059. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  1060. <input type="text" name="" class="input-width proportion" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="if(value.trim()==='')value='0';" value="0">%
  1061. </td>
  1062. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  1063. <input type="text" name="" class="input-width amount" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="if(value.trim()==='')value='0';" value="0" readonly>
  1064. </td>
  1065. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  1066. <input type="text" name="" class="input-width amountPaid" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="if(value.trim()==='')value='0';" value="0">
  1067. </td>
  1068. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  1069. <input type="text" name="" class="input-width payTime" readonly>
  1070. </td>
  1071. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  1072. <input type="text" name="" class="input-width payStatusName" readonly>
  1073. <input type="hidden" name="" class="input-width payStatus" value="0">
  1074. </td>
  1075. <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
  1076. <input type="text" name="" class="input-width remark">
  1077. <img align="bottom" style="cursor: pointer" class="substract2" src="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/${sessionScope.css}/images/index/jian.png">
  1078. </td>
  1079. </tr>
  1080. </table>