lincl 3 years ago
parent
commit
4ef0a4f2bc

+ 11 - 11
mini-pro-web/src/views/replenishment/start/deviceDetail.vue

@ -2,42 +2,42 @@
    <div class='replenishment-start-device-detail fs-14'>
        <van-sticky :offset-top="offsetTop">
            <div class="bgc-17b3ec c-fff">
                <div class="pt10 plr15 ellipsis_1">当前货柜:{{deviceInfo.equName}}</div>
                <div class="pt10 plr15 ellipsis_1">当前货柜:{{deviceInfo.device.equName}}</div>
                <van-row>
                    <van-col span="6">
                        <div class="tc pt10 pb10">
                            <div class="fs-20">{{deviceInfo.capacity||0}}</div>
                            <div class="fs-20">{{deviceInfo.deviceCapacity||0}}</div>
                            <div class="fs-12 pt5">设备容量</div>
                        </div>
                    </van-col>
                    <van-col span="6">
                        <div class="tc pt10 pb10">
                            <div class="fs-20">
                                <span>{{deviceInfo.totalQty||0}}</span>
                                <span class="fs-12">/{{(1 - (deviceInfo.idleRate||1)) * 100}}%</span>
                                <span>{{deviceInfo.inStock||0}}</span>
                                <span class="fs-12">/{{((deviceInfo.inStockRate||0)) * 100}}%</span>
                            </div>
                            <div class="fs-12 pt5">在架库存</div>
                        </div>
                    </van-col>
                    <van-col span="6">
                        <div class="tc pt10 pb10">
                            <div class="fs-20">0</div>
                            <div class="fs-20">{{deviceInfo.outOfStock||0}}</div>
                            <div class="fs-12 pt5">缺货库存</div>
                        </div>
                    </van-col>
                    <van-col span="6">
                        <div class="tc pt10 pb10">
                            <div class="fs-20">0</div>
                            <div class="fs-20">{{deviceInfo.earlyWarningCargo||0}}</div>
                            <div class="fs-12 pt5">预警货道</div>
                        </div>
                    </van-col>
                </van-row>
                <div class="kitbox fs-12 plr10 pb5">
                    <!-- <div class="box-flex-1">当前:0号柜</div> -->
                    <div class="box-flex-1"> 共:{{deviceInfo.layer}}层</div>
                    <div class="box-flex-1 ml5">总货道:{{deviceInfo.aisles}}</div>
                    <div class="box-flex-1"> 共:{{deviceInfo.device.layer}}层</div>
                    <div class="box-flex-1 ml5">总货道:{{deviceInfo.totalCargo}}</div>
                    <div class="box-flex-1 ml5">故障:0</div>
                    <div class="box-flex-1 ml5">关闭:{{closeCount}}</div>
                    <div class="box-flex-1 ml5">关闭:{{deviceInfo.closedCargo || 0}}</div>
                </div>
            </div>
        </van-sticky>
@ -71,7 +71,7 @@ export default{
    },
    data(){
        return {
            deviceInfo: '',
            deviceInfo: {device: ''},
            deviceId: this.$route.query.deviceId,
            list: [],
            activeKey: 0,
@ -138,7 +138,7 @@ export default{
                .then(res=>{
                    console.log('findDeviceById', res)
                    this.$toast.clear()
                    this.deviceInfo = res.obj.device
                    this.deviceInfo = res.obj
                })
                .catch(err=>{
                    console.error(err)

+ 1 - 1
mini-pro-web/src/views/replenishment/start/deviceList.vue

@ -23,7 +23,7 @@
                    <div class="lh20 ptb10 kitbox">
                        <div class="box-flex-1">
                            <div>设备编号:{{item.equNum}}</div>
                            <div>上次补货时间:</div>
                            <div>上次补货时间:{{item.shangyicibuhuoshijian}}</div>
                        </div>
                    </div>
                    <div class="operate pt10 pb10">

+ 4 - 4
mini-pro-web/src/views/replenishment/stockUp/deviceList.vue

@ -18,15 +18,15 @@
                        </div>
                        <div class="kitbox ptb10 pr40">
                            <div class="pt2">空置率:</div>
                            <div class="box-flex-1 pt10"><van-progress :percentage="item.idleRate? (item.idleRate*100) : 0" /></div>
                            <div class="box-flex-1 pt10"><van-progress :percentage="item.kongzhilv? (item.kongzhilv*100) : 0" /></div>
                        </div>
                        <div class="lh20 ptb10 kitbox">
                            <div class="box-flex-1">
                                <div>待补商品数量:{{item.daibuQty}}</div>
                                <div>未设商品货道:{{item.unusedAisles}}</div>
                                <div>待补商品数量:{{item.daibushangpinshuliang}}</div>
                                <div>未设商品货道:{{item.weishezhishangpinhuodao}}</div>
                                <div>设备所属:{{item.community}}</div>
                                <div>设备编号:{{item.equNum}}</div>
                                <div>上次补货时间:</div>
                                <div>上次补货时间:{{item.shangyicibuhuoshijian}}</div>
                            </div>
                            <div class="fs-20 c-pr">
                                <van-icon name="arrow" />