Browse Source

修改盘点

hella_online_20240829
lijuncheng 4 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. 42
      src/pages/count/job/countBlindDetail.vue
  6. 35
      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> <template>
<view class="card_view "> <view class="card_view ">
<text class="card_location card_content ">{{title}}</text> <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> </view>
</template> </template>

4
src/mycomponents/scan/winScanPackAndLocation.vue

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save