uploadByBatch.html 7.6 KB

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