uploadByBatch.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. <style type="text/css">
  2. .location {
  3. line-height: 28px;
  4. }
  5. .location ul {
  6. border-bottom: solid 1px #ddd;
  7. }
  8. .block {
  9. padding: 0px 15px;
  10. }
  11. .headerline {
  12. font-size: 24px;
  13. font-family: Microsoft YaHei, SimHei, Verdana;
  14. font-weight: 500;
  15. line-height: 22px;
  16. margin: 30px 0 35px -15px;
  17. clear: both;
  18. zoom: 1;
  19. border-top: 1px solid #eee;
  20. position: relative;
  21. font-size: 18px;
  22. }
  23. .headerline .index {
  24. position: absolute;
  25. top: 12px;
  26. left: 0;
  27. width: 6px;
  28. height: 24px;
  29. line-height: 24px;
  30. background: #ff7300;
  31. color: #fff;
  32. text-align: center;
  33. border-radius: 0 2px 2px 0;
  34. z-index: 2;
  35. }
  36. .headerline .content {
  37. position: absolute;
  38. top: 12px;
  39. left: 6px;
  40. line-height: 24px;
  41. padding: 0 15px 0 10px;
  42. background: #fff;
  43. z-index: 2;
  44. }
  45. .headerline .end {
  46. position: absolute;
  47. top: -12px;
  48. right: 0;
  49. line-height: 24px;
  50. padding-left: 15px;
  51. background: #fff;
  52. z-index: 2;
  53. }
  54. .search table.table tr td {
  55. border-top: none;
  56. }
  57. #searchInput {
  58. height: 34px;
  59. }
  60. .suggestion {
  61. position: absolute;
  62. margin-top: -1px;
  63. width: 374px;
  64. background-color: #fff;
  65. border: 1px solid #bbb;
  66. border-top: none;
  67. z-index: 20;
  68. }
  69. .suggestion ul {
  70. margin-bottom: 0;
  71. }
  72. .suggestion ul li {
  73. line-height: 20px;
  74. font-size: 16px;
  75. padding: 0px 12px;
  76. color: #0080c0;
  77. cursor: pointer;
  78. }
  79. .suggestion ul li:hover,.suggestion ul li.active {
  80. background: #eee;
  81. }
  82. .productInfo {
  83. overflow-x:scroll;
  84. }
  85. #release .tableMargin {
  86. margin-top: 20px;
  87. }
  88. #release table {
  89. margin:0 auto;
  90. }
  91. #release th {
  92. text-align: center;
  93. height: 40px;
  94. }
  95. #release-body td {
  96. text-align: center;
  97. word-break: break-all;
  98. }
  99. #release-body td ul li {
  100. list-style: none;
  101. text-align: right;
  102. }
  103. #release .checkboxSize input {
  104. width: 18px;
  105. height: 18px;
  106. }
  107. #image-box .x-floating-wrap {
  108. position: fixed;
  109. z-index: 99998;
  110. background: #000;
  111. top: 0;
  112. left: 0;
  113. width: 100%;
  114. height: 100%;
  115. opacity: 0.5;
  116. }
  117. #image-box .x-floating {
  118. position: fixed;
  119. z-index: 99999;
  120. top: 60px;
  121. left: 0;
  122. width: 100%;
  123. height: 100%;
  124. text-align: center;
  125. vertical-align: middle;
  126. }
  127. #image-box .x-floating img {
  128. margin: auto auto;
  129. max-width: 100%;
  130. max-height: 80%;
  131. -webkit-user-select: none;
  132. -moz-user-select: none;
  133. -ms-user-select: none;
  134. user-select: none
  135. }
  136. #image-box .x-close-wrap {
  137. position: fixed;
  138. top: 0;
  139. right: 0;
  140. z-index: 100000;
  141. width: 120px;
  142. height: 120px;
  143. margin: -60px -60px 0 0;
  144. border-radius: 100%;
  145. background: #000;
  146. opacity: .3
  147. }
  148. #image-box .x-close-wrap a {
  149. position: absolute;
  150. left: 25px;
  151. bottom: 25px;
  152. font-size: 42px;
  153. color: #fff
  154. }
  155. #image-box .x-close-wrap:hover {
  156. opacity: .7
  157. }
  158. table.table.table-striped thead {
  159. display: none;
  160. }
  161. .clear-fix {
  162. clear: both;
  163. }
  164. .color-gray-f {
  165. color: #858585;
  166. }
  167. .color-red-f {
  168. color: #F30A26;
  169. }
  170. /* 分页 Start */
  171. .block div.text-normal-s {
  172. margin: 20px 0;
  173. width: 100%;
  174. }
  175. .block div.text-normal-s>div:first-child {
  176. float: right;
  177. display: inline;
  178. height: 28px;
  179. line-height: 28px;
  180. }
  181. .block div.text-normal-s>div:first-child div {
  182. padding: 0;
  183. margin: 0;
  184. height: 26px;
  185. line-height: 26px;
  186. vertical-align: top;
  187. display: inline-block;
  188. }
  189. .block div.text-normal-s>div:first-child input[type="button"] {
  190. border: 0;
  191. margin: 0;
  192. padding: 0;
  193. height: 26px;
  194. vertical-align: top;
  195. background-color: transparent;
  196. }
  197. .block div.text-normal-s>div:first-child input[type="button"]:hover {
  198. color: #000000;
  199. }
  200. .block div.text-normal-s>div:first-child span {
  201. vertical-align: top;
  202. }
  203. .block div.text-normal-s>div:first-child input[type="text"]{
  204. border: 0;
  205. width: 20px;
  206. height: 20px;
  207. margin: 4px 0;
  208. vertical-align: top;
  209. text-align: center;
  210. background-image: url('static/img/order/number-box.png');
  211. }
  212. .block div.text-normal-s input[type="button"].btn-jump {
  213. width: 56px;
  214. height: 26px;
  215. border: 0;
  216. padding: 0;
  217. background-image: url('static/img/order/page-jump.png');
  218. }
  219. .block div.text-normal-s input[type="button"].btn-jump:hover {
  220. border-left: 1px #0000ff solid;
  221. border-right: 1px #0000ff solid;
  222. }
  223. /* 分页 End */
  224. </style>
  225. <!-- block start -->
  226. <div class="block">
  227. <div class="headerline">
  228. <div class="index"></div>
  229. <div class="content f16 text-bold">第一步、下载Excel模板</div>
  230. </div>
  231. <div class="box-item" ng-hide="box1Closed">
  232. <p>
  233. <button class="btn btn-success btn-sm" ng-click="download()">下载Excel模板 <i
  234. class="fa fa-download"></i></button> 在Excel模板上录入商品发布信息,上传
  235. <a class="f14 text-default" ng-click="showImg()">查看表格示例</a>。
  236. </p>
  237. </div>
  238. <div id="image-box" style="display: none">
  239. <div class="x-close-wrap" title="关闭">
  240. <a href="javascript:void(0);">&times;</a>
  241. </div>
  242. <div class="x-floating-wrap"></div>
  243. <div class="x-floating">
  244. <img />
  245. </div>
  246. </div>
  247. <div class="headerline">
  248. <div class="index"></div>
  249. <div class="content f16 text-bold">第二步、上传已经填好的Excel文件</div>
  250. </div>
  251. <div class="box-item" ng-hide="box2Closed">
  252. <form class="form-horizontal">
  253. <div class="form-group">
  254. <label class="control-label col-xs-3" for="xlsFile">请上传已经填写好的Excel文件</label>
  255. <div class="col-xs-4">
  256. <input required ng-file-select accept="*.xls,*.xlsx"
  257. ng-model="myFiles" type="file" ng-multiple="false"
  258. class="form-control input-sm" id="xlsFile" name="xlsFile"
  259. placeholder="请上传.xls或.xlsx文件" />
  260. </div>
  261. <div class="col-xs-4">
  262. <button ng-click="upload()" class="btn btn-success btn-sm">
  263. 确认上传 <i class="fa fa-upload"></i>
  264. </button>
  265. </div class="col-xs-4">
  266. </div>
  267. <div>
  268. </div>
  269. <!-- 分页 Start -->
  270. </form>
  271. </div>
  272. <div class="headerline">
  273. <div class="index"></div>
  274. <div class="content f16 text-bold">第三部、信息提示</div>
  275. </div>
  276. <div class="box-item" ng-hide="box3Closed">
  277. <p ng-if="result">
  278. <div ng-repeat="alter in alters">
  279. 物料 <span class="text-inverse">{{alter}}</span> 已存在,上传失败
  280. </div>
  281. </p>
  282. </div>
  283. <div class="headerline">
  284. </div>
  285. <div id="image-box" style="display: none">
  286. <div class="x-close-wrap" title="关闭">
  287. <a href="javascript:void(0);">&times;</a>
  288. </div>
  289. <div class="x-floating-wrap"></div>
  290. <div class="x-floating">
  291. <img />
  292. </div>
  293. </div>
  294. </div>
  295. <!-- block end -->