Browse Source

修改来源库位校验

wms3.0_pda
lijuncheng 11 months ago
parent
commit
ab38e495c1
  1. 14
      mycomponents/record/recordFilter.vue
  2. 4
      pages/purchaseReturn/job/returnDetail.vue
  3. 6
      pages/transfer/job/issueDetail.vue

14
mycomponents/record/recordFilter.vue

@ -8,7 +8,7 @@
只看当天
</view>
<u-switch v-model="checkedToday" active-color="#4DD865" inactive-color="#eee" size="35" @change="switchChangeToday"></u-switch>
<u-switch v-model="checkedTodayModel" active-color="#4DD865" inactive-color="#eee" size="35" @change="switchChangeToday"></u-switch>
</view>
<view class="">
<view class="uni-flex u-row-center" style="margin-top: 30rpx;">
@ -36,6 +36,7 @@
data() {
return {
dataContent: {},
checkedTodayModel:false,
}
},
props: {
@ -43,10 +44,6 @@
type: Boolean,
default: false
},
checkedWaitTask: {
type: Boolean,
default: false
},
otherTitle: {
type: String,
default: ""
@ -57,6 +54,13 @@
}
},
watch: {
checkedToday: {
handler(newName, oldName) {
this.checkedTodayModel = this.checkedToday
},
immediate: true,
deep: true
},
},
mounted() {

4
pages/purchaseReturn/job/returnDetail.vue

@ -239,10 +239,10 @@
r.batch == batch && r.fromLocationCode == result.fromLocationCode
})
if (itemDetail == undefined) {
this.showErrorMessage("箱码[" + packingNumber + "]" + "批次[" + batch + "]不在列表中")
this.showErrorMessage("箱码" + packingNumber + "】,批次【" + batch + "】库位【"+result.fromLocationCode+"】不在列表中")
} else {
if (itemDetail.scaned) {
this.showMessage("箱码【" + packingNumber + "】已经扫描")
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【"+result.fromLocationCode+"】已经扫描")
} else {
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);

6
pages/transfer/job/issueDetail.vue

@ -258,13 +258,13 @@
} else {
var itemDetail = detail.subList.find(r => {
return r.packingNumber == packingNumber &&
r.batch == batch
r.batch == batch && r.fromLocationCode == result.fromLocationCode
})
if (itemDetail == undefined) {
this.showErrorMessage("箱码[" + packingNumber + "]" + "批次[" + batch + "]不在列表中")
this.showErrorMessage("箱码" + packingNumber + "】,批次【" + batch + "】库位【"+result.fromLocationCode+"】不在列表中")
} else {
if (itemDetail.scaned) {
this.showMessage("箱码【" + packingNumber + "】已经扫描")
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【"+result.fromLocationCode+"】已经扫描")
} else {
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);

Loading…
Cancel
Save