Browse Source

修改发料功能

wms3.0_pda
niexiting 1 year ago
parent
commit
b897fb611f
  1. 1
      common/balance.js
  2. 1
      mycomponents/qty/balanceQtyEdit.vue
  3. 1
      mycomponents/record/recordComDetailCard.vue
  4. 4
      pages/issue/coms/comScanIssuePack.vue
  5. 60
      pages/issue/job/issueDetail.vue
  6. 1
      pages/issue/js/issue.js
  7. 1
      pages/productDismantle/record/productDismantleRecord.vue
  8. 2
      static/config.json

1
common/balance.js

@ -1,4 +1,3 @@
import { import {
getManagementPrecision, getManagementPrecision,
getBalanceByFilter getBalanceByFilter

1
mycomponents/qty/balanceQtyEdit.vue

@ -122,7 +122,6 @@
}, },
methods: { methods: {
openEditPopup(item, handleQty) { openEditPopup(item, handleQty) {
debugger;
this.dataContent = item this.dataContent = item
this.inventoryStatus = this.dataContent.inventoryStatus this.inventoryStatus = this.dataContent.inventoryStatus
this.toInventoryStatus = this.dataContent.toInventoryStatus this.toInventoryStatus = this.dataContent.toInventoryStatus

1
mycomponents/record/recordComDetailCard.vue

@ -141,7 +141,6 @@
edit(item) { edit(item) {
this.editItem = item; this.editItem = item;
debugger
this.$refs.balanceQtyEdit.openEditPopup(this.editItem, this.editItem.qty); this.$refs.balanceQtyEdit.openEditPopup(this.editItem, this.editItem.qty);
}, },

4
pages/issue/coms/comScanIssuePack.vue

@ -205,7 +205,6 @@
this.showErrorMessage('发料库位【' + fromlocation + '】不存在') this.showErrorMessage('发料库位【' + fromlocation + '】不存在')
} }
}, },
onScan(result) { onScan(result) {
try { try {
let that = this; let that = this;
@ -233,8 +232,7 @@
title: '加载中', title: '加载中',
mask: true mask: true
}) })
getBalanceByManagementPrecision(result.label, that.fromLocationCode, "OK", balanceRes => {
getBalanceByManagementPrecision(result.label, that.fromLocationCode, balanceRes => {
if (balanceRes.success) { if (balanceRes.success) {
if (balanceRes.data.list.length == 0) { if (balanceRes.data.list.length == 0) {
this.showErrorMessage('在来源库位[' + this.fromLocationCode + '],未查找到该包装的库存记录', this.showErrorMessage('在来源库位[' + this.fromLocationCode + '],未查找到该包装的库存记录',

60
pages/issue/job/issueDetail.vue

@ -197,7 +197,7 @@
}); });
}, },
submit() { // submit() {
//3. //3.
//:XXX //:XXX
// var isOutIn = getApp().globalData.feed_configList.filter( // var isOutIn = getApp().globalData.feed_configList.filter(
@ -207,13 +207,6 @@
// } // }
// }); // });
uni.showLoading({
title: '提交中...',
mask: true
})
this.submitJob();
// this.dataContent.itemCodeList.forEach(res => { // this.dataContent.itemCodeList.forEach(res => {
// if (res.handleQty > res.recommendQty) { // if (res.handleQty > res.recommendQty) {
@ -231,9 +224,9 @@
// }) // })
// } // }
// }) // })
}, // },
submitJob() { submit() {
uni.showLoading({ uni.showLoading({
title: "提交中....", title: "提交中....",
mask: true mask: true
@ -248,13 +241,13 @@
//使 //使
if (this.jobContent.useOnTheWayLocation == 'TRUE') { if (this.jobContent.useOnTheWayLocation == 'TRUE') {
this.submit(); this.submitJob();
} else { } else {
// //
getManagementPrecisions(itemCodes, locationCode, res => { getManagementPrecisions(itemCodes, locationCode, res => {
if (res.success) { if (res.success) {
this.managementList = res.list; this.managementList = res.list;
this.submit(); this.submitJob();
} else { } else {
uni.hideLoading(); uni.hideLoading();
this.showErrorMessage(res.message); this.showErrorMessage(res.message);
@ -263,6 +256,23 @@
} }
}, },
submitJob() {
var params = this.setParams()
console.log("提交参数", JSON.stringify(params));
issueJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成发货记录" + res.data)
} else {
this.showErrorMessage("提交失败" + res.msg)
}
}).catch(error => {
uni.hideLoading()
this.showErrorMessage(error)
})
},
setParams() { setParams() {
var subList = [] var subList = []
var createTime = getCurrDateTime(); var createTime = getCurrDateTime();
@ -316,24 +326,6 @@
return this.jobContent; return this.jobContent;
}, },
submit() {
var params = this.setParams()
console.log("提交参数", JSON.stringify(params));
issueJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成发货记录" + res.data)
} else {
this.showErrorMessage("提交失败" + res.msg)
}
}).catch(error => {
uni.hideLoading()
this.showErrorMessage(error)
})
},
cancel() { cancel() {
let that = this; let that = this;
this.$refs.comMessage.showQuestionMessage('是否要清空已扫描的零件和目标库位信息?', res => { this.$refs.comMessage.showQuestionMessage('是否要清空已扫描的零件和目标库位信息?', res => {
@ -415,6 +407,14 @@
this.$refs.comMessage.showCommitSuccess(); this.$refs.comMessage.showCommitSuccess();
}, },
showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => {
uni.navigateTo({
url: './issueJob'
})
})
},
showRescanMessage(message) { showRescanMessage(message) {
this.$refs.comMessage.showRescanMessage(message); this.$refs.comMessage.showRescanMessage(message);
}, },

1
pages/issue/js/issue.js

@ -33,7 +33,6 @@ export function createDetailInfo(location, detail) {
item.Locations.push(location); item.Locations.push(location);
} else { } else {
//在库位下查找批次 //在库位下查找批次
debugger;
let batch = location.Batchs.find(r => r.batch == detail.batch); let batch = location.Batchs.find(r => r.batch == detail.batch);
if (batch == undefined) { if (batch == undefined) {
let batch = createBatchInfo(detail); let batch = createBatchInfo(detail);

1
pages/productDismantle/record/productDismantleRecord.vue

@ -137,7 +137,6 @@
mounted() {}, mounted() {},
methods: { methods: {
getScanResult(result) { getScanResult(result) {
debugger
let balance = result.balance; let balance = result.balance;
let label = result.label; let label = result.label;
let pack = result.package; let pack = result.package;

2
static/config.json

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

Loading…
Cancel
Save