Browse Source

修改盘点

hella_online_20240829
lijuncheng 5 months ago
parent
commit
20a01f95ac
  1. 2
      src/mycomponents/balance/location.vue
  2. 4
      src/mycomponents/scan/winScanPackAndLocation.vue
  3. 5
      src/pages/count/coms/comCountDetailcards.vue
  4. 2
      src/pages/count/coms/comCountJobCard.vue
  5. 54
      src/pages/count/job/countBlindDetail.vue
  6. 39
      src/pages/count/job/countJob.vue
  7. 8
      src/pages/count/job/countLightDetail.vue
  8. 4
      src/uni_modules/uni-combox/components/uni-combox/uni-combox.vue

2
src/mycomponents/balance/location.vue

@ -1,7 +1,7 @@
<template>
<view class="card_view ">
<text class="card_location card_content ">{{title}}</text>
<text class="card_content ">{{locationCode}}</text>
<text class="card_content " style="font-size: 37rpx;">{{locationCode}}</text>
</view>
</template>

4
src/mycomponents/scan/winScanPackAndLocation.vue

@ -18,7 +18,7 @@
margin-right: 20rpx;
border-radius: 8rpx;
height: 30px;">
<view class="uni-center" style="width: 25%; font-size: 40rpx;">
<view class="uni-center" style="width: 25%; font-size: 35rpx;">
来源库位
</view>
<!-- style="width: 75%;padding: 8rpx" -->
@ -31,7 +31,7 @@
@confirm="handleConfirm" style='height: 30rpx;border:1px solid #fff ;'></uni-combox>
</view>
<view v-else>
<text style="padding: 5px;font-size: 50rpx;">
<text style="padding: 5px;font-size: 40rpx;">
{{fromLocationCode}}
</text>
</view>

5
src/pages/count/coms/comCountDetailcards.vue

@ -10,6 +10,7 @@
<view class="uni-flex uni-row">
<compareQty :dataContent="dataContent" :recommendQty="dataContent.recommendQty"
:handleQty="dataContent.handleQty"
:isShowRecommendQty ="isShowRecommendQty"
> </compareQty>
</view>
@ -71,6 +72,10 @@
type: Boolean,
default: false
},
isShowRecommendQty: {
type: Boolean,
default: true
}
},
methods: {
edit(){

2
src/pages/count/coms/comCountJobCard.vue

@ -3,7 +3,7 @@
<!-- <jobComMainDetailCard :dataContent="dataContent">
</jobComMainDetailCard> -->
<to-location title="盘点库位" :locationCode="dataContent.toLocationCode||dataContent.locationCode">
<to-location style="margin-left: 20rpx;" title="盘点库位" :locationCode="dataContent.countSplitCode">
</to-location>
<view class="" style="margin-left: 40rpx; font-size: 32rpx; font-weight: bold;">
阶段 : {{getCountStageName(dataContent.stage)}}

54
src/pages/count/job/countBlindDetail.vue

@ -40,6 +40,7 @@
</view>
<comCountDetailcards :ref="'countDetail_'+index" :dataContent="item" :index="index"
@editItem="editItem" :settingParam="jobContent" @remove="updateData"
:isShowRecommendQty ="false"
@updateData="updateData">
</comCountDetailcards>
</view>
@ -66,7 +67,9 @@
<win-scan-button @goScan='openScanPopup'></win-scan-button>
<win-scan-pack-and-location ref="scanPopup" :noShowBalanceMessage="true" :queryBalance="false" @getResult='getScanResult'>
<win-scan-pack-and-location
:allowModifyLocation="false"
ref="scanPopup" :noShowBalanceMessage="true" :queryBalance="true" @getResult='getScanResult'>
</win-scan-pack-and-location>
<count-qty-edit ref="countQtyEdit" @confirm="editConfirm" @close="editClose" :isShowStatus="true"
:allowEditStatus="editInventoryStatus" :isShowBalance="jobContent.isOpenCount=='TRUE'">
@ -242,15 +245,15 @@
} else {
that.jobContent = res.data;
that.jobStatus = res.data.status;
that.fromLocationCode = that.jobContent.locationCode;
// res.data.subList.forEach(item => {
// item.recommendQty = item.qty
// item.handleQty = 0
// item.countTime = new Date()
// item.fromLocationCode =that.fromLocationCode;
// })
// that.allDetails = res.data.subList;
// that.allCount = res.data.subList.length;
that.fromLocationCode = that.jobContent.countSplitCode;
res.data.subList.forEach(item => {
item.recommendQty = item.qty
item.handleQty = 0
item.countTime = new Date()
item.fromLocationCode =that.fromLocationCode;
})
that.allDetails = res.data.subList;
that.allCount = res.data.subList.length;
that.initList()
}
@ -335,8 +338,8 @@
var packingNumber = result.label.packingNumber
var pack = result.package
var batch = result.label.batch
var inventoryStatus = "OK"
var qty = result.label.qty ? result.label.qty : 0;
var inventoryStatus = result.balance ? result.balance.inventoryStatus : "OK"
var qty = result.balance ? result.balance.qty : 0;
//
let items = this.allDetails.filter(r =>
@ -346,13 +349,21 @@
r.inventoryStatus === inventoryStatus)
//,
if (items.length == 0) {
var detail = this.createAddDetailInfo(pack,qty)
detail.countTime = new Date();
this.allDetails.push(detail)
this.updateList();
this.$refs.countQtyEdit.openEditPopupShowSeconds(detail,
null);
this.$refs.comMessage.showQuestionMessage("包装【" + result.label.packingNumber +
"】不在任务列表中,是否要添加到列表中?",
res => {
//
if (res) {
var detail = this.createAddDetailInfo(pack,qty)
detail.countTime = new Date();
this.allDetails.push(detail)
this.updateList();
this.$refs.countQtyEdit.openEditPopupShowSeconds(detail,
null);
} else {
this.scanPopupGetFocus();
}
})
} else {
var selectItem = items[0]
//
@ -372,7 +383,7 @@
} else {
//
selectItem.scaned = true;
selectItem.recommendQty =Number(qty);
selectItem.balanceQty= Number(qty)
selectItem.handleQty = Number(qty)
selectItem.packQty = pack.packQty
selectItem.packUnit = pack.packUnit
@ -424,7 +435,7 @@
//
createAddDetailInfo(pack,qty) {
var detail = {
id: this.jobContent.masterId, //
masterId: this.jobContent.id, //
scaned: true,
countDetailNumber: "",
ownerCode: "",
@ -448,6 +459,7 @@
countQty: 0,
balanceQty: 0,
fromLocationCode: this.fromLocationCode,
locationCode:this.fromLocationCode,
creator: this.$store.state.user.id,
countTime: new Date()
}

39
src/pages/count/job/countJob.vue

@ -152,6 +152,11 @@
action: "in",
value: this.status
})
filters.push({
column: "countSplitType",
action: "==",
value: "locationCode"
})
// filters.push({
// column: "accept_user_id",
@ -195,20 +200,20 @@
},
openJobDetail(item) {
uni.navigateTo({
url: './countDetail?id=' + item.id + '&status=' + item.status
});
// //
// if(item.isOpenCount=="TRUE"){
// uni.navigateTo({
// url: './countLightDetail?id=' + item.id + '&status=' + item.status
// });
// }else {
// //
// uni.navigateTo({
// url: './countBlindDetail?id=' + item.id + '&status=' + item.status
// });
// }
// uni.navigateTo({
// url: './countDetail?id=' + item.id + '&status=' + item.status
// });
//
if(item.isOpenCount=="TRUE"){
uni.navigateTo({
url: './countLightDetail?id=' + item.id + '&status=' + item.status
});
}else {
//
uni.navigateTo({
url: './countBlindDetail?id=' + item.id + '&status=' + item.status
});
}
},
showItemList(itemList) {
@ -294,6 +299,12 @@
value: code
})
filters.push({
column: "countSplitType",
action: "==",
value: "locationCode"
})
var params = {
filters: filters,
pageNo: 1,

8
src/pages/count/job/countLightDetail.vue

@ -68,7 +68,9 @@
</view>
<win-scan-button @goScan='openScanPopup'></win-scan-button>
<win-scan-pack-and-location ref="scanPopup" :noShowBalanceMessage="true" @getCountScanResult='getScanResult'>
<win-scan-pack-and-location
:allowModifyLocation="false"
ref="scanPopup" :noShowBalanceMessage="true" @getCountScanResult='getScanResult'>
</win-scan-pack-and-location>
<count-qty-edit ref="countQtyEdit" @confirm="editConfirm" @close="editClose" :isShowStatus="true"
:allowEditStatus="editInventoryStatus" :isShowBalance="jobContent.isOpenCount=='TRUE'">
@ -244,7 +246,7 @@
} else {
that.jobContent = res.data;
that.jobStatus = res.data.status;
that.fromLocationCode = that.jobContent.locationCode;
that.fromLocationCode = that.jobContent.countSplitCode;
res.data.subList.forEach(item => {
item.recommendQty = item.qty
item.handleQty = 0
@ -434,7 +436,7 @@
//
createAddDetailInfo(pack,qty) {
var detail = {
id: this.jobContent.masterId, //
masterId: this.jobContent.id, //
scaned: true,
countDetailNumber: "",
ownerCode: "",

4
src/uni_modules/uni-combox/components/uni-combox/uni-combox.vue

@ -245,7 +245,7 @@
cursor: pointer;
/* #endif */
line-height: 36px;
font-size: 60rpx;
font-size: 45rpx;
text-align: center;
// border-bottom: solid 1px #DDDDDD;
padding: 0px 10px;
@ -296,6 +296,6 @@
}
.uni-input-input {
font-size: 60rpx;
font-size: 40rpx;
}
</style>

Loading…
Cancel
Save