Browse Source

修改采购上架

pda_nev
李俊城 11 months ago
parent
commit
2e4ad01568
  1. 8
      fe/PDA/api/index.js
  2. 4
      fe/PDA/pages/container/containerCall.vue
  3. 37
      fe/PDA/pages/putaway/purchasePutaway.vue
  4. 12
      fe/PDA/pages/task/assembleIssueJobDetail.vue
  5. 12
      fe/PDA/pages/task/coatingIssuleJobDetail.vue
  6. 11
      fe/PDA/pages/task/injectionIssueJobDetail.vue
  7. 14
      fe/PDA/pages/task/kittingIssueJobDetail.vue
  8. 12
      fe/PDA/pages/task/sparePartIssueJobDetail.vue

8
fe/PDA/api/index.js

@ -1342,6 +1342,12 @@ export const semiPutaway = (params) => request(
data: params, data: params,
method: "post" method: "post"
}); });
//通过箱码获取采购订单详细箱码
export const getPurchaseDetailAsyncNew = (toPackingCode) => promise(
devUrl + "/api/pda/split-packing-rec/get-same-ponumber-list-by-topackingcode?toPackingCode=" + toPackingCode, { //
data: {},
method: "get"
});
// //
export const getPurchaseDetailAsync = (itemCode, packingCode) => promise( export const getPurchaseDetailAsync = (itemCode, packingCode) => promise(
@ -1620,7 +1626,7 @@ export const injectionRequestHandle = (id) => promise(
//注塑发料申请 获取任务号 //注塑发料申请 获取任务号
export const getInjectionRequestJobByRequest = (requestNumber) => promise( export const getInjectionRequestJobByRequest = (requestNumber) => promise(
devUrl + "/api/pda/job/injection-request/by-request-number/"+requestNumber, { devUrl + "/api/pda/job/injection-issue/by-request-number/"+requestNumber, {
method: 'post', method: 'post',
data: {} data: {}
}) })

4
fe/PDA/pages/container/containerCall.vue

@ -218,8 +218,6 @@
}, },
submit() { submit() {
this.showCommitSuccess("提交成功");
return;
if (this.containerModelCode == "") { if (this.containerModelCode == "") {
this.showMessage("请选择器具规格") this.showMessage("请选择器具规格")
return; return;
@ -237,7 +235,7 @@
console.log(JSON.stringify(params)) console.log(JSON.stringify(params))
containerRequest(params).then(res => { containerRequest(params).then(res => {
uni.hideLoading(); uni.hideLoading();
this.showMessage("提交成功"); this.showCommitSuccess("提交成功");
this.clearData(); this.clearData();
}).catch(err => { }).catch(err => {
uni.hideLoading(); uni.hideLoading();

37
fe/PDA/pages/putaway/purchasePutaway.vue

@ -79,7 +79,8 @@
getBalancesByFilterAsync, getBalancesByFilterAsync,
getPurchaseDetailAsync, getPurchaseDetailAsync,
purchasePutaway, purchasePutaway,
getPurchasePutawayAsyncDetail getPurchasePutawayAsyncDetail,
getPurchaseDetailAsyncNew
} from '@/api/index.js'; } from '@/api/index.js';
import { import {
@ -241,9 +242,27 @@
that.showScanMessage('箱码【' + packingCode + '】在【待检库】未查询到库存状态为【合格】的库存信息'); that.showScanMessage('箱码【' + packingCode + '】在【待检库】未查询到库存状态为【合格】的库存信息');
} else if (balanceRes.totalCount === 1) { } else if (balanceRes.totalCount === 1) {
let balanceItem = balanceRes.items[0]; let balanceItem = balanceRes.items[0];
//
let infoList = await getPurchaseDetailAsyncNew(balanceItem
.packingCode)
if (infoList) {
var fromTopPackingCode=""
for (var i = 0; i < infoList.length; i++) {
if(infoList[i].fromPackingCode==balanceItem.packingCode){
fromTopPackingCode=infoList[i].fromTopPackingCode
break
}
}
this.poNumber = infoList[0].purchaseInfo_PoNumber
this.showPopList=[]
infoList.forEach(res=>{
this.showPopList.push(res.fromTopPackingCode)
})
}
// //
let purchaseDetail = await getPurchaseDetailAsync(balanceItem.itemCode, balanceItem let purchaseDetail = await getPurchaseDetailAsync(balanceItem.itemCode, fromTopPackingCode);
.packingCode);
if (purchaseDetail.error) { if (purchaseDetail.error) {
that.showScanMessage(purchaseDetail.error.message); that.showScanMessage(purchaseDetail.error.message);
} else { } else {
@ -260,14 +279,16 @@
let locationErpCode = purchaseDetail.recommendErpCode; let locationErpCode = purchaseDetail.recommendErpCode;
if (this.itemList.length == 0) { if (this.itemList.length == 0) {
this.recommendErpLocationCode = locationErpCode; this.recommendErpLocationCode = locationErpCode;
this.checkData(balanceItem, purchaseDetail) // this.checkData(balanceItem, purchaseDetail)
this.createItem(balanceItem, purchaseDetail);
} else { } else {
if (this.recommendErpLocationCode != locationErpCode) { if (this.recommendErpLocationCode != locationErpCode) {
this.showScanMessage('当前零件的ERP储位是【' + locationErpCode + '】与【' + this this.showScanMessage('当前零件的ERP储位是【' + locationErpCode + '】与【' + this
.recommendErpLocationCode + .recommendErpLocationCode +
'】不是同一ERP储位,请重新扫描'); '】不是同一ERP储位,请重新扫描');
} else { } else {
this.checkData(balanceItem, purchaseDetail) this.createItem(balanceItem, purchaseDetail);
// this.checkData(balanceItem, purchaseDetail)
} }
} }
}, },
@ -500,8 +521,8 @@
number: "", number: "",
worker: localStorage.userName_CN == "" ? localStorage.userName : localStorage.userName_CN, worker: localStorage.userName_CN == "" ? localStorage.userName : localStorage.userName_CN,
jobNumber: "", jobNumber: "",
supplierCode:"", supplierCode: "",
asnNumber:"", asnNumber: "",
details: [] details: []
} }
@ -606,4 +627,4 @@
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
</style> </style>

12
fe/PDA/pages/task/assembleIssueJobDetail.vue

@ -389,17 +389,17 @@
"]不一致,是否继续发料?", "]不一致,是否继续发料?",
res => { res => {
if (res) { if (res) {
this.setData(result,data) this.setData(result,data,fromData)
} }
}) })
}) })
} }
} else { } else {
this.setData(result,data) this.setData(result,data,fromData)
} }
}, },
setData(result,data) { setData(result,data,fromData) {
this.getBalance(result, res => { this.getBalance(result, res => {
if (res.totalCount > 0) { if (res.totalCount > 0) {
var balancesItem = res.items[0]; var balancesItem = res.items[0];
@ -414,7 +414,8 @@
item.handledToLot = balancesItem.lot item.handledToLot = balancesItem.lot
item.handledToWarehouseCode = balancesItem.warehouseCode item.handledToWarehouseCode = balancesItem.warehouseCode
item.handledToQty = balancesItem.qty item.handledToQty = balancesItem.qty
item.stdPackQty =balancesItem.stdPackQty
item.handledFromContainerCode = balancesItem.containerCode item.handledFromContainerCode = balancesItem.containerCode
item.handledFromPackingCode = balancesItem.packingCode item.handledFromPackingCode = balancesItem.packingCode
item.handledFromSupplierBatch = balancesItem.supplierBatch item.handledFromSupplierBatch = balancesItem.supplierBatch
@ -438,7 +439,8 @@
item.handledToLot = balancesItem.lot item.handledToLot = balancesItem.lot
item.handledToWarehouseCode = balancesItem.warehouseCode item.handledToWarehouseCode = balancesItem.warehouseCode
item.handledToQty = balancesItem.qty item.handledToQty = balancesItem.qty
item.stdPackQty =balancesItem.stdPackQty
item.handledFromContainerCode = balancesItem.containerCode item.handledFromContainerCode = balancesItem.containerCode
item.handledFromPackingCode = balancesItem.packingCode item.handledFromPackingCode = balancesItem.packingCode
item.handledFromSupplierBatch = balancesItem.supplierBatch item.handledFromSupplierBatch = balancesItem.supplierBatch

12
fe/PDA/pages/task/coatingIssuleJobDetail.vue

@ -389,17 +389,17 @@
"]不一致,是否继续发料?", "]不一致,是否继续发料?",
res => { res => {
if (res) { if (res) {
this.setData(result,data) this.setData(result,data,fromData)
} }
}) })
}) })
} }
} else { } else {
this.setData(result,data) this.setData(result,data,fromData)
} }
}, },
setData(result,data) { setData(result,data,fromData) {
this.getBalance(result, res => { this.getBalance(result, res => {
if (res.totalCount > 0) { if (res.totalCount > 0) {
var balancesItem = res.items[0]; var balancesItem = res.items[0];
@ -414,7 +414,8 @@
item.handledToLot = balancesItem.lot item.handledToLot = balancesItem.lot
item.handledToWarehouseCode = balancesItem.warehouseCode item.handledToWarehouseCode = balancesItem.warehouseCode
item.handledToQty = balancesItem.qty item.handledToQty = balancesItem.qty
item.stdPackQty =balancesItem.stdPackQty
item.handledFromContainerCode = balancesItem.containerCode item.handledFromContainerCode = balancesItem.containerCode
item.handledFromPackingCode = balancesItem.packingCode item.handledFromPackingCode = balancesItem.packingCode
item.handledFromSupplierBatch = balancesItem.supplierBatch item.handledFromSupplierBatch = balancesItem.supplierBatch
@ -438,7 +439,8 @@
item.handledToLot = balancesItem.lot item.handledToLot = balancesItem.lot
item.handledToWarehouseCode = balancesItem.warehouseCode item.handledToWarehouseCode = balancesItem.warehouseCode
item.handledToQty = balancesItem.qty item.handledToQty = balancesItem.qty
item.stdPackQty =balancesItem.stdPackQty
item.handledFromContainerCode = balancesItem.containerCode item.handledFromContainerCode = balancesItem.containerCode
item.handledFromPackingCode = balancesItem.packingCode item.handledFromPackingCode = balancesItem.packingCode
item.handledFromSupplierBatch = balancesItem.supplierBatch item.handledFromSupplierBatch = balancesItem.supplierBatch

11
fe/PDA/pages/task/injectionIssueJobDetail.vue

@ -389,18 +389,18 @@
"]不一致,是否继续发料?", "]不一致,是否继续发料?",
res => { res => {
if (res) { if (res) {
this.setData(result,data) this.setData(result,data,fromData)
} }
}) })
}) })
} }
} else { } else {
this.setData(result,data) this.setData(result,data,fromData)
} }
}, },
setData(result,data) { setData(result,data,fromData) {
this.getBalance(result, res => { this.getBalance(result, res => {
if (res.totalCount > 0) { if (res.totalCount > 0) {
var balancesItem = res.items[0]; var balancesItem = res.items[0];
@ -415,6 +415,7 @@
item.handledToLot = balancesItem.lot item.handledToLot = balancesItem.lot
item.handledToWarehouseCode = balancesItem.warehouseCode item.handledToWarehouseCode = balancesItem.warehouseCode
item.handledToQty = balancesItem.qty item.handledToQty = balancesItem.qty
item.stdPackQty =balancesItem.stdPackQty
item.handledFromContainerCode = balancesItem.containerCode item.handledFromContainerCode = balancesItem.containerCode
item.handledFromPackingCode = balancesItem.packingCode item.handledFromPackingCode = balancesItem.packingCode
@ -439,7 +440,7 @@
item.handledToLot = balancesItem.lot item.handledToLot = balancesItem.lot
item.handledToWarehouseCode = balancesItem.warehouseCode item.handledToWarehouseCode = balancesItem.warehouseCode
item.handledToQty = balancesItem.qty item.handledToQty = balancesItem.qty
item.stdPackQty =balancesItem.stdPackQty
item.handledFromContainerCode = balancesItem.containerCode item.handledFromContainerCode = balancesItem.containerCode
item.handledFromPackingCode = balancesItem.packingCode item.handledFromPackingCode = balancesItem.packingCode
item.handledFromSupplierBatch = balancesItem.supplierBatch item.handledFromSupplierBatch = balancesItem.supplierBatch
@ -567,7 +568,7 @@
mask: true mask: true
}); });
let params = that.details[0]; let params = that.details[0];
// console.log("",JSON.stringify(params)) console.log("提交",JSON.stringify(params))
finshInjectionIssueJob(that.id, params.id, params) finshInjectionIssueJob(that.id, params.id, params)
.then(res => { .then(res => {
uni.hideLoading(); uni.hideLoading();

14
fe/PDA/pages/task/kittingIssueJobDetail.vue

@ -389,18 +389,18 @@
"]不一致,是否继续发料?", "]不一致,是否继续发料?",
res => { res => {
if (res) { if (res) {
this.setData(result,data) this.setData(result,data,fromData)
} }
}) })
}) },100)
} }
} else { } else {
this.setData(result,data) this.setData(result,data,fromData)
} }
}, },
setData(result,data) { setData(result,data,fromData) {
this.getBalance(result, res => { this.getBalance(result, res => {
if (res.totalCount > 0) { if (res.totalCount > 0) {
var balancesItem = res.items[0]; var balancesItem = res.items[0];
@ -415,7 +415,8 @@
item.handledToLot = balancesItem.lot item.handledToLot = balancesItem.lot
item.handledToWarehouseCode = balancesItem.warehouseCode item.handledToWarehouseCode = balancesItem.warehouseCode
item.handledToQty = balancesItem.qty item.handledToQty = balancesItem.qty
item.stdPackQty =balancesItem.stdPackQty
item.handledFromContainerCode = balancesItem.containerCode item.handledFromContainerCode = balancesItem.containerCode
item.handledFromPackingCode = balancesItem.packingCode item.handledFromPackingCode = balancesItem.packingCode
item.handledFromSupplierBatch = balancesItem.supplierBatch item.handledFromSupplierBatch = balancesItem.supplierBatch
@ -439,7 +440,8 @@
item.handledToLot = balancesItem.lot item.handledToLot = balancesItem.lot
item.handledToWarehouseCode = balancesItem.warehouseCode item.handledToWarehouseCode = balancesItem.warehouseCode
item.handledToQty = balancesItem.qty item.handledToQty = balancesItem.qty
item.stdPackQty =balancesItem.stdPackQty
item.handledFromContainerCode = balancesItem.containerCode item.handledFromContainerCode = balancesItem.containerCode
item.handledFromPackingCode = balancesItem.packingCode item.handledFromPackingCode = balancesItem.packingCode
item.handledFromSupplierBatch = balancesItem.supplierBatch item.handledFromSupplierBatch = balancesItem.supplierBatch

12
fe/PDA/pages/task/sparePartIssueJobDetail.vue

@ -389,18 +389,18 @@
"]不一致,是否继续发料?", "]不一致,是否继续发料?",
res => { res => {
if (res) { if (res) {
this.setData(result,data) this.setData(result,data,fromData)
} }
}) })
}) })
} }
} else { } else {
this.setData(result,data) this.setData(result,data,fromData)
} }
}, },
setData(result,data) { setData(result,data,fromData) {
this.getBalance(result, res => { this.getBalance(result, res => {
if (res.totalCount > 0) { if (res.totalCount > 0) {
var balancesItem = res.items[0]; var balancesItem = res.items[0];
@ -415,7 +415,8 @@
item.handledToLot = balancesItem.lot item.handledToLot = balancesItem.lot
item.handledToWarehouseCode = balancesItem.warehouseCode item.handledToWarehouseCode = balancesItem.warehouseCode
item.handledToQty = balancesItem.qty item.handledToQty = balancesItem.qty
item.stdPackQty =balancesItem.stdPackQty
item.handledFromContainerCode = balancesItem.containerCode item.handledFromContainerCode = balancesItem.containerCode
item.handledFromPackingCode = balancesItem.packingCode item.handledFromPackingCode = balancesItem.packingCode
item.handledFromSupplierBatch = balancesItem.supplierBatch item.handledFromSupplierBatch = balancesItem.supplierBatch
@ -439,7 +440,8 @@
item.handledToLot = balancesItem.lot item.handledToLot = balancesItem.lot
item.handledToWarehouseCode = balancesItem.warehouseCode item.handledToWarehouseCode = balancesItem.warehouseCode
item.handledToQty = balancesItem.qty item.handledToQty = balancesItem.qty
item.stdPackQty =balancesItem.stdPackQty
item.handledFromContainerCode = balancesItem.containerCode item.handledFromContainerCode = balancesItem.containerCode
item.handledFromPackingCode = balancesItem.packingCode item.handledFromPackingCode = balancesItem.packingCode
item.handledFromSupplierBatch = balancesItem.supplierBatch item.handledFromSupplierBatch = balancesItem.supplierBatch

Loading…
Cancel
Save