save_customer_info 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="renderer" content="webkit|ie-comp|ie-stand">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  8. <meta http-equiv="Cache-Control" content="no-siteapp" />
  9. <#include "/base/add_base.ftl">
  10. <link href="${path}/common/lib/jquery.ui/jquery-ui.css" rel="stylesheet" type="text/css"/>
  11. <link href="${path}/common/lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css"/>
  12. <link href="${path}/common/lib/icheck/icheck.css" rel="stylesheet" type="text/css"/>
  13. <style>
  14. .tit{position: relative;text-align: left;font-size: 16px;padding-left: 10px;}
  15. .tit:after{content: '';position: absolute;left: 0;top: 20%;height: 60%;width: 3px;background-color: #32a3d8;}
  16. .tit-2{position: relative;text-align: left;font-size: 16px;padding-left: 10px;}
  17. .tit-2:after{content: '';position: absolute;left: 0;top: 20%;height: 60%;width: 3px;background-color: #32a3d8;}
  18. #province select{margin-right:10px; width:100px;height: 31px;-webkit-appearance:none !important;appearance:none;background: url(${path}/common/images/cm/select-1.png) right center no-repeat;background-size: auto 100%;padding-left:3px;padding-right: 25px;}
  19. #suggest, #suggest2 {width:200px}
  20. .gray {color:gray}
  21. .ac_results {background:#fff;border:1px solid #7f9db9;position: absolute;z-index: 10000;display: none}
  22. .ac_results li a {white-space: nowrap;text-decoration:none;display:block;color:#05a;padding:1px 3px}
  23. .ac_results li {border:1px solid #fff}
  24. .ac_over, .ac_results li a:hover {background:#c8e3fc}
  25. .ac_results li a span {float:right}
  26. .ac_result_tip {border-bottom:1px dashed #666;padding:3px}
  27. .select-box{background: url(${path}/common/images/cm/select-1.png) right center no-repeat;background-size: auto 100%;}
  28. .select-box select{-webkit-appearance:none !important;background-color: transparent; appearance:none;padding-right: 25px;}
  29. .dalog-ask{position: absolute;left:60%;top:0;-webkit-transform: translateY(-30%);transform: translateY(-30%);display: none;background-color: #fff;z-index: 10;}
  30. .tag{ width:300px; min-height:300px; border:1px solid #32a3d8; position:relative;background-color: #fff;line-height: 1.5;padding: 10px 12px;}
  31. .tag em{display:block; border-width:15px; position:absolute; top:30%; left:-30px;border-style:solid dashed dashed; border-color:transparent #32a3d8 transparent transparent;font-size:0; line-height:0;}
  32. .dalog-ask .ask{color: #000;margin: 10px 0 5px 0;}
  33. .dalog-ask .answer{color: #666;margin-bottom: 10px;}
  34. .dalog-ask .answer:hover{color: #32a3d8;cursor: pointer;}
  35. .time-line-list{list-style: none;width: 100%;margin-left: -20px;}
  36. .time-line-list>li{position: relative;float: left; text-align: center;width: 100px;overflow: hidden;white-space: nowrap;word-break: break-all;padding: 2px 0;}
  37. .time-line-list .number{display: inline-block; padding: 2px; background: #32a3d8;border: 2px solid #fff;box-shadow:0 0 0 1px #32a3d8;width: 20px;height: 20px;color: #fff;line-height: 20px;border-radius: 50%;}
  38. .time-line-list>li:before{content:'';position: absolute;height: 1px;width: 30%;right:0;top: 15px; background-color: #32a3d8;}
  39. .time-line-list>li:after{content: '';position: absolute;height: 1px;width: 30%;left: 0;top: 15px;background:#32a3d8;}
  40. .time-line-list>li:first-child:after,.time-line-list>li:last-child:before{display: none;}
  41. .time-line-list .arrow{border-width:7px; position:absolute; left:25%; top:9px;border-style:solid dashed dashed; border-color:transparent transparent transparent #32a3d8;font-size:0; line-height:0;}
  42. .time-line-list>li:first-child .arrow{display: none;}
  43. .table-bg th{background-color: #e2f6ff;}
  44. .update-parts>span{margin-right: 10px;padding: 3px 4px;background-color: #effaff;border: 1px solid #32a3d8;}
  45. .my-search-input{padding-left: 30px;background: url(${path}/common/images/cm/search.png) 6px center no-repeat;background-size: auto 60%; }
  46. .input-produce{height: 25px;line-height: 25px}
  47. .color-div{height: 30px;}
  48. .table-td-color{}
  49. .msg-phone{height: 35px;line-height: 35px;}
  50. /*用于邮寄信息的css*/
  51. .youxi_xinxi{width: 980px}
  52. </style>
  53. <title>添加客诉 - 客诉管理 - RST</title>
  54. </head>
  55. <body>
  56. <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
  57. <span class="c-gray en">&gt;</span> 客户信息管理
  58. <span class="c-gray en">&gt;</span> 新增客户信息
  59. <a class="btn radius r"
  60. style="line-height:1.6em;margin-top:3px;background: #32a3d8;color: #fff;border:1px solid #32a3d8;"
  61. href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
  62. </nav>
  63. <article class="page-container" style="padding: 10px;">
  64. <div class="pd-20 cl">
  65. <form action="${path}/admin/customer/save_customer_info" method="post" class="form form-horizontal" id="form-customerInfoAdmin-add" onkeydown="if(event.keyCode==13)return false;">
  66. <input type="hidden" id="isNeedSelectOrder" name="isNeedSelectOrder" value="">
  67. <#--客户基本信息-->
  68. <div class="row cl">
  69. <label class="form-label col-3">
  70. <div class="tit-2">客户基本信息</div>
  71. </label>
  72. <div class="formControls col-9">
  73. </div>
  74. </div>
  75. <div class="row cl">
  76. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>客户类型:</label>
  77. <div class="formControls col-1 col-sm-1">
  78. <span class="select-box" style=" width: 625px;">
  79. <select name="adminId" id="adminId" class="select">
  80. </select>
  81. </span>
  82. </div>
  83. <label class="form-label col-1 col-sm-2"><span class="c-red">*</span>合作进度:</label>
  84. <div class="formControls col-1 col-sm-1">
  85. <span class="select-box" style=" width: 625px;">
  86. <select name="adminId" id="adminId" class="select">
  87. </select>
  88. </span>
  89. </div>
  90. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>客户名称:</label>
  91. <div class="formControls col-2 col-sm-2 skin-minimal">
  92. <input type="text" class="input-text trim_input" placeholder="公司/客户 全称" id="customerWechatName" name="customerWechatName" value="">
  93. </div>
  94. <label class="form-label col-1 col-sm-2">客户行业:</label>
  95. <div class="formControls col-2 col-sm-2 skin-minimal">
  96. <input type="text" class="input-text trim_input" placeholder="请输入行业名称" id="customerName" name="customerName" value="">
  97. </div>
  98. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>客户地址:</label>
  99. <div class="formControls col-2 col-sm-2 skin-minimal">
  100. <#--省份-->
  101. <span class="select-box" style=" width: 625px;">
  102. <select name="adminId" id="adminId" class="select">
  103. </select>
  104. </span>
  105. <#--城市-->
  106. <span class="select-box" style=" width: 625px;">
  107. <select name="adminId" id="adminId" class="select">
  108. </select>
  109. </span>
  110. <#--详细地址-->
  111. <input type="text" class="input-text trim_input" placeholder="请输入客户的详细地址" id="customerWechatName" name="customerWechatName" value="">
  112. </div>
  113. </div>
  114. <#--对接联系人信息-->
  115. <div class="row cl">
  116. <label class="form-label col-3">
  117. <div class="tit-2">对接联系人信息<span style="font-family:'Arial Normal', 'Arial';font-weight:400;font-size:14px;">(请确保真实性,公司将不定期抽验回访)</span></div>
  118. </label>
  119. <div class="formControls col-9">
  120. </div>
  121. </div>
  122. <div class="row cl">
  123. <div class="formControls col-9">
  124. <input type="text" class="my-input" style="width:90px;margin-right: 0px; margin-bottom: 10px;" value="${customerInfo.customerId!}" placeholder="联系人姓名" id="customerId" name="customerId">
  125. <input type="text" class="my-input" style="width:90px;margin-right: 0px;margin-bottom: 10px;" value="${customerInfo.sendLogisticsNo!}" placeholder="联系人电话" id="sendLogisticsNo" name="sendLogisticsNo">
  126. <input type="text" class="my-input" style="width:90px;margin-right: 0px;margin-bottom: 10px;" value="${customerInfo.customerName!}" placeholder="职位或身份" id="customerName" name="customerName">
  127. <input type="text" class="my-input" style="width:90px;margin-right: 0px;margin-bottom: 10px;" value="${customerInfo.customerTel!}" placeholder="邮箱" id="customerTel" name="customerTel">
  128. <button type="button" style="cursor:pointer; float: left;height: 35px;margin-right: 30px;margin-bottom: 10px;" class="my-btn-search" onclick="toAddCustomerInfo();">保存</button>
  129. </div>
  130. <div class="mt-20" style="margin: 20px;">
  131. <table class="table table-border table-bordered table-bg table-hover table-sort">
  132. <thead>
  133. <tr class="text-c">
  134. <th width="100">联系人姓名</th>
  135. <th width="100">联系电话</th>
  136. <th width="100">职位/身份</th>
  137. <th width="100">联系邮箱</th>
  138. <th width="100">操作</th>
  139. </tr>
  140. </thead>
  141. <tbody id="listid">
  142. </tbody>
  143. </table>
  144. </div>
  145. </div>
  146. <#--客户销售渠道信息备案-->
  147. <div class="row cl">
  148. <label class="form-label col-3">
  149. <div class="tit-2">客户销售渠道信息备案</div>
  150. </label>
  151. <div class="formControls col-9">
  152. </div>
  153. </div>
  154. <div class="row cl">
  155. <div class="formControls col-9">
  156. <input type="text" class="my-input" style="width:90px;margin-right: 0px; margin-bottom: 10px;" value="${customerInfo.customerId!}" placeholder="客诉编号" id="customerId" name="customerId">
  157. <input type="text" class="my-input" style="width:90px;margin-right: 0px;margin-bottom: 10px;" value="${customerInfo.sendLogisticsNo!}" placeholder="物流编号" id="sendLogisticsNo" name="sendLogisticsNo">
  158. <input type="text" class="my-input" style="width:90px;margin-right: 0px;margin-bottom: 10px;" value="${customerInfo.customerName!}" placeholder="请输入姓名" id="customerName" name="customerName">
  159. <input type="text" class="my-input" style="width:90px;margin-right: 0px;margin-bottom: 10px;" value="${customerInfo.customerTel!}" placeholder="请输入电话号码" id="customerTel" name="customerTel">
  160. <select class="my-select" name="adminId" style="height: 36px;width: 120px;margin: 0px;padding: 12px 10px 6px 15px;margin-bottom: 10px;">
  161. <option value ="">渠道类别</option>
  162. <#if adminList?? && (adminList?size > 0) >
  163. <#list adminList as admin>
  164. <option value ="${admin.adminId!}" <#if customerInfo.adminId??><#if customerInfo.adminId ==admin.adminId >selected="selected"</#if></#if>>${admin.adminName!}</option>
  165. </#list>
  166. </#if>
  167. </select>
  168. <select class="my-select" name="adminId" style="height: 36px;width: 120px;margin: 0px;padding: 12px 10px 6px 15px;margin-bottom: 10px;">
  169. <option value ="">渠道类型</option>
  170. <#if adminList?? && (adminList?size > 0) >
  171. <#list adminList as admin>
  172. <option value ="${admin.adminId!}" <#if customerInfo.adminId??><#if customerInfo.adminId ==admin.adminId >selected="selected"</#if></#if>>${admin.adminName!}</option>
  173. </#list>
  174. </#if>
  175. </select>
  176. <span>渠道名称<input type="text" class="my-input" style="width:90px;margin-right: 0px;margin-bottom: 10px;" value="${customerInfo.customerTel!}" placeholder="填写具体店名" id="customerTel" name="customerTel"></span>
  177. <select class="my-select" name="adminId" style="height: 36px;width: 120px;margin: 0px;padding: 12px 10px 6px 15px;margin-bottom: 10px;">
  178. <option value ="">销售产品</option>
  179. <#if adminList?? && (adminList?size > 0) >
  180. <#list adminList as admin>
  181. <option value ="${admin.adminId!}" <#if customerInfo.adminId??><#if customerInfo.adminId ==admin.adminId >selected="selected"</#if></#if>>${admin.adminName!}</option>
  182. </#list>
  183. </#if>
  184. </select>
  185. <input type="text" class="my-input" style="width:90px;margin-right: 0px; margin-bottom: 10px;" value="${customerInfo.customerId!}" placeholder="供货价格" id="customerId" name="customerId">
  186. <select class="my-select" name="adminId" style="height: 36px;width: 120px;margin: 0px;padding: 12px 10px 6px 15px;margin-bottom: 10px;">
  187. <option value ="">供货价格</option>
  188. <#if adminList?? && (adminList?size > 0) >
  189. <#list adminList as admin>
  190. <option value ="${admin.adminId!}" <#if customerInfo.adminId??><#if customerInfo.adminId ==admin.adminId >selected="selected"</#if></#if>>${admin.adminName!}</option>
  191. </#list>
  192. </#if>
  193. </select>
  194. <select class="my-select" name="adminId" style="height: 36px;width: 120px;margin: 0px;padding: 12px 10px 6px 15px;margin-bottom: 10px;">
  195. <option value ="">账期</option>
  196. <option value="1" <#if customerInfo.customerSourceType??><#if customerInfo.customerSourceType == 1 >selected="selected"</#if></#if>>先款</option>
  197. <option value="2" <#if customerInfo.customerSourceType??><#if customerInfo.customerSourceType == 2 >selected="selected"</#if></#if>>月结</option>
  198. <option value="3" <#if customerInfo.customerSourceType??><#if customerInfo.customerSourceType == 3 >selected="selected"</#if></#if>>两个月</option>
  199. </select>
  200. <button type="button" style="cursor:pointer; float: left;height: 35px;margin-right: 30px;margin-bottom: 10px;" class="my-btn-search" onclick="toAddCustomerInfo();">保存</button>
  201. </div>
  202. </div>
  203. <#--付款/退款信息-->
  204. <div class="row cl">
  205. <label class="form-label col-3">
  206. <div class="tit-2">付款/退款信息<span style="font-family:'Arial Normal', 'Arial';font-weight:400;font-size:14px;">(请真实有效,用于财务收款确认或退款业务)</span></div>
  207. </label>
  208. <div class="formControls col-9">
  209. </div>
  210. </div>
  211. <div class="row cl">
  212. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>开户支行:</label>
  213. <div class="formControls col-1 col-sm-1">
  214. <input type="text" class="input-text trim_input" placeholder="开户支行" id="customerName" name="customerName" value="">
  215. </div>
  216. <label class="form-label col-1 col-sm-2"><span class="c-red">*</span>账户名称:</label>
  217. <div class="formControls col-2 col-sm-2 skin-minimal">
  218. <input type="text" class="input-text trim_input" placeholder="账户名称" id="customerName" name="customerName" value="">
  219. </div>
  220. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>账号:</label>
  221. <div class="formControls col-2 col-sm-2 skin-minimal">
  222. <input type="text" class="input-text trim_input" placeholder="填写账号" id="customerWechatName" name="customerWechatName" value="">
  223. </div>
  224. <label class="form-label col-1 col-sm-2"><span class="c-red">*</span>收款人姓名:</label>
  225. <div class="formControls col-2 col-sm-2 skin-minimal">
  226. <input type="text" class="input-text trim_input" placeholder="收款人姓名" id="customerName" name="customerName" value="">
  227. </div>
  228. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>收款人手机:</label>
  229. <div class="formControls col-2 col-sm-2 skin-minimal">
  230. <input type="text" class="input-text trim_input" placeholder="收款人手机" id="customerWechatName" name="customerWechatName" value="">
  231. </div>
  232. </div>
  233. <#--开票信息-->
  234. <div class="row cl">
  235. <label class="form-label col-3">
  236. <div class="tit-2">开票信息</div>
  237. </label>
  238. <div class="formControls col-9">
  239. </div>
  240. </div>
  241. <div class="row cl">
  242. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>发票类型:</label>
  243. <div class="formControls col-1 col-sm-1">
  244. <span class="select-box" style=" width: 625px;">
  245. <select name="adminId" id="adminId" class="select">
  246. </select>
  247. </span>
  248. </div>
  249. <label class="form-label col-1 col-sm-2"><span class="c-red">*</span>开户支行:</label>
  250. <div class="formControls col-2 col-sm-2 skin-minimal">
  251. <input type="text" class="input-text trim_input" placeholder="开户支行名称" id="customerName" name="customerName" value="">
  252. </div>
  253. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>开票账户:</label>
  254. <div class="formControls col-2 col-sm-2 skin-minimal">
  255. <input type="text" class="input-text trim_input" placeholder="开票账户" id="customerWechatName" name="customerWechatName" value="">
  256. </div>
  257. <label class="form-label col-1 col-sm-2">企业名称:</label>
  258. <div class="formControls col-2 col-sm-2 skin-minimal">
  259. <input type="text" class="input-text trim_input" placeholder="企业名称" id="customerName" name="customerName" value="">
  260. </div>
  261. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>纳税人识别号:</label>
  262. <div class="formControls col-2 col-sm-2 skin-minimal">
  263. <input type="text" class="input-text trim_input" placeholder="纳税人识别号" id="customerWechatName" name="customerWechatName" value="">
  264. </div>
  265. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>开票电话:</label>
  266. <div class="formControls col-2 col-sm-2 skin-minimal">
  267. <input type="text" class="input-text trim_input" placeholder="开票电话" id="customerWechatName" name="customerWechatName" value="">
  268. </div>
  269. <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>企业地址:</label>
  270. <div class="formControls col-2 col-sm-2 skin-minimal">
  271. <input type="text" class="input-text trim_input" placeholder="企业地址" id="customerWechatName" name="customerWechatName" value="">
  272. </div>
  273. </div>
  274. <#--客户备注-->
  275. <div class="row cl">
  276. <label class="form-label col-3">
  277. <div class="tit-2">客户备注</div>
  278. </label>
  279. <div class="formControls col-9">
  280. <textarea id="customer_remarks"></textarea>
  281. </div>
  282. </div>
  283. <div class="row cl">
  284. </form>
  285. </div>
  286. </article>
  287. <script type="text/javascript">
  288. var url_path = "${path}";
  289. </script>
  290. <#--时间控件-->
  291. <script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  292. <script type="text/javascript" src="${path}/common/lib/icheck/jquery.icheck.min.js"></script>
  293. <#--业务js-->
  294. <script type="text/javascript" src="${path}/common/js/customerSaveAdmin/save_customer_info.js"></script>
  295. <script>
  296. //定义变量
  297. /*初始化页面参数*/
  298. $(function () {
  299. /* 初始化单选框样式 */
  300. //initCheck();
  301. /*初始化省份(大类)*/
  302. initProvince();
  303. /*初始化渠道类别(大类)*/
  304. initChannelCategory();
  305. /*监听省份*/
  306. $("input[name='customerProvince']").change(function (){
  307. initCity($(this).val());
  308. })
  309. /*监听渠道类别*/
  310. $("input[name='customerChannelCategory']").change(function (){
  311. initChannelType($(this).val());
  312. })
  313. </script>
  314. </body>
  315. </html>