receive.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. <template>
  2. <view class="content">
  3. <view class="box">
  4. <view class="foreign" v-if="type == 1">
  5. <view class="foreign-item">
  6. <view class="foreign-font">
  7. 外发合作公司
  8. </view>
  9. <picker @change="bindPickerCompany" :range="companylist" class="input">
  10. <text>{{ company }}</text>
  11. </picker>
  12. </view>
  13. <view class="foreign-item">
  14. <view class="foreign-font">
  15. 到货时间
  16. </view>
  17. <view class="input">
  18. <view class="uni-list-cell">
  19. <picker mode="date" :value="date" @change="bindDateChange">
  20. <view class="uni-input">{{date}}</view>
  21. </picker>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="foreign-item">
  26. <view class="foreign-font">
  27. 外发费用
  28. </view>
  29. <input class="input" type="text" v-model="money" placeholder="请填写金额">
  30. </view>
  31. <view class="foreign-item">
  32. <view class="foreign-font">
  33. 备注
  34. </view>
  35. <input class="input" type="text" v-model="bz" placeholder="请填写备注">
  36. </view>
  37. </view>
  38. <view class="title" @click="navTo('/pages/scrap/gxlist')">
  39. <view class="title-main">
  40. <text class="gray">工序:</text>(下料,20件,¥100)(下料,20件,¥100)(下料,20件,¥100)(下料,20件,¥100)
  41. </view>
  42. <view class="title-money">
  43. 总计:<text class="red">¥500</text>
  44. <image class="jt" src="../../static/img/jt.png" mode=""></image>
  45. </view>
  46. </view>
  47. <view class="main " v-for="(item,index) in list">
  48. <view class="main-top">
  49. <image class="main-icon" src="../../static/icon/order.png" mode=""></image>
  50. <view class="main-font">
  51. {{item.name}}
  52. </view>
  53. </view>
  54. <view class="main-bottom flex">
  55. <view class="num">
  56. 数量:
  57. </view>
  58. <view class="main-input">
  59. <input type="number" v-model="item.number" placeholder="请填写数量">
  60. </view>
  61. </view>
  62. </view>
  63. <view class="all flex">
  64. <view class="all-font">
  65. 订单总金额:
  66. </view>
  67. <view class="all-num">
  68. ¥1000
  69. </view>
  70. </view>
  71. <view class="btn">
  72. 确认领取
  73. </view>
  74. </view>
  75. </view>
  76. </template>
  77. <script>
  78. export default {
  79. data() {
  80. return {
  81. list: [{
  82. name: '规格1(黄色,37码)',
  83. number: '',
  84. }, {
  85. name: '规格2(黄色,37码)',
  86. number: '',
  87. }, {
  88. name: '规格3(黄色,37码)',
  89. number: '',
  90. }, {
  91. name: '规格4(黄色,37码)',
  92. number: '',
  93. }, {
  94. name: '规格5(黄色,37码)',
  95. number: '',
  96. }, {
  97. name: '规格6(黄色,37码)',
  98. number: '',
  99. }, {
  100. name: '规格7(黄色,37码)',
  101. number: '',
  102. }, {
  103. name: '规格8(黄色,37码)',
  104. number: '',
  105. }],
  106. type: 0,
  107. companylist: ['尚宇公司', '浙江六牛'],
  108. company: '请选择外发公司',
  109. date: '请选择日期',
  110. money: '',
  111. bz: ''
  112. };
  113. },
  114. onLoad(option) {
  115. if (option.type) {
  116. this.type = option.type
  117. uni.setNavigationBarTitle({
  118. title: '订单外发'
  119. });
  120. }
  121. },
  122. onShow() {},
  123. onReachBottom() {},
  124. onReady() {},
  125. methods: {
  126. navTo(url) {
  127. uni.navigateTo({
  128. url
  129. })
  130. },
  131. bindPickerCompany: function(e) {
  132. this.company = this.companylist[e.target.value];
  133. },
  134. bindDateChange: function(e) {
  135. this.date = e.detail.value;
  136. console.log(e);
  137. },
  138. }
  139. };
  140. </script>
  141. <style lang="scss">
  142. page,
  143. .content {
  144. min-height: 100%;
  145. height: auto;
  146. }
  147. .box {
  148. background: #FFFFFF;
  149. margin-top: 20rpx;
  150. padding: 32rpx 0;
  151. }
  152. .foreign {
  153. margin: 20rpx auto 0;
  154. width: 702rpx;
  155. background: #FFFFFF;
  156. border: 2px solid #EAECED;
  157. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(50, 50, 52, 0.06);
  158. border-radius: 20rpx;
  159. .foreign-item {
  160. padding: 26rpx 18rpx 20rpx;
  161. border-bottom: 1px solid #f5f5f5;
  162. display: flex;
  163. justify-content: space-between;
  164. align-items: center;
  165. .foreign-font {
  166. font-size: 30rpx;
  167. font-family: PingFang SC;
  168. font-weight: 500;
  169. color: #222222;
  170. }
  171. .input {
  172. text-align: right;
  173. padding: 0 20rpx;
  174. font-size: 30rpx;
  175. font-family: PingFang SC;
  176. font-weight: 400;
  177. color: #999999;
  178. }
  179. }
  180. }
  181. .title {
  182. padding: 20rpx;
  183. margin: 20rpx auto 0;
  184. width: 700rpx;
  185. background: #FFFFFF;
  186. border: 2px solid #EAECED;
  187. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(50, 50, 52, 0.06);
  188. border-radius: 20rpx;
  189. .title-main {
  190. font-size: 28rpx;
  191. font-family: PingFang SC;
  192. font-weight: 500;
  193. color: #333333;
  194. .gray {
  195. color: #666666;
  196. }
  197. }
  198. .title-money {
  199. text-align: right;
  200. font-size: 28rpx;
  201. font-family: PingFang SC;
  202. font-weight: bold;
  203. color: #333333;
  204. .red {
  205. display: inline-block;
  206. margin: 0 20rpx;
  207. color: #FF4C4C;
  208. }
  209. .jt {
  210. width: 13rpx;
  211. height: 20rpx;
  212. }
  213. }
  214. }
  215. .main {
  216. margin: 20rpx auto 0;
  217. padding: 20rpx;
  218. width: 700rpx;
  219. background: #FFFFFF;
  220. border: 2px solid #EAECED;
  221. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(50, 50, 52, 0.06);
  222. border-radius: 20rpx;
  223. .main-top {
  224. display: flex;
  225. align-items: center;
  226. padding-bottom: 16rpx;
  227. border-bottom: 1px solid #EAECED;
  228. .main-icon {
  229. width: 32rpx;
  230. height: 37rpx;
  231. }
  232. .main-font {
  233. margin-left: 10rpx;
  234. font-size: 30rpx;
  235. font-family: PingFang SC;
  236. font-weight: bold;
  237. color: #333333;
  238. }
  239. }
  240. .main-bottom {
  241. padding-top: 20rpx;
  242. .num {
  243. font-size: 28rpx;
  244. font-family: PingFang SC;
  245. font-weight: 500;
  246. color: #666666;
  247. }
  248. .main-input {
  249. text-align: right;
  250. font-size: 28rpx;
  251. font-family: PingFang SC;
  252. font-weight: 500;
  253. color: #999999;
  254. }
  255. }
  256. }
  257. .all {
  258. margin: 20rpx auto 0;
  259. padding: 20rpx;
  260. width: 700rpx;
  261. background: #FFFFFF;
  262. border: 2px solid #EAECED;
  263. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(50, 50, 52, 0.06);
  264. border-radius: 20rpx;
  265. .all-font {
  266. font-size: 32rpx;
  267. font-family: PingFang SC;
  268. font-weight: bold;
  269. color: #323333;
  270. }
  271. .all-num {
  272. font-size: 32rpx;
  273. font-family: PingFang SC;
  274. font-weight: bold;
  275. color: #FF4C4C;
  276. }
  277. }
  278. .btn {
  279. text-align: center;
  280. margin: 100rpx auto 0;
  281. width: 622rpx;
  282. height: 85rpx;
  283. background: #069CFA;
  284. border-radius: 15rpx;
  285. line-height: 85rpx;
  286. font-size: 32rpx;
  287. font-family: PingFang SC;
  288. font-weight: bold;
  289. color: #FFFFFF;
  290. }
  291. </style>