exceptionNotify.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  1. <style>
  2. /* general
  3. -------------------------------------------*/
  4. .ex-notify {
  5. font: normal 14px/1 "Microsoft Yahei", "微软雅黑" ;
  6. }
  7. .ex-notify .table {
  8. margin-bottom: 0;
  9. box-shadow: 6px 6px 12px rgba(0,0,0,.175);
  10. }
  11. /*表格缝隙颜色*/
  12. table .before-blank, .table-bordered>tbody>tr>td.before-blank, .table-bordered>tbody>tr>th.before-blank, .table-bordered>tfoot>tr>td.before-blank, .table-bordered>tfoot>tr>th.before-blank, .table-bordered>thead>tr>td.before-blank, .table-bordered>thead>tr>th.before-blank {
  13. border-right: 13px solid #eee;
  14. }
  15. .ex-notify .table-bordered>thead>tr>td, .ex-notify .table-bordered>thead>tr>th {
  16. border-bottom: none;
  17. }
  18. .ex-notify table > thead > tr > th {
  19. height: 57px;
  20. color: rgb(255, 255, 255);
  21. font-size: 14px;
  22. background: linear-gradient(rgb(93, 134, 220), rgb(12, 53, 136));
  23. vertical-align: middle !important;
  24. text-align: center;
  25. font-weight: normal; /* 400 */
  26. }
  27. .ex-notify table td {
  28. text-align: center;
  29. }
  30. .ex-notify .table-bordered>thead>tr>td, .ex-notify .table-bordered>thead>tr>th {
  31. border-bottom: none;
  32. }
  33. /*标题*/
  34. .ex-notify .title {
  35. font-size: 18px;
  36. font-weight: normal;
  37. display: inline-block;
  38. height: 36px;
  39. line-height: 36px;
  40. vertical-align: middle;
  41. text-align: center;
  42. padding: 0 0.6em;
  43. margin-bottom: 0;
  44. color: white;
  45. background: linear-gradient(rgb(93, 134, 220), rgb(12, 53, 136));
  46. border-radius: 3px;
  47. }
  48. .ex-notify textarea {
  49. resize: none;
  50. }
  51. .ex-notify select.form-control {
  52. width: auto;
  53. display: inline-block;
  54. }
  55. /* 采购单信息 */
  56. .order-info {
  57. margin-bottom: 30px;
  58. }
  59. .order-info .pay-amount {
  60. color: red;
  61. font-weight: 600;
  62. }
  63. /* 异常信息汇总 */
  64. .ex-info-sum {
  65. line-height: 1.8;
  66. }
  67. .ex-info-sum .time {
  68. float: left;
  69. }
  70. .ex-info-sum .time > div > span:first-child {
  71. display: inline-block;
  72. width: 6em;
  73. font-weight: 600;
  74. }
  75. .ex-info-sum .batch-sum {
  76. float: right;
  77. width: 45%;
  78. }
  79. .ex-info-sum .batch-sum > div:first-child {
  80. display: inline-block;
  81. vertical-align: top;
  82. font: 600 14px/1 "Microsoft Yahei", "微软雅黑" ;
  83. padding-top: 0.9em;
  84. }
  85. .ex-info-sum .batch-sum > ul {
  86. display: inline-block;
  87. width: 20em;
  88. border: 1px solid #eee;
  89. border-radius: 3px;
  90. margin-bottom: 0;
  91. background-color: rgb(243, 254,254);
  92. padding: 0.5em 1em;
  93. box-shadow: 6px 6px 12px rgba(0,0,0,.175);
  94. }
  95. .ex-info-sum ul > li:nth-child(3n + 0) {
  96. margin-bottom: 0.5em;
  97. }
  98. .ex-info-sum ul > li > span:first-child {
  99. display: inline-block;
  100. width: 7em;
  101. }
  102. .ex-info-sum ul > li > span:nth-child(2) {
  103. color: red;
  104. }
  105. .ex-info-sum .currency {
  106. color: hsl(219, 57%, 64%);
  107. }
  108. .ex-info-sum .tax > span:last-child {
  109. color: hsl(219, 57%, 64%);
  110. }
  111. .ex-info-sum .total-amount:not(:nth-child(1)) {
  112. font-weight: 600;
  113. }
  114. /* 异常明细信息 */
  115. .ex-detail .u-box {
  116. overflow-x: auto;
  117. }
  118. .ex-detail table {
  119. width: 1500px;
  120. background: white;
  121. }
  122. @media only screen and (min-width: 1920px) {
  123. .ex-detail .u-box {
  124. overflow-x: visible;
  125. }
  126. }
  127. /* 操作 */
  128. .ex-operation {
  129. padding: 2em;
  130. text-align: center;
  131. }
  132. .ex-operation button[disabled] {
  133. opacity: 0.7;
  134. }
  135. .ex-operation button[disabled]:hover {
  136. cursor: not-allowed;
  137. box-shadow: none;
  138. }
  139. .ex-operation button {
  140. padding: 0.3em 0.7em;
  141. font-size: 2em;
  142. line-height: normal;
  143. border: none;
  144. width: 18%;
  145. border-radius: 3px;
  146. }
  147. .ex-operation button:hover {
  148. box-shadow: 0 0 0 2px hsl(11, 97%, 51%);
  149. }
  150. .ex-operation .ensure {
  151. margin: 0 2em 0 0;
  152. background: linear-gradient(hsla(4, 85%, 54%, 0.7), hsla(4, 85%, 54%, 1));
  153. color: white;
  154. }
  155. .ex-operation .cancel {
  156. background: linear-gradient(hsla(45, 3%, 47%, 0.7), hsla(45, 3%, 47%, 1));
  157. color: white;
  158. }
  159. .u-box {
  160. overflow: scroll;
  161. }
  162. .u-box table {
  163. margin-bottom: 0;
  164. }
  165. </style>
  166. <div class="ex-notify">
  167. <article>
  168. <h1 class="title">异常通知-<span ng-bind="orExSrc[order.status]"></span></h1>
  169. <section class="order-info">
  170. <!--<h2>订单信息</h2>-->
  171. <table class="table table-bordered">
  172. <thead>
  173. <tr>
  174. <th>下单时间</th>
  175. <th>订单号</th>
  176. <th>付款时间</th>
  177. <th>货源批次数</th>
  178. <th>型号数量</th>
  179. <th>总数量</th>
  180. <th>支付总金额</th>
  181. <th>币种</th>
  182. <th>税率</th>
  183. </tr>
  184. </thead>
  185. <tbody>
  186. <tr>
  187. <td><span ng-bind="order.creattime | date:'yyyy-MM-dd HH:mm'"></span></td>
  188. <td><span ng-bind="order.orderid"></span></td>
  189. <td><span ng-bind="order.paytime | date:'yyyy-MM-dd HH:mm'"></span></td>
  190. <td><span ng-bind="order.batchQty"></span></td>
  191. <td><span ng-bind="order.cmpQty"></span></td>
  192. <td><span ng-bind="order.qty"></span></td>
  193. <td class="pay-amount"><span ng-bind="order.ensurePrice"></span></td>
  194. <td><span ng-bind="order.currency"></span></td>
  195. <td>
  196. <span ng-switch="order.currency">
  197. <span ng-switch-when="RMB">17%</span>
  198. <span ng-switch-when="USD">0%</span>
  199. </span>
  200. </td>
  201. </tr>
  202. </tbody>
  203. </table>
  204. </section>
  205. <section>
  206. <section class="ex-info-sum clearfix">
  207. <div class="time">
  208. <div><span>创建时间:</span><time ng-bind="apply.createTime | date : 'yyyy-MM-dd HH:mm'"></time></div>
  209. <div><span>更新时间:</span><time ng-bind="apply.updateTime | date : 'yyyy-MM-dd HH:mm'"></time></div>
  210. </div>
  211. <!--<h2>异常信息汇总</h2>-->
  212. <div class="batch-sum">
  213. <div>待处理批次汇总:</div>
  214. <ul class="list-unstyled">
  215. <li><span>货源批次数:</span> <span ng-bind="apply.batchQty"></span></li>
  216. <li><span>型号数量:</span> <span ng-bind="apply.cmpQty"></span></li>
  217. <li><span>产品总数量:</span> <span ng-bind="apply.prodQty"></span></li>
  218. <li>
  219. <span>产品总金额:</span>
  220. <span ng-bind="apply.totalAmount | formateNumber:2"></span>
  221. <span class="currency" ng-bind="order.currency"></span>
  222. </li>
  223. <li>
  224. <span>运费合计:</span>
  225. <span ng-bind="apply.freight | formateNumber:2"></span>
  226. <span class="currency" ng-bind="apply.currency"></span>
  227. </li>
  228. <li class="tax">
  229. <span>税率:</span>
  230. <span ng-switch="order.currency">
  231. <span ng-switch-when="RMB">17</span>
  232. <span ng-switch-when="USD">0</span>
  233. </span>
  234. <span>%</span>
  235. </li>
  236. <li class="total-amount">
  237. <span>涉及总金额:</span>
  238. <span ng-bind="totalAmount | formateNumber:2"></span>
  239. <span class="currency" ng-bind="order.currency"></span>
  240. </li>
  241. </ul>
  242. </div>
  243. </section>
  244. </section>
  245. <section class="ex-detail">
  246. <h2 class="title">批次汇总</h2>
  247. <div class="u-box">
  248. <table class="table table-bordered">
  249. <thead>
  250. <tr>
  251. <th>序号</th>
  252. <th>产品型号</th>
  253. <th>品牌</th>
  254. <th>物料名称</th>
  255. <th>数量</th>
  256. <th>金额</th>
  257. <th>单价</th>
  258. <th class="before-blank">币种</th>
  259. <th>商城申请类型</th>
  260. <th>商城补充说明</th>
  261. <th>回复类型</th>
  262. <th class="before-blank">补充说明</th>
  263. <th>生产日期</th>
  264. <th>库存更新日期</th>
  265. <th>包装</th>
  266. <th>最小包装数</th>
  267. <th>产品批次号</th>
  268. </tr>
  269. </thead>
  270. <tbody>
  271. <tr ng-repeat="detail in apply.applyDetails track by $index">
  272. <td>
  273. {{$index + 1}}
  274. </td>
  275. <td><span ng-bind="detail.orderDetail.cmpCode"></span></td>
  276. <td><span ng-bind="detail.orderDetail.brName"></span></td>
  277. <td><span ng-bind="detail.orderDetail.kiName"></span></td>
  278. <td><span ng-bind="detail.orderDetail.number"></span></td>
  279. <td><span ng-bind="detail.orderDetail.ensurePrice"></span></td>
  280. <td><span ng-bind="detail.orderDetail.taxUnitprice | formateNumber : 6"></span></td>
  281. <td class="before-blank"><span ng-bind="detail.orderDetail.currencyName"></span></td>
  282. <td><span ng-bind="applyTypes[detail.negotiations.last().mallToBuyerApplyType]"></span></td>
  283. <td><span ng-bind="detail.negotiations.last().mallToBuyerApplyReason"></span></td>
  284. <td>
  285. <select class="form-control" ng-if="apply.status == 'MALL_TO_BUYER'"
  286. ng-model="detail.buyerToMallApplyType"
  287. ng-change="checkCanSubmit(detail)">
  288. <option value="">请选择回复类型</option>
  289. <option value="STOCK_OUT">缺货取消</option>
  290. <option value="REFUSE">拒绝</option>
  291. </select>
  292. <span ng-if="apply.status !== 'MALL_TO_BUYER'" ng-bind="applyTypes[detail.negotiations.last().buyerToMallApplyType]"></span>
  293. </td>
  294. <td class="before-blank">
  295. <textarea ng-if="apply.status == 'MALL_TO_BUYER'" ng-model="detail.buyerToMallApplyReason"></textarea>
  296. <span ng-if="apply.status !== 'MALL_TO_BUYER'" ng-bind="detail.negotiations.last().buyerToMallApplyReason"></span>
  297. </td>
  298. <td><span ng-bind="detail.orderDetail.goodsHistory.produceDate | date:'yyyy-MM-dd HH:mm'"></span></td>
  299. <td><span ng-bind="detail.orderDetail.goodsHistory.updateDate | date:'yyyy-MM-dd HH:mm'"></span></td>
  300. <td><span ng-bind="detail.orderDetail.goodsHistory.packaging || '托盘'"></span></td>
  301. <td><span ng-bind="detail.orderDetail.goodsHistory.minPackQty"></span></td>
  302. <td><span ng-bind="detail.orderDetail.batchCode"></span></td>
  303. </tr>
  304. </tbody>
  305. </table>
  306. </div>
  307. </section>
  308. <section class="ex-operation">
  309. <!--<h2>操作</h2>-->
  310. <button class="ensure" ng-if="apply.status == 'MALL_TO_BUYER'" ng-click="ensure()" ng-disabled="!canSubmit">
  311. 确认
  312. </button>
  313. <a href="#/home/myOrder_todo">
  314. <button class="cancel">返回</button>
  315. </a>
  316. </section>
  317. </article>
  318. </div>