regStock.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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. getsure(){
  108. },
  109. }
  110. }
  111. </script>
  112. <style lang="scss" scoped>
  113. .mainBox{
  114. padding-bottom: 120rpx;
  115. }
  116. .picList{
  117. display: flex;
  118. align-items: center;
  119. justify-items: flex-start;
  120. flex-wrap: wrap;
  121. }
  122. /deep/.picList .u-image{
  123. margin-right:10rpx;
  124. margin-bottom: 10rpx;
  125. }
  126. /deep/.cLine .u-line:nth-child(1){
  127. border-bottom: none !important;
  128. }
  129. .footBox{
  130. position: fixed;
  131. left:0px;
  132. bottom: 0px;
  133. height: 100rpx;
  134. width: 100%;
  135. display: flex;
  136. align-items: center;
  137. justify-content: space-between;
  138. view{
  139. width:50%;
  140. height: 100%;
  141. text-align: center;
  142. color: #fff;
  143. display: flex;
  144. align-items: center;
  145. justify-content: center;
  146. }
  147. .reg{
  148. background: $u-success-dark;
  149. }
  150. .uni-icons{margin-right: 8rpx !important;}
  151. }
  152. .listBox{
  153. padding: 20rpx 0;
  154. border-bottom:1px #f2f2f2 solid;
  155. .listTit{
  156. display: flex;
  157. align-items: center;
  158. .name{
  159. margin-left: 10px;
  160. }
  161. .weight {
  162. font-size: $uni-font-size-base;
  163. margin-left: auto;
  164. margin-right: 60rpx;
  165. position: relative;
  166. }
  167. .weight::after{
  168. position: absolute;
  169. right:-30rpx;
  170. top:50%;
  171. content: '';
  172. background: #eee;
  173. width: 1px;
  174. height: 28rpx;
  175. margin-top: -14rpx;
  176. }
  177. }
  178. .listCont{
  179. display: flex;
  180. align-items: center;
  181. flex-wrap: wrap;
  182. margin-top: 15px;
  183. .item{
  184. width:50%;
  185. font-size: $uni-font-size-sm;
  186. line-height: 48rpx;
  187. overflow: hidden;
  188. white-space: nowrap;
  189. text-overflow: ellipsis;
  190. -o-text-overflow:ellipsis;
  191. color: #000;
  192. }
  193. .item text{color: #666;}
  194. }
  195. }
  196. .listBox:last-child{
  197. border:none !important;
  198. }
  199. .saveBtn{
  200. width:50%;
  201. margin:40rpx auto;
  202. }
  203. </style>