sign.jsp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <!doctype html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <%@ include file="../../common/head.jsp"%>
  8. <link rel="stylesheet" type="text/css" href="../res/js//plugins/webuploader/webuploader.css">
  9. <link rel="stylesheet" type="text/css" href="../res/css/demo/webuploader-demo.css">
  10. <link href="../res/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
  11. <script src="../res/js/plugins/bootstrap-table/bootstrap-table.js"></script>
  12. <script src="../res/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
  13. <script src="../res/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
  14. <script type="text/javascript" src="../res/js/plugins/webuploader/webuploader.js"></script>
  15. <script type="text/javascript" src="../res/js/plugins/webuploader/uploader.js"></script>
  16. <script>
  17. $(function(){
  18. $('.btn-primary').click(function () {
  19. //$('#tab_user').bootstrapTable('refresh');
  20. $("#actionName").val("qyqr");
  21. //$("#signActionForm").submit();
  22. $.post('signAction.cs?orderId=' + $("#orderId").val() + "&actionName="+$("#actionName").val(),
  23. function(result){
  24. layer.alert(result.msg, {icon: 6});
  25. var index = parent.layer.getFrameIndex(window.name);
  26. //parent.location.href=parent.location.href;
  27. parent.$('#tab_user').bootstrapTable('refresh');
  28. parent.layer.close(index);
  29. }
  30. );
  31. });
  32. $('.btn-default').click(function () {
  33. $("#actionName").val("qywx");
  34. $.post('signAction.cs?orderId=' + $("#orderId").val() + "&actionName="+$("#actionName").val(),
  35. function(result){
  36. layer.alert(result.msg, {icon: 6});
  37. parent.$('#tab_user').bootstrapTable('refresh');
  38. var index = parent.layer.getFrameIndex(window.name);
  39. parent.layer.close(index);
  40. //parent.location.href=parent.location.href;
  41. }
  42. );
  43. });
  44. });
  45. </script>
  46. <cs:initFile/>
  47. </head>
  48. <body>
  49. <div class="wrapper wrapper-content">
  50. <div class="row">
  51. <div class="col-sm-12">
  52. <div class="ibox float-e-margins">
  53. <div class="ibox-content">
  54. <div class="form-group">
  55. <label class="col-sm-2 control-label">订单编号:</label>
  56. <div class="col-sm-4">
  57. <input id="mgmOrder" name="mgmOrder" class="form-control" validate="{required:true}" readonly="readonly" value="${mgmOrder.orderNo }" validateMessage="{required:'请输入订单编号'}" >
  58. </div>
  59. <label class="col-sm-2 control-label">订单类别:</label>
  60. <div class="col-sm-4">
  61. <input id="mgmOrder" name="mgmOrder" class="form-control" validate="{required:true}" readonly="readonly" value="${mgmOrder.orderType }" validateMessage="{required:'请输入订单编号'}" >
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="col-sm-2 control-label">合同金额:</label>
  66. <div class="col-sm-4">
  67. <input id="amount" name="amount" class="form-control" validate="{required:true}" readonly="readonly" value="${mgmOrder.amount }" validateMessage="{required:'请输入客户姓名'}" >
  68. </div>
  69. <label class="col-sm-2 control-label">佣金:</label>
  70. <div class="col-sm-4">
  71. <input id="commission" name="commission" class="form-control" validate="{required:true}" readonly="readonly" value="${mgmOrder.commission }" validateMessage="{required:'请输入佣金'}" >
  72. </div>
  73. </div>
  74. </div>
  75. <div class="ibox-content">
  76. <h5>客户信息:</h5>
  77. <div class="form-group">
  78. <label class="col-sm-2 control-label">客户姓名:</label>
  79. <div class="col-sm-4">
  80. <input id="customerName" name="customerName" class="form-control" validate="{required:true}" readonly="readonly" value="${mgmCustomer.name }" validateMessage="{required:'请输入客户姓名'}" >
  81. </div>
  82. <label class="col-sm-2 control-label">客户电话:</label>
  83. <div class="col-sm-4">
  84. <input id="customerPhone" name="customerPhone" class="form-control" validate="{required:true}" readonly="readonly" value="${mgmCustomer.phone }" validateMessage="{required:'请输入客户电话'}" >
  85. </div>
  86. </div>
  87. <div class="form-group">
  88. <label class="col-sm-2 control-label">省:</label>
  89. <div class="col-sm-4">
  90. <input id="province" name="province" class="form-control" validate="{required:true}" readonly="readonly" value="${mgmCustomer.province }" validateMessage="{required:'请输入客户姓名'}" >
  91. </div>
  92. <label class="col-sm-2 control-label">市:</label>
  93. <div class="col-sm-4">
  94. <input id="city" name="city" class="form-control" validate="{required:true}" readonly="readonly" value="${mgmCustomer.city }" validateMessage="{required:'请输入客户电话'}" >
  95. </div>
  96. </div>
  97. <div class="form-group">
  98. <label class="col-sm-2 control-label">区:</label>
  99. <div class="col-sm-4">
  100. <input id="area" name="area" class="form-control" validate="{required:true}" readonly="readonly" value="${mgmCustomer.area }" validateMessage="{required:'请输入客户姓名'}" >
  101. </div>
  102. <label class="col-sm-2 control-label">地址:</label>
  103. <div class="col-sm-4">
  104. <input id="address" name="address" class="form-control" validate="{required:true}" readonly="readonly" value="${mgmCustomer.address }" validateMessage="{required:'请输入客户电话'}" >
  105. </div>
  106. </div>
  107. <div class="form-group">
  108. <label class="col-sm-2 control-label">订单备注:</label>
  109. <div class="col-sm-10">
  110. <input id="remark" name="remark" class="form-control" validate="{required:true}" readonly="readonly" value="${mgmOrder.remark }" validateMessage="{required:'请输入客户姓名'}" >
  111. </div>
  112. </div>
  113. </div>
  114. <div class="ibox-content">
  115. <h5>推荐人信息:</h5>
  116. <div class="form-group">
  117. <label class="col-sm-2 control-label">推荐人姓名:</label>
  118. <div class="col-sm-4">
  119. <input id="tjName" name="tjName" class="form-control" validate="{required:true}" readonly="readonly" value="${mgmUserTj.name }" validateMessage="{required:'请输入推荐人姓名'}" >
  120. </div>
  121. <label class="col-sm-2 control-label">推荐人电话:</label>
  122. <div class="col-sm-4">
  123. <input id="tjPhone" name="tjPhone" class="form-control" validate="{required:true}" readonly="readonly" value="${mgmUserTj.phone }" validateMessage="{required:'请输入推荐人电话'}" >
  124. </div>
  125. </div>
  126. <div class="form-group">
  127. <label class="col-sm-2 control-label">推荐人部门:</label>
  128. <div class="col-sm-4">
  129. <input id="tjDeptName" name="tjDeptName" class="form-control" validate="{required:true}" readonly="readonly" value="${mgmUserTj.deptName }" validateMessage="{required:'请输入推荐人部门'}" >
  130. </div>
  131. <label class="col-sm-2 control-label">推荐人职务:</label>
  132. <div class="col-sm-4">
  133. <input id="tjPost" name="tjPost" class="form-control" validate="{required:true}" readonly="readonly" value="${mgmUserTj.post }" validateMessage="{required:'请输入推荐人职务'}" >
  134. </div>
  135. </div>
  136. </div>
  137. <div class="ibox-content">
  138. <h5>销售人员信息:</h5>
  139. <div class="form-group">
  140. <label class="col-sm-2 control-label">销售人员姓名:</label>
  141. <div class="col-sm-4">
  142. <input id="SalerName" name="SalerName" class="form-control" validate="{required:true}" readonly="readonly" value="${mgmUserSaler.name }" validateMessage="{required:'请输入销售人员姓名'}" >
  143. </div>
  144. <label class="col-sm-2 control-label">销售人员电话:</label>
  145. <div class="col-sm-4">
  146. <input id="SalerPhone" name="SalerPhone" class="form-control" validate="{required:true}" readonly="readonly" value="${mgmUserSaler.phone }" validateMessage="{required:'请输入销售人员电话'}" >
  147. </div>
  148. </div>
  149. <div class="form-group">
  150. <label class="col-sm-2 control-label">销售人员部门:</label>
  151. <div class="col-sm-4">
  152. <input id="SalerDeptName" name="SalerDeptName" class="form-control" validate="{required:true}" readonly="readonly" value="${mgmUserSaler.deptName }" validateMessage="{required:'请输入销售人员部门'}" >
  153. </div>
  154. <label class="col-sm-2 control-label">销售人员职务:</label>
  155. <div class="col-sm-4">
  156. <input id="SalerPost" name="SalerPost" class="form-control" validate="{required:true}" readonly="readonly" value="${mgmUserSaler.post }" validateMessage="{required:'请输入销售人员职务'}" >
  157. </div>
  158. </div>
  159. </div>
  160. <div class="ibox-content">
  161. <h5>产品信息:</h5>
  162. <div class="example">
  163. <table
  164. id="tab_user"
  165. data-toggle="table"
  166. data-url="pruductList.cs?orderid=${mgmOrder.id}"
  167. data-method="get"
  168. data-click-to-select="true"
  169. data-pagination="false"
  170. data-data-type="json"
  171. data-show-refresh="false"
  172. data-show-columns="false"
  173. data-show-toggle="false"
  174. data-search-on-enter-key="true"
  175. data-toolbar="#def_toolbar"
  176. data-side-pagination="server"
  177. data-query-params="queryParams"
  178. data-mobile-responsive="true">
  179. <thead>
  180. <tr>
  181. <th data-field=productName data-align="center" data-sortable="true">产品名称</th>
  182. <th data-field="unit" data-align="left" data-sortable="true">单位</th>
  183. <th data-field="price" data-sortable="true" data-sorter="scoreSorter">单价</th>
  184. <th data-field="commissionRate" data-sortable="true" data-sorter="scoreSorter">佣金比例</th>
  185. <th data-field="commissionRateYc" data-sortable="true" data-sorter="scoreSorter">溢出佣金比例</th>
  186. <th data-field="willCnt" data-sortable="true" data-sorter="scoreSorter">意向数量</th>
  187. <th data-field="actualCnt" data-sortable="true" data-sorter="scoreSorter">实际数量</th>
  188. <th data-field="standardAmount" data-sortable="true" data-sorter="scoreSorter">标准价</th>
  189. <th data-field="dealAmount" data-sortable="true" data-sorter="scoreSorter">成交价</th>
  190. </tr>
  191. </thead>
  192. </table>
  193. </div>
  194. </div>
  195. <div class="ibox-content">
  196. <h5>订单跟踪:</h5>
  197. <div class="example">
  198. <table
  199. id="tab_user"
  200. data-toggle="table"
  201. data-url="scheduleList.cs?orderid=${mgmOrder.id}"
  202. data-method="get"
  203. data-click-to-select="true"
  204. data-pagination="false"
  205. data-data-type="json"
  206. data-show-refresh="false"
  207. data-show-columns="false"
  208. data-show-toggle="false"
  209. data-search-on-enter-key="true"
  210. data-toolbar="#def_toolbar"
  211. data-side-pagination="server"
  212. data-query-params="queryParams"
  213. data-mobile-responsive="true"
  214. >
  215. <thead>
  216. <tr>
  217. <th data-field="fill_username" data-align="center" data-sortable="true">姓名</th>
  218. <th data-field="name" data-align="center" data-sortable="true">状态</th>
  219. <th data-field="fill_content" data-align="center" data-sortable="true">说明</th>
  220. <th data-field="create_date" data-formatter="format_time" data-align="center" data-sortable="true">时间</th>
  221. </tr>
  222. </thead>
  223. </table>
  224. </div>
  225. </div>
  226. <div class="ibox-content">
  227. <cs:form_validate formId="signActionForm"/>
  228. <input type="hidden" id="orderId" name="orderId" value="${mgmOrder.id }" />
  229. <input type="hidden" id="actionName" name="actionName" value="qyqr" />
  230. <div class="form-group">
  231. <p>
  232. <button class="btn btn-primary " type="button"><i class="fa fa-check"></i>&nbsp;签约确认</button>
  233. <button class="btn btn-default " type="button"><i class="fa fa-warning"></i>&nbsp;&nbsp;<span class="bold">签约无效</span>
  234. </button>
  235. </p>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. </div>
  241. </div>
  242. </body>
  243. </html>