|  | @@ -98,6 +98,19 @@
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +        function formatNum(obj) {
 | 
	
		
			
				|  |  | +            var val = $(obj).val();
 | 
	
		
			
				|  |  | +            if(val==null||val==''|| isNaN(val))return;
 | 
	
		
			
				|  |  | +            var money = parseFloat((val + "").replace(/[^\d\.-]/g, "")).toFixed(2) + "";
 | 
	
		
			
				|  |  | +            var l = money.split(".")[0].split("").reverse(),
 | 
	
		
			
				|  |  | +                r = money.split(".")[1];
 | 
	
		
			
				|  |  | +            t = "";
 | 
	
		
			
				|  |  | +            for(i = 0; i < l.length; i ++ )
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                t += l[i] + ((i + 1) % 3 == 0 && (i + 1) != l.length ? "," : "");
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            $(obj).val(t.split("").reverse().join("") + "." + r);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |      </script>
 | 
	
		
			
				|  |  |  </head>
 | 
	
		
			
				|  |  |  <body>
 | 
	
	
		
			
				|  | @@ -112,13 +125,15 @@
 | 
	
		
			
				|  |  |                  <div class="layui-item layui-col-sm6">
 | 
	
		
			
				|  |  |                      <label class="layui-form-label"><span class="require-item">*</span>完成价款:</label>
 | 
	
		
			
				|  |  |                      <div class="layui-input-block">
 | 
	
		
			
				|  |  | -                        <form:input path="completePrice" htmlEscape="false" class="form-control layui-input required number"/>
 | 
	
		
			
				|  |  | +                        <input name="completePriceStr" htmlEscape="false" value="<fmt:formatNumber value="${projectPaymentTreeData.completePrice}" pattern="#,##0.00#"/>" onchange="formatNum(this);" class="form-control layui-input number"/>
 | 
	
		
			
				|  |  | +                        <%--<form:input path="completePrice"  htmlEscape="false" class="form-control layui-input required number"/>--%>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  |                  </div>
 | 
	
		
			
				|  |  |                  <div class="layui-item layui-col-sm6">
 | 
	
		
			
				|  |  |                      <label class="layui-form-label double-line"><span class="require-item">*</span>按约定比例应支付价款:</label>
 | 
	
		
			
				|  |  |                      <div class="layui-input-block">
 | 
	
		
			
				|  |  | -                        <form:input path="appointPay" htmlEscape="false"    class="form-control layui-input required number"/>
 | 
	
		
			
				|  |  | +                        <input name="appointPayStr" htmlEscape="false" value="<fmt:formatNumber value="${projectPaymentTreeData.appointPay}" pattern="#,##0.00#"/>" onchange="formatNum(this);" class="form-control layui-input number"/>
 | 
	
		
			
				|  |  | +                        <%--<form:input path="appointPay" htmlEscape="false"    class="form-control layui-input required number"/>--%>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  |                  </div>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -126,24 +141,27 @@
 | 
	
		
			
				|  |  |                  <div class="layui-item layui-col-sm6">
 | 
	
		
			
				|  |  |                      <label class="layui-form-label double-line"><span class="require-item">*</span>应扣预付款:</label>
 | 
	
		
			
				|  |  |                      <div class="layui-input-block">
 | 
	
		
			
				|  |  | -                        <form:input path="advanceDeduct" htmlEscape="false"    class="form-control layui-input required number"/>
 | 
	
		
			
				|  |  | +                        <input name="advanceDeductStr" htmlEscape="false" value="<fmt:formatNumber value="${projectPaymentTreeData.advanceDeduct}" pattern="#,##0.00#"/>" onchange="formatNum(this);" class="form-control layui-input number"/>
 | 
	
		
			
				|  |  | +                        <%--<form:input path="advanceDeduct" htmlEscape="false"    class="form-control layui-input required number"/>--%>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  |                  </div>
 | 
	
		
			
				|  |  |                  <div class="layui-item layui-col-sm6">
 | 
	
		
			
				|  |  |                      <label class="layui-form-label double-line"><span class="require-item">*</span>其他应扣款:</label>
 | 
	
		
			
				|  |  |                      <div class="layui-input-block">
 | 
	
		
			
				|  |  | -                        <form:input path="restsDeduct" htmlEscape="false"    class="form-control layui-input required number"/>
 | 
	
		
			
				|  |  | +                        <input name="restsDeductStr" htmlEscape="false" value="<fmt:formatNumber value="${projectPaymentTreeData.restsDeduct}" pattern="#,##0.00#"/>" onchange="formatNum(this);" class="form-control layui-input number"/>
 | 
	
		
			
				|  |  | +                        <%--<form:input path="restsDeduct" htmlEscape="false"    class="form-control layui-input required number"/>--%>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  |                  </div>
 | 
	
		
			
				|  |  |                  <div class="layui-item layui-col-sm6">
 | 
	
		
			
				|  |  |                      <label class="layui-form-label double-line"><span class="require-item">*</span>实际应支付:</label>
 | 
	
		
			
				|  |  |                      <div class="layui-input-block">
 | 
	
		
			
				|  |  | -                        <form:input path="actualPay" htmlEscape="false"    class="form-control layui-input required number"/>
 | 
	
		
			
				|  |  | +                        <input name="actualPayStr" htmlEscape="false" value="<fmt:formatNumber value="${projectPaymentTreeData.actualPay}" pattern="#,##0.00#"/>" onchange="formatNum(this);" class="form-control layui-input number"/>
 | 
	
		
			
				|  |  | +                        <%--<form:input path="actualPay" htmlEscape="false"    class="form-control layui-input required number"/>--%>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  |                  </div>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              <div class="layui-item layui-col-sm6">
 | 
	
		
			
				|  |  | -                <label class="layui-form-label"><span class="require-item">*</span>签订日期:</label>
 | 
	
		
			
				|  |  | +                <label class="layui-form-label"><span class="require-item">*</span>支付日期:</label>
 | 
	
		
			
				|  |  |                  <div class="layui-input-block">
 | 
	
		
			
				|  |  |                      <input class="laydate-icondate layui-input form-control layer-date laydate-icon required" id="payDate" name="payDate" value="${projectPaymentTreeData.payDate}">
 | 
	
		
			
				|  |  |                  </div>
 |