seek_btob_details.vue 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. <template>
  2. <div class="orderbtob_details_wrapper">
  3. <div class="mobile-header">
  4. <a @click="goLastPage"><i class="iconfont icon-fanhui"></i></a>
  5. <p v-if="active === 'done'">已报价</p>
  6. <p v-if="active === 'end'">已失效</p>
  7. <p v-if="active === 'agreed'">已采纳</p>
  8. <p v-if="active === 'todo'">待报价</p>
  9. </div>
  10. <div class="orderbtob_details_content">
  11. <div class="orderbtob_details_top">
  12. <div class="item">
  13. <span class="name">供应商:</span>
  14. {{listInfo.enterprise && listInfo.enterprise.enName}}
  15. </div>
  16. <div class="item clearfix">
  17. <span class="name fl">收货地址:</span>
  18. <span class="fl" style="width: 5.2rem">{{listInfo.inquiry.enterprise && listInfo.inquiry.enterprise.enAddress}}</span>
  19. </div>
  20. <div class="item">
  21. <span class="name">单据:</span>
  22. {{listInfo.inquiry.code}}
  23. </div>
  24. <div class="item clearfix">
  25. <span class="name fl">物料:</span>
  26. <span class="fl" style="width: 5.2rem">
  27. <p>{{listInfo.product.code}}</p>
  28. <p style="margin:5px 0">{{listInfo.product.title}}</p>
  29. <p>{{listInfo.product.spec}}</p>
  30. </span>
  31. </div>
  32. <div class="item">
  33. <span class="name">币别:</span>
  34. {{listInfo.currency}}
  35. </div>
  36. <div class="item">
  37. <span class="name">税率:</span>
  38. {{listInfo.taxrate + '%' || '无'}}
  39. </div>
  40. <div class="item">
  41. <span class="name">询价类型:</span>
  42. {{listInfo.inquiry.inquirytype || '无'}}
  43. </div>
  44. </div>
  45. <div class="orderbtob_details_middle">
  46. <div class="list">
  47. <div class="item clearfix">
  48. <span class="name">交货周期:</span>
  49. <span>{{listInfo.leadtime || '-'}}天</span>
  50. </div>
  51. <div class="item clearfix">
  52. <span class="name">最小起订:</span>
  53. <span>{{listInfo.minOrderQty || '-'}}PCS</span>
  54. </div>
  55. <div class="item clearfix">
  56. <span class="name">最小包装:</span>
  57. <span>{{listInfo.minPackQty || '-'}}PCS</span>
  58. </div>
  59. <div class="item clearfix" style="position: relative">
  60. <span class="fl name">分段报价:</span>
  61. <ul class="fl table">
  62. <li class="li_title clearfix">
  63. <div class="fl fisrt">段数</div>
  64. <div class="fl">分段数量</div>
  65. <div class="fl" >分段单价</div>
  66. </li>
  67. <li class="li_content clearfix" v-for="(item, index) in listInfo.replies">
  68. <div class="fl fisrt">{{index + 1}}</div>
  69. <div class="fl" v-if="index === 0">
  70. <input type="number" value="0" disabled readonly />
  71. </div>
  72. <div class="fl" v-if="index !== 0">
  73. <input type="number" v-model="item.lapQty" />
  74. </div>
  75. <div class="fl" >
  76. <input type="number" v-model="item.price" readonly/>
  77. </div>
  78. </li>
  79. </ul>
  80. <div style="clear:both"></div>
  81. </div>
  82. </div>
  83. <div class="list-status">
  84. <div v-if="listInfo.status === 200 && listInfo.agreed !== 1 && listInfo.invalid !== 1 && listInfo.check === 0">
  85. <span class="text-trans success">待报价</span>
  86. </div>
  87. <div v-if="listInfo.status === 201 && listInfo.invalid === 0 && listInfo.invalid === 0">
  88. <span class="text-trans error">已报价</span>
  89. </div>
  90. <div v-if="listInfo.invalid === 1 || listInfo.status === 314 || listInfo.check === 1 || listInfo.overdue === 1">
  91. <span class="text-trans half">已失效</span>
  92. </div>
  93. <div v-if="listInfo.status === 201 && listInfo.invalid === 0 && listInfo.agreed === 1 && listInfo.overdue === 0">
  94. <span class="text-trans half">已同意</span>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. </template>
  101. <script>
  102. export default {
  103. name: 'user_seek_btob_details',
  104. layout: 'mobileActivity',
  105. middleware: 'authenticated',
  106. data() {
  107. return {
  108. active: this.$route.query.active,
  109. listInfo: {
  110. inquiry: { },
  111. replies: [{
  112. lapQty: 0,
  113. price: ''
  114. }],
  115. product: {}
  116. }
  117. }
  118. },
  119. created() {
  120. this.getInitInfo()
  121. },
  122. methods: {
  123. getInitInfo() {
  124. this.$http.get(`/sale/inquiry/${this.$route.query.id}/info/mobile`).then(res => {
  125. if (!res.data.replies[0].price || res.data.replies[0].price === '') {
  126. res.data.replies[0].price = ''
  127. }
  128. this.listInfo = res.data
  129. })
  130. }
  131. },
  132. filters: {
  133. time: function(time) {
  134. if (typeof time === 'number') {
  135. if (!time) {
  136. return '无'
  137. } else {
  138. let d = new Date(time)
  139. let year = d.getFullYear()
  140. let month = d.getMonth() + 1 < 10 ? '0' + (d.getMonth() + 1) : '' + (d.getMonth() + 1)
  141. let day = d.getDate() < 10 ? '0' + d.getDate() : '' + d.getDate()
  142. return year + '-' + month + '-' + day
  143. }
  144. }
  145. }
  146. }
  147. }
  148. </script>
  149. <style scoped lang="scss">
  150. .orderbtob_details_wrapper {
  151. background: #f5f5f5;
  152. position: absolute;
  153. height: 100%;
  154. width: 100%;
  155. overflow-y: scroll;
  156. .mobile-header{
  157. position: fixed;
  158. top: 0;
  159. z-index: 10;
  160. width:100%;
  161. height:.88rem;
  162. line-height: .88rem;
  163. /*border-bottom:.01rem solid #ccc;*/
  164. background: #3e82f5;
  165. padding:0 .2rem 0 .1rem;
  166. color:#fff;
  167. }
  168. .mobile-header p{
  169. overflow: hidden;
  170. text-overflow: ellipsis;
  171. white-space: nowrap;
  172. font-size:.36rem;
  173. text-align: center;
  174. margin: 0;
  175. width: 6rem;
  176. padding-left: 1rem;
  177. }
  178. .mobile-header a{
  179. font-size:.28rem;
  180. color:#fff;
  181. position: absolute;
  182. }
  183. .mobile-header a i{
  184. font-size: .48rem;
  185. margin-right: -.1rem;
  186. }
  187. .orderbtob_details_content {
  188. margin-top: 0.9rem;
  189. padding: 0.2rem;
  190. .orderbtob_details_top {
  191. background: #3f84f6;
  192. border-radius: 0.07rem;
  193. border: solid 0.01rem #e3e5e8;
  194. padding: 0.24rem 0.2rem 0.14rem;
  195. .item {
  196. color: #fff;
  197. font-size: 0.28rem;
  198. margin-bottom: 0.1rem;
  199. }
  200. }
  201. .orderbtob_details_middle {
  202. margin-top: 0.2rem;
  203. position: relative;
  204. .list {
  205. border: solid 1px #e3e5e8;
  206. border-radius: 0.07rem;
  207. overflow: hidden;
  208. color: #333;
  209. font-size: 0.28rem;
  210. padding: 0.24rem 0.2rem;
  211. margin-bottom: 0.2rem;
  212. background: #fff;
  213. .item {
  214. margin-bottom: 0.1rem;
  215. line-height: 0.5rem;
  216. }
  217. .ovrflow {
  218. width: 5.2rem;
  219. line-height: 0.5rem
  220. }
  221. .name {
  222. color: #666;
  223. width: 1.6rem;
  224. display: inline-block;
  225. }
  226. .dateinput {
  227. width: 3.49rem;
  228. height: .5rem;
  229. line-height: .5rem;
  230. border: 1px solid #aeaeae;
  231. font-size: .26rem;
  232. vertical-align: middle;
  233. background: #fff;
  234. border-radius: 0;
  235. margin-right: 0.05rem;
  236. }
  237. }
  238. .replayBtn {
  239. width: 6.59rem;
  240. height: 0.77rem;
  241. background-color: #3f84f6;
  242. border-radius: 0.08rem;
  243. font-size: 0.28rem;
  244. line-height: 0.77rem;
  245. color: #ffffff;
  246. overflow: hidden;
  247. text-align: center;
  248. margin-top: 0.2rem
  249. }
  250. .table {
  251. width: 4.52rem;
  252. background-color: #f3f3f3;
  253. color: #333333;
  254. font-size: 0.28rem;
  255. .li_title {
  256. border: 1px solid #c5c5c5;
  257. div {
  258. width: 1.87rem;
  259. text-align: center;
  260. border-right: 1px solid #c5c5c5;
  261. &:last-child {
  262. border-right: 0
  263. }
  264. }
  265. .fisrt {
  266. width: 0.74rem;
  267. }
  268. }
  269. .li_content {
  270. border: 1px solid #c5c5c5;
  271. background: #fff;
  272. border-top: 0px;
  273. div {
  274. width: 1.87rem;
  275. text-align: center;
  276. border-right: 1px solid #c5c5c5;
  277. &:last-child {
  278. border-right: 0
  279. }
  280. input {
  281. text-align: center;
  282. width: 100%;
  283. height: 0.49rem;
  284. border: 0;
  285. }
  286. }
  287. .fisrt {
  288. width: 0.74rem;
  289. }
  290. }
  291. }
  292. .list-status {
  293. position: absolute;
  294. right: 0.2rem;
  295. top: 0.2rem
  296. }
  297. }
  298. .bottom {
  299. font-size: 0.2rem;
  300. color: #999;
  301. border-top: 1px solid #aeaeae;
  302. padding-top: 0.1rem;
  303. }
  304. .noborder{
  305. border: 0
  306. }
  307. }
  308. .icon-add {
  309. color: #00d300;
  310. font-size: 0.4rem
  311. }
  312. .icon-minus {
  313. color: #cacaca;
  314. font-size: 0.4rem;
  315. display: block;
  316. }
  317. .posixicon {
  318. position: absolute;
  319. right: 0.3rem;
  320. width: 0.4rem;
  321. top: 0;
  322. }
  323. }
  324. </style>