index.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <template>
  2. <div>
  3. <div class="bdy">
  4. <div style="font-size: 1.3rem; font-weight: bold ; color: #fff;margin-bottom:1rem">销售单号</div>
  5. <div class="secd_input_r">
  6. <b-form-select id="input-3" :options="options" v-model="selected" class="inp select_list" style="height: 3rem"
  7. required placeholder="请选择站点"></b-form-select>
  8. </div>
  9. <div class="bdy_btn">
  10. <Button
  11. type="warning"
  12. ghost
  13. class="header_btn"
  14. style="margin-right: 3rem; height: 2.6rem"
  15. @click="handleReturn"
  16. >
  17. 返回</Button
  18. >
  19. <Button
  20. class="header_btn"
  21. ghost
  22. style="margin-left: 3rem; height: 2.6rem"
  23. @click="handelGoSure"
  24. >
  25. 确认</Button
  26. >
  27. </div>
  28. </div>
  29. </div>
  30. </template>
  31. <script>
  32. export default {
  33. data () {
  34. return {
  35. is_show: true,
  36. is_use: false,
  37. selected: '',
  38. options: []
  39. }
  40. },
  41. created () {
  42. const data = {
  43. url: 'http://121.36.142.167:7774/jbl/api/module-data/exe_sale_order_b/page',
  44. post:{"direction":"DESC","property":"id","fromClientType":"pc","number":0,"sorts":[],"rules":[],"size":15,"specialConditions":[],"dynamicFormCode":"exe_sale_order_b","developmentSystemId":null,"debugFlag":false}
  45. }
  46. this.axios.post('/api/testdwy', { ...data }).then(res => {
  47. this.options = res.data.content
  48. this.options.forEach(v => {
  49. v.value = v.exe_sale_order_b.no
  50. v.text = v.exe_sale_order_b.no
  51. })
  52. })
  53. },
  54. methods: {
  55. handelGoSure () {
  56. if (!this.selected) {
  57. return this.$Message.warning('请先选择销售单号!')
  58. }
  59. this.$router.push({ path: '/cms/Package/detail', query: { id: this.selected } })
  60. },
  61. handleReturn () {
  62. this.$router.push('/cms/home')
  63. }
  64. }
  65. }
  66. </script>
  67. <style lang="scss" scoped>
  68. .header {
  69. width: 94%;
  70. height: 7rem;
  71. // overflow: hidden;
  72. // transition: all 0.4s;
  73. position: relative;
  74. top: 0.5rem;
  75. left: 3%;
  76. box-shadow: 0.16rem 0.1rem 0.1rem 0.1rem #9d9b9b;
  77. border-radius: 1rem;
  78. padding: 0.4rem 0.7rem 0 1rem;
  79. background: #fff;
  80. }
  81. .header_btn {
  82. border-radius: .5rem;
  83. padding: 0.1rem;
  84. width: 5rem;
  85. display: flex;
  86. justify-content: space-around;
  87. align-items: center;
  88. }
  89. .header_top {
  90. display: flex;
  91. justify-content: space-between;
  92. align-items: center;
  93. }
  94. .ot {
  95. position: relative;
  96. top: -1.3rem;
  97. }
  98. .header_middle1 {
  99. display: flex;
  100. justify-content: space-between;
  101. align-items: center;
  102. .ft {
  103. font-size: 1.5rem;
  104. width: 5rem;
  105. text-align: center;
  106. }
  107. }
  108. .header_middle {
  109. position: relative;
  110. top: -0.3rem;
  111. display: flex;
  112. justify-content: space-between;
  113. align-items: center;
  114. }
  115. /deep/ .btn-group > .btn,
  116. .btn-group-vertical > .btn {
  117. background: #ffffff;
  118. color: #2c3e50;
  119. outline: none;
  120. border: none;
  121. margin: 0;
  122. z-index: 3;
  123. }
  124. .header_footer {
  125. position: relative;
  126. top: -1.7rem;
  127. display: flex;
  128. justify-content: space-between;
  129. align-items: center;
  130. div {
  131. font-size: 0.5rem;
  132. color: rgb(244, 136, 42);
  133. }
  134. }
  135. .bdy {
  136. height: 14.09rem;
  137. background-image: url('../../../assets/home/packUpback.png');
  138. background-size: 100% 100%;
  139. padding: 1.78rem 2.03rem;
  140. box-sizing: border-box;
  141. position: absolute;
  142. width: 94%;
  143. transform: translate(-50%,-50%);
  144. top: 40%;
  145. border-radius: 1rem;
  146. left: 50%;
  147. }
  148. .bdy_btn {
  149. margin-top: 2rem;
  150. display: flex;
  151. justify-content: center;
  152. align-items: center;
  153. }
  154. .select_list {
  155. border-radius: 0.38rem;
  156. border: 0.03rem solid #76CFFF;
  157. background-color: #00000000;
  158. outline: none;
  159. padding: 0 .625rem;
  160. box-sizing: border-box;
  161. color: #fff;
  162. width: 100%;
  163. height: 100%;
  164. font-weight: 500;
  165. letter-spacing: 0.1rem;
  166. }
  167. /deep/.inp {
  168. background: #032a64 !important;
  169. // opacity: 0.4;
  170. //border: none;
  171. color: #fff;
  172. }
  173. ::-webkit-input-placeholder {
  174. color: #ffffff84;
  175. /* 设置占位符文字的颜色 */
  176. }
  177. </style>