Browse Source

修改扫描和上架

wms3.0_pda
niexiting 11 months ago
parent
commit
689255f057
  1. 8
      common/basic.js
  2. 5
      mycomponents/scan/winScanPackAndLocation.vue
  3. 11
      pages/putaway/record/putawayRecord.vue
  4. 2
      static/config.json

8
common/basic.js

@ -600,7 +600,6 @@ export function getPackingNumberAndBatchByList(managementList, itemCode, packing
packingNumber: "",
batch: ""
}
var manageType = queryManageModelByList(managementList, itemCode, locationCode)
if (manageType == "BY_QUANTITY") {
itemInfo.packingNumber = ""
@ -614,19 +613,22 @@ export function getPackingNumberAndBatchByList(managementList, itemCode, packing
} else if (manageType == "BY_UNIQUE_ID") {
itemInfo.packingNumber = packingNumber
itemInfo.batch = batch
} else if (manageType == "") {
itemInfo.packingNumber = packingNumber
itemInfo.batch = batch
}
return itemInfo;
}
export function queryManageModelByList(managementList, itemCode, locationCode) {
var result = managementList.filter(res => {
var result = managementList.find(res => {
if (res.itemCode == itemCode && res.locationCode == locationCode) {
return res.ManagementPrecision
}
})
if (result != undefined) {
return result[0].ManagementPrecision
return result.ManagementPrecision
} else {
return ""
}

5
mycomponents/scan/winScanPackAndLocation.vue

@ -21,13 +21,14 @@
<view class="uni-center" style="width: 25%; ">
来源库位
</view>
<view class="" style="width: 75%;padding: 8rpx">
<!-- style="width: 75%;padding: 8rpx" -->
<view class="">
<!-- <input v-model="fromLocationCode" placeholder="请扫描来源库位" :focus="locationOnFocus"
placeholder-style="font-size:12px" style="padding: 5px;" @confirm="scanLocation" /> -->
<view v-if='allowModifyLocation'>
<uni-combox :candidates="fromLocationList" v-model="fromLocationCode" placeholder="请扫描来源库位"
@confirm="scanLocation" style='height: 30px;'></uni-combox>
@confirm="scanLocation" style='height: 30px;border:1px solid #fff ;'></uni-combox>
</view>
<view v-else>
<text style="padding: 5px">

11
pages/putaway/record/putawayRecord.vue

@ -163,8 +163,11 @@
}
})
if (detail == undefined) {
this.getRecommendLocation(balance, pack, toLocationCode => {
let newDetail = createDetailInfo(balance, pack);
newDetail.toLocationCode = toLocationCode;
item.subList.push(newDetail);
});
} else {
if (detail.scaned == true) {
this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]已经在列表中")
@ -276,10 +279,10 @@
//
let precisionStrategyParams = getPrecisionStrategyParams(this.detailSource);
//2:
getPrecisionStrategyList(precisionStrategyParams, this.toLocationCode, res => {
getPrecisionStrategyList(precisionStrategyParams, res => {
if (res.success) {
this.managementList = res.list;
var params = this.setRecordParams(true)
var params = this.setRecordParams()
console.log("提交参数", JSON.stringify(params));
putawayRecordSubmit(params).then(res => {
@ -333,14 +336,14 @@
return itemList;
},
setRecordParams(queryModel) {
setRecordParams() {
var subList = []
var creator = this.$store.state.user.id
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
if (detail.scaned) {
var info = getPackingNumberAndBatchByList(this.managementList, detail.itemCode,
detail.packingNumber, detail.batch);
detail.packingNumber, detail.toLocationCode, detail.batch);
detail.toPackingNumber = info.packingNumber;;
detail.toContainerNumber = detail.containerNumber
detail.toBatch = info.batch;

2
static/config.json

@ -18,7 +18,7 @@
"request_url": {
"name": "request_url",
"value": "http://192.168.0.180:12080/admin-api",
"value": "http://dev.ccwin-in.com:25100/api/admin-api",
"dev2": "http://192.168.0.157:12080/admin-api",
"chefang": "http://192.168.0.180:12080/admin-api",
"chenxinming": "http://192.168.0.230:12080/admin-api",

Loading…
Cancel
Save