Browse Source

修改提交

wms3.0_pda
lijuncheng 1 year ago
parent
commit
1f865ff733
  1. 10
      pages/count/job/countDetail.vue
  2. 10
      pages/count/record/countRecord.vue
  3. 10
      pages/customerReturn/job/returnDetail.vue
  4. 10
      pages/customerReturn/record/returnRecord.vue
  5. 10
      pages/deliver/job/deliverDetail.vue
  6. 10
      pages/deliver/record/deliverRecord.vue
  7. 2
      pages/issue/coms/comIssueDetailCard.vue
  8. 3
      pages/issue/job/issueDetail.vue
  9. 10
      pages/package/record/mergePackageRecord.vue
  10. 10
      pages/package/record/overPackageRecord.vue
  11. 10
      pages/package/record/splitPackageRecord.vue
  12. 10
      pages/productDismantle/job/productDismantleDetail.vue
  13. 10
      pages/productDismantle/record/productDismantleRecord.vue
  14. 10
      pages/productPutaway/job/productPutawayDetail.vue
  15. 10
      pages/productPutaway/record/productPutawayRecord.vue
  16. 10
      pages/productReceipt/job/productReceiptDetail.vue
  17. 10
      pages/productReceipt/record/productReceiptRecord.vue
  18. 10
      pages/productionReceipt/job/productionReceiptDetail.vue
  19. 10
      pages/productionReceipt/record/productionReceiptRecord.vue
  20. 46
      pages/productionReturn/job/returnDetail.vue
  21. 9
      pages/purchaseReceipt/job/receiptDetail.vue
  22. 6
      pages/putaway/job/putawayDetail.vue
  23. 190
      pages/repleinsh/job/repleinshDetail.vue
  24. 10
      pages/scrap/job/scrapJobDetail.vue
  25. 10
      pages/supplierDeliver/record/supplierDeliverRecordDetail.vue
  26. 10
      pages/transfer/coms/comTransferRecord.vue
  27. 10
      pages/unPlanned/job/receiptJobDetail.vue

10
pages/count/job/countDetail.vue

@ -443,8 +443,14 @@
},
scanLocationCode(location, code) {
this.fromLocationCode = code
this.toLocationInfo = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},

10
pages/count/record/countRecord.vue

@ -367,8 +367,14 @@
},
scanLocationCode(location, code) {
this.fromLocationCode = code
this.fromLocationInfo = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},

10
pages/customerReturn/job/returnDetail.vue

@ -305,8 +305,14 @@
},
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationInfo = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},
commit() {

10
pages/customerReturn/record/returnRecord.vue

@ -243,8 +243,14 @@
},
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationCode = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},

10
pages/deliver/job/deliverDetail.vue

@ -311,8 +311,14 @@
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationInfo = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},
commit() {

10
pages/deliver/record/deliverRecord.vue

@ -254,8 +254,14 @@
},
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationCode = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},

2
pages/issue/coms/comIssueDetailCard.vue

@ -16,7 +16,7 @@
<view>
<view class="uni-flex uni-row space-between">
<!-- 推荐库位 -->
<location :locationCode="loacation.FromLocationCode">
<location :locationCode="loacation.fromLocationCode">
</location>
</view>
<view v-for="(batch,index) in loacation.Batchs">

3
pages/issue/job/issueDetail.vue

@ -36,7 +36,6 @@
updateTitle,
getRemoveOption,
getISODateTime,
getDirectoryItemArray
} from '@/common/basic.js';
@ -135,6 +134,7 @@
mask: true
});
getIssueJobDetail(that.id).then(res => {
debugger
uni.hideLoading();
if (res.data == null) {
that.showMessage('未获取到详情');
@ -146,7 +146,6 @@
// that.fromLocationCode = that.subList[0].FromLocationCode
// that.toLocationCode = that.subList[0].toLocationCode
// that.tolocationTypeList = getDirectoryItemArray(that.jobContent.toLocationTypes)
updateTitle(this.jobContent.number);
that.resizeCollapse();
uni.hideLoading();
} else {

10
pages/package/record/mergePackageRecord.vue

@ -224,8 +224,14 @@
},
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationCode = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},

10
pages/package/record/overPackageRecord.vue

@ -248,8 +248,14 @@
},
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationCode = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},

10
pages/package/record/splitPackageRecord.vue

@ -248,8 +248,14 @@
},
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationCode = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},

10
pages/productDismantle/job/productDismantleDetail.vue

@ -306,8 +306,14 @@
},
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationInfo = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},
commit() {

10
pages/productDismantle/record/productDismantleRecord.vue

@ -222,8 +222,14 @@
},
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationCode = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},

10
pages/productPutaway/job/productPutawayDetail.vue

@ -339,8 +339,14 @@
},
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationInfo = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},
commit() {

10
pages/productPutaway/record/productPutawayRecord.vue

@ -225,8 +225,14 @@
},
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationCode = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},

10
pages/productReceipt/job/productReceiptDetail.vue

@ -283,8 +283,14 @@
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationInfo = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},
async commit() {

10
pages/productReceipt/record/productReceiptRecord.vue

@ -208,8 +208,14 @@
// },
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationCode = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},

10
pages/productionReceipt/job/productionReceiptDetail.vue

@ -297,8 +297,14 @@
},
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationInfo = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},
commit() {

10
pages/productionReceipt/record/productionReceiptRecord.vue

@ -215,8 +215,14 @@
},
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationCode = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},

46
pages/productionReturn/job/returnDetail.vue

@ -287,21 +287,35 @@
},
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationInfo = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},
commit() {
if (this.toLocationCode == "") {
this.showMessage("请扫描目标库位")
this.scanCount = getScanCount(this.subList);
if (this.scanCount == 0) {
this.showErrorMessage("扫描数为0,请先扫描")
return;
}
//
if (this.jobContent.allowPartialComplete == "TRUE") {
if (!this.checkLocation()) {
return
}
//
if (this.scanCount == this.subList.length) {
this.submitJob();
} else {
this.scanCount = getScanCount(this.subList);
if (this.scanCount < this.subList.length) {
} else if (this.scanCount < this.subList.length) {
//
if (this.jobContent.allowPartialComplete == "TRUE") {
//
this.submitJob();
} else {
//
this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交<br>' + "已经扫描[" + this.scanCount +
"]箱总共[" + this
.subList.length + "]箱", res => {
@ -309,8 +323,6 @@
this.openScanPopup();
}
});
} else {
this.submitJob();
}
}
},
@ -377,6 +389,18 @@
this.jobContent.creator =creator;
return this.jobContent;
},
checkLocation() {
var isPass = true;
if (this.toLocationCode == "") {
this.showMessageHint('请扫描收货库位', callback => {
this.$refs.comScanLocation.showLocation();
})
return isPass = false;
}
return isPass;
},
showMessage(message) {
setTimeout(r => {

9
pages/purchaseReceipt/job/receiptDetail.vue

@ -258,15 +258,14 @@
commit() {
this.scanCount = this.getScanCount();
if( this.scanCount==0){
this.showErrorMessage("扫描数为0,请先扫描")
return;
}
//
if (!this.checkLocation()) {
return
}
if( this.scanCount==0){
this.showErrorMessage("扫描数为0,请先扫描")
return;
}
console.log("校验通过")

6
pages/putaway/job/putawayDetail.vue

@ -349,13 +349,13 @@
commit() {
this.scanCount = getScanCount(this.subList);
if (!this.checkLocation()) {
return
}
if (this.scanCount == 0) {
this.showErrorMessage("扫描数为0,请先扫描")
return;
}
if (!this.checkLocation()) {
return
}
//
if (this.scanCount == this.subList.length) {

190
pages/repleinsh/job/repleinshDetail.vue

@ -5,7 +5,8 @@
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class="">
<com-detail-card :dataContent="item" :index="index" :settingParam="jobContent"
@remove="updateData" @updateData="updateData" @openDetail="openDetail">
@remove="updateData" @updateData="updateData" @openDetail="openDetail"
:locationTypeList='tolocationTypeList'>
</com-detail-card>
</view>
<u-line />
@ -14,7 +15,7 @@
</view>
<requiredLocation ref='comScanLocation' title="目标库位" :locationCode="toLocationCode"
@getLocation='getToLocationCode' :isShowEdit="jobContent.allowModifyLocation == 1"
@getLocation='scanLocationCode' :isShowEdit="jobContent.allowModifyLocation == 'TRUE'"
:locationTypeList="tolocationTypeList"></requiredLocation>
<view class="page-footer">
@ -285,7 +286,11 @@
']不一致,是否继续上架?', res => {
if (res) {
itemDetail.scaned = true;
itemDetail.handleQty = Number(result.label.qty);
itemDetail.handleQty = Number(result.label.qty)>Number(result.balance.qty)?Number(result.balance.qty):Number(result.label.qty);
itemDetail.balance = result.balance;
itemDetail.balance.balanceQty = result.balance.qty;
itemDetail.balance.stdPackQty =result.package.stdPackQty
itemDetail.balance.stdPackUnit =result.package.stdPackUnit
this.calcHandleQty();
} else {
this.scanPopupGetFocus();
@ -293,7 +298,11 @@
});
} else {
itemDetail.scaned = true;
itemDetail.handleQty = Number(result.label.qty);
itemDetail.handleQty = Number(result.label.qty)>Number(result.balance.qty)?Number(result.balance.qty):Number(result.label.qty);
itemDetail.balance = result.balance;
itemDetail.balance.balanceQty = result.balance.qty;
itemDetail.balance.stdPackQty =result.package.stdPackQty
itemDetail.balance.stdPackUnit =result.package.stdPackUnit
this.calcHandleQty();
}
}
@ -305,8 +314,14 @@
},
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationInfo = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位["+code+"]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},
openDetail(item) {
@ -314,84 +329,149 @@
},
commit() {
if (this.toLocationCode == "") {
this.showMessage("请先选择目标库位")
this.scanCount = getScanCount(this.subList);
if (this.scanCount == 0) {
this.showErrorMessage("扫描数为0,请先扫描")
return;
}
//
if (!this.checkLocation()) {
return
}
//
if (this.jobContent.allowPartialComplete == "TRUE") {
//
if (this.scanCount == this.subList.length) {
this.submitJob();
} else {
this.scanCount = getScanCount(this.subList);
if (this.scanCount < this.subList.length) {
} else if (this.scanCount < this.subList.length) {
//
if (this.jobContent.allowPartialComplete == "TRUE") {
//
this.submitJob();
} else {
//
this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交<br>' + "已经扫描[" + this.scanCount +
"]箱总共[" + this.subList.length + "]箱", res => {
"]箱总共[" + this
.subList.length + "]箱", res => {
if (res) {
this.openScanPopup();
}
});
} else {
this.submitJob();
}
}
},
async submitJob() {
submitJob() {
uni.showLoading({
title: "提交中....",
mask: true
});
var itemCodes = []
this.detailSource.forEach(item => {
itemCodes.push(item.itemCode)
})
getManagementPrecisions(itemCodes,this.toLocationCode, res => {
if (res.success) {
this.managementList = res.list;
var params = this.setParams();
console.log("提交参数",JSON.stringify(params));
// repleinshJobSubmit(this.id, params).then(res => {
// uni.hideLoading()
// if (res.data) {
// var hint = res.data.Number;
// this.showCommitSuccessMessage("" + hint)
// } else {
// this.showErrorMessage("")
// }
// }).catch(error => {
// uni.hideLoading()
// this.showErrorMessage(error)
// })
} else {
uni.hideLoading();
this.showErrorMessage(res.message);
}
});
//null,,
if (this.toLocationCode == null || this.toLocationCode == "") {
var params = this.setParams(false)
console.log("提交参数", JSON.stringify(params));
// repleinshJobSubmit( params).then(res => {
// if (res.data) {
// this.showCommitSuccessMessage("<br>" + res.data, )
// } else {
// this.showErrorMessage(""+res.msg)
// }
// uni.hideLoading()
// }).catch(error => {
// uni.hideLoading()
// this.showErrorMessage(error)
// })
} else {
var itemCodes = []
this.detailSource.forEach(item => {
itemCodes.push(item.itemCode)
})
//
getManagementPrecisions(itemCodes, this.toLocationCode, res => {
if (res.success) {
this.managementList = res.list;
var params = this.setParams(true)
console.log("提交参数", JSON.stringify(params));
// repleinshJobSubmit( params).then(res => {
// if (res.data) {
// this.showCommitSuccessMessage("<br>" + res.data, )
// } else {
// this.showErrorMessage(""+res.msg)
// }
// uni.hideLoading()
// }).catch(error => {
// uni.hideLoading()
// this.showErrorMessage(error)
// })
} else {
uni.hideLoading();
this.showErrorMessage(res.message);
}
});
}
},
setParams() {
checkLocation() {
var isPass = true;
if (this.toLocationCode == "") {
this.showMessageHint('请扫描收货库位', callback => {
this.$refs.comScanLocation.showLocation();
})
return isPass = false;
}
return isPass;
},
showMessageHint(hint, callback) {
this.$refs.comMessage.showErrorMessage(hint, res => {
if (res) {
callback()
}
});
},
setParams(queryModel) {
var subList = []
var createTime = getCurrDateTime();
var creator = this.$store.state.user.id
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
if (detail.scaned) {
var info = getPackingNumberAndBatch(this.managementList, detail.itemCode,
detail.packingNumber, detail.batch);
detail.toPackingNumber =info.packingNumber;
detail.toBatch =info.batch;
subList.push(detail)
var subItem = {};
Object.assign(subItem, detail)
if (queryModel) {
var info = getPackingNumberAndBatch(this.managementList, detail.itemCode,
detail.packingNumber, detail.batch);
subItem.package ="" ;
subItem.balance ="" ;
subItem.toPackingNumber = info.packingNumber;;
subItem.toContainerNumber = subItem.containerNumber
subItem.toBatch = info.batch;
subItem.toInventoryStatus = subItem.inventoryStatus
subItem.toLocationCode = this.toLocationCode
} else {
subItem.package ="" ;
subItem.balance ="" ;
subItem.toPackingNumber = subItem.packingNumber;
subItem.toContainerNumber = subItem.containerNumber
subItem.toBatch = subItem.toBatch;
subItem.toInventoryStatus = subItem.inventoryStatus
subItem.toLocationCode = ""
}
subList.push(subItem)
}
})
})
this.jobContent.subList = subList
this.jobContent.createTime = createTime;
this.jobContent.creator =creator;
this.jobContent.creator = creator;
return this.jobContent;
},

10
pages/scrap/job/scrapJobDetail.vue

@ -249,8 +249,14 @@
},
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationInfo = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},
async commit() {

10
pages/supplierDeliver/record/supplierDeliverRecordDetail.vue

@ -194,8 +194,14 @@
},
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationInfo = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},

10
pages/transfer/coms/comTransferRecord.vue

@ -234,8 +234,14 @@
},
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationCode = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},

10
pages/unPlanned/job/receiptJobDetail.vue

@ -282,8 +282,14 @@
},
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationInfo = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},
async commit() {

Loading…
Cancel
Save