customervisit.jsp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <meta charset="utf-8" />
  7. <meta name="viewport"
  8. content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, width=device-width">
  9. <meta http-equiv="Cache-Control" content="no-siteapp" />
  10. <meta name="description"
  11. content="USOFTCHINA.COM,ERP,SCM,CRM,MRP,企业管理,优软" />
  12. <meta name="keywords" content="USOFTCHINA.COM,ERP,SCM,CRM,MRP,企业管理,优软" />
  13. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  14. <%
  15. String basePath = request.getScheme() + "://"
  16. + request.getServerName() + ":" + request.getServerPort()
  17. + request.getContextPath() + "/";
  18. %>
  19. <link href="<%=basePath%>resource/bootstrap/bootstrap.min.css"
  20. rel="stylesheet">
  21. <link href="<%=basePath%>resource/bootstrap/bootstrap-datetimepicker.min.css"
  22. rel="stylesheet">
  23. <base href="<%=basePath%>jsps/mobile/" />
  24. <link rel="stylesheet" href="customervisit.css" type="text/css" />
  25. <title>客户拜访记录-UAS管理系统</title>
  26. <script type="text/javascript">
  27. var username = '<%=session.getAttribute("em_name")%>';
  28. var em_code = '<%=session.getAttribute("em_code")%>';
  29. var em_depart ='<%=session.getAttribute("em_depart")%>';
  30. var em_master = '<%=session.getAttribute("em_master")%>';
  31. var basePath = (function() {
  32. var fullPath = window.document.location.href;
  33. var path = window.document.location.pathname;
  34. var subpos = fullPath.indexOf('//');
  35. var subpath = subpos > -1 ? fullPath.substring(0, subpos + 2) : '';
  36. if (subpos > -1)
  37. fullPath = fullPath.substring(subpos + 2);
  38. var pos = fullPath.indexOf(path), sname = path.substring(0, path.substr(1).indexOf('/') + 1);
  39. return subpath + fullPath.substring(0, pos) + (sname == '/ERP' ? '/ERP/' : '/');
  40. })();
  41. </script>
  42. </head>
  43. <body>
  44. <!-- top start -->
  45. <div id="top" class="container">
  46. <div class="top-sysname">
  47. <a href="<%=basePath%>"><span>优软UAS</span>&nbsp;&nbsp;<span style="font-size:15px; font-weight:normal">移动版</span></a>
  48. </div>
  49. <div class="top-sysrelation">
  50. <span class="glyphicon glyphicon-user"></span>&nbsp;<span id="username">管理员</span>&nbsp;|&nbsp;
  51. <a href="<%=basePath%>"><span class="glyphicon glyphicon-home">
  52. </span>&nbsp;<span>首页</span>
  53. </a>
  54. </div>
  55. </div>
  56. <!-- top end -->
  57. <!-- main start -->
  58. <div id="mian" class="container">
  59. <div id="title">
  60. <span class="glyphicon glyphicon-pencil"></span>&nbsp;<span id="handler_name">新建客户拜访记录</span>
  61. <div class="list-index"><a href="#">列表<span class="glyphicon glyphicon-list-alt"></span></a></div>
  62. </div>
  63. <!-- 基本信息 start -->
  64. <div class="baseinfo-title">
  65. <span class="glyphicon glyphicon-tasks"></span><span>&nbsp;基本信息</span>
  66. </div>
  67. <div id="baseinfo">
  68. <form class="form-horizontal" id="formStore">
  69. <div class="control-group">
  70. <label class="control-label text-right" for="vr_code">单据编号:</label>
  71. <input type="text" id="vr_code" name="vr_code" class="form-control">
  72. <div class="checkbox has-success form-remark">
  73. </div>
  74. </div>
  75. <div class="control-group">
  76. <label class="control-label text-right" for="vr_type">拜访类型:</label>
  77. <select type="text" id="vr_type" name="vr_type" class="form-control">
  78. </select>
  79. <div class="form-remark">
  80. </div>
  81. </div>
  82. <div class="control-group">
  83. <label class="control-label text-right" for="vr_way">拜访方式:</label>
  84. <select type="text" id="vr_way" name="vr_way" class="form-control">
  85. </select>
  86. <div class="form-remark">
  87. </div>
  88. </div>
  89. <div class="control-group">
  90. <label class="control-label text-right" for="vr_visittime">拜访时间:</label>
  91. <div class="input-append date" id="datetimepicker" date-format="yyyy-MM-dd hh:mm:ss">
  92. <input class="form-control" type="text" id="vr_visittime" name="vr_visittime" date-format="yyyy-MM-dd hh:mm:ss" >
  93. <span class="add-on glyphicon glyphicon-calendar" style="padding-left:5px;"></span>
  94. </div>
  95. <div class="form-remark">
  96. <button type="button" id="settime_now" class="btn btn-primary btn-xs">NOW</button>
  97. </div>
  98. </div>
  99. <div class="control-group dropdown">
  100. <label class="control-label text-right" for="vr_cuuu">客户编号:</label>
  101. <input type="text" id="vr_cuuu" name="vr_cuuu" class="form-control"
  102. placeholder="输入编号关键字点击按钮搜索">
  103. <div class="form-remark" data-toggle="dropdown">
  104. <button id="cuuuDb" type="button" class="btn btn-primary btn-xs"><span class="glyphicon glyphicon-search"></span></button>
  105. </div>
  106. <div id="suggest_cuuu" class="dropdown-menu suggest-box">
  107. <div class="">
  108. <ul class="suggest-result">
  109. </ul>
  110. </div>
  111. </div>
  112. </div>
  113. <div class="control-group dropdown">
  114. <label class="control-label text-right" for="vr_cuname">客户名称:</label>
  115. <input type="text" id="vr_cuname" name="vr_cuname" class="form-control"
  116. placeholder="输入名称关键字点击按钮搜索">
  117. <div class="form-remark" data-toggle="dropdown">
  118. <button id="cunameDb" type="button" class="btn btn-primary btn-xs"><span class="glyphicon glyphicon-search"></span></button>
  119. </div>
  120. <div id="suggest_cuname" class="dropdown-menu suggest-box" style="width:60%;">
  121. <div class="">
  122. <ul class="suggest-result">
  123. </ul>
  124. </div>
  125. </div>
  126. </div>
  127. <div class="control-group">
  128. <label class="control-label text-right" for="vr_title">拜访主题:</label>
  129. <input type="text" id="vr_title" name="vr_title" class="form-control">
  130. <div class="form-remark">
  131. </div>
  132. </div>
  133. <div class="control-group">
  134. <label class="control-label text-right" for="vr_visitplace">拜访地点:</label>
  135. <input type="text" id="vr_visitplace" name="vr_visitplace" class="form-control">
  136. <div class="form-remark">
  137. <button id="location" type="button" class="btn btn-primary btn-xs">定位</button>
  138. <div id="location_map" style="dispaly:inline-block;width:0px;height:0px;"></div>
  139. </div>
  140. </div>
  141. <div class="control-group">
  142. <label class="control-label text-right" for="vr_defaultorname">所属组织:</label>
  143. <input type="text" id="vr_defaultorname" name="vr_defaultorname" class="form-control">
  144. <div class="form-remark">
  145. </div>
  146. </div>
  147. <div class="control-group">
  148. <label class="control-label text-right" for="vr_detail" style="display:block;">拜访内容:</label>
  149. <textarea type="text" id="vr_detail" name="vr_detail" style="height:auto;" class="form-control form-textarea" rows=6></textarea>
  150. <div class="form-remark">
  151. </div>
  152. </div>
  153. </form>
  154. </div>
  155. <!-- 基本信息 end -->
  156. <!-- 拜访人员 start -->
  157. <div class="de-title">
  158. <span class="glyphicon glyphicon-user"></span><span>&nbsp;拜访人员</span>
  159. <div class="add-perpeo" id="add_visit_perpeo">
  160. <span class="glyphicon glyphicon-plus"></span>
  161. </div>
  162. </div>
  163. <div id="visit_perpeo">
  164. <form id="pl">
  165. <table class="table">
  166. <tr><th width="30%">姓名</th><th width="50%">职务</th><th width="10%"></th></tr>
  167. <tr class="pl">
  168. <td width="30%">
  169. <div><input name="pl_name" class="form-control" type="text"></div>
  170. </td>
  171. <td width="50%">
  172. <div><input name="pl_position" class="form-control" type="text"></div>
  173. </td>
  174. <td with="10%"></td>
  175. </tr>
  176. <tr class="pl">
  177. <td width="30%">
  178. <div><input name="pl_name" class="form-control" type="text"></div>
  179. </td>
  180. <td width="50%">
  181. <div><input name="pl_position" class="form-control" type="text"></div>
  182. </td>
  183. <td with="10%"><span style="color:#FF6600;" class="glyphicon glyphicon-remove"></span></td>
  184. </tr>
  185. </table>
  186. </form>
  187. </div>
  188. <!-- 拜访人员 end -->
  189. <!-- 洽谈对象 start -->
  190. <div class="de-title">
  191. <span class="glyphicon glyphicon-link"></span><span>&nbsp;洽谈对象</span>
  192. <div class="add-perpeo" id="add_customer_perpeo">
  193. <span class="glyphicon glyphicon-plus"></span>
  194. </div>
  195. </div>
  196. <div id="customer_perpeo">
  197. <form id="cup">
  198. <table class="table">
  199. <tr><th width="20%">姓名</th><th width="30%">职务</th><th width="40%">联系电话</th><th width="10%"></th></tr>
  200. <tr class="cup">
  201. <td width="20%">
  202. <div><input name="cup_name" class="form-control" type="text"></div>
  203. </td>
  204. <td width="30%">
  205. <div><input name="cup_position" class="form-control" type="text"></div>
  206. </td>
  207. <td width="40%"><div><input name="cup_tel" class="form-control" type="number"></div></td>
  208. <td with="10%"></td>
  209. </tr>
  210. <tr class="cup">
  211. <td width="20%">
  212. <div><input name="cup_name" class="form-control" type="text"></div>
  213. </td>
  214. <td width="30%">
  215. <div><input name="cup_position" class="form-control" type="text"></div>
  216. </td>
  217. <td width="40%"><div><input name="cup_tel" class="form-control" type="number"></div></td>
  218. <td with="10%"><span style="color:#FF6600;" class="glyphicon glyphicon-remove"></span></td>
  219. </tr>
  220. </table>
  221. </form>
  222. </div>
  223. <!-- 恰谈对象 end -->
  224. <!-- 推广项目信息 start -->
  225. <div class="de-title">
  226. <span class="glyphicon glyphicon-share"></span><span>&nbsp;推广项目信息</span>
  227. <div class="add-perpeo" id="add_productInfo">
  228. <span class="glyphicon glyphicon-plus"></span>
  229. </div>
  230. </div>
  231. <div id="productInfo">
  232. <form id="pi">
  233. <table class="table">
  234. <tr>
  235. <th width="30%">项目名称</th><th width="30%">推广品牌</th>
  236. <th width="0%" style="display:none;">推广产品型号</th><th width="30%">推广进度</th><th width="10%"></th>
  237. </tr>
  238. <tr class="pi">
  239. <td width="30%">
  240. <div><input name="pi_prodname" class="form-control" type="text" readonly placeholder="点击选择" ></div>
  241. </td>
  242. <td width="30%">
  243. <div><input name="pi_brand" class="form-control" type="text" readonly></div>
  244. </td>
  245. <td width="0%" style="display:none;">
  246. <div><input name="pi_model" class="form-control" type="text" readonly></div>
  247. </td>
  248. <td width="30%">
  249. <div>
  250. <select name="pi_projprogress" class="form-control" type="number">
  251. <option value="初次推广">初次推广</option>
  252. <option value="报价">报价</option>
  253. <option value="送样">送样</option>
  254. <option value="样品验证">样品验证</option>
  255. <option value="量产">量产</option>
  256. <option value="结案">结案</option>
  257. </select>
  258. </div>
  259. </td>
  260. <td with="10%"></td>
  261. </tr>
  262. <tr class="pi">
  263. <td width="30%">
  264. <div><input name="pi_prodname" class="form-control" type="text" readonly placeholder="点击选择"></div>
  265. </td>
  266. <td width="30%">
  267. <div><input name="pi_brand" class="form-control" type="text" readonly></div>
  268. </td>
  269. <td width="0%" style="display:none;">
  270. <div><input name="pi_model" class="form-control" type="text" readonly></div>
  271. </td>
  272. <td width="30%">
  273. <div>
  274. <select name="pi_projprogress" class="form-control" type="number">
  275. <option value="初次推广">初次推广</option>
  276. <option value="报价">报价</option>
  277. <option value="送样">送样</option>
  278. <option value="样品验证">样品验证</option>
  279. <option value="量产">量产</option>
  280. <option value="结案">结案</option>
  281. </select>
  282. </div>
  283. </td>
  284. <td with="10%"><span style="color:#FF6600;" class="glyphicon glyphicon-remove"></span></td>
  285. </tr>
  286. </table>
  287. </form>
  288. </div>
  289. <!-- 推广项目信息 end -->
  290. <!-- 费用报销 start -->
  291. <div class="de-title">
  292. <span class="glyphicon glyphicon-usd"></span><span>&nbsp;费用报销</span>
  293. <div class="add-perpeo" id="add_feedBack">
  294. <span class="glyphicon glyphicon-plus"></span>
  295. </div>
  296. </div>
  297. <div id="feedBack">
  298. <form id="fb">
  299. <table class="table">
  300. <tr><th width="35%">费用用途</th><th width="20%">金额</th><th width="35%">备注</th><th width="10%"></th></tr>
  301. <tr class="fb">
  302. <td width="35%">
  303. <div><input name="vrd_d1" class="form-control" type="text" readonly placeholder="点击选择"></div>
  304. </td>
  305. <td width="20%">
  306. <div><input name="vrd_n7" class="form-control" type="number"></div>
  307. </td>
  308. <td width="35%"><div><input name="vrd_d3" class="form-control" type="text"></div></td>
  309. <td with="10%"></td>
  310. </tr>
  311. <tr class="fb">
  312. <td width="35%">
  313. <div><input name="vrd_d1" class="form-control" type="text" readonly placeholder="点击选择"></div>
  314. </td>
  315. <td width="20%">
  316. <div><input name="vrd_n7" class="form-control" type="number"></div>
  317. </td>
  318. <td width="35%"><div><input name="vrd_d3" class="form-control" type="text"></div></td>
  319. <td with="10%"><span style="color:#FF6600;" class="glyphicon glyphicon-remove"></span></td>
  320. </tr>
  321. </table>
  322. </form>
  323. </div>
  324. <!-- 费用报销 end -->
  325. <!-- 操作按钮 start -->
  326. <div id="buttons">
  327. <div class="buttons-item">
  328. <button id="btn_cancel" type="button" class="btn btn-default">重置</button>
  329. </div>
  330. <div class="buttons-item">
  331. <button id="btn_save" type="button" class="btn btn-success">保存</button>
  332. </div>
  333. </div>
  334. <!-- 操作按钮 end -->
  335. </div>
  336. <!-- main end -->
  337. <!-- footer start -->
  338. <div id="footer" class="container text-center">
  339. <div>深圳市优软科技有限公司</div>
  340. <div>Copyright @ 2012 All Rights Reserved</div>
  341. </div>
  342. <!-- footer end -->
  343. <!-- modal -->
  344. <div class="modal-backdrop in" style="z-index: 9998; display: none"></div>
  345. <div class="modal in" id="dialog" style="z-index: 9999; display: none">
  346. <div class="modal-dialog modal-sm" style="height:100%; padding-top:10%;">
  347. <div class="modal-content">
  348. <div class="modal-header text-center">
  349. <strong class="modal-title text-lg"></strong>
  350. <!-- <button type="button" class="pull-right btn btn-xs btn-default"
  351. onclick="closePage()">直接退出</button> -->
  352. </div>
  353. <div class="modal-body text-center"></div>
  354. </div>
  355. </div>
  356. </div>
  357. <!-- loading -->
  358. <div class="loading-container" style="display:none;">请稍等...</div>
  359. <!-- DbFind 模态框 start -->
  360. <div class="modal" id="dbFindModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  361. <div class="modal-dialog">
  362. <div class="modal-content">
  363. <div class="modal-header">
  364. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  365. <h4 class="modal-title" id="myModalLabel">选择项目信息</h4>
  366. </div>
  367. <div class="modal-body">
  368. <!-- 待加载... -->
  369. </div>
  370. <div class="modal-footer">
  371. </div>
  372. </div>
  373. </div>
  374. </div>
  375. <!-- DbFind 模态框 ned -->
  376. <script type="text/javascript"
  377. src="<%=basePath%>resource/jquery/jquery-1.8.0.min.js"></script>
  378. <script type="text/javascript"
  379. src="<%=basePath%>resource/bootstrap/bootstrap.min.js"></script>
  380. <script type="text/javascript"
  381. src="<%=basePath%>resource/bootstrap/bootstrap-datetimepicker.min.js"></script>
  382. <script type="text/javascript"
  383. src="<%=basePath%>resource/bootstrap/bootstrap-datetimepicker.zh-CN.js"></script>
  384. <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=FbfVB7Q1uZqja0w6s8PIfgyG"></script>
  385. <script type="text/javascript" src="customervisit.js"></script>
  386. </body>
  387. </html>