| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <!DOCTYPE html>
- <html>
- <head>
- <title>销售合同补充协议</title>
- <style>
- .ui-button {
- display: inline-block;
- padding: 2px 2px;
- margin-bottom: 0;
- font-size: 8px;
- font-weight: normal;
- line-height: 1.42857143;
- text-align: center;
- white-space: nowrap;
- vertical-align: middle;
- -ms-touch-action: manipulation;
- touch-action: manipulation;
- cursor: pointer;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- background-image: none;
- border: 1px solid transparent;
- border-radius: 4px;
- }
- </style>
- <t:base type="jquery,easyui,tools,DatePicker"></t:base>
- <script type="text/javascript">
- $(document).ready(function(){
- $('#tt').tabs({
- onSelect:function(title){
- $('#tt .panel-body').css('width','auto');
- }
- });
- $(".tabs-wrap").css('width','100%');
- });
- var enddate = '${contractSalePage.enddate }'.substring(0,10);
- function tyepChange(){
- if($("#attType").val() != "1"){
- $('#enddate').removeAttr("disabled");
- }else{
- $('#enddate').attr("disabled","disabled");
- $('#enddate').val(enddate);
- }
- }
- </script>
- </head>
- <body style="overflow-x: hidden;">
- <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="contractSaleController.do?doAdd" beforeSubmit="beforeSubmit" >
- <input id="id" name="id" type="hidden" value="${contractSalePage.id }"/>
- <input id="type" name="type" type="hidden" value="${contractSalePage.type }"/>
- <input id="contractid" name="contractid" type="hidden" value="${contractSalePage.contractid }"/>
- <input id="busstatus" name="busstatus" type="hidden" value="${contractSalePage.busstatus }"/>
- <input id="startdate" name="startdate" type="hidden" value="${contractSalePage.startdate }"/>
-
- <table cellpadding="0" cellspacing="1" class="formtable">
- <tr>
- <td align="right">
- <label class="Validform_label">原合同名:</label>
- </td>
- <td class="value">
- <input id="contractname" name="contractname" type="text" style="width: 300px" value="${contractSalePage.contractname }" class="inputxt" readonly="readonly" ignore="ignore" />
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">合同名</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">补充协议编号:</label>
- </td>
- <td class="value">
- <input id="code" name="code" type="text" style="width: 150px" class="inputxt" ignore="checked" />
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">合同号</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span>补充协议名称:</label>
- </td>
- <td class="value">
- <input id="name" name="name" type="text" datatype="*" style="width: 300px" class="inputxt" ignore="checked" />
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">合同名</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span>补充协议金额(元):</label>
- </td>
- <td class="value">
- <input id="addamount" name="addamount" type="text" style="width: 150px" class="inputxt" datatype="/^(-?\d+)(\.\d+)?$/" ignore="checked"
- onKeyUp="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')" oninput="changeToCHN(event)"/>
- <span class="Validform_checktip"></span>
- <label id="totalamountCHN" style="font-size: 18px"></label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span>签订日期:</label>
- </td>
- <td class="value">
- <input id="signdate" name="signdate" type="text" datatype="*" style="width: 150px" class="Wdate" onClick="WdatePicker()" ignore="checked" />
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">签订日期</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">协议类型:</label>
- </td>
- <td class="value">
- <select name="attType" id="attType" width="100" onchange="tyepChange()" style="width: 134px">
- <option value="1">补充服务内容</option>
- <option value="2">延期协议</option>
- <option value="3">提前终止协议</option>
- </select>
- </td>
- </tr>
- <tr >
- <td align="right">
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span>截止日期:</label>
- </td>
- <td class="value">
- <input id="enddate" name="enddate" type="text" datatype="*" style="width: 150px;" disabled="disabled" value='<fmt:formatDate value='${contractSalePage.enddate}' type="date" pattern="yyyy-MM-dd"/>' class="Wdate" onClick="WdatePicker()" onchange="bingdingChange(event)" ignore="checked" />
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">截止日期</label>
- </td>
- </tr>
- <tr >
- <td align="right" >
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span>招标提醒日期:</label>
- </td>
- <td class="value" >
- <input id="nextbiddingdate" name="nextbiddingdate" type="text" style="width: 150px" value='<fmt:formatDate value='${contractSalePage.nextbiddingdate}' type="date" pattern="yyyy-MM-dd"/>' class="Wdate" onClick="WdatePicker()" datatype="*" ignore="checked" />
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">招标提醒日期</label>
- </td>
- </tr>
-
- <tr id="amount" style="display:none">
- <td align="right">
- <label class="Validform_label">累计开票金额(元):</label>
- </td>
- <td class="value">
- <input id="totalinvoice" name="totalinvoice" type="text" style="width: 150px" class="inputxt" datatype="/^(-?\d+)(\.\d+)?$/" ignore="ignore" />
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">累计开票金额</label>
- </td>
- <td align="right">
- <label class="Validform_label">累计收款金额(元):</label>
- </td>
- <td class="value">
- <input id="totalincome" name="totalincome" type="text" style="width: 150px" class="inputxt" datatype="/^(-?\d+)(\.\d+)?$/" ignore="ignore" />
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">累计收款金额</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span>服务内容:</label>
- </td>
- <td class="value">
- <t:dictSelect field="servicecontent" type="checkbox" typeGroupCode="servicetype" defaultVal="${contractSalePage.servicecontent}" datatype="*" hasLabel="false" title="服务内容" ></t:dictSelect>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">服务内容</label>
- </td>
- </tr>
- <tr style="display:none">
- <td align="right">
- <label class="Validform_label">客户:</label>
- </td>
- <td class="value">
- <input readonly="true" type="text" id="customername" name="customername" value="${contractSalePage.customername}" style="width: 157px" placeholder="请选择客户" onclick="openCustomerSelect()">
- <input id="customerid" name="customerid" type="hidden" value="${contractSalePage.customerid}">
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="partnerSearch" onclick="openCustomerSelect()">选择</a>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="partnerRedo" onclick="callbackCleanCustomer()">清空</a>
- </td>
- <td align="right">
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span>项目:</label>
- </td>
- <td class="value">
- <input readonly="true" type="text" id="projectname" name="projectname" value="${contractSalePage.projectname}" style="width: 157px" placeholder="请选择项目名称" onclick="openProjectSelect()">
- <input id="projectid" name="projectid" type="hidden" value="${contractSalePage.projectid}">
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="projectSearch" onclick="openProjectSelect()">选择</a>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="projectRedo" onclick="callbackCleanProject()">清空</a>
- </td>
- </tr>
- <tr>
- <td align="right" >
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span>付款模式:</label>
- </td>
- <td class="value">
- <t:dictSelect field="paytype" type="list" typeGroupCode="paymode" defaultVal="${contractSalePage.paytype}" hasLabel="false" title="付款模式" datatype="*"></t:dictSelect>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">付款模式</label>
- </td>
- </tr>
-
- <tr>
- <td align="right">
- <label class="Validform_label">补充协议描述:</label>
- </td>
- <td class="value" colspan="3">
- <textarea id="description" style="width:300px;height: 80px" class="inputxt" name="description" ignore="ignore" ></textarea>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">合同描述</label>
- </td>
- </tr>
- </table>
- <div style="width: auto;height: 200px;">
- <%-- 增加一个div,用于调节页面大小,否则默认太小 --%>
- <div style="width:800px;height:1px;"></div>
- <t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
- <t:tab href="contractSaleController.do?contractSaleItemList&id=${contractSalePage.id}" icon="icon-search" title="服务明细" id="contractSaleItem"></t:tab>
- </t:tabs>
- </div>
- </t:formvalid>
- <!-- 添加 附表明细 模版 -->
- <table style="display:none">
- <tbody id="add_contractSaleItem_table_template">
- <tr>
- <td align="center"><div style="width: 25px;" name="xh"></div></td>
- <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
- <td align="left">
- <t:dictSelect field="contractSaleItemList[#index#].servicetype" type="list" typeGroupCode="servicetypedetail"
- extendJson="{class:'form-control',style:'width:120px'}" datatype="*" />
- <label class="Validform_label" style="display: none;">服务类型</label>
- </td>
- <td align="left">
- <input name="contractSaleItemList[#index#].remark" maxlength="256" type="text" class="inputxt" style="width:400px;" ignore="ignore" />
- <label class="Validform_label" style="display: none;">服务说明</label>
- </td>
- <td align="left">
- <t:dictSelect field="contractSaleItemList[#index#].addordel" type="list" typeGroupCode="addordel"
- extendJson="{class:'form-control',style:'width:120px'}" datatype="*" defaultVal="add"/>
- <label class="Validform_label" style="display: none;">增项减项</label>
- </td>
- </tr>
- </tbody>
- </table>
- </body>
- <script type="text/javascript" src="plug-in/tools/money.js"></script>
- <script type="text/javascript" src="plug-in/tools/dateUtil.js"></script>
- <script src = "webpage/cn/com/lzt/contractsale/contractSale.js"></script>
-
|