|
@@ -17,7 +17,7 @@
|
|
<!-- 出库确认弹框 -->
|
|
<!-- 出库确认弹框 -->
|
|
<common-modal v-if="confirmOutModal" :openModal="confirmOutModal" title="出库" content="此补货单产品已经全部扫描完成,确认出库吗?" confirmText="确认出库" @confirm="modalOutConfirm" @close="confirmOutModal=false" />
|
|
<common-modal v-if="confirmOutModal" :openModal="confirmOutModal" title="出库" content="此补货单产品已经全部扫描完成,确认出库吗?" confirmText="确认出库" @confirm="modalOutConfirm" @close="confirmOutModal=false" />
|
|
<!-- 选择配送方式弹框 -->
|
|
<!-- 选择配送方式弹框 -->
|
|
- <choose-type-modal v-if="chooseModal" :openModal="chooseModal" @confirm="modalChooseType" @close="chooseModal=false" />
|
|
|
|
|
|
+ <choose-type-modal v-if="chooseModal" :openModal="chooseModal" @confirm="modalChooseType" @close="closeChooseType" />
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -26,7 +26,7 @@
|
|
import chooseTypeModal from './chooseTypeModal.vue'
|
|
import chooseTypeModal from './chooseTypeModal.vue'
|
|
import commonModal from '@/pages/common/commonModal.vue'
|
|
import commonModal from '@/pages/common/commonModal.vue'
|
|
import { getQueryString } from '@/libs/tools'
|
|
import { getQueryString } from '@/libs/tools'
|
|
- import { shelfReplenishDetailList, shelfReplenishDetailOutScan, shelfReplenishOutStock } from '@/api/shelfReplenish'
|
|
|
|
|
|
+ import { shelfReplenishDetailList, shelfReplenishDetailOutScan, shelfReplenishOutStock, shelfReplenishDetail } from '@/api/shelfReplenish'
|
|
export default {
|
|
export default {
|
|
components: { partList, commonModal, chooseTypeModal },
|
|
components: { partList, commonModal, chooseTypeModal },
|
|
data() {
|
|
data() {
|
|
@@ -55,8 +55,24 @@
|
|
this.replenishBillSn = options.sn
|
|
this.replenishBillSn = options.sn
|
|
this.shelfSn = options.shelfSn
|
|
this.shelfSn = options.shelfSn
|
|
this.getPartList()
|
|
this.getPartList()
|
|
|
|
+ this.getDetail()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 详情
|
|
|
|
+ getDetail(){
|
|
|
|
+ shelfReplenishDetail({ sn: this.replenishBillSn }).then(res => {
|
|
|
|
+ console.log(res)
|
|
|
|
+ if(res.status == 200 && res.data){
|
|
|
|
+ if(res.data.totalConfirmQty && res.data.totalScanQty && res.data.totalConfirmQty == res.data.totalScanQty){
|
|
|
|
+ this.isAll = true
|
|
|
|
+ }else{
|
|
|
|
+ this.isAll = false
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ this.isAll = false
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 立即出库
|
|
// 立即出库
|
|
handleOutGoods(){
|
|
handleOutGoods(){
|
|
if(this.isAll){
|
|
if(this.isAll){
|
|
@@ -99,6 +115,10 @@
|
|
modalOutConfirm(){
|
|
modalOutConfirm(){
|
|
this.chooseModal = true
|
|
this.chooseModal = true
|
|
},
|
|
},
|
|
|
|
+ closeChooseType(){
|
|
|
|
+ this.confirmOutModal = false
|
|
|
|
+ this.chooseModal = false
|
|
|
|
+ },
|
|
// 查询列表
|
|
// 查询列表
|
|
getPartList(){
|
|
getPartList(){
|
|
const _this = this
|
|
const _this = this
|
|
@@ -129,6 +149,8 @@
|
|
if(res.data && res.data.totalConfirmQty && res.data.totalScanQty && res.data.totalConfirmQty == res.data.totalScanQty){
|
|
if(res.data && res.data.totalConfirmQty && res.data.totalScanQty && res.data.totalConfirmQty == res.data.totalScanQty){
|
|
_this.isAll = true
|
|
_this.isAll = true
|
|
_this.handleOutGoods()
|
|
_this.handleOutGoods()
|
|
|
|
+ }else{
|
|
|
|
+ _this.barcode.start()
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
this.contModal = res.message
|
|
this.contModal = res.message
|
|
@@ -193,13 +215,16 @@
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
overflow: auto;
|
|
overflow: auto;
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
.barCode{
|
|
.barCode{
|
|
- height: 30%;
|
|
|
|
|
|
+ height: 33%;
|
|
|
|
+ margin-bottom: 10%;
|
|
}
|
|
}
|
|
.info-body{
|
|
.info-body{
|
|
flex-flow: 1;
|
|
flex-flow: 1;
|
|
overflow: auto;
|
|
overflow: auto;
|
|
- height: 70%;
|
|
|
|
|
|
+ height: 57%;
|
|
}
|
|
}
|
|
.info{
|
|
.info{
|
|
background-color: #FFFFFF;
|
|
background-color: #FFFFFF;
|