#
whycq
2024-05-30 0e78823dd6ee8de811246e687298b17b28cd80c7
#
2个文件已修改
33 ■■■■ 已修改文件
pages/phyz/stationManage/pickAgain.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/phyz/stationManage/stationDetl.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/phyz/stationManage/pickAgain.vue
@@ -155,12 +155,23 @@
                // 判断添加的商品是否和已经添加的重复
                let dataList = this.dataList
                this.index = index
                let orderCount = this.dataList[index].stock
                let locCount = this.dataList[index].anfme
                let pickedAnfme = this.dataList[index].pickedAnfme
                // 预计最大要出库
                let ftCount = pickedAnfme + orderCount
                
                if (this.dataList[index].stock > this.dataList[index].anfme) {
                    this.maxCount = this.dataList[index].anfme - this.dataList[index].pickedAnfme
                if (orderCount > locCount) {
                    this.maxCount = locCount - pickedAnfme
                } else {
                    this.maxCount = this.dataList[index].stock
                    if (ftCount > locCount) {
                        this.maxCount = locCount -pickedAnfme
                    } else {
                        this.maxCount = orderCount
                    }
                }
                this.$refs.addItem.open()
            },
            addClose() {
pages/phyz/stationManage/stationDetl.vue
@@ -224,7 +224,7 @@
            <button size="mini" type="primary" @click="allocationOut()" v-if="btnType == 'allocationOut'">调拨离场</button>
            <button size="mini" type="primary" @click="allocationIn()" v-if="btnType == 'allocationIn'">调拨进场</button>
            <button size="mini" type="primary" @click="empOut()" v-if="btnType == 'empOut'">空架离场</button>
            <button size="mini" type="primary" @click="empIn()" v-if="btnType == 'allocationIn'">空架进场</button>
            <button size="mini" type="primary" @click="empIn()" v-if="btnType == 'empIn'">空架进场</button>
        </view>
    </view>
</template>
@@ -267,7 +267,7 @@
            })
            setInterval(()=> {
                let k = utils.checkSec()
                console.log(k);
                // console.log(k);
                if (k == 180) {
                    this.dis = false
                    this.sec = ''
@@ -295,7 +295,11 @@
                        if (res.code === 200) {
                            if (res.data.records[0].locSts == 'O') {
                                if (res.data.records[0].devNo.substring(0, 2) == "DB") {
                                    _this.btnType = 'allocationIn'
                                    if (res.data.records[0].floor != 1) {
                                        _this.btnType = 'allocationIn'
                                    } else {
                                        _this.btnType = 'empIn'
                                    }
                                } else {
                                    _this.btnType = 'emptyPakin' 
                                }
@@ -496,8 +500,10 @@
                                    wrkMast['ioTitle'] = '调拨入库'
                                    _this.btnType = 'null'
                                } else if (wrkMast.ioType == 113) {
                                    wrkMast['ioTitle'] = '货架回流'
                                    _this.btnType = 'empOut'
                                    if (wrkMast.wrkSts == 212) {
                                        wrkMast['ioTitle'] = '货架回流'
                                        _this.btnType = 'empOut'
                                    }
                                } 
                                if (wrkMast.barcode == barcode) {
                                    mast = wrkMast