addStock.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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="保养工单 W2084828888123" :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>3912838881</view>
  37. <view class="item"><text>设备类型:</text>备品备件</view>
  38. <view class="item"><text>包装单位:</text>60KG桶</view>
  39. <view class="item"><text>存放货位:</text> <view style="display:inline-block;"><u--text type="error" text="未登记"></u--text></view></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>60KG桶</view>
  53. <view class="item"><text>存放货位:</text> <view style="display:inline-block;"><u--text type="error" text="未登记"></u--text></view></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>W03912838881</view>
  65. <view class="item"><text>设备类型:</text>备品备件</view>
  66. </view>
  67. </view>
  68. <view class="listBox">
  69. <view class="listTit">
  70. <view style="display:inline-block;"><u-tag text="按件" size="mini" shape="circle" type="success"></u-tag></view>
  71. <view class="name">钢化螺丝-5mm</view>
  72. <view class="weight">140 颗</view>
  73. <view class="delete"><uni-icons custom-prefix="iconfont" type="icon-shanchu" size="24" color="#fa3534"></uni-icons></view>
  74. </view>
  75. <view class="listCont">
  76. <view class="item"><text>设备编码:</text>3912838881</view>
  77. <view class="item"><text>设备类型:</text>备品备件</view>
  78. <view class="item"><text>包装单位:</text>200装袋</view>
  79. <view class="item"><text>存放货位:</text> <view style="display:inline-block;"><u--text type="error" text="未登记"></u--text></view></view>
  80. </view>
  81. </view>
  82. </u-collapse-item>
  83. </u-collapse>
  84. <view class="footBox">
  85. <view class="reg" style="width:100%;"><uni-icons custom-prefix="iconfont" type="icon-shixiangxinzeng" size="20" color="#fff"></uni-icons> 添加入库明细</view>
  86. </view>
  87. </view>
  88. </template>
  89. <script>
  90. export default {
  91. data() {
  92. return {
  93. src:'../../../static/logo.png',
  94. }
  95. },
  96. methods: {
  97. //图片预览
  98. viewImage(){
  99. uni.previewImage({
  100. current:0,
  101. urls: [this.src],
  102. });
  103. },
  104. //确定
  105. getsure(){
  106. },
  107. }
  108. }
  109. </script>
  110. <style lang="scss" scoped>
  111. .mainBox{
  112. padding-bottom: 120rpx;
  113. }
  114. .picList{
  115. display: flex;
  116. align-items: center;
  117. justify-items: flex-start;
  118. flex-wrap: wrap;
  119. }
  120. /deep/.picList .u-image{
  121. margin-right:10rpx;
  122. margin-bottom: 10rpx;
  123. }
  124. /deep/.cLine .u-line:nth-child(1){
  125. border-bottom: none !important;
  126. }
  127. .footBox{
  128. position: fixed;
  129. left:0px;
  130. bottom: 0px;
  131. height: 100rpx;
  132. width: 100%;
  133. display: flex;
  134. align-items: center;
  135. justify-content: space-between;
  136. view{
  137. width:50%;
  138. height: 100%;
  139. text-align: center;
  140. color: #fff;
  141. display: flex;
  142. align-items: center;
  143. justify-content: center;
  144. }
  145. .reg{
  146. background: $u-success-dark;
  147. }
  148. .uni-icons{margin-right: 8rpx !important;}
  149. }
  150. .listBox{
  151. padding: 20rpx 0;
  152. border-bottom:1px #f2f2f2 solid;
  153. .listTit{
  154. display: flex;
  155. align-items: center;
  156. .name{
  157. margin-left: 10px;
  158. }
  159. .weight {
  160. font-size: $uni-font-size-base;
  161. margin-left: auto;
  162. margin-right: 60rpx;
  163. position: relative;
  164. }
  165. .weight::after{
  166. position: absolute;
  167. right:-30rpx;
  168. top:50%;
  169. content: '';
  170. background: #eee;
  171. width: 1px;
  172. height: 28rpx;
  173. margin-top: -14rpx;
  174. }
  175. }
  176. .listCont{
  177. display: flex;
  178. align-items: center;
  179. flex-wrap: wrap;
  180. margin-top: 15px;
  181. .item{
  182. width:50%;
  183. font-size: $uni-font-size-sm;
  184. line-height: 48rpx;
  185. overflow: hidden;
  186. white-space: nowrap;
  187. text-overflow: ellipsis;
  188. -o-text-overflow:ellipsis;
  189. color: #000;
  190. }
  191. .item text{color: #666;}
  192. }
  193. }
  194. .listBox:last-child{
  195. border:none !important;
  196. }
  197. .saveBtn{
  198. width:50%;
  199. margin:40rpx auto;
  200. }
  201. </style>