deliveryFrom.vue 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  1. <template>
  2. <view >
  3. <u-navbar title="出库申请"></u-navbar>
  4. <!-- 出库单状态 -->
  5. <view class="container">
  6. <!-- 出库单详情 -->
  7. <view class="details">
  8. <view class="item">
  9. <view class="name">
  10. 所属项目
  11. </view>
  12. <view class="value">
  13. <u-input v-model="form.projectName" placeholder="请输入所属项目" type="text" />
  14. </view>
  15. </view>
  16. <view class="item">
  17. <view class="name">
  18. 需求时间
  19. </view>
  20. <view class="value">
  21. <u-input v-model="form.needTime" placeholder="请输入需求时间" type="number" >
  22. <span style="margin-left: 10rpx;">天</span>
  23. </u-input>
  24. </view>
  25. </view>
  26. <view class="item">
  27. <view class="name">
  28. 使用周期至
  29. </view>
  30. <view class="value">
  31. <u-calendar v-model="show" mode="date" max-date="2099-01-01" @change="change"></u-calendar>
  32. <u-input v-model="endTime" @click="show=true" type="select" />
  33. </view>
  34. </view>
  35. </view>
  36. <!-- 出库设备清单 -->
  37. <view class="list">
  38. <view class="list-head">
  39. <view class="title">
  40. 出库设备清单
  41. </view>
  42. <view class="amount add" @click="showpopup=true">
  43. <u-icon name="plus-circle"></u-icon>添加设备
  44. </view>
  45. </view>
  46. <!-- 清单信息 -->
  47. <view class="list-infos" v-for="(item,index) in list" :key="index" >
  48. <view class="infos-head">
  49. <view class="name">
  50. 接地线 220kV 无杆
  51. </view>
  52. <view class="state">
  53. 预出库 <text>2</text>
  54. </view>
  55. </view>
  56. <view class="infos">
  57. <view class="infos-1">
  58. <view class="infos-item">
  59. <view class="item-name">
  60. 型号:
  61. </view>
  62. <view class="item-value">
  63. GZYV GYVZ-50
  64. </view>
  65. </view>
  66. <view class="infos-item">
  67. <view class="item-name">
  68. 单位:
  69. </view>
  70. <view class="item-value">
  71. </view>
  72. </view>
  73. </view>
  74. <view class="infos-2">
  75. <view class="infos-item">
  76. <view class="item-name">
  77. 单位:
  78. </view>
  79. <view class="item-value">
  80. </view>
  81. </view>
  82. <view class="infos-item">
  83. <view class="item-name">
  84. 库存:
  85. </view>
  86. <view class="item-value">
  87. 20
  88. </view>
  89. </view>
  90. </view>
  91. </view>
  92. </view>
  93. </view>
  94. </view>
  95. <u-popup v-model="showpopup" mode="bottom"
  96. border-radius="14"
  97. :closeable="true" >
  98. <view class="showpopup">添加设备</view>
  99. <!-- 搜索 -->
  100. <view class="search" >
  101. <view class="search-box">
  102. <u-search placeholder="搜索设备名称或型号" :show-action="false">
  103. </u-search>
  104. <view class="search-btn">
  105. <view class="text">
  106. 搜索
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. <scroll-view scroll-y="true" style="height: 800rpx;">
  112. <equipmentRetrieval :iscomponents="1"></equipmentRetrieval>
  113. </scroll-view>
  114. </u-popup>
  115. <!-- 确认出库 -->
  116. <view class="bottom" @click="submit()" >
  117. <button>提交出库单</button>
  118. </view>
  119. </view>
  120. </template>
  121. <script>
  122. import equipmentRetrieval from "@/pages/index/equipmentRetrieval/equipmentRetrieval"
  123. import * as API from '@/apis/pagejs/projectDepartment.js'
  124. export default {
  125. data() {
  126. return {
  127. form:{},
  128. show:false,
  129. showpopup:false,
  130. endTime:'',
  131. list:[]
  132. }
  133. },
  134. components:{
  135. equipmentRetrieval
  136. },
  137. computed:{
  138. },
  139. methods:{
  140. change(e){
  141. this.form.endTime=e.result;
  142. this.endTime=e.year+"年"+e.month+"月"+e.day+"日"
  143. },
  144. submit(){
  145. }
  146. }
  147. }
  148. </script>
  149. <style scoped lang="scss">
  150. // 搜索
  151. .search {
  152. padding: 12rpx 24rpx;
  153. display: flex;
  154. border-radius: 8px;
  155. overflow: hidden;
  156. .search-box {
  157. display: flex;
  158. border-radius: 8px;
  159. overflow: hidden;
  160. }
  161. /deep/.u-search {
  162. width: 630rpx;
  163. margin: auto !important;
  164. position: relative;
  165. flex: 0;
  166. margin: 0 !important;
  167. height: 64rpx !important;
  168. }
  169. /deep/.u-content {
  170. width: 430px;
  171. border-radius: 0px !important;
  172. height: 64rpx !important;
  173. }
  174. /deep/.u-icon--right {
  175. margin-right: 16rpx;
  176. }
  177. .search-btn {
  178. width: 100rpx;
  179. height: 64rpx;
  180. background-color: #f2f2f2;
  181. .text {
  182. height: 40rpx;
  183. margin: 12rpx 0;
  184. border-left: 1px solid #999999;
  185. font-family: Microsoft Yahei;
  186. text-align: center;
  187. color: rgba(16, 98, 213, 1);
  188. font-size: 28rpx;
  189. }
  190. }
  191. }
  192. .showpopup{
  193. font-size: 36rpx;
  194. text-align: center;
  195. margin: 32rpx;
  196. }
  197. page {
  198. padding-bottom: 200rpx;
  199. }
  200. // 出库单状态
  201. .head {
  202. background-color: #fff;
  203. padding: 24rpx 32rpx;
  204. display: flex;
  205. align-items: center;
  206. color: #101010;
  207. font-size: 32rpx;
  208. .photo {
  209. width: 84rpx;
  210. height: 84rpx;
  211. border-radius: 100rpx;
  212. img {
  213. width: 100%;
  214. height: 100%;
  215. overflow: hidden;
  216. }
  217. }
  218. .name {
  219. color: #101010;
  220. font-size: 32rpx;
  221. margin-right: 8rpx;
  222. margin-left: 24rpx;
  223. }
  224. .submit {
  225. text {
  226. color: #3385FF;
  227. }
  228. }
  229. .state {
  230. line-height: 48rpx;
  231. padding: 0 24rpx;
  232. border-radius: 50px;
  233. background-color: rgba(255, 255, 255, 1);
  234. color: rgba(51, 133, 255, 1);
  235. font-size: 12px;
  236. text-align: center;
  237. font-family: Arial;
  238. border: 1px solid rgba(51, 133, 255, 1);
  239. margin-left: auto;
  240. }
  241. }
  242. // 出库单详情
  243. .details {
  244. background-color: #fff;
  245. margin-top: 24rpx;
  246. padding: 0 32rpx;
  247. .item {
  248. display: flex;
  249. justify-content: space-between;
  250. padding: 22rpx 0;
  251. border-bottom: 1px solid rgba(244, 244, 244, 1);
  252. .name {
  253. color: rgba(119, 119, 119, 1);
  254. }
  255. .value {
  256. color: #101010;
  257. }
  258. }
  259. }
  260. // 出库单列表
  261. .list {
  262. background-color: #fff;
  263. margin-top: 24rpx;
  264. padding: 22rpx 32rpx;
  265. .list-head {
  266. display: flex;
  267. justify-content: space-between;
  268. align-items: center;
  269. .title {
  270. color: #333333;
  271. font-size: 32rpx
  272. }
  273. .amount.add{
  274. color:#45BA45 ;
  275. }
  276. .amount {
  277. font-size: 24rpx;
  278. text {
  279. color: #3385FF;
  280. }
  281. /deep/.u-icon--right {
  282. margin-left: 8rpx;
  283. }
  284. }
  285. }
  286. // 清单信息
  287. .list-infos {
  288. border-radius: 8px;
  289. background-color: #F5F6F9;
  290. margin-top: 24rpx;
  291. padding: 24rpx;
  292. .infos-head {
  293. display: flex;
  294. justify-content: space-between;
  295. align-items: center;
  296. margin-bottom: 24rpx;
  297. .name {
  298. color: rgba(51, 51, 51, 1);
  299. font-size: 32rpx;
  300. }
  301. .state {
  302. color: rgba(0, 81, 255, 1);
  303. }
  304. }
  305. .infos {
  306. margin-top: 16rpx;
  307. display: flex;
  308. color: #777777;
  309. font-size: 24rpx;
  310. .infos-1 {
  311. margin-right: 68rpx;
  312. }
  313. .infos-item {
  314. display: flex;
  315. margin-bottom: 8rpx;
  316. }
  317. }
  318. }
  319. }
  320. // 流程
  321. .process {
  322. background-color: #fff;
  323. margin-top: 24rpx;
  324. padding: 24rpx 32rpx;
  325. .title {
  326. color: rgba(51, 51, 51, 1);
  327. font-size: 32rpx;
  328. }
  329. .u-time-axis-item{
  330. //margin-bottom: 76rpx;
  331. }
  332. .u-time-axis {
  333. //padding: 18rpx 40rpx;
  334. }
  335. .u-node {
  336. width: 18rpx;
  337. height: 18rpx;
  338. border-radius: 100rpx !important;
  339. display: flex;
  340. justify-content: center;
  341. align-items: center;
  342. background: #d0d0d0;
  343. }
  344. .u-order{
  345. margin-bottom: 32rpx;
  346. }
  347. .u-order-title {
  348. color: #333333;
  349. font-weight: bold;
  350. font-size: 32rpx;
  351. }
  352. .u-order-desc {
  353. margin-bottom: 16rpx;
  354. display: flex;
  355. justify-content: space-between;
  356. align-items: center;
  357. .level {
  358. color: #333333;
  359. font-size: 32rpx;
  360. font-weight: bold;
  361. }
  362. .date {
  363. color: rgba(119, 119, 119, 1);
  364. }
  365. .state {
  366. color: rgba(255, 121, 0, 1);
  367. }
  368. }
  369. .u-order-time {
  370. width: 90rpx;
  371. color: #777777;
  372. font-size: 28rpx;
  373. margin-top: 16rpx;
  374. display: flex;
  375. flex-direction: column;
  376. align-items: center;
  377. .photo {
  378. width: 56rpx;
  379. height: 56rpx;
  380. border-radius: 100px;
  381. margin-bottom: 4rpx;
  382. img {
  383. width: 100%;
  384. height: 100%;
  385. overflow: hidden;
  386. position: relative;
  387. }
  388. }
  389. .confirm {
  390. position: absolute;
  391. top: 46rpx;
  392. left: 56rpx;
  393. }
  394. .name {
  395. color: rgba(51, 51, 51, 1);
  396. font-size: 24rpx;
  397. }
  398. }
  399. }
  400. // .u-time-axis{
  401. // .u-time-axis-item:last-of-type{
  402. // margin-bottom: 0;
  403. // }
  404. // }
  405. // 确认出库
  406. .bottom{
  407. background-color: #fff;
  408. margin-top: 44rpx;
  409. padding: 16rpx 32rpx;
  410. z-index: 999;
  411. position: fixed;
  412. left: 0;
  413. right: 0;
  414. bottom: 0;
  415. uni-button{
  416. border-radius: 8px;
  417. background: linear-gradient(180deg, rgba(22,119,255,1) 0%,rgba(16,98,213,1) 100%);
  418. color: rgba(255, 255, 255, 1);
  419. font-size: 32rpx;
  420. line-height: 88rpx;
  421. }
  422. }
  423. </style>