regStock.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <template>
  2. <view class="mainBox">
  3. <uni-nav-bar fixed="true" statusBar="true" left-icon="back" title="新增设备入库单" @clickLeft="back">
  4. <!--右菜单-->
  5. <template slot="float">
  6. <view class="nav-icon-caozuo rightNav" @click="getsure"><u-button type="success" size="small" class="u-reset-button" text="确定"></u-button></view>
  7. </template>
  8. </uni-nav-bar>
  9. <u-cell-group>
  10. <u-cell title="仓库" value="备品备件仓" :isLink="true"></u-cell>
  11. <u-cell title="来源单据" value="无" :isLink="true"></u-cell>
  12. <u-cell title="入库登记人" value="张三" :isLink="true"></u-cell>
  13. <u-cell title="送货人" value="李四" :isLink="true"></u-cell>
  14. <u-cell title="送货人联系方式" value="13800138000" :isLink="true"></u-cell>
  15. </u-cell-group>
  16. <u-collapse class="cLine" :value="['detail']">
  17. <u-collapse-item title="附件" name="">
  18. <view class="picList">
  19. <u--image :showLoading="true" :src="src" width="50px" height="50px" @click="viewImage"></u--image>
  20. <u--image :showLoading="true" :src="src" width="50px" height="50px" @click="viewImage"></u--image>
  21. <u--image :showLoading="true" :src="src" width="50px" height="50px" @click="viewImage"></u--image>
  22. </view>
  23. </u-collapse-item>
  24. <u-collapse-item title="描述" name="">
  25. <text class="u-collapse-content">涵盖uniapp各个方面,给开发者方向指导和设计理念,让您茅塞顿开,一马平川</text>
  26. </u-collapse-item>
  27. <u-collapse-item title="明细" name="detail">
  28. <view class="listBox">
  29. <view class="listTit">
  30. <view style="display:inline-block;"><u-tag text="按件" size="mini" shape="circle" type="success"></u-tag></view>
  31. <view class="name">电压测量仪-AR97</view>
  32. <view class="weight">1件</view>
  33. <view class="delete"><uni-icons custom-prefix="iconfont" type="icon-shanchu" size="24" color="#fa3534"></uni-icons></view>
  34. </view>
  35. <view class="listCont">
  36. <view class="item"><text>设备编码:</text>3099193991</view>
  37. <view class="item"><text>设备类型:</text>备品备件</view>
  38. <view class="item"><text>存放货位:</text>CO-1-1 #1</view>
  39. <view class="item"><text>包装单位:</text>无</view>
  40. </view>
  41. </view>
  42. <view class="listBox">
  43. <view class="listTit">
  44. <view style="display:inline-block;"><u-tag text="按件" size="mini" shape="circle" type="success"></u-tag></view>
  45. <view class="name">美孚润滑油-U7</view>
  46. <view class="weight">0.45 L</view>
  47. <view class="delete"><uni-icons custom-prefix="iconfont" type="icon-shanchu" size="24" color="#fa3534"></uni-icons></view>
  48. </view>
  49. <view class="listCont">
  50. <view class="item"><text>设备编码:</text>3912838881</view>
  51. <view class="item"><text>设备类型:</text>备品备件</view>
  52. <view class="item"><text>存放货位:</text>CO-1-1 #1</view>
  53. <view class="item"><text>包装单位:</text>500ml桶</view>
  54. </view>
  55. </view>
  56. <view class="listBox">
  57. <view class="listTit">
  58. <view style="display:inline-block;"><u-tag text="按件" size="mini" shape="circle" type="primary"></u-tag></view>
  59. <view class="name">十字起-大号</view>
  60. <view class="weight">3件</view>
  61. <view class="delete"><uni-icons custom-prefix="iconfont" type="icon-shanchu" size="24" color="#fa3534"></uni-icons></view>
  62. </view>
  63. <view class="listCont">
  64. <view class="item"><text>设备编码:</text>12838881</view>
  65. <view class="item"><text>设备类型:</text>备品备件</view>
  66. <view class="item"><text>存放货位:</text>CB-3-4 #1</view>
  67. <view class="item"><text>包装单位:</text>500ml桶</view>
  68. </view>
  69. </view>
  70. <view class="listBox">
  71. <view class="listTit">
  72. <view style="display:inline-block;"><u-tag text="按件" size="mini" shape="circle" type="success"></u-tag></view>
  73. <view class="name">钢化螺丝-5mm</view>
  74. <view class="weight">140颗</view>
  75. <view class="delete"><uni-icons custom-prefix="iconfont" type="icon-shanchu" size="24" color="#fa3534"></uni-icons></view>
  76. </view>
  77. <view class="listCont">
  78. <view class="item"><text>设备编码:</text>312838881</view>
  79. <view class="item"><text>设备类型:</text>备品备件</view>
  80. <view class="item"><text>存放货位:</text>CB-3-4 #2</view>
  81. <view class="item"><text>包装单位:</text>200装袋</view>
  82. </view>
  83. </view>
  84. </u-collapse-item>
  85. </u-collapse>
  86. <view class="footBox">
  87. <view class="reg" style="width:100%;"><uni-icons custom-prefix="iconfont" type="icon-shixiangxinzeng" size="20" color="#fff"></uni-icons> 添加入库明细</view>
  88. </view>
  89. </view>
  90. </template>
  91. <script>
  92. export default {
  93. data() {
  94. return {
  95. src:'../../../static/logo.png',
  96. }
  97. },
  98. methods: {
  99. //预览附件
  100. viewImage(){
  101. uni.previewImage({
  102. current:0,
  103. urls: [this.src],
  104. });
  105. },
  106. }
  107. }
  108. </script>
  109. <style lang="scss" scoped>
  110. .mainBox{
  111. padding-bottom: 120rpx;
  112. }
  113. .picList{
  114. display: flex;
  115. align-items: center;
  116. justify-items: flex-start;
  117. flex-wrap: wrap;
  118. }
  119. /deep/.picList .u-image{
  120. margin-right:10rpx;
  121. margin-bottom: 10rpx;
  122. }
  123. /deep/.cLine .u-line:nth-child(1){
  124. border-bottom: none !important;
  125. }
  126. .footBox{
  127. position: fixed;
  128. left:0px;
  129. bottom: 0px;
  130. height: 100rpx;
  131. width: 100%;
  132. display: flex;
  133. align-items: center;
  134. justify-content: space-between;
  135. view{
  136. width:50%;
  137. height: 100%;
  138. text-align: center;
  139. color: #fff;
  140. display: flex;
  141. align-items: center;
  142. justify-content: center;
  143. }
  144. .reg{
  145. background: $u-success-dark;
  146. }
  147. .uni-icons{margin-right: 8rpx !important;}
  148. }
  149. .listBox{
  150. padding: 20rpx 0;
  151. border-bottom:1px #f2f2f2 solid;
  152. .listTit{
  153. display: flex;
  154. align-items: center;
  155. .name{
  156. margin-left: 10px;
  157. }
  158. .weight {
  159. font-size: $uni-font-size-base;
  160. margin-left: auto;
  161. margin-right: 60rpx;
  162. position: relative;
  163. }
  164. .weight::after{
  165. position: absolute;
  166. right:-30rpx;
  167. top:50%;
  168. content: '';
  169. background: #eee;
  170. width: 1px;
  171. height: 28rpx;
  172. margin-top: -14rpx;
  173. }
  174. }
  175. .listCont{
  176. display: flex;
  177. align-items: center;
  178. flex-wrap: wrap;
  179. margin-top: 15px;
  180. .item{
  181. width:50%;
  182. font-size: $uni-font-size-sm;
  183. line-height: 48rpx;
  184. overflow: hidden;
  185. white-space: nowrap;
  186. text-overflow: ellipsis;
  187. -o-text-overflow:ellipsis;
  188. color: #000;
  189. }
  190. .item text{color: #666;}
  191. }
  192. }
  193. .listBox:last-child{
  194. border:none !important;
  195. }
  196. .saveBtn{
  197. width:50%;
  198. margin:40rpx auto;
  199. }
  200. </style>