returngoods_action.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. {Template header}
  2. <body>
  3. <style>
  4. a{color:#333;text-decoration:none;}
  5. a:hover{color:#3366cc;text-decoration:underline;}
  6. /* demo */
  7. .demo{margin:40px auto;position:relative;}
  8. .demo h2{font-size:16px;height:44px;color:#3366cc;margin-top:20px;}
  9. .demo dl dt{font-size:14px;color:#ff6600;margin-top:30px;font-weight:800;}
  10. .demo dl dt,.demo dl dd{line-height:22px;}
  11. /* tabbtn */
  12. .tabbtn{height:30px;background:url(images/tabbg.gif) repeat-x;border-left:solid 1px #ddd;border-right:solid 1px #ddd;}
  13. .tabbtn li{float:left;position:relative;margin:0 0 0 -1px;}
  14. .tabbtn li a{display:block;float:left;height:30px;line-height:30px;overflow:hidden;width:108px;text-align:center;font-size:16px;cursor:pointer;}
  15. .tabbtn li.current{border-left:solid 1px #d5d5d5;border-right:solid 1px #d5d5d5;border-top:solid 1px #c5c5c5;}
  16. .tabbtn li.current a{border-top:solid 2px #ff6600;height:27px;line-height:27px;background:#fff;color:#3366cc;font-weight:800;}
  17. /* tabcon */
  18. .tabcon{border-width:0 1px 1px 1px;border-color:#ddd;border-style:solid;position:relative;/*必要元素*/height:auto;overflow:hidden;margin:10px}
  19. .tabcon .subbox{position:absolute;/*必要元素*/left:0;top:0;}
  20. .tabcon .sublist{padding:5px 10px;height:170px;}
  21. /* leftcon */
  22. #leftcon .subbox{width:9999em;}
  23. #leftcon .subbox .sublist{float:left;width:664px;}
  24. /* sublist */
  25. .sublist{padding:10px;}
  26. .sublist li{height:28px;line-height:28px;font-size:12px;}
  27. .sublist li span{margin:0 5px 0 0;font-family:"宋体";font-size:12px;font-weight:400;color:#ddd;}
  28. .btn {
  29. display: inline-block;
  30. padding: 6px 12px;
  31. margin-bottom: 0;
  32. font-size: 14px;
  33. font-weight: 400;
  34. line-height: 1.42857143;
  35. text-align: center;
  36. white-space: nowrap;
  37. vertical-align: middle;
  38. -ms-touch-action: manipulation;
  39. touch-action: manipulation;
  40. cursor: pointer;
  41. -webkit-user-select: none;
  42. -moz-user-select: none;
  43. -ms-user-select: none;
  44. user-select: none;
  45. background-image: none;
  46. border: 1px solid transparent;
  47. border-radius: 4px;
  48. margin-left: 5px;
  49. }
  50. .btn-success {
  51. color: #fff !important;
  52. background-color: #5cb85c !important;
  53. border-color: #4cae4c;
  54. }
  55. .btn-danger {
  56. color: #fff !important;
  57. background-color: #dd4b39;
  58. border-color: #d73925;
  59. }
  60. .btn-primary{
  61. color: #fff !important;
  62. background-color: #3c8dbc;
  63. border-color: #367fa9;
  64. }
  65. .btn-info{
  66. background-color: #f4f4f4;
  67. color: #444;
  68. border-color: #ddd;
  69. }
  70. .btn-warning {
  71. color: #fff !important;
  72. background-color: #f0ad4e;
  73. border-color: #eea236;
  74. }
  75. .scimg_lv{
  76. }
  77. .setting li em {
  78. width: 115px;
  79. height: 24px;
  80. line-height: 24px;
  81. float: left;
  82. display: inline-block;
  83. font-size:16px;
  84. }
  85. </style>
  86. <div class="warp">
  87. <div class="title winnone">售后登记 - 录入</div>
  88. <div class="demo">
  89. <ul class="tabbtn" id="normaltab">
  90. <li class="current"><a href="javascript:void(0);">解决</a></li>
  91. <li><a href="javascript:void(0);">挂起</a></li>
  92. <li><a href="javascript:void(0);">售后处理</a></li>
  93. </ul><!--tabbtn end-->
  94. <div class="tabcon" id="normalcon">
  95. <div class="sublist">
  96. <div style="font-size:18px;color:#777">
  97. 如果已和客户沟通完毕、客户问题已解决,不需做其他进一步处理,请点击“确认解决”按钮。
  98. </div>
  99. <div style="padding-top: 30px;">
  100. <span class="btn btn-success" onclick="addData({$id},1)">确认解决</span>
  101. </div>
  102. </div><!--tabcon end-->
  103. <div class="sublist">
  104. <div style="font-size:18px;color:#777">
  105. 如果在和客户沟通问题过程中客户失联了,连续联系超过三次无回复,可选择使用“暂时挂起”按钮。<br/>
  106. 如果多联系方式、多次尝试联系客户,一直联系不上,可选择使用“永久挂起”按钮。<br/>
  107. 每次联系客户后可以点击“已联系”按钮。<br/>
  108. </div>
  109. <div style="padding-top: 30px;">
  110. <span onclick="addData({$id},2)" class="btn btn-success">暂时挂起</span>
  111. <span onclick="addData({$id},3)" class="btn btn-primary">已联系</span>
  112. <span onclick="addData({$id},4)" class="btn btn-danger">永久挂起</span>
  113. </div>
  114. </div><!--tabcon end-->
  115. <div class="sublist">
  116. <div style="font-size:18px;color:#777">
  117. 和客户沟通协商后需进行退换货/退款等具体售后处理的情况下使用。<br>
  118. 另:如果不涉及退款,请不要选择退款类型。
  119. </div>
  120. <div style="padding-top: 30px;">
  121. <div>
  122. <form>
  123. <ul class="setting">
  124. <li class="">
  125. <em>售后方式:</em>
  126. <select name="back_type" class="select class" onchange="changeAfterSale(this)">
  127. <option value="">请选择</option>
  128. {loop $back_type_list as $key=>$val}
  129. <option value="{$key}">{$val}</option>
  130. {/loop}
  131. </select>
  132. </li>
  133. <li class=" is_tuikaun">
  134. <em>退款原因类型:</em>
  135. <select name="back_money_type" class="select class cate_two">
  136. <option value="">请选择</option>
  137. {loop $back_money_type_list as $key=>$val}
  138. <option value="{$key}">{$val}</option>
  139. {/loop}
  140. </select>
  141. </li>
  142. <li class="length is_tuikaun">
  143. <em>退款单位:</em>
  144. <div class="checkbox">
  145. <span class="ckrows">
  146. <label>
  147. <input name="is_caiwu" type="radio" value="2"><span style="color:#000;font-size:16px">店铺</span>
  148. </label>
  149. </span>
  150. <span class="ckrows">
  151. <label>
  152. <input name="is_caiwu" type="radio" value="1"><span style="color:#000;font-size:16px">财务</span>
  153. </label>
  154. </span>
  155. </div>
  156. </li>
  157. <li class="is_tuikaun length">
  158. <em>退款金额:</em>
  159. <input name="back_money" value="" type="text" >
  160. <!-- <span style="font-size:16px;font-weight:700;color:#000">USD</span> -->
  161. </li>
  162. <input name="currency" type="hidden" value="2" />
  163. <li class="is_tuikaun length">
  164. <em>退款备注:</em>
  165. <input name="return_remarks" value="" type="text" >
  166. </li>
  167. <li class="is_tuikaun length">
  168. <em>退款留言:</em>
  169. <input name="refund_message" value="" type="text" >
  170. </li>
  171. <li class="length " style="height: 35px !important;">
  172. <em>上传凭证:</em>
  173. <div>
  174. <span class="btn btn-warning scimg_lv">点击上传沟通凭证</span>
  175. <span style="color:#777">可上传多图;点击已上传图片可对其删除片</span>
  176. </div>
  177. </li>
  178. <li style="height: auto;width:88.2%;border:1px solid #ccc;border-radius: 3px;display: flex;flex-direction: row;flex-wrap:wrap;margin-left: 1%" class="upimg">
  179. </li>
  180. <li style="margin-top:10px;margin-bottom:20px">
  181. <span onclick="addData({$id},5)" style="font-size:18px;border-radius: 3px !important;padding:2px 12px" class="btn btn-success">去售后</span>
  182. </li>
  183. </ul>
  184. </form>
  185. </div>
  186. </div>
  187. </div><!--tabcon end-->
  188. </div>
  189. <div class="button">
  190. <!-- <font class="datasave">提 交</font> -->
  191. <font class="fh">关 闭</font>
  192. </div>
  193. </div>
  194. <script src="{$theme}js/jquery-3.2.1.min.js"></script>
  195. <script src="{$theme}js/xuanxiangka/xxk.js"></script>
  196. <script>
  197. $("#normaltab").tabso({
  198. cntSelect:"#normalcon",
  199. tabEvent:"mouseover",
  200. tabStyle:"normal"
  201. });
  202. function tianjia(){
  203. $("#append_box").append($("#base-div").html())
  204. }
  205. function changeAfterSale(that){
  206. let back_type = $(that).val();
  207. if((back_type == 1)||(back_type == 2)){
  208. $(".is_tuikaun").show();
  209. }else{
  210. $(".is_tuikaun").hide();
  211. }
  212. }
  213. $(document).ready(function() {
  214. var button = $(".scimg_lv"), interval;
  215. var fileType = "pic", fileNum = "one";
  216. new AjaxUpload(button, {
  217. action: "/img/",
  218. name: "userfile",
  219. onSubmit: function(file, ext) {
  220. if (fileType == "pic") {
  221. if (ext && /^(jpg|png|jpeg|gif)$/.test(ext)) {
  222. this.setData({
  223. info: "文件类型为图片"
  224. });
  225. }
  226. else {
  227. alert("提示:您上传的是非图片!");
  228. return false;
  229. }
  230. }
  231. $(".scimg_lv").hide();
  232. $(".loadimg").show();
  233. layx.load('loadId','上传中');
  234. if (fileNum == "one") {
  235. this.disable();
  236. }
  237. },
  238. onComplete: function(file, response) {
  239. eval("var obj=" + response);
  240. if (obj.ok) {
  241. layx.destroy('loadId');
  242. let str = '<div style="margin-bottom:3px;margin-right:3px" onclick="removeFile(this)"><input type="hidden" name="img[]" value="' + obj.filename + '">';
  243. if (/^(.jpg|.png|.jpeg|.gif)$/.test(obj.lx)) {
  244. str += '<img width="100px" src="' + obj.filename + '" title="点击图片删除">';
  245. // $(".upimg").append('<img src="' + obj.filename + '" title="点击图片删除">');
  246. }
  247. str +="</div>";
  248. $(".upimg").append(str);
  249. } else {
  250. layx.destroy('loadId');
  251. $(".ts p").html("上传失败,请重试");
  252. $(".ts").fadeIn();
  253. setTimeout('$(".ts").fadeOut()', 800);
  254. }
  255. $(".loadimg").hide();
  256. $(".scimg_lv").show();
  257. window.clearInterval(interval);
  258. this.enable();
  259. }
  260. });
  261. });
  262. // $(document).on("click", ".upimg img", function() {
  263. // $(this).remove();
  264. // });
  265. // $(document).on("click", ".upimg video", function() {
  266. // $(this).remove();
  267. // });
  268. function removeFile(that) {
  269. $(that).remove();
  270. }
  271. function addData(id,type){
  272. console.log(id);
  273. console.log(type);
  274. let obj = {}
  275. if(type==5){
  276. obj = $("form").serialize();
  277. }
  278. $(".ts p").html("<i class='fa fa-2x fa-cog fa-spin'></i> &nbsp; 正在处理...");
  279. $(".ts").show();
  280. $.post("/returngoods/do_first_phase/"+id+"/"+type, obj, function(a) {
  281. if (a && a.success) {
  282. $(".ts").hide();
  283. $(".express p:eq(0)").html(a.msg+"是否关闭?");
  284. $(".express p:eq(1)").html(
  285. "<font class='fh'>确 定</font><font class='esc'>取 消</font>"
  286. );
  287. $(".express").show();
  288. } else {
  289. $(".ts").hide();
  290. $(".ts p").html(a.msg);
  291. $(".ts").fadeIn();
  292. setTimeout('$(".ts").fadeOut()', 800);
  293. }
  294. },'json')
  295. }
  296. </script>
  297. <script>var addedit="/returngoods/add/";</script>
  298. <script type="text/javascript" src="{$theme}js/ajaxupload.3.5.js"></script>
  299. {Template footer}