sale.html 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>收付款管理</title>
  5. #parse("sys/header.html")
  6. <style type="text/css" lang="scss">
  7. @media screen and (max-width: 1396px) {
  8. #rrapp {
  9. font-size: 0.1rem;
  10. }
  11. #goodsImg{
  12. width: 50%;
  13. }
  14. }
  15. @media screen and (min-width: 1396px) and (max-width: 1536px) {
  16. #rrapp {
  17. font-size: 0.2rem;
  18. }
  19. #goodsImg{
  20. width: 50%;
  21. }
  22. }
  23. @media screen and (min-width: 1536px) and (max-width: 1920px) {
  24. #rrapp {
  25. font-size: 0.5rem;
  26. /*//我这里是按1920的屏幕宽度设置的,所以1rem相当于100px*/
  27. }
  28. #goodsImg{
  29. width: 75%;
  30. }
  31. }
  32. @media screen and (min-width: 1920px) {
  33. #rrapp {
  34. font-size: 0.1rem;
  35. }
  36. #goodsImg{
  37. width: 100%;
  38. }
  39. }
  40. #saomiao{
  41. padding-right: 30px;
  42. }
  43. #saomiao input{
  44. margin-top:20px;
  45. height: 70px;
  46. width: 100%;
  47. border: 3px solid #62e2f5
  48. }
  49. .goods-button{
  50. border: #e5a032;
  51. /*background-color: #e5a032;*/
  52. font-size: 1.3em;
  53. margin-left: 20px;
  54. }
  55. .modal-contentNew {
  56. position: relative;
  57. background-color: #fff;
  58. -webkit-background-clip: padding-box;
  59. background-clip: padding-box;
  60. border: 1px solid #999;
  61. border: 1px solid rgba(0, 0, 0, .2);
  62. border-radius: 6px;
  63. outline: 0;
  64. -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
  65. box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
  66. height: 260px;
  67. width: 70%;
  68. margin: auto;
  69. }
  70. .tableNew {
  71. position: relative;
  72. border-collapse: collapse !important;
  73. left:0px;
  74. top:-1001px;
  75. width: 60%;
  76. height: 128px;
  77. background-color: #fff;
  78. -webkit-background-clip: padding-box;
  79. background-clip: padding-box;
  80. border: 1px solid #999;
  81. border: 1px solid rgba(0, 0, 0, .2);
  82. border-radius: 6px;
  83. outline: 0;
  84. -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
  85. box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
  86. margin: auto;
  87. }
  88. .modal-footerNew{
  89. position: relative;
  90. left:125px;
  91. top:-761px;
  92. }
  93. .search_menu{
  94. /*border-top:5px solid #3388FF;*/
  95. /*display: none;*/
  96. background-color: ghostwhite;
  97. position: absolute;
  98. z-index: 999;
  99. /*top:30px;*/
  100. width:87%;
  101. }
  102. .search_menu ul{
  103. margin-bottom: 0; //去除ul的底部外边距
  104. }
  105. .search_menu li {
  106. padding: 5px;
  107. font-size: 1.1em;
  108. cursor: pointer;
  109. overflow: hidden;
  110. white-space: nowrap;
  111. }
  112. .search_menu li:hover{
  113. background-color: beige;
  114. }
  115. .search:hover .search_menu {
  116. display: block;
  117. }
  118. .selBoxList{width:100%;margin-top:50px;text-align:center;}
  119. .selBoxList .selSt{min-width:100px;display:inline-block;position:relative;;}
  120. .selBoxList .selSt .current{width:100%;padding:0 10px;font-size:16px;line-height:30px;cursor:pointer;float:left;border:1px solid #ccc;background:#fff;box-sizing: border-box;position:relative;z-index: 2;}
  121. .selBoxList .selSt .box{width:100%;position:absolute;left:0;top:30px;border:1px solid #ccc;max-height:300px;overflow:auto;box-sizing: border-box;}
  122. .selBoxList .selSt .box span{width:100%;font-size:16px;line-height:30px;cursor:pointer;border-top:1px solid #ccc;float:left;}
  123. .selBoxList .selSt .box span:hover{background:#f1f1f1;}
  124. </style>
  125. <link rel="stylesheet" href="${rc.contextPath}/statics/plugins/jqgrid/ui.jqgrid-bootstrap.css">
  126. <!--<link rel="stylesheet" href="${rc.contextPath}/statics/css/sale.css">-->
  127. </head>
  128. <body>
  129. <div id="rrapp" v-cloak>
  130. <header class="main-header">
  131. <div class="container-fluid">
  132. <div class="row" style="border:0;margin-bottom:10px">
  133. <div class="col-md-3 col-sm-6 logodiv">
  134. <!--center-block-->
  135. <img src="${rc.contextPath}/statics/img/logotest2.jpg" class="img-rounded img-responsive" style="height: 70px;">
  136. </div>
  137. <div class="col-md-9 col-sm-6" style="background-color: #f0f0f0;margin:0px;padding: 0px" >
  138. <div v-show="showList">
  139. <Row :gutter="16">
  140. <ul class="nav navbar-top-links navbar-right" style="font-size: 1.3em;">
  141. <!--<li>
  142. <i-input v-model="orderSn1" @on-enter="queryInveResponse" placeholder="输入要查询回执的订单号" id="queryInveResponse" />
  143. </li>
  144. <li>
  145. <i-input v-model="orderSn" @on-enter="queryOrderStatus" placeholder="输入要查询订单状态的订单号" id="queryOrderStatus" />
  146. </li>-->
  147. <li >
  148. <span style="margin-right: 40px">&nbsp; 门店:<b>{{storeName}}</b></span>
  149. </li>
  150. <li><span style="margin-right: 35px"><i class="fa fa-user-circle" ></i> &nbsp;收银员:<b>{{sysUserInfo.username}}</b></span></li>
  151. <li><a href="javascript:;" @click="updatePasswordOpen"><i class="fa fa-lock"></i> &nbsp;修改密码</a></li>
  152. <li><a @click="logout" style="font-size: 1em"><i class="fa fa fa-sign-out"></i> 退出</a></li>
  153. </ul>
  154. </Row>
  155. </div>
  156. </div>
  157. </div>
  158. </div>
  159. </header>
  160. <div class="container-fluid" style="margin-top: 15px">
  161. <div id="content" class="row-fluid">
  162. <div class="col-md-3 col-sm-3">
  163. <div>
  164. <i-input class="search" placeholder="输入或扫码商品条形码" ref="saomiao" id="saomiao" v-model.trim='prodBarcode' @on-enter="searchQuery(prodBarcode)"/>
  165. </div>
  166. <div v-show="prodBarcode" class="search_menu">
  167. <ul>
  168. <li v-for="item in searchGoodsList" :key="item.id" @click="searchQuery(item.prodBarcode)">
  169. {{item.name}}
  170. </li>
  171. </ul>
  172. </div>
  173. <ul class="list-unstyled">
  174. <!--<li >
  175. <i-input v-model="prodBarcode" @on-enter="query" placeholder="输入或扫码商品条形码" id="saomiao" />
  176. </li>-->
  177. <li style="margin-top: 50px;" >
  178. <div v-show="goodsDetail" style="font-size: 1.2em">
  179. <img id="goodsImg" :src="goods.primaryPicUrl" class="img-rounded"/>
  180. <h1 style="margin: 8px;font-size: 20px;"><strong>{{goods.name}}</strong></h1>
  181. <p style="margin: 8px;">单价: <strong>{{goods.retailPrice}}</strong> /元</p>
  182. <p style="margin: 8px;">优惠前税费: <strong>{{goods.goodstaxes}}</strong> /元</p>
  183. <p style="margin: 8px;">规格: {{goods.specification}}</p>
  184. <p style="margin: 8px;">条形码: {{goods.prodBarcode}}</p>
  185. <!--<span style="margin: 8px;">商品描述: {{goods.goodsDesc}}</span>-->
  186. <span style="margin: 8px;">门店库存: {{goods.stockNum}}</span>
  187. </div>
  188. <div v-show="!goodsDetail">
  189. <h3 style="text-align: center">请扫描商品</h3>
  190. </div>
  191. </li>
  192. </ul>
  193. </div>
  194. <div class="col-md-6 col-sm-8" style="padding: 0px;background-color: #f0f0f0">
  195. <ul class="list-unstyled; ">
  196. <li ref="overflowLi" style="height: 250px;overflow:auto">
  197. <table id="cbec" class="table .table-striped">
  198. <tr style="border: white;background-color: #F5DCB3;font-size: 1.3em" >
  199. <th style="width: 26%;">跨境商品名称</th>
  200. <th style="width: 9%;">单价</th>
  201. <th style="width: 11%;">积分优惠</th>
  202. <th style="width: 11%;">其他优惠</th>
  203. <th style="width: 10%;">预估税费</th>
  204. <th style="width: 12%;">实际支付价</th>
  205. <th style="width: 10%;">数量</th>
  206. <th style="width: 13%;">参与活动</th>
  207. <th>&nbsp;</th>
  208. </tr>
  209. <tr v-for="(item,i) in goodsList" v-if="item.name" style="font-size: 1em">
  210. <td> {{item.name}}</td>
  211. <td> {{item.retailPrice}}</td>
  212. <td> {{item.deductionPrice}}</td>
  213. <td> {{item.otherDiscountedPrice}}</td>
  214. <td> {{item.goodstaxes}}</td>
  215. <td> {{item.actualPaymentAmount}}</td>
  216. <td>
  217. <i class="glyphicon glyphicon-minus" aria-hidden="true" @click="minus(item.id)"></i>
  218. {{item.sellVolume}}
  219. <i class="glyphicon glyphicon-plus" aria-hidden="true" @click="add(item.id)"></i>
  220. </td>
  221. <td>
  222. {{item.activity}}
  223. </td>
  224. <td >
  225. <i class="glyphicon glyphicon-remove" aria-hidden="true" @click="deleteItem(item.id)"></i>
  226. </td>
  227. </tr>
  228. </table>
  229. </li>
  230. <li>
  231. <div style="margin-bottom: 10PX">
  232. <ul style="display: inline-block">
  233. <!-- 2022/04/11海控一期需求 17和19问题 将其意思修改-->
  234. <!-- 原userInfo.customPhone属性是会员手机号-->
  235. <!-- 现其定义为收货人手机号(支付人手机号)-->
  236. <!-- 海控需要将其分开-->
  237. <li><p style="border: white;padding: 8px;font-weight:600;">会员手机号:{{userInfo.consigneePhone}}</p></li>
  238. <li><p style="border: white;padding: 8px;font-weight:600;">收货人手机号:{{userInfo.customPhone}}</p></li>
  239. </ul>
  240. </div>
  241. <ul style="display: inline-block">
  242. <li><p style="border: white;padding: 8px;font-weight:600;">会员当前积分:{{memberCurrentAvailableScore}}</p></li>
  243. <li><p style="border: white;padding: 8px;font-weight:600;">抵扣积分:{{deductionScore}}</p></li>
  244. <li><p style="border: white;padding: 8px;font-weight:600;">会员等级:{{levelName}}</p></li>
  245. </ul>
  246. <div style="width: 30px; display: inline-block"></div>
  247. <ul style="display: inline-block">
  248. <li><p style="border: white;padding: 8px;font-weight:600;">总件数:{{totalCount}}</p></li>
  249. <li><p style="border: white;padding: 8px;font-weight:600;">总价:{{totalPrice}}</p></li>
  250. <!-- <li><h3 style="border: white;padding: 8px">优惠价:{{discountedPrice}}</h3></li>-->
  251. <li><p style="border: white;padding: 8px;font-weight:600;">实际支付价:{{actualPrice}}</p></li>
  252. <li v-if="showReduceMoney != 0"><h3 style="border: white;padding: 8px;font-weight:600;">满减:{{showReduceMoney}}</h3></li>
  253. </ul>
  254. </li>
  255. <li style="height: 90px;">
  256. <i-button type="error" @click="clearGoodsList" class="goods-button"><i class="fa fa-pencil-square-o"></i>&nbsp;清空</i-button>
  257. <i-button data-toggle="modal" @click="pendingOrder" class="goods-button" ><i class="fa fa-pencil-square-o"></i>&nbsp;订单挂起</i-button>
  258. <i-button data-toggle="modal" @click="toResumePending" class="goods-button" ><i class="fa fa-pencil-square-o"></i>&nbsp;恢复挂起</i-button>
  259. <i-button data-toggle="modal" @click="calculateOrderPrice" type="primary" class="goods-button" ><i class="fa fa-pencil-square-o"></i>&nbsp;计算优惠后价格</i-button>
  260. <i-button data-toggle="modal" @click="toOrderSubmit" type="primary" class="goods-button" ><i class="fa fa-pencil-square-o"></i>&nbsp;提交订单</i-button>
  261. <!-- 45636914-->
  262. <div class="modal fade" id="pendignOrderModal" role="dialog" aria-labelledby="pendignOrderLabel" aria-hidden="true">
  263. <div class="modal-dialog">
  264. <div class="modal-content">
  265. <div class="modal-header">
  266. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  267. <h4 class="modal-title" id="pendingOrderLabel">挂起订单列表{{pendingOrderKeys}}</h4>
  268. </div>
  269. <div class="modal-body">
  270. <div class="col-xs-4 col-sm-4" v-for="(value,index) in pendingOrderKeys" style="margin-bottom: 8px;">
  271. <i-button data-toggle="modal" data-target="#resumePending" style="width: 110px;font-family: 微软雅黑" @click="resumePending(value)" >&nbsp;{{value}}</i-button>
  272. </div>
  273. </div>
  274. <div class="modal-footer">
  275. </div>
  276. </div>
  277. </div>
  278. </div>
  279. <div class="modal fade" id="myModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  280. <div class="modal-dialog">
  281. <div class="modal-content">
  282. <div class="modal-header">
  283. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  284. <h4 class="modal-title" id="exampleModalLabel">订购人信息</h4>
  285. </div>
  286. <div class="modal-body">
  287. <form>
  288. <!--<div class="form-group">
  289. <label for="customPhone" class="control-label">会员码:</label>
  290. <input autocomplete="off" type="text" class="form-control" ref="couponBarCode" id="couponBarCode" @blur="customPhoneBlur" />
  291. </div>-->
  292. <div class="form-group">
  293. <label for="customPhone" class="control-label">手机号:</label>
  294. <input autocomplete="off" type="text" class="form-control" ref="customPhone" id="customPhone" @blur="customPhoneBlur" />
  295. </div>
  296. <div class="form-group">
  297. <label for="customName" class="control-label">姓名:</label>
  298. <input autocomplete="off" type="text" class="form-control" ref="customName" id="customName" />
  299. </div>
  300. <div class="form-group">
  301. <label for="customIDCard" class="control-label">身份证:</label>
  302. <input autocomplete="off" type="text" class="form-control" ref="customIDCard" id="customIDCard" />
  303. </div>
  304. <div class="form-group">
  305. <label class="control-label">寄送方式:&nbsp;&nbsp;</label>&nbsp;&nbsp;&nbsp;
  306. <span class="control-label"><input autocomplete="off" type="radio" @click="sendDiva" ref="status" name="status" value="1" checked="checked"/>&nbsp;:&nbsp;&nbsp;快递柜打包</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  307. <span class="control-label"><input autocomplete="off" type="radio" @click="sendDivb" ref="status" name="status" value="0" />&nbsp;:&nbsp;&nbsp;寄送到家</span>
  308. </div>
  309. <div class="form-group sendShow" style="border-bottom: 1px solid #e5e5e5;">
  310. <h4 class="modal-title">收件人信息</h4>
  311. </div>
  312. <div class="form-group sendShow">
  313. 省:<select id="cmbProvince" value=""></select>
  314. 市:<select id="cmbCity" value=""></select>
  315. 区:<select id="cmbArea" value=""></select>
  316. </div>
  317. <div class="form-group sendShow">
  318. <label for="addrUser" class="control-label">详细地址:</label>
  319. <input autocomplete="off" type="text" class="form-control" ref="addrUser" id="addrUser" />
  320. </div>
  321. <div v-if="coupons.size > 0" class="form-group">
  322. <label for="couponSn" class="control-label">优惠券码:</label>
  323. <input type="text" class="form-control" ref="couponSn" id="couponSn" />
  324. </div>
  325. </form>
  326. </div>
  327. <div class="modal-footer">
  328. <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
  329. <button type="button" class="btn btn-primary" @click="queryIDCardInfo">查询身份信息</button>
  330. <button type="button" class="btn btn-primary" @click="getIDCardInfo" id="IDCard">读取身份证信息</button>
  331. <button type="button" class="btn btn-primary" @click="idCardVerification" id="Send" style="background-color:red;">去付款</button>
  332. </div>
  333. </div>
  334. </div>
  335. </div>
  336. <div class="modal fade" id="updatePasswordDialog" role="dialog" aria-hidden="true">
  337. <div class="modal-dialog">
  338. <div class="modal-content">
  339. <div class="modal-header">
  340. <button type="button" class="close" data-dismiss="modal" @click="closeUpdatePasswordDialog" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  341. <h4 class="modal-title" id="updatePasswordLabel">修改密码</h4>
  342. </div>
  343. <div class="modal-body">
  344. <div>
  345. <label class="control-label">账号:</label>
  346. <span class="label label-success" style="vertical-align: center;">{{sysUserInfo.username}}</span>
  347. </div>
  348. <div style="margin-top: 30px">
  349. <label class="control-label" for="oldPassword">原密码:</label>
  350. <input type="password" class="form-control" v-model="oldPassword" ref="oldPassword" size="40%" id="oldPassword" />
  351. </div>
  352. <div style="margin-top: 30px">
  353. <label class="control-label" for="newPassword">新密码:</label>
  354. <input type="text" class="form-control" v-model="newPassword" ref="newPassword" size="40%" id="newPassword" />
  355. </div>
  356. <!-- <div style="margin-top: 30px">-->
  357. <!-- <label class="control-label" for="newPassword2">再次输入新密码:</label>-->
  358. <!-- <input type="text" class="form-control" v-model="newPassword2" ref="newPassword2" size="40%" id="newPassword2" />-->
  359. <!-- </div>-->
  360. </div>
  361. <div class="modal-footer">
  362. <button type="button" class="btn btn-default" data-dismiss="modal" @click="closeUpdatePasswordDialog" >关闭</button>
  363. <button type="button" class="btn btn-primary" @click="updatePassword">修改</button>
  364. </div>
  365. </div>
  366. </div>
  367. </div>
  368. <div class="modal fade" id="calculateOrderPriceDialog" role="dialog" aria-hidden="true">
  369. <div class="modal-dialog">
  370. <div class="modal-content">
  371. <div class="modal-header">
  372. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  373. <h4 class="modal-title" id="calculateOrderPriceModalLabel">录入会员码</h4>
  374. </div>
  375. <div class="modal-body">
  376. <div>
  377. <label for="customPhone" class="control-label">会员码:</label>
  378. <input autocomplete="off" type="text" v-model="memberCode" ref="couponBarCode" size="60%" id="couponBarCode" @on-enter="calculateOrderPriceSubmit" />
  379. </div>
  380. <div style="margin-top: 30px">
  381. <label class="control-label" >是否使用积分进行抵扣:</label>
  382. <i-switch v-model="switch1" on />
  383. </div>
  384. </div>
  385. <div class="modal-footer">
  386. <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
  387. <button type="button" class="btn btn-primary" @click="calculateOrderPriceSubmit">计算优惠价</button>
  388. </div>
  389. </div>
  390. </div>
  391. </div>
  392. <!--付款码 -->
  393. <div class="modal fade" id="payModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  394. <div class="modal-dialog">
  395. <div class="modal-content">
  396. <div class="modal-header">
  397. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  398. <h4 class="modal-title" id="payModalLabel">付款码</h4>
  399. </div>
  400. <div class="modal-body">
  401. <div style="margin-bottom: 10PX">
  402. <h3 style="border: white;padding: 8px">会员手机号:{{userInfo.customPhone}}</h3>
  403. </div>
  404. <div style="margin-bottom: 30px">
  405. <ul style="display: inline-block">
  406. <li><h3 style="border: white;padding: 8px">会员等级:{{levelName}}</h3></li>
  407. <li><h3 style="border: white;padding: 8px">会员当前积分:{{memberCurrentAvailableScore}}</h3></li>
  408. <li><h3 style="border: white;padding: 8px">抵扣积分:{{deductionScore}}</h3></li>
  409. </ul>
  410. <ul style="display: inline-block">
  411. <li><h3 style="border: white;padding: 8px;">总件数:{{totalCount}}</h3></li>
  412. <li><h3 style="border: white;padding: 8px;">总价:{{totalPrice}}</h3></li>
  413. <li><h3 style="border: white;padding: 8px;color: red;">实际支付价:{{actualPrice}}</h3></li>
  414. </ul>
  415. </div>
  416. <form>
  417. <div class="form-group">
  418. <i-input id="payCode" class="payCodeInput" @on-enter="submitOrder" ref="payCode" size="60%" placeholder="请输入付款码"/>
  419. </div>
  420. </form>
  421. </div>
  422. <div class="modal-footer">
  423. <button type="button" class="btn btn-primary" @click="submitOrder" id="submitOrder" data-dismiss="modal">提交</button>
  424. </div>
  425. </div>
  426. </div><!-- /.modal -->
  427. </div>
  428. </li>
  429. </ul>
  430. </div>
  431. <div class="col-md-3 col-sm-1">
  432. <h2 class="text-center" style="border: white;background-color: #F5DCB3;padding: 8px" >小票码 <span v-show="delayResponse"> 海关卡回执导致单量堆积</span></h2><br/>
  433. <div class="row" style="border: white;background-color: #f0f0f0;overflow:auto;min-height: 420px;">
  434. <div class="col-xs-4 col-sm-4" v-for="(item,i) in pickUpCodeList" style="margin-bottom: 8px;">
  435. <i-button data-toggle="modal" data-target="#orderDetail" style="width: 110px;font-family: 微软雅黑" @click="queryOrderDetail(item.orderSn,item.pickUpCodeSn)" v-if="item.pickUpCodeStatus == 0" >&nbsp;{{item.pickUpCodeSn}}</i-button>
  436. <i-button data-toggle="modal" data-target="#orderDetail" style="background-color:#83e7b4;width: 110px;font-family: 微软雅黑" @click="queryOrderDetail(item.orderSn,item.pickUpCodeSn)" v-if="item.pickUpCodeStatus == 1" >{{item.pickUpCodeSn}}</i-button>
  437. <i-button data-toggle="modal" data-target="#orderDetail" style="background-color:#808080;width: 110px;font-family: 微软雅黑" @click="queryOrderDetail(item.orderSn,item.pickUpCodeSn)" v-if="item.pickUpCodeStatus == 2" >{{item.pickUpCodeSn}}</i-button>
  438. <i-button data-toggle="modal" data-target="#orderDetail" style="background-color:#FF0000;width: 110px;font-family: 微软雅黑" @click="queryOrderDetail(item.orderSn,item.pickUpCodeSn)" v-if="item.pickUpCodeStatus == 4" >{{item.pickUpCodeSn}}</i-button>
  439. <i-button data-toggle="modal" data-target="#orderDetail" style="background-color:#ffc800;width: 110px;font-family: 微软雅黑" @click="queryOrderDetail(item.orderSn,item.pickUpCodeSn)" v-if="item.pickUpCodeStatus == 5" >{{item.pickUpCodeSn}}</i-button>
  440. <i-button data-toggle="modal" data-target="#orderDetail" style="background-color:#000;color: #fff;width: 110px;font-family: 微软雅黑" @click="queryOrderDetail(item.orderSn,item.pickUpCodeSn)" v-if="item.pickUpCodeStatus == 6" >{{item.pickUpCodeSn}}</i-button>
  441. </div>
  442. </div>
  443. </div>
  444. <!--付款码 -->
  445. <div class="modal fade " id="orderDetail" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  446. <div class="modal-dialog modal-lg" style="width: 80%;height: 80%">
  447. <div class="modal-content">
  448. <div class="modal-header">
  449. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  450. <h4 class="modal-title" id="orderDetailLabel">订单详情</h4>
  451. </div>
  452. <div class="modal-body">
  453. <div class="row" style="border:0">
  454. <div class="col-md-3" id="orderNo">订单编号: {{orderEntity.orderSn}}</div>
  455. <div class="col-md-3" id="serialNumber">支付流水号: <span>{{orderEntity.payTransactionId}}</span></div>
  456. <div class="col-md-3" id="waybillNo">运单编号: {{orderProcessRecord.logisticsNo}}</div>
  457. <div class="col-md-3" id="inventoryNo">清单编号: {{orderProcessRecord.invtNo}}</div>
  458. </div>
  459. <div class="row" style="border:0">
  460. <!-- <div class="col-md-3" id="orderDeclarationTime">订单申报时间: {{orderProcessRecord.eleOrderStartTime}}</div>-->
  461. <div class="col-md-3" id="payDeclarationTime">支付单申报时间: {{orderProcessRecord.paymentStartTime}}</div>
  462. <div class="col-md-3" id="waybillDeclarationTime">运单申报时间: {{orderProcessRecord.waybillStartTime}}</div>
  463. <div class="col-md-3" id="inventoryDeclarationTime">清单放行时间: {{orderProcessRecord.customsSuccTime}}</div>
  464. <div class="col-md-3" id="orderSubmitTime">订单提交时间: {{orderProcessRecord.addOrderStartTime}}</div>
  465. </div>
  466. <div class="row" style="border:0">
  467. <!-- <div class="col-md-3" id="orderSubmitTime">订单提交时间: {{orderProcessRecord.addOrderStartTime}}</div>-->
  468. <div class="col-md-3" id="payStatus">支付状态:
  469. <span v-if="orderEntity.payStatus == 0">未付款</span>
  470. <span v-if="orderEntity.payStatus == 1">付款中</span>
  471. <span v-if="orderEntity.payStatus == 2">已付款</span>
  472. </div>
  473. <div class="col-md-3" id="inventoryStatus">清关状态:
  474. <span v-if="orderProcessRecord.isCustomsSend == 1">放行</span>
  475. <span v-if="orderProcessRecord.isCustomsSend == 2">查验</span>
  476. <span v-if="orderProcessRecord.isCustomsSend == 3">清关失败</span>
  477. <span v-if="orderProcessRecord.isCustomsSend == 4">其他</span>
  478. </div>
  479. <div class="col-md-3" id="payOrderDeclareStatus">支付单申报状态:
  480. <span v-if="orderProcessRecord.isPaymentSend == 0">失败</span>
  481. <span v-if="orderProcessRecord.isPaymentSend == 1">成功</span>
  482. <span v-if="orderProcessRecord.isPaymentSend == 2">申报中</span>
  483. </div>
  484. </div>
  485. <!-- <div class="row" style="border:0">-->
  486. <!-- <div class="col-md-3" id="orderDeclareStatus">订单申报状态:-->
  487. <!-- <span v-if="orderProcessRecord.isEleOrderSend == 0">失败</span>-->
  488. <!-- <span v-if="orderProcessRecord.isEleOrderSend == 1">成功</span>-->
  489. <!-- <span v-if="orderProcessRecord.isEleOrderSend == 2">申报中</span>-->
  490. <!-- </div>-->
  491. <!-- <div class="col-md-3" id="payOrderDeclareStatus">支付单申报状态:-->
  492. <!-- <span v-if="orderProcessRecord.isPaymentSend == 0">失败</span>-->
  493. <!-- <span v-if="orderProcessRecord.isPaymentSend == 1">成功</span>-->
  494. <!-- <span v-if="orderProcessRecord.isPaymentSend == 2">申报中</span>-->
  495. <!-- </div>-->
  496. <!-- </div>-->
  497. <div class="row" style="border:0">
  498. <div class="col-md-3" id="orderTotal">订单总金额: {{orderEntity.orderPrice}}</div>
  499. <div class="col-md-3" id="actualPrice">订单实际支付金额: {{orderEntity.actualPrice}}</div>
  500. <div class="col-md-3" id="discount">订单优惠券金额: {{orderEntity.couponPrice}}</div>
  501. <div class="col-md-3" id="orderTaxes">订单预估税费: {{tax}}</div>
  502. </div>
  503. <div class="row" style="border:0">
  504. <div class="col-md-3" id="payName">姓名: {{orderEntity.payName}}</div>
  505. <div class="col-md-3" id="mobile">手机号: {{orderEntity.payMobile}}</div>
  506. <div class="col-md-3" id="pickUpCodeSn">小票码: {{orderEntity.pickUpCodeSn}}</div>
  507. </div>
  508. <div class="row" style="border:0">
  509. <div class="col-md-12" id="invetoryReceipt">清关结果: {{response}}</div>
  510. </div>
  511. <table id="goodsDetailTable" class="table .table-striped" style="margin-top: 50px;">
  512. <tr style="border: white;background-color: orange">
  513. <th>商品名称</th>
  514. <th>sku</th>
  515. <th>规格</th>
  516. <th>市场价</th>
  517. <!-- <th>优惠价</th>-->
  518. <th>数量</th>
  519. <th>实际支付价</th>
  520. <th>预估税费</th>
  521. <th>参与活动</th>
  522. </tr>
  523. <tr v-for="(item,i) in goodsDetailList" >
  524. <td><h3>{{item.goodsName}}</h3></td>
  525. <td>{{item.sku}}</td>
  526. <td>{{item.specification}}</td>
  527. <td>{{item.marketPrice}}</td>
  528. <!-- <td>{{item.discountedPrice}}</td>-->
  529. <td>{{item.number}}</td>
  530. <td>{{item.actualPaymentAmount}}</td>
  531. <td >{{item.taxPrice}}</td>
  532. <td >{{item.activity}}</td>
  533. </tr>
  534. </table>
  535. </div>
  536. <div class="modal-footer">
  537. <button v-if="canRefund" type="button" style="margin:0 30px 0 20px;font-size: 20px;float: left" class="btn ivu-btn-error" @click="refundOrder()" id="refundOrder" data-dismiss="modal">退款</button>
  538. <button v-else disabled type="button" style="margin:0 30px 0 25px;font-size: 20px;float: left" class="btn ivu-btn-error" @click="refundOrder()" data-dismiss="modal">退款</button>
  539. <!-- <button type="button" style="margin:0 30px 0 20px;font-size: 25px;" class="btn btn-warning" @click="confirmDelivery" id="confirmDelivery" data-dismiss="modal">确定提货</button>-->
  540. <!-- <button type="button" style="margin:0 30px 0 20px;font-size: 25px;" class="btn btn-primary" @click="resendNotice" id="resendNotice" data-dismiss="modal">重发通知</button>-->
  541. <!-- <button type="button" style="margin:0 30px 0 20px;font-size: 25px;" class="btn btn-primary" @click="resendWaybill" id="resendWaybill" data-dismiss="modal">重发运单</button>-->
  542. <button type="button" style="margin:0 30px 0 20px;font-size: 25px;" class="btn btn-primary" @click="resendorderinfo" id="resendorderinfo" data-dismiss="modal">重推订单信息</button>
  543. <button type="button" style="margin:0 30px 0 20px;font-size: 25px;" class="btn btn-primary" @click="resendorder" id="resendorder" data-dismiss="modal">重发订单</button>
  544. <button type="button" style="margin:0 30px 0 20px;font-size: 25px;" class="btn btn-primary" @click="resendPayment" id="resendPayment" data-dismiss="modal">重发支付单</button>
  545. <!-- <button type="button" style="margin:0 30px 0 20px;font-size: 25px;" class="btn btn-primary" @click="resendOrder" id="resendOrder" data-dismiss="modal">重发订单</button>-->
  546. <!-- <button type="button" style="margin:0 30px 0 20px;font-size: 25px;" class="btn btn-primary" @click="forceSendToOms" id="forceSendToOms" data-dismiss="modal">强推清关</button>-->
  547. <button type="button" style="margin:0 30px 0 20px;font-size: 25px;" class="btn btn-primary" @click="verification" id="verification" data-dismiss="modal">核销</button>
  548. <!-- <button type="button" style="margin:0 30px 0 20px;font-size: 25px;" class="btn btn-primary" @click="verEwbtion" id="verEwbtion" data-dismiss="modal">打印快递单</button>-->
  549. </div>
  550. </div>
  551. </div><!-- /.modal -->
  552. </div>
  553. <!-- 多sku选择框-->
  554. <div>
  555. <div id="orderSkuDetail" v-if="openSku" >
  556. <table id="goodsSkuDetailTable" class="tableNew table .table-striped ">
  557. <tr style="border: white;background-color: orange">
  558. <th>商品名称</th>
  559. <th>sku</th>
  560. <th>条码</th>
  561. <th>单价</th>
  562. <th>库存数</th>
  563. <th>实际支付价</th>
  564. <th>参与活动</th>
  565. <th>操作</th>
  566. <th><i class="glyphicon glyphicon-remove" @click="cancelNew"></i></th>
  567. </tr>
  568. <tr v-for="(item,i) in goodsSkuDetailList">
  569. <td>{{item.name}}</td>
  570. <td>{{item.sku}}</td>
  571. <td>{{item.prodBarcode}}</td>
  572. <td>{{item.retailPrice}}</td>
  573. <td>{{item.stockNum}}</td>
  574. <td>{{item.actualPaymentAmount}}</td>
  575. <td>{{item.activity}}</td>
  576. <td>
  577. <button type="button" v-if="openSku" style="margin:0 30px 0 -20px;font-size: 20px;" class="btn btn-primary" @click="saveNew(item.sku)" id="saveNew" data-dismiss="modal">确定</button>
  578. </td>
  579. </tr>
  580. </table>
  581. </div>
  582. </div>
  583. </div>
  584. </div>
  585. </div>
  586. <div style="display: none">
  587. <img src="/statics/img/yto_logo.jpg">
  588. <img src="/statics/img/bestex_logo.jpeg">
  589. <img src="/statics/img/bestex_logo2.jpeg">
  590. <img src="/statics/img/bestex_logo2.png">
  591. <img src="/statics/img/bestex_logo3.png">
  592. </div>
  593. <script type="application/javascript">
  594. let mailTypes = ["best", "yto"];
  595. var strategies = {
  596. "best": function(data){
  597. return render_of_best(data);
  598. },
  599. "yto": function(data){
  600. return render_of_yto(data);
  601. }
  602. };
  603. for (let i = 0; i < mailTypes.length; i++) {
  604. strategies[mailTypes[i]] = "";
  605. }
  606. var renderMailInfo = function(exprCode, data){
  607. return strategies[exprCode](data);
  608. };
  609. </script>
  610. <script src="${rc.contextPath}/statics/dist/js7_jsAddress.js"></script>
  611. <script src="${rc.contextPath}/statics/libs/bignumber.js"></script>
  612. <script src="${rc.contextPath}/js/sale/sale.js?_${date.systemTime}"></script>
  613. <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
  614. <script src="${rc.contextPath}/statics/libs/bootstrap.min.js"></script>
  615. </body>
  616. </html>