delivery.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. <template>
  2. <view class="deliver-page">
  3. <u-navbar height="40px" title="货物出库" bgColor="#0256FF" :titleStyle="{color:'#fff'}" leftIconColor="#fff" autoBack
  4. placeholder>
  5. </u-navbar>
  6. <view class="container_main">
  7. <view class="info-box" :class="isUnfold ? '':'min-height'">
  8. <view class="info-line">
  9. <view class="info-line-label">
  10. <text>发出仓库</text>
  11. </view>
  12. <view class="info-line-value">
  13. 我的仓库
  14. </view>
  15. </view>
  16. <view class="info-line">
  17. <view class="info-line-label">
  18. <text>客户</text>
  19. </view>
  20. <view class="info-line-value">
  21. 快马一店
  22. </view>
  23. </view>
  24. <view class="info-line">
  25. <view class="info-line-label">
  26. <text>销售出库</text>
  27. </view>
  28. <view class="info-line-value">
  29. 我的仓库
  30. </view>
  31. </view>
  32. <view class="info-line">
  33. <view class="info-line-label">
  34. <text>出库日期</text>
  35. </view>
  36. <view class="info-line-value">
  37. 2025-04-03
  38. </view>
  39. </view>
  40. <view class="info-line">
  41. <view class="info-line-label">
  42. <text>配送地址</text>
  43. </view>
  44. <view class="info-line-value">
  45. 长沙市岳麓区
  46. </view>
  47. </view>
  48. <view class="info-line">
  49. <view class="info-line-label">
  50. <text>上传凭证</text>
  51. </view>
  52. <view class="info-line-value ss-p-y-24">
  53. <upload-image v-model="info.url" width="196rpx" height="196rpx"></upload-image>
  54. </view>
  55. </view>
  56. <view class="info-line">
  57. <view class="info-line-label">
  58. <text>备注信息</text>
  59. </view>
  60. <view class="info-line-value">
  61. <u-input v-model="info.mark" placeholder="请输入备注信息" border="none"></u-input>
  62. </view>
  63. </view>
  64. </view>
  65. <view class="btn-box">
  66. <view class="btn-cont" @click="isUnfold = !isUnfold">
  67. <text>{{isUnfold ? '收起' : '展开'}}</text>
  68. <u-icon :name="isUnfold?'arrow-up':'arrow-down'"></u-icon>
  69. </view>
  70. </view>
  71. <view class="scan-box">
  72. <view class="scan-box-l">
  73. <u-image width="120rpx" height="120rpx" src="@/static/image/zidong-saoma-img.png"></u-image>
  74. <view class="tips-text">扫描快速识别货物</view>
  75. <view class="tips-text2">
  76. <view class="radio-box"></view>
  77. <text>连续扫描</text>
  78. </view>
  79. </view>
  80. <view class="scan-box-r">
  81. <u-image width="120rpx" height="120rpx" src="@/static/image/shoudong-saoma-img.png"></u-image>
  82. <view class="tips-text">手动选择</view>
  83. </view>
  84. </view>
  85. <!-- 货物清单 -->
  86. <view class="cargo-list">
  87. <view class="cargo-list-title">
  88. <view>出库货物清单</view>
  89. <view class="cargo-list-title-tips">(轻触货物查看详情)</view>
  90. </view>
  91. <block v-for="(item,i) in goodsList" :key="i">
  92. <good-item :item="item">
  93. <view class="num-box">
  94. <view class="num-box-text">已确认拣货数量</view>
  95. <u-number-box v-model="value">
  96. <view slot="minus" class="minus">
  97. <u-icon name="minus" color="#0256FF" size="12"></u-icon>
  98. </view>
  99. <text slot="input" class="input">{{value}}</text>
  100. <view slot="plus" class="plus">
  101. <u-icon name="plus" color="#FFFFFF" size="12"></u-icon>
  102. </view>
  103. </u-number-box>
  104. </view>
  105. </good-item>
  106. </block>
  107. </view>
  108. </view>
  109. <view class="footer-box">
  110. <view class="footer-box-l">
  111. <view>货物种类:5种</view>
  112. <view>货物种数:25件</view>
  113. </view>
  114. <button class="submitBtn" @tap="submitClick">
  115. 提交
  116. </button>
  117. </view>
  118. </view>
  119. </template>
  120. <script>
  121. import goodItem from '@/components/good-item/good-item.vue'
  122. export default {
  123. components: {
  124. goodItem
  125. },
  126. data() {
  127. return {
  128. value:0,
  129. isUnfold: true, //是否展开
  130. info: {
  131. mark: '',
  132. url: ''
  133. },
  134. goodsList: [{
  135. src: '',
  136. name: '大童专用氨基酸洗发水',
  137. }, {
  138. src: '',
  139. name: '大童专用氨基酸洗发水',
  140. }]
  141. }
  142. },
  143. methods:{
  144. submitClick() {
  145. }
  146. }
  147. }
  148. </script>
  149. <style lang="scss" scoped>
  150. .deliver-page {
  151. min-height: 100vh;
  152. background-color: #F0F6FB;
  153. padding-bottom: 130rpx;
  154. .container_main {
  155. padding: 24rpx;
  156. .info-box {
  157. background-color: #fff;
  158. border-radius: 16rpx 16rpx 0 0;
  159. padding: 24rpx 24rpx 0 24rpx;
  160. .info-line {
  161. border-bottom: 1px solid #F4F4F4;
  162. min-height: 92rpx;
  163. color: #333;
  164. font-family: "PingFang SC";
  165. font-size: 28rpx;
  166. font-weight: 400;
  167. display: flex;
  168. align-items: center;
  169. &-label {
  170. width: 162rpx;
  171. }
  172. .must-box {
  173. color: #FF3B1D;
  174. }
  175. }
  176. }
  177. .min-height {
  178. height: 300rpx;
  179. overflow: hidden;
  180. }
  181. .btn-box {
  182. height: 112rpx;
  183. display: flex;
  184. align-items: center;
  185. justify-content: center;
  186. background-color: #fff;
  187. border-radius: 0 0 16rpx 16rpx;
  188. .btn-cont {
  189. display: flex;
  190. align-items: center;
  191. justify-content: center;
  192. width: 154rpx;
  193. height: 56rpx;
  194. border-radius: 120rpx;
  195. border: 1px solid #D9D9D9;
  196. color: #666;
  197. font-family: "PingFang SC";
  198. font-size: 28rpx;
  199. font-weight: 400;
  200. }
  201. }
  202. .scan-box {
  203. margin-top: 24rpx;
  204. padding: 24rpx 0;
  205. border-radius: 16rpx;
  206. background: #FFF;
  207. display: flex;
  208. .tips-text {
  209. color: #333;
  210. font-size: 28rpx;
  211. font-weight: 400;
  212. line-height: 48rpx;
  213. }
  214. .tips-text2 {
  215. color: #0256FF;
  216. font-size: 24rpx;
  217. font-weight: 400;
  218. display: flex;
  219. align-items: center;
  220. .radio-box {
  221. width: 32rpx;
  222. height: 32rpx;
  223. border-radius: 50%;
  224. border: 1px solid #D9D9D9;
  225. margin-right: 16rpx;
  226. }
  227. }
  228. .scan-box-l {
  229. width: 50%;
  230. display: flex;
  231. flex-direction: column;
  232. align-items: center;
  233. position: relative;
  234. &::after {
  235. content: '';
  236. display: block;
  237. width: 1px;
  238. height: 138rpx;
  239. background-color: #F4F4F4;
  240. position: absolute;
  241. top: 50%;
  242. right: 0;
  243. transform: translateY(-50%);
  244. }
  245. }
  246. .scan-box-r {
  247. width: 50%;
  248. display: flex;
  249. flex-direction: column;
  250. align-items: center;
  251. }
  252. }
  253. .cargo-list {
  254. padding: 24rpx 0;
  255. background-color: #fff;
  256. margin-top: 24rpx;
  257. border-radius: 16rpx;
  258. .cargo-list-title {
  259. font-family: "PingFang SC";
  260. font-size: 32rpx;
  261. font-style: normal;
  262. font-weight: bold;
  263. display: flex;
  264. align-items: center;
  265. position: relative;
  266. padding-left: 50rpx;
  267. &::after {
  268. content: '';
  269. display: block;
  270. width: 6rpx;
  271. height: 30rpx;
  272. border-radius: 100px;
  273. background: #0256FF;
  274. position: absolute;
  275. top: 50%;
  276. left: 24rpx;
  277. transform: translateY(-50%);
  278. }
  279. .cargo-list-title-tips {
  280. color: #0256FF;
  281. font-size: 24rpx;
  282. font-weight: 400;
  283. }
  284. }
  285. .num-box {
  286. display: flex;
  287. align-items: center;
  288. justify-content: space-between;
  289. padding: 0 48rpx 0 26rpx;
  290. .num-box-text {
  291. color: #666;
  292. font-family: "PingFang SC";
  293. font-size: 28rpx;
  294. font-weight: 400;
  295. }
  296. .input {
  297. width: 112rpx;
  298. text-align: center;
  299. border-bottom: 1px solid #0256FF;
  300. margin: 0 8rpx;
  301. }
  302. .minus {
  303. width: 40rpx;
  304. height: 40rpx;
  305. border-radius: 8rpx;
  306. border: 1px solid #0256FF;
  307. display: flex;
  308. align-items: center;
  309. justify-content: center;
  310. }
  311. .plus {
  312. width: 40rpx;
  313. height: 40rpx;
  314. border-radius: 8rpx;
  315. background-color: #0256FF;
  316. display: flex;
  317. align-items: center;
  318. justify-content: center;
  319. }
  320. }
  321. }
  322. }
  323. .footer-box {
  324. background-color: #fff;
  325. height: 126rpx;
  326. position: fixed;
  327. bottom: 0;
  328. left: 0;
  329. right: 0;
  330. display: flex;
  331. align-items: center;
  332. justify-content: space-between;
  333. padding: 0 40rpx 0 60rpx;
  334. .footer-box-l {
  335. color: #666;
  336. font-family: "PingFang SC";
  337. font-size: 28rpx;
  338. font-weight: 400;
  339. }
  340. .submitBtn {
  341. width: 362rpx;
  342. height: 76rpx;
  343. border-radius: 16rpx;
  344. background: #0256FF;
  345. color: #FFF;
  346. font-size: 28rpx;
  347. font-weight: 500;
  348. margin: 0;
  349. }
  350. }
  351. }
  352. </style>