| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- <template>
- <view class="mainBox">
- <uni-nav-bar fixed="true" statusBar="true" left-icon="back" title="新增设备出库单" @clickLeft="back">
- <!--右菜单-->
- <template slot="float">
- <view class="nav-icon-caozuo rightNav" @click="getsure"><u-button type="success" size="small" class="u-reset-button" text="确定"></u-button></view>
- </template>
- </uni-nav-bar>
-
- <u-cell-group>
- <u-cell title="仓库" value="备品备件仓" :isLink="true"></u-cell>
- <u-cell title="来源单据" value="保养工单 W2084828888123" :isLink="true"></u-cell>
- <u-cell title="入库登记人" value="张三" :isLink="true"></u-cell>
- <u-cell title="送货人" value="李四" :isLink="true"></u-cell>
- <u-cell title="送货人联系方式" value="13800138000" :isLink="true"></u-cell>
- </u-cell-group>
-
- <u-collapse class="cLine" :value="['detail']">
- <u-collapse-item title="附件" name="">
- <view class="picList">
- <u--image :showLoading="true" :src="src" width="50px" height="50px" @click="viewImage"></u--image>
- <u--image :showLoading="true" :src="src" width="50px" height="50px" @click="viewImage"></u--image>
- <u--image :showLoading="true" :src="src" width="50px" height="50px" @click="viewImage"></u--image>
- </view>
- </u-collapse-item>
-
- <u-collapse-item title="描述" name="">
- <text class="u-collapse-content">涵盖uniapp各个方面,给开发者方向指导和设计理念,让您茅塞顿开,一马平川</text>
- </u-collapse-item>
-
- <u-collapse-item title="明细" name="detail">
-
- <view class="listBox">
- <view class="listTit">
- <view style="display:inline-block;"><u-tag text="按件" size="mini" shape="circle" type="success"></u-tag></view>
- <view class="name">电压测量仪-AR97</view>
- <view class="weight">1件</view>
- <view class="delete"><uni-icons custom-prefix="iconfont" type="icon-shanchu" size="24" color="#fa3534"></uni-icons></view>
- </view>
- <view class="listCont">
- <view class="item"><text>设备编码:</text>3912838881</view>
- <view class="item"><text>设备类型:</text>备品备件</view>
- <view class="item"><text>包装单位:</text>60KG桶</view>
- <view class="item"><text>存放货位:</text> <view style="display:inline-block;"><u--text type="error" text="未登记"></u--text></view></view>
- </view>
- </view>
-
- <view class="listBox">
- <view class="listTit">
- <view style="display:inline-block;"><u-tag text="按件" size="mini" shape="circle" type="success"></u-tag></view>
- <view class="name">美孚润滑油-U7</view>
- <view class="weight">0.45 L</view>
- <view class="delete"><uni-icons custom-prefix="iconfont" type="icon-shanchu" size="24" color="#fa3534"></uni-icons></view>
- </view>
- <view class="listCont">
- <view class="item"><text>设备编码:</text>3912838881</view>
- <view class="item"><text>设备类型:</text>备品备件</view>
- <view class="item"><text>包装单位:</text>60KG桶</view>
- <view class="item"><text>存放货位:</text> <view style="display:inline-block;"><u--text type="error" text="未登记"></u--text></view></view>
- </view>
- </view>
-
- <view class="listBox">
- <view class="listTit">
- <view style="display:inline-block;"><u-tag text="按量" size="mini" shape="circle" type="primary"></u-tag></view>
- <view class="name">十字起-大号</view>
- <view class="weight">3件</view>
- <view class="delete"><uni-icons custom-prefix="iconfont" type="icon-shanchu" size="24" color="#fa3534"></uni-icons></view>
- </view>
- <view class="listCont">
- <view class="item"><text>设备编码:</text>W03912838881</view>
- <view class="item"><text>设备类型:</text>备品备件</view>
- </view>
- </view>
-
- <view class="listBox">
- <view class="listTit">
- <view style="display:inline-block;"><u-tag text="按件" size="mini" shape="circle" type="success"></u-tag></view>
- <view class="name">钢化螺丝-5mm</view>
- <view class="weight">140 颗</view>
- <view class="delete"><uni-icons custom-prefix="iconfont" type="icon-shanchu" size="24" color="#fa3534"></uni-icons></view>
- </view>
- <view class="listCont">
- <view class="item"><text>设备编码:</text>3912838881</view>
- <view class="item"><text>设备类型:</text>备品备件</view>
- <view class="item"><text>包装单位:</text>200装袋</view>
- <view class="item"><text>存放货位:</text> <view style="display:inline-block;"><u--text type="error" text="未登记"></u--text></view></view>
- </view>
- </view>
- </u-collapse-item>
-
- </u-collapse>
-
- <view class="footBox">
- <view class="reg" style="width:100%;"><uni-icons custom-prefix="iconfont" type="icon-shixiangxinzeng" size="20" color="#fff"></uni-icons> 添加出库明细</view>
- </view>
-
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- src:'../../../static/logo.png',
- }
- },
- methods: {
- //附件预览
- viewImage(){
- uni.previewImage({
- current:0,
- urls: [this.src],
- });
- },
- //点击确定
- getsure(){
-
- },
-
- }
- }
- </script>
- <style lang="scss" scoped>
- .mainBox{
- padding-bottom: 120rpx;
- }
- .picList{
- display: flex;
- align-items: center;
- justify-items: flex-start;
- flex-wrap: wrap;
- }
- /deep/.picList .u-image{
- margin-right:10rpx;
- margin-bottom: 10rpx;
- }
-
- /deep/.cLine .u-line:nth-child(1){
- border-bottom: none !important;
- }
- .footBox{
- position: fixed;
- left:0px;
- bottom: 0px;
- height: 100rpx;
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: space-between;
- view{
- width:50%;
- height: 100%;
- text-align: center;
- color: #fff;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .reg{
- background: $u-success-dark;
- }
- .uni-icons{margin-right: 8rpx !important;}
- }
-
- .listBox{
- padding: 20rpx 0;
- border-bottom:1px #f2f2f2 solid;
- .listTit{
- display: flex;
- align-items: center;
- .name{
- margin-left: 10px;
- }
- .weight {
- font-size: $uni-font-size-base;
- margin-left: auto;
- margin-right: 60rpx;
- position: relative;
- }
- .weight::after{
- position: absolute;
- right:-30rpx;
- top:50%;
- content: '';
- background: #eee;
- width: 1px;
- height: 28rpx;
- margin-top: -14rpx;
- }
- }
- .listCont{
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- margin-top: 15px;
- .item{
- width:50%;
- font-size: $uni-font-size-sm;
- line-height: 48rpx;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- -o-text-overflow:ellipsis;
- color: #000;
- }
- .item text{color: #666;}
- }
- }
- .listBox:last-child{
- border:none !important;
- }
- .saveBtn{
- width:50%;
- margin:40rpx auto;
- }
- </style>
|