put-storage.vue 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  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 ss-p-y-24">
  45. <upload-image v-model="info.url" width="196rpx" height="196rpx"></upload-image>
  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">
  53. <u-input v-model="info.mark" placeholder="请输入备注信息" border="none"></u-input>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="btn-box">
  58. <view class="btn-cont" @click="isUnfold = !isUnfold">
  59. <text>{{isUnfold ? '收起' : '展开'}}</text>
  60. <u-icon :name="isUnfold?'arrow-up':'arrow-down'"></u-icon>
  61. </view>
  62. </view>
  63. <view class="scan-box">
  64. <view class="scan-box-l">
  65. <u-image width="120rpx" height="120rpx" src="@/static/image/zidong-saoma-img.png"></u-image>
  66. <view class="tips-text">扫描快速识别货物</view>
  67. <view class="tips-text2">
  68. <view class="radio-box"></view>
  69. <text>连续扫描</text>
  70. </view>
  71. </view>
  72. <view class="scan-box-r" @click="manualClick">
  73. <u-image width="120rpx" height="120rpx" src="@/static/image/shoudong-saoma-img.png"></u-image>
  74. <view class="tips-text">手动选择</view>
  75. </view>
  76. </view>
  77. <!-- 货物清单 -->
  78. <view class="cargo-list">
  79. <view class="cargo-list-title">
  80. <view>出库货物清单</view>
  81. <view class="cargo-list-title-tips">(轻触货物查看详情)</view>
  82. </view>
  83. <block v-for="(item,i) in goodsList" :key="i">
  84. <good-item :item="item" @toDetail="toDetail">
  85. <view class="num-box">
  86. <view class="num-box-text">已确认入库数量</view>
  87. <u-number-box v-model="value">
  88. <view slot="minus" class="minus">
  89. <u-icon name="minus" color="#0256FF" size="12"></u-icon>
  90. </view>
  91. <text slot="input" class="input">{{value}}</text>
  92. <view slot="plus" class="plus">
  93. <u-icon name="plus" color="#FFFFFF" size="12"></u-icon>
  94. </view>
  95. </u-number-box>
  96. </view>
  97. </good-item>
  98. </block>
  99. </view>
  100. </view>
  101. <view class="footer-box">
  102. <view class="footer-box-l">
  103. <view>货物种类:5种</view>
  104. <view>货物种数:25件</view>
  105. </view>
  106. <button class="submitBtn" @tap="submitClick">
  107. 提交
  108. </button>
  109. </view>
  110. <error-pop v-model="errorShow" @close="errorShow = false" @confirm="confirm" :content="popText.errorText"></error-pop>
  111. <success-pop v-model="successShow" @close="successShow = false" @backClick="backClick" :content="popText.success"></success-pop>
  112. <!-- 扫码之后弹窗 -->
  113. <scaned-pop v-model="scanedShow" @close="scanedShow = false" @confirm="scanConfirm"></scaned-pop>
  114. <goods-pop v-model="goodsShow" @close="goodsShow = false" type="caigou"></goods-pop>
  115. </view>
  116. </template>
  117. <script>
  118. import goodItem from '@/components/good-item/good-item.vue'
  119. import errorPop from '@/components/error-pop/error-pop.vue'
  120. import successPop from '@/components/success-pop/success-pop.vue'
  121. import scanedPop from '@/components/scaned-pop/scaned-pop.vue'
  122. import goodsPop from '@/components/goods-pop/goods-pop.vue'
  123. export default {
  124. components: {
  125. goodItem,
  126. errorPop,
  127. successPop,
  128. scanedPop,
  129. goodsPop
  130. },
  131. data() {
  132. return {
  133. popText:{
  134. errorText:'实际入库数量与应入库数量有差异,是否确认提交?',
  135. successText:'入库成功!'
  136. },
  137. goodsShow:false,
  138. scanedShow:false,
  139. errorShow:false,
  140. successShow:false,
  141. value:0,
  142. isUnfold: true, //是否展开
  143. info: {
  144. mark: '',
  145. url: ''
  146. },
  147. goodsList: [
  148. {
  149. src: '',
  150. name: '大童专用氨基酸洗发水',
  151. }, {
  152. src: '',
  153. name: '大童专用氨基酸洗发水',
  154. },
  155. ]
  156. }
  157. },
  158. methods:{
  159. submitClick() {
  160. },
  161. confirm() {
  162. console.log('确定')
  163. this.errorShow = false
  164. },
  165. backClick() {
  166. },
  167. // 扫码确认
  168. scanConfirm() {
  169. },
  170. manualClick() {
  171. this.goodsShow = true
  172. },
  173. toDetail() {
  174. uni.navigateTo({
  175. url:'/pages/goods/detail'
  176. })
  177. }
  178. }
  179. }
  180. </script>
  181. <style lang="scss" scoped>
  182. .deliver-page {
  183. min-height: 100vh;
  184. background-color: #F0F6FB;
  185. padding-bottom: 130rpx;
  186. .container_main {
  187. padding: 24rpx;
  188. .info-box {
  189. background-color: #fff;
  190. border-radius: 16rpx 16rpx 0 0;
  191. padding: 24rpx 24rpx 0 24rpx;
  192. .info-line {
  193. border-bottom: 1px solid #F4F4F4;
  194. min-height: 92rpx;
  195. color: #333;
  196. font-family: "PingFang SC";
  197. font-size: 28rpx;
  198. font-weight: 400;
  199. display: flex;
  200. align-items: center;
  201. &-label {
  202. width: 162rpx;
  203. }
  204. .must-box {
  205. color: #FF3B1D;
  206. }
  207. }
  208. }
  209. .min-height {
  210. height: 300rpx;
  211. overflow: hidden;
  212. }
  213. .btn-box {
  214. height: 112rpx;
  215. display: flex;
  216. align-items: center;
  217. justify-content: center;
  218. background-color: #fff;
  219. border-radius: 0 0 16rpx 16rpx;
  220. .btn-cont {
  221. display: flex;
  222. align-items: center;
  223. justify-content: center;
  224. width: 154rpx;
  225. height: 56rpx;
  226. border-radius: 120rpx;
  227. border: 1px solid #D9D9D9;
  228. color: #666;
  229. font-family: "PingFang SC";
  230. font-size: 28rpx;
  231. font-weight: 400;
  232. }
  233. }
  234. .scan-box {
  235. margin-top: 24rpx;
  236. padding: 24rpx 0;
  237. border-radius: 16rpx;
  238. background: #FFF;
  239. display: flex;
  240. .tips-text {
  241. color: #333;
  242. font-size: 28rpx;
  243. font-weight: 400;
  244. line-height: 48rpx;
  245. }
  246. .tips-text2 {
  247. color: #0256FF;
  248. font-size: 24rpx;
  249. font-weight: 400;
  250. display: flex;
  251. align-items: center;
  252. .radio-box {
  253. width: 32rpx;
  254. height: 32rpx;
  255. border-radius: 50%;
  256. border: 1px solid #D9D9D9;
  257. margin-right: 16rpx;
  258. }
  259. }
  260. .scan-box-l {
  261. width: 50%;
  262. display: flex;
  263. flex-direction: column;
  264. align-items: center;
  265. position: relative;
  266. &::after {
  267. content: '';
  268. display: block;
  269. width: 1px;
  270. height: 138rpx;
  271. background-color: #F4F4F4;
  272. position: absolute;
  273. top: 50%;
  274. right: 0;
  275. transform: translateY(-50%);
  276. }
  277. }
  278. .scan-box-r {
  279. width: 50%;
  280. display: flex;
  281. flex-direction: column;
  282. align-items: center;
  283. }
  284. }
  285. .cargo-list {
  286. padding: 24rpx 0;
  287. background-color: #fff;
  288. margin-top: 24rpx;
  289. border-radius: 16rpx;
  290. .cargo-list-title {
  291. font-family: "PingFang SC";
  292. font-size: 32rpx;
  293. font-style: normal;
  294. font-weight: bold;
  295. display: flex;
  296. align-items: center;
  297. position: relative;
  298. padding-left: 50rpx;
  299. &::after {
  300. content: '';
  301. display: block;
  302. width: 6rpx;
  303. height: 30rpx;
  304. border-radius: 100px;
  305. background: #0256FF;
  306. position: absolute;
  307. top: 50%;
  308. left: 24rpx;
  309. transform: translateY(-50%);
  310. }
  311. .cargo-list-title-tips {
  312. color: #0256FF;
  313. font-size: 24rpx;
  314. font-weight: 400;
  315. }
  316. }
  317. .num-box {
  318. display: flex;
  319. align-items: center;
  320. justify-content: space-between;
  321. padding: 0 48rpx 0 26rpx;
  322. .num-box-text {
  323. color: #666;
  324. font-family: "PingFang SC";
  325. font-size: 28rpx;
  326. font-weight: 400;
  327. }
  328. .input {
  329. width: 112rpx;
  330. text-align: center;
  331. border-bottom: 1px solid #0256FF;
  332. margin: 0 8rpx;
  333. }
  334. .minus {
  335. width: 40rpx;
  336. height: 40rpx;
  337. border-radius: 8rpx;
  338. border: 1px solid #0256FF;
  339. display: flex;
  340. align-items: center;
  341. justify-content: center;
  342. }
  343. .plus {
  344. width: 40rpx;
  345. height: 40rpx;
  346. border-radius: 8rpx;
  347. background-color: #0256FF;
  348. display: flex;
  349. align-items: center;
  350. justify-content: center;
  351. }
  352. }
  353. }
  354. }
  355. .footer-box {
  356. background-color: #fff;
  357. height: 126rpx;
  358. position: fixed;
  359. bottom: 0;
  360. left: 0;
  361. right: 0;
  362. display: flex;
  363. align-items: center;
  364. justify-content: space-between;
  365. padding: 0 40rpx 0 60rpx;
  366. .footer-box-l {
  367. color: #666;
  368. font-family: "PingFang SC";
  369. font-size: 28rpx;
  370. font-weight: 400;
  371. }
  372. .submitBtn {
  373. width: 362rpx;
  374. height: 76rpx;
  375. border-radius: 16rpx;
  376. background: #0256FF;
  377. color: #FFF;
  378. font-size: 28rpx;
  379. font-weight: 500;
  380. margin: 0;
  381. }
  382. }
  383. }
  384. </style>