From 44ad86519e81033a6f1f382c778e2b3b6e7c217f Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Tue, 15 Oct 2024 14:17:01 +0800
Subject: [PATCH 001/201] =?UTF-8?q?YT-386pda=E8=A3=85=E9=85=8D=E7=9B=B4?=
=?UTF-8?q?=E6=8E=A5=E4=B8=8A=E6=9E=B6=EF=BC=8C=E6=89=AB=E6=8F=8F=E7=AE=B1?=
=?UTF-8?q?=E7=A0=81=E6=8A=A5=E9=94=99=20HPQ;V1.0;I399.973-085;P;B20241014?=
=?UTF-8?q?;Q1;UPC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/mycomponents/scan/winComScanFg.vue | 4 +---
src/pages/productPutaway/record/productPutawayRecord.vue | 4 +---
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/mycomponents/scan/winComScanFg.vue b/src/mycomponents/scan/winComScanFg.vue
index e0f91a60..736a3f47 100644
--- a/src/mycomponents/scan/winComScanFg.vue
+++ b/src/mycomponents/scan/winComScanFg.vue
@@ -58,9 +58,7 @@
import {
getMesPackInfo
} from '@/api/request2.js';
- import {
- Exception
- } from 'sass';
+
export default {
name: "winComScan",
diff --git a/src/pages/productPutaway/record/productPutawayRecord.vue b/src/pages/productPutaway/record/productPutawayRecord.vue
index a00f1372..adec98a1 100644
--- a/src/pages/productPutaway/record/productPutawayRecord.vue
+++ b/src/pages/productPutaway/record/productPutawayRecord.vue
@@ -288,15 +288,13 @@
getrecommendLocationExpectin(param).then(result => {
uni.hideLoading();
let item = this.detailSource.find(res => {
- if (res.itemCode == balance.itemCode && res.containerNumber == balance
- .packingNumber) {
+ if (res.itemCode == balance.itemCode) {
return res
}
})
item.toLocationCode = result.data.code;
item.expectinNumber = result.data.expectinNumber;
this.$forceUpdate();
-
}).catch(error => {
uni.hideLoading()
this.showErrorMessage(error);
From da92619f9a115715942ec0f2b218355dfdd3d820 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Tue, 15 Oct 2024 15:37:07 +0800
Subject: [PATCH 002/201] =?UTF-8?q?YT-403pda=20=E6=89=AB=E6=8F=8F2?=
=?UTF-8?q?=E4=B8=AA=E6=89=B9=E6=AC=A1=EF=BC=8C=E6=B2=A1=E6=9C=89=E5=8C=BA?=
=?UTF-8?q?=E5=88=86=E6=89=B9=E6=AC=A1=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../balance/recommendBalanceBatch.vue | 4 +-
.../coms/comDeliverDetailCardBatch.vue | 5 +-
.../deliver/coms/comScanDeliverPackBatch.vue | 54 ++++++++++++-------
src/pages/deliver/job/deliverDetailBatch.vue | 3 +-
4 files changed, 40 insertions(+), 26 deletions(-)
diff --git a/src/mycomponents/balance/recommendBalanceBatch.vue b/src/mycomponents/balance/recommendBalanceBatch.vue
index 10acdfd1..b682d4d2 100644
--- a/src/mycomponents/balance/recommendBalanceBatch.vue
+++ b/src/mycomponents/balance/recommendBalanceBatch.vue
@@ -6,8 +6,8 @@
推荐
-
-
+
+
diff --git a/src/pages/deliver/coms/comDeliverDetailCardBatch.vue b/src/pages/deliver/coms/comDeliverDetailCardBatch.vue
index 76008fbb..f8138715 100644
--- a/src/pages/deliver/coms/comDeliverDetailCardBatch.vue
+++ b/src/pages/deliver/coms/comDeliverDetailCardBatch.vue
@@ -3,11 +3,11 @@
-
+
+ @click="swipeClick($event,item,index)" style='padding:20rpx 0px 5px 0px;align-items: center;'>
r.itemCode == itemCode);
- item.scaned =true
+ // item.scaned =true
let fromLocation = that.toLocation.find(l => l.fromLocationCode == that.fromLocationCode);
// 成品发货任务--同一物料,可以扫描提交不在任务中的库位
if(!fromLocation){
@@ -334,7 +334,6 @@
item.Locations.push(fromLocation)
}
if (fromLocation != undefined) {
- console.log(34444)
let batch = fromLocation.batch;
if (batch != undefined) {
that.addRecord(item.batch, label, balance, packageInfo)
@@ -402,27 +401,30 @@
balance.packQty = packageInfo.packQty
balance.packUnit = packageInfo.packUnit
let record = {
- scaned: true,
- itemCode: label.itemCode,
- packingNumber: label.packingNumber,
- batch: label.batch,
- qty: Number(label.qty) > Number(balance.qty) ? Number(balance.qty) : Number(label.qty),
- uom: balance.uom,
- inventoryStatus: balance.inventoryStatus,
- balance: balance,
- toLocationCode: this.toLocationCode,
- supplierCode: label.supplierCode,
- packUnit: packageInfo.packUnit,
- packQty: packageInfo.packQty,
- singlePrice:balance.singlePrice,
- amount:balance.amount
+ scaned: true,
+ itemCode: label.itemCode,
+ packingNumber: label.packingNumber,
+ parentPackingNumber: packageInfo.parentNumber,
+ batch: label.batch,
+ // qty: Number(balance.qty),
+ // qty: Number(label.qty) > Number(balance.qty) ? Number(balance.qty) : Number(label.qty),
+ qty: Number(balance.qty),
+ handleQty:0,
+ uom: balance.uom,
+ inventoryStatus: balance.inventoryStatus,
+ balance: balance,
+ toLocationCode: this.toLocationCode,
+ supplierCode: label.supplierCode,
+ packUnit: packageInfo.packUnit,
+ packQty: packageInfo.packQty,
+ fromLocationCode:balance.locationCode,
}
return record;
},
calcBatchHandleQty(batch,label,balance) {
this.dataContent.subList.forEach(item => {
- if(item.itemCode == balance.itemCode&&item.batch == batch){
+ if(item.itemCode == label.itemCode&&item.batch == label.batch){
item.handleQty = item.handleQty || 0
item.handleQty = calc.add(item.handleQty, label.qty);
}
@@ -430,8 +432,22 @@
},
addRecord(batch, label, balance, packageInfo) {
- this.calcBatchHandleQty(batch,label,balance);
- this.getfocus();
+ var checkData = this.dataContent.subList.find(r => {
+ if (r.batch == balance.batch) {
+ return r;
+ }
+ })
+ if (checkData) {
+ checkData.scaned = true
+ this.calcBatchHandleQty(batch,label,balance);
+ this.getfocus();
+ } else {
+ let record = this.creatRecord(label, balance, packageInfo);
+ this.dataContent.subList.push(record);
+ this.calcBatchHandleQty(batch,label,balance);
+ this.getfocus();
+ this.$emit("afterScan");
+ }
},
getfocus() {
diff --git a/src/pages/deliver/job/deliverDetailBatch.vue b/src/pages/deliver/job/deliverDetailBatch.vue
index 0ae33379..ef0be975 100644
--- a/src/pages/deliver/job/deliverDetailBatch.vue
+++ b/src/pages/deliver/job/deliverDetailBatch.vue
@@ -312,7 +312,7 @@
}
subItem.recordList = []
let record = {};
- record.handleQty = r.qty;
+ record.handleQty = r.handleQty;
record.toContainerNumber = r.ContainerNumber;
record.toInventoryStatus = r.inventoryStatus;
record.toLocationCode = subItem.toLocationCode;
@@ -438,7 +438,6 @@
var datacontent = {}
//克隆对象,深度克隆,防止双向绑定同一个变量
// Object.assign(datacontent, this.detailSource);
- console.log(2323)
this.$refs.comScanIssuePack.openScanPopup(this.detailSource, this.jobContent);
},
closeScanPopup() {
From 227c5f86876dfdc197d262b3b5af128b9cab6af9 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Tue, 15 Oct 2024 16:47:22 +0800
Subject: [PATCH 003/201] =?UTF-8?q?YT-410=E5=8F=91=E6=96=99=E4=BB=BB?=
=?UTF-8?q?=E5=8A=A1=EF=BC=8C=E6=89=AB=E6=8F=8F=E6=95=B0=E9=87=8F=E4=B8=8E?=
=?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=95=B0=E9=87=8F=E4=B8=8D=E4=B8=80=E8=87=B4?=
=?UTF-8?q?=E6=97=B6=EF=BC=8C=E7=82=B9=E5=87=BB=E5=8F=96=E6=B6=88=EF=BC=8C?=
=?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=B7=BB=E5=8A=A0=E5=88=B0=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E4=B8=8A=EF=BC=8C=E5=86=8D=E6=AC=A1=E6=89=AB=E6=8F=8F=E6=8F=90?=
=?UTF-8?q?=E7=A4=BA=E4=B8=80=E6=89=AB=E6=8F=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/issue/coms/comScanIssuePack.vue | 7 ++++---
src/pages/issue/job/issueDetail.vue | 18 ++++++++++++++++++
2 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/src/pages/issue/coms/comScanIssuePack.vue b/src/pages/issue/coms/comScanIssuePack.vue
index c7994f2d..e4e88005 100644
--- a/src/pages/issue/coms/comScanIssuePack.vue
+++ b/src/pages/issue/coms/comScanIssuePack.vue
@@ -916,9 +916,8 @@
if (item != undefined) {
item.Locations.forEach(l => {
- let batch = l.Batchs.find(b => b.packingNumber == record.packingNumber && b
+ let batch = l.Batchs.find(b => b
.batch == record.batch);
-
if (batch && batch.Records && batch.Records.length > 0) {
let rIndex = batch.Records.findIndex(r => r.packingNumber == record
.packingNumber && r.batch == record.batch);
@@ -931,7 +930,9 @@
}
});
},
-
+ clearList(){
+ this.issueRecord=[]
+ },
packGetFocus() {
if (this.$refs.comscan) {
this.$refs.comscan.getfocus();
diff --git a/src/pages/issue/job/issueDetail.vue b/src/pages/issue/job/issueDetail.vue
index 0c10e75f..06d17c2f 100644
--- a/src/pages/issue/job/issueDetail.vue
+++ b/src/pages/issue/job/issueDetail.vue
@@ -475,6 +475,24 @@
//防止重复点击
this.$throttle(this.submit, 2000, this)()
} else {
+ // let record = this.creatRecord(label, balance, packageInfo);
+ // batch.Records.push(record);
+ // this.issueRecord.unshift(record)
+ // this.calcBatchHandleQty(batch);
+ // this.getfocus();
+ // this.$emit("afterScan");
+ this.detailSource.forEach(detail => {
+ detail.Items.forEach(item => {
+ taskQty =calc.add(taskQty,item.qty)
+ item.Locations.forEach(lco => {
+ lco.Batchs.forEach(batch => {
+ batch.Records = []
+ })
+ })
+ })
+ })
+ this.$refs.comScanIssuePack.clearList()
+
this.scanPopupGetFocus()
}
});
From bcae9a345264fcc94081497023cf1034c4491934 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 16 Oct 2024 10:40:26 +0800
Subject: [PATCH 004/201] =?UTF-8?q?YT-408pda=E6=8C=89=E8=AE=A1=E5=88=92?=
=?UTF-8?q?=E6=8A=A5=E5=B7=A5=E3=80=81=E6=97=A0=E8=AE=A1=E5=88=92=E6=8A=A5?=
=?UTF-8?q?=E5=B7=A5=EF=BC=8C=E5=8E=BB=E6=8E=89=E5=88=9B=E5=BB=BA=E6=A3=80?=
=?UTF-8?q?=E9=AA=8C=E7=94=B3=E8=AF=B7=E5=BC=80=E5=85=B3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/fg/coms/comNoReceiptPopup.vue | 16 +++++++++++++---
src/pages/fg/coms/comReceiptPopup.vue | 17 +++++++++++++----
src/pages/fg/receiptByPlan.vue | 4 +---
src/pages/fg/receiptNoPlan.vue | 4 +---
src/pages/index/index.vue | 2 +-
5 files changed, 29 insertions(+), 14 deletions(-)
diff --git a/src/pages/fg/coms/comNoReceiptPopup.vue b/src/pages/fg/coms/comNoReceiptPopup.vue
index 7014a8da..84bb8a81 100644
--- a/src/pages/fg/coms/comNoReceiptPopup.vue
+++ b/src/pages/fg/coms/comNoReceiptPopup.vue
@@ -112,7 +112,7 @@
-
+
创建检验申请
@@ -156,6 +156,10 @@
import {
calc
} from '@/common/calc.js';
+
+ import {
+ getSwitchInfoByCode
+ } from '@/common/basic.js';
import uom from '@/mycomponents/qty/uom.vue'
import packQty from '@/mycomponents/qty/packQty.vue'
@@ -200,7 +204,8 @@
workshop: "",
bomVersion: "",
putAwayRequestSwitch:true,
- putAwayInspectSwitch:true
+ putAwayInspectSwitch:true,
+ EnableQms:true
}
},
props: {
@@ -213,6 +218,9 @@
default: []
},
},
+ mounted() {
+ this.EnableQms = getSwitchInfoByCode('EnableQms')
+ },
methods: {
openRequestPopup() {
@@ -291,7 +299,9 @@
this.showErrorMessage("请选择包装规格")
return
}
-
+ if (!this.EnableQms) {
+ this.putAwayInspectSwitch = false
+ }
this.callback();
},
diff --git a/src/pages/fg/coms/comReceiptPopup.vue b/src/pages/fg/coms/comReceiptPopup.vue
index 4f7bf20a..dff4d848 100644
--- a/src/pages/fg/coms/comReceiptPopup.vue
+++ b/src/pages/fg/coms/comReceiptPopup.vue
@@ -107,7 +107,7 @@
-
+
创建检验申请
@@ -151,7 +151,9 @@
import {
calc
} from '@/common/calc.js';
-
+import {
+ getSwitchInfoByCode
+ } from '@/common/basic.js';
import uom from '@/mycomponents/qty/uom.vue'
import packQty from '@/mycomponents/qty/packQty.vue'
import balanceStatus from '@/mycomponents/status/balanceStatus.vue'
@@ -193,7 +195,8 @@
fgLocationCode: "",
rawLocationCode: "",
putAwayRequestSwitch:true,
- putAwayInspectSwitch:true
+ putAwayInspectSwitch:true,
+ EnableQms:true
}
},
props: {
@@ -206,6 +209,10 @@
default: []
},
},
+ mounted() {
+ this.EnableQms = getSwitchInfoByCode('EnableQms')
+ console.log(777,this.EnableQms)
+ },
methods: {
openRequestPopup() {
this.initData();
@@ -279,7 +286,9 @@
this.showErrorMessage("请选择包装规格")
return
}
-
+ if (!this.EnableQms) {
+ this.putAwayInspectSwitch = false
+ }
this.callback();
},
diff --git a/src/pages/fg/receiptByPlan.vue b/src/pages/fg/receiptByPlan.vue
index a112d5c4..44b65e22 100644
--- a/src/pages/fg/receiptByPlan.vue
+++ b/src/pages/fg/receiptByPlan.vue
@@ -130,9 +130,7 @@
import winScanFgLabel from "@/mycomponents/scan/winScanFgLabel.vue"
import comFgCard from "@/pages/productReceipt/coms/comFgCard.vue"
import light from '@/mycomponents/balance/light.vue'
- import {
- Exception
- } from 'sass';
+
import {
nextTick
} from 'vue';
diff --git a/src/pages/fg/receiptNoPlan.vue b/src/pages/fg/receiptNoPlan.vue
index d4625d95..3fd09b51 100644
--- a/src/pages/fg/receiptNoPlan.vue
+++ b/src/pages/fg/receiptNoPlan.vue
@@ -124,9 +124,7 @@
import winScanFgLabel from "@/mycomponents/scan/winScanFgLabel.vue"
import comFgCard from "@/pages/productReceipt/coms/comFgCard.vue"
import light from '@/mycomponents/balance/light.vue'
- import {
- Exception
- } from 'sass';
+
export default {
components: {
diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index 0fb9ea53..bde4f960 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -388,7 +388,7 @@
console.log("包装规格获取失败", res)
})
- var switchCode="FgPutawayLocationCodeValidate,SemiPutawayLocationCodeValidate,PurchasePutawayToLocationCodeValidate,IssueToLocationCodeValidate,fgProductReceipCommitValidate,semiProductReceipCommitValidate,purchasereceiptPrintPDA,purchaseReceiptLocationCodeValidate,CreateProductputawayRequestAfterProductreceiptRecordCreated";
+ var switchCode="EnableQms,FgPutawayLocationCodeValidate,SemiPutawayLocationCodeValidate,PurchasePutawayToLocationCodeValidate,IssueToLocationCodeValidate,fgProductReceipCommitValidate,semiProductReceipCommitValidate,purchasereceiptPrintPDA,purchaseReceiptLocationCodeValidate,CreateProductputawayRequestAfterProductreceiptRecordCreated";
getSwitchByCode(switchCode).then(res=>{
uni.setStorageSync("switch", res.data)
From b6b3888d74f9f4c02e37b75d1045a41f9b75946f Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 16 Oct 2024 15:16:47 +0800
Subject: [PATCH 005/201] =?UTF-8?q?YT-406=E8=A3=85=E9=85=8D=E5=88=B6?=
=?UTF-8?q?=E5=93=81=E4=B8=8A=E6=9E=B6=EF=BC=8Cpc=E7=94=B3=E8=AF=B7?=
=?UTF-8?q?=E5=90=8C=E4=B8=80=E7=89=A9=E6=96=99=E4=B8=8D=E5=90=8C=E6=89=B9?=
=?UTF-8?q?=E6=AC=A1=EF=BC=8Cpda=E6=98=BE=E7=A4=BA=E6=88=90=E4=B8=80?=
=?UTF-8?q?=E4=B8=AA=E6=89=B9=E6=AC=A1=E4=B8=80=E5=85=B1=E7=9A=84=E6=95=B0?=
=?UTF-8?q?=E9=87=8F=EF=BC=8C=E5=BA=94=E4=B8=8D=E5=90=8C=E6=89=B9=E6=AC=A1?=
=?UTF-8?q?=E5=88=86=E5=BC=80=E6=98=BE=E7=A4=BA=E6=95=B0=E9=87=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/common/detail.js | 2 +-
.../job/productPutawayDetail.vue | 22 ++++++++++++++-----
2 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/src/common/detail.js b/src/common/detail.js
index ac1b3ed2..47e53bb7 100644
--- a/src/common/detail.js
+++ b/src/common/detail.js
@@ -49,7 +49,7 @@ export function getDataSource(subList) {
let items = [];
subList.forEach(detail => {
var item = items.find(r =>
- r.itemCode == detail.itemCode)
+ r.itemCode == detail.itemCode && r.batch == detail.batch )
if (item == undefined) {
item = createItemInfo(detail);
let newDetail = createDetailInfo(detail); //
diff --git a/src/pages/productPutaway/job/productPutawayDetail.vue b/src/pages/productPutaway/job/productPutawayDetail.vue
index bc151e08..22479ff0 100644
--- a/src/pages/productPutaway/job/productPutawayDetail.vue
+++ b/src/pages/productPutaway/job/productPutawayDetail.vue
@@ -334,15 +334,24 @@
var locationCode = result.balance.locationCode;
var inventoryStatus = result.balance.inventoryStatus;
var detail = this.detailSource.find(r => r.itemCode == itemCode);
-
if (detail == undefined) {
this.showErrorMessage("物料号【" + itemCode + "】不在列表中")
} else {
- var itemDetail = detail.subList.find(r => {
- return r.batch == batch &&
- r.fromLocationCode == result.fromLocationCode
- })
- if (itemDetail == undefined) {
+ // var itemDetail = detail.subList.find(r => {
+ // return r.batch == result.label.batch &&
+ // r.fromLocationCode == result.fromLocationCode
+ // })
+ let itemDetail = ''
+ this.detailSource.find(item => {
+ const itemDetail1 = item.subList.find(r => {
+ return r.batch == result.label.batch && r.fromLocationCode == result.fromLocationCode
+ })
+ if(itemDetail1){
+ itemDetail = itemDetail1
+ }
+ console.log(99,itemDetail1)
+ });
+ if (!itemDetail) {
this.showErrorMessage("批次【" + batch + "】库位【" + result
.fromLocationCode + "】不在列表中")
} else {
@@ -379,6 +388,7 @@
}
}
} catch (e) {
+ console.log(2333,e)
this.showMessage(e.message)
}
},
From 1e30932d085cbb92b89c12d757fcabc53296f295 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 16 Oct 2024 15:33:07 +0800
Subject: [PATCH 006/201] =?UTF-8?q?YT-425pda=E5=88=B6=E5=93=81=E5=9B=9E?=
=?UTF-8?q?=E6=94=B6=E4=BB=BB=E5=8A=A1=EF=BC=8C=E4=BF=AE=E6=94=B9=E6=95=B0?=
=?UTF-8?q?=E9=87=8F=E4=B8=8D=E6=88=90=E5=8A=9FYT-418pda=E9=A2=84=E7=94=9F?=
=?UTF-8?q?=E4=BA=A7=E6=94=B6=E8=B4=A7=EF=BC=8C=E6=89=AB=E6=8F=8F=E6=8A=A5?=
=?UTF-8?q?=E9=94=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/productPutaway/job/productPutawayDetail.vue | 4 ----
src/pages/productReceipt/job/productReceiptDetail.vue | 5 ++---
src/pages/productRecycle/job/productRecycleJobDetail.vue | 2 +-
3 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/src/pages/productPutaway/job/productPutawayDetail.vue b/src/pages/productPutaway/job/productPutawayDetail.vue
index 22479ff0..a88b3e31 100644
--- a/src/pages/productPutaway/job/productPutawayDetail.vue
+++ b/src/pages/productPutaway/job/productPutawayDetail.vue
@@ -337,10 +337,6 @@
if (detail == undefined) {
this.showErrorMessage("物料号【" + itemCode + "】不在列表中")
} else {
- // var itemDetail = detail.subList.find(r => {
- // return r.batch == result.label.batch &&
- // r.fromLocationCode == result.fromLocationCode
- // })
let itemDetail = ''
this.detailSource.find(item => {
const itemDetail1 = item.subList.find(r => {
diff --git a/src/pages/productReceipt/job/productReceiptDetail.vue b/src/pages/productReceipt/job/productReceiptDetail.vue
index 2d8887dc..0eb850ba 100644
--- a/src/pages/productReceipt/job/productReceiptDetail.vue
+++ b/src/pages/productReceipt/job/productReceiptDetail.vue
@@ -285,13 +285,12 @@
} else {
detail.scaned = true
var itemDetail = detail.subList.find(r =>
- r.packingNumber == packingNumber &&
r.batch == batch);
if (itemDetail == undefined) {
- this.showErrorMessage("箱码[" + packingNumber + "]" + "批次[" + batch + "]不在任务列表中")
+ this.showErrorMessage("批次[" + batch + "]不在任务列表中")
} else {
if (itemDetail.scaned) {
- this.showErrorMessage("箱码[" + packingNumber + "]" + "批次[" + batch + "]已经扫描")
+ this.showErrorMessage("批次[" + batch + "]已经扫描")
} else {
itemDetail.scaned = true;
itemDetail.handleQty = Number(result.label.qty);
diff --git a/src/pages/productRecycle/job/productRecycleJobDetail.vue b/src/pages/productRecycle/job/productRecycleJobDetail.vue
index 0eed8fb0..9507254e 100644
--- a/src/pages/productRecycle/job/productRecycleJobDetail.vue
+++ b/src/pages/productRecycle/job/productRecycleJobDetail.vue
@@ -244,7 +244,7 @@
},
updateData() {
- // this.calcHandleQty();
+ this.calcHandleQty();
},
getScanResult(result) {
From 84bda516e1ba6558ecfd0c354e074268c8ea6822 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Thu, 17 Oct 2024 11:48:18 +0800
Subject: [PATCH 007/201] =?UTF-8?q?YT-441pda=E9=A2=84=E7=94=9F=E4=BA=A7?=
=?UTF-8?q?=E4=B8=8A=E6=9E=B6=EF=BC=8C=E4=BF=AE=E6=94=B9=E6=95=B0=E9=87=8F?=
=?UTF-8?q?=E4=B8=8D=E6=88=90=E5=8A=9F=EF=BC=8C=E5=BA=94=E5=8F=AF=E4=BB=A5?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E9=87=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/productPutaway/job/productPutawayDetail.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pages/productPutaway/job/productPutawayDetail.vue b/src/pages/productPutaway/job/productPutawayDetail.vue
index a88b3e31..7c42f58a 100644
--- a/src/pages/productPutaway/job/productPutawayDetail.vue
+++ b/src/pages/productPutaway/job/productPutawayDetail.vue
@@ -271,7 +271,7 @@
},
updateData() {
- // this.calcHandleQty();
+ this.calcHandleQty();
},
openDetail(item) {
From e45cdec8a9547006e6d67a307590624686c9e814 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Thu, 17 Oct 2024 17:09:35 +0800
Subject: [PATCH 008/201] =?UTF-8?q?YT-262=E6=89=80=E6=9C=89=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD=EF=BC=8Cpc=E3=80=81pda=E5=BA=94=E5=8E=BB=E6=8E=89?=
=?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=8C=85=E8=A3=85=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/mycomponents/balance/pack.vue | 13 +-
src/pages/index/index.vue | 2 +-
.../record/productPutawayRecord.vue | 141 +++++++++++++++++-
3 files changed, 149 insertions(+), 7 deletions(-)
diff --git a/src/mycomponents/balance/pack.vue b/src/mycomponents/balance/pack.vue
index 05d4be77..9b61b156 100644
--- a/src/mycomponents/balance/pack.vue
+++ b/src/mycomponents/balance/pack.vue
@@ -1,19 +1,22 @@
-
+
{{title}}
{{packingCode}}
+
+
\ No newline at end of file
diff --git a/src/mycomponents/scan/winComScan.vue b/src/mycomponents/scan/winComScan.vue
index 0a55bf5f..979ae50c 100644
--- a/src/mycomponents/scan/winComScan.vue
+++ b/src/mycomponents/scan/winComScan.vue
@@ -58,6 +58,11 @@
import {
getLabelInfo
} from '../../common/label.js';
+
+ import {
+ getManagementPrecisions
+ } from '@/common/balance.js';
+
export default {
name: "winComScan",
@@ -83,6 +88,10 @@
headerType: {
type: String,
default: 'HPQ' //HLB HMQ HCQ HPQ
+ },
+ locationCode:{
+ type: String,
+ default: ''
}
},
data() {
@@ -99,7 +108,6 @@
}
},
mounted() {
-
},
watch: {
placeholder() {
@@ -170,6 +178,7 @@
if (that.isShowHistory) {
that.scanList.unshift(content);
}
+
getLabelInfo(content, this.headerType, callback => {
// uni.hideLoading();
let scanResult = callback;
@@ -187,7 +196,7 @@
}
})
}
- });
+ },this.locationCode);
}, 200);
}
},
diff --git a/src/mycomponents/scan/winScanPack.vue b/src/mycomponents/scan/winScanPack.vue
index 7da05b49..2da925c1 100644
--- a/src/mycomponents/scan/winScanPack.vue
+++ b/src/mycomponents/scan/winScanPack.vue
@@ -15,7 +15,7 @@
+ :isShowHistory="isShowHistory" :clearResult="true" :locationCode='locationCode'>
@@ -48,11 +48,13 @@
headerType:{
type: String,
default: 'HPQ'
- }
+ },
+
},
data() {
return {
show: false,
+ locationCode:''
}
},
created() {
@@ -69,8 +71,9 @@
})
},
- openScanPopup() {
+ openScanPopup(locationCode1) {
this.$refs.popup.open('bottom')
+ this.locationCode = locationCode1
setTimeout(res => {
this.getfocus()
}, 500)
diff --git a/src/pages/inventoryMove/record/okToHoldRecord.vue b/src/pages/inventoryMove/record/okToHoldRecord.vue
index e025da9a..bac77279 100644
--- a/src/pages/inventoryMove/record/okToHoldRecord.vue
+++ b/src/pages/inventoryMove/record/okToHoldRecord.vue
@@ -1,11 +1,11 @@
-
+
+
\ No newline at end of file
diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue
index 2aa4839d..d0474dc2 100644
--- a/src/pages/purchaseReceipt/job/receiptDetail.vue
+++ b/src/pages/purchaseReceipt/job/receiptDetail.vue
@@ -76,7 +76,7 @@
-
+
@@ -117,7 +117,14 @@
calcTreeHandleQty
} from '@/common/detail.js';
-
+ import {
+ Decimal
+ } from 'decimal.js'; //引入
+
+ import {
+ calc
+ } from '@/common/calc'
+
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import winScanPackAndCont from '@/mycomponents/scan/winScanPackAndCont.vue'
import winScanPack from '@/mycomponents/scan/winScanPack.vue'
@@ -169,8 +176,7 @@
switchCode1: "",
isCheckLocation: 'purchaseReceiptLocationCodeValidate', //校验收货库位
reasonText: "",
-
-
+ packingNumberList:[],
// printDeafult: {}, //默认打印机
// templateDeafult: {} //默认的模板
};
@@ -275,18 +281,18 @@
}
that.isAllReceived = false;
- //获取管理模式,封装参数
- var itemCodes = []
- this.detailSource.forEach(item => {
- itemCodes.push(item.itemCode)
- })
- getManagementPrecisions(itemCodes, that.jobToLocationCode, res => {
- if (res.success) {
- this.managementList = res.list;
- this.managementType = this.managementList.some(item => item.ManagementPrecision ==
- 'BY_BATCH') ? 'BY_BATCH' : ''
- }
- })
+ //获取管理模式,封装参数
+ var itemCodes = []
+ this.detailSource.forEach(item => {
+ itemCodes.push(item.itemCode)
+ })
+ getManagementPrecisions(itemCodes, that.jobToLocationCode, res => {
+ if (res.success) {
+ this.managementList = res.list;
+ this.managementType = this.managementList.some(item => item.ManagementPrecision ==
+ 'BY_BATCH') ? 'BY_BATCH' : ''
+ }
+ })
// if (uni.getStorageSync('purchaseReceiptDetailPointParams')) {
// const purchaseReceiptDetailPointParams = uni.getStorageSync(
// 'purchaseReceiptDetailPointParams')
@@ -450,10 +456,10 @@
itemDetail.forEach(item => {
item.scaned = true;
itemDetail.scanDate = new Date();
- item.handleQty = item.qty;
+ item.handleQty = calc.add(item.handleQty,result.label.qty)
item.toLocationCode = this.toLocationCode;
})
- calcHandleQty(this.detailSource);
+ // calcHandleQty(this.detailSource);
this.detailSource[0].subList.sort(compareDesc('scanDate')); //按扫描信息排序
this.continueScan()
this.$forceUpdate()
@@ -483,10 +489,17 @@
if (pack == undefined) {
this.showMessage("批次【" + batch + "】不在列表中")
} else {
- if (pack.scaned) {
+ let isScan = false
+ if(packingNumber){
+ isScan = this.packingNumberList.some(item=>item == packingNumber)
+ }else{
+ isScan = false
+ }
+ if (isScan) {
pack.scanDate = new Date();
- this.showMessage("批次【" + batch + "】已经扫描");
+ this.showMessage("箱码【" + packingNumber + "】已经扫描");
} else {
+ this.packingNumberList.push(packingNumber)
pack.scaned = true
pack.scanDate = new Date();
pack.handleQty = Number(result.label.qty);
@@ -507,24 +520,31 @@
scanedLength++;
}
})
- if (itemDetail.scaned && scanedLength == itemDetail
- .packList.length) {
+ let isScan = false
+ if(packingNumber){
+ isScan = this.packingNumberList.some(item=>item == packingNumber)
+ }else{
+ isScan = false
+ }
+ if (isScan) {
itemDetail.scanDate = new Date();
- this.showMessage("批次【" + batch + "】已经扫描")
+ this.showMessage("箱码【" + packingNumber + "】已经扫描")
} else {
+ this.packingNumberList.push(packingNumber)
itemDetail.scaned = true;
itemDetail.scanDate = new Date();
- itemDetail.handleQty = Number(result.label.qty);
+ itemDetail.handleQty =itemDetail.handleQty ?itemDetail.handleQty:0
+ itemDetail.handleQty = calc.add(itemDetail.handleQty,result.label.qty)
+ console.log(itemDetail.handleQty)
itemDetail.toLocationCode = this.toLocationCode;
itemDetail.labelQty = Number(result.label.qty);
itemDetail.packList.forEach(pac => {
pac.scaned = true
pac.scanDate = new Date();
- pac.handleQty = Number(pac.qty);
+ pac.handleQty = calc.add(pac.handleQty,result.label.qty);
pac.toLocationCode = this.toLocationCode;
})
-
- calcTreeHandleQty(this.detailSource);
+ detail.handleQty = itemDetail.handleQty
this.detailSource[0].subList.sort(compareDesc('scanDate')); //按扫描信息排序
this.continueScan()
this.$forceUpdate()
@@ -598,7 +618,7 @@
//不允许部分提交,提示
this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => {
if (res) {
- this.openScanPopup();
+ this.openScanPopup(this.jobToLocationCode);
}
});
}
@@ -634,7 +654,6 @@
}
})
},
-
submitJob() {
uni.showLoading({
title: "提交中....",
@@ -644,8 +663,6 @@
this.detailSource.forEach(item => {
itemCodes.push(item.itemCode)
})
-
-
//获取管理模式,封装参数
getManagementPrecisions(itemCodes, this.toLocationCode, res => {
if (res.success) {
@@ -888,7 +905,7 @@
},
openScanPopup() {
- this.$refs.scanPopup.openScanPopup();
+ this.$refs.scanPopup.openScanPopup(this.jobToLocationCode);
},
closeScanPopup() {
From ab9d82426df331df6a156f3620ef789775f403e3 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Sat, 26 Oct 2024 10:09:40 +0800
Subject: [PATCH 022/201] =?UTF-8?q?YT-501=E6=88=90=E5=93=81=E5=8F=91?=
=?UTF-8?q?=E8=B4=A7=E6=8F=90=E7=A4=BA=E9=94=99=E8=AF=AF=EF=BC=8C=E5=BA=94?=
=?UTF-8?q?=E8=AF=A5=E6=98=AF=EF=BC=9A=E4=B8=8D=E5=85=81=E8=AE=B8=E5=A4=A7?=
=?UTF-8?q?=E4=BA=8E=E4=BB=BB=E5=8A=A1=E6=95=B0=E9=87=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/mycomponents/qty/qtyEdit.vue | 2 +-
src/pages/purchaseReceipt/job/receiptDetail.vue | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/mycomponents/qty/qtyEdit.vue b/src/mycomponents/qty/qtyEdit.vue
index c787a4d2..c8c7e11f 100644
--- a/src/mycomponents/qty/qtyEdit.vue
+++ b/src/mycomponents/qty/qtyEdit.vue
@@ -120,7 +120,7 @@
this.allQty = balanceQty;
})
} else if (this.allQty > balanceQty) {
- this.$refs.comMessage.showConfirmWarningModal('数量[' + this.allQty + ']不允许大于库存数量[' + balanceQty + ']',
+ this.$refs.comMessage.showConfirmWarningModal('数量[' + this.allQty + ']不允许大于任务数量[' + balanceQty + ']',
res => {
this.allQty = balanceQty;
})
diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue
index d0474dc2..cca90c6a 100644
--- a/src/pages/purchaseReceipt/job/receiptDetail.vue
+++ b/src/pages/purchaseReceipt/job/receiptDetail.vue
@@ -669,6 +669,8 @@
this.managementList = res.list;
var params = this.setParams();
let that = this
+ console.log(params)
+ // return
purchaseReceiptJobSubmit(params).then(res => {
if (res.data) {
let isCheckPrint = getSwitchInfoByCode(this.switchCode)//是否显示上架指引单
@@ -790,6 +792,7 @@
pack.handleQty = 0
}
})
+ detail.toLocationCode = this.toLocationCode
var info = getPackingNumberAndBatch(this.managementList, detail.itemCode,
detail.packingNumber, detail.batch);
detail.toPackingNumber = info.packingNumber;
@@ -863,6 +866,7 @@
})
})
+ this.scanCount = getScanCount(this.detailSource);
calcHandleQty(this.detailSource);
} else {
this.$refs.comMessage.showQuestionMessage("是否要关闭整单收货?", res => {
From b4f703fe9b1ec43add07abd3327047245fc2e26d Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Sat, 26 Oct 2024 11:47:10 +0800
Subject: [PATCH 023/201] =?UTF-8?q?YT-506PDA=E7=AB=AF=E6=89=A7=E8=A1=8C?=
=?UTF-8?q?=E9=A2=84=E7=94=9F=E4=BA=A7=E6=94=B6=E8=B4=A7=E4=BB=BB=E5=8A=A1?=
=?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=94=B9=E6=95=B0=E9=87=8F=E6=97=B6=E5=8F=96?=
=?UTF-8?q?=E6=B6=88=E6=A0=87=E7=AD=BE=E6=95=B0=E9=87=8F=E7=9A=84=E6=A0=A1?=
=?UTF-8?q?=E9=AA=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/mycomponents/qty/recommendQtyEdit.vue | 6 +++++-
src/pages/productReceipt/coms/comProductDetailCardBatch.vue | 2 +-
src/pages/purchaseReceipt/job/receiptDetail.vue | 2 +-
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/mycomponents/qty/recommendQtyEdit.vue b/src/mycomponents/qty/recommendQtyEdit.vue
index db2ad1e1..9510cb05 100644
--- a/src/mycomponents/qty/recommendQtyEdit.vue
+++ b/src/mycomponents/qty/recommendQtyEdit.vue
@@ -108,6 +108,10 @@ import { nextTick } from 'vue';
type: Object,
default: null
},
+ isNumTips: {
+ type: Boolean,
+ default: true
+ },
},
methods: {
getPackUnitName(packUnit) {
@@ -170,7 +174,7 @@ import { nextTick } from 'vue';
setValue() {
// var recommendQty = Number(this.dataContent.qty);
// var labelQty = Number(this.dataContent.record.label.qty);
- if (this.allQty > this.labelQty) {
+ if (this.allQty > this.labelQty && this.isNumTips) {
this.$refs.comMessage.showErrorMessage('数量[' + this.allQty + ']不允许大于标签数量[' +
this.labelQty +
']',
diff --git a/src/pages/productReceipt/coms/comProductDetailCardBatch.vue b/src/pages/productReceipt/coms/comProductDetailCardBatch.vue
index 2fc2be38..900c0057 100644
--- a/src/pages/productReceipt/coms/comProductDetailCardBatch.vue
+++ b/src/pages/productReceipt/coms/comProductDetailCardBatch.vue
@@ -25,7 +25,7 @@
-
+
diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue
index cca90c6a..0ba7c527 100644
--- a/src/pages/purchaseReceipt/job/receiptDetail.vue
+++ b/src/pages/purchaseReceipt/job/receiptDetail.vue
@@ -792,7 +792,7 @@
pack.handleQty = 0
}
})
- detail.toLocationCode = this.toLocationCode
+ detail.toLocationCode = this.toLocationCode ? this.toLocationCode :this.jobToLocationCode
var info = getPackingNumberAndBatch(this.managementList, detail.itemCode,
detail.packingNumber, detail.batch);
detail.toPackingNumber = info.packingNumber;
From 05913111a3d085994aa699da969934094d62b938 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Mon, 28 Oct 2024 08:54:54 +0800
Subject: [PATCH 024/201] =?UTF-8?q?YT-505=E6=88=90=E5=93=81=E5=8F=91?=
=?UTF-8?q?=E8=B4=A7=EF=BC=9A=E6=89=AB=E6=8F=8F=E6=95=B0=E9=87=8F=E5=A4=A7?=
=?UTF-8?q?=E4=BA=8E=E4=BB=BB=E5=8A=A1=E6=95=B0=E9=87=8F=E6=97=B6=EF=BC=8C?=
=?UTF-8?q?=E5=A6=82=E6=9E=9C=E9=85=8D=E7=BD=AE=E4=BA=86=E4=B8=8D=E5=85=81?=
=?UTF-8?q?=E8=AE=B8=E5=A4=A7=E4=BA=8E=E6=8E=A8=E8=8D=90=E6=95=B0=E9=87=8F?=
=?UTF-8?q?=EF=BC=8C=E5=88=99=E4=B8=8D=E5=8F=AF=E6=8F=90=E4=BA=A4=E4=BB=BB?=
=?UTF-8?q?=E5=8A=A1=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/mycomponents/qty/qtyEdit.vue | 8 +-
.../coms/comDeliverDetailCardBatch.vue | 6 +-
src/pages/deliver/job/deliverDetailBatch.vue | 23 +-
.../purchaseReceipt/job/receiptDetail.vue | 259 ++++++++++--------
4 files changed, 176 insertions(+), 120 deletions(-)
diff --git a/src/mycomponents/qty/qtyEdit.vue b/src/mycomponents/qty/qtyEdit.vue
index c8c7e11f..fccc8b47 100644
--- a/src/mycomponents/qty/qtyEdit.vue
+++ b/src/mycomponents/qty/qtyEdit.vue
@@ -89,7 +89,11 @@
allowEditStatus: {
type: Boolean,
default: false
- }
+ },
+ allowBiggerQty: {
+ type: String,
+ default: 'TRUE'
+ },
},
methods: {
openEditPopup(item, handleQty) {
@@ -119,7 +123,7 @@
res => {
this.allQty = balanceQty;
})
- } else if (this.allQty > balanceQty) {
+ } else if (this.allQty > balanceQty && this.allowBiggerQty == 'TRUE') {
this.$refs.comMessage.showConfirmWarningModal('数量[' + this.allQty + ']不允许大于任务数量[' + balanceQty + ']',
res => {
this.allQty = balanceQty;
diff --git a/src/pages/deliver/coms/comDeliverDetailCardBatch.vue b/src/pages/deliver/coms/comDeliverDetailCardBatch.vue
index f8138715..f8284f15 100644
--- a/src/pages/deliver/coms/comDeliverDetailCardBatch.vue
+++ b/src/pages/deliver/coms/comDeliverDetailCardBatch.vue
@@ -17,7 +17,7 @@
-
+
@@ -67,6 +67,10 @@ import {
type: Boolean,
default: true
},
+ allowBiggerQty: {
+ type: Boolean,
+ default: false
+ },
},
watch: {
diff --git a/src/pages/deliver/job/deliverDetailBatch.vue b/src/pages/deliver/job/deliverDetailBatch.vue
index ef0be975..8a1bb006 100644
--- a/src/pages/deliver/job/deliverDetailBatch.vue
+++ b/src/pages/deliver/job/deliverDetailBatch.vue
@@ -30,7 +30,7 @@
+ @updateData='updateData' :allowBiggerQty='allowBiggerQty'>
@@ -109,7 +109,8 @@
scanOptions: [],
status: "",
toLocationCode: "",
- jobStatus: ""
+ jobStatus: "",
+ allowBiggerQty:true,//开启数量校验提示
};
},
@@ -186,6 +187,7 @@
that.subList = res.data.subList;
that.detailSource = res.data;
that.toLocationCode = that.subList[0].toLocationCode
+ that.allowBiggerQty = res.data.allowBiggerQty;
that.resizeCollapse();
} else {
that.showMessage('未获取到详情');
@@ -247,6 +249,7 @@
checkCount() {
let str = ""
+ let str1 = ""
var taskQty = 0;
var totalQty = 0;
this.detailSource.subList.forEach(item => {
@@ -260,8 +263,13 @@
//如果允许部分提交任务有扫描记录就可以直接提交;如果不允许部分执行,任务数量和提交数量不一致给出提示
this.detailSource.subList.forEach(detail => {
if (this.jobContent.allowPartialComplete == "FALSE") {
- if (item.taskQty != item.totalQty) {
- str += `物料号【${item.itemCode}】任务数量【${item.taskQty}】与实际提交数量【${item.totalQty}】不一致\n`
+ if (taskQty != totalQty) {
+ str += `物料号【${detail.itemCode}】任务数量【${taskQty}】与实际提交数量【${totalQty}】不一致\n`
+ }
+ }
+ if (this.allowBiggerQty) {
+ if (taskQty > totalQty) {
+ str1 += '数量[' + totalQty + ']不允许大于任务数量[' + taskQty + ']'
}
}
})
@@ -270,8 +278,12 @@
str = '不允许提交\n' + str
this.showErrorMessage(str)
}
+ if (str1) {
+ str = '不允许提交\n' + str
+ this.showErrorMessage(str)
+ }
- return str ? false : true
+ return str || str1 ? false : true
},
@@ -291,6 +303,7 @@
deliverJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
+
this.showCommitSuccessMessage("提交成功\n生成发货记录\n" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue
index 0ba7c527..9f86cf61 100644
--- a/src/pages/purchaseReceipt/job/receiptDetail.vue
+++ b/src/pages/purchaseReceipt/job/receiptDetail.vue
@@ -601,7 +601,29 @@
if (!this.checkLocation()) {
return
}
-
+ var itemCodes = []
+ this.detailSource.forEach(item => {
+ itemCodes.push(item.itemCode)
+ })
+
+ //获取管理模式,封装参数
+ getManagementPrecisions(itemCodes, this.toLocationCode, res => {
+ if (res.success) {
+ this.managementList = res.list;
+ this.managementType = this.managementList&&this.managementList[0]&&this.managementList[0].ManagementPrecision ? this.managementList[0].ManagementPrecision : 'BY_PACKAGING'
+ if(this.managementType == 'BY_BATCH' || this.managementType == 'BY_QUANTITY'){
+ this.checkBatch()
+ }else{
+ this.check()
+ }
+ } else {
+ uni.hideLoading();
+ this.showErrorMessage(res.message);
+ }
+ })
+ },
+ // 校验
+ check(){
//扫描数量和任务数量相等,直接提交
if (this.scanCount == this.subList.length) {
this.submitJob();
@@ -623,9 +645,34 @@
});
}
}
-
+
+ },
+ //按批次的校验
+ checkBatch(){
+ //扫描数量和任务数量相等,直接提交
+ const scanCount1 = this.detailSource
+ const current = this.detailSource.find(item=> item.handleQty {
+ if (res) {
+ this.submitJob()
+ }
+ });
+ } else {
+ //不允许部分提交,提示
+ this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => {
+ if (res) {
+ this.openScanPopup(this.jobToLocationCode);
+ }
+ });
+ }
+ }else{
+ this.submitJob();
+ }
},
-
reject() {
if (!this.reasonText) {
this.showMessage("请输入拒收原因")
@@ -659,121 +706,109 @@
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();
- let that = this
- console.log(params)
- // return
- purchaseReceiptJobSubmit(params).then(res => {
- if (res.data) {
- let isCheckPrint = getSwitchInfoByCode(this.switchCode)//是否显示上架指引单
- let isCheckPrint1 = getSwitchInfoByCode(this.switchCode1)//是否显示采购收货检验指引单
- if (isCheckPrint1 && !isCheckPrint) {
+
+ var params = this.setParams();
+ let that = this
+ console.log(params)
+ purchaseReceiptJobSubmit(params).then(res => {
+ if (res.data) {
+ let isCheckPrint = getSwitchInfoByCode(this.switchCode)//是否显示上架指引单
+ let isCheckPrint1 = getSwitchInfoByCode(this.switchCode1)//是否显示采购收货检验指引单
+ if (isCheckPrint1 && !isCheckPrint) {
+ uni.hideLoading()
+ // this.showCommitSuccessMessage("提交成功\n生成采购收货记录\n" + res.data.number)
+ uni.redirectTo({
+ url: '/pages/pointPutawayJob/index?number=' + that.jobContent.number
+ })
+ }else if(!isCheckPrint1 && !isCheckPrint){
+ this.showCommitSuccessMessage("提交成功\n生成采购收货记录\n" + res.data.number)
+ }else {
+ // if (res.data == '打印任务已发送,等待打印机处理!') {
+ // this.showCommitSuccessMessage(res.data)
+ // const purchaseReceiptDetailPointParams = {
+ // printDeafult: this.printDeafult,
+ // templateDeafult: this.templateDeafult,
+ // }
+ // uni.setStorageSync('purchaseReceiptDetailPointParams', purchaseReceiptDetailPointParams)
+ // } else {
+ // this.showErrorMessage(res.data)
+ // }
+ uni.showLoading({
+ title: "提交成功,将跳转到打印页面",
+ mask: true
+ });
+
+ // 获取上架任务
+ let timerCount = 0
+ const timer1 = setInterval(async () => {
+ if (timerCount == 15) {
+ clearInterval(timer1)
uni.hideLoading()
- // this.showCommitSuccessMessage("提交成功\n生成采购收货记录\n" + res.data.number)
- uni.redirectTo({
- url: '/pages/pointPutawayJob/index?number=' + that.jobContent.number
- })
- }else if(!isCheckPrint1 && !isCheckPrint){
- this.showCommitSuccessMessage("提交成功\n生成采购收货记录\n" + res.data.number)
- }else {
- // if (res.data == '打印任务已发送,等待打印机处理!') {
- // this.showCommitSuccessMessage(res.data)
- // const purchaseReceiptDetailPointParams = {
- // printDeafult: this.printDeafult,
- // templateDeafult: this.templateDeafult,
- // }
- // uni.setStorageSync('purchaseReceiptDetailPointParams', purchaseReceiptDetailPointParams)
- // } else {
- // this.showErrorMessage(res.data)
- // }
- uni.showLoading({
- title: "提交成功,将跳转到打印页面",
- mask: true
- });
-
- // 获取上架任务
- let timerCount = 0
- const timer1 = setInterval(async () => {
- if (timerCount == 15) {
- clearInterval(timer1)
- uni.hideLoading()
- this.showErrorMessage("上架任务生成异常,请到收货记录里重新生成上架申请")
- return;
+ this.showErrorMessage("上架任务生成异常,请到收货记录里重新生成上架申请")
+ return;
+ }
+ await getPutawayJobList({
+ filters: [{
+ column: "purchaseReceiptRecordNumber",
+ action: "in",
+ value: res.data.number
+ }],
+ pageNo: 1,
+ pageSize: 1000,
+ }).then(res1 => {
+ timerCount = timerCount + 1
+ if (res1.data && res1.data.list && res1
+ .data
+ .list.length && (res1.data.total >= res
+ .data.detailCount)) {
+ uni.hideLoading()
+ clearInterval(timer1)
+ const dataParams = {
+ toLocationCode: res1.data.list[
+ 0]
+ .toLocationCode,
+ number: res1.data.list[0]
+ .number,
+ creator: res1.data.list[0]
+ .creator,
+ createTime: res1.data.list[0]
+ .createTime,
+ ids: res1.data.list.map(item =>
+ item.masterId).join(
+ ',')
}
- await getPutawayJobList({
- filters: [{
- column: "purchaseReceiptRecordNumber",
- action: "in",
- value: res.data.number
- }],
- pageNo: 1,
- pageSize: 1000,
- }).then(res1 => {
- timerCount = timerCount + 1
- if (res1.data && res1.data.list && res1
- .data
- .list.length && (res1.data.total >= res
- .data.detailCount)) {
- uni.hideLoading()
- clearInterval(timer1)
- const dataParams = {
- toLocationCode: res1.data.list[
- 0]
- .toLocationCode,
- number: res1.data.list[0]
- .number,
- creator: res1.data.list[0]
- .creator,
- createTime: res1.data.list[0]
- .createTime,
- ids: res1.data.list.map(item =>
- item.masterId).join(
- ',')
- }
- uni.hideLoading()
- if(!isCheckPrint1 && isCheckPrint){
- uni.redirectTo({
- url: '/pages/pointPutawayJob/index?data=' +
- encodeURIComponent(JSON.stringify(dataParams))
- })
- }else if(isCheckPrint1 && isCheckPrint){
- uni.redirectTo({
- url: '/pages/pointPutawayJob/index?number=' + that.jobContent.number +
- '&data=' +
- encodeURIComponent(JSON.stringify(dataParams))
- })
- }
-
- }
- })
- }, 2000)
+ uni.hideLoading()
+ if(!isCheckPrint1 && isCheckPrint){
+ uni.redirectTo({
+ url: '/pages/pointPutawayJob/index?data=' +
+ encodeURIComponent(JSON.stringify(dataParams))
+ })
+ }else if(isCheckPrint1 && isCheckPrint){
+ uni.redirectTo({
+ url: '/pages/pointPutawayJob/index?number=' + that.jobContent.number +
+ '&data=' +
+ encodeURIComponent(JSON.stringify(dataParams))
+ })
+ }
+
+ }
+ })
+ }, 2000)
- }
+ }
- } else {
- this.showErrorMessage("提交失败[" + res.msg + "]")
- }
- }).catch(error => {
- uni.hideLoading()
- this.$refs.comMessage.showErrorMessage(error, res => {
- if (res) {
- navigateBack(1)
- }
- });
- })
} else {
- uni.hideLoading();
- this.showErrorMessage(res.message);
+ this.showErrorMessage("提交失败[" + res.msg + "]")
}
- });
+ }).catch(error => {
+ uni.hideLoading()
+ this.$refs.comMessage.showErrorMessage(error, res => {
+ if (res) {
+ navigateBack(1)
+ }
+ });
+ })
+
},
From 5a250bce8e3a64d524ec4f8115d9e38d2bfcecd1 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Mon, 28 Oct 2024 13:42:55 +0800
Subject: [PATCH 025/201] =?UTF-8?q?YT-505=E6=88=90=E5=93=81=E5=8F=91?=
=?UTF-8?q?=E8=B4=A7=EF=BC=9A=E6=89=AB=E6=8F=8F=E6=95=B0=E9=87=8F=E5=A4=A7?=
=?UTF-8?q?=E4=BA=8E=E4=BB=BB=E5=8A=A1=E6=95=B0=E9=87=8F=E6=97=B6=EF=BC=8C?=
=?UTF-8?q?=E5=A6=82=E6=9E=9C=E9=85=8D=E7=BD=AE=E4=BA=86=E4=B8=8D=E5=85=81?=
=?UTF-8?q?=E8=AE=B8=E5=A4=A7=E4=BA=8E=E6=8E=A8=E8=8D=90=E6=95=B0=E9=87=8F?=
=?UTF-8?q?=EF=BC=8C=E5=88=99=E4=B8=8D=E5=8F=AF=E6=8F=90=E4=BA=A4=E4=BB=BB?=
=?UTF-8?q?=E5=8A=A1=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/mycomponents/qty/qtyEdit.vue | 3 ++-
src/pages/deliver/job/deliverDetailBatch.vue | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/mycomponents/qty/qtyEdit.vue b/src/mycomponents/qty/qtyEdit.vue
index fccc8b47..68542672 100644
--- a/src/mycomponents/qty/qtyEdit.vue
+++ b/src/mycomponents/qty/qtyEdit.vue
@@ -117,13 +117,14 @@
this.allQty = val * Number(this.dataContent.packQty);
},
setValue() {
+ console.log(344,this.allowBiggerQty)
var balanceQty = Number(this.dataContent.qty);
if (this.allQty == 0) {
this.$refs.comMessage.showConfirmWarningModal('数量必须大于0',
res => {
this.allQty = balanceQty;
})
- } else if (this.allQty > balanceQty && this.allowBiggerQty == 'TRUE') {
+ } else if (this.allQty > balanceQty && this.allowBiggerQty == 'FALSE') {
this.$refs.comMessage.showConfirmWarningModal('数量[' + this.allQty + ']不允许大于任务数量[' + balanceQty + ']',
res => {
this.allQty = balanceQty;
diff --git a/src/pages/deliver/job/deliverDetailBatch.vue b/src/pages/deliver/job/deliverDetailBatch.vue
index 8a1bb006..17800ee6 100644
--- a/src/pages/deliver/job/deliverDetailBatch.vue
+++ b/src/pages/deliver/job/deliverDetailBatch.vue
@@ -110,7 +110,7 @@
status: "",
toLocationCode: "",
jobStatus: "",
- allowBiggerQty:true,//开启数量校验提示
+ allowBiggerQty:"TRUE",//开启数量校验提示
};
},
@@ -267,7 +267,7 @@
str += `物料号【${detail.itemCode}】任务数量【${taskQty}】与实际提交数量【${totalQty}】不一致\n`
}
}
- if (this.allowBiggerQty) {
+ if (this.allowBiggerQty == 'FALSE') {
if (taskQty > totalQty) {
str1 += '数量[' + totalQty + ']不允许大于任务数量[' + taskQty + ']'
}
From 340c92cd05a7092f2dbcda797e99c3eaf86a8231 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Mon, 28 Oct 2024 14:01:23 +0800
Subject: [PATCH 026/201] =?UTF-8?q?YT-508=E5=90=88=E6=A0=BC=E8=BD=AC?=
=?UTF-8?q?=E6=8A=A5=E5=BA=9F=E8=BF=98=E6=98=AF=E6=8C=89=E5=8D=95=E7=AE=B1?=
=?UTF-8?q?=E7=AE=A1=E7=90=86=E6=A0=A1=E9=AA=8C=E6=89=AB=E6=8F=8F=E6=95=B0?=
=?UTF-8?q?=E9=87=8F=EF=BC=9B=E6=8F=90=E4=BA=A4=E5=90=8E=E7=94=9F=E6=88=90?=
=?UTF-8?q?=E7=9A=84=E5=BA=93=E5=AD=98=E4=BA=8B=E5=8A=A1=E4=B8=AD=E6=95=B0?=
=?UTF-8?q?=E9=87=8F=E4=B8=BA0=EF=BC=8C=E5=BA=94=E8=AF=A5=E6=98=AF?=
=?UTF-8?q?=E5=AE=9E=E9=99=85=E6=89=AB=E6=8F=8F=E7=9A=84=E6=95=B0=E9=87=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../inventoryMove/job/inventoryMoveDetail.vue | 99 ++++++++++++-------
1 file changed, 65 insertions(+), 34 deletions(-)
diff --git a/src/pages/inventoryMove/job/inventoryMoveDetail.vue b/src/pages/inventoryMove/job/inventoryMoveDetail.vue
index 1b3324c1..c17ae97c 100644
--- a/src/pages/inventoryMove/job/inventoryMoveDetail.vue
+++ b/src/pages/inventoryMove/job/inventoryMoveDetail.vue
@@ -389,22 +389,41 @@
},
- commit() {
+ async commit() {
this.scanCount = getScanCount(this.subList);
if (this.scanCount == 0) {
this.showErrorMessage("扫描数为0,请先扫描")
return;
}
-
+//查询管理模式
+ this.managementList = [];
+ var precisionStrategParams = this.setPrecisionStrategParams()
+ await getPrecisionStrategyList(precisionStrategParams, res => {
+ if (res.success) {
+ this.managementList = res.list;
+ this.managementType = this.managementList&& this.managementList[0]&& this.managementList[0].ManagementPrecision ? this.managementList[0].ManagementPrecision : 'BY_PACKAGING'
+ } else {
+ uni.hideLoading();
+ this.showErrorMessage(res.message);
+ }
+ })
//允许部分提交
//扫描数量和任务数量相等,直接提交
if (this.scanCount == this.subList.length) {
- this.checkCount();
+ if(this.managementType == 'BY_BATCH'){
+ this.checkCount();
+ }else{
+ this.checkCountBatch();
+ }
} else if (this.scanCount < this.subList.length) {
//扫描数量小于任务数量,判断是否允许部分提交
if (this.jobContent.allowPartialComplete == "TRUE") {
//提交
- this.checkCount();
+ if(this.managementType == 'BY_BATCH' || this.managementType == 'BY_QUANTITY' ){
+ this.checkCountBatch();
+ }else{
+ this.checkCount();
+ }
} else {
//不允许部分提交,提示
this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => {
@@ -443,44 +462,56 @@
this.submitJob()
}
},
-
+ checkCountBatch(){
+ // 提交的数量和任务数量不一致提示
+ let str = ''
+ this.detailSource.forEach((item) => {
+ item.subList.forEach(cur => {
+ if (cur.qty != cur.handleQty) {
+ var tempHandleQty = 0
+ if (cur.handleQty) {
+ tempHandleQty = cur.handleQty
+ } else {
+ tempHandleQty = 0
+ }
+ str +=
+ `提交数量【${tempHandleQty}】与任务物料数量【${cur.qty}】不一致\n`
+ }
+ })
+ })
+ if (str) {
+ str = '任务明细未全部完成,是否提交?\n' + str
+ this.$refs.comMessage.showQuestionMessage1(str, 'red', res => {
+ if (res) {
+ this.submitJob()
+ }
+ });
+ } else {
+ this.submitJob()
+ }
+ },
submitJob() {
uni.showLoading({
title: "提交中....",
mask: true
});
-
- //查询管理模式
- this.managementList = [];
- var precisionStrategParams = this.setPrecisionStrategParams()
- getPrecisionStrategyList(precisionStrategParams, res => {
- if (res.success) {
- this.managementList = res.list;
-
- var params = this.setParams()
- console.log("提交" + JSON.stringify(params))
- inventoryMoveSubmit(params).then(res => {
- uni.hideLoading()
- if (res.data) {
- let showTitle = this.title
- if (this.title.indexOf('任务') == this.title.length - 2) {
- showTitle = this.title.replace('任务', '')
- }
- this.showCommitSuccessMessage("提交成功\n生成" + showTitle + "记录\n" + res.data)
- } else {
- this.showErrorMessage("提交失败[" + res.msg + "]")
- }
- }).catch(error => {
- uni.hideLoading()
- this.showErrorMessage(error)
- })
+ var params = this.setParams()
+ console.log("提交" + JSON.stringify(params))
+ inventoryMoveSubmit(params).then(res => {
+ uni.hideLoading()
+ if (res.data) {
+ let showTitle = this.title
+ if (this.title.indexOf('任务') == this.title.length - 2) {
+ showTitle = this.title.replace('任务', '')
+ }
+ this.showCommitSuccessMessage("提交成功\n生成" + showTitle + "记录\n" + res.data)
} else {
- uni.hideLoading();
- this.showErrorMessage(res.message);
+ this.showErrorMessage("提交失败[" + res.msg + "]")
}
-
+ }).catch(error => {
+ uni.hideLoading()
+ this.showErrorMessage(error)
})
-
},
setPrecisionStrategParams() {
From a9541bae06044e724996162c90b91100fc585924 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Mon, 28 Oct 2024 14:02:29 +0800
Subject: [PATCH 027/201] 11
---
src/common/balance.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/common/balance.js b/src/common/balance.js
index 8fa38a44..7e682098 100644
--- a/src/common/balance.js
+++ b/src/common/balance.js
@@ -75,7 +75,7 @@ export function getPrecisionStrategyParamsByLocation(detailSource, toLocationCod
* @param {*}
*
*/
-export function getPrecisionStrategyList(itemList, callback) {
+export async function getPrecisionStrategyList(itemList, callback) {
// let jsonParem = JSON.stringify(param)
let result = {
list: [],
@@ -83,7 +83,7 @@ export function getPrecisionStrategyList(itemList, callback) {
message: ''
};
- getPrecisionStrategy(itemList).then(res => {
+ await getPrecisionStrategy(itemList).then(res => {
if (res.data == null) {
result.success = false
result.message = '未查询到管理精度信息'
From 7ec4a339116ef44c7d9f80516f4d4cac75ccfb5b Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Mon, 28 Oct 2024 14:55:57 +0800
Subject: [PATCH 028/201] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/request2.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/api/request2.js b/src/api/request2.js
index 184b1780..cca0a80b 100644
--- a/src/api/request2.js
+++ b/src/api/request2.js
@@ -4370,8 +4370,8 @@ export function getTransactionByFilter(param) {
* @param {*}
*
*/
-export function getPrecisionStrategy(param) {
- return request({
+export async function getPrecisionStrategy(param) {
+ return await request({
url: baseApi + "/wms/rule/getPrecisionStrategy",
method: "post",
data: param,
From d5b0ae0c5c32d2e0519dbe56a09c3bb6d269e1a6 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Mon, 28 Oct 2024 15:19:55 +0800
Subject: [PATCH 029/201] =?UTF-8?q?=E5=90=88=E6=A0=BC=E8=BD=AC=E9=9A=94?=
=?UTF-8?q?=E7=A6=BB=E9=A1=B5=E9=9D=A2=E7=BB=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../inventoryMove/coms/okToHoldRecordScan.vue | 327 ++++++++++++++++++
.../inventoryMove/record/okToHoldRecord.vue | 43 ++-
2 files changed, 347 insertions(+), 23 deletions(-)
create mode 100644 src/pages/inventoryMove/coms/okToHoldRecordScan.vue
diff --git a/src/pages/inventoryMove/coms/okToHoldRecordScan.vue b/src/pages/inventoryMove/coms/okToHoldRecordScan.vue
new file mode 100644
index 00000000..73acab6f
--- /dev/null
+++ b/src/pages/inventoryMove/coms/okToHoldRecordScan.vue
@@ -0,0 +1,327 @@
+
+
+
+
+
+
+ 需求
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/inventoryMove/record/okToHoldRecord.vue b/src/pages/inventoryMove/record/okToHoldRecord.vue
index bac77279..e3b0a138 100644
--- a/src/pages/inventoryMove/record/okToHoldRecord.vue
+++ b/src/pages/inventoryMove/record/okToHoldRecord.vue
@@ -1,59 +1,56 @@
-
+
+
+
\ No newline at end of file
diff --git a/src/pages/putaway/record/putawayRecord.vue b/src/pages/putaway/record/putawayRecord.vue
index 23d62c41..ab989921 100644
--- a/src/pages/putaway/record/putawayRecord.vue
+++ b/src/pages/putaway/record/putawayRecord.vue
@@ -15,12 +15,21 @@
+
+
+ @removePack="removePack"
+ v-else>
@@ -81,7 +90,8 @@
getBusinessType,
createItemInfo,
createDetailInfo,
- calcHandleQty
+ calcHandleQty,
+ calcHandleQtyAdd
} from '@/common/record.js';
import {
@@ -97,6 +107,7 @@
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue"
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue'
+ import recordComDetailCardBatch from '@/mycomponents/record/recordComDetailCardBatch.vue'
export default {
components: {
@@ -106,7 +117,8 @@
comBlankView,
winScanLocation,
winScanPackAndLocation,
- recordComDetailCard
+ recordComDetailCard,
+ recordComDetailCardBatch
},
data() {
return {
@@ -125,6 +137,7 @@
fromWarehouseCode: '', //来源仓库
businessTypeCode: "PurchasePutaway",
editItem:{},
+ managementType:''
};
},
onLoad(option) {
@@ -157,7 +170,88 @@
mounted() {},
methods: {
- getScanResult(result) {
+ getScanResult(result,managementType) {
+ this.managementType = managementType
+ if(managementType == "BY_BATCH" ||managementType == "BY_QUANTITY" ){
+ this. getScanResultAfterBatch(result)
+ }else{
+ this. getScanResultAfter(result)
+ }
+
+ },
+ getScanResultAfterBatch(result){
+ let balance = result.balance;
+ let label = result.label;
+ let pack = result.package;
+ let poLine =label.poLine;
+ let poNumber =label.poNumber;
+ let supplierCode=label.supplierCode;
+ var item = this.detailSource.find(res => {
+ if (res.itemCode == balance.itemCode) {
+ return res
+ }
+ })
+ if (this.fromWarehouseCode == '') {
+ this.fromWarehouseCode = balance.warehouseCode;
+ }
+ if (item == undefined) {
+ // 获取推荐库位
+ this.getRecommendLocation(balance, pack, toLocation => {
+ var itemp = createItemInfo(balance, pack);
+ itemp.toLocationCode = toLocation.locationCode;
+ let newDetail = createDetailInfo(balance, pack); //
+ newDetail.toLocationCode = toLocation.locationCode;
+ newDetail.toWarehouseCode = toLocation.toWarehouseCode;
+ newDetail.poLine=poLine;
+ newDetail.poNumber=poNumber;
+ newDetail.supplierCode=supplierCode;
+ newDetail.fromInventoryStatus = balance.inventoryStatus;
+ newDetail.handleQty =0;
+ newDetail.balanceQty =result.balance.qty;
+ itemp.subList.push(newDetail);
+ this.detailSource.push(itemp)
+ calcHandleQtyAdd(this.detailSource,result.label);
+ })
+
+ } else {
+ var detail = item.subList.find(r => {
+ if (
+ r.batch == balance.batch &&
+ r.locationCode == balance.locationCode &&
+ r.inventoryStatus == balance.inventoryStatus) {
+ return r;
+ }
+ })
+ if (detail == undefined) {
+ this.getRecommendLocation(balance, pack, toLocation => {
+ let newDetail = createDetailInfo(balance, pack);
+ newDetail.toLocationCode = toLocation.locationCode;
+ newDetail.toWarehouseCode = toLocation.toWarehouseCode;
+ newDetail.poLine=poLine;
+ newDetail.poNumber=poNumber;
+ newDetail.supplierCode=supplierCode;
+ newDetail.fromInventoryStatus = balance.inventoryStatus;
+ newDetail.handleQty =0;
+ newDetail.balanceQty =result.balance.qty;
+ if(item.subList&&item.subList.length>0){
+ if(item.subList[0].batch!=newDetail.batch){
+ this.showErrorMessage("扫描的批次是["+newDetail.batch+"],请扫描["+item.subList[0].batch+"的批次的箱码")
+ }
+ }else {
+ item.subList.push(newDetail);
+ calcHandleQtyAdd(this.detailSource,result.label);
+ }
+ });
+ } else {
+ if (detail.scaned == true) {
+ calcHandleQtyAdd(this.detailSource,result.label);
+ // this.showErrorMessage( "批次[" + balance.batch + "]重复扫描")
+ }
+ }
+ }
+
+ },
+ getScanResultAfter(result){
let balance = result.balance;
let label = result.label;
let pack = result.package;
@@ -189,7 +283,7 @@
this.detailSource.push(itemp)
calcHandleQty(this.detailSource);
})
-
+
} else {
var detail = item.subList.find(r => {
if (r.packingNumber == balance.packingNumber &&
@@ -225,7 +319,6 @@
}
},
-
//获取推荐库位
getRecommendLocation(balance, pack, callback) {
uni.showLoading({
@@ -344,8 +437,14 @@
if (res.success) {
this.managementList = res.list;
var params = this.setRecordParams()
- console.log("提交参数", JSON.stringify(params));
-
+ console.log("提交参数", params);
+ const isHaveItem =params.subList.find(item=>item.handleQty > item.balanceQty)
+ if(isHaveItem){
+ this.showErrorMessage(`物料号${isHaveItem.itemCode}`)
+ this.$refs.comMessage.showConfirmWarningModal('物料号'+isHaveItem.itemCode+'数量[' + isHaveItem.handleQty + ']不允许大于库存数量[' + isHaveItem.balanceQty + ']')
+ uni.hideLoading()
+ return
+ }
putawayRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
@@ -415,6 +514,8 @@
submitItem.fromLocationCode = detail.locationCode;
submitItem.toLocationCode = detail.toLocationCode;
+ submitItem.balanceQty = detail.balanceQty;
+
submitItem.itemName = item.itemName;
// detail.toInventoryStatus = detail.inventoryStatus
From 89fed1d271053cde889e883535069cfb001bf6b3 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Tue, 29 Oct 2024 15:03:11 +0800
Subject: [PATCH 035/201] =?UTF-8?q?YT-483=E7=9B=B4=E6=8E=A5=E5=8F=91?=
=?UTF-8?q?=E6=96=99=E6=8C=89=E7=85=A7=E6=89=B9=E6=AC=A1=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E7=B2=BE=E5=BA=A6=EF=BC=8C=E9=87=8D=E5=A4=8D=E6=89=AB=E6=8F=8F?=
=?UTF-8?q?=E7=AE=B1=E7=AD=BE=E5=BA=94=E8=AF=A5=E7=B4=AF=E5=8A=A0=E6=95=B0?=
=?UTF-8?q?=E9=87=8F=EF=BC=8C=E8=80=8C=E4=B8=8D=E4=BC=9A=E6=8F=90=E7=A4=BA?=
=?UTF-8?q?=E9=87=8D=E5=A4=8D=E6=89=AB=E6=8F=8F=E3=80=82=E4=B8=8D=E5=BA=94?=
=?UTF-8?q?=E8=AF=A5=E6=9F=A5=E5=BA=93=E5=AD=98=E6=95=B0=E9=87=8F=EF=BC=8C?=
=?UTF-8?q?=E5=BA=94=E8=AF=A5=E6=89=AB=E6=8F=8F=E6=8F=90=E4=BA=A4=E6=A0=87?=
=?UTF-8?q?=E7=AD=BE=E7=AE=B1=E7=AD=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/issue/record/directIssue.vue | 68 +++++++++++++++-------
src/pages/putaway/record/putawayRecord.vue | 4 +-
2 files changed, 49 insertions(+), 23 deletions(-)
diff --git a/src/pages/issue/record/directIssue.vue b/src/pages/issue/record/directIssue.vue
index 92624f75..fffd929f 100644
--- a/src/pages/issue/record/directIssue.vue
+++ b/src/pages/issue/record/directIssue.vue
@@ -9,10 +9,18 @@
+
+
+ @removePack="removePack" v-else>
@@ -77,7 +85,8 @@
getBusinessType,
createItemInfo,
createDetailInfo,
- calcHandleQty
+ calcHandleQty,
+ calcHandleQtyAdd
} from '@/common/record.js';
import {
@@ -97,6 +106,7 @@
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue"
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue'
+ import recordComDetailCardBatch from '@/mycomponents/record/recordComDetailCardBatch.vue'
import recordDetailCard from '@/mycomponents/record/recordDetailCard.vue'
import balanceSelect from '@/mycomponents/balance/balanceSelect.vue'
import winComScanBalance from '@/mycomponents/scan/winComScanBalance.vue'
@@ -112,6 +122,7 @@
winScanLocation,
winScanPackAndLocation,
recordComDetailCard,
+ recordComDetailCardBatch,
recordDetailCard,
balanceSelect,
winComScanBalance,
@@ -137,7 +148,8 @@
show: false,
positionInfo: "请选择生产线",
resultData: {},
- itemCode: ""
+ itemCode: "",
+ managementType:''
};
},
onLoad(option) {
@@ -192,8 +204,9 @@
});
},
- async getScanResult(result,managementType) {
- if(managementType == "BY_BATCH" ||managementType == "BY_QUANTITY" ){
+ async getScanResult(result,managementTypeParams) {
+ this.managementType = managementTypeParams
+ if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){
this.setDataBatch(result);
}else{
this.setData(result);
@@ -356,11 +369,12 @@
newDetail.packUnit = pack.packUnit;
newDetail.packQty = pack.packQty;
newDetail.handleQty = 0
+ newDetail.balanceQty =result.balance.qty;
itemp.subList.push(newDetail);
this.detailSource.push(itemp)
this.itemCode = balance.itemCode;
this.fromLocationCode = balance.locationCode
- this.scanPopupGetFocus()
+ // this.scanPopupGetFocus()
} else {
var detail = item.subList.find(r => {
@@ -418,6 +432,7 @@
newDetail.packQty = pack.packQty;
newDetail.fromLocationCode=balance.locationCode
newDetail.handleQty = 0
+ newDetail.balanceQty =result.balance.qty;
item.subList.push(newDetail);
}
})
@@ -430,32 +445,35 @@
newDetail.packUnit = pack.packUnit;
newDetail.packQty = pack.packQty;
newDetail.handleQty = 0
+ newDetail.balanceQty =result.balance.qty;
item.subList.push(newDetail);
}
}
- this.scanPopupGetFocus()
+ // this.scanPopupGetFocus()
} else {
if (detail.scaned == true) {
// this.showErrorMessage("箱码[" + detail.packingNumber + "批次[" + balance.batch + "]重复扫描")
}
}
}
- // calcHandleQty(this.detailSource);
console.log(this.detailSource)
- for (let item of this.detailSource) {
- item.handleQty = new Decimal(0).toNumber();
- item.qty = new Decimal(0).toNumber();
- for (let detail of item.subList) {
- if (detail != undefined) {
- if (detail.scaned) {
- item.handleQty = calc.add(result.label.qty, detail.handleQty)
- detail.handleQty = calc.add(result.label.qty, detail.handleQty);
- }
- item.qty = calc.add(item.qty, detail.qty);
- }
- }
- }
+ console.log(result.label)
+ calcHandleQtyAdd(this.detailSource, result.label);
+ // console.log(this.detailSource)
+ // for (let item of this.detailSource) {
+ // item.handleQty = new Decimal(0).toNumber();
+ // item.qty = new Decimal(0).toNumber();
+ // for (let detail of item.subList) {
+ // if (detail != undefined) {
+ // if (detail.scaned) {
+ // item.handleQty = calc.add(result.label.qty, detail.handleQty)
+ // detail.handleQty = calc.add(result.label.qty, detail.handleQty);
+ // }
+ // item.qty = calc.add(item.qty, detail.qty);
+ // }
+ // }
+ // }
},
showErrorMessage(message) {
@@ -595,6 +613,13 @@
...this.setRecordParams()
}
console.log("提交参数", JSON.stringify(params));
+ const isHaveItem =params.subList.find(item=>item.handleQty > item.balanceQty)
+ if(isHaveItem){
+ this.showErrorMessage(`物料号${isHaveItem.itemCode}`)
+ this.$refs.comMessage.showConfirmWarningModal('物料号'+isHaveItem.itemCode+'数量[' + isHaveItem.handleQty + ']不允许大于库存数量[' + isHaveItem.balanceQty + ']')
+ uni.hideLoading()
+ return
+ }
issueRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
@@ -637,6 +662,7 @@
// detail.toLocationCode = detail.toLocationCode
submitItem.qty = detail.handleQty;
submitItem.package = "";
+ submitItem.balanceQty = detail.balanceQty;
submitItem.recordList = [{
toInventoryStatus: detail.inventoryStatus,
fromParentPackingNumber: detail.parentNumber,
diff --git a/src/pages/putaway/record/putawayRecord.vue b/src/pages/putaway/record/putawayRecord.vue
index ab989921..69841f91 100644
--- a/src/pages/putaway/record/putawayRecord.vue
+++ b/src/pages/putaway/record/putawayRecord.vue
@@ -171,8 +171,8 @@
methods: {
getScanResult(result,managementType) {
- this.managementType = managementType
- if(managementType == "BY_BATCH" ||managementType == "BY_QUANTITY" ){
+ this.managementType = managementTypeParams
+ if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){
this. getScanResultAfterBatch(result)
}else{
this. getScanResultAfter(result)
From 01a215bfd9c915f1f0330e14b4fe14020c1ecfab Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Tue, 29 Oct 2024 17:31:08 +0800
Subject: [PATCH 036/201] =?UTF-8?q?YT-552=E6=89=80=E6=9C=89=E7=9B=B4?=
=?UTF-8?q?=E6=8E=A5xxx=E4=BB=BB=E5=8A=A1=EF=BC=8C=E9=9C=80=E8=A6=81?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=AB=E7=A0=81=E5=BA=93=E4=BD=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/login/index.vue | 2 +-
.../record/productPutawayRecord.vue | 196 +++++++++++++++++-
src/pages/putaway/record/putawayRecord.vue | 8 +-
3 files changed, 192 insertions(+), 14 deletions(-)
diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue
index f6c8f562..852a5f19 100644
--- a/src/pages/login/index.vue
+++ b/src/pages/login/index.vue
@@ -132,7 +132,7 @@
storage.clearStorage()
if (process.env.NODE_ENV === 'development') {
this.username = "admin"
- this.password = "win123456";
+ this.password = "CD_win09";
}
uni.setNavigationBarColor({
frontColor: '#ffffff',
diff --git a/src/pages/productPutaway/record/productPutawayRecord.vue b/src/pages/productPutaway/record/productPutawayRecord.vue
index 9d78225b..28c0a642 100644
--- a/src/pages/productPutaway/record/productPutawayRecord.vue
+++ b/src/pages/productPutaway/record/productPutawayRecord.vue
@@ -8,10 +8,17 @@
+
+
+ @updateData="updateData" @removePack="removePack" @editLocation="showScanToLocation"
+ v-else>
@@ -42,6 +49,12 @@
+
+
+
+
+
@@ -72,7 +85,8 @@
getBusinessType,
createItemInfo,
createDetailInfo,
- calcHandleQty
+ calcHandleQty,
+ calcHandleQtyAdd
} from '@/common/record.js';
import {
@@ -87,6 +101,8 @@
import winScanPackage from '@/mycomponents/scan/winScanPackage.vue'
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue"
import winComScanBalance from '@/mycomponents/scan/winComScanBalance.vue'
+ import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
+ import recordComDetailCardBatch from '@/mycomponents/record/recordComDetailCardBatch.vue'
import {
updateTitle
} from '@/common/basic.js';
@@ -100,7 +116,9 @@
recordComDetailCard,
winScanPackage,
winScanLocation,
- winComScanBalance
+ winComScanBalance,
+ winScanPackAndLocation,
+ recordComDetailCardBatch
},
data() {
return {
@@ -120,7 +138,8 @@
businessType: {},
managementList: [],
type: '',
- editItem: null
+ editItem: null,
+ managementType:''
};
},
// 装配收货:type = 'assemble'
@@ -154,8 +173,140 @@
},
methods: {
- getScanResult(result) {
- this.setData(result);
+ getScanResult(result,managementTypeParams) {
+ this.managementType = managementTypeParams
+ if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){
+ this.setDataBatch(result)
+ }else{
+ this.setData(result)
+ }
+ },
+ async setDataBatch(result) {
+ let balance = result.balance;
+ let label = result.label;
+ let pack = result.package;
+
+ var item = this.detailSource.find(res => {
+ if (res.itemCode == balance.itemCode) {
+ return res
+ }
+ })
+ if (item == undefined) {
+ var itemp = createItemInfo(balance, pack);
+ // itemp.containerNumber=""
+ let newDetail = createDetailInfo(balance, pack); //
+ newDetail.fromLocationCode=balance.locationCode
+
+ newDetail.parentNumber = pack.parentNumber;
+ newDetail.packingNumber = pack.number
+ newDetail.packUnit = pack.packUnit;
+ newDetail.packQty = pack.packQty;
+ if (balance.lableQty) {
+ newDetail.handleQty = balance.lableQty
+ }
+ newDetail.handleQty =0;
+ newDetail.balanceQty =result.balance.qty;
+ itemp.subList.push(newDetail);
+ this.detailSource.push(itemp)
+ this.itemCode = balance.itemCode;
+ this.fromLocationCode = balance.locationCode
+ await this.getRecommendLocation(balance,result)
+ await this.scanPopupGetFocus()
+ } else {
+ var detail = item.subList.find(r => {
+ if (r.batch == balance.batch &&
+ r.fromLocationCode == balance.locationCode &&
+ r.inventoryStatus == balance.inventoryStatus) {
+ return r;
+ }
+ })
+ if (detail == undefined) {
+ //如果最开始扫父,在扫子,提示已经扫描父包装
+ //如果扫子在扫父,提示扫描的是父包装,是否移除子包装,是移除子包装,显示父包装
+ //扫描的是子包装,
+ if (pack.parentNumber) {
+ var checkData = item.subList.find(r => {
+ if (r.packingNumber == pack.parentNumber &&
+ r.batch == balance.batch&&
+ r.fromLocationCode == balance.locationCode) {
+ return r;
+ }
+ })
+ if (checkData) {
+ //提示已经扫描
+ this.showErrorMessage("扫描箱码[" + pack.number + "]批次[" + balance.batch +
+ "]的父包装已经扫描")
+ console.log("父包装已经扫描")
+ } else {
+ let newDetail = createDetailInfo(balance, pack);
+ newDetail.parentNumber = pack.parentNumber;
+ newDetail.packingNumber = pack.number
+ newDetail.packUnit = pack.packUnit;
+ newDetail.packQty = pack.packQty;
+ newDetail.fromLocationCode=balance.locationCode
+ if (balance.lableQty) {
+ newDetail.handleQty = balance.lableQty
+ }
+ newDetail.handleQty =0;
+ newDetail.balanceQty =result.balance.qty;
+ item.subList.push(newDetail);
+ }
+ } else {
+ //扫描的是父包装
+ var checkData = item.subList.find(r => {
+ if (r.parentNumber == pack.number &&
+ r.batch == balance.batch&&
+ r.fromLocationCode == balance.locationCode) {
+ return r;
+ }
+ })
+ if (checkData) {
+ //是否移除
+ this.$refs.comMessage.showQuestionMessage("箱码[" + checkData.parentNumber+"]" + "批次[" + balance
+ .batch + "]是父包装,是否移除子包装", res => {
+ if (res) {
+ item.subList = [];
+ let newDetail = createDetailInfo(balance, pack);
+ newDetail.parentNumber = pack.parentNumber;
+ newDetail.packingNumber = pack.number
+ newDetail.packUnit = pack.packUnit;
+ newDetail.packQty = pack.packQty;
+ newDetail.fromLocationCode=balance.locationCode
+ if (balance.lableQty) {
+ newDetail.handleQty = balance.lableQty
+ }
+ newDetail.handleQty =0;
+ newDetail.balanceQty =result.balance.qty;
+ item.subList.push(newDetail);
+ calcHandleQtyAdd(this.detailSource,result.label);
+ }
+ })
+ console.log("扫描的是父包装,是否移除子包装")
+ } else {
+ let newDetail = createDetailInfo(balance, pack);
+ newDetail.fromLocationCode=balance.locationCode
+ newDetail.parentNumber = pack.parentNumber;
+ newDetail.packingNumber = pack.number
+ newDetail.packUnit = pack.packUnit;
+ newDetail.packQty = pack.packQty;
+ if (balance.lableQty) {
+ newDetail.handleQty = balance.lableQty
+ }
+ newDetail.handleQty =0;
+ newDetail.balanceQty =result.balance.qty;
+ item.subList.push(newDetail);
+ }
+ }
+
+ this.scanPopupGetFocus()
+ } else {
+ if (detail.scaned == true) {
+ // detail.handleQty = calc.add(detail.handleQty,result.label.qty)
+ // this.showErrorMessage("箱码[" + detail.packingNumber + "批次[" + balance.batch + "]重复扫描")
+ }
+ }
+ }
+ calcHandleQtyAdd(this.detailSource,result.label);
},
async setData(result) {
@@ -421,7 +572,8 @@
openScanPopup() {
if (this.businessType) {
this.toLocationAreaTypeList = getDirectoryItemArray(this.businessType.inAreaTypes)
- this.$refs.scanPopup.openScanPopup(this.businessType);
+ // this.$refs.scanPopup.openScanPopup(this.businessType);
+ this.openFromLocationScanPopup()
} else {
this.getBusinessType()
}
@@ -444,7 +596,18 @@
this.$refs.scanPopup.losefocus();
}
},
-
+ openFromLocationScanPopup() {
+ if (this.fromLocationCode == "") {
+ this.showFromLocationPopup();
+ return
+ }
+ this.$refs.winScanPackAndLocationRef.openScanPopupForType(this.fromLocationCode, this.businessType);
+ },
+ showFromLocationPopup() {
+ this.$nextTick(() => {
+ this.$refs.winScanFromLocation.openScanPopup();
+ })
+ },
scanLocationCode(location, code) {
this.toLocationCode = code
this.detailSource.forEach(item => {
@@ -463,7 +626,15 @@
});
var params = this.setParams()
+
console.log("提交" + JSON.stringify(params))
+ const isHaveItem =params.subList.find(item=>item.handleQty > item.balanceQty)
+ if(isHaveItem){
+ this.showErrorMessage(`物料号${isHaveItem.itemCode}`)
+ this.$refs.comMessage.showConfirmWarningModal('物料号'+isHaveItem.itemCode+'数量[' + isHaveItem.handleQty + ']不允许大于库存数量[' + isHaveItem.balanceQty + ']')
+ uni.hideLoading()
+ return
+ }
productPutawayRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
@@ -574,7 +745,14 @@
getToLocationCode(location, code) {
this.editItem.toLocationCode = code;
},
-
+ getLocation(location, code) {
+ this.getFromLocationCode(location, code)
+ },
+ getFromLocationCode(location, code) {
+ this.fromLocationInfo = location;
+ this.fromLocationCode = code;
+ this.openScanPopup();
+ },
showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => {
this.clearData();
diff --git a/src/pages/putaway/record/putawayRecord.vue b/src/pages/putaway/record/putawayRecord.vue
index 69841f91..1ea5eab1 100644
--- a/src/pages/putaway/record/putawayRecord.vue
+++ b/src/pages/putaway/record/putawayRecord.vue
@@ -173,13 +173,13 @@
getScanResult(result,managementType) {
this.managementType = managementTypeParams
if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){
- this. getScanResultAfterBatch(result)
+ this.setDataBatch(result)
}else{
- this. getScanResultAfter(result)
+ this.setData(result)
}
},
- getScanResultAfterBatch(result){
+ setDataBatch(result){
let balance = result.balance;
let label = result.label;
let pack = result.package;
@@ -251,7 +251,7 @@
}
},
- getScanResultAfter(result){
+ setData(result){
let balance = result.balance;
let label = result.label;
let pack = result.package;
From 1d37a83b02215208c03f27c7918c0fa9be2e66bf Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 30 Oct 2024 09:55:01 +0800
Subject: [PATCH 037/201] =?UTF-8?q?YT-565=E5=8F=91=E6=96=99=E4=BB=BB?=
=?UTF-8?q?=E5=8A=A1=EF=BC=8C=E6=89=93=E5=8D=B0=E5=BA=93=E5=AD=98=E6=A0=87?=
=?UTF-8?q?=E7=AD=BE=EF=BC=8C=E6=89=AB=E6=8F=8F=E6=8F=90=E7=A4=BA=E5=B8=A6?=
=?UTF-8?q?=E5=8C=85=E8=A3=85HPQ;V1.0;UKG;E;L;O;Sdefault;LB017020;B2024102?=
=?UTF-8?q?9;A;Q5.000000;IQPLP1-20200-00;PPN20241029-0000000002;?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/issue/coms/comScanIssuePack.vue | 25 +++++++++++++++--------
src/pages/issue/job/issueDetail.vue | 7 ++++---
2 files changed, 21 insertions(+), 11 deletions(-)
diff --git a/src/pages/issue/coms/comScanIssuePack.vue b/src/pages/issue/coms/comScanIssuePack.vue
index e4e88005..ecf674cf 100644
--- a/src/pages/issue/coms/comScanIssuePack.vue
+++ b/src/pages/issue/coms/comScanIssuePack.vue
@@ -55,7 +55,7 @@
+ headerType="HPQ,HMQ" :isShowHistory="false" :locationCode='locationCode'>
@@ -152,6 +152,10 @@
type: String,
default: ''
},
+ locationCode:{
+ type: String,
+ default: ''
+ }
},
data() {
return {
@@ -179,7 +183,7 @@
fontSize: "100rpx"
},
bussinessCode: 'Issue',
- toLocationAreaTypeList: []
+ toLocationAreaTypeList: [],
}
},
created() {
@@ -270,7 +274,7 @@
}
},
- queryBalance(result) {
+ queryBalance(result , managementType ) {
try {
let that = this;
// if (that.fromLocationCode == '') {
@@ -281,7 +285,12 @@
// }
let packageInfo = result.package;
let itemCode = result.label.itemCode;
- let packingCode = result.label.packingNumber;
+ let packingCode = '';
+ if(managementType == 'BY_BATCH' || managementType == 'BY_QUANTITY'){
+ packingCode = ''
+ } else{
+ packingCode = result.label.packingNumber;
+ }
let lot = result.label.batch;
let item = that.toLocation.Items.find(r => r.itemCode == itemCode);
if (item == undefined) {
@@ -401,7 +410,7 @@
},
- onScan(result) {
+ onScan(result, managementType) {
if (!result.package) {
this.showErrorMessage('扫描数据错误[' + result.label.code + "]",
res => {
@@ -427,12 +436,12 @@
this.getToLocationBalance(result)
}
}else{
- this.queryBalance(result)
+ this.queryBalance(result, managementType)
}
},
//查询到目标库位的库存余额
- getToLocationBalance(result) {
+ getToLocationBalance(result, managementType) {
uni.showLoading({
title: '查询中',
mask: true
@@ -470,7 +479,7 @@
// value: this.toLocationAreaTypeList.join(',')
// })
- this.queryBalance(result);
+ this.queryBalance(result, managementType);
// var params = {
// filters: filters,
// pageNo: 1,
diff --git a/src/pages/issue/job/issueDetail.vue b/src/pages/issue/job/issueDetail.vue
index 06d17c2f..e171f0ed 100644
--- a/src/pages/issue/job/issueDetail.vue
+++ b/src/pages/issue/job/issueDetail.vue
@@ -46,7 +46,7 @@
+ @afterScan='afterScan' :locationCode='fromLocationCode'>
@@ -115,7 +115,8 @@
jobStatus: "",
scanMessage: '',
managementList: [],
- managementType: ""
+ managementType: "",
+ fromLocationCode:''
};
},
@@ -300,7 +301,7 @@
this.showErrorMessage("请扫描您需要提交的发料任务")
return
}
- console.log("提交参数", JSON.stringify(params));
+ console.log("提交参数", params);
issueJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
From a79acbce07af3f2bf4269d4340befba0749fa9bd Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 30 Oct 2024 09:55:40 +0800
Subject: [PATCH 038/201] =?UTF-8?q?YT-565=E5=8F=91=E6=96=99=E4=BB=BB?=
=?UTF-8?q?=E5=8A=A1=EF=BC=8C=E6=89=93=E5=8D=B0=E5=BA=93=E5=AD=98=E6=A0=87?=
=?UTF-8?q?=E7=AD=BE=EF=BC=8C=E6=89=AB=E6=8F=8F=E6=8F=90=E7=A4=BA=E5=B8=A6?=
=?UTF-8?q?=E5=8C=85=E8=A3=85HPQ;V1.0;UKG;E;L;O;Sdefault;LB017020;B2024102?=
=?UTF-8?q?9;A;Q5.000000;IQPLP1-20200-00;PPN20241029-0000000002;?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/common/label.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/common/label.js b/src/common/label.js
index f17c0113..9e3a4c8c 100644
--- a/src/common/label.js
+++ b/src/common/label.js
@@ -137,9 +137,11 @@ export async function getLabelItems(labelItem, scanMsg, callBack,locationCode) {
callBack(labelResult);
})
} else {
+ console.log(999,labelResult)
//线边的物料可能没有箱码
labelResult.package = labelResult.label;
labelResult.package.number = packingNumber1 ? packingNumber1 : ''
+ labelResult.package.packingNumber=''
callBack(labelResult);
// labelResult.success = false;
// labelResult.message = '在条码中未解析到箱码';
From d97952e14bd6a6f81e92555f77c18f12d821908d Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 30 Oct 2024 16:04:02 +0800
Subject: [PATCH 039/201] =?UTF-8?q?YT-571=E9=87=87=E8=B4=AD=E6=94=B6?=
=?UTF-8?q?=E8=B4=A7=EF=BC=8C=E4=BB=BB=E5=8A=A1=E5=A6=82=E6=9E=9C=E5=85=81?=
=?UTF-8?q?=E8=AE=B8=E7=BC=96=E8=BE=91=EF=BC=8C=E5=B7=A6=E6=BB=91=E8=A6=81?=
=?UTF-8?q?=E6=9C=89=E7=BC=96=E8=BE=91=E6=8C=89=E9=92=AE=EF=BC=8C=E5=B9=B6?=
=?UTF-8?q?=E4=B8=94=E5=AE=9E=E7=8E=B0=E7=BC=96=E8=BE=91=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../purchaseReceipt/job/receiptDetail.vue | 25 +++++++++++--------
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue
index 9f86cf61..7db13922 100644
--- a/src/pages/purchaseReceipt/job/receiptDetail.vue
+++ b/src/pages/purchaseReceipt/job/receiptDetail.vue
@@ -307,8 +307,6 @@
if (this.scanMessage) {
this.$refs.scanPopup.simulateScan(this.scanMessage);
}
-
-
} else {
that.showMessage('列表数据为0');
}
@@ -319,11 +317,12 @@
})
},
getScanResult(result) {
- if(this.managementType == 'BY_BATCH'){
- this.getScanResultAfterBatch(result)
- }else{
- this.getScanResultAfter(result)
- }
+ this.balanceInfo = result.balance
+ if(this.managementType == 'BY_BATCH'){
+ this.getScanResultAfterBatch(result)
+ }else{
+ this.getScanResultAfter(result)
+ }
},
// 包装扫码之后逻辑
getScanResultAfter(result){
@@ -457,6 +456,7 @@
item.scaned = true;
itemDetail.scanDate = new Date();
item.handleQty = calc.add(item.handleQty,result.label.qty)
+ item.balanceQty = balanceInfo.qty;
item.toLocationCode = this.toLocationCode;
})
// calcHandleQty(this.detailSource);
@@ -507,6 +507,7 @@
pack.labelQty = Number(result.label.qty);
}
}
+ itemDetail.balanceQty = balanceInfo.qty;
calcTreeHandleQty(this.detailSource);
itemDetail.packList.sort(compareDesc('scanDate')); //按扫描信息排序
this.$forceUpdate()
@@ -538,6 +539,7 @@
console.log(itemDetail.handleQty)
itemDetail.toLocationCode = this.toLocationCode;
itemDetail.labelQty = Number(result.label.qty);
+ itemDetail.balanceQty = balanceInfo.qty;
itemDetail.packList.forEach(pac => {
pac.scaned = true
pac.scanDate = new Date();
@@ -568,7 +570,10 @@
},
updateData() {
+ if(this.managementType == 'BY_BATCH'){
+ }else{
calcTreeHandleQty(this.detailSource)
+ }
// calcHandleQty(this.detailSource);
},
@@ -710,6 +715,7 @@
var params = this.setParams();
let that = this
console.log(params)
+ return
purchaseReceiptJobSubmit(params).then(res => {
if (res.data) {
let isCheckPrint = getSwitchInfoByCode(this.switchCode)//是否显示上架指引单
@@ -816,7 +822,7 @@
var subList = []
var createTime = getCurrDateTime();
var creator = this.$store.state.user.id
-
+console.log(8787,this.detailSource)
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
// if (!detail.scaned) {
@@ -828,8 +834,7 @@
}
})
detail.toLocationCode = this.toLocationCode ? this.toLocationCode :this.jobToLocationCode
- var info = getPackingNumberAndBatch(this.managementList, detail.itemCode,
- detail.packingNumber, detail.batch);
+ var info = getPackingNumberAndBatch(this.managementList, detail.itemCode,detail.packingNumber, detail.batch);
detail.toPackingNumber = info.packingNumber;
detail.packingNumber = info.packingNumber;
detail.formPackingNumber = info.packingNumber;
From c04bad89e0523bd30e67a1af2b99ba3d1055c6fc Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 30 Oct 2024 16:07:02 +0800
Subject: [PATCH 040/201] =?UTF-8?q?YT-571=E9=87=87=E8=B4=AD=E6=94=B6?=
=?UTF-8?q?=E8=B4=A7=EF=BC=8C=E4=BB=BB=E5=8A=A1=E5=A6=82=E6=9E=9C=E5=85=81?=
=?UTF-8?q?=E8=AE=B8=E7=BC=96=E8=BE=91=EF=BC=8C=E5=B7=A6=E6=BB=91=E8=A6=81?=
=?UTF-8?q?=E6=9C=89=E7=BC=96=E8=BE=91=E6=8C=89=E9=92=AE=EF=BC=8C=E5=B9=B6?=
=?UTF-8?q?=E4=B8=94=E5=AE=9E=E7=8E=B0=E7=BC=96=E8=BE=91=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../purchaseReceipt/coms/comReceiptDetailCardBacth.vue | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/pages/purchaseReceipt/coms/comReceiptDetailCardBacth.vue b/src/pages/purchaseReceipt/coms/comReceiptDetailCardBacth.vue
index 1266e56f..95e4da69 100644
--- a/src/pages/purchaseReceipt/coms/comReceiptDetailCardBacth.vue
+++ b/src/pages/purchaseReceipt/coms/comReceiptDetailCardBacth.vue
@@ -4,7 +4,7 @@
-
@@ -18,7 +18,7 @@
-
+
@@ -109,6 +109,7 @@
this.scanOptions = getPurchaseReceiptOption(this.settingParam.allowModifyQty, this.settingParam
.allowModifyLocation)
}
+ console.log(111,this.scanOptions)
if (this.removeOptions.length == 0) {
this.removeOptions = getRemoveOption();
@@ -207,6 +208,7 @@
// });
// },
confirm(qty) {
+ console.log(qty)
this.editItem.handleQty = qty;
this.$emit('updateData')
},
From a11e14bb3b00f183afb84472077bbf17e48d3788 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 30 Oct 2024 16:37:13 +0800
Subject: [PATCH 041/201] =?UTF-8?q?YT-575=E6=89=80=E6=9C=89pda=E4=BB=BB?=
=?UTF-8?q?=E5=8A=A1=EF=BC=8C=E6=89=AB=E6=8F=8F=E5=AE=8C=E6=88=90=EF=BC=8C?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=AB=E6=8F=8F=E8=83=8C=E6=99=AF=E8=89=B2?=
=?UTF-8?q?=EF=BC=8C=E6=98=BE=E7=A4=BA=E6=89=AB=E6=8F=8F=E7=9A=84=E5=8C=85?=
=?UTF-8?q?=E8=A3=85=E6=95=B0=E9=87=8F=E5=92=8C=E5=8D=95=E4=BD=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/mycomponents/detail/comJobDetailCardBatch.vue | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/mycomponents/detail/comJobDetailCardBatch.vue b/src/mycomponents/detail/comJobDetailCardBatch.vue
index c80074bb..1a6be7a4 100644
--- a/src/mycomponents/detail/comJobDetailCardBatch.vue
+++ b/src/mycomponents/detail/comJobDetailCardBatch.vue
@@ -2,15 +2,17 @@
+
-
-
-
-
-
+
+
+
+
+
+
From 5b29f2b0da26cd9ac9b5fcc4ba538c8fe7460359 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Thu, 31 Oct 2024 14:11:42 +0800
Subject: [PATCH 042/201] =?UTF-8?q?=E5=8F=91=E6=96=99=E4=BB=BB=E5=8A=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/common/detail.js | 41 +-
src/mycomponents/qty/recommendQtyEdit.vue | 7 +
src/pages.json | 7 +
.../issue/coms/comIssueDetailCardBatch.vue | 87 +-
src/pages/issue/job/issueDetail.vue | 16 +-
src/pages/issue/job/issueDetailBatch.vue | 764 ++++++++++++++++++
src/pages/issue/job/issueJob.vue | 38 +-
.../coms/comProductRecordBatch.vue | 171 ++++
.../record/productReceiptRecord.vue | 118 ++-
9 files changed, 1173 insertions(+), 76 deletions(-)
create mode 100644 src/pages/issue/job/issueDetailBatch.vue
create mode 100644 src/pages/productReceipt/coms/comProductRecordBatch.vue
diff --git a/src/common/detail.js b/src/common/detail.js
index 47e53bb7..89721e7a 100644
--- a/src/common/detail.js
+++ b/src/common/detail.js
@@ -41,10 +41,49 @@ export function getTreeDataSource(dataList) {
})
)
}
-
return items;
}
+export function getThreeDataSource(data) {
+ let items = []
+ // let obj ={
+ // ...data.subList[0]
+ // }
+ // console.log(12)
+ // data.subList.forEach((item)=>{
+ // item.threeList = [{
+ // fromLocationCode:item.fromLocationCode,
+ // batch:item.batch,
+ // handleQty:0,
+ // qty:item.qty,
+ // inventoryStatus:item.inventoryStatus,
+ // toLocationCode:item.toLocationCode,
+ // }]
+ // item.packList=[{
+ // scaned : false,
+ // scanDate: new Date()
+ // }]
+ // })
+ // obj.subList = data.subList
+ // items.push(obj)
+ // return items;
+ data.subList.forEach((item)=>{
+ item.subList = [{
+ fromLocationCode:item.fromLocationCode,
+ batch:item.batch,
+ handleQty:0,
+ qty:item.qty,
+ inventoryStatus:item.inventoryStatus,
+ toLocationCode:item.toLocationCode,
+ // packList:[{
+ // scaned : false,
+ // scanDate: new Date()
+ // }]
+ }]
+ })
+ items = data.subList
+ return items;
+}
export function getDataSource(subList) {
let items = [];
subList.forEach(detail => {
diff --git a/src/mycomponents/qty/recommendQtyEdit.vue b/src/mycomponents/qty/recommendQtyEdit.vue
index 9510cb05..56b6ccb1 100644
--- a/src/mycomponents/qty/recommendQtyEdit.vue
+++ b/src/mycomponents/qty/recommendQtyEdit.vue
@@ -41,6 +41,13 @@
+
+ 库存数量 :
+
+ {{Number(dataContent.balanceQty)}}
+
+
+
diff --git a/src/pages.json b/src/pages.json
index d26dec1e..3b6dd86d 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -636,6 +636,13 @@
"enablePullDownRefresh": false
}
},
+ {
+ "path": "pages/issue/job/issueDetailBatch",
+ "style": {
+ "navigationBarTitleText": "发料任务详情",
+ "enablePullDownRefresh": false
+ }
+ },
{
"path": "pages/issue/job/issueJob0816",
"style": {
diff --git a/src/pages/issue/coms/comIssueDetailCardBatch.vue b/src/pages/issue/coms/comIssueDetailCardBatch.vue
index b70a9763..33de6657 100644
--- a/src/pages/issue/coms/comIssueDetailCardBatch.vue
+++ b/src/pages/issue/coms/comIssueDetailCardBatch.vue
@@ -3,40 +3,30 @@
-
+
-
+
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
+
+
-
+
+
+
@@ -54,6 +44,7 @@
import detailInfoPopup from '@/pages/productionReceipt/coms/detailInfoPopup.vue'
import comIssueRequestInfo from '@/pages/issue/coms/comIssueRequestInfo.vue'
import batch from '@/mycomponents/balance/batch.vue'
+ import qtyEdit from '@/mycomponents/qty/qtyEdit.vue'
import {
getDetailOption,
getEditRemoveOption,
@@ -73,17 +64,21 @@
location,
detailInfoPopup,
comIssueRequestInfo,
- batch
+ batch,
},
props: {
dataContent: {
- type: Object,
- default: {}
+ type: Array,
+ default: []
},
settingParam: {
type: Object,
default: {}
},
+ isEdit: {
+ type: Boolean,
+ default: true
+ },
},
watch: {
@@ -97,7 +92,8 @@
batchItem: {},
detailOptions: [],
scanOptions: [],
- removeOptions: []
+ removeOptions: [],
+ editAndRemoveOptions:[]
}
},
@@ -105,17 +101,18 @@
this.detailOptions = getDetailOption();
this.scanOptions = getEditRemoveOption();
this.removeOptions = getRemoveOption()
+ this.editAndRemoveOptions = getEditRemoveOption()
+ console.log(888,this.dataContent)
},
methods: {
resizeCollapse() {
this.$nextTick(r => {
- this.$refs.collapse.forEach(r => {
- r.childrens.forEach(i => {
+ this.$refs.collapse.resize()
+ this.$refs.collapse.childrens.forEach(i => {
i.init();
})
- r.resize();
- })
+
});
},
swipeClick(e, batch,
@@ -132,18 +129,19 @@
},
itemCoceClick(e, item, index) {
- if (e.content.text == "移除") {
- this.dataContent.Items.splice(index, 1);
- this.$emit('removeItemCode')
+ if (e.content.text == "编辑") {
+ this.edit(item)
+ } else if (e.content.text == "移除") {
+ // this.dataContent.subList.splice(index, 1);
+ item.scaned = false
+ item.handleQty=0
+ this.$emit('updateData')
}
},
- edit(batch, item) {
- let that = this;
- that.editItem = item;
- that.batchItem = batch;
- item.balance.balanceQty = item.balance.qty;
- that.$refs.balanceQtyEdit.openEditPopup(item.balance, item.qty);
+ edit(item) {
+ this.editItem = item;
+ this.$refs.receiptEdit.openTaskEditPopup(item.qty, item.handleQty, item.labelQty);
},
detail(item) {
@@ -167,13 +165,8 @@
});
},
confirm(val) {
- this.editItem.qty = val;
+ this.editItem.handleQty = Number(val);
this.$emit('updateData', this.editItem)
- // let qty = 0;
- // this.batchItem.Records.forEach(r => {
- // qty += Number(r.qty);
- // })
- // this.batchItem.handleQty = qty;
}
}
}
diff --git a/src/pages/issue/job/issueDetail.vue b/src/pages/issue/job/issueDetail.vue
index e171f0ed..9ddc72ac 100644
--- a/src/pages/issue/job/issueDetail.vue
+++ b/src/pages/issue/job/issueDetail.vue
@@ -15,18 +15,11 @@
-
-
-
+ @updateData='updateData'>
@@ -46,7 +39,7 @@
+ @afterScan='afterScan'>
@@ -115,8 +108,7 @@
jobStatus: "",
scanMessage: '',
managementList: [],
- managementType: "",
- fromLocationCode:''
+ managementType: ""
};
},
@@ -301,7 +293,7 @@
this.showErrorMessage("请扫描您需要提交的发料任务")
return
}
- console.log("提交参数", params);
+ console.log("提交参数", JSON.stringify(params));
issueJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
diff --git a/src/pages/issue/job/issueDetailBatch.vue b/src/pages/issue/job/issueDetailBatch.vue
new file mode 100644
index 00000000..4ebb2c30
--- /dev/null
+++ b/src/pages/issue/job/issueDetailBatch.vue
@@ -0,0 +1,764 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/issue/job/issueJob.vue b/src/pages/issue/job/issueJob.vue
index 6ab76832..bfe490a6 100644
--- a/src/pages/issue/job/issueJob.vue
+++ b/src/pages/issue/job/issueJob.vue
@@ -61,6 +61,11 @@
getDetailGiveupOption,
getDetailCloseOption
} from '@/common/array.js';
+
+
+ import {
+ getManagementPrecisions
+ } from '@/common/balance.js';
import comEmptyView from '@/mycomponents/common/comEmptyView.vue'
import jobFilter from '@/mycomponents/job/jobFilter.vue'
@@ -355,8 +360,7 @@
openJobDetail(item, scanMessage = '') {
- this.getJobInfoByNumber(item.number, scanMessage)
-
+ this.getJobInfoByNumber(item, scanMessage)
},
showItemList(itemList) {
@@ -433,7 +437,7 @@
})
},
- getJobInfoByNumber(number, scanMessage) {
+ getJobInfoByNumber(item, scanMessage) {
let that = this;
uni.showLoading({
title: "加载中....",
@@ -448,7 +452,7 @@
filters.push({
column: "number",
action: "==",
- value: number
+ value: item.number
})
var params = {
@@ -475,11 +479,27 @@
return;
}
- uni.navigateTo({
- url: './issueDetail?id=' + result.masterId + '&status=' + result.status +
- '&scanMessage=' +
- scanMessage + '&title=' + this.title
- });
+
+ getManagementPrecisions([item.itemCode], item.fromLocationCode, res => {
+ if (res.success) {
+ this.managementList = res.list;
+ this.managementType = this.managementList&&this.managementList[0]&&this.managementList[0].ManagementPrecision
+ if(this.managementType == 'BY_BATCH'){
+ uni.navigateTo({
+ url: './issueDetailBatch?id=' + result.masterId + '&status=' + result.status +
+ '&scanMessage=' +
+ scanMessage + '&title=' + this.title
+ });
+ }else{
+ uni.navigateTo({
+ url: './issueDetail?id=' + result.masterId + '&status=' + result.status +
+ '&scanMessage=' +
+ scanMessage + '&title=' + this.title
+ });
+ }
+ }
+ })
+
this.scanMessage = ""
}
}).catch(error => {
diff --git a/src/pages/productReceipt/coms/comProductRecordBatch.vue b/src/pages/productReceipt/coms/comProductRecordBatch.vue
new file mode 100644
index 00000000..ba777607
--- /dev/null
+++ b/src/pages/productReceipt/coms/comProductRecordBatch.vue
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/productReceipt/record/productReceiptRecord.vue b/src/pages/productReceipt/record/productReceiptRecord.vue
index d12eabf4..6b0ba794 100644
--- a/src/pages/productReceipt/record/productReceiptRecord.vue
+++ b/src/pages/productReceipt/record/productReceiptRecord.vue
@@ -8,8 +8,11 @@
+
+
+ @updateData="updateData" @removePack="removePack" v-else>
@@ -42,6 +45,12 @@
+
+
+
+
+
@@ -79,14 +88,20 @@
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import winScanPack from '@/mycomponents/scan/winScanPack.vue'
import comProductRecord from '@/pages/productReceipt/coms/comProductRecord.vue'
+ import comProductRecordBatch from '@/pages/productReceipt/coms/comProductRecordBatch.vue'
import comBlankView from '@/mycomponents/common/comBlankView.vue'
+ import winScanLocation from "@/mycomponents/scan/winScanLocation.vue"
+ import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
export default {
components: {
winScanButton,
winScanPack,
comProductRecord,
+ comProductRecordBatch,
comBlankView,
+ winScanLocation,
+ winScanPackAndLocation,
},
data() {
return {
@@ -108,6 +123,7 @@
workShopName: "",
productionLineName: "",
workStationName: "",
+ managementType:''
};
},
onLoad(option) {
@@ -142,7 +158,53 @@
mounted() {},
methods: {
- getScanResult(result) {
+ getScanResult(result,managementTypeParams ) {
+ this.managementType = managementTypeParams
+ if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){
+ this.setDataBatch(result)
+ }else{
+ this.setData(result)
+ }
+ },
+ async setDataBatch(result) {
+ let label = result.label;
+ let pack = result.package;
+
+ var item = this.detailSource.find(res => {
+ if (res.itemCode == label.itemCode) {
+ return res
+ }
+ })
+
+ if (item == undefined) {
+ var itemp = this.createItemInfo(label, pack);
+ let newDetail = this.createDetailInfo(label, pack);
+ newDetail.handleQty =0;
+ newDetail.balanceQty =result.balance.qty;
+ itemp.subList.push(newDetail);
+ this.detailSource.push(itemp)
+ } else {
+ var detail = item.subList.find(r => {
+ if (r.packingNumber == label.packingNumber &&
+ r.batch == label.batch) {
+ return r;
+ }
+ })
+
+ if (detail == undefined) {
+ let newDetail = this.createDetailInfo(label, pack);
+ newDetail.handleQty =0;
+ newDetail.balanceQty =result.balance.qty;
+ item.subList.push(newDetail);
+ } else {
+ if (detail.scaned == true) {
+ // this.showErrorMessage("箱码[" + label.packingNumber + "批次[" + label.batch + "]重复扫描")
+ }
+ }
+ }
+ this.calcHandleQtyAdd(result.label);
+ },
+ async setData(result) {
let label = result.label;
let pack = result.package;
@@ -218,14 +280,40 @@
this.$forceUpdate();
},
+ calcHandleQtyAdd(label) {
+ for (let item of this.detailSource) {
+ item.handleQty = item.handleQty || new Decimal(0).toNumber();
+ for (let detail of item.subList) {
+ if (detail != undefined) {
+ item.handleQty = calc.add(item.handleQty,label.qty)
+ detail.handleQty = calc.add(detail.handleQty,label.qty)
+ }
+ }
+ }
+ console.log(this.detailSource)
+ this.scanPopupGetFocus();
+ this.$forceUpdate();
+ },
updateData() {
this.calcHandleQty();
},
openScanPopup() {
- this.$refs.scanPopup.openScanPopup();
+ // this.$refs.scanPopup.openScanPopup();
+ this.openFromLocationScanPopup()
+ },
+ openFromLocationScanPopup() {
+ if (this.fromLocationCode == "") {
+ this.showFromLocationPopup();
+ return
+ }
+ this.$refs.winScanPackAndLocationRef.openScanPopupForType(this.fromLocationCode, this.businessType);
+ },
+ showFromLocationPopup() {
+ this.$nextTick(() => {
+ this.$refs.winScanFromLocation.openScanPopup();
+ })
},
-
commit() {
if (this.positionInfo == "请选择位置") {
this.showMessage("请先选择位置")
@@ -240,12 +328,21 @@
});
this.managementList = [];
var precisionStrategParams = this.setPrecisionStrategParams()
-
+
getPrecisionStrategyList(precisionStrategParams, res => {
if (res.success) {
this.managementList = res.list;
var params = this.setParams()
- console.log("提交" + JSON.stringify(params))
+
+ console.log("提交",params)
+ const isHaveItem =params.subList.find(item=>item.handleQty > item.balanceQty)
+ if(isHaveItem){
+ this.showErrorMessage(`物料号${isHaveItem.itemCode}`)
+ this.$refs.comMessage.showConfirmWarningModal('物料号'+isHaveItem.itemCode+'数量[' + isHaveItem.handleQty + ']不允许大于库存数量[' + isHaveItem.balanceQty + ']')
+ uni.hideLoading()
+ return
+ }
+ return
productionReceiptRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
@@ -379,7 +476,14 @@
this.$refs.scanPopup.losefocus();
}
},
-
+ getLocation(location, code) {
+ this.getFromLocationCode(location, code)
+ },
+ getFromLocationCode(location, code) {
+ this.fromLocationInfo = location;
+ this.fromLocationCode = code;
+ this.openScanPopup();
+ },
afterCloseMessage() {
this.scanPopupGetFocus();
},
From 9b29cfce5986cbee87b51a14dfef475c9e2374a6 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Thu, 31 Oct 2024 14:34:27 +0800
Subject: [PATCH 043/201] =?UTF-8?q?YT-562=E5=8F=91=E6=96=99=E4=BB=BB?=
=?UTF-8?q?=E5=8A=A1=EF=BC=8C=E6=89=AB=E6=8F=8F=E6=95=B0=E9=87=8F=E4=B8=8E?=
=?UTF-8?q?=E4=BB=BB=E5=8A=A1=E4=B8=8D=E4=B8=80=E8=87=B4=EF=BC=8C=E6=8F=90?=
=?UTF-8?q?=E7=A4=BA=E7=82=B9=E5=87=BB=E5=8F=96=E6=B6=88=EF=BC=8C=E5=BA=94?=
=?UTF-8?q?=E6=8A=8A=E6=89=AB=E6=8F=8F=E7=9A=84=E6=89=AB=E5=88=B0=E4=B8=8B?=
=?UTF-8?q?=E6=96=B9YT-575=E5=8F=91=E6=96=99=E4=BB=BB=E5=8A=A1=E5=A2=9E?=
=?UTF-8?q?=E5=8A=A0=E6=89=AB=E6=8F=8F=E8=83=8C=E6=99=AF=E8=89=B2=EF=BC=8C?=
=?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=89=AB=E6=8F=8F=E7=9A=84=E5=8C=85=E8=A3=85?=
=?UTF-8?q?=E6=95=B0=E9=87=8F=E5=92=8C=E5=8D=95=E4=BD=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/issue/job/issueDetailBatch.vue | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/src/pages/issue/job/issueDetailBatch.vue b/src/pages/issue/job/issueDetailBatch.vue
index 4ebb2c30..47a504d3 100644
--- a/src/pages/issue/job/issueDetailBatch.vue
+++ b/src/pages/issue/job/issueDetailBatch.vue
@@ -503,7 +503,8 @@
var creator = this.$store.state.user.id
console.log(2343,this.detailSource)
this.detailSource.forEach(toLocationCode => {
- let obj = toLocationCode
+ let obj = {...toLocationCode}
+ delete obj.subList
obj.recordList = []
let obj1 ={}
let arr = toLocationCode.subList.filter(item=>item.scaned)
@@ -520,14 +521,18 @@
obj1.packingNumber =record.packingNumber;
obj1.qty =record.qty;
obj1.scaned =record.scaned;
- obj1.inventoryStatus =record.fromInventoryStatus;
- obj1.inventoryStatus =record.fromInventoryStatus;
obj1.toLocationCode =record.toLocationCode;
+ obj1.fromPackingNumber ='';
+ obj1.fromBatch = record.batch;
+ obj1.toBatch = record.batch;
+ obj1.toInventoryStatus = record.inventoryStatus;
+ obj1.toPackingNumber ="";
+ obj1.packingNumber = "";
let single_price = record.balance.singlePrice == null ? 0 : record.balance.singlePrice;
- record.singlePrice = single_price;
- record.amount = single_price *record.qty;
+ obj1.singlePrice = single_price;
+ obj1.amount = single_price *record.qty;
obj.recordList.push(obj1)
})
subList.push(obj)
From 25dc13f1f52280e8054e895aea0a91c9933e8fc2 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Thu, 31 Oct 2024 15:45:41 +0800
Subject: [PATCH 044/201] =?UTF-8?q?YT-581=E9=87=87=E8=B4=AD=E6=94=B6?=
=?UTF-8?q?=E8=B4=A7=E4=BB=BB=E5=8A=A1PDA=E6=89=AB=E6=8F=8F=E6=8A=A5?=
=?UTF-8?q?=E9=94=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/mycomponents/qty/recommendQtyEdit.vue | 6 +++-
.../coms/comReceiptDetailCard.vue | 2 +-
.../coms/comReceiptDetailCardBacth.vue | 33 ++++++-------------
.../purchaseReceipt/job/receiptDetail.vue | 26 +++++++--------
4 files changed, 29 insertions(+), 38 deletions(-)
diff --git a/src/mycomponents/qty/recommendQtyEdit.vue b/src/mycomponents/qty/recommendQtyEdit.vue
index 56b6ccb1..29b5316a 100644
--- a/src/mycomponents/qty/recommendQtyEdit.vue
+++ b/src/mycomponents/qty/recommendQtyEdit.vue
@@ -41,7 +41,7 @@
-
+
库存数量 :
{{Number(dataContent.balanceQty)}}
@@ -119,6 +119,10 @@ import { nextTick } from 'vue';
type: Boolean,
default: true
},
+ showBalanceQty: {
+ type: Boolean,
+ default: false
+ },
},
methods: {
getPackUnitName(packUnit) {
diff --git a/src/pages/purchaseReceipt/coms/comReceiptDetailCard.vue b/src/pages/purchaseReceipt/coms/comReceiptDetailCard.vue
index bd31d00b..0756ec5d 100644
--- a/src/pages/purchaseReceipt/coms/comReceiptDetailCard.vue
+++ b/src/pages/purchaseReceipt/coms/comReceiptDetailCard.vue
@@ -12,7 +12,7 @@
diff --git a/src/pages/purchaseReceipt/coms/comReceiptDetailCardBacth.vue b/src/pages/purchaseReceipt/coms/comReceiptDetailCardBacth.vue
index 95e4da69..bd31d00b 100644
--- a/src/pages/purchaseReceipt/coms/comReceiptDetailCardBacth.vue
+++ b/src/pages/purchaseReceipt/coms/comReceiptDetailCardBacth.vue
@@ -4,17 +4,16 @@
-
+
-
-
-
-
+
@@ -34,13 +33,9 @@
import jobDetailPopup from '@/mycomponents/detail/jobDetailPopup.vue'
import receiptDetailInfoPopup from '@/pages/purchaseReceipt/coms/receiptDetailInfoPopup.vue'
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue"
+ import pack from '@/mycomponents/balance/pack.vue'
import detailList from '@/mycomponents/detail/detailList.vue'
import packageList from '@/mycomponents/package/packageList.vue'
-
- import pack from '@/mycomponents/balance/pack.vue'
- import location from '@/mycomponents/balance/location.vue'
- import toLocation from '@/mycomponents/balance/toLocation.vue'
- import batch from '@/mycomponents/balance/batch.vue'
import {
getDetailOption,
@@ -58,11 +53,7 @@
receiptDetailInfoPopup,
winScanLocation,
detailList,
- packageList,
- pack,
- location,
- toLocation,
- batch
+ packageList
},
props: {
dataContent: {
@@ -77,6 +68,8 @@
type: Object,
default: null
},
+
+
},
watch: {
@@ -99,9 +92,6 @@
},
mounted() {
- this.$nextTick(()=>{
- console.log(this.dataContent)
- })
if (this.detailOptions.length == 0) {
this.detailOptions = getDetailOption();
}
@@ -109,7 +99,6 @@
this.scanOptions = getPurchaseReceiptOption(this.settingParam.allowModifyQty, this.settingParam
.allowModifyLocation)
}
- console.log(111,this.scanOptions)
if (this.removeOptions.length == 0) {
this.removeOptions = getRemoveOption();
@@ -208,14 +197,12 @@
// });
// },
confirm(qty) {
- console.log(qty)
this.editItem.handleQty = qty;
this.$emit('updateData')
},
updateData() {
this.$emit('updateData')
- },
-
+ }
}
}
diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue
index 7db13922..4dace67f 100644
--- a/src/pages/purchaseReceipt/job/receiptDetail.vue
+++ b/src/pages/purchaseReceipt/job/receiptDetail.vue
@@ -390,7 +390,7 @@
pack.labelQty = Number(result.label.qty);
}
}
- calcTreeHandleQty(this.detailSource);
+ calcHandleQty(this.detailSource);
itemDetail.packList.sort(compareDesc('scanDate')); //按扫描信息排序
this.$forceUpdate()
}
@@ -456,7 +456,6 @@
item.scaned = true;
itemDetail.scanDate = new Date();
item.handleQty = calc.add(item.handleQty,result.label.qty)
- item.balanceQty = balanceInfo.qty;
item.toLocationCode = this.toLocationCode;
})
// calcHandleQty(this.detailSource);
@@ -497,7 +496,9 @@
}
if (isScan) {
pack.scanDate = new Date();
- this.showMessage("箱码【" + packingNumber + "】已经扫描");
+ // this.showMessage("箱码【" + packingNumber + "】已经扫描");
+
+ pack.handleQty = calc.add(pack.handleQty,result.label.qty)
} else {
this.packingNumberList.push(packingNumber)
pack.scaned = true
@@ -507,8 +508,7 @@
pack.labelQty = Number(result.label.qty);
}
}
- itemDetail.balanceQty = balanceInfo.qty;
- calcTreeHandleQty(this.detailSource);
+ calcHandleQty(this.detailSource);
itemDetail.packList.sort(compareDesc('scanDate')); //按扫描信息排序
this.$forceUpdate()
}
@@ -529,7 +529,8 @@
}
if (isScan) {
itemDetail.scanDate = new Date();
- this.showMessage("箱码【" + packingNumber + "】已经扫描")
+ // this.showMessage("箱码【" + packingNumber + "】已经扫描")
+ itemDetail.handleQty = calc.add(itemDetail.handleQty,result.label.qty)
} else {
this.packingNumberList.push(packingNumber)
itemDetail.scaned = true;
@@ -539,7 +540,6 @@
console.log(itemDetail.handleQty)
itemDetail.toLocationCode = this.toLocationCode;
itemDetail.labelQty = Number(result.label.qty);
- itemDetail.balanceQty = balanceInfo.qty;
itemDetail.packList.forEach(pac => {
pac.scaned = true
pac.scanDate = new Date();
@@ -551,6 +551,7 @@
this.continueScan()
this.$forceUpdate()
}
+ calcHandleQty(this.detailSource);
}
}
}
@@ -570,11 +571,11 @@
},
updateData() {
- if(this.managementType == 'BY_BATCH'){
- }else{
- calcTreeHandleQty(this.detailSource)
- }
- // calcHandleQty(this.detailSource);
+ // if(this.managementType == 'BY_BATCH'){
+ // }else{
+ // calcTreeHandleQty(this.detailSource)
+ // }
+ calcHandleQty(this.detailSource);
},
scanLocationCode(location, code) {
@@ -715,7 +716,6 @@
var params = this.setParams();
let that = this
console.log(params)
- return
purchaseReceiptJobSubmit(params).then(res => {
if (res.data) {
let isCheckPrint = getSwitchInfoByCode(this.switchCode)//是否显示上架指引单
From 0bf1a072152205a83ab8b022782a82d92c1af458 Mon Sep 17 00:00:00 2001
From: lijuncheng
Date: Thu, 31 Oct 2024 17:27:03 +0800
Subject: [PATCH 045/201] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=B4=E6=8E=A5?=
=?UTF-8?q?=E9=87=87=E8=B4=AD=E4=B8=8A=E6=9E=B6,=E8=AE=A1=E5=88=92?=
=?UTF-8?q?=E5=A4=96=E5=87=BA=E5=85=A5=E5=BA=93=EF=BC=8C=E7=89=A9=E6=96=99?=
=?UTF-8?q?=E8=BD=AC=E9=9A=94=E7=A6=BB=EF=BC=8C=E5=BA=93=E5=AD=98=E8=BD=AC?=
=?UTF-8?q?=E7=A7=BB=EF=BC=8C=20=E6=8A=A5=E5=BA=9F=E5=87=BA=E5=BA=93?=
=?UTF-8?q?=EF=BC=8C=E8=B0=83=E6=8B=A8=E5=87=BA=E5=85=A5=E5=BA=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 8 +-
.env.hella13 | 3 +
.env.hella14 | 3 +
.env.hella15 | 3 +
.env.hella16 | 3 +
.env.hella8 | 5 +-
.env.hella9 | 3 +
.env.production | 3 +
.../record/recordComDetailCard.vue | 9 +-
.../inventoryMove/coms/comMoveRecord.vue | 11 +-
.../inventoryMove/record/okToHoldRecord.vue | 50 ++-----
src/pages/putaway/record/putawayRecord.vue | 19 +--
src/pages/scrap/record/scrapRecord.vue | 66 +++++++-
src/pages/transfer/record/deliverRecord.vue | 80 +++++++++-
src/pages/transfer/record/receiptRecord.vue | 55 ++++++-
src/pages/unPlanned/record/issueRecord.vue | 141 ++++++++++++------
src/pages/unPlanned/record/receiptRecord.vue | 63 +++++++-
17 files changed, 397 insertions(+), 128 deletions(-)
diff --git a/.env.development b/.env.development
index 9bf7280a..faacbb33 100644
--- a/.env.development
+++ b/.env.development
@@ -1,11 +1,15 @@
-VITE_BASE_URL=http://172.22.32.9:81/api/admin-api
+# VITE_BASE_URL=http://localhost:12080/admin-api
+VITE_BASE_URL=http://dev.ccwin-in.com:28051/api/admin-api
VITE_BASE_URL_IMAGE=http://172.22.32.9:81/admin-api
# 租户配置
-VITE_TENANT='[{"text":"成都1397","value":2},{"text":"长春2379","value":3}]'
+VITE_TENANT='[{"text":"英泰","value":1},{"text":"长春2379","value":3}]'
# 是否是测试环境
VITE_isDevelopment=true
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='http://172.22.32.9:90'
+
+# 项目管理模式 批次货/包装
+VITE_MANAGE_MODEL="BY_BATCH"
\ No newline at end of file
diff --git a/.env.hella13 b/.env.hella13
index 9a603299..97e83b15 100644
--- a/.env.hella13
+++ b/.env.hella13
@@ -9,3 +9,6 @@ VITE_isDevelopment=false
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='http://172.21.32.13:90'
+
+# 项目管理模式 批次货/包装
+VITE_MANAGE_MODEL="BY_BATCH"
\ No newline at end of file
diff --git a/.env.hella14 b/.env.hella14
index 91cea3ff..441178e5 100644
--- a/.env.hella14
+++ b/.env.hella14
@@ -9,3 +9,6 @@ VITE_isDevelopment=true
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='http://172.21.32.14:90'
+
+# 项目管理模式 批次货/包装
+VITE_MANAGE_MODEL="BY_BATCH"
\ No newline at end of file
diff --git a/.env.hella15 b/.env.hella15
index b40ff86e..f7c9ff07 100644
--- a/.env.hella15
+++ b/.env.hella15
@@ -9,3 +9,6 @@ VITE_isDevelopment=true
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='https://scp.faway-hella.com'
+
+# 项目管理模式 批次货/包装
+VITE_MANAGE_MODEL="BY_BATCH"
\ No newline at end of file
diff --git a/.env.hella16 b/.env.hella16
index 406618cf..c84efd8f 100644
--- a/.env.hella16
+++ b/.env.hella16
@@ -9,3 +9,6 @@ VITE_isDevelopment=true
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='https://scptest.faway-hella.com'
+
+# 项目管理模式 批次货/包装
+VITE_MANAGE_MODEL="BY_BATCH"
\ No newline at end of file
diff --git a/.env.hella8 b/.env.hella8
index f6803774..8851bd7c 100644
--- a/.env.hella8
+++ b/.env.hella8
@@ -9,4 +9,7 @@ VITE_isDevelopment=false
# 积木报表请求路径
-VITE_JMREPORT_BASE_URL='http://172.22.32.8:90'
+VITE_JMREPORT_BASE_URL='http://172.22.32.8:90'
+
+# 项目管理模式 批次货/包装
+VITE_MANAGE_MODEL="BY_BATCH"
\ No newline at end of file
diff --git a/.env.hella9 b/.env.hella9
index fc674a67..36f3d239 100644
--- a/.env.hella9
+++ b/.env.hella9
@@ -9,3 +9,6 @@ VITE_isDevelopment=true
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='http://172.22.32.9:90'
+
+# 项目管理模式 批次货/包装
+VITE_MANAGE_MODEL="BY_BATCH"
\ No newline at end of file
diff --git a/.env.production b/.env.production
index f6803774..49336718 100644
--- a/.env.production
+++ b/.env.production
@@ -10,3 +10,6 @@ VITE_isDevelopment=false
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='http://172.22.32.8:90'
+
+# 项目管理模式 批次货/包装
+VITE_MANAGE_MODEL="BY_BATCH"
\ No newline at end of file
diff --git a/src/mycomponents/record/recordComDetailCard.vue b/src/mycomponents/record/recordComDetailCard.vue
index d0144453..c712871e 100644
--- a/src/mycomponents/record/recordComDetailCard.vue
+++ b/src/mycomponents/record/recordComDetailCard.vue
@@ -32,7 +32,7 @@
-
+
@@ -121,7 +121,12 @@
allowModifyLocation: {
type: Boolean,
default: false
- }
+ },
+ queryBalance: {
+ type: Boolean,
+ default: true
+ },
+
},
watch: {
diff --git a/src/pages/inventoryMove/coms/comMoveRecord.vue b/src/pages/inventoryMove/coms/comMoveRecord.vue
index 9fa42e5e..fb0f46e9 100644
--- a/src/pages/inventoryMove/coms/comMoveRecord.vue
+++ b/src/pages/inventoryMove/coms/comMoveRecord.vue
@@ -76,8 +76,11 @@
createItemInfo,
createDetailInfo,
calcHandleQty,
- calcHandleQtyAdd
} from '@/common/record.js';
+
+ import {
+ calc
+ } from '@/common/calc.js';
export default {
components: {
@@ -330,7 +333,6 @@
}
newDetail.toLocationCode = this.toLocationCode;
newDetail.fromLocationCode = result.fromLocationCode
- newDetail.handleQty = 0
itemp.subList.push(newDetail);
this.detailSource.push(itemp)
} else {
@@ -355,15 +357,14 @@
if (newDetail.packingNumber == '') {
newDetail.packingNumber = pack.number;
}
- newDetail.handleQty = 0
newDetail.toLocationCode = this.toLocationCode;
newDetail.fromLocationCode = result.fromLocationCode
item.subList.push(newDetail);
} else {
-
+ detail.handleQty =calc.add(detail.handleQty, result.label.qty)
}
}
- calcHandleQtyAdd(this.detailSource,result.label);
+ calcHandleQty(this.detailSource);
},
showErrorMessage(message) {
if (this.$refs.scanPopup) {
diff --git a/src/pages/inventoryMove/record/okToHoldRecord.vue b/src/pages/inventoryMove/record/okToHoldRecord.vue
index e3b0a138..e025da9a 100644
--- a/src/pages/inventoryMove/record/okToHoldRecord.vue
+++ b/src/pages/inventoryMove/record/okToHoldRecord.vue
@@ -1,60 +1,28 @@
-
+
\ No newline at end of file
+
diff --git a/src/pages/putaway/record/putawayRecord.vue b/src/pages/putaway/record/putawayRecord.vue
index 1ea5eab1..9ca0a5ce 100644
--- a/src/pages/putaway/record/putawayRecord.vue
+++ b/src/pages/putaway/record/putawayRecord.vue
@@ -91,7 +91,6 @@
createItemInfo,
createDetailInfo,
calcHandleQty,
- calcHandleQtyAdd
} from '@/common/record.js';
import {
@@ -99,6 +98,10 @@
getPrecisionStrategyList,
getPrecisionStrategyParams
} from '@/common/balance.js';
+
+ import {
+ calc
+ } from '@/common/calc'
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import winScanPack from '@/mycomponents/scan/winScanPack.vue'
@@ -170,7 +173,7 @@
mounted() {},
methods: {
- getScanResult(result,managementType) {
+ getScanResult(result,managementTypeParams) {
this.managementType = managementTypeParams
if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){
this.setDataBatch(result)
@@ -206,11 +209,8 @@
newDetail.poNumber=poNumber;
newDetail.supplierCode=supplierCode;
newDetail.fromInventoryStatus = balance.inventoryStatus;
- newDetail.handleQty =0;
- newDetail.balanceQty =result.balance.qty;
itemp.subList.push(newDetail);
this.detailSource.push(itemp)
- calcHandleQtyAdd(this.detailSource,result.label);
})
} else {
@@ -231,24 +231,19 @@
newDetail.poNumber=poNumber;
newDetail.supplierCode=supplierCode;
newDetail.fromInventoryStatus = balance.inventoryStatus;
- newDetail.handleQty =0;
- newDetail.balanceQty =result.balance.qty;
if(item.subList&&item.subList.length>0){
if(item.subList[0].batch!=newDetail.batch){
this.showErrorMessage("扫描的批次是["+newDetail.batch+"],请扫描["+item.subList[0].batch+"的批次的箱码")
}
}else {
item.subList.push(newDetail);
- calcHandleQtyAdd(this.detailSource,result.label);
}
});
} else {
- if (detail.scaned == true) {
- calcHandleQtyAdd(this.detailSource,result.label);
- // this.showErrorMessage( "批次[" + balance.batch + "]重复扫描")
- }
+ detail.handleQty =calc.add(detail.handleQty, result.label.handleQty)
}
}
+ this.calcHandleQty(this.detailSource)
},
setData(result){
diff --git a/src/pages/scrap/record/scrapRecord.vue b/src/pages/scrap/record/scrapRecord.vue
index a5b8f7c9..1c1eba10 100644
--- a/src/pages/scrap/record/scrapRecord.vue
+++ b/src/pages/scrap/record/scrapRecord.vue
@@ -17,7 +17,13 @@
-
+
+
@@ -59,6 +65,10 @@
deepCopyData
} from '@/common/basic.js';
+ import {
+ calc
+ } from '@/common/calc'
+
import {
getInventoryStatusDesc,
getDirectoryItemArray,
@@ -69,7 +79,8 @@
getBusinessType,
createItemInfo,
createDetailInfo,
- calcHandleQty
+ calcHandleQty,
+ calcHandleQtyAdd
} from '@/common/record.js';
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
@@ -78,6 +89,7 @@
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue"
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue'
+ import recordComDetailCardBatch from '@/mycomponents/record/recordComDetailCardBatch.vue'
export default {
components: {
@@ -86,7 +98,8 @@
comBlankView,
winScanLocation,
winScanPackAndLocation,
- recordComDetailCard
+ recordComDetailCard,
+ recordComDetailCardBatch
},
data() {
return {
@@ -102,6 +115,7 @@
businessType: {},
reasonList: [],
reasonText: "",
+ managementType:""
};
},
onLoad(option) {
@@ -137,7 +151,50 @@
},
methods: {
- getScanResult(result) {
+ getScanResult(result,managementTypeParams) {
+ this.managementType = managementTypeParams
+ console.log("模式"+managementTypeParams)
+ if (managementTypeParams == "BY_BATCH" || managementTypeParams == "BY_QUANTITY") {
+ this.setDataBatch(result)
+ } else {
+ this.setData(result)
+ }
+ },
+
+ setDataBatch(result){
+ let balance = result.balance;
+ let label = result.label;
+ let pack = result.package;
+ var item = this.detailSource.find(res => {
+ if (res.itemCode == balance.itemCode) {
+ return res
+ }
+ })
+ if (item == undefined) {
+ var itemp = createItemInfo(balance, pack);
+ let newDetail = createDetailInfo(balance, pack); //
+ itemp.subList.push(newDetail);
+ this.detailSource.push(itemp)
+ } else {
+ var detail = item.subList.find(r => {
+ if (r.batch == balance.batch &&
+ r.locationCode == balance.locationCode &&
+ r.inventoryStatus == balance.inventoryStatus) {
+ return r;
+ }
+ })
+ if (detail == undefined) {
+ let newDetail = createDetailInfo(balance, pack);
+ item.subList.push(newDetail);
+ } else {
+ detail.handleQty =calc.add(detail.handleQty, result.label.qty)
+ }
+ }
+
+ this.calcHandleQty(this.detailSource)
+ },
+
+ setData(result){
let balance = result.balance;
let label = result.label;
let pack = result.package;
@@ -170,7 +227,6 @@
}
}
this.calcHandleQty();
-
},
showErrorMessage(message) {
diff --git a/src/pages/transfer/record/deliverRecord.vue b/src/pages/transfer/record/deliverRecord.vue
index 6fe03d5a..f2374fe7 100644
--- a/src/pages/transfer/record/deliverRecord.vue
+++ b/src/pages/transfer/record/deliverRecord.vue
@@ -8,7 +8,17 @@
-
+
+
+
@@ -32,7 +42,7 @@
-
+
@@ -63,8 +73,11 @@
getBusinessType,
createItemInfo,
createDetailInfo,
- calcHandleQty
+ calcHandleQty,
} from '@/common/record.js';
+ import {
+ calc
+ } from '@/common/calc'
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import winScanPack from '@/mycomponents/scan/winScanPack.vue'
@@ -73,7 +86,8 @@
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue"
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue'
-
+ import recordComDetailCardBatch from '@/mycomponents/record/recordComDetailCardBatch.vue'
+
export default {
components: {
winScanButton,
@@ -82,7 +96,8 @@
comBlankView,
winScanLocation,
winScanPackAndLocation,
- recordComDetailCard
+ recordComDetailCard,
+ recordComDetailCardBatch
},
data() {
return {
@@ -98,7 +113,8 @@
businessType: {},
managementList: [],
dataContent: {},
- toWarehouseCode: ''
+ toWarehouseCode: '',
+ managementType:""
};
},
@@ -131,7 +147,17 @@
onPullDownRefresh() {},
methods: {
- getScanResult(result) {
+ getScanResult(result,managementTypeParams) {
+ this.managementType = managementTypeParams
+ if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){
+ this.setDataBatch(result)
+ }else{
+ this.setData(result)
+ }
+
+ },
+
+ setData(result){
let balance = result.balance;
let label = result.label;
let pack = result.package;
@@ -166,6 +192,46 @@
}
this.calcHandleQty();
},
+ setDataBatch(result){
+ let balance = result.balance;
+ let label = result.label;
+ let pack = result.package;
+ var item = this.detailSource.find(res => {
+ if (res.itemCode == balance.itemCode) {
+ return res
+ }
+ })
+ if (item == undefined) {
+ var itemp = createItemInfo(balance, pack);
+ let newDetail = createDetailInfo(balance, pack); //
+ newDetail.inventoryStatus = "OK"
+ itemp.subList.push(newDetail);
+ this.detailSource.push(itemp)
+ } else {
+ var detail = item.subList.find(r => {
+ if (r.batch == balance.batch &&
+ r.locationCode == balance.locationCode &&
+ r.inventoryStatus == balance.inventoryStatus) {
+ return r;
+ }
+ })
+ if (detail == undefined) {
+ let newDetail = createDetailInfo(balance, pack);
+ item.subList.push(newDetail);
+ }else {
+ detail.handleQty =calc.add(detail.handleQty, result.label.qty)
+ }
+ }
+ this.calcHandleQty(this.detailSource)
+ },
+
+ showScanToLocation(item) {
+ this.editItem = item;
+ setTimeout(r => {
+ this.$refs.scanToLocationCode.openScanPopup();
+ })
+ },
+
showErrorMessage(message) {
this.$refs.comMessage.showErrorMessage(message, res => {
diff --git a/src/pages/transfer/record/receiptRecord.vue b/src/pages/transfer/record/receiptRecord.vue
index 61b9ee37..7f33326b 100644
--- a/src/pages/transfer/record/receiptRecord.vue
+++ b/src/pages/transfer/record/receiptRecord.vue
@@ -10,6 +10,9 @@
@@ -63,6 +66,10 @@
createDetailInfo,
calcHandleQty
} from '@/common/record.js';
+
+ import {
+ calc
+ } from '@/common/calc'
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import winScanPack from '@/mycomponents/scan/winScanPack.vue'
@@ -90,7 +97,8 @@
businessType: {},
managementList: [],
dataContent: {},
- toWarehouseCode: ''
+ toWarehouseCode: '',
+ managementType:import.meta.env.VITE_MANAGE_MODEL
};
},
@@ -124,6 +132,17 @@
methods: {
getScanResult(result) {
+ var managementTypeParams =this.managementType
+ if (managementTypeParams == "BY_BATCH" || managementTypeParams == "BY_QUANTITY") {
+ this.setDataBatch(result)
+ } else {
+ this.setData(result)
+ }
+
+
+ },
+
+ setData(result){
let label = result.label;
let pack = result.package;
var item = this.detailSource.find(res => {
@@ -155,6 +174,37 @@
}
this.calcHandleQty();
},
+
+ setDataBatch(result){
+ let label = result.label;
+ let pack = result.package;
+ var item = this.detailSource.find(res => {
+ if (res.itemCode == label.itemCode) {
+ return res
+ }
+ })
+ if (item == undefined) {
+ var itemp = createItemInfo(label, pack);
+ let newDetail = createDetailInfo(label, pack); //
+ newDetail.inventoryStatus = "OK"
+ itemp.subList.push(newDetail);
+ this.detailSource.push(itemp)
+ } else {
+ var detail = item.subList.find(r => {
+ if (r.packingNumber == label.packingNumber &&
+ r.batch == label.batch) {
+ return r;
+ }
+ })
+ if (detail == undefined) {
+ let newDetail = createDetailInfo(label, pack);
+ item.subList.push(newDetail);
+ } else {
+ detail.handleQty =calc.add(detail.handleQty, result.label.qty)
+ }
+ }
+ this.calcHandleQty();
+ },
showErrorMessage(message) {
this.$refs.comMessage.showErrorMessage(message, res => {
@@ -339,9 +389,6 @@
});
},
- showScanMessage(message) {
- this.$refs.comMessage.showScanMessage(message);
- },
afterCloseMessage() {
this.scanPopupGetFocus();
diff --git a/src/pages/unPlanned/record/issueRecord.vue b/src/pages/unPlanned/record/issueRecord.vue
index 42ea5f8e..27f0d6a9 100644
--- a/src/pages/unPlanned/record/issueRecord.vue
+++ b/src/pages/unPlanned/record/issueRecord.vue
@@ -7,11 +7,17 @@
+ placeholder="请选择出库原因" popup-title="出库原因" :localdata="reasonList" @change="reasonChange">
-
+
+
@@ -48,6 +54,7 @@
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue"
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue'
+ import recordComDetailCardBatch from '@/mycomponents/record/recordComDetailCardBatch.vue'
import {
unPlannedIssueRecordSubmit
} from '@/api/request2.js';
@@ -64,8 +71,12 @@
import {
createItemInfo,
createDetailInfo,
- calcHandleQty
+ calcHandleQty,
} from '@/common/record.js';
+
+ import {
+ calc
+ } from '@/common/calc.js';
import {
goHome,
@@ -79,7 +90,8 @@
comBlankView,
winScanLocation,
winScanPackAndLocation,
- recordComDetailCard
+ recordComDetailCard,
+ recordComDetailCardBatch
},
props: {},
data() {
@@ -91,9 +103,11 @@
businessType: {}, //业务类型
detailSource: [], //绑定在页面上的数据源
reasonText: "",
- reasonCode:"",
+ reasonCode: "",
reasonList: [],
- dataContent:{}
+ dataContent: {},
+ managementType:""
+
}
},
@@ -111,8 +125,7 @@
});
},
- onLoad(option) {
- },
+ onLoad(option) {},
methods: {
openScanPopup() {
@@ -135,11 +148,55 @@
this.fromLocationCode = location.code;
this.openScanPopup();
},
- getScanResult(result) {
- this.getDataSource(result)
+ getScanResult(result,managementTypeParams) {
+ this.managementType = managementTypeParams
+ console.log(managementTypeParams)
+ if (managementTypeParams == "BY_BATCH" || managementTypeParams == "BY_QUANTITY") {
+ this.setDataBatch(result)
+ } else {
+ this.setData(result)
+ }
},
- getDataSource(result) {
+ setDataBatch(result) {
+ let balance = result.balance;
+ let label = result.label;
+ let pack = result.package;
+ var item = this.detailSource.find(res => {
+ if (res.itemCode == label.itemCode) {
+ return res
+ }
+ })
+ if (item == undefined) {
+ var itemp = createItemInfo(balance, pack);
+ let newDetail = createDetailInfo(balance, pack); //
+ // newDetail.inventoryStatus ="OK";
+ itemp.subList.push(newDetail);
+ this.detailSource.push(itemp)
+ this.packGetFocus()
+ } else {
+ var detail = item.subList.find(r => {
+ if (r.batch == balance.batch &&
+ r.locationCode == balance.locationCode &&
+ r.inventoryStatus == balance.inventoryStatus &&
+ r.scaned == true) {
+ return r;
+ }
+ })
+
+ if (detail == undefined) {
+ let newDetail = createDetailInfo(balance, pack);
+ item.subList.push(newDetail);
+ this.packGetFocus()
+ }else {
+ detail.handleQty =calc.add(detail.handleQty, result.label.qty)
+ }
+ }
+ this.calcHandleQty(this.detailSource)
+
+ },
+
+ setData(result) {
let balance = result.balance;
let label = result.label;
let pack = result.package;
@@ -177,9 +234,9 @@
this.calcHandleQty();
},
-
- packGetFocus(){
- if(this.$refs.scanPopup){
+
+ packGetFocus() {
+ if (this.$refs.scanPopup) {
this.$refs.scanPopup.packGetFocus()
}
},
@@ -216,20 +273,20 @@
this.showErrorMessage("请选择出库原因")
return;
}
- var params =this.setParams()
- console.log("提交" + JSON.stringify(params))
- unPlannedIssueRecordSubmit(params).then(res => {
- uni.hideLoading()
- if (res.data) {
- this.showCommitSuccessMessage("提交成功\n生成采购收货记录\n" + res.data )
- } else {
- this.showErrorMessage("提交失败[" + res.msg + "]")
- }
- }).catch(error => {
- uni.hideLoading()
- this.showErrorMessage(error)
- })
-
+ var params = this.setParams()
+ console.log("提交" + JSON.stringify(params))
+ unPlannedIssueRecordSubmit(params).then(res => {
+ uni.hideLoading()
+ if (res.data) {
+ this.showCommitSuccessMessage("提交成功\n生成计划外出库记录\n" + res.data)
+ } else {
+ this.showErrorMessage("提交失败[" + res.msg + "]")
+ }
+ }).catch(error => {
+ uni.hideLoading()
+ this.showErrorMessage(error)
+ })
+
},
setParams() {
var subList = []
@@ -242,24 +299,24 @@
submitItem.itemName = detail.package.itemName;
submitItem.itemDesc1 = detail.package.itemDesc1;
submitItem.itemDesc2 = detail.package.itemDesc2;
-
+
submitItem.inventoryStatus = detail.inventoryStatus;
-
+
submitItem.fromPackingNumber = detail.packingNumber;
submitItem.toPackingNumber = detail.packingNumber;
-
+
submitItem.fromContainerNumber = detail.containerNumber;
submitItem.toContainerNumber = detail.containerNumber
-
+
submitItem.fromBatch = detail.batch;
submitItem.toBatch = detail.batch;
-
+
submitItem.fromLocationCode = detail.locationCode;
submitItem.toLocationCode = "";
-
+
submitItem.reason = this.reasonCode;
submitItem.qty = detail.handleQty;
- submitItem.package ="";
+ submitItem.package = "";
submitItem.detailDataType = 1;
subList.push(submitItem)
}
@@ -270,7 +327,7 @@
this.dataContent.creator = creator;
return this.dataContent;
},
-
+
reasonChange(e) {
if (e.detail.value.length == 0) {
this.reasonCode = ""
@@ -282,20 +339,20 @@
},
showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => {
- this.clearData();
+ this.clearData();
})
},
- clearData(){
+ clearData() {
this.reasonCode = ""
this.reasonText = "";
this.detailSource = [];
- this.managementList =[];
- this.dataContent ={}
+ this.managementList = [];
+ this.dataContent = {}
}
-
+
}
}
+
\ No newline at end of file
diff --git a/src/pages/unPlanned/record/receiptRecord.vue b/src/pages/unPlanned/record/receiptRecord.vue
index 8529bcd0..efeaf748 100644
--- a/src/pages/unPlanned/record/receiptRecord.vue
+++ b/src/pages/unPlanned/record/receiptRecord.vue
@@ -14,8 +14,11 @@
-
+
@@ -105,7 +108,8 @@
reasonList: [],
dataContent: {},
managementList: [],
- toLocationAreaTypeList:[]
+ toLocationAreaTypeList:[],
+ managementType:import.meta.env.VITE_MANAGE_MODEL
}
},
@@ -122,7 +126,8 @@
});
},
- onLoad(option) {},
+ onLoad(option) {
+ },
methods: {
openScanPopup() {
@@ -132,6 +137,16 @@
this.toLocationCode = code;
},
getScanResult(result) {
+ var managementTypeParams =this.managementType
+ if (managementTypeParams == "BY_BATCH" || managementTypeParams == "BY_QUANTITY") {
+ this.setDataBatch(result)
+ } else {
+ this.setData(result)
+ }
+
+ },
+
+ setData(result){
let label = result.label;
let pack = result.package;
var item = this.detailSource.find(res => {
@@ -153,7 +168,7 @@
return r;
}
})
-
+
if (detail == undefined) {
let newDetail = this.createDetailInfo(label, pack);
item.subList.push(newDetail);
@@ -162,11 +177,45 @@
if (detail.scaned) {
this.showErrorMessage("箱码[" + pack.number + "]批次[" + pack.batch + "]已经扫描")
}
-
+
+ }
+ }
+ this.calcHandleQty();
+ },
+
+ setDataBatch(result){
+ let label = result.label;
+ let pack = result.package;
+ var item = this.detailSource.find(res => {
+ if (res.itemCode == label.itemCode) {
+ return res
+ }
+ })
+ if (item == undefined) {
+ var itemp = this.createItemInfo(label, pack);
+ let newDetail = this.createDetailInfo(label, pack);
+ itemp.subList.push(newDetail);
+ this.detailSource.push(itemp)
+ this.getfocus()
+
+ } else {
+ var detail = item.subList.find(r => {
+ if (r.packingNumber == pack.number &&
+ r.batch == pack.batch) {
+ return r;
+ }
+ })
+
+ if (detail == undefined) {
+ let newDetail = this.createDetailInfo(label, pack);
+ item.subList.push(newDetail);
+ this.getfocus()
+ } else {
+ detail.handleQty =calc.add(detail.handleQty, result.label.qty)
+
}
}
this.calcHandleQty();
-
},
getfocus(){
From 529b470e43b0d857cea20aa7d1ebeea1e0a3a1df Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Thu, 31 Oct 2024 19:58:27 +0800
Subject: [PATCH 046/201] =?UTF-8?q?YT-575=E6=89=80=E6=9C=89pda=E4=BB=BB?=
=?UTF-8?q?=E5=8A=A1=EF=BC=8C=E6=89=AB=E6=8F=8F=E5=AE=8C=E6=88=90=EF=BC=8C?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=AB=E6=8F=8F=E8=83=8C=E6=99=AF=E8=89=B2?=
=?UTF-8?q?=EF=BC=8C=E6=98=BE=E7=A4=BA=E6=89=AB=E6=8F=8F=E7=9A=84=E5=8C=85?=
=?UTF-8?q?=E8=A3=85=E6=95=B0=E9=87=8F=E5=92=8C=E5=8D=95=E4=BD=8D=EF=BC=8C?=
=?UTF-8?q?=E5=A6=82=E5=9B=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../detail/comJobDetailCardBatch.vue | 73 +-
.../coms/comDeliverDetailCardBatch.vue | 128 +-
.../deliver/coms/comScanDeliverPackBatch.vue | 785 +++++++---
src/pages/deliver/job/deliverDetailBatch.vue | 1322 ++++++++++-------
.../inventoryMove/job/inventoryMoveDetail.vue | 87 +-
src/pages/issue/job/issueDetailBatch.vue | 1 -
src/pages/issue/job/issueJob.vue | 2 +-
.../coms/comProductDetailCardBatch.vue | 117 +-
.../job/productReceiptDetail.vue | 5 +-
src/pages/putaway/job/putawayDetail.vue | 14 +-
10 files changed, 1630 insertions(+), 904 deletions(-)
diff --git a/src/mycomponents/detail/comJobDetailCardBatch.vue b/src/mycomponents/detail/comJobDetailCardBatch.vue
index 1a6be7a4..bb2be74f 100644
--- a/src/mycomponents/detail/comJobDetailCardBatch.vue
+++ b/src/mycomponents/detail/comJobDetailCardBatch.vue
@@ -1,22 +1,23 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -31,13 +32,7 @@
import pack from '@/mycomponents/balance/pack.vue'
import detailList from '@/mycomponents/detail/detailList.vue'
import packageList from '@/mycomponents/package/packageList.vue'
- import location from '@/mycomponents/balance/location.vue'
- import toLocation from '@/mycomponents/balance/toLocation.vue'
- import batch from '@/mycomponents/balance/batch.vue'
- import {
- getRemoveOption,
- getEditRemoveOption
- } from '@/common/array.js';
+
import {
getDetailOption,
getPurchaseReceiptOption
@@ -52,10 +47,7 @@
jobDetailPopup,
receiptDetailInfoPopup,
detailList,
- packageList,
- location,
- toLocation,
- batch,
+ packageList
},
props: {
dataContent: {
@@ -77,10 +69,6 @@
isShowPackListStatus: {
type: Boolean,
default: true
- },
- isEdit: {
- type: Boolean,
- default: true
}
},
watch: {
@@ -97,10 +85,7 @@
},
locatonItem: {},
detailOptions: [],
- scanOptions: [],
- options: [],
- removeOptions: [],
- editAndRemoveOptions: []
+ scanOptions: []
}
},
@@ -112,9 +97,7 @@
this.scanOptions = getPurchaseReceiptOption(this.settingParam.allowModifyQty, this.settingParam
.allowModifyLocation)
}
- this.removeOptions = getRemoveOption();
- this.editAndRemoveOptions = getEditRemoveOption()
-
+
},
@@ -122,13 +105,13 @@
console.log('updated')
},
- methods: {
- collapseChange() {
+ methods: {
+ collapseChange(){
setTimeout(() => {
this.resizeCollapse();
}, 500)
},
-
+
resizeCollapse() {
this.$nextTick(r => {
this.$refs.collapse.resize()
@@ -149,8 +132,8 @@
this.$forceUpdate();
},
- swipeClick(e, item, type) {
- if (e.content.text == "编辑") {
+ swipeClick(e, item) {
+ if (e.content.text == "编辑") {
this.edit(item)
} else if (e.content.text == "移除") {
this.remove(item)
@@ -175,7 +158,7 @@
this.editItem.handleQty = qty;
this.$emit('updateData')
},
- updateData() {
+ updateData(){
this.$emit('updateData')
}
}
diff --git a/src/pages/deliver/coms/comDeliverDetailCardBatch.vue b/src/pages/deliver/coms/comDeliverDetailCardBatch.vue
index f8284f15..33de6657 100644
--- a/src/pages/deliver/coms/comDeliverDetailCardBatch.vue
+++ b/src/pages/deliver/coms/comDeliverDetailCardBatch.vue
@@ -1,23 +1,32 @@
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
@@ -25,39 +34,42 @@
-
-
\ No newline at end of file
diff --git a/src/pages/inventoryMove/job/inventoryMoveDetail.vue b/src/pages/inventoryMove/job/inventoryMoveDetail.vue
index c17ae97c..eca6f03f 100644
--- a/src/pages/inventoryMove/job/inventoryMoveDetail.vue
+++ b/src/pages/inventoryMove/job/inventoryMoveDetail.vue
@@ -73,6 +73,10 @@
getPackingNumberAndBatchByList,
getInventoryStatusName,
} from '@/common/basic.js';
+ import {
+ calc
+ } from '@/common/calc.js';
+
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import winScanPack from '@/mycomponents/scan/winScanPack.vue'
@@ -316,6 +320,88 @@
getScanResult(result,managementPrecision) {
+ if(managementPrecision == 'BY_BATCH'){
+ this.setDataBatch(result,managementPrecision)
+ }else{
+ this.setData(result,managementPrecision)
+ }
+
+ },
+ setDataBatch(result,managementPrecision){
+ try {
+ var packingNumber = result.label.packingNumber;
+ var batch = result.label.batch;
+ var qty = result.label.qty;
+ var itemCode = result.label.itemCode;
+ var detail = this.detailSource.find(r => r.itemCode == itemCode);
+ if (detail == undefined) {
+ this.showMessage("物料号【" + itemCode + "】不在列表中")
+ } else {
+ var itemDetail = ''
+ if(managementPrecision == 'BY_QUANTITY'){
+ itemDetail = detail.subList.find(r => {
+ return r.itemCode == result.label.itemCode
+ })
+ }else{
+ itemDetail = detail.subList.find(r => {
+ return r.batch == batch
+ })
+ }
+
+ if (itemDetail == undefined && managementPrecision != 'BY_QUANTITY') {
+ this.showErrorMessage( "批次[" + batch + "]不在列表中")
+ } else {
+ if (itemDetail.scaned) {
+ // this.showMessage("批次【" + batch + "】已经扫描")
+ itemDetail.handleQty =calc.add(itemDetail.handleQty,Number(result.label.qty));
+ } else {
+ let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
+ let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
+ if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
+ if (this.jobContent.allowModifyInventoryStatus == "TRUE") {
+ this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' +
+ itemStatus +
+ ']不一致,是否继续转移?', res => {
+ if (res) {
+ itemDetail.scaned = true;
+ itemDetail.handleQty = Number(result.label.qty);
+ itemDetail.fromInventoryStatus = result.balance.inventoryStatus;
+ itemDetail.balance = result.balance;
+ itemDetail.balance.balanceQty = Number(result.balance.qty);
+ itemDetail.balance.packQty = Number(result.package.packQty)
+ itemDetail.balance.packUnit = result.package.packUnit
+ this.calcHandleQty();
+ } else {
+ this.scanPopupGetFocus();
+ }
+ });
+ } else {
+ this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' +
+ itemStatus +
+ ']不一致,不允许转移!', res => {
+ this.scanPopupGetFocus();
+ });
+ }
+ } else {
+ itemDetail.scaned = true;
+ itemDetail.handleQty = Number(result.label.qty);
+ itemDetail.fromInventoryStatus = result.balance.inventoryStatus;
+ itemDetail.balance = result.balance;
+ itemDetail.balance.balanceQty = Number(result.balance.qty);
+ itemDetail.balance.packQty = Number(result.package.packQty)
+ itemDetail.balance.packUnit = result.package.packUnit
+ this.calcHandleQty();
+ }
+ }
+ }
+ }
+ this.scanPopupGetFocus();
+ } catch (e) {
+ this.showErrorMessage(e.message);
+ }
+ },
+
+ setData(result,managementPrecision){
try {
var packingNumber = result.label.packingNumber;
var batch = result.label.batch;
@@ -388,7 +474,6 @@
}
},
-
async commit() {
this.scanCount = getScanCount(this.subList);
if (this.scanCount == 0) {
diff --git a/src/pages/issue/job/issueDetailBatch.vue b/src/pages/issue/job/issueDetailBatch.vue
index 47a504d3..9785b03b 100644
--- a/src/pages/issue/job/issueDetailBatch.vue
+++ b/src/pages/issue/job/issueDetailBatch.vue
@@ -501,7 +501,6 @@
var subList = []
var createTime = getCurrDateTime();
var creator = this.$store.state.user.id
- console.log(2343,this.detailSource)
this.detailSource.forEach(toLocationCode => {
let obj = {...toLocationCode}
delete obj.subList
diff --git a/src/pages/issue/job/issueJob.vue b/src/pages/issue/job/issueJob.vue
index bfe490a6..7afeb8c0 100644
--- a/src/pages/issue/job/issueJob.vue
+++ b/src/pages/issue/job/issueJob.vue
@@ -484,7 +484,7 @@
if (res.success) {
this.managementList = res.list;
this.managementType = this.managementList&&this.managementList[0]&&this.managementList[0].ManagementPrecision
- if(this.managementType == 'BY_BATCH'){
+ if(this.managementType == 'BY_BATCH'||this.managementType == 'BY_QUANTITY'){
uni.navigateTo({
url: './issueDetailBatch?id=' + result.masterId + '&status=' + result.status +
'&scanMessage=' +
diff --git a/src/pages/productReceipt/coms/comProductDetailCardBatch.vue b/src/pages/productReceipt/coms/comProductDetailCardBatch.vue
index 900c0057..2617a1f9 100644
--- a/src/pages/productReceipt/coms/comProductDetailCardBatch.vue
+++ b/src/pages/productReceipt/coms/comProductDetailCardBatch.vue
@@ -1,31 +1,28 @@
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -36,36 +33,27 @@
diff --git a/src/pages/productReceipt/job/productReceiptDetail.vue b/src/pages/productReceipt/job/productReceiptDetail.vue
index 0eb850ba..087661be 100644
--- a/src/pages/productReceipt/job/productReceiptDetail.vue
+++ b/src/pages/productReceipt/job/productReceiptDetail.vue
@@ -290,17 +290,18 @@
this.showErrorMessage("批次[" + batch + "]不在任务列表中")
} else {
if (itemDetail.scaned) {
- this.showErrorMessage("批次[" + batch + "]已经扫描")
+ // this.showErrorMessage("批次[" + batch + "]已经扫描")
+ itemDetail.handleQty = calc.add(Number(result.label.qty),itemDetail.handleQty);
} else {
itemDetail.scaned = true;
itemDetail.handleQty = Number(result.label.qty);
itemDetail.toLocationCode = this.toLocationCode;
itemDetail.labelQty = Number(result.label.qty);
- calcHandleQty(this.detailSource);
this.continueScan()
this.$forceUpdate()
}
+ calcHandleQty(this.detailSource);
}
}
},
diff --git a/src/pages/putaway/job/putawayDetail.vue b/src/pages/putaway/job/putawayDetail.vue
index b298b7c0..d5af8ddb 100644
--- a/src/pages/putaway/job/putawayDetail.vue
+++ b/src/pages/putaway/job/putawayDetail.vue
@@ -87,7 +87,9 @@
calcTreeHandleQty,
getScanCount
} from '@/common/detail.js';
-
+ import {
+ calc
+ } from '@/common/calc'
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
import comJobDetailCard from "@/mycomponents/detail/comJobDetailCard.vue"
@@ -275,7 +277,7 @@
updateData() {
console.log("updateData")
// this.calcHandleQty();
- // calcTreeHandleQty(this.detailSource)
+ calcTreeHandleQty(this.detailSource)
},
//模拟扫描功能
openScanPopupSimulate(message) {
@@ -470,7 +472,8 @@
.fromLocationCode + "】不在列表中")
} else {
if (!isExit.cancleScanedHiht && isExit.scaned) {
- this.showMessage("批次【" + batch + "】已经扫描")
+ // this.showMessage("批次【" + batch + "】已经扫描")
+ isExit.handleQty = calc.add(Number(result.label.qty),isExit.handleQty)
} else {
isExit.scaned = true
let qty = 0;
@@ -501,7 +504,8 @@
if (!itemDetail.cancleScanedHiht && itemDetail.scaned && scanedLength == itemDetail.packList
.length) {
// this.showMessage("箱码【" + packingNumber + "】已经扫描")
- this.showMessage("批次【" + batch + "】已经扫描")
+ // this.showMessage("批次【" + batch + "】已经扫描")
+ itemDetail.handleQty = calc.add(Number(result.label.qty),itemDetail.handleQty)
} else {
itemDetail.scaned = true;
this.detailSource[0].subList.sort(compareAsc('scaned')); //按扫描信息排序
@@ -513,10 +517,10 @@
pac.toLocationCode = this.toLocationCode;
})
- calcTreeHandleQty(this.detailSource);
this.continueScan()
this.$forceUpdate()
}
+ calcTreeHandleQty(this.detailSource);
}
},
From 7350388b4f4ae3c4e9d66a1a9598cd57ddd422f1 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Fri, 1 Nov 2024 11:17:16 +0800
Subject: [PATCH 047/201] =?UTF-8?q?YT-573=E7=94=9F=E4=BA=A7=E9=80=80?=
=?UTF-8?q?=E6=96=99PDA=E4=B8=8D=E6=98=BE=E7=A4=BA=E6=89=B9=E6=AC=A1?=
=?UTF-8?q?=E4=B8=94=E6=89=AB=E6=8F=8F=E4=B8=8D=E4=B8=8AYT-499=E5=88=B6?=
=?UTF-8?q?=E5=93=81=E5=9B=9E=E6=94=B6=E6=97=B6=EF=BC=8C=E6=89=AB=E6=8F=8F?=
=?UTF-8?q?=E7=AE=B1=E6=A0=87=E7=AD=BE=E6=97=B6=E6=8A=A5=E9=94=99=EF=BC=9B?=
=?UTF-8?q?=E8=A6=81=E6=A0=B9=E6=8D=AE=E6=9D=A5=E6=BA=90=E5=BA=93=E4=BD=8D?=
=?UTF-8?q?=E6=89=80=E5=9C=A8=E5=BA=93=E5=8C=BA=E6=9F=A5=E8=AF=A2=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E7=B2=BE=E5=BA=A6=EF=BC=8C=E6=A0=B9=E6=8D=AE=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E7=B2=BE=E5=BA=A6=E6=9F=A5=E8=AF=A2=E5=BA=93=E5=AD=98?=
=?UTF-8?q?=E4=BD=99=E9=A2=9D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/request2.js | 2 +-
src/common/label.js | 6 +-
.../detail/comDetailCardBatch.vue | 114 +-
src/mycomponents/scan/winScanPack.vue | 1 -
.../deliver/coms/comScanDeliverPackBatch.vue | 21 +-
src/pages/deliver/job/deliverDetailBatch.vue | 1323 +++++++----------
.../job/productRecycleJobDetail.vue | 84 +-
.../productionReturn/job/okToReturnDetail.vue | 84 +-
8 files changed, 731 insertions(+), 904 deletions(-)
diff --git a/src/api/request2.js b/src/api/request2.js
index cca0a80b..2e715939 100644
--- a/src/api/request2.js
+++ b/src/api/request2.js
@@ -4302,7 +4302,7 @@ export function overPackageRecordSubmit(params) {
*
*/
export async function getManagementPrecision(params) {
- return request({
+ return await request({
url: baseApi + "/wms/rule/getPrecisionStrategyByItemCodes",
method: "post",
data: params,
diff --git a/src/common/label.js b/src/common/label.js
index 9e3a4c8c..4615e948 100644
--- a/src/common/label.js
+++ b/src/common/label.js
@@ -105,6 +105,7 @@ export function getQRCodeInfo(header, version, scanMsg, callBack,locationCode) {
}
export async function getLabelItems(labelItem, scanMsg, callBack,locationCode) {
+ let managementType = ""
let labelResult = analysisQRCodeLabel(labelItem, scanMsg);
if (labelResult.label.labelType == 'PurchaseLabel' || labelResult.label.labelType == 'MakeLabel') {
//查询包装信息
@@ -114,7 +115,7 @@ export async function getLabelItems(labelItem, scanMsg, callBack,locationCode) {
await getManagementPrecisions([labelResult.label.itemCode], locationCode, res => {
if (res.success) {
const managementList = res.list;
- const managementType = managementList&&managementList[0]&&managementList[0].ManagementPrecision ? managementList[0].ManagementPrecision :'BY_PACKAGING'
+ managementType = managementList&&managementList[0]&&managementList[0].ManagementPrecision ? managementList[0].ManagementPrecision :'BY_PACKAGING'
if(managementType == 'BY_BATCH' || managementType == 'BY_QUANTITY'){
packingNumber = ''
}
@@ -137,11 +138,12 @@ export async function getLabelItems(labelItem, scanMsg, callBack,locationCode) {
callBack(labelResult);
})
} else {
- console.log(999,labelResult)
//线边的物料可能没有箱码
labelResult.package = labelResult.label;
labelResult.package.number = packingNumber1 ? packingNumber1 : ''
labelResult.package.packingNumber=''
+ labelResult.managementType = managementType
+ console.log(999,labelResult)
callBack(labelResult);
// labelResult.success = false;
// labelResult.message = '在条码中未解析到箱码';
diff --git a/src/mycomponents/detail/comDetailCardBatch.vue b/src/mycomponents/detail/comDetailCardBatch.vue
index a45e3033..4a008109 100644
--- a/src/mycomponents/detail/comDetailCardBatch.vue
+++ b/src/mycomponents/detail/comDetailCardBatch.vue
@@ -1,29 +1,27 @@
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -31,20 +29,13 @@
diff --git a/src/mycomponents/scan/winScanPack.vue b/src/mycomponents/scan/winScanPack.vue
index 2da925c1..e901a25d 100644
--- a/src/mycomponents/scan/winScanPack.vue
+++ b/src/mycomponents/scan/winScanPack.vue
@@ -49,7 +49,6 @@
type: String,
default: 'HPQ'
},
-
},
data() {
return {
diff --git a/src/pages/deliver/coms/comScanDeliverPackBatch.vue b/src/pages/deliver/coms/comScanDeliverPackBatch.vue
index 1793b008..a39a0bb9 100644
--- a/src/pages/deliver/coms/comScanDeliverPackBatch.vue
+++ b/src/pages/deliver/coms/comScanDeliverPackBatch.vue
@@ -6,7 +6,7 @@
- 扫描箱码
+ 扫描箱码
@@ -55,7 +55,7 @@
+ headerType="HPQ,HMQ" :isShowHistory="false" :locationCode='locationCode'>
@@ -152,6 +152,10 @@
type: String,
default: ''
},
+ locationCode:{
+ type: String,
+ default: ''
+ }
},
data() {
return {
@@ -410,7 +414,7 @@
)
return;
}
- if (this.toLocation && result.package.packUnit) {
+ if (this.toLocation) {
let item = this.toLocation.Items.find(r => r.itemCode == result.package.itemCode);
if (!item) {
this.showErrorMessage('扫描物料代码不属于该任务');
@@ -533,11 +537,12 @@
}
} else {
- that.showErrorMessage('箱码【' + packingCode + '】已经扫描,请继续扫描下一箱',
- res => {
- that.getfocus();
- }
- )
+ // that.showErrorMessage('箱码【' + packingCode + '】已经扫描,请继续扫描下一箱',
+ // res => {
+ // that.getfocus();
+ // }
+ // )
+ that.addRecord(batch, label, balance, packageInfo)
}
} else {
diff --git a/src/pages/deliver/job/deliverDetailBatch.vue b/src/pages/deliver/job/deliverDetailBatch.vue
index fe069431..6f815e0c 100644
--- a/src/pages/deliver/job/deliverDetailBatch.vue
+++ b/src/pages/deliver/job/deliverDetailBatch.vue
@@ -1,784 +1,541 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/pages/productRecycle/job/productRecycleJobDetail.vue b/src/pages/productRecycle/job/productRecycleJobDetail.vue
index 1d8193ed..d1cbf98b 100644
--- a/src/pages/productRecycle/job/productRecycleJobDetail.vue
+++ b/src/pages/productRecycle/job/productRecycleJobDetail.vue
@@ -71,6 +71,10 @@
import {
getManagementPrecisions
} from '@/common/balance.js';
+
+ import {
+ calc
+ } from '@/common/calc'
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
@@ -366,20 +370,22 @@
if (itemDetail) {
// 箱码、批次、库位、状态一致
if (itemDetail.scaned) {
- this.showErrorMessage("\n批次【" + batch + "】\n库位【" + result
- .fromLocationCode + "】\n状态【" + balanceStatus + "】\n已经扫描")
- return;
+ // this.showErrorMessage("\n批次【" + batch + "】\n库位【" + result
+ // .fromLocationCode + "】\n状态【" + balanceStatus + "】\n已经扫描")
+ itemDetail.handleQty = calc.add(itemDetail.handleQty,Number(result.label.qty));
+ itemDetail.balanceQty = Number(result.label.qty);
} else {
itemDetail.scaned = true;
- itemDetail.handleQty = Number(result.balance.qty);
+ itemDetail.handleQty = Number(result.label.qty);
+ itemDetail.balanceQty = Number(result.label.qty);
itemDetail.toInventoryStatus = result.balance.inventoryStatus;
itemDetail.inventoryStatus = result.balance.inventoryStatus;
itemDetail.balance = result.balance;
itemDetail.balance.balanceQty = Number(result.balance.qty);
itemDetail.balance.packQty = Number(result.package.packQty)
itemDetail.balance.packUnit = result.package.packUnit
- this.calcHandleQty();
}
+ this.calcHandleQty();
} else {
//箱码、批次、库位相等
itemDetail = detail.subList.find(r => {
@@ -390,30 +396,44 @@
if (itemDetail) {
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
//箱码、批次、库位相等,状态不相等
- if (this.jobContent.allowModifyInventoryStatus == "TRUE") {
- this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
- ']不一致,是否继续回收?', res => {
- if (res) {
- itemDetail.scaned = true;
- itemDetail.handleQty = Number(result.balance.qty);
- itemDetail.toInventoryStatus = result.balance.inventoryStatus;
- itemDetail.inventoryStatus = result.balance.inventoryStatus;
- itemDetail.balance = result.balance;
- itemDetail.balance.balanceQty = result.balance.qty;
- itemDetail.balance.packQty = result.package.packQty
- itemDetail.balance.packUnit = result.package.packUnit
- this.calcHandleQty();
- } else {
+ if(balanceStatus!=itemStatus){
+ if (this.jobContent.allowModifyInventoryStatus == "TRUE") {
+ this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
+ ']不一致,是否继续回收?', res => {
+ if (res) {
+ itemDetail.scaned = true;
+ itemDetail.handleQty = itemDetail.handleQty ? calc.add(itemDetail.handleQty,Number(result.label.qty)) : Number(result.label.qty);
+ itemDetail.toInventoryStatus = result.balance.inventoryStatus;
+ itemDetail.inventoryStatus = result.balance.inventoryStatus;
+ itemDetail.balance = result.balance;
+ itemDetail.balance.balanceQty = result.balance.qty;
+ itemDetail.balance.packQty = result.package.packQty
+ itemDetail.balance.packUnit = result.package.packUnit
+ this.calcHandleQty();
+ } else {
+ this.scanPopupGetFocus();
+ }
+ });
+ } else {
+ this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' +
+ itemStatus +
+ ']不一致,不允许回收!', res => {
this.scanPopupGetFocus();
- }
- });
- } else {
- this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' +
- itemStatus +
- ']不一致,不允许回收!', res => {
- this.scanPopupGetFocus();
- });
+ });
+ }
+ //箱码、批次、库位相等,状态相等
+ }else{
+ itemDetail.scaned = true;
+ itemDetail.handleQty = itemDetail.handleQty ? calc.add(itemDetail.handleQty,Number(result.label.qty)) : Number(result.label.qty);
+ itemDetail.toInventoryStatus = result.balance.inventoryStatus;
+ itemDetail.inventoryStatus = result.balance.inventoryStatus;
+ itemDetail.balance = result.balance;
+ itemDetail.balance.balanceQty = result.balance.qty;
+ itemDetail.balance.packQty = result.package.packQty
+ itemDetail.balance.packUnit = result.package.packUnit
+ this.calcHandleQty();
}
+
} else {
this.showErrorMessage("\n批次【" + batch + "】\n库位【" + result
.fromLocationCode + "】\n状态【" + balanceStatus + "】\n不在任务列表中")
@@ -492,6 +512,7 @@
checkCountBatch(){
// 提交的数量和任务数量不一致提示
let str = ''
+ let str1 = ''
this.detailSource.forEach((item) => {
item.subList.forEach(cur => {
if (cur.qty != cur.handleQty) {
@@ -503,10 +524,17 @@
}
str += `物料号【${item.itemCode}】提交数量【${tempHandleQty}】与任务物料数量【${cur.qty}】不一致`
}
+ if(cur.handleQty > cur.balance.qty){
+ str1 += `物料号【${item.itemCode}】提交数量【${cur.handleQty}】不可以大于库存数量【${cur.balance.qty}】`
+ }
})
})
+ if (str1) {
+ this.$refs.comMessage.showMessage(str1);
+ return
+ }
if (str) {
- str = '任务明细未全部完成,是否提交?\n'+str
+ str = '任务明细未全部完成,是否提交?\n'+ str
this.$refs.comMessage.showQuestionMessage1(str, 'red', res => {
if (res) {
this.submitJob()
diff --git a/src/pages/productionReturn/job/okToReturnDetail.vue b/src/pages/productionReturn/job/okToReturnDetail.vue
index 017e0c77..5a8ad359 100644
--- a/src/pages/productionReturn/job/okToReturnDetail.vue
+++ b/src/pages/productionReturn/job/okToReturnDetail.vue
@@ -66,7 +66,9 @@
getManagementPrecisions
} from '@/common/balance.js';
-
+ import {
+ calc
+ } from '@/common/calc'
import {
getDataSource,
createRecordInfo,
@@ -256,7 +258,7 @@
},
openScanPopup() {
- this.$refs.scanPopup.openScanPopup();
+ this.$refs.scanPopup.openScanPopup(this.fromLocationCode);
// let fromlocationCode = '';
// let fromlocationList = [];
// for (var i = 0; i < this.detailSource.length; i++) {
@@ -282,6 +284,79 @@
getScanResult(result) {
+ this.managementType = result.managementType
+ if (this.managementType == 'BY_BATCH' || this.managementType == 'BY_QUANTITY') {
+ this.setDataBatch(result)
+ } else {
+ this.setData(result)
+ }
+
+ },
+ setDataBatch(result){
+ try {
+ var packingNumber = result.label.packingNumber;
+ var batch = result.label.batch;
+ var qty = result.label.qty;
+ var itemCode = result.label.itemCode;
+ var detail = this.detailSource.find(r => r.itemCode == itemCode);
+ if (detail == undefined) {
+ this.showErrorMessage("物料号【" + itemCode + "】不在列表中")
+ } else {
+ var itemDetail = detail.subList.find(r => {
+ return r.batch == batch
+ })
+ if (itemDetail == undefined) {
+ this.showErrorMessage("批次[" + batch + "]不在列表中")
+ } else {
+ if (itemDetail.scaned) {
+ // this.showErrorMessage("批次[" + batch + "]已经扫描")
+ itemDetail.handleQty =calc.add(itemDetail.handleQty,Number(result.package.qty))
+ } else {
+ itemDetail.scaned = true;
+ itemDetail.handleQty = Number(result.package.qty)
+ itemDetail.inventoryStatus = "OK"
+ itemDetail.packQty = result.package.packQty
+ itemDetail.packUnit = result.package.packUnit
+
+
+ //合格退料时不能查库存余额,因为生产退料时新生成的批次是000000 --nxt
+ // let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
+ // let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
+ // if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
+ // this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
+ // ']不一致,是否继续上架?', res => {
+ // if (res) {
+ // itemDetail.scaned = true;
+ // itemDetail.handleQty = Number(result.balance.qty)
+ // itemDetail.balance = result.balance;
+ // itemDetail.balance.balanceQty = result.balance.qty;
+ // itemDetail.balance.packQty = result.package.packQty
+ // itemDetail.balance.packUnit = result.package.packUnit
+ // this.calcHandleQty();
+ // } else {
+ // this.scanPopupGetFocus();
+ // }
+ // });
+ // } else {
+ // itemDetail.scaned = true;
+ // itemDetail.handleQty = Number(result.balance.qty)
+ // itemDetail.balance = result.balance;
+ // itemDetail.balance.balanceQty = result.balance.qty;
+ // itemDetail.balance.packQty = result.package.packQty
+ // itemDetail.balance.packUnit = result.package.packUnit
+ // this.calcHandleQty();
+ // }
+ }
+ this.calcHandleQty();
+ }
+ }
+ this.scanPopupGetFocus();
+ } catch (e) {
+ this.showErrorMessage(e.message);
+ }
+ },
+
+ setData(result){
try {
var packingNumber = result.label.packingNumber;
var batch = result.label.batch;
@@ -306,8 +381,8 @@
itemDetail.packQty = result.package.packQty
itemDetail.packUnit = result.package.packUnit
this.calcHandleQty();
-
-
+
+
//合格退料时不能查库存余额,因为生产退料时新生成的批次是000000 --nxt
// let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
// let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
@@ -400,6 +475,7 @@
itemCode: itemCodes,
locationCode: this.toLocationCode
}
+
getManagementPrecisions(itemCodes, this.toLocationCode, res => {
if (res.success) {
this.managementList = res.list;
From 4b5852df3388daac0a1064ba3134dde99a3ae0a2 Mon Sep 17 00:00:00 2001
From: lijuncheng
Date: Fri, 1 Nov 2024 11:45:00 +0800
Subject: [PATCH 048/201] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=B0=E5=BD=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages.json | 56 ++
.../customerReturn/record/returnRecord.vue | 54 +-
src/pages/deliver/record/deliverRecord.vue | 75 +-
src/pages/issue/record/directIssue.vue | 219 +-----
src/pages/issue/record/directIssueByBatch.vue | 549 +++++++++++++++
.../record/fgDirectPutawayByBatch.vue | 48 ++
.../record/productPutawayRecord.vue | 297 +-------
.../record/productPutawayRecordByBatch.vue | 651 ++++++++++++++++++
.../record/semiDirectPutawayByBatch.vue | 48 ++
.../coms/comProductRecordBatch.vue | 2 +-
.../record/productReceiptRecord.vue | 118 +---
.../record/productReceiptRecordByBatch.vue | 492 +++++++++++++
src/pages/scrap/record/scrapRecord.vue | 90 +--
src/pages/transfer/record/deliverRecord.vue | 12 +-
src/pages/transfer/record/receiptRecord.vue | 43 +-
.../transfer/record/receiptRecordByBatch.vue | 482 +++++++++++++
src/pages/unPlanned/record/issueRecord.vue | 12 +-
src/pages/unPlanned/record/receiptRecord.vue | 44 +-
.../unPlanned/record/receiptRecordByBatch.vue | 450 ++++++++++++
19 files changed, 3011 insertions(+), 731 deletions(-)
create mode 100644 src/pages/issue/record/directIssueByBatch.vue
create mode 100644 src/pages/productPutaway/record/fgDirectPutawayByBatch.vue
create mode 100644 src/pages/productPutaway/record/productPutawayRecordByBatch.vue
create mode 100644 src/pages/productPutaway/record/semiDirectPutawayByBatch.vue
create mode 100644 src/pages/productReceipt/record/productReceiptRecordByBatch.vue
create mode 100644 src/pages/transfer/record/receiptRecordByBatch.vue
create mode 100644 src/pages/unPlanned/record/receiptRecordByBatch.vue
diff --git a/src/pages.json b/src/pages.json
index 3b6dd86d..32a54c13 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -716,6 +716,35 @@
}
}
},
+ {
+ "path": "pages/issue/record/directIssueByBatch",
+ "style": {
+ "navigationBarTitleText": "直接发料",
+ "enablePullDownRefresh": false,
+ "titleNView": {
+ "autoBackButton": "true",
+ "buttons": [
+ // 右边按钮
+ {
+
+ "float": "right",
+ "fontSize": "58rpx", //按钮上文字的大小
+ "text": "\ue696",
+ "fontSrc": "/static/ali_icon/iconfont.ttf"
+
+ },
+ {
+
+ "float": "right",
+ "fontSize": "52rpx", //按钮上文字的大小
+ "text": "\ue6e2",
+ "fontSrc": "/static/ali_icon/iconfont.ttf"
+ }
+ ]
+ }
+ }
+ },
+
{
"path": "pages/issue/record/directIssue0816",
"style": {
@@ -1418,6 +1447,15 @@
"enablePullDownRefresh": false
}
},
+
+ {
+ "path": "pages/productReceipt/record/productReceiptRecordByBatch",
+ "style": {
+ "navigationBarTitleText": "制品收货记录",
+ "enablePullDownRefresh": false
+ }
+ },
+
{
"path": "pages/productPutaway/job/productPutawayJob",
"style": {
@@ -1478,6 +1516,24 @@
}
},
+
+ {
+ "path": "pages/productPutaway/record/fgDirectPutawayByBatch",
+ "style": {
+ "navigationBarTitleText": "装配直接上架",
+ "enablePullDownRefresh": false
+
+ }
+ },
+
+ {
+ "path": "pages/productPutaway/record/semiDirectPutawayByBatch",
+ "style": {
+ "navigationBarTitleText": "预生产直接上架",
+ "enablePullDownRefresh": false
+
+ }
+ },
{
diff --git a/src/pages/customerReturn/record/returnRecord.vue b/src/pages/customerReturn/record/returnRecord.vue
index da15f46f..3c321a2c 100644
--- a/src/pages/customerReturn/record/returnRecord.vue
+++ b/src/pages/customerReturn/record/returnRecord.vue
@@ -70,6 +70,10 @@
createDetailInfo,
calcHandleQty
} from '@/common/record.js';
+
+ import {
+ calc
+ } from '@/common/calc.js';
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import winScanPack from '@/mycomponents/scan/winScanPack.vue'
@@ -109,7 +113,8 @@
toLocationAreaTypeList: [],
managementList: [],
toWarehouseCode: '',
- toInventoryStatuses:""
+ toInventoryStatuses:"",
+ managementType:""
};
},
onLoad(option) {
@@ -145,7 +150,18 @@
},
methods: {
- getScanResult(result) {
+ getScanResult(result,managementTypeParams) {
+ this.managementType = managementTypeParams
+ console.log(managementTypeParams)
+ if (managementTypeParams == "BY_BATCH" || managementTypeParams == "BY_QUANTITY") {
+ this.setDataBatch(result)
+ } else {
+ this.setData(result)
+ }
+
+ },
+
+ setData(result){
let balance = result.balance;
let label = result.label;
let pack = result.package;
@@ -180,7 +196,39 @@
}
}
this.calcHandleQty();
-
+ },
+ setDataBatch(result){
+ let balance = result.balance;
+ let label = result.label;
+ let pack = result.package;
+ var item = this.detailSource.find(res => {
+ if (res.itemCode == balance.itemCode) {
+ return res
+ }
+ })
+ if (item == undefined) {
+
+ var itemp = createItemInfo(balance, pack);
+ let newDetail = createDetailInfo(balance, pack); //
+ newDetail.packingNumber =pack.number
+ itemp.subList.push(newDetail);
+ this.detailSource.push(itemp)
+ } else {
+ var detail = item.subList.find(r => {
+ if (r.batch == balance.batch &&
+ r.locationCode == balance.locationCode &&
+ r.inventoryStatus == balance.inventoryStatus) {
+ return r;
+ }
+ })
+ if (detail == undefined) {
+ let newDetail = createDetailInfo(balance, pack);
+ item.subList.push(newDetail);
+ } else {
+ detail.handleQty =calc.add(detail.handleQty, result.label.qty)
+ }
+ }
+ this.calcHandleQty();
},
showErrorMessage(message) {
diff --git a/src/pages/deliver/record/deliverRecord.vue b/src/pages/deliver/record/deliverRecord.vue
index 048328c0..0b10be85 100644
--- a/src/pages/deliver/record/deliverRecord.vue
+++ b/src/pages/deliver/record/deliverRecord.vue
@@ -8,7 +8,9 @@
-
@@ -80,6 +82,9 @@
calcHandleQty
} from '@/common/record.js';
+ import {
+ calc
+ } from '@/common/calc.js';
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import winScanPack from '@/mycomponents/scan/winScanPack.vue'
@@ -115,7 +120,8 @@
customerCode : "",
dataContent:{},
managementList:[],
- deliverType:''//发货类型:寄售库CUST,三方库THIRD_PARTY
+ deliverType:'',//发货类型:寄售库CUST,三方库THIRD_PARTY
+ managementType:""
};
},
onLoad(option) {
@@ -162,7 +168,20 @@
mounted() {},
methods: {
- getScanResult(result) {
+ getScanResult(result,managementTypeParams) {
+ this.managementType = managementTypeParams
+ if (managementTypeParams == "BY_BATCH" || managementTypeParams == "BY_QUANTITY") {
+ this.setDataBatch(result)
+ } else {
+ this.setData(result)
+ }
+
+
+
+
+ },
+
+ setData(result){
let balance = result.balance;
let label = result.label;
let pack = result.package;
@@ -197,8 +216,42 @@
}
}
this.calcHandleQty();
-
},
+
+ setDataBatch(result){
+ let balance = result.balance;
+ let label = result.label;
+ let pack = result.package;
+ let labelQty =result.label.qty;
+ let balanceQty =result.balance.qty;
+ var item = this.detailSource.find(res => {
+ if (res.itemCode == balance.itemCode) {
+ return res
+ }
+ })
+ if (item == undefined) {
+ var itemp = createItemInfo(balance, pack);
+ let newDetail = createDetailInfo(balance, pack); //
+ itemp.subList.push(newDetail);
+ this.detailSource.push(itemp)
+ } else {
+ var detail = item.subList.find(r => {
+ if (r.batch == balance.batch &&
+ r.locationCode == balance.locationCode &&
+ r.inventoryStatus == balance.inventoryStatus) {
+ return r;
+ }
+ })
+ if (detail == undefined) {
+ let newDetail = createDetailInfo(balance, pack);
+ item.subList.push(newDetail);
+ } else {
+ detail.handleQty =calc.add(detail.handleQty, result.label.qty)
+ }
+ }
+ this.calcHandleQty();
+ },
+
showErrorMessage(message) {
this.$refs.comMessage.showErrorMessage(message, res => {
if (res) {
@@ -228,12 +281,16 @@
},
openScanPopup() {
-
- if (this.fromLocationCode == "") {
- this.showFromLocationPopup();
- return
+ if (this.businessType) {
+ if (this.fromLocationCode == "") {
+ this.showFromLocationPopup();
+ return
+ }
+ this.$refs.scanPopup.openScanPopupForType(this.fromLocationCode, this.businessType);
+ } else {
+ this.getBusinessType()
}
- this.$refs.scanPopup.openScanPopupForType(this.fromLocationCode, this.businessType);
+
},
showFromLocationPopup() {
diff --git a/src/pages/issue/record/directIssue.vue b/src/pages/issue/record/directIssue.vue
index fffd929f..b0d956cf 100644
--- a/src/pages/issue/record/directIssue.vue
+++ b/src/pages/issue/record/directIssue.vue
@@ -1,7 +1,7 @@
-
+
@@ -9,18 +9,10 @@
-
-
+ @removePack="removePack">
@@ -47,13 +39,9 @@
-
-
-
-
-
+
+
+
@@ -85,8 +73,7 @@
getBusinessType,
createItemInfo,
createDetailInfo,
- calcHandleQty,
- calcHandleQtyAdd
+ calcHandleQty
} from '@/common/record.js';
import {
@@ -94,11 +81,7 @@
getPrecisionStrategyList,
getPrecisionStrategyParams
} from '@/common/balance.js';
-
- import {
- Decimal
- } from 'decimal.js'; //引入
-
+
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import winScanPack from '@/mycomponents/scan/winScanPack.vue'
import requiredLocation from '@/mycomponents/location/requiredLocation.vue'
@@ -106,7 +89,6 @@
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue"
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue'
- import recordComDetailCardBatch from '@/mycomponents/record/recordComDetailCardBatch.vue'
import recordDetailCard from '@/mycomponents/record/recordDetailCard.vue'
import balanceSelect from '@/mycomponents/balance/balanceSelect.vue'
import winComScanBalance from '@/mycomponents/scan/winComScanBalance.vue'
@@ -122,7 +104,6 @@
winScanLocation,
winScanPackAndLocation,
recordComDetailCard,
- recordComDetailCardBatch,
recordDetailCard,
balanceSelect,
winComScanBalance,
@@ -148,8 +129,7 @@
show: false,
positionInfo: "请选择生产线",
resultData: {},
- itemCode: "",
- managementType:''
+ itemCode: ""
};
},
onLoad(option) {
@@ -197,22 +177,17 @@
this.businessType = res.businessType;
this.fromInventoryStatuses = getDirectoryItemArray(res.fromInventoryStatuses);
this.fromLocationAreaTypeList = res.fromLocationAreaTypeList
- this.openScanPopup();
+ this.showFromLocationPopup();
} else {
this.showErrorMessage(res.message)
}
});
},
- async getScanResult(result,managementTypeParams) {
- this.managementType = managementTypeParams
- if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){
- this.setDataBatch(result);
- }else{
- this.setData(result);
- }
+ getScanResult(result) {
+ this.setData(result);
},
- async setData(result) {
+ setData(result) {
let balance = result.balance;
let label = result.label;
let pack = result.package;
@@ -249,10 +224,8 @@
this.detailSource.push(itemp)
this.itemCode = balance.itemCode;
this.fromLocationCode = balance.locationCode
- await this.getToLocationBalance(this.fromLocationCode,result)
this.scanPopupGetFocus()
} else {
-
var detail = item.subList.find(r => {
if (r.packingNumber == pack.number &&
r.batch == balance.batch &&
@@ -341,140 +314,6 @@
}
calcHandleQty(this.detailSource);
},
- async setDataBatch(result) {
- let balance = result.balance;
- let label = result.label;
- let pack = result.package;
- // if (this.fromLocationCode && this.fromLocationCode != balance.locationCode) {
- // this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]在库位[" + this
- // .fromLocationCode + "]没有库存余额")
- // return;
- // }
- var item = this.detailSource.find(res => {
- if (res.itemCode == balance.itemCode) {
- return res
- }
- })
- if (item == undefined) {
- if (this.fromWarehouseCode == '') {
- this.fromWarehouseCode = balance.warehouseCode;
- }
- var itemp = createItemInfo(balance, pack);
- itemp.containerNumber=""
- let newDetail = createDetailInfo(balance, pack); //
- newDetail.fromLocationCode=balance.locationCode
-
- newDetail.parentNumber = pack.parentNumber;
- newDetail.packingNumber = pack.number
- newDetail.packUnit = pack.packUnit;
- newDetail.packQty = pack.packQty;
- newDetail.handleQty = 0
- newDetail.balanceQty =result.balance.qty;
- itemp.subList.push(newDetail);
- this.detailSource.push(itemp)
- this.itemCode = balance.itemCode;
- this.fromLocationCode = balance.locationCode
- // this.scanPopupGetFocus()
- } else {
-
- var detail = item.subList.find(r => {
- if (r.batch == balance.batch &&
- r.fromLocationCode == balance.locationCode &&
- r.inventoryStatus == balance.inventoryStatus) {
- return r;
- }
- })
- if (detail == undefined) {
- //如果最开始扫父,在扫子,提示已经扫描父包装
- //如果扫子在扫父,提示扫描的是父包装,是否移除子包装,是移除子包装,显示父包装
- //扫描的是子包装,
- if (pack.parentNumber) {
- var checkData = item.subList.find(r => {
- if (r.packingNumber == pack.parentNumber &&
- r.batch == balance.batch&&
- r.fromLocationCode == balance.locationCode) {
- return r;
- }
- })
- if (checkData) {
- //提示已经扫描
- this.showErrorMessage("扫描箱码[" + pack.number + "]批次[" + balance.batch +
- "]的父包装已经扫描")
- console.log("父包装已经扫描")
- } else {
- let newDetail = createDetailInfo(balance, pack);
- newDetail.parentNumber = pack.parentNumber;
- newDetail.packingNumber = pack.number
- newDetail.packUnit = pack.packUnit;
- newDetail.packQty = pack.packQty;
- newDetail.fromLocationCode=balance.locationCode
- newDetail.handleQty = 0
- item.subList.push(newDetail);
- }
- } else {
- //扫描的是父包装
- var checkData = item.subList.find(r => {
- if (r.batch == balance.batch&&
- r.fromLocationCode == balance.locationCode) {
- return r;
- }
- })
- if (checkData) {
- //是否移除
- this.$refs.comMessage.showQuestionMessage("批次[" + balance
- .batch + "]是父包装,是否移除子包装", res => {
- if (res) {
- item.subList = [];
- let newDetail = createDetailInfo(balance, pack);
- newDetail.parentNumber = pack.parentNumber;
- newDetail.packingNumber = pack.number
- newDetail.packUnit = pack.packUnit;
- newDetail.packQty = pack.packQty;
- newDetail.fromLocationCode=balance.locationCode
- newDetail.handleQty = 0
- newDetail.balanceQty =result.balance.qty;
- item.subList.push(newDetail);
- }
- })
- console.log("扫描的是父包装,是否移除子包装")
- } else {
- let newDetail = createDetailInfo(balance, pack);
- newDetail.fromLocationCode=balance.locationCode
- newDetail.parentNumber = pack.parentNumber;
- newDetail.packingNumber = pack.number
- newDetail.packUnit = pack.packUnit;
- newDetail.packQty = pack.packQty;
- newDetail.handleQty = 0
- newDetail.balanceQty =result.balance.qty;
- item.subList.push(newDetail);
- }
- }
-
- // this.scanPopupGetFocus()
- } else {
- if (detail.scaned == true) {
- // this.showErrorMessage("箱码[" + detail.packingNumber + "批次[" + balance.batch + "]重复扫描")
- }
- }
- }
- console.log(this.detailSource)
- console.log(result.label)
- calcHandleQtyAdd(this.detailSource, result.label);
- // console.log(this.detailSource)
- // for (let item of this.detailSource) {
- // item.handleQty = new Decimal(0).toNumber();
- // item.qty = new Decimal(0).toNumber();
- // for (let detail of item.subList) {
- // if (detail != undefined) {
- // if (detail.scaned) {
- // item.handleQty = calc.add(result.label.qty, detail.handleQty)
- // detail.handleQty = calc.add(result.label.qty, detail.handleQty);
- // }
- // item.qty = calc.add(item.qty, detail.qty);
- // }
- // }
- // }
- },
showErrorMessage(message) {
this.$refs.comMessage.showErrorMessage(message, res => {
@@ -556,27 +395,22 @@
},
openScanPopup() {
- if (this.businessType) {
- // this.$refs.scanFromLocationCode.openScanPopup();
- if (this.fromLocationCode == "") {
- this.showFromLocationPopup();
- return
- }
- this.$refs.scanPopup.openScanPopupForType(this.fromLocationCode, this.businessType);
- } else {
- this.getBusinessType()
+ if (this.fromLocationCode == "") {
+ this.showFromLocationPopup();
+ return
}
+ this.$refs.scanPopup.openScanPopup(this.businessType);
},
showFromLocationPopup() {
this.$nextTick(() => {
- this.$refs.scanFromLocationCode.openScanPopup();
+ this.$refs.scanLocationCode.openScanPopup();
})
},
closeScanPopup() {
- if (this.$refs.scanFromLocationCode != undefined) {
- this.$refs.scanFromLocationCode.closeScanPopup();
+ if (this.$refs.scanPopup != undefined) {
+ this.$refs.scanPopup.closeScanPopup();
}
},
@@ -613,13 +447,7 @@
...this.setRecordParams()
}
console.log("提交参数", JSON.stringify(params));
- const isHaveItem =params.subList.find(item=>item.handleQty > item.balanceQty)
- if(isHaveItem){
- this.showErrorMessage(`物料号${isHaveItem.itemCode}`)
- this.$refs.comMessage.showConfirmWarningModal('物料号'+isHaveItem.itemCode+'数量[' + isHaveItem.handleQty + ']不允许大于库存数量[' + isHaveItem.balanceQty + ']')
- uni.hideLoading()
- return
- }
+
issueRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
@@ -662,7 +490,6 @@
// detail.toLocationCode = detail.toLocationCode
submitItem.qty = detail.handleQty;
submitItem.package = "";
- submitItem.balanceQty = detail.balanceQty;
submitItem.recordList = [{
toInventoryStatus: detail.inventoryStatus,
fromParentPackingNumber: detail.parentNumber,
@@ -734,11 +561,7 @@
this.$forceUpdate();
},
-getFromLocation(location) {
- this.fromLocationCode = location.code;
- this.fromLocationInfo = location;
- this.openScanPopup();
- },
+
clearData() {
this.fromLocationInfo = {};
this.fromLocationCode = '';
diff --git a/src/pages/issue/record/directIssueByBatch.vue b/src/pages/issue/record/directIssueByBatch.vue
new file mode 100644
index 00000000..50693045
--- /dev/null
+++ b/src/pages/issue/record/directIssueByBatch.vue
@@ -0,0 +1,549 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/productPutaway/record/fgDirectPutawayByBatch.vue b/src/pages/productPutaway/record/fgDirectPutawayByBatch.vue
new file mode 100644
index 00000000..5eb29749
--- /dev/null
+++ b/src/pages/productPutaway/record/fgDirectPutawayByBatch.vue
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/productPutaway/record/productPutawayRecord.vue b/src/pages/productPutaway/record/productPutawayRecord.vue
index 28c0a642..a00f1372 100644
--- a/src/pages/productPutaway/record/productPutawayRecord.vue
+++ b/src/pages/productPutaway/record/productPutawayRecord.vue
@@ -8,17 +8,10 @@
-
-
+ @updateData="updateData" @removePack="removePack" @editLocation="showScanToLocation">
@@ -49,12 +42,6 @@
-
-
-
-
-
@@ -63,8 +50,7 @@
import {
productPutawayRecordSubmit,
getrecommendLocationExpectin,
- recommendLocationRemoveExpectin,
- getBalanceByFilter
+ recommendLocationRemoveExpectin
} from '@/api/request2.js';
import {
goHome,
@@ -72,8 +58,7 @@
deepCopyData
} from '@/common/basic.js';
import {
- getPrecisionStrategyList,
- getManagementPrecisions
+ getPrecisionStrategyList
} from '@/common/balance.js';
import {
@@ -85,13 +70,8 @@
getBusinessType,
createItemInfo,
createDetailInfo,
- calcHandleQty,
- calcHandleQtyAdd
+ calcHandleQty
} from '@/common/record.js';
-
- import {
- calc
- } from '@/common/calc.js';
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import requiredLocation from '@/mycomponents/location/requiredLocation.vue'
@@ -101,8 +81,6 @@
import winScanPackage from '@/mycomponents/scan/winScanPackage.vue'
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue"
import winComScanBalance from '@/mycomponents/scan/winComScanBalance.vue'
- import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
- import recordComDetailCardBatch from '@/mycomponents/record/recordComDetailCardBatch.vue'
import {
updateTitle
} from '@/common/basic.js';
@@ -116,9 +94,7 @@
recordComDetailCard,
winScanPackage,
winScanLocation,
- winComScanBalance,
- winScanPackAndLocation,
- recordComDetailCardBatch
+ winComScanBalance
},
data() {
return {
@@ -138,8 +114,7 @@
businessType: {},
managementList: [],
type: '',
- editItem: null,
- managementType:''
+ editItem: null
};
},
// 装配收货:type = 'assemble'
@@ -173,143 +148,11 @@
},
methods: {
- getScanResult(result,managementTypeParams) {
- this.managementType = managementTypeParams
- if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){
- this.setDataBatch(result)
- }else{
- this.setData(result)
- }
+ getScanResult(result) {
+ this.setData(result);
},
- async setDataBatch(result) {
- let balance = result.balance;
- let label = result.label;
- let pack = result.package;
- var item = this.detailSource.find(res => {
- if (res.itemCode == balance.itemCode) {
- return res
- }
- })
- if (item == undefined) {
- var itemp = createItemInfo(balance, pack);
- // itemp.containerNumber=""
- let newDetail = createDetailInfo(balance, pack); //
- newDetail.fromLocationCode=balance.locationCode
-
- newDetail.parentNumber = pack.parentNumber;
- newDetail.packingNumber = pack.number
- newDetail.packUnit = pack.packUnit;
- newDetail.packQty = pack.packQty;
- if (balance.lableQty) {
- newDetail.handleQty = balance.lableQty
- }
- newDetail.handleQty =0;
- newDetail.balanceQty =result.balance.qty;
- itemp.subList.push(newDetail);
- this.detailSource.push(itemp)
- this.itemCode = balance.itemCode;
- this.fromLocationCode = balance.locationCode
- await this.getRecommendLocation(balance,result)
- await this.scanPopupGetFocus()
- } else {
- var detail = item.subList.find(r => {
- if (r.batch == balance.batch &&
- r.fromLocationCode == balance.locationCode &&
- r.inventoryStatus == balance.inventoryStatus) {
- return r;
- }
- })
- if (detail == undefined) {
- //如果最开始扫父,在扫子,提示已经扫描父包装
- //如果扫子在扫父,提示扫描的是父包装,是否移除子包装,是移除子包装,显示父包装
- //扫描的是子包装,
- if (pack.parentNumber) {
- var checkData = item.subList.find(r => {
- if (r.packingNumber == pack.parentNumber &&
- r.batch == balance.batch&&
- r.fromLocationCode == balance.locationCode) {
- return r;
- }
- })
- if (checkData) {
- //提示已经扫描
- this.showErrorMessage("扫描箱码[" + pack.number + "]批次[" + balance.batch +
- "]的父包装已经扫描")
- console.log("父包装已经扫描")
- } else {
- let newDetail = createDetailInfo(balance, pack);
- newDetail.parentNumber = pack.parentNumber;
- newDetail.packingNumber = pack.number
- newDetail.packUnit = pack.packUnit;
- newDetail.packQty = pack.packQty;
- newDetail.fromLocationCode=balance.locationCode
- if (balance.lableQty) {
- newDetail.handleQty = balance.lableQty
- }
- newDetail.handleQty =0;
- newDetail.balanceQty =result.balance.qty;
- item.subList.push(newDetail);
- }
- } else {
- //扫描的是父包装
- var checkData = item.subList.find(r => {
- if (r.parentNumber == pack.number &&
- r.batch == balance.batch&&
- r.fromLocationCode == balance.locationCode) {
- return r;
- }
- })
- if (checkData) {
- //是否移除
- this.$refs.comMessage.showQuestionMessage("箱码[" + checkData.parentNumber+"]" + "批次[" + balance
- .batch + "]是父包装,是否移除子包装", res => {
- if (res) {
- item.subList = [];
- let newDetail = createDetailInfo(balance, pack);
- newDetail.parentNumber = pack.parentNumber;
- newDetail.packingNumber = pack.number
- newDetail.packUnit = pack.packUnit;
- newDetail.packQty = pack.packQty;
- newDetail.fromLocationCode=balance.locationCode
- if (balance.lableQty) {
- newDetail.handleQty = balance.lableQty
- }
- newDetail.handleQty =0;
- newDetail.balanceQty =result.balance.qty;
- item.subList.push(newDetail);
- calcHandleQtyAdd(this.detailSource,result.label);
- }
- })
- console.log("扫描的是父包装,是否移除子包装")
- } else {
- let newDetail = createDetailInfo(balance, pack);
- newDetail.fromLocationCode=balance.locationCode
- newDetail.parentNumber = pack.parentNumber;
- newDetail.packingNumber = pack.number
- newDetail.packUnit = pack.packUnit;
- newDetail.packQty = pack.packQty;
- if (balance.lableQty) {
- newDetail.handleQty = balance.lableQty
- }
- newDetail.handleQty =0;
- newDetail.balanceQty =result.balance.qty;
- item.subList.push(newDetail);
- }
- }
-
- this.scanPopupGetFocus()
- } else {
- if (detail.scaned == true) {
- // detail.handleQty = calc.add(detail.handleQty,result.label.qty)
- // this.showErrorMessage("箱码[" + detail.packingNumber + "批次[" + balance.batch + "]重复扫描")
- }
- }
- }
- calcHandleQtyAdd(this.detailSource,result.label);
- },
-
- async setData(result) {
+ setData(result) {
let balance = result.balance;
let label = result.label;
let pack = result.package;
@@ -336,11 +179,12 @@
this.detailSource.push(itemp)
this.itemCode = balance.itemCode;
this.fromLocationCode = balance.locationCode
- await this.getRecommendLocation(balance,result)
- await this.scanPopupGetFocus()
+ this.getRecommendLocation(balance)
+ this.scanPopupGetFocus()
} else {
var detail = item.subList.find(r => {
- if (r.batch == balance.batch &&
+ if (r.packingNumber == pack.number &&
+ r.batch == balance.batch &&
r.fromLocationCode == balance.locationCode &&
r.inventoryStatus == balance.inventoryStatus) {
return r;
@@ -421,15 +265,14 @@
this.scanPopupGetFocus()
} else {
if (detail.scaned == true) {
- detail.handleQty = calc.add(detail.handleQty,result.label.qty)
- // this.showErrorMessage("箱码[" + detail.packingNumber + "批次[" + balance.batch + "]重复扫描")
+ this.showErrorMessage("箱码[" + detail.packingNumber + "批次[" + balance.batch + "]重复扫描")
}
}
}
calcHandleQty(this.detailSource);
},
- async getRecommendLocation(balance,result) {
+ getRecommendLocation(balance) {
uni.showLoading({
title: '扫描中...',
mask: true
@@ -442,88 +285,24 @@
batch: balance.batch
};
console.log(JSON.stringify(param))
- await getrecommendLocationExpectin(param).then(async result1 => {
+ getrecommendLocationExpectin(param).then(result => {
uni.hideLoading();
let item = this.detailSource.find(res => {
- if (res.itemCode == balance.itemCode) {
+ if (res.itemCode == balance.itemCode && res.containerNumber == balance
+ .packingNumber) {
return res
}
})
- item.toLocationCode = result1.data.code;
- item.expectinNumber = result1.data.expectinNumber;
- await this.getToLocationBalance(item.toLocationCode,result)
+ item.toLocationCode = result.data.code;
+ item.expectinNumber = result.data.expectinNumber;
this.$forceUpdate();
+
}).catch(error => {
uni.hideLoading()
this.showErrorMessage(error);
})
},
- //查询到目标库位的库存余额
- async getToLocationBalance(toLocationCode,result) {
- uni.showLoading({
- title: '查询中',
- mask: true
- })
- var filters = []
- if (result.package.parentNumber) {
- var packingNumber = result.package.parentNumber + "," + result.package.number;
- filters.push({
- column: "packingNumber",
- action: "in",
- value: packingNumber
- })
- } else {
- filters.push({
- column: "packingNumber",
- action: "==",
- value: result.package.number
- })
- }
- filters.push({
- column: "itemCode",
- action: "==",
- value: result.package.itemCode
- })
- filters.push({
- column: "batch",
- action: "==",
- value: result.package.batch
- })
-
- filters.push({
- column: "areaType",
- action: "in",
- value: this.toLocationAreaTypeList.join(',')
- })
-
-
- var params = {
- filters: filters,
- pageNo: 1,
- pageSize: 100,
- }
- await getManagementPrecisions([result.package.itemCode], toLocationCode,async res => {
- if (res.success) {
- this.managementList = res.list;
- this.managementType = this.managementList.some(item => item.ManagementPrecision == 'BY_BATCH') ? 'BY_BATCH' : ''
- if(this.managementType == 'BY_BATCH'){
- uni.hideLoading()
- }else{
- await getBalanceByFilter(params).then(res => {
- uni.hideLoading()
- if (res.data.list.length > 0) {
- this.showErrorMessage("包装在库位【" + res.data.list[0].locationCode + "】已有库存余额");
- }
- // callback(res.data)
- }).catch(err => {
- this.showErrorMessage(err.message);
- })
- }
- }
- })
-
- },
//移除推荐的预占用库位
removeRecommendLocation(lst) {
let param = {
@@ -571,9 +350,7 @@
openScanPopup() {
if (this.businessType) {
- this.toLocationAreaTypeList = getDirectoryItemArray(this.businessType.inAreaTypes)
- // this.$refs.scanPopup.openScanPopup(this.businessType);
- this.openFromLocationScanPopup()
+ this.$refs.scanPopup.openScanPopup(this.businessType);
} else {
this.getBusinessType()
}
@@ -596,18 +373,7 @@
this.$refs.scanPopup.losefocus();
}
},
- openFromLocationScanPopup() {
- if (this.fromLocationCode == "") {
- this.showFromLocationPopup();
- return
- }
- this.$refs.winScanPackAndLocationRef.openScanPopupForType(this.fromLocationCode, this.businessType);
- },
- showFromLocationPopup() {
- this.$nextTick(() => {
- this.$refs.winScanFromLocation.openScanPopup();
- })
- },
+
scanLocationCode(location, code) {
this.toLocationCode = code
this.detailSource.forEach(item => {
@@ -626,15 +392,7 @@
});
var params = this.setParams()
-
console.log("提交" + JSON.stringify(params))
- const isHaveItem =params.subList.find(item=>item.handleQty > item.balanceQty)
- if(isHaveItem){
- this.showErrorMessage(`物料号${isHaveItem.itemCode}`)
- this.$refs.comMessage.showConfirmWarningModal('物料号'+isHaveItem.itemCode+'数量[' + isHaveItem.handleQty + ']不允许大于库存数量[' + isHaveItem.balanceQty + ']')
- uni.hideLoading()
- return
- }
productPutawayRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
@@ -745,14 +503,7 @@
getToLocationCode(location, code) {
this.editItem.toLocationCode = code;
},
- getLocation(location, code) {
- this.getFromLocationCode(location, code)
- },
- getFromLocationCode(location, code) {
- this.fromLocationInfo = location;
- this.fromLocationCode = code;
- this.openScanPopup();
- },
+
showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => {
this.clearData();
diff --git a/src/pages/productPutaway/record/productPutawayRecordByBatch.vue b/src/pages/productPutaway/record/productPutawayRecordByBatch.vue
new file mode 100644
index 00000000..2d410e6d
--- /dev/null
+++ b/src/pages/productPutaway/record/productPutawayRecordByBatch.vue
@@ -0,0 +1,651 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/productPutaway/record/semiDirectPutawayByBatch.vue b/src/pages/productPutaway/record/semiDirectPutawayByBatch.vue
new file mode 100644
index 00000000..22ed7f1c
--- /dev/null
+++ b/src/pages/productPutaway/record/semiDirectPutawayByBatch.vue
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/productReceipt/coms/comProductRecordBatch.vue b/src/pages/productReceipt/coms/comProductRecordBatch.vue
index ba777607..3b5fdd2a 100644
--- a/src/pages/productReceipt/coms/comProductRecordBatch.vue
+++ b/src/pages/productReceipt/coms/comProductRecordBatch.vue
@@ -17,7 +17,7 @@
+ :isShowPack="true" :isShowFromLocation="true">
diff --git a/src/pages/productReceipt/record/productReceiptRecord.vue b/src/pages/productReceipt/record/productReceiptRecord.vue
index 6b0ba794..d12eabf4 100644
--- a/src/pages/productReceipt/record/productReceiptRecord.vue
+++ b/src/pages/productReceipt/record/productReceiptRecord.vue
@@ -8,11 +8,8 @@
-
-
+ @updateData="updateData" @removePack="removePack">
@@ -45,12 +42,6 @@
-
-
-
-
-
@@ -88,20 +79,14 @@
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import winScanPack from '@/mycomponents/scan/winScanPack.vue'
import comProductRecord from '@/pages/productReceipt/coms/comProductRecord.vue'
- import comProductRecordBatch from '@/pages/productReceipt/coms/comProductRecordBatch.vue'
import comBlankView from '@/mycomponents/common/comBlankView.vue'
- import winScanLocation from "@/mycomponents/scan/winScanLocation.vue"
- import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
export default {
components: {
winScanButton,
winScanPack,
comProductRecord,
- comProductRecordBatch,
comBlankView,
- winScanLocation,
- winScanPackAndLocation,
},
data() {
return {
@@ -123,7 +108,6 @@
workShopName: "",
productionLineName: "",
workStationName: "",
- managementType:''
};
},
onLoad(option) {
@@ -158,53 +142,7 @@
mounted() {},
methods: {
- getScanResult(result,managementTypeParams ) {
- this.managementType = managementTypeParams
- if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){
- this.setDataBatch(result)
- }else{
- this.setData(result)
- }
- },
- async setDataBatch(result) {
- let label = result.label;
- let pack = result.package;
-
- var item = this.detailSource.find(res => {
- if (res.itemCode == label.itemCode) {
- return res
- }
- })
-
- if (item == undefined) {
- var itemp = this.createItemInfo(label, pack);
- let newDetail = this.createDetailInfo(label, pack);
- newDetail.handleQty =0;
- newDetail.balanceQty =result.balance.qty;
- itemp.subList.push(newDetail);
- this.detailSource.push(itemp)
- } else {
- var detail = item.subList.find(r => {
- if (r.packingNumber == label.packingNumber &&
- r.batch == label.batch) {
- return r;
- }
- })
-
- if (detail == undefined) {
- let newDetail = this.createDetailInfo(label, pack);
- newDetail.handleQty =0;
- newDetail.balanceQty =result.balance.qty;
- item.subList.push(newDetail);
- } else {
- if (detail.scaned == true) {
- // this.showErrorMessage("箱码[" + label.packingNumber + "批次[" + label.batch + "]重复扫描")
- }
- }
- }
- this.calcHandleQtyAdd(result.label);
- },
- async setData(result) {
+ getScanResult(result) {
let label = result.label;
let pack = result.package;
@@ -280,40 +218,14 @@
this.$forceUpdate();
},
- calcHandleQtyAdd(label) {
- for (let item of this.detailSource) {
- item.handleQty = item.handleQty || new Decimal(0).toNumber();
- for (let detail of item.subList) {
- if (detail != undefined) {
- item.handleQty = calc.add(item.handleQty,label.qty)
- detail.handleQty = calc.add(detail.handleQty,label.qty)
- }
- }
- }
- console.log(this.detailSource)
- this.scanPopupGetFocus();
- this.$forceUpdate();
- },
updateData() {
this.calcHandleQty();
},
openScanPopup() {
- // this.$refs.scanPopup.openScanPopup();
- this.openFromLocationScanPopup()
- },
- openFromLocationScanPopup() {
- if (this.fromLocationCode == "") {
- this.showFromLocationPopup();
- return
- }
- this.$refs.winScanPackAndLocationRef.openScanPopupForType(this.fromLocationCode, this.businessType);
- },
- showFromLocationPopup() {
- this.$nextTick(() => {
- this.$refs.winScanFromLocation.openScanPopup();
- })
+ this.$refs.scanPopup.openScanPopup();
},
+
commit() {
if (this.positionInfo == "请选择位置") {
this.showMessage("请先选择位置")
@@ -328,21 +240,12 @@
});
this.managementList = [];
var precisionStrategParams = this.setPrecisionStrategParams()
-
+
getPrecisionStrategyList(precisionStrategParams, res => {
if (res.success) {
this.managementList = res.list;
var params = this.setParams()
-
- console.log("提交",params)
- const isHaveItem =params.subList.find(item=>item.handleQty > item.balanceQty)
- if(isHaveItem){
- this.showErrorMessage(`物料号${isHaveItem.itemCode}`)
- this.$refs.comMessage.showConfirmWarningModal('物料号'+isHaveItem.itemCode+'数量[' + isHaveItem.handleQty + ']不允许大于库存数量[' + isHaveItem.balanceQty + ']')
- uni.hideLoading()
- return
- }
- return
+ console.log("提交" + JSON.stringify(params))
productionReceiptRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
@@ -476,14 +379,7 @@
this.$refs.scanPopup.losefocus();
}
},
- getLocation(location, code) {
- this.getFromLocationCode(location, code)
- },
- getFromLocationCode(location, code) {
- this.fromLocationInfo = location;
- this.fromLocationCode = code;
- this.openScanPopup();
- },
+
afterCloseMessage() {
this.scanPopupGetFocus();
},
diff --git a/src/pages/productReceipt/record/productReceiptRecordByBatch.vue b/src/pages/productReceipt/record/productReceiptRecordByBatch.vue
new file mode 100644
index 00000000..d12eabf4
--- /dev/null
+++ b/src/pages/productReceipt/record/productReceiptRecordByBatch.vue
@@ -0,0 +1,492 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/scrap/record/scrapRecord.vue b/src/pages/scrap/record/scrapRecord.vue
index 1c1eba10..c7366ea6 100644
--- a/src/pages/scrap/record/scrapRecord.vue
+++ b/src/pages/scrap/record/scrapRecord.vue
@@ -8,8 +8,9 @@
报废原因 :
-
-
+
+
@@ -18,14 +19,13 @@
-
@@ -59,28 +59,27 @@
import {
scrapRecordSubmit
} from '@/api/request2.js';
-
+
import {
goHome,
deepCopyData
} from '@/common/basic.js';
-
+
import {
calc
} from '@/common/calc'
-
+
import {
getInventoryStatusDesc,
getDirectoryItemArray,
getScarpReasonList
} from '@/common/directory.js';
-
+
import {
getBusinessType,
createItemInfo,
createDetailInfo,
calcHandleQty,
- calcHandleQtyAdd
} from '@/common/record.js';
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
@@ -90,7 +89,7 @@
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue'
import recordComDetailCardBatch from '@/mycomponents/record/recordComDetailCardBatch.vue'
-
+
export default {
components: {
winScanButton,
@@ -115,12 +114,12 @@
businessType: {},
reasonList: [],
reasonText: "",
- managementType:""
+ managementType: ""
};
},
onLoad(option) {
uni.setNavigationBarTitle({
- title: option.title
+ title: option.title
})
this.reasonList = getScarpReasonList();
var typeCode = "Scrap"
@@ -148,20 +147,20 @@
onPullDownRefresh() {},
mounted() {
-
+
},
methods: {
- getScanResult(result,managementTypeParams) {
+ getScanResult(result, managementTypeParams) {
this.managementType = managementTypeParams
- console.log("模式"+managementTypeParams)
+ console.log("模式" + managementTypeParams)
if (managementTypeParams == "BY_BATCH" || managementTypeParams == "BY_QUANTITY") {
this.setDataBatch(result)
} else {
this.setData(result)
}
},
-
- setDataBatch(result){
+
+ setDataBatch(result) {
let balance = result.balance;
let label = result.label;
let pack = result.package;
@@ -187,14 +186,14 @@
let newDetail = createDetailInfo(balance, pack);
item.subList.push(newDetail);
} else {
- detail.handleQty =calc.add(detail.handleQty, result.label.qty)
+ detail.handleQty = calc.add(detail.handleQty, result.label.qty)
}
}
-
+
this.calcHandleQty(this.detailSource)
},
-
- setData(result){
+
+ setData(result) {
let balance = result.balance;
let label = result.label;
let pack = result.package;
@@ -255,12 +254,15 @@
},
openScanPopup() {
-
- if (this.fromLocationCode == "") {
- this.showFromLocationPopup();
- return
+ if (this.businessType) {
+ if (this.fromLocationCode == "") {
+ this.showFromLocationPopup();
+ return
+ }
+ this.$refs.scanPopup.openScanPopupForType(this.fromLocationCode, this.businessType);
+ } else {
+ this.getBusinessType()
}
- this.$refs.scanPopup.openScanPopupForType(this.fromLocationCode, this.businessType);
},
showFromLocationPopup() {
this.$nextTick(() => {
@@ -269,13 +271,13 @@
},
closeScanPopup() {
- if(this.$refs.scanPopup!=undefined){
+ if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.closeScanPopup();
}
},
scanPopupGetFocus() {
- if(this.$refs.scanPopup!=undefined){
+ if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus();
}
},
@@ -313,33 +315,33 @@
submitItem.itemName = detail.package.itemName;
submitItem.itemDesc1 = detail.package.itemDesc1;
submitItem.itemDesc2 = detail.package.itemDesc2;
-
+
submitItem.inventoryStatus = detail.inventoryStatus;
-
+
detail.fromPackingNumber = detail.packingNumber;
detail.toPackingNumber = detail.packingNumber;
-
+
submitItem.fromContainerNumber = detail.containerNumber;
submitItem.toContainerNumber = detail.containerNumber
-
+
submitItem.fromBatch = detail.batch;
submitItem.toBatch = detail.batch;
-
+
submitItem.fromLocationCode = detail.locationCode;
submitItem.toLocationCode = "";
-
+
submitItem.reason = this.reasonText;
submitItem.qty = detail.handleQty;
- submitItem.package ="";
+ submitItem.package = "";
subList.push(submitItem)
}
})
})
-
- this.dataContent.subList =subList
+
+ this.dataContent.subList = subList
this.dataContent.creator = creator;
return this.dataContent;
-
+
},
showScanMessage(message) {
@@ -366,7 +368,7 @@
this.clearData();
})
},
- clearData(){
+ clearData() {
this.fromLocationCode = "";
this.reasonText = "";
this.detailSource = [];
@@ -423,4 +425,4 @@
background: #e0e0e0;
}
-
+
\ No newline at end of file
diff --git a/src/pages/transfer/record/deliverRecord.vue b/src/pages/transfer/record/deliverRecord.vue
index f2374fe7..6112df4d 100644
--- a/src/pages/transfer/record/deliverRecord.vue
+++ b/src/pages/transfer/record/deliverRecord.vue
@@ -262,11 +262,15 @@
},
openScanPopup() {
- if (this.fromLocationCode == "") {
- this.showFromLocationPopup();
- return
+ if (this.businessType) {
+ if (this.fromLocationCode == "") {
+ this.showFromLocationPopup();
+ return
+ }
+ this.$refs.scanPopup.openScanPopupForType(this.fromLocationCode, this.businessType);
+ } else {
+ this.getBusinessType()
}
- this.$refs.scanPopup.openScanPopupForType(this.fromLocationCode, this.businessType);
},
showFromLocationPopup() {
this.$nextTick(() => {
diff --git a/src/pages/transfer/record/receiptRecord.vue b/src/pages/transfer/record/receiptRecord.vue
index 7f33326b..6bd706b5 100644
--- a/src/pages/transfer/record/receiptRecord.vue
+++ b/src/pages/transfer/record/receiptRecord.vue
@@ -97,8 +97,7 @@
businessType: {},
managementList: [],
dataContent: {},
- toWarehouseCode: '',
- managementType:import.meta.env.VITE_MANAGE_MODEL
+ toWarehouseCode: ''
};
},
@@ -132,14 +131,7 @@
methods: {
getScanResult(result) {
- var managementTypeParams =this.managementType
- if (managementTypeParams == "BY_BATCH" || managementTypeParams == "BY_QUANTITY") {
- this.setDataBatch(result)
- } else {
- this.setData(result)
- }
-
-
+ this.setData(result)
},
setData(result){
@@ -174,37 +166,6 @@
}
this.calcHandleQty();
},
-
- setDataBatch(result){
- let label = result.label;
- let pack = result.package;
- var item = this.detailSource.find(res => {
- if (res.itemCode == label.itemCode) {
- return res
- }
- })
- if (item == undefined) {
- var itemp = createItemInfo(label, pack);
- let newDetail = createDetailInfo(label, pack); //
- newDetail.inventoryStatus = "OK"
- itemp.subList.push(newDetail);
- this.detailSource.push(itemp)
- } else {
- var detail = item.subList.find(r => {
- if (r.packingNumber == label.packingNumber &&
- r.batch == label.batch) {
- return r;
- }
- })
- if (detail == undefined) {
- let newDetail = createDetailInfo(label, pack);
- item.subList.push(newDetail);
- } else {
- detail.handleQty =calc.add(detail.handleQty, result.label.qty)
- }
- }
- this.calcHandleQty();
- },
showErrorMessage(message) {
this.$refs.comMessage.showErrorMessage(message, res => {
diff --git a/src/pages/transfer/record/receiptRecordByBatch.vue b/src/pages/transfer/record/receiptRecordByBatch.vue
new file mode 100644
index 00000000..7f33326b
--- /dev/null
+++ b/src/pages/transfer/record/receiptRecordByBatch.vue
@@ -0,0 +1,482 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/unPlanned/record/issueRecord.vue b/src/pages/unPlanned/record/issueRecord.vue
index 27f0d6a9..4aac5d33 100644
--- a/src/pages/unPlanned/record/issueRecord.vue
+++ b/src/pages/unPlanned/record/issueRecord.vue
@@ -129,11 +129,15 @@
methods: {
openScanPopup() {
- if (this.fromLocationCode == "") {
- this.showFromLocationPopup();
- return
+ if (this.businessType) {
+ if (this.fromLocationCode == "") {
+ this.showFromLocationPopup();
+ return
+ }
+ this.$refs.scanPopup.openScanPopupForType(this.fromLocationCode, this.businessType);
+ } else {
+ this.getBusinessType()
}
- this.$refs.scanPopup.openScanPopupForType(this.fromLocationCode, this.businessType);
},
showFromLocationPopup() {
this.$nextTick(() => {
diff --git a/src/pages/unPlanned/record/receiptRecord.vue b/src/pages/unPlanned/record/receiptRecord.vue
index efeaf748..288134b6 100644
--- a/src/pages/unPlanned/record/receiptRecord.vue
+++ b/src/pages/unPlanned/record/receiptRecord.vue
@@ -109,7 +109,6 @@
dataContent: {},
managementList: [],
toLocationAreaTypeList:[],
- managementType:import.meta.env.VITE_MANAGE_MODEL
}
},
@@ -137,13 +136,7 @@
this.toLocationCode = code;
},
getScanResult(result) {
- var managementTypeParams =this.managementType
- if (managementTypeParams == "BY_BATCH" || managementTypeParams == "BY_QUANTITY") {
- this.setDataBatch(result)
- } else {
- this.setData(result)
- }
-
+ this.setData(result)
},
setData(result){
@@ -183,41 +176,6 @@
this.calcHandleQty();
},
- setDataBatch(result){
- let label = result.label;
- let pack = result.package;
- var item = this.detailSource.find(res => {
- if (res.itemCode == label.itemCode) {
- return res
- }
- })
- if (item == undefined) {
- var itemp = this.createItemInfo(label, pack);
- let newDetail = this.createDetailInfo(label, pack);
- itemp.subList.push(newDetail);
- this.detailSource.push(itemp)
- this.getfocus()
-
- } else {
- var detail = item.subList.find(r => {
- if (r.packingNumber == pack.number &&
- r.batch == pack.batch) {
- return r;
- }
- })
-
- if (detail == undefined) {
- let newDetail = this.createDetailInfo(label, pack);
- item.subList.push(newDetail);
- this.getfocus()
- } else {
- detail.handleQty =calc.add(detail.handleQty, result.label.qty)
-
- }
- }
- this.calcHandleQty();
- },
-
getfocus(){
if(this.$refs.scanPopup){
this.$refs.scanPopup.getfocus()
diff --git a/src/pages/unPlanned/record/receiptRecordByBatch.vue b/src/pages/unPlanned/record/receiptRecordByBatch.vue
new file mode 100644
index 00000000..efeaf748
--- /dev/null
+++ b/src/pages/unPlanned/record/receiptRecordByBatch.vue
@@ -0,0 +1,450 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
From d62e577a849a2b1624aa3d5b948065bfa450a459 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Fri, 1 Nov 2024 11:53:23 +0800
Subject: [PATCH 049/201] =?UTF-8?q?YT-585=E8=AE=A1=E5=88=92=E5=A4=96?=
=?UTF-8?q?=E5=85=A5=E5=BA=93=EF=BC=8Cpda=E6=89=AB=E7=AE=B1=E7=AD=BE?=
=?UTF-8?q?=EF=BC=8C=E5=B8=A6=E5=87=BA=E6=89=80=E6=9C=89=E5=BA=93=E5=AD=98?=
=?UTF-8?q?=E6=95=B0=E9=87=8F=EF=BC=8C=E4=B8=8D=E6=98=AF=E7=AE=B1=E7=AD=BE?=
=?UTF-8?q?=E6=95=B0=E9=87=8F=EF=BC=8C=E5=BA=94=E5=B8=A6=E5=87=BA=E7=AE=B1?=
=?UTF-8?q?=E7=AD=BE=E6=95=B0=E9=87=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/unPlanned/job/receiptJobDetail.vue | 61 ++++++++++++++++----
1 file changed, 51 insertions(+), 10 deletions(-)
diff --git a/src/pages/unPlanned/job/receiptJobDetail.vue b/src/pages/unPlanned/job/receiptJobDetail.vue
index c2396f7b..a5b94d1e 100644
--- a/src/pages/unPlanned/job/receiptJobDetail.vue
+++ b/src/pages/unPlanned/job/receiptJobDetail.vue
@@ -12,13 +12,9 @@
-
-
+ :locationAreaTypeList='toLocationAreaTypeList'>
@@ -70,12 +66,15 @@
calcHandleQty,
getScanCount
} from '@/common/detail.js';
+
+ import {
+ calc
+ } from '@/common/calc.js';
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import winScanPack from '@/mycomponents/scan/winScanPack.vue'
import locationCompare from '@/mycomponents/location/locationCompare.vue'
import comReceiptDetailCard from '@/pages/unPlanned/coms/comReceiptDetailCard.vue'
- import comReceiptDetailCardBatch from '@/pages/unPlanned/coms/comReceiptDetailCardBatch.vue'
import jobTop from '@/mycomponents/job/jobTop.vue'
export default {
@@ -84,7 +83,6 @@
winScanButton,
winScanPack,
comReceiptDetailCard,
- comReceiptDetailCardBatch,
locationCompare,
jobTop
},
@@ -229,6 +227,14 @@
getScanResult(result) {
+ if(import.meta.env.VITE_MANAGE_MODEL == 'BY_BATCH'){
+ this.setDataBatch(result)
+ }else{
+ this.setData(result)
+ }
+
+ },
+ setDataBatch(result){
try {
var packingNumber = result.label.packingNumber;
var batch = result.label.batch;
@@ -238,7 +244,42 @@
if (detail == undefined) {
this.showErrorMessage("物料号【" + itemCode + "】不在列表中")
} else {
-
+
+ var itemDetail = detail.subList.find(r => r.batch == batch);
+ if (itemDetail == undefined) {
+ this.showErrorMessage("批次【" + batch + "】" + "不在列表中")
+ } else {
+ if (itemDetail.scaned) {
+ // this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】" + "已经扫描")
+ itemDetail.handleQty = calc.add(itemDetail.handleQty ,Number(result.label.qty));
+ } else {
+ itemDetail.scaned = true;
+ itemDetail.handleQty = Number(result.label.qty);
+ itemDetail.toLocationCode = this.toLocationCode ? this.toLocationCode : itemDetail
+ .toLocationCode;
+ itemDetail.packQty = result.package.packQty
+ itemDetail.labelQty = Number(result.label.qty);
+ this.continueScan()
+ }
+ }
+ calcHandleQty(this.detailSource);
+ }
+
+ } catch (e) {
+ this.showErrorMessage(e.message)
+ }
+ },
+ setData(result){
+ try {
+ var packingNumber = result.label.packingNumber;
+ var batch = result.label.batch;
+ var qty = result.label.qty;
+ var itemCode = result.label.itemCode;
+ var detail = this.detailSource.find(r => r.itemCode == itemCode);
+ if (detail == undefined) {
+ this.showErrorMessage("物料号【" + itemCode + "】不在列表中")
+ } else {
+
var itemDetail = detail.subList.find(r => r.packingNumber == packingNumber && r.batch == batch);
if (itemDetail == undefined) {
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】" + "不在列表中")
@@ -257,12 +298,11 @@
}
}
}
-
+
} catch (e) {
this.showErrorMessage(e.message)
}
},
-
commit() {
this.scanCount = getScanCount(this.subList);
if (this.scanCount == 0) {
@@ -326,6 +366,7 @@
this.detailSource.forEach(item => {
itemCodes.push(item.itemCode)
})
+ return
getManagementPrecisions(itemCodes, this.toLocationCode, res => {
if (res.success) {
From e6cc5cb565dfc761cf5d16c297739cb0d942b9bb Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Fri, 1 Nov 2024 11:59:41 +0800
Subject: [PATCH 050/201] =?UTF-8?q?YT-585=E8=AE=A1=E5=88=92=E5=A4=96?=
=?UTF-8?q?=E5=87=BA=E5=85=A5=E5=BA=93=EF=BC=8Cpda=E6=89=AB=E7=AE=B1?=
=?UTF-8?q?=E7=AD=BE=EF=BC=8C=E5=B8=A6=E5=87=BA=E6=89=80=E6=9C=89=E5=BA=93?=
=?UTF-8?q?=E5=AD=98=E6=95=B0=E9=87=8F=EF=BC=8C=E4=B8=8D=E6=98=AF=E7=AE=B1?=
=?UTF-8?q?=E7=AD=BE=E6=95=B0=E9=87=8F=EF=BC=8C=E5=BA=94=E5=B8=A6=E5=87=BA?=
=?UTF-8?q?=E7=AE=B1=E7=AD=BE=E6=95=B0=E9=87=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/unPlanned/job/issueJobDetail.vue | 71 +++++++++++++++++++---
1 file changed, 64 insertions(+), 7 deletions(-)
diff --git a/src/pages/unPlanned/job/issueJobDetail.vue b/src/pages/unPlanned/job/issueJobDetail.vue
index 9f548107..b9188d32 100644
--- a/src/pages/unPlanned/job/issueJobDetail.vue
+++ b/src/pages/unPlanned/job/issueJobDetail.vue
@@ -250,6 +250,13 @@
},
getScanResult(result) {
+ if(import.meta.env.VITE_MANAGE_MODEL == 'BY_BATCH'){
+ this.setDataBatch(result)
+ }else{
+ this.setData(result)
+ }
+ },
+ setDataBatch(result){
try {
var packingNumber = result.balance.packingNumber;
var batch = result.balance.batch;
@@ -258,13 +265,12 @@
var locationCode = result.balance.locationCode;
var inventoryStatus = result.balance.inventoryStatus;
var detail = this.detailSource.find(r => r.itemCode == itemCode);
-
+
if (detail == undefined) {
this.showErrorMessage("物料号【" + itemCode + "】不在列表中")
} else {
var itemDetail = detail.subList.find(r => {
- return r.packingNumber == packingNumber &&
- r.batch == batch &&
+ return r.batch == batch &&
r.fromLocationCode == result.fromLocationCode&&
r.isRecommend==false
})
@@ -273,7 +279,7 @@
itemCode:itemCode,
packingNumber:packingNumber,
batch:batch,
- handleQty:detail.qty r.itemCode == itemCode);
+
+ if (detail == undefined) {
+ this.showErrorMessage("物料号【" + itemCode + "】不在列表中")
+ } else {
+ var itemDetail = detail.subList.find(r => {
+ return r.packingNumber == packingNumber &&
+ r.batch == batch &&
+ r.fromLocationCode == result.fromLocationCode&&
+ r.isRecommend==false
+ })
+ if (itemDetail == undefined) {
+ var newAdd = {
+ itemCode:itemCode,
+ packingNumber:packingNumber,
+ batch:batch,
+ handleQty:detail.qty {
From 1c5abafbb750cef28e5b7c1de2c39e800575563b Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Fri, 1 Nov 2024 12:38:27 +0800
Subject: [PATCH 051/201] =?UTF-8?q?=E5=8E=BB=E6=8E=89calc?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/putaway/record/putawayRecord.vue | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/pages/putaway/record/putawayRecord.vue b/src/pages/putaway/record/putawayRecord.vue
index 9ca0a5ce..1791dccc 100644
--- a/src/pages/putaway/record/putawayRecord.vue
+++ b/src/pages/putaway/record/putawayRecord.vue
@@ -99,9 +99,7 @@
getPrecisionStrategyParams
} from '@/common/balance.js';
- import {
- calc
- } from '@/common/calc'
+
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import winScanPack from '@/mycomponents/scan/winScanPack.vue'
From 7fa8957563a0afb199309308e3e4a2fcb17346a9 Mon Sep 17 00:00:00 2001
From: lijuncheng
Date: Fri, 1 Nov 2024 13:28:40 +0800
Subject: [PATCH 052/201] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=B4=E6=8E=A5?=
=?UTF-8?q?=E8=AE=B0=E5=BD=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/issue/record/directIssueByBatch.vue | 1 +
src/pages/putaway/record/putawayRecord.vue | 1 +
src/pages/scrap/record/scrapRecord.vue | 1 +
src/pages/unPlanned/record/issueRecord.vue | 1 +
src/pages/unPlanned/record/receiptRecord.vue | 1 +
.../unPlanned/record/receiptRecordByBatch.vue | 47 +------------------
6 files changed, 7 insertions(+), 45 deletions(-)
diff --git a/src/pages/issue/record/directIssueByBatch.vue b/src/pages/issue/record/directIssueByBatch.vue
index 50693045..9457e8aa 100644
--- a/src/pages/issue/record/directIssueByBatch.vue
+++ b/src/pages/issue/record/directIssueByBatch.vue
@@ -12,6 +12,7 @@
diff --git a/src/pages/putaway/record/putawayRecord.vue b/src/pages/putaway/record/putawayRecord.vue
index 9ca0a5ce..afefd46d 100644
--- a/src/pages/putaway/record/putawayRecord.vue
+++ b/src/pages/putaway/record/putawayRecord.vue
@@ -18,6 +18,7 @@
diff --git a/src/pages/unPlanned/record/receiptRecordByBatch.vue b/src/pages/unPlanned/record/receiptRecordByBatch.vue
index efeaf748..84342d1d 100644
--- a/src/pages/unPlanned/record/receiptRecordByBatch.vue
+++ b/src/pages/unPlanned/record/receiptRecordByBatch.vue
@@ -18,6 +18,7 @@
:dataContent="item" @removeItem="removeItem(index,item)"
@updateData="updateData"
:queryBalance="false"
+ :allowModifyQty="true"
:isShowLocation="false" @removePack="removePack">
@@ -109,7 +110,6 @@
dataContent: {},
managementList: [],
toLocationAreaTypeList:[],
- managementType:import.meta.env.VITE_MANAGE_MODEL
}
},
@@ -137,50 +137,7 @@
this.toLocationCode = code;
},
getScanResult(result) {
- var managementTypeParams =this.managementType
- if (managementTypeParams == "BY_BATCH" || managementTypeParams == "BY_QUANTITY") {
- this.setDataBatch(result)
- } else {
- this.setData(result)
- }
-
- },
-
- setData(result){
- let label = result.label;
- let pack = result.package;
- var item = this.detailSource.find(res => {
- if (res.itemCode == label.itemCode) {
- return res
- }
- })
- if (item == undefined) {
- var itemp = this.createItemInfo(label, pack);
- let newDetail = this.createDetailInfo(label, pack);
- itemp.subList.push(newDetail);
- this.detailSource.push(itemp)
- this.getfocus()
-
- } else {
- var detail = item.subList.find(r => {
- if (r.packingNumber == pack.number &&
- r.batch == pack.batch) {
- return r;
- }
- })
-
- if (detail == undefined) {
- let newDetail = this.createDetailInfo(label, pack);
- item.subList.push(newDetail);
- this.getfocus()
- } else {
- if (detail.scaned) {
- this.showErrorMessage("箱码[" + pack.number + "]批次[" + pack.batch + "]已经扫描")
- }
-
- }
- }
- this.calcHandleQty();
+ this.setDataBatch(result)
},
setDataBatch(result){
From e142cb156752088f594c68b2106a900395d9534c Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Fri, 1 Nov 2024 13:40:59 +0800
Subject: [PATCH 053/201] =?UTF-8?q?YT-568=E6=89=80=E6=9C=89=E4=BB=BB?=
=?UTF-8?q?=E5=8A=A1=E5=88=97=E8=A1=A8=E9=9A=90=E8=97=8F=E6=8E=89=E6=89=AB?=
=?UTF-8?q?=E6=8F=8F=E7=AE=B1=E7=A0=81=E8=BF=9B=E5=85=A5=E4=BB=BB=E5=8A=A1?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=8C=E9=87=87=E8=B4=AD=E6=94=B6=E8=B4=A7?=
=?UTF-8?q?=E4=BB=BB=E5=8A=A1=E8=A6=81=E4=BF=9D=E7=95=99=E6=89=AB=E6=8F=8F?=
=?UTF-8?q?ASN=E5=8D=95=E5=8F=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/deliver/job/deliverDetailBatch.vue | 604 +++++++++++++------
1 file changed, 430 insertions(+), 174 deletions(-)
diff --git a/src/pages/deliver/job/deliverDetailBatch.vue b/src/pages/deliver/job/deliverDetailBatch.vue
index 6f815e0c..d3b89425 100644
--- a/src/pages/deliver/job/deliverDetailBatch.vue
+++ b/src/pages/deliver/job/deliverDetailBatch.vue
@@ -9,7 +9,7 @@
发货类型
- {{jobContent.deliverType}}
+ {{jobContent.deliverType}}
@@ -19,7 +19,7 @@
目标库位
- {{toLocationCode}}
+ {{toLocationCode}}
@@ -28,19 +28,20 @@
+
+
+
-
-
+
+
+
-
+
@@ -74,13 +80,19 @@
getRemoveOption,
getCurrDateTime,
getPackingNumberAndBatch,
- deepCopyData
+ deepCopyData,
+ compareAsc,
} from '@/common/basic.js';
- import {
- getDataSource
- } from '@/pages/issue/js/issue.js';
+ import {
+ getTreeDataSource,
+ calcTreeHandleQty,
+ getScanCount,
+ getThreeDataSource,
+ getDataSource,
+ calcHandleQty,
+ } from '@/common/detail.js';
import {
getManagementPrecisions
} from '@/common/balance.js';
@@ -88,10 +100,10 @@
import jobDetailPopup from '@/mycomponents/job/jobDetailPopup.vue'
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
- import comDeliverDetailCard from '@/pages/deliver/coms/comDeliverDetailCard.vue'
import comDeliverDetailCardBatch from '@/pages/deliver/coms/comDeliverDetailCardBatch.vue'
import comScanDeliverPackBatch from '@/pages/deliver/coms/comScanDeliverPackBatch.vue'
import jobTop from '@/mycomponents/job/jobTop.vue'
+ import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
export default {
name: 'issueDetail',
@@ -99,8 +111,9 @@
jobDetailPopup,
winScanButton,
comDeliverDetailCardBatch,
+ comScanDeliverPackBatch,
jobTop,
- comScanDeliverPackBatch
+ winScanPackAndLocation
},
data() {
return {
@@ -113,7 +126,7 @@
status: "",
toLocationCode: "",
jobStatus: "",
- fromLocationCode:''
+ allowBiggerQty:"TRUE",//开启数量校验提示
};
},
@@ -184,13 +197,16 @@
});
getDeliverDetail(that.id).then(res => {
uni.hideLoading();
- if (res.data &&res.data.subList.length > 0) {
+ if (res.data && res.data.subList.length > 0) {
that.jobContent = res.data;
that.jobStatus = res.data.status;
that.subList = res.data.subList;
- that.detailSource = getDataSource(that.detailSource, that.subList)
- that.fromLocationCode = that.subList[0].fromLocationCode
+ // that.detailSource = res.data;
+ that.detailSource = getThreeDataSource(that.jobContent)
+ console.log(999,that.detailSource)
+
that.toLocationCode = that.subList[0].toLocationCode
+ that.allowBiggerQty = res.data.allowBiggerQty;
that.resizeCollapse();
} else {
that.showMessage('未获取到详情');
@@ -207,14 +223,201 @@
resizeCollapse() {
this.$nextTick(r => {
- this.$refs.comIssueDetailCard.forEach(r => {
+ this.$refs.comIssueDetailCardBatch.forEach(r => {
r.resizeCollapse();
})
});
},
-
+ getScanResult(result, managementTypeParams) {
+ console.log(222,result)
+ this.managementType = managementTypeParams
+ if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){
+ this.setDataBatch(result)
+ }else{
+ this.setData(result)
+ }
+ },
+ setDataBatch(result) {
+ try {
+ let that = this
+ this.balanceinfo = result.balance
+ var packingNumber = result.label.packingNumber;
+ var batch = result.label.batch;
+ var qty = result.label.qty;
+ var itemCode = result.label.itemCode;
+ var locationCode = result.fromLocationCode;
+
+ if (!result.balance) {
+ this.showMessage("没有库存余额")
+ return;
+ }
+ console.log(9558,result)
+ // var inventoryStatus = "OK";
+ var detail = this.detailSource.find(r => r.itemCode == itemCode);
+
+ if (detail == undefined) {
+ this.showErrorMessage("物料号【" + itemCode + "】不在列表中")
+ } else {
+
+ var itemDetail = detail.subList.find(r => {
+ return r.batch == batch &&
+ r.fromLocationCode == result.fromLocationCode
+ })
+ if (itemDetail == undefined) {
+ var isExit;
+ for (let subItem of detail.subList) {
+ var item;
+ // for (let pack of subItem.packList) {
+ // if (pack.batch == batch) {
+ // item = pack;
+ // isExit = pack;
+ // break;
+ // }
+ // }
+ // if (item != undefined) {
+ // subItem.scaned = true
+ // subItem.handleQty = 0;
+ // item = undefined
+ // }
+ }
+ if (isExit == undefined) {
+ // this.showErrorMessage("批次【" + batch + "】库位【" + result
+ // .fromLocationCode + "】不在列表中")
+ console.log(222,this.fromLocationCode)
+ detail.subList.push({
+ scaned:true,
+ fromLocationCode:this.fromLocationCode,
+ toLocationCode:this.toLocationCode,
+ batch:result.label.batch,
+ handleQty:result.label.qty,
+ qty:result.balance.qty,
+ inventoryStatus:result.balance.inventoryStatus,
+ toLocation:result.balance.toLocation,
+ balance:result.balance,
+ balanceQty:result.balance.qty,
+ packQty:result.package.packQty,
+ packUnit:result.package.packUnit,
+ uom:result.balance.uom,
+ // packList:[{
+ // scaned : true,
+ // handleQty : Number(result.label.qty),
+ // toLocationCode : result.balance.toLocationCode,
+ // }]
+ })
+ console.log(999,detail)
+ detail.handleQty = 0
+ detail.qty = 0
+ detail.subList.forEach(item=>{
+ detail.handleQty = calc.add(detail.handleQty,item.handleQty)
+ detail.qty = calc.add(detail.qty,item.qty)
+ // item.packList.forEach(cur=>{
+ // cur.handleQty = calc.add(detail.handleQty,item.handleQty)
+ // })
+ })
+ setTimeout(r => {
+ that.resizeCollapse();
+ that.$forceUpdate()
+ }, 100)
+ } else {
+ if (!isExit.cancleScanedHiht && isExit.scaned) {
+ // this.showMessage("批次【" + batch + "】已经扫描")
+ } else {
+ isExit.scaned = true
+ let qty = 0;
+ if (result.balance != null) {
+ qty = Number(result.balance.qty);
+ } else {
+ qty = Number(result.label.qty);
+ }
+ isExit.handleQty = Number(result.label.qty);
+ isExit.toLocationCode = this.toLocationCode;
+ }
+ itemDetail.handleQty = calc.add(itemDetail.handleQty,result.label.qty);
+ detail.handleQty = 0
+ detail.balance = result.balance,
+ detail.subList.forEach(item=>{
+ detail.handleQty = calc.add(detail.handleQty,item.handleQty)
+ // item.packList.forEach(cur=>{
+ // cur.handleQty = calc.add(detail.handleQty,item.handleQty)
+ // })
+ })
+ // calcHandleQtyAdd(this.detailSource, result.label);
+ }
+ this.continueScan()
+ this.$forceUpdate()
+ } else {
+ var scanedLength = 0;
+ // itemDetail.packList.forEach(res => {
+ // if (res.scaned) {
+ // scanedLength++;
+ // }
+ // })
+ //大哥让加的
+ itemDetail.fromInventoryStatus = result.balance.inventoryStatus;
+
+ if (itemDetail.scaned ) {
+ // this.showMessage("箱码【" + packingNumber + "】已经扫描")
+ // calcHandleQtyAdd(this.detailSource, result.label);
+ itemDetail.balance=result.balance
+ itemDetail.balanceQty=result.balance.qty
+ itemDetail.uom=result.balance.uom,
+ itemDetail.handleQty = calc.add(itemDetail.handleQty,result.label.qty);
+ detail.handleQty = 0
+ detail.subList.forEach(item=>{
+ detail.handleQty = calc.add(detail.handleQty,item.handleQty)
+ })
+ } else {
+ debugger
+ itemDetail.scaned = true;
+ this.detailSource[0].subList.sort(compareAsc('scaned')); //按扫描信息排序
+ itemDetail.handleQty = result.label.qty;
+ itemDetail.scaned = true
+ itemDetail.balance=result.balance
+ itemDetail.balanceQty=result.balance.qty
+ itemDetail.uom=result.balance.uom
+ itemDetail.packQty=result.package.packQty
+ itemDetail.packUnit=result.package.packUnit
+ itemDetail.fromlocationCode=this.fromLocationCode
+ itemDetail.toLocationCode=this.toLocationCode
+ // itemDetail.toInventoryStatus = "OK"
+ // itemDetail.packList.forEach(pac => {
+ // pac.scaned = true
+ // pac.handleQty = Number(result.label.qty);
+ // pac.toLocationCode = result.balance.toLocationCode;
+ // })
+ detail.handleQty = 0
+ detail.subList.forEach(item=>{
+ detail.handleQty = calc.add(detail.handleQty,item.handleQty)
+ // item.packList.forEach(cur=>{
+ // cur.handleQty = calc.add(detail.handleQty,item.handleQty)
+ // })
+ })
+ // calcTreeHandleQty(this.detailSource);
+ this.continueScan()
+ this.$forceUpdate()
+ }
+ }
+ }
+ this.detailSource.forEach(item => {
+ item.subList.forEach(detail => {
+ detail.packingNumber = ''
+ })
+ })
+ } catch (e) {
+ this.showMessage(e.message)
+ }
+ },
+ //继续扫描
+ continueScan() {
+ this.scanCount = getScanCount(this.subList);
+ if (this.scanCount == this.subList.length) {
+ this.closeScanPopup();
+ } else {
+ this.scanPopupGetFocus();
+ }
+ },
submit() {
uni.showLoading({
title: "提交中....",
@@ -223,103 +426,168 @@
//目前任务只到一个库位
var itemCodes = []
- let locationCode = this.detailSource[0].toLocationCode
- this.detailSource.forEach(toLocationCode => {
- toLocationCode.Items.forEach(item => {
- itemCodes.push(item.itemCode)
- })
+ //目前任务只到一个库位
+ var itemCodes = []
+ let locationCode = this.detailSource[0].subList[0].toLocationCode
+ this.detailSource.forEach(toLocation => {
+ itemCodes.push(toLocation.itemCode)
})
-
- //使用在途库,不查询管理模式
- if (locationCode == null) {
- this.submitJob();
- } else {
- //获取管理模式,封装参数
- getManagementPrecisions(itemCodes, locationCode, res => {
- if (res.success) {
- this.managementList = res.list;
- this.submitJob();
- } else {
- uni.hideLoading();
- this.showErrorMessage(res.message);
- }
- });
- }
+ console.log( this.detailSource)
+
+ //获取管理模式,封装参数
+ getManagementPrecisions(itemCodes, locationCode, res => {
+ if (res.success) {
+ this.managementList = res.list;
+ console.log(res)
+ this.managementType = this.managementList && this.managementList[0] ? this.managementList[0].ManagementPrecision : 'BY_PACKAGING'
+
+ this.submitJob();
+ } else {
+ uni.hideLoading();
+ // this.showErrorMessage(res.message);
+ }
+ });
+ // //使用在途库,不查询管理模式
+ // if (locationCode == null) {
+ // this.submitJob();
+ // } else {
+ // //获取管理模式,封装参数
+ // getManagementPrecisions(itemCodes, locationCode, res => {
+ // if (res.success) {
+ // this.managementList = res.list;
+ // this.submitJob();
+ // } else {
+ // uni.hideLoading();
+ // this.showErrorMessage(res.message);
+ // }
+ // });
+ // }
},
-
- checkCount(){
- let str=""
- this.detailSource.forEach(detail => {
- detail.Items.forEach(item => {
- var taskQty =0;
- item.taskQty =calc.add(taskQty,item.qty)
- var totalQty =0;
- item.Locations.forEach(lco => {
- lco.Batchs.forEach(batch => {
- batch.Records.forEach(record => {
- // if (batch.qty != record.qty) {
- // var tempHandleQty = 0
- // if (record.qty) {
- // tempHandleQty = record.qty
- // } else {
- // tempHandleQty = 0
- // }
- // if (batch.qty != 0) {
- // str +=
- // `包装号【${record.packingNumber}】提交数量【${tempHandleQty}】与任务物料数量【${batch.qty}】不一致\n`
- // }
- // }
- if(record){
- var hanleQty =record.qty?record.qty:0
- totalQty = calc.add(totalQty,hanleQty)
- }
-
- })
+
+ checkCount() {
+ let str=""
+ this.detailSource.forEach(detail => {
+ detail.Items.forEach(item => {
+ var taskQty =0;
+ item.taskQty =calc.add(taskQty,item.qty)
+ var totalQty =0;
+ item.Locations.forEach(lco => {
+ lco.Batchs.forEach(batch => {
+ batch.Records.forEach(record => {
+ if(record){
+ var hanleQty =record.qty?record.qty:0
+ totalQty = calc.add(totalQty,hanleQty)
+ }
+
})
})
- //实际扫描的数量
- item.totalQty =totalQty
-
})
+ //实际扫描的数量
+ item.totalQty =totalQty
+
})
- //如果允许部分提交任务有扫描记录就可以直接提交;如果不允许部分执行,任务数量和提交数量不一致给出提示
- this.detailSource.forEach(detail=>{
- detail.Items.forEach(item=>{
- if(this.jobContent.allowPartialComplete=="FALSE"){
- if(item.taskQty!=item.totalQty){
- str += `物料号【${item.itemCode}】任务数量【${item.taskQty}】与实际提交数量【${item.totalQty}】不一致\n`
- }
+ })
+ //如果允许部分提交任务有扫描记录就可以直接提交;如果不允许部分执行,任务数量和提交数量不一致给出提示
+ this.detailSource.forEach(detail=>{
+ detail.Items.forEach(item=>{
+ if(this.jobContent.allowPartialComplete=="FALSE"){
+ if(item.taskQty!=item.totalQty){
+ str += `物料号【${item.itemCode}】任务数量【${item.taskQty}】与实际提交数量【${item.totalQty}】不一致\n`
}
+ }
+ })
+ })
+
+ if(str){
+ str = '不允许提交\n' + str
+ this.showErrorMessage(str)
+ }
+
+ return str?false:true
+ },
+ checkCountBatch() {
+ let str = ""
+ let str1 = ""
+ let str2 = ""
+ this.detailSource.forEach(detail => {
+ var taskQty = 0;
+ var totalQty = 0;
+ detail.subList.forEach(item => {
+ if(item.scaned){
+ item.taskQty=0
+ item.totalQty=0
+ item.taskQty =calc.add(item.taskQty,item.qty)
+ item.totalQty =calc.add(item.totalQty,item.handleQty)
+ if (this.jobContent.allowPartialComplete == "FALSE") {
+ if(item.handleQty!=item.taskQty){
+ str += `批次【${item.batch}】提交数量【${item.handleQty}】与任务物料数量【${item.taskQty}】不一致\n`
+ }
+ }
+ if (this.allowBiggerQty == 'FALSE') {
+ if ( item.taskQty < item.totalQty) {
+ str1 += '数量[' + item.totalQty + ']不允许大于任务数量[' + item.taskQty + ']'
+ }
+ }
+ if(item.handleQty>item.balance.qty){
+ str2 += `批次【${item.batch}】提交数量【${item.handleQty}】不可以大于库存数量【${item.balance.qty}】`
+ }
+ }
+
})
})
-
- if(str){
+
+
+ if (str) {
str = '不允许提交\n' + str
this.showErrorMessage(str)
}
-
- return str?false:true
-
+ if (str1) {
+ str1 = '不允许提交\n' + str1
+ this.showErrorMessage(str1)
+ }
+ if (str2) {
+ str2 = '不允许提交\n' + str2
+ this.showErrorMessage(str2)
+ }
+ return str || str1 || str2 ? false : true
+
},
submitJob() {
var params = this.setParams()
- console.log("提交参数", JSON.stringify(params));
-
- if (params.subList.length == 0) {
- uni.hideLoading()
- this.$refs.comMessage.showConfirmMessageModal('请扫描箱码')
- return
+ console.log("提交参数", params);
+ const isTrue = params.subList.some(item=>{
+ console.log(item.recordList.some(cur=>cur.scaned))
+ return item.recordList.some(cur=>cur.scaned) == true
+ })
+ if(!isTrue){
+ uni.hideLoading()
+ this.showErrorMessage("请扫描您需要提交的发货任务")
+ return
}
-
- if(!this.checkCount()){
- uni.hideLoading()
- return ;
+ // return;
+ // if (params.subList.length == 0) {
+ // uni.hideLoading()
+ // this.$refs.comMessage.showConfirmMessageModal('请扫描箱码')
+ // return
+ // }
+ if(this.managementType == "BY_BATCH" ||this.managementType == "BY_QUANTITY" ){
+ if (!this.checkCountBatch()) {
+ uni.hideLoading()
+ return;
+ }
+ }else{
+ if (!this.checkCount()) {
+ uni.hideLoading()
+ return;
+ }
}
-
+ debugger
+
deliverJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
+
this.showCommitSuccessMessage("提交成功\n生成发货记录\n" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
@@ -334,55 +602,34 @@
var subList = []
var createTime = getCurrDateTime();
var creator = this.$store.state.user.id
+ console.log(222,this.detailSource)
this.detailSource.forEach(toLocationCode => {
- toLocationCode.Items.forEach(item => {
- item.Locations.forEach(fromLocation => {
- fromLocation.Batchs.forEach(batch => {
- let subItem = batch.detail;
- subItem.recordList = [];
- if (batch.Records.length > 0) {
- batch.Records.forEach(r => {
- let record = {};
- record.handleQty = r.qty;
- record.fromPackingNumber = r
- .packingNumber;
- record.toContainerNumber = r
- .ContainerNumber;
- record.toInventoryStatus = r
- .inventoryStatus;
- // record.toLocationCode = subItem
- // .toLocationCode;
- record.toLocationCode = this.toLocationCode;
- record.supplierCode = r.supplierCode;
-
- //使用在途库不改变管理模式
- if (this.toLocationCode == null) {
- record.toPackingNumber = r
- .packingNumber;
- record.toBatch = r.batch;
- } else {
- var info =
- getPackingNumberAndBatch(
- this.managementList, r
- .itemCode,
- r.packingNumber, r
- .batch);
- record.toPackingNumber = info
- .packingNumber;
- record.toBatch = info.batch;
- }
- record.fromParentPackingNumber = r
- .parentPackingNumber;
- subItem.toLocationCode = this.toLocationCode
- subItem.recordList.push(record);
- })
- subList.push(deepCopyData(subItem));
- }
- })
- })
+ let obj = {...toLocationCode}
+ delete obj.subList
+ obj.recordList = []
+ let obj1 ={}
+ let arr = toLocationCode.subList.filter(item=>item.scaned)
+ arr.forEach(record=>{
+ obj1.scaned =record.scaned;
+ obj1.handleQty =record.handleQty;
+ obj1.fromLocationCode =record.fromLocationCode;
+ obj1.fromInventoryStatus =record.fromInventoryStatus;
+ obj1.copyContent =record.copyContent;
+ obj1.toContainerNumber = record.ContainerNumber;
+ obj1.toInventoryStatus =record.inventoryStatus;
+ obj1.toLocationCode = record.toLocationCode;
+ obj1.supplierCode = record.supplierCode;
+ obj1.toPackingNumber ='';
+ obj1.packingNumber = ''
+ obj1.fromPackingNumber = '';
+ obj1.toBatch = record.batch;
+ obj1.toPackingNumber = '';
+ obj1.packingNumber = '';
+ obj1.fromPackingNumber ='';
+ obj.recordList.push(obj1)
})
+ subList.push(obj)
})
-
this.jobContent.subList = subList
this.jobContent.createTime = createTime;
this.jobContent.creator = creator;
@@ -420,30 +667,12 @@
},
updateData(record) {
- let requestLocation = this.detailSource.find(r => r.toLocationCode == record.toLocationCode);
- let item = requestLocation.Items.find(r => r.itemCode == record.itemCode);
- let itemHandleQty = 0;
- if (item != undefined) {
- item.Locations.forEach(l => {
- let batch = l.Batchs.find(b => (b.packingNumber == record.packingNumber || b
- .packingNumber == null || b.packingNumber == '') && b.batch ==
- record.batch);
- let handleQty = 0;
- if (batch != undefined) {
- batch.Records.forEach(res => {
- handleQty = calc.add(handleQty, res.qty)
- })
- batch.handleQty = handleQty;
- itemHandleQty = calc.add(itemHandleQty, handleQty)
- }
- })
- }
- // item.handleQty=itemHandleQty;
+ calcHandleQty(this.detailSource);
},
scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
- this.$refs.scanPopup.getfocus();
+ this.$refs.scanPopup.packGetFocus();
}
},
@@ -496,15 +725,42 @@
this.dataContent = result;
this.$forceUpdate();
},
- openScanDetailPopup() {
- var datacontent = {}
- //克隆对象,深度克隆,防止双向绑定同一个变量
- // Object.assign(datacontent, this.detailSource);
- this.$refs.comScanIssuePack.openScanPopup(this.detailSource, this.jobContent);
- },
+ // openScanDetailPopup() {
+ // var datacontent = {}
+ // //克隆对象,深度克隆,防止双向绑定同一个变量
+ // // Object.assign(datacontent, this.detailSource);
+ // this.$refs.comScanIssuePack.openScanPopup(this.detailSource, this.jobContent);
+ // },
closeScanPopup() {
- this.updateCommitBtn();
+ // this.updateCommitBtn();
+ },
+ openScanPopup() {
+ let fromLocationCode = '';
+ let fromlocationList = [];
+ for (var i = 0; i < this.detailSource.length; i++) {
+ let item = this.detailSource[i];
+ item.subList.forEach(l => {
+ //重复的库位不往里面插入
+ var location = fromlocationList.find(res => res == l.fromLocationCode)
+ if (location == undefined) {
+ fromlocationList.push(l.fromLocationCode);
+ }
+ //来源库位赋默认值
+ if (fromLocationCode == '') {
+ if (!l.scaned) {
+ fromLocationCode = l.fromLocationCode;
+ }
+ }
+ })
+ }
+ this.fromLocationCode = fromLocationCode
+ console.log(this.fromLocationCode)
+ this.$refs.scanPopup.openScanPopupForJob(fromLocationCode, fromlocationList, this.jobContent);
},
+
+ },
+ confirmFromLocation(fromLocationCodeParams){
+ this.fromlocationCode = fromLocationCodeParams
}
};
From 5b8ed79ef0abbea85262a09bb054f02dfc340d58 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Fri, 1 Nov 2024 13:42:59 +0800
Subject: [PATCH 054/201] =?UTF-8?q?=E5=8E=BB=E6=8E=89console?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/deliver/job/deliverDetailBatch.vue | 11 -----------
src/pages/issue/job/issueDetailBatch.vue | 6 ------
2 files changed, 17 deletions(-)
diff --git a/src/pages/deliver/job/deliverDetailBatch.vue b/src/pages/deliver/job/deliverDetailBatch.vue
index d3b89425..6e0b0731 100644
--- a/src/pages/deliver/job/deliverDetailBatch.vue
+++ b/src/pages/deliver/job/deliverDetailBatch.vue
@@ -203,8 +203,6 @@
that.subList = res.data.subList;
// that.detailSource = res.data;
that.detailSource = getThreeDataSource(that.jobContent)
- console.log(999,that.detailSource)
-
that.toLocationCode = that.subList[0].toLocationCode
that.allowBiggerQty = res.data.allowBiggerQty;
that.resizeCollapse();
@@ -231,7 +229,6 @@
getScanResult(result, managementTypeParams) {
- console.log(222,result)
this.managementType = managementTypeParams
if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){
this.setDataBatch(result)
@@ -253,7 +250,6 @@
this.showMessage("没有库存余额")
return;
}
- console.log(9558,result)
// var inventoryStatus = "OK";
var detail = this.detailSource.find(r => r.itemCode == itemCode);
@@ -285,7 +281,6 @@
if (isExit == undefined) {
// this.showErrorMessage("批次【" + batch + "】库位【" + result
// .fromLocationCode + "】不在列表中")
- console.log(222,this.fromLocationCode)
detail.subList.push({
scaned:true,
fromLocationCode:this.fromLocationCode,
@@ -306,7 +301,6 @@
// toLocationCode : result.balance.toLocationCode,
// }]
})
- console.log(999,detail)
detail.handleQty = 0
detail.qty = 0
detail.subList.forEach(item=>{
@@ -369,7 +363,6 @@
detail.handleQty = calc.add(detail.handleQty,item.handleQty)
})
} else {
- debugger
itemDetail.scaned = true;
this.detailSource[0].subList.sort(compareAsc('scaned')); //按扫描信息排序
itemDetail.handleQty = result.label.qty;
@@ -432,13 +425,11 @@
this.detailSource.forEach(toLocation => {
itemCodes.push(toLocation.itemCode)
})
- console.log( this.detailSource)
//获取管理模式,封装参数
getManagementPrecisions(itemCodes, locationCode, res => {
if (res.success) {
this.managementList = res.list;
- console.log(res)
this.managementType = this.managementList && this.managementList[0] ? this.managementList[0].ManagementPrecision : 'BY_PACKAGING'
this.submitJob();
@@ -602,7 +593,6 @@
var subList = []
var createTime = getCurrDateTime();
var creator = this.$store.state.user.id
- console.log(222,this.detailSource)
this.detailSource.forEach(toLocationCode => {
let obj = {...toLocationCode}
delete obj.subList
@@ -754,7 +744,6 @@
})
}
this.fromLocationCode = fromLocationCode
- console.log(this.fromLocationCode)
this.$refs.scanPopup.openScanPopupForJob(fromLocationCode, fromlocationList, this.jobContent);
},
diff --git a/src/pages/issue/job/issueDetailBatch.vue b/src/pages/issue/job/issueDetailBatch.vue
index 9785b03b..df6ab80f 100644
--- a/src/pages/issue/job/issueDetailBatch.vue
+++ b/src/pages/issue/job/issueDetailBatch.vue
@@ -221,7 +221,6 @@
that.jobStatus = res.data.status
that.subList = res.data.subList;
that.detailSource = getThreeDataSource(that.jobContent)
- console.log(455,that.detailSource)
that.jobContent.detailToLocationCode = res.data.subList[0].toLocationCode
that.fromLocationCode = that.subList[0].fromLocationCode
//任务中已经扫描,模拟扫描赋值
@@ -261,7 +260,6 @@
},
getScanResult(result, managementTypeParams) {
- console.log(222,result)
this.managementType = managementTypeParams
if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){
this.setDataBatch(result)
@@ -283,7 +281,6 @@
this.showMessage("没有库存余额")
return;
}
- console.log(9558,result)
// var inventoryStatus = "OK";
var detail = this.detailSource.find(r => r.itemCode == itemCode);
@@ -335,7 +332,6 @@
// toLocationCode : result.balance.toLocationCode,
// }]
})
- console.log(999,detail)
detail.handleQty = 0
detail.qty = 0
detail.subList.forEach(item=>{
@@ -592,7 +588,6 @@
let str1=""
var totalQty =0;
var taskQty =0;
- console.log(this.detailSource)
this.detailSource.forEach(detail => {
detail.subList.forEach(item => {
if(item.scaned){
@@ -611,7 +606,6 @@
if(str){
str = '任务明细未全部完成,是否提交?\n' + str
}
- console.log(333,str1)
if(str1){
this.$refs.comMessage.showQuestionMessage1(str1, 'red', res => {
From cd452e8403848342e8921fa14b446feda8468e4f Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Fri, 1 Nov 2024 13:43:29 +0800
Subject: [PATCH 055/201] =?UTF-8?q?=E5=8E=BB=E6=8E=89debugger?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/deliver/job/deliverDetailBatch.vue | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/pages/deliver/job/deliverDetailBatch.vue b/src/pages/deliver/job/deliverDetailBatch.vue
index 6e0b0731..0db4d140 100644
--- a/src/pages/deliver/job/deliverDetailBatch.vue
+++ b/src/pages/deliver/job/deliverDetailBatch.vue
@@ -573,8 +573,6 @@
return;
}
}
- debugger
-
deliverJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
From 629f352f9b6b59e23b034ed568328297d674dc66 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Fri, 1 Nov 2024 13:46:29 +0800
Subject: [PATCH 056/201] =?UTF-8?q?YT-631pda=E9=A2=84=E7=94=9F=E4=BA=A7?=
=?UTF-8?q?=E6=94=B6=E8=B4=A7=E4=BB=BB=E5=8A=A1=EF=BC=8C=E7=9B=AE=E6=A0=87?=
=?UTF-8?q?=E5=BA=93=E4=BD=8D=E5=BA=94=E5=B8=A6=E5=87=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/unPlanned/job/receiptJobDetail.vue | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/pages/unPlanned/job/receiptJobDetail.vue b/src/pages/unPlanned/job/receiptJobDetail.vue
index a5b94d1e..0cca45bd 100644
--- a/src/pages/unPlanned/job/receiptJobDetail.vue
+++ b/src/pages/unPlanned/job/receiptJobDetail.vue
@@ -366,8 +366,6 @@
this.detailSource.forEach(item => {
itemCodes.push(item.itemCode)
})
- return
-
getManagementPrecisions(itemCodes, this.toLocationCode, res => {
if (res.success) {
this.managementList = res.list;
From a16b01305e7de2263b12a909929feeeaa24327cf Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Fri, 1 Nov 2024 14:24:14 +0800
Subject: [PATCH 057/201] =?UTF-8?q?YT-631pda=E9=A2=84=E7=94=9F=E4=BA=A7?=
=?UTF-8?q?=E6=94=B6=E8=B4=A7=E4=BB=BB=E5=8A=A1=EF=BC=8C=E7=9B=AE=E6=A0=87?=
=?UTF-8?q?=E5=BA=93=E4=BD=8D=E5=BA=94=E5=B8=A6=E5=87=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/productReceipt/job/productReceiptDetail.vue | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/pages/productReceipt/job/productReceiptDetail.vue b/src/pages/productReceipt/job/productReceiptDetail.vue
index 087661be..2a34cef8 100644
--- a/src/pages/productReceipt/job/productReceiptDetail.vue
+++ b/src/pages/productReceipt/job/productReceiptDetail.vue
@@ -230,6 +230,7 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
+ console.log(344,that.jobContent.allowModifyLocation)
that.subList = res.data.subList;
that.jobStatus = res.data.status;
that.jobToLocationCode = that.subList[0].toLocationCode;
@@ -295,7 +296,7 @@
} else {
itemDetail.scaned = true;
itemDetail.handleQty = Number(result.label.qty);
- itemDetail.toLocationCode = this.toLocationCode;
+ // itemDetail.toLocationCode = this.toLocationCode;
itemDetail.labelQty = Number(result.label.qty);
this.continueScan()
this.$forceUpdate()
From 0ccfa31daa1f9614d76f087a5c96b15366187622 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Fri, 1 Nov 2024 14:51:50 +0800
Subject: [PATCH 058/201] =?UTF-8?q?YT-634=E5=8F=91=E6=96=99=E4=BB=BB?=
=?UTF-8?q?=E5=8A=A1=EF=BC=8C=E6=89=AB=E6=8F=8F=E6=95=B0=E9=87=8F=E5=A4=A7?=
=?UTF-8?q?=E4=BA=8E=E5=BA=93=E5=AD=98=E6=95=B0=E9=87=8F=EF=BC=8C=E6=B2=A1?=
=?UTF-8?q?=E6=9C=89=E6=8F=90=E7=A4=BA=EF=BC=8C=E5=BA=94=E4=B8=8D=E8=83=BD?=
=?UTF-8?q?=E5=A4=A7=E4=BA=8E=E5=BA=93=E5=AD=98=E6=95=B0=E9=87=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/issue/job/issueDetailBatch.vue | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/src/pages/issue/job/issueDetailBatch.vue b/src/pages/issue/job/issueDetailBatch.vue
index df6ab80f..346ed891 100644
--- a/src/pages/issue/job/issueDetailBatch.vue
+++ b/src/pages/issue/job/issueDetailBatch.vue
@@ -473,13 +473,15 @@
const isTrue = params.subList.some(item=>{
return item.recordList.some(cur=>cur.scaned) == true
})
+
if(!isTrue){
uni.hideLoading()
this.showErrorMessage("请扫描您需要提交的发料任务")
return
}
- // return
+
console.log("提交参数", params);
+ return
issueJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
@@ -588,6 +590,7 @@
let str1=""
var totalQty =0;
var taskQty =0;
+ console.log(877,this.detailSource)
this.detailSource.forEach(detail => {
detail.subList.forEach(item => {
if(item.scaned){
@@ -603,15 +606,18 @@
})
})
- if(str){
- str = '任务明细未全部完成,是否提交?\n' + str
- }
if(str1){
- this.$refs.comMessage.showQuestionMessage1(str1, 'red', res => {
-
- })
+ this.$refs.comMessage.showMessage(str1, res => {
+ if (res) {
+ this.afterCloseMessage()
+ }
+ });
return
}
+ if(str){
+ str = '任务明细未全部完成,是否提交?\n' + str
+ }
+
if(totalQty!=taskQty){
str ="扫描数量["+totalQty+"]与任务数量不一致["+taskQty+"],是否提交"
this.$refs.comMessage.showQuestionMessage1(str, 'red', res => {
From bf3f03672e4ed06795cfb746c70159cb40bafe88 Mon Sep 17 00:00:00 2001
From: lijuncheng
Date: Fri, 1 Nov 2024 15:08:47 +0800
Subject: [PATCH 059/201] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=BB=E5=8A=A1?=
=?UTF-8?q?=E6=89=AB=E6=8F=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/count/job/countJob.vue | 5 +++--
src/pages/issue/job/issueJob.vue | 12 +++++++-----
.../productReceipt/job/productReceiptJob.vue | 5 +++--
src/pages/purchaseReceipt/job/receiptJob.vue | 16 ++++++++++++++--
src/pages/putaway/job/putawayJob.vue | 9 ++++++---
5 files changed, 33 insertions(+), 14 deletions(-)
diff --git a/src/pages/count/job/countJob.vue b/src/pages/count/job/countJob.vue
index 0e441c34..7ca78774 100644
--- a/src/pages/count/job/countJob.vue
+++ b/src/pages/count/job/countJob.vue
@@ -20,7 +20,7 @@
-
+
@@ -84,7 +84,8 @@
creationTime: "",
status: "1,2",
fromLocationCode: ""
- }
+ },
+ manageModel:import.meta.env.VITE_MANAGE_MODEL
};
},
onLoad(option) {
diff --git a/src/pages/issue/job/issueJob.vue b/src/pages/issue/job/issueJob.vue
index 7afeb8c0..5f2e24a1 100644
--- a/src/pages/issue/job/issueJob.vue
+++ b/src/pages/issue/job/issueJob.vue
@@ -25,7 +25,7 @@
-
+
@@ -114,7 +114,8 @@
businessTypeCode: "Issue",
businessType: null,
timer: null,
- productionLineCode:""
+ productionLineCode:"",
+ manageModel:import.meta.env.VITE_MANAGE_MODEL
};
},
onLoad(option) {
@@ -244,6 +245,9 @@
uni.hideLoading();
if (type === "refresh") {
uni.stopPullDownRefresh();
+ if(this.manageModel!='BY_BATCH'){
+ this.openScanPopup()
+ }
}
var list = res.data.list;
@@ -260,9 +264,7 @@
if (type === "refresh") {
uni.stopPullDownRefresh();
}
- if(this.jobList.length>0){
- this.openScanPopup()
- }
+
}).catch(error => {
if (type === "refresh") {
uni.stopPullDownRefresh();
diff --git a/src/pages/productReceipt/job/productReceiptJob.vue b/src/pages/productReceipt/job/productReceiptJob.vue
index baf01cda..3a722ba8 100644
--- a/src/pages/productReceipt/job/productReceiptJob.vue
+++ b/src/pages/productReceipt/job/productReceiptJob.vue
@@ -20,7 +20,7 @@
-
+
@@ -84,7 +84,8 @@
detailOptions: [],
detailGiveupOptions: [],
scanMessage: "",
- timer:null
+ timer:null,
+ manageModel:import.meta.env.VITE_MANAGE_MODEL
};
},
// 装配收货:type = 'assemble'
diff --git a/src/pages/purchaseReceipt/job/receiptJob.vue b/src/pages/purchaseReceipt/job/receiptJob.vue
index cb517066..b1a8c9b6 100644
--- a/src/pages/purchaseReceipt/job/receiptJob.vue
+++ b/src/pages/purchaseReceipt/job/receiptJob.vue
@@ -20,7 +20,7 @@
-
+
@@ -78,7 +78,9 @@
status: '1,2', //待处理 、进行中
detailOptions: [],
detailGiveupOptions: [],
- scanMessage: ""
+ scanMessage: "",
+ manageModel:import.meta.env.VITE_MANAGE_MODEL,
+ scanHintTitle:""
};
},
@@ -153,6 +155,12 @@
this.getList("more");
},
refresh() {
+ if(this.manageModel=='BY_BATCH'){
+ this.scanHintTitle="ASN单号"
+ }else {
+ this.scanHintTitle="箱标签/ASN单号"
+ }
+
this.getList('refresh');
},
openFilter() {
@@ -397,6 +405,10 @@
value: this.$store.state.user.id
}]
} else {
+ if(this.manageModel=="BY_BATCH"){
+ this.showMessage("请扫描ASN单号")
+ return;
+ }
filters = [{
column: "packingNumber",
action: "in",
diff --git a/src/pages/putaway/job/putawayJob.vue b/src/pages/putaway/job/putawayJob.vue
index a55c07e8..cd09fa03 100644
--- a/src/pages/putaway/job/putawayJob.vue
+++ b/src/pages/putaway/job/putawayJob.vue
@@ -21,7 +21,7 @@
-
+
@@ -84,7 +84,8 @@
detailOptions: [],
detailGiveupOptions: [],
title: '',
- scanMessage: ""
+ scanMessage: "",
+ manageModel:import.meta.env.VITE_MANAGE_MODEL
};
},
@@ -174,7 +175,9 @@
uni.hideLoading();
if (type === "refresh") {
uni.stopPullDownRefresh();
- this.openScanPopup()
+ if(this.manageModel!='BY_BATCH'){
+ this.openScanPopup()
+ }
}
var list = res.data.list;
From 5a55c1a43e98888d6429327863d7ffd32d028c03 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Fri, 1 Nov 2024 16:02:19 +0800
Subject: [PATCH 060/201] =?UTF-8?q?=E7=89=A9=E6=96=99=E9=9A=94=E7=A6=BB?=
=?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../coms/comInventoryDetailCard.vue | 10 +-
.../coms/comInventoryDetailCardBatch.vue | 203 ------------------
.../inventoryMove/job/inventoryMoveDetail.vue | 11 +-
3 files changed, 11 insertions(+), 213 deletions(-)
delete mode 100644 src/pages/inventoryMove/coms/comInventoryDetailCardBatch.vue
diff --git a/src/pages/inventoryMove/coms/comInventoryDetailCard.vue b/src/pages/inventoryMove/coms/comInventoryDetailCard.vue
index bb58c12c..4ffc3a1b 100644
--- a/src/pages/inventoryMove/coms/comInventoryDetailCard.vue
+++ b/src/pages/inventoryMove/coms/comInventoryDetailCard.vue
@@ -3,7 +3,11 @@
-
+
+
+
@@ -27,6 +31,7 @@
-
-
\ No newline at end of file
diff --git a/src/pages/inventoryMove/job/inventoryMoveDetail.vue b/src/pages/inventoryMove/job/inventoryMoveDetail.vue
index eca6f03f..7c91522e 100644
--- a/src/pages/inventoryMove/job/inventoryMoveDetail.vue
+++ b/src/pages/inventoryMove/job/inventoryMoveDetail.vue
@@ -12,15 +12,10 @@
-
-
+ @openDetail="openDetail">
@@ -81,7 +76,6 @@
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import winScanPack from '@/mycomponents/scan/winScanPack.vue'
import comInventoryDetailCard from '@/pages/inventoryMove/coms/comInventoryDetailCard.vue'
- import comInventoryDetailCardBatch from '@/pages/inventoryMove/coms/comInventoryDetailCardBatch.vue'
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
import detailInfoPopup from '@/pages/inventoryMove/coms/detailInfoPopup.vue'
import jobTop from '@/mycomponents/job/jobTop.vue'
@@ -93,7 +87,6 @@
winScanButton,
winScanPack,
comInventoryDetailCard,
- comInventoryDetailCardBatch,
winScanPackAndLocation,
detailInfoPopup,
jobTop
@@ -292,6 +285,7 @@
calcHandleQty() {
calcHandleQty(this.detailSource)
+ console.log(this.detailSource)
this.continueScan()
this.$forceUpdate();
},
@@ -354,6 +348,7 @@
if (itemDetail.scaned) {
// this.showMessage("批次【" + batch + "】已经扫描")
itemDetail.handleQty =calc.add(itemDetail.handleQty,Number(result.label.qty));
+ this.calcHandleQty();
} else {
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus);
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
From 2671100352f022c3aebfb1b8455646264200c5ab Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Fri, 1 Nov 2024 16:36:14 +0800
Subject: [PATCH 061/201] =?UTF-8?q?=E8=AE=A1=E5=88=92=E5=A4=96=E5=87=BA?=
=?UTF-8?q?=E5=BA=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/common/balance.js | 2 +-
.../detail/comRecommendDetailCardBatch.vue | 103 +++++-------------
.../unPlanned/coms/comReceiptDetailCard.vue | 11 +-
src/pages/unPlanned/job/issueJobDetail.vue | 10 +-
4 files changed, 42 insertions(+), 84 deletions(-)
diff --git a/src/common/balance.js b/src/common/balance.js
index 7e682098..8ddae8f2 100644
--- a/src/common/balance.js
+++ b/src/common/balance.js
@@ -403,7 +403,7 @@ export function byQuantity(label, locationCode, fromInventoryStatuses, callback)
filters.push({
column: "batch",
action: "==",
- value: null
+ value: label.batch?label.batch:null
})
filters.push({
column: "locationCode",
diff --git a/src/mycomponents/detail/comRecommendDetailCardBatch.vue b/src/mycomponents/detail/comRecommendDetailCardBatch.vue
index acfc3d3b..5452b913 100644
--- a/src/mycomponents/detail/comRecommendDetailCardBatch.vue
+++ b/src/mycomponents/detail/comRecommendDetailCardBatch.vue
@@ -1,50 +1,45 @@
-
+
+
+
-
+
-
-
- 推
+
+
+ 推
荐
-
-
-
-
-
- 复制
+
+
-
-
- 实
+
+
+ 实
际
-
-
-
-
-
-
+
+
+
-
+
+
@@ -57,14 +52,9 @@
import recommend from '@/mycomponents/recommend/recommend.vue'
import balanceQtyEdit from '@/mycomponents/qty/balanceQtyEdit.vue'
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue"
- import location from '@/mycomponents/balance/location.vue'
- import toLocation from '@/mycomponents/balance/toLocation.vue'
- import batch from '@/mycomponents/balance/batch.vue'
- import config from '@/static/config.js'
-
import {
- getRemoveOption,
- getEditRemoveOption
+ getDetailOption,
+ getPurchaseReceiptOption
} from '@/common/array.js';
export default {
@@ -73,11 +63,7 @@
itemCompareQty,
recommend,
balanceQtyEdit,
- winScanLocation,
- location,
- toLocation,
- itemCompareQty,
- batch,
+ winScanLocation
},
props: {
dataContent: {
@@ -112,10 +98,6 @@
type: Boolean,
default: true
},
- isEdit: {
- type: Boolean,
- default: true
- },
},
watch: {
dataContent: {
@@ -142,18 +124,18 @@
locatonItem: {},
editItem: {},
detailOptions: [],
- scanOptions: [],
-
- options: [],
- removeOptions: [],
- editAndRemoveOptions: []
+ scanOptions: []
}
},
mounted() {
+ if (this.detailOptions.length == 0) {
+ this.detailOptions = getDetailOption();
+ }
+ if (this.scanOptions.length == 0) {
+ this.scanOptions = getPurchaseReceiptOption(this.settingParam.allowModifyQty, false)
+ }
- this.removeOptions = getRemoveOption();
- this.editAndRemoveOptions = getEditRemoveOption()
// this.showLocation();
},
@@ -204,35 +186,6 @@
this.locatonItem.toLocationCode = code;
this.$emit('updateData')
},
- isDevlement() {
- return config.isDevelopment;
- },
- copy(detail) {
- console.log(detail)
- // HPQ;V1.0;ICE115F11161AG;PP20230427000026;B20230427002;Q100
- var content = "HPQ;V1.0;I" + detail.itemCode + ";P" + detail.packingNumber + ";B" + detail
- .batch + ";Q" + detail.qty
- // #ifdef H5
- this.$copyText(content).then(
- res => {
- uni.showToast({
- title: '复制采购标签成功',
- icon: 'none'
- })
- }
- )
- // #endif
- // #ifndef H5
- uni.setClipboardData({
- data: content,
- success: () => {
- uni.showToast({
- title: '复制采购标签成功'
- })
- }
- })
- // #endif
- },
}
}
diff --git a/src/pages/unPlanned/coms/comReceiptDetailCard.vue b/src/pages/unPlanned/coms/comReceiptDetailCard.vue
index 804ae2be..a60fd6a2 100644
--- a/src/pages/unPlanned/coms/comReceiptDetailCard.vue
+++ b/src/pages/unPlanned/coms/comReceiptDetailCard.vue
@@ -3,8 +3,11 @@
-
-
+
+
+
@@ -30,6 +33,7 @@
-
-
\ No newline at end of file
diff --git a/src/pages/unPlanned/job/issueJobDetail.vue b/src/pages/unPlanned/job/issueJobDetail.vue
index 78408dbb..62290121 100644
--- a/src/pages/unPlanned/job/issueJobDetail.vue
+++ b/src/pages/unPlanned/job/issueJobDetail.vue
@@ -18,11 +18,8 @@
-
-
+ @remove="updateData" @updateData="updateData" @openDetail="openDetail">
@@ -84,7 +81,6 @@
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
import comRecommendDetailCard from "@/mycomponents/detail/comRecommendDetailCard.vue"
- import comRecommendDetailCardBatch from "@/mycomponents/detail/comRecommendDetailCardBatch.vue"
import detailInfoPopup from '@/pages/unPlanned/coms/detailInfoPopup.vue'
import jobTop from '@/mycomponents/job/jobTop.vue'
@@ -94,7 +90,6 @@
winScanButton,
winScanPackAndLocation,
comRecommendDetailCard,
- comRecommendDetailCardBatch,
detailInfoPopup,
jobTop
},
From 7f1f0aa4032ccddc48543c344f7f31328413ce86 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Mon, 4 Nov 2024 11:03:33 +0800
Subject: [PATCH 063/201] =?UTF-8?q?YT-650=E5=8F=91=E6=96=99=E4=BB=BB?=
=?UTF-8?q?=E5=8A=A1=EF=BC=8C=E6=89=AB=E4=B8=8D=E5=9C=A8=E4=BB=BB=E5=8A=A1?=
=?UTF-8?q?=E4=B8=AD=E7=9A=84=EF=BC=8C=E7=9B=AE=E6=A0=87=E5=BA=93=E4=BD=8D?=
=?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=B8=A6=E5=87=BA=EF=BC=8C=E5=BA=94=E5=B8=A6?=
=?UTF-8?q?=E5=87=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/issue/job/issueDetailBatch.vue | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/pages/issue/job/issueDetailBatch.vue b/src/pages/issue/job/issueDetailBatch.vue
index 346ed891..53061a4a 100644
--- a/src/pages/issue/job/issueDetailBatch.vue
+++ b/src/pages/issue/job/issueDetailBatch.vue
@@ -222,6 +222,7 @@
that.subList = res.data.subList;
that.detailSource = getThreeDataSource(that.jobContent)
that.jobContent.detailToLocationCode = res.data.subList[0].toLocationCode
+ that.toLocationCode= res.data.subList[0].toLocationCode
that.fromLocationCode = that.subList[0].fromLocationCode
//任务中已经扫描,模拟扫描赋值
if (this.scanMessage) {
@@ -263,9 +264,7 @@
this.managementType = managementTypeParams
if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){
this.setDataBatch(result)
- }else{
- this.setData(result)
- }
+ }
},
setDataBatch(result) {
try {
@@ -312,10 +311,11 @@
if (isExit == undefined) {
// this.showErrorMessage("批次【" + batch + "】库位【" + result
// .fromLocationCode + "】不在列表中")
-
+ console.log(this.toLocationCode)
detail.subList.push({
scaned:true,
fromLocationCode:this.fromLocationCode,
+ toLocationCode:this.toLocationCode,
batch:result.label.batch,
handleQty:result.label.qty,
qty:result.balance.qty,
@@ -400,7 +400,9 @@
itemDetail.balanceQty=result.balance.qty
itemDetail.uom=result.balance.uom
itemDetail.packQty=result.package.packQty
- itemDetail.packUnit=result.package.packUnit
+ itemDetail.packUnit=result.package.packUnit
+ itemDetail.fromlocationCode=this.fromLocationCode
+ itemDetail.toLocationCode=this.toLocationCode
// itemDetail.toInventoryStatus = "OK"
// itemDetail.packList.forEach(pac => {
// pac.scaned = true
From 5433a593d2004c4fa5b01b5546e6c1a9f675b1ba Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Mon, 4 Nov 2024 11:05:45 +0800
Subject: [PATCH 064/201] =?UTF-8?q?=E5=8E=BB=E6=8E=89console?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/issue/job/issueDetailBatch.vue | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/pages/issue/job/issueDetailBatch.vue b/src/pages/issue/job/issueDetailBatch.vue
index 53061a4a..97568dad 100644
--- a/src/pages/issue/job/issueDetailBatch.vue
+++ b/src/pages/issue/job/issueDetailBatch.vue
@@ -229,7 +229,6 @@
this.openScanPopupSimulate(this.scanMessage);
}
-
setTimeout(r => {
that.resizeCollapse();
}, 100)
@@ -311,7 +310,6 @@
if (isExit == undefined) {
// this.showErrorMessage("批次【" + batch + "】库位【" + result
// .fromLocationCode + "】不在列表中")
- console.log(this.toLocationCode)
detail.subList.push({
scaned:true,
fromLocationCode:this.fromLocationCode,
From 97f11f2a374caddc972626ec193ff05b14670960 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Mon, 4 Nov 2024 13:29:41 +0800
Subject: [PATCH 065/201] =?UTF-8?q?YT-658=E9=9A=94=E7=A6=BB=E8=BD=AC?=
=?UTF-8?q?=E5=90=88=E6=A0=BC=EF=BC=8Cpda=E6=89=AB=E6=8F=8F=E6=8F=90?=
=?UTF-8?q?=E7=A4=BA=E6=B2=A1=E6=9C=89=E5=BA=93=E5=AD=98=EF=BC=8C=E5=AE=9E?=
=?UTF-8?q?=E9=99=85=E6=9C=89=E5=BA=93=E5=AD=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/common/balance.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/common/balance.js b/src/common/balance.js
index 8ddae8f2..d6f9b4a8 100644
--- a/src/common/balance.js
+++ b/src/common/balance.js
@@ -397,13 +397,13 @@ export function byQuantity(label, locationCode, fromInventoryStatuses, callback)
})
filters.push({
column: "packingNumber",
- action: "==",
- value: null
+ action: "isStr",
+ value: ''
})
filters.push({
column: "batch",
- action: "==",
- value: label.batch?label.batch:null
+ action: "isStr",
+ value:''
})
filters.push({
column: "locationCode",
From aa39a85d77e08bac470a7967762bdbae8e7f90a0 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Mon, 4 Nov 2024 13:31:07 +0800
Subject: [PATCH 066/201] =?UTF-8?q?YT-658=E9=9A=94=E7=A6=BB=E8=BD=AC?=
=?UTF-8?q?=E5=90=88=E6=A0=BC=EF=BC=8Cpda=E6=89=AB=E6=8F=8F=E6=8F=90?=
=?UTF-8?q?=E7=A4=BA=E6=B2=A1=E6=9C=89=E5=BA=93=E5=AD=98=EF=BC=8C=E5=AE=9E?=
=?UTF-8?q?=E9=99=85=E6=9C=89=E5=BA=93=E5=AD=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/inventoryMove/job/inventoryMoveDetail.vue | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/pages/inventoryMove/job/inventoryMoveDetail.vue b/src/pages/inventoryMove/job/inventoryMoveDetail.vue
index 7c91522e..f64936b9 100644
--- a/src/pages/inventoryMove/job/inventoryMoveDetail.vue
+++ b/src/pages/inventoryMove/job/inventoryMoveDetail.vue
@@ -314,7 +314,7 @@
getScanResult(result,managementPrecision) {
- if(managementPrecision == 'BY_BATCH'){
+ if(managementPrecision == 'BY_BATCH' || managementPrecision == 'BY_QUANTITY' ){
this.setDataBatch(result,managementPrecision)
}else{
this.setData(result,managementPrecision)
@@ -577,6 +577,7 @@
});
var params = this.setParams()
console.log("提交" + JSON.stringify(params))
+ return;
inventoryMoveSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
From 8a6af2052af8d30ce3297fc7d6622fe295fe7fbe Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Mon, 4 Nov 2024 13:36:29 +0800
Subject: [PATCH 067/201] =?UTF-8?q?YT-656=E5=BA=93=E5=AD=98=E7=A7=BB?=
=?UTF-8?q?=E5=8A=A8=EF=BC=8Cpda=E6=8F=90=E7=A4=BA=E5=8E=BB=E6=8E=89?=
=?UTF-8?q?=E5=8C=85=E8=A3=85=E5=8F=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/inventoryMove/job/inventoryMoveDetail.vue | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/pages/inventoryMove/job/inventoryMoveDetail.vue b/src/pages/inventoryMove/job/inventoryMoveDetail.vue
index f64936b9..3787576e 100644
--- a/src/pages/inventoryMove/job/inventoryMoveDetail.vue
+++ b/src/pages/inventoryMove/job/inventoryMoveDetail.vue
@@ -491,9 +491,9 @@
//扫描数量和任务数量相等,直接提交
if (this.scanCount == this.subList.length) {
if(this.managementType == 'BY_BATCH'){
- this.checkCount();
- }else{
this.checkCountBatch();
+ }else{
+ this.checkCount();
}
} else if (this.scanCount < this.subList.length) {
//扫描数量小于任务数量,判断是否允许部分提交
@@ -577,7 +577,6 @@
});
var params = this.setParams()
console.log("提交" + JSON.stringify(params))
- return;
inventoryMoveSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
From 3ab2758be54f683488315306c74006c4e5919843 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Mon, 4 Nov 2024 15:16:39 +0800
Subject: [PATCH 068/201] =?UTF-8?q?=E5=90=88=E6=A0=BC=E8=BD=AC=E9=9A=94?=
=?UTF-8?q?=E7=A6=BB=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages.json | 2 +-
.../inventoryMove/coms/okToHoldRecordPack.vue | 146 ++++++++
.../inventoryMove/coms/okToHoldRecordScan.vue | 327 ------------------
.../record/okToQuarantineRecord.vue | 35 ++
4 files changed, 182 insertions(+), 328 deletions(-)
create mode 100644 src/pages/inventoryMove/coms/okToHoldRecordPack.vue
delete mode 100644 src/pages/inventoryMove/coms/okToHoldRecordScan.vue
create mode 100644 src/pages/inventoryMove/record/okToQuarantineRecord.vue
diff --git a/src/pages.json b/src/pages.json
index 32a54c13..45d58c18 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -2214,7 +2214,7 @@
}
},
{
- "path": "pages/inventoryMove/record/okToHoldRecord",
+ "path": "pages/inventoryMove/record/okToQuarantineRecord",
"style": {
"navigationBarTitleText": "合格转隔离记录",
"enablePullDownRefresh": false
diff --git a/src/pages/inventoryMove/coms/okToHoldRecordPack.vue b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
new file mode 100644
index 00000000..07416065
--- /dev/null
+++ b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
@@ -0,0 +1,146 @@
+
+
+
+
+
+ 需求信息
+
+
+
+
+ 来源库位:
+ {{itemCode}}
+
+
+
+
+
+ 零件:
+ {{itemCode}}
+
+
+
+
+
+ 批次:
+ {{itemCode}}
+
+
+
+ 数量:
+
+
+ EA
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/inventoryMove/coms/okToHoldRecordScan.vue b/src/pages/inventoryMove/coms/okToHoldRecordScan.vue
deleted file mode 100644
index 73acab6f..00000000
--- a/src/pages/inventoryMove/coms/okToHoldRecordScan.vue
+++ /dev/null
@@ -1,327 +0,0 @@
-
-
-
-
-
-
- 需求
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/pages/inventoryMove/record/okToQuarantineRecord.vue b/src/pages/inventoryMove/record/okToQuarantineRecord.vue
new file mode 100644
index 00000000..3ff2250d
--- /dev/null
+++ b/src/pages/inventoryMove/record/okToQuarantineRecord.vue
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
From 346b7f9e7ce2bbaa8a0827dd2003818fe457edb5 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Mon, 4 Nov 2024 15:39:10 +0800
Subject: [PATCH 069/201] =?UTF-8?q?=E8=AE=A1=E5=88=92=E5=A4=96=E5=85=A5?=
=?UTF-8?q?=E5=BA=93=E7=82=B9=E4=B8=8D=E5=BC=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages.json | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/pages.json b/src/pages.json
index 45d58c18..8c6a03a4 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -2577,6 +2577,13 @@
"enablePullDownRefresh": false
}
},
+ {
+ "path": "pages/unPlanned/record/receiptRecordByBatch",
+ "style": {
+ "navigationBarTitleText": "计划外入库记录",
+ "enablePullDownRefresh": false
+ }
+ },
{
"path": "pages/unPlanned/record/issueRecord",
"style": {
From e75a91fc99c94c82f84066dd4134c54d4ead6b10 Mon Sep 17 00:00:00 2001
From: liuchen864 <23082234@qq.com>
Date: Wed, 6 Nov 2024 07:08:57 +0800
Subject: [PATCH 070/201] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=8E=AF=E5=A2=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 6 ++---
.env.hella13 | 14 ------------
.env.hella14 | 14 ------------
.env.hella15 | 14 ------------
.env.hella16 | 14 ------------
.env.hella8 | 15 -------------
.env.hella9 | 14 ------------
.env.production | 11 +++++-----
.env.test | 12 +++++-----
.env.test-dev | 15 +++++++++++++
Dockerfile_prod | 7 ------
nginx.conf | 21 ++++++++++++++++++
nginx_prod.conf | 57 ------------------------------------------------
package.json | 19 ++++++----------
14 files changed, 58 insertions(+), 175 deletions(-)
delete mode 100644 .env.hella13
delete mode 100644 .env.hella14
delete mode 100644 .env.hella15
delete mode 100644 .env.hella16
delete mode 100644 .env.hella8
delete mode 100644 .env.hella9
create mode 100644 .env.test-dev
delete mode 100644 Dockerfile_prod
delete mode 100644 nginx_prod.conf
diff --git a/.env.development b/.env.development
index faacbb33..4e262404 100644
--- a/.env.development
+++ b/.env.development
@@ -1,6 +1,6 @@
-# VITE_BASE_URL=http://localhost:12080/admin-api
-VITE_BASE_URL=http://dev.ccwin-in.com:28051/api/admin-api
-VITE_BASE_URL_IMAGE=http://172.22.32.9:81/admin-api
+VITE_BASE_URL=http://localhost:12080/admin-api
+# VITE_BASE_URL=http://dev.ccwin-in.com:28051/api/admin-api
+# VITE_BASE_URL_IMAGE=http://172.22.32.9:81/admin-api
# 租户配置
VITE_TENANT='[{"text":"英泰","value":1},{"text":"长春2379","value":3}]'
diff --git a/.env.hella13 b/.env.hella13
deleted file mode 100644
index 97e83b15..00000000
--- a/.env.hella13
+++ /dev/null
@@ -1,14 +0,0 @@
-VITE_BASE_URL=http://172.21.32.13:81/api/admin-api
-VITE_BASE_URL_IMAGE=http://172.21.32.13:81/admin-api
-
-# 租户配置
-VITE_TENANT='[{"text":"长春1379","value":1}]'
-
-# 是否是测试环境
-VITE_isDevelopment=false
-
-# 积木报表请求路径
-VITE_JMREPORT_BASE_URL='http://172.21.32.13:90'
-
-# 项目管理模式 批次货/包装
-VITE_MANAGE_MODEL="BY_BATCH"
\ No newline at end of file
diff --git a/.env.hella14 b/.env.hella14
deleted file mode 100644
index 441178e5..00000000
--- a/.env.hella14
+++ /dev/null
@@ -1,14 +0,0 @@
-VITE_BASE_URL=http://172.21.32.14:81/api/admin-api
-VITE_BASE_URL_IMAGE=http://172.21.32.14:81/admin-api
-
-# 租户配置
-VITE_TENANT='[{"text":"长春1379","value":1}]'
-
-# 是否是测试环境
-VITE_isDevelopment=true
-
-# 积木报表请求路径
-VITE_JMREPORT_BASE_URL='http://172.21.32.14:90'
-
-# 项目管理模式 批次货/包装
-VITE_MANAGE_MODEL="BY_BATCH"
\ No newline at end of file
diff --git a/.env.hella15 b/.env.hella15
deleted file mode 100644
index f7c9ff07..00000000
--- a/.env.hella15
+++ /dev/null
@@ -1,14 +0,0 @@
-VITE_BASE_URL=https://scp.faway-hella.com:81/api/admin-api
-VITE_BASE_URL_IMAGE=https://scp.faway-hella.com:81/admin-api
-
-# 租户配置
-VITE_TENANT='[{"text":"长春1379","value":1}]'
-
-# 是否是测试环境
-VITE_isDevelopment=true
-
-# 积木报表请求路径
-VITE_JMREPORT_BASE_URL='https://scp.faway-hella.com'
-
-# 项目管理模式 批次货/包装
-VITE_MANAGE_MODEL="BY_BATCH"
\ No newline at end of file
diff --git a/.env.hella16 b/.env.hella16
deleted file mode 100644
index c84efd8f..00000000
--- a/.env.hella16
+++ /dev/null
@@ -1,14 +0,0 @@
-VITE_BASE_URL=https://scptest.faway-hella.com:81/api/admin-api
-VITE_BASE_URL_IMAGE=https://scptest.faway-hella.com:81/admin-api
-
-# 租户配置
-VITE_TENANT='[{"text":"长春1379","value":1},{"text":"成都1397","value":2},{"text":"长春2379","value":3}]'
-
-# 是否是测试环境
-VITE_isDevelopment=true
-
-# 积木报表请求路径
-VITE_JMREPORT_BASE_URL='https://scptest.faway-hella.com'
-
-# 项目管理模式 批次货/包装
-VITE_MANAGE_MODEL="BY_BATCH"
\ No newline at end of file
diff --git a/.env.hella8 b/.env.hella8
deleted file mode 100644
index 8851bd7c..00000000
--- a/.env.hella8
+++ /dev/null
@@ -1,15 +0,0 @@
-VITE_BASE_URL=http://172.22.32.8:81/api/admin-api
-VITE_BASE_URL_IMAGE=http://172.22.32.8:81/admin-api
-
-# 租户配置
-VITE_TENANT='[{"text":"成都1397","value":2},{"text":"长春2379","value":3}]'
-
-# 是否是测试环境
-VITE_isDevelopment=false
-
-
-# 积木报表请求路径
-VITE_JMREPORT_BASE_URL='http://172.22.32.8:90'
-
-# 项目管理模式 批次货/包装
-VITE_MANAGE_MODEL="BY_BATCH"
\ No newline at end of file
diff --git a/.env.hella9 b/.env.hella9
deleted file mode 100644
index 36f3d239..00000000
--- a/.env.hella9
+++ /dev/null
@@ -1,14 +0,0 @@
-VITE_BASE_URL=http://172.22.32.9:81/api/admin-api
-VITE_BASE_URL_IMAGE=http://172.22.32.9:81/admin-api
-
-# 租户配置
-VITE_TENANT='[{"text":"成都1397","value":2},{"text":"长春2379","value":3}]'
-
-# 是否是测试环境
-VITE_isDevelopment=true
-
-# 积木报表请求路径
-VITE_JMREPORT_BASE_URL='http://172.22.32.9:90'
-
-# 项目管理模式 批次货/包装
-VITE_MANAGE_MODEL="BY_BATCH"
\ No newline at end of file
diff --git a/.env.production b/.env.production
index 49336718..a3d9c20b 100644
--- a/.env.production
+++ b/.env.production
@@ -1,15 +1,14 @@
-VITE_BASE_URL=http://172.22.32.8:81/api/admin-api
-VITE_BASE_URL_IMAGE=http://172.22.32.8:81/admin-api
+VITE_BASE_URL=http://192.168.120.34:81/api/admin-api
+VITE_BASE_URL_IMAGE=http://192.168.120.34:81/admin-api
# 租户配置
-VITE_TENANT='[{"text":"成都1397","value":2},{"text":"长春2379","value":3}]'
+VITE_TENANT='[{"text":"英泰","value":1}]'
# 是否是测试环境
-VITE_isDevelopment=false
-
+VITE_isDevelopment=true
# 积木报表请求路径
-VITE_JMREPORT_BASE_URL='http://172.22.32.8:90'
+VITE_JMREPORT_BASE_URL='http://192.168.120.34:81/api'
# 项目管理模式 批次货/包装
VITE_MANAGE_MODEL="BY_BATCH"
\ No newline at end of file
diff --git a/.env.test b/.env.test
index 16293197..b3c1ab1b 100644
--- a/.env.test
+++ b/.env.test
@@ -1,12 +1,14 @@
-
-VITE_BASE_URL=http://dev.ccwin-in.com:25300/api/admin-api
-VITE_BASE_URL_IMAGE=http://dev.ccwin-in.com:25300/admin-api
+VITE_BASE_URL=http://192.168.120.35:81/api/admin-api
+VITE_BASE_URL_IMAGE=http://192.168.120.35:81/admin-api
# 租户配置
-VITE_TENANT='[{"text":"长春1379","value":1},{"text":"成都1397","value":2},{"text":"长春2379","value":3}]'
+VITE_TENANT='[{"text":"英泰","value":1}]'
# 是否是测试环境
VITE_isDevelopment=true
# 积木报表请求路径
-VITE_JMREPORT_BASE_URL='http://dev.ccwin-in.com:25310'
+VITE_JMREPORT_BASE_URL='http://192.168.120.35:81/api'
+
+# 项目管理模式 批次货/包装
+VITE_MANAGE_MODEL="BY_BATCH"
\ No newline at end of file
diff --git a/.env.test-dev b/.env.test-dev
new file mode 100644
index 00000000..024ae336
--- /dev/null
+++ b/.env.test-dev
@@ -0,0 +1,15 @@
+VITE_BASE_URL=http://dev.ccwin-in.com:28051/api/admin-api
+VITE_BASE_URL_IMAGE=http://dev.ccwin-in.com:28051/admin-api
+
+# 租户配置
+VITE_TENANT='[{"text":"英泰","value":1}]'
+
+# 是否是测试环境
+VITE_isDevelopment=false
+
+
+# 积木报表请求路径
+VITE_JMREPORT_BASE_URL='http://dev.ccwin-in.com:28051'
+
+# 项目管理模式 批次货/包装
+VITE_MANAGE_MODEL="BY_BATCH"
\ No newline at end of file
diff --git a/Dockerfile_prod b/Dockerfile_prod
deleted file mode 100644
index 116cbdac..00000000
--- a/Dockerfile_prod
+++ /dev/null
@@ -1,7 +0,0 @@
-# 设置基础镜像
-FROM win-nginx
-
-WORKDIR /opt/sfms3.0-uniapp
-COPY nginx_prod.conf /usr/local/nginx/conf/nginx.conf
-# 将dist/build/h5/文件中的内容复制到 /opt/sfms3.0-uniapp 这个目录下面
-COPY dist/build/h5/ /opt/sfms3.0-uniapp
diff --git a/nginx.conf b/nginx.conf
index 2b8d1e32..02896bfc 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -41,6 +41,27 @@ http {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
}
+ location ^~ /jmreport/ {
+ proxy_pass http://localhost:100/jmreport/;
+ proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header;
+ proxy_set_header X-Forwared-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $http_x_forwarded_for;
+ }
+ location ^~ /magic/ {
+ proxy_pass http://localhost:100/magic/;
+ proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header;
+ proxy_set_header X-Forwared-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $http_x_forwarded_for;
+ }
+ location /profile/ {
+ proxy_cache my_zone;
+ proxy_cache_valid 200 304 12h;
+ proxy_cache_key $host$uri$is_args$args;
+ alias /opt/profile/;
+ index index.html index.htm;
+ }
location / {
proxy_cache my_zone;
proxy_cache_valid 200 304 12h;
diff --git a/nginx_prod.conf b/nginx_prod.conf
deleted file mode 100644
index 2f9b3691..00000000
--- a/nginx_prod.conf
+++ /dev/null
@@ -1,57 +0,0 @@
-user root;
-worker_processes 2;
-
-events {
- worker_connections 1024;
-}
-
-http {
- include mime.types;
- charset utf-8,gbk;
- default_type application/octet-stream;
- log_format main '$remote_addr - $remote_user [$time_local] "$request" '
- '$status $body_bytes_sent "$http_referer" '
- '"$http_user_agent" "$http_x_forwarded_for" "$request_time $upstream_response_time"';
-
- proxy_cache_path /opt/nginx_cache/ levels=1:2 keys_zone=my_zone:10m inactive=300s max_size=5g;
- access_log logs/access.log main;
- sendfile on;
- #tcp_nopush on;
- keepalive_timeout 600s;
- client_max_body_size 200m;
- gzip on;
- gzip_min_length 10k;
- gzip_comp_level 9;
- gzip_buffers 4 16k;
- gzip_types text/plain application/javascript text/css application/xml text/javascript image/jpeg image/gif image/png;
- gzip_vary on;
- gzip_disable "MSIE [1-6]\.";
- upstream sfms3.0 {
- server localhost:90 weight=10 max_fails=3 fail_timeout=10s;
- }
- server {
- listen 81;
- server_name_in_redirect off;
- server_name _;
- location /api/ {
- proxy_pass http://sfms3.0/;
- proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header;
- proxy_set_header X-Forwared-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $http_host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $http_x_forwarded_for;
- }
- location /profile/ {
- alias /opt/profile/;
- index index.html index.htm;
- }
- location / {
- proxy_cache my_zone;
- proxy_cache_valid 200 304 12h;
- proxy_cache_key $host$uri$is_args$args;
- try_files $uri $uri/ /index.html;
- root /opt/sfms3.0-uniapp;
- index index.html index.htm;
- }
- }
-}
\ No newline at end of file
diff --git a/package.json b/package.json
index 0d932a24..c4d16606 100644
--- a/package.json
+++ b/package.json
@@ -8,19 +8,14 @@
"dev": "uni",
"dev:h5:ssr": "uni --ssr",
"dev:mp-weixin": "uni -p mp-weixin",
- "hella8:app": "uni build -p app --mode hella8",
- "hella8:app-android": "uni build -p app-android --mode hella8",
- "hella8:app-ios": "uni build -p app-ios --mode hella8",
- "hella8:h5:ssr": "uni build --ssr --mode hella8",
- "hella8:mp-weixin": "uni build -p mp-weixin --mode hella8",
- "prod": "uni build --mode production",
+ "test:app": "uni build -p app --mode test",
+ "test:app-android": "uni build -p app-android --mode test",
+ "test:app-ios": "uni build -p app-ios --mode test",
+ "test:h5:ssr": "uni build --ssr --mode test",
+ "test:mp-weixin": "uni build -p mp-weixin --mode test",
+ "prod": "uni build --mode production",
"test": "uni build --mode test",
- "hella8": "uni build --mode hella8",
- "hella9": "uni build --mode hella9",
- "hella13": "uni build --mode hella13",
- "hella14": "uni build --mode hella14",
- "hella15": "uni build --mode hella15",
- "hella16": "uni build --mode hella16"
+ "test-dev": "uni build --mode test-dev"
},
"dependencies": {
"@dcloudio/uni-app": "3.0.0-3090920231225001",
From 180b83685cb12b3d2255f81c966973a0ec1620c0 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 6 Nov 2024 09:31:22 +0800
Subject: [PATCH 071/201] =?UTF-8?q?YT-686=E6=89=AB=E6=8F=8F=E7=AE=B1?=
=?UTF-8?q?=E7=A0=81=E6=95=B0=E9=87=8F=E4=B8=8E=E4=BB=BB=E5=8A=A1=E6=95=B0?=
=?UTF-8?q?=E9=87=8F=E4=B8=8D=E4=B8=80=E8=87=B4=E6=97=B6=EF=BC=8C=E6=8F=90?=
=?UTF-8?q?=E4=BA=A4=E6=97=B6=E6=8F=90=E7=A4=BA=E5=8E=BB=E6=8E=89=E5=8C=85?=
=?UTF-8?q?=E8=A3=85=E5=8F=B7YT-687=E9=9A=94=E7=A6=BB=E8=BD=AC=E6=8A=A5?=
=?UTF-8?q?=E5=BA=9F=EF=BC=8C=E8=B6=85=E5=87=BA=E5=BA=93=E5=AD=98=E6=95=B0?=
=?UTF-8?q?=E9=87=8F=E5=8F=AF=E4=BB=A5=E6=8F=90=E4=BA=A4=EF=BC=8C=E5=BA=94?=
=?UTF-8?q?=E6=A3=80=E9=AA=8C=E5=BA=93=E5=AD=98=E6=95=B0=E9=87=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../inventoryMove/job/inventoryMoveDetail.vue | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/src/pages/inventoryMove/job/inventoryMoveDetail.vue b/src/pages/inventoryMove/job/inventoryMoveDetail.vue
index 3787576e..185e2220 100644
--- a/src/pages/inventoryMove/job/inventoryMoveDetail.vue
+++ b/src/pages/inventoryMove/job/inventoryMoveDetail.vue
@@ -314,6 +314,7 @@
getScanResult(result,managementPrecision) {
+ this.managementType = managementPrecision
if(managementPrecision == 'BY_BATCH' || managementPrecision == 'BY_QUANTITY' ){
this.setDataBatch(result,managementPrecision)
}else{
@@ -322,6 +323,7 @@
},
setDataBatch(result,managementPrecision){
+ console.log(877,result.balance.qty)
try {
var packingNumber = result.label.packingNumber;
var batch = result.label.batch;
@@ -482,6 +484,7 @@
if (res.success) {
this.managementList = res.list;
this.managementType = this.managementList&& this.managementList[0]&& this.managementList[0].ManagementPrecision ? this.managementList[0].ManagementPrecision : 'BY_PACKAGING'
+ console.log(11,this.managementType)
} else {
uni.hideLoading();
this.showErrorMessage(res.message);
@@ -490,7 +493,7 @@
//允许部分提交
//扫描数量和任务数量相等,直接提交
if (this.scanCount == this.subList.length) {
- if(this.managementType == 'BY_BATCH'){
+ if(this.managementType == 'BY_BATCH' || this.managementType == 'BY_QUANTITY'){
this.checkCountBatch();
}else{
this.checkCount();
@@ -545,6 +548,7 @@
checkCountBatch(){
// 提交的数量和任务数量不一致提示
let str = ''
+ let str1 = ''
this.detailSource.forEach((item) => {
item.subList.forEach(cur => {
if (cur.qty != cur.handleQty) {
@@ -556,9 +560,19 @@
}
str +=
`提交数量【${tempHandleQty}】与任务物料数量【${cur.qty}】不一致\n`
+ if( cur.handleQty > cur.balance.balanceQty){
+ console.log(2333,cur.handleQty)
+ console.log(2333,cur.balance.balanceQty)
+ str1 +=
+ `提交数量【${ cur.handleQty}】不可以大于库存数量【${cur.balance.balanceQty}】`
+ }
}
})
})
+ if(str1){
+ this.$refs.comMessage.showConfirmWarningModal(str1)
+ return
+ }
if (str) {
str = '任务明细未全部完成,是否提交?\n' + str
this.$refs.comMessage.showQuestionMessage1(str, 'red', res => {
@@ -577,6 +591,7 @@
});
var params = this.setParams()
console.log("提交" + JSON.stringify(params))
+ return
inventoryMoveSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
From a930ccc876e523bdd699eb928486ae557dfbba0d Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 6 Nov 2024 09:34:52 +0800
Subject: [PATCH 072/201] =?UTF-8?q?=E5=8E=BB=E6=8E=89return?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/inventoryMove/job/inventoryMoveDetail.vue | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/pages/inventoryMove/job/inventoryMoveDetail.vue b/src/pages/inventoryMove/job/inventoryMoveDetail.vue
index 185e2220..f90e341a 100644
--- a/src/pages/inventoryMove/job/inventoryMoveDetail.vue
+++ b/src/pages/inventoryMove/job/inventoryMoveDetail.vue
@@ -591,7 +591,6 @@
});
var params = this.setParams()
console.log("提交" + JSON.stringify(params))
- return
inventoryMoveSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
From 204d493184956af8531b53da41c3557c5675bbe8 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 6 Nov 2024 09:37:38 +0800
Subject: [PATCH 073/201] =?UTF-8?q?=E5=90=88=E6=A0=BC=E8=BD=AC=E9=9A=94?=
=?UTF-8?q?=E7=A6=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages.json | 7 +
.../inventoryMove/coms/comMoveRecord.vue | 122 +++++++++++++++++-
.../inventoryMove/coms/okToHoldRecordPack.vue | 94 ++++++++++----
.../inventoryMove/record/okToHoldRecord.vue | 2 +-
.../record/okToQuarantineRecord.vue | 15 +--
5 files changed, 201 insertions(+), 39 deletions(-)
diff --git a/src/pages.json b/src/pages.json
index 8c6a03a4..65ae2f48 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -2213,6 +2213,13 @@
"enablePullDownRefresh": false
}
},
+ {
+ "path": "pages/inventoryMove/record/okToHoldRecord",
+ "style": {
+ "navigationBarTitleText": "物料隔离记录",
+ "enablePullDownRefresh": false
+ }
+ },
{
"path": "pages/inventoryMove/record/okToQuarantineRecord",
"style": {
diff --git a/src/pages/inventoryMove/coms/comMoveRecord.vue b/src/pages/inventoryMove/coms/comMoveRecord.vue
index 47038b41..4f130f8a 100644
--- a/src/pages/inventoryMove/coms/comMoveRecord.vue
+++ b/src/pages/inventoryMove/coms/comMoveRecord.vue
@@ -34,6 +34,8 @@
+
+
{
+ if (res.itemCode == balance.itemCode) {
+ return res
+ }
+ })
+ if (item == undefined) {
+ var itemp = createItemInfo(balance, pack);
+ let newDetail = createDetailInfo(balance, pack);
+
+ if (newDetail.packingNumber == '') {
+ newDetail.packingNumber = pack.number;
+ }
+ if (this.businessTypeCode == "Move") {
+ newDetail.toInventoryStatus = balance.inventoryStatus;
+ } else {
+ newDetail.toInventoryStatus = this.toInventoryStatus;
+ }
+ newDetail.toLocationCode = this.toLocationCode;
+ newDetail.fromLocationCode = result.fromLocationCode
+ itemp.subList.push(newDetail);
+ this.detailSource.push(itemp)
+ } else {
+ if( balance.inventoryStatus != this.toInventoryStatus){
+ this.showErrorMessage("库存状态的库存")
+ return
+ }
+ var detail = item.subList.find(r => {
+ if (r.batch == pack.batch &&
+ r.fromLocationCode == balance.locationCode &&
+ r.toInventoryStatus == balance.inventoryStatus &&
+ r.scaned == true) {
+ return r;
+ }
+ })
+ console.log(2333,detail)
+
+ if (detail == undefined) {
+ let newDetail = createDetailInfo(balance, pack);
+ // newDetail.inventoryStatus = balance.inventoryStatus;
+ if (this.businessTypeCode == "Move") {
+ newDetail.toInventoryStatus = balance.inventoryStatus;
+ } else {
+ newDetail.toInventoryStatus = this.toInventoryStatus;
+ }
+
+ if (newDetail.packingNumber == '') {
+ newDetail.packingNumber = pack.number;
+ }
+ newDetail.toLocationCode = this.toLocationCode;
+ newDetail.fromLocationCode = result.fromLocationCode
+ item.subList.push(newDetail);
+ } else {
+ detail.handleQty =calc.add(detail.handleQty, result.label.qty)
+ }
+ }
+ calcHandleQty(this.detailSource);
+ },
+
showErrorMessage(message) {
if (this.$refs.scanPopup) {
this.$refs.scanPopup.packLoseFocus()
diff --git a/src/pages/inventoryMove/coms/okToHoldRecordPack.vue b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
index 07416065..03b52c4c 100644
--- a/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
+++ b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
@@ -1,6 +1,6 @@
-
+
需求信息
@@ -9,7 +9,7 @@
来源库位:
- {{itemCode}}
+ {{fromLocationCode}}
@@ -23,13 +23,15 @@
批次:
- {{itemCode}}
+
+
+
数量:
-
+
EA
@@ -39,8 +41,9 @@
-
+
+
@@ -54,36 +57,76 @@
components: {
winScanLocation
},
+ emits: ["showFromLocationPopup",'itemCodeClick','confirm','fromLocationBlur'],
data() {
return {
show:true,
- businessTypeCode: "OkToHold",
+ handleQty:0,
+ fromLocationCode:'',
+ itemCode:'',
+ batch:'',
}
},
props: {
+ fromLocationCodeProps:{
+ type: String,
+ default: ''
+ },
+ // 是否显示第一层弹窗
+ showOnePop: {
+ type: Boolean,
+ default: false
+ },
+ itemCodeProps:{
+ type: String,
+ default: ''
+ },
+ batchProps:{
+ type: String,
+ default: ''
+ },
+ },
+ mounted() {
},
methods: {
// 打开扫描来源库位组件
- openFromLocation(){
- this.$refs.scanLocationCode.openScanPopup()
+ fromLocationClick(){
+ // this.$refs.scanLocationCode.openScanPopup()
+ this.$emit("showFromLocationPopup");
+ },
+ // 显示箱码
+ itemCodeClick(){
+ // this.$refs.scanLocationCode.openScanPopup()
+ this.$emit("itemCodeClick");
},
- getLocation(location, code){
- console.log(location,code)
+ confirm(){
+ // this.$refs.scanLocationCode.openScanPopup()
+ let obj = {
+ fromLocationCode:this.fromLocationCode,
+ itemCode:this.itemCode,
+ batch:this.batch,
+ handleQty:this.handleQty,
+ }
+ this.$emit("confirm",obj);
},
- getBusinessTypeFunc() {
- getBusinessType(this.businessTypeCode, res => {
- if (res.success) {
- this.businessType = res.businessType;
- this.fromInventoryStatuses = res.fromInventoryStatuses.split(',');
- this.fromLocationAreaTypeList = res.fromLocationAreaTypeList
- this.openFromLocation();
- } else {
- this.showErrorMessage(res.message)
- }
- });
+ fromLocationBlur(){
+ // this.$refs.scanLocationCode.openScanPopup()
+ console.log(this.fromLocationCode)
+ this.$emit("fromLocationBlur");
+ },
+ },
+ watch: {
+ fromLocationCodeProps(newVal) {
+ console.log(newVal)
+ this.fromLocationCode = newVal
+ },
+ itemCodeProps(newVal) {
+ this.itemCode = newVal
+ },
+ batchProps(newVal) {
+ this.batch = newVal
},
-
}
}
@@ -122,6 +165,10 @@
width: 0px;
height: 80rpx;
border: 1px solid #dedede;
+ display: flex;
+ align-items: center;
+ font-size: 32rpx;
+ padding: 0px 20rpx;
}
.value1{
flex:1;
@@ -129,6 +176,7 @@
height: 80rpx;
display: flex;
align-items: center;
+ font-size: 32rpx;
}
.searchIcon{
width: 40rpx;
diff --git a/src/pages/inventoryMove/record/okToHoldRecord.vue b/src/pages/inventoryMove/record/okToHoldRecord.vue
index e025da9a..a086b2bd 100644
--- a/src/pages/inventoryMove/record/okToHoldRecord.vue
+++ b/src/pages/inventoryMove/record/okToHoldRecord.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/src/pages/inventoryMove/record/okToQuarantineRecord.vue b/src/pages/inventoryMove/record/okToQuarantineRecord.vue
index 3ff2250d..4cd14afc 100644
--- a/src/pages/inventoryMove/record/okToQuarantineRecord.vue
+++ b/src/pages/inventoryMove/record/okToQuarantineRecord.vue
@@ -1,28 +1,25 @@
-
-
+
+
-
-
From 70fce459b78e1c926935ec3b1f5f2cadebc519ac Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 6 Nov 2024 10:33:15 +0800
Subject: [PATCH 075/201] =?UTF-8?q?YT-704=E9=A2=84=E7=94=9F=E4=BA=A7?=
=?UTF-8?q?=E6=94=B6=E8=B4=A7=EF=BC=8Cpda=E6=8F=90=E4=BA=A4=E6=95=B0?=
=?UTF-8?q?=E9=87=8F=E4=B8=8E=E4=BB=BB=E5=8A=A1=E4=B8=8D=E4=B8=80=E8=87=B4?=
=?UTF-8?q?=EF=BC=8C=E6=8F=90=E7=A4=BA=E5=8E=BB=E6=8E=89=E5=8C=85=E8=A3=85?=
=?UTF-8?q?=E5=8F=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../job/productReceiptDetail.vue | 64 +++++++++++++++++--
1 file changed, 57 insertions(+), 7 deletions(-)
diff --git a/src/pages/productReceipt/job/productReceiptDetail.vue b/src/pages/productReceipt/job/productReceiptDetail.vue
index 2a34cef8..d6e62376 100644
--- a/src/pages/productReceipt/job/productReceiptDetail.vue
+++ b/src/pages/productReceipt/job/productReceiptDetail.vue
@@ -361,7 +361,7 @@
});
},
- commit() {
+ async commit() {
this.scanCount = getScanCount(this.subList);
if (this.scanCount == 0) {
this.showErrorMessage("扫描数为0,请先扫描")
@@ -376,18 +376,40 @@
}else{
this.toLocationCode = this.jobToLocationCode
}
+ //获取管理模式,封装参数
+ var itemCodes = []
+ this.detailSource.forEach(item => {
+ itemCodes.push(item.itemCode)
+ })
+ await getManagementPrecisions(itemCodes, this.toLocationCode, res => {
+ if (res.success) {
+ this.managementList = res.list;
+ this.managementType = this.managementList&& this.managementList[0]&& this.managementList[0].ManagementPrecision ? this.managementList[0].ManagementPrecision : 'BY_PACKAGING'
+ }
+ })
//扫描数量和任务数量相等,直接提交
if (this.scanCount == this.subList.length) {
- if (this.checkCount()) {
- this.submitJob();
+ if(this.managementType == 'BY_BATCH' || this.managementType == 'BY_QUANTITY'){
+ if (this.checkCountBatch()) {
+ this.submitJob();
+ }
+ }else{
+ if (this.checkCount()) {
+ this.submitJob();
+ }
}
-
} else if (this.scanCount < this.subList.length) {
//扫描数量小于任务数量,判断是否允许部分提交
if (this.jobContent.allowPartialComplete == "TRUE") {
//提交
- if (this.checkCount()) {
- this.submitJob();
+ if(this.managementType == 'BY_BATCH' || this.managementType == 'BY_QUANTITY'){
+ if (this.checkCountBatch()) {
+ this.submitJob();
+ }
+ }else{
+ if (this.checkCount()) {
+ this.submitJob();
+ }
}
} else {
//不允许部分提交,提示
@@ -425,7 +447,34 @@
return isCheck;
},
-
+ checkCountBatch(){
+ var isCheck = true;
+ var hint = ""
+ for (var i = 0; i < this.detailSource.length; i++) {
+ var item = this.detailSource[i];
+ for (var j = 0; j < item.subList.length; j++) {
+ var subItem = item.subList[i]
+ console.log(calc.sub(subItem.handleQty, subItem.qty) )
+ if (calc.sub(subItem.handleQty, subItem.qty) < 0 || calc.sub(subItem.handleQty, subItem.qty) > 0) {
+ isCheck = false;
+ hint = "批次【" + subItem.batch + "】实际收货数量:[" + subItem.handleQty + "]与包装数量[" + subItem.qty +
+ "]不相等,是否继续收货?"
+ break
+ }
+
+ }
+ }
+ console.log(isCheck)
+ if (!isCheck) {
+ this.showQuestMessage(hint, res => {
+ if (res) {
+ this.submitJob();
+ }
+ })
+ }
+
+ return isCheck;
+ },
submitJob() {
uni.showLoading({
title: "提交中....",
@@ -435,6 +484,7 @@
this.detailSource.forEach(item => {
itemCodes.push(item.itemCode)
})
+ return
getManagementPrecisions(itemCodes, this.toLocationCode, res => {
if (res.success) {
this.managementList = res.list;
From d5912434dd6cf8433b675531b5f9124a77994698 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 6 Nov 2024 11:17:49 +0800
Subject: [PATCH 076/201] =?UTF-8?q?=E5=8E=BB=E6=8E=89batch?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/inventoryMove/coms/okToHoldRecordPack.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pages/inventoryMove/coms/okToHoldRecordPack.vue b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
index 03b52c4c..056991c0 100644
--- a/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
+++ b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
@@ -24,7 +24,7 @@
批次:
-
+
From 17972344ce2609b662666f368e58de738622c046 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 6 Nov 2024 11:18:17 +0800
Subject: [PATCH 077/201] =?UTF-8?q?=E6=89=B9=E6=AC=A1=E6=8F=90=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/inventoryMove/job/inventoryMoveDetail.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/pages/inventoryMove/job/inventoryMoveDetail.vue b/src/pages/inventoryMove/job/inventoryMoveDetail.vue
index f90e341a..5aafc125 100644
--- a/src/pages/inventoryMove/job/inventoryMoveDetail.vue
+++ b/src/pages/inventoryMove/job/inventoryMoveDetail.vue
@@ -559,12 +559,12 @@
tempHandleQty = 0
}
str +=
- `提交数量【${tempHandleQty}】与任务物料数量【${cur.qty}】不一致\n`
+ `批次【${cur.batch}】提交数量【${tempHandleQty}】与任务物料数量【${cur.qty}】不一致\n`
if( cur.handleQty > cur.balance.balanceQty){
console.log(2333,cur.handleQty)
console.log(2333,cur.balance.balanceQty)
str1 +=
- `提交数量【${ cur.handleQty}】不可以大于库存数量【${cur.balance.balanceQty}】`
+ `批次【${cur.batch}】提交数量【${ cur.handleQty}】不可以大于库存数量【${cur.balance.balanceQty}】`
}
}
})
From bd67d81b080723d594862ec8505bb55f6df584d5 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 6 Nov 2024 11:42:05 +0800
Subject: [PATCH 078/201] =?UTF-8?q?=E7=BB=91=E5=AE=9A=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/inventoryMove/coms/okToHoldRecordPack.vue | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/pages/inventoryMove/coms/okToHoldRecordPack.vue b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
index 056991c0..7d620871 100644
--- a/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
+++ b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
@@ -1,6 +1,6 @@
-
+
需求信息
@@ -24,7 +24,7 @@
批次:
-
+
@@ -65,6 +65,7 @@
fromLocationCode:'',
itemCode:'',
batch:'',
+ showOne:true
}
},
props: {
From 84edc513dfcb4c171552aa959519db179268d475 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 6 Nov 2024 13:02:56 +0800
Subject: [PATCH 079/201] =?UTF-8?q?=E9=A2=84=E7=94=9F=E4=BA=A7=E6=8A=A5?=
=?UTF-8?q?=E5=B7=A5=E5=8E=BB=E6=8E=89return?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/productReceipt/job/productReceiptDetail.vue | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/pages/productReceipt/job/productReceiptDetail.vue b/src/pages/productReceipt/job/productReceiptDetail.vue
index d6e62376..de94cb2b 100644
--- a/src/pages/productReceipt/job/productReceiptDetail.vue
+++ b/src/pages/productReceipt/job/productReceiptDetail.vue
@@ -484,7 +484,6 @@
this.detailSource.forEach(item => {
itemCodes.push(item.itemCode)
})
- return
getManagementPrecisions(itemCodes, this.toLocationCode, res => {
if (res.success) {
this.managementList = res.list;
From a369e6f072b974277f7cdfc18cd281886ad9cb94 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 6 Nov 2024 13:35:02 +0800
Subject: [PATCH 080/201] =?UTF-8?q?=E5=88=B6=E5=93=81=E5=9B=9E=E6=94=B6?=
=?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=9D=A5=E6=BA=90=E5=BA=93=E4=BD=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/productRecycle/coms/comRecycleJobCard.vue | 6 +++++-
src/pages/productRecycle/job/productRecycleJob.vue | 5 ++++-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/pages/productRecycle/coms/comRecycleJobCard.vue b/src/pages/productRecycle/coms/comRecycleJobCard.vue
index 216deb18..efce0ba2 100644
--- a/src/pages/productRecycle/coms/comRecycleJobCard.vue
+++ b/src/pages/productRecycle/coms/comRecycleJobCard.vue
@@ -1,6 +1,6 @@
-
+
@@ -21,6 +21,10 @@
type: Object,
default: {}
},
+ isShowToLocation: {
+ type: Boolean,
+ default: true
+ },
},
methods: {
diff --git a/src/pages/productRecycle/job/productRecycleJob.vue b/src/pages/productRecycle/job/productRecycleJob.vue
index 3f2e2dcc..59d6d9f4 100644
--- a/src/pages/productRecycle/job/productRecycleJob.vue
+++ b/src/pages/productRecycle/job/productRecycleJob.vue
@@ -11,7 +11,7 @@
-
+
@@ -161,6 +161,9 @@
if (type === "refresh") {
uni.stopPullDownRefresh();
}
+ res.data.list.forEach(item=>{
+ item.fromLocationCode = item.toLocationCode
+ })
var list = res.data.list;
this.totalCount = res.data.total
updateTitle(this.title+"(" + this.totalCount + ")");
From f19349c4020ffc9df37da0d290c0a08ca19a1013 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 6 Nov 2024 13:48:00 +0800
Subject: [PATCH 081/201] =?UTF-8?q?betweeen=20=E6=94=B9=E6=88=90between?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/mycomponents/scan/winScanLocation.vue | 1 -
src/pages/count/job/countJob.vue | 2 +-
src/pages/count/job/fuzzyCountJob.vue | 2 +-
src/pages/customerReturn/job/returnJob.vue | 2 +-
src/pages/customerReturn/record/recordList.vue | 2 +-
src/pages/deliver/job/deliverJob.vue | 2 +-
src/pages/inspect/job/inspectJob.vue | 2 +-
src/pages/inventoryMove/coms/comMoveJob.vue | 2 +-
src/pages/inventoryMove/coms/comMoveRecord.vue | 6 ++++--
src/pages/inventoryMove/coms/okToHoldRecordPack.vue | 4 ++--
src/pages/inventoryMove/job/inventoryMoveJob.vue | 2 +-
src/pages/issue/job/issueJob.vue | 2 +-
src/pages/issue/job/issueJob0816.vue | 4 ++--
src/pages/itemHold/record/recordList.vue | 2 +-
src/pages/package/job/overPackageJob.vue | 2 +-
src/pages/productDismantle/job/productDismantleJob.vue | 2 +-
src/pages/productPutaway/job/productPutawayJob.vue | 2 +-
src/pages/productReceipt/job/ccProductReceiptJob.vue | 2 +-
src/pages/productReceipt/job/completeReceiveJob.vue | 2 +-
src/pages/productReceipt/job/productReceiptJob.vue | 2 +-
src/pages/productReceipt/record/recordList.vue | 2 +-
src/pages/productRecycle/job/productRecycleJob.vue | 2 +-
src/pages/productionReceipt/job/productionReceiptJob.vue | 2 +-
src/pages/productionReturn/job/holdToReturnJob.vue | 2 +-
src/pages/productionReturn/job/okToReturnJob.vue | 2 +-
src/pages/productionReturn/job/returnJob.vue | 2 +-
.../productionReturn/record/returnToHoldRecordList.vue | 2 +-
src/pages/purchaseReceipt/job/receiptDetail.vue | 5 ++---
src/pages/purchaseReceipt/job/receiptJob.vue | 2 +-
src/pages/purchaseReturn/job/returnJob.vue | 2 +-
src/pages/purchaseReturn/job/returnJob_0904.vue | 2 +-
src/pages/putaway/job/putawayJob.vue | 2 +-
src/pages/putaway/job/quantityPutawayJob.vue | 2 +-
src/pages/repleinsh/job/repleinshJob.vue | 2 +-
src/pages/scrap/job/scrapJob.vue | 2 +-
src/pages/stockUp/job/stockUpJob.vue | 2 +-
src/pages/supplierDeliver/record/supplierDeliverRecord.vue | 2 +-
src/pages/transfer/job/issueJob.vue | 2 +-
src/pages/transfer/job/receiptJob.vue | 2 +-
src/pages/unPlanned/job/issueJob.vue | 2 +-
src/pages/unPlanned/job/receiptJob.vue | 2 +-
41 files changed, 46 insertions(+), 46 deletions(-)
diff --git a/src/mycomponents/scan/winScanLocation.vue b/src/mycomponents/scan/winScanLocation.vue
index 0f4c0144..68c18dfa 100644
--- a/src/mycomponents/scan/winScanLocation.vue
+++ b/src/mycomponents/scan/winScanLocation.vue
@@ -88,7 +88,6 @@
this.$refs.scan.clearScanValue();
},
getScanResult(result) {
-
uni.showLoading({
title: '扫描中...',
mask: true
diff --git a/src/pages/count/job/countJob.vue b/src/pages/count/job/countJob.vue
index 7ca78774..fa45bfd1 100644
--- a/src/pages/count/job/countJob.vue
+++ b/src/pages/count/job/countJob.vue
@@ -210,7 +210,7 @@
if (this.queryParams.creationTime) {
filterParams.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.queryParams.creationTime
})
}
diff --git a/src/pages/count/job/fuzzyCountJob.vue b/src/pages/count/job/fuzzyCountJob.vue
index e57b4aba..d5199cb3 100644
--- a/src/pages/count/job/fuzzyCountJob.vue
+++ b/src/pages/count/job/fuzzyCountJob.vue
@@ -150,7 +150,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/customerReturn/job/returnJob.vue b/src/pages/customerReturn/job/returnJob.vue
index c562ee51..ce074f2f 100644
--- a/src/pages/customerReturn/job/returnJob.vue
+++ b/src/pages/customerReturn/job/returnJob.vue
@@ -133,7 +133,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/customerReturn/record/recordList.vue b/src/pages/customerReturn/record/recordList.vue
index c59f4018..af97d0bd 100644
--- a/src/pages/customerReturn/record/recordList.vue
+++ b/src/pages/customerReturn/record/recordList.vue
@@ -147,7 +147,7 @@
if (this.queryParams.creationTime) {
filterParams.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.queryParams.creationTime
})
}
diff --git a/src/pages/deliver/job/deliverJob.vue b/src/pages/deliver/job/deliverJob.vue
index 58d58a70..6aeda18c 100644
--- a/src/pages/deliver/job/deliverJob.vue
+++ b/src/pages/deliver/job/deliverJob.vue
@@ -139,7 +139,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/inspect/job/inspectJob.vue b/src/pages/inspect/job/inspectJob.vue
index 4ac64d4c..0d21bc92 100644
--- a/src/pages/inspect/job/inspectJob.vue
+++ b/src/pages/inspect/job/inspectJob.vue
@@ -126,7 +126,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/inventoryMove/coms/comMoveJob.vue b/src/pages/inventoryMove/coms/comMoveJob.vue
index 4e77583f..ef029a01 100644
--- a/src/pages/inventoryMove/coms/comMoveJob.vue
+++ b/src/pages/inventoryMove/coms/comMoveJob.vue
@@ -170,7 +170,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/inventoryMove/coms/comMoveRecord.vue b/src/pages/inventoryMove/coms/comMoveRecord.vue
index 4f130f8a..5ea7357b 100644
--- a/src/pages/inventoryMove/coms/comMoveRecord.vue
+++ b/src/pages/inventoryMove/coms/comMoveRecord.vue
@@ -35,7 +35,7 @@
-
+
来源库位:
- {{fromLocationCode}}
+
零件:
- {{itemCode}}
+
diff --git a/src/pages/inventoryMove/job/inventoryMoveJob.vue b/src/pages/inventoryMove/job/inventoryMoveJob.vue
index 97ef5176..69619c2a 100644
--- a/src/pages/inventoryMove/job/inventoryMoveJob.vue
+++ b/src/pages/inventoryMove/job/inventoryMoveJob.vue
@@ -119,7 +119,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/issue/job/issueJob.vue b/src/pages/issue/job/issueJob.vue
index 5f2e24a1..9f98eadc 100644
--- a/src/pages/issue/job/issueJob.vue
+++ b/src/pages/issue/job/issueJob.vue
@@ -289,7 +289,7 @@
if (queryParams.creationTime ) {
filterParams.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: queryParams.creationTime
})
}
diff --git a/src/pages/issue/job/issueJob0816.vue b/src/pages/issue/job/issueJob0816.vue
index a3017f95..c714bfc1 100644
--- a/src/pages/issue/job/issueJob0816.vue
+++ b/src/pages/issue/job/issueJob0816.vue
@@ -234,7 +234,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
@@ -333,7 +333,7 @@
// if (this.checkedToday) {
// filters.push({
// column: "create_time",
- // action: "betweeen",
+ // action: "between",
// value: this.todayTime
// })
// }
diff --git a/src/pages/itemHold/record/recordList.vue b/src/pages/itemHold/record/recordList.vue
index c4558f64..9feae876 100644
--- a/src/pages/itemHold/record/recordList.vue
+++ b/src/pages/itemHold/record/recordList.vue
@@ -146,7 +146,7 @@
if (this.queryParams.creationTime) {
filterParams.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.queryParams.creationTime
})
}
diff --git a/src/pages/package/job/overPackageJob.vue b/src/pages/package/job/overPackageJob.vue
index 7a4cd225..1715c018 100644
--- a/src/pages/package/job/overPackageJob.vue
+++ b/src/pages/package/job/overPackageJob.vue
@@ -190,7 +190,7 @@
if (queryParams.creationTime ) {
filterParams.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: queryParams.creationTime
})
}
diff --git a/src/pages/productDismantle/job/productDismantleJob.vue b/src/pages/productDismantle/job/productDismantleJob.vue
index 4712fc84..ea90a1d0 100644
--- a/src/pages/productDismantle/job/productDismantleJob.vue
+++ b/src/pages/productDismantle/job/productDismantleJob.vue
@@ -132,7 +132,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/productPutaway/job/productPutawayJob.vue b/src/pages/productPutaway/job/productPutawayJob.vue
index 25541856..0228ac61 100644
--- a/src/pages/productPutaway/job/productPutawayJob.vue
+++ b/src/pages/productPutaway/job/productPutawayJob.vue
@@ -161,7 +161,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/productReceipt/job/ccProductReceiptJob.vue b/src/pages/productReceipt/job/ccProductReceiptJob.vue
index a9e11e68..3fbc9781 100644
--- a/src/pages/productReceipt/job/ccProductReceiptJob.vue
+++ b/src/pages/productReceipt/job/ccProductReceiptJob.vue
@@ -152,7 +152,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/productReceipt/job/completeReceiveJob.vue b/src/pages/productReceipt/job/completeReceiveJob.vue
index e8520ab7..5cd87b95 100644
--- a/src/pages/productReceipt/job/completeReceiveJob.vue
+++ b/src/pages/productReceipt/job/completeReceiveJob.vue
@@ -131,7 +131,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/productReceipt/job/productReceiptJob.vue b/src/pages/productReceipt/job/productReceiptJob.vue
index 3a722ba8..989029a2 100644
--- a/src/pages/productReceipt/job/productReceiptJob.vue
+++ b/src/pages/productReceipt/job/productReceiptJob.vue
@@ -166,7 +166,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/productReceipt/record/recordList.vue b/src/pages/productReceipt/record/recordList.vue
index 831613b1..ca564a58 100644
--- a/src/pages/productReceipt/record/recordList.vue
+++ b/src/pages/productReceipt/record/recordList.vue
@@ -146,7 +146,7 @@
if (this.queryParams.creationTime) {
filterParams.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.queryParams.creationTime
})
}
diff --git a/src/pages/productRecycle/job/productRecycleJob.vue b/src/pages/productRecycle/job/productRecycleJob.vue
index 59d6d9f4..72a6f3bb 100644
--- a/src/pages/productRecycle/job/productRecycleJob.vue
+++ b/src/pages/productRecycle/job/productRecycleJob.vue
@@ -134,7 +134,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/productionReceipt/job/productionReceiptJob.vue b/src/pages/productionReceipt/job/productionReceiptJob.vue
index 4d1f72a0..5d33464d 100644
--- a/src/pages/productionReceipt/job/productionReceiptJob.vue
+++ b/src/pages/productionReceipt/job/productionReceiptJob.vue
@@ -195,7 +195,7 @@
if (queryParams.creationTime) {
filterParams.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: queryParams.creationTime
})
}
diff --git a/src/pages/productionReturn/job/holdToReturnJob.vue b/src/pages/productionReturn/job/holdToReturnJob.vue
index 1c10671f..c571028f 100644
--- a/src/pages/productionReturn/job/holdToReturnJob.vue
+++ b/src/pages/productionReturn/job/holdToReturnJob.vue
@@ -135,7 +135,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/productionReturn/job/okToReturnJob.vue b/src/pages/productionReturn/job/okToReturnJob.vue
index f6aaada1..bbe43ac5 100644
--- a/src/pages/productionReturn/job/okToReturnJob.vue
+++ b/src/pages/productionReturn/job/okToReturnJob.vue
@@ -135,7 +135,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/productionReturn/job/returnJob.vue b/src/pages/productionReturn/job/returnJob.vue
index 5dd8a87b..f4df3056 100644
--- a/src/pages/productionReturn/job/returnJob.vue
+++ b/src/pages/productionReturn/job/returnJob.vue
@@ -135,7 +135,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/productionReturn/record/returnToHoldRecordList.vue b/src/pages/productionReturn/record/returnToHoldRecordList.vue
index 4e3f2d6a..a6f20096 100644
--- a/src/pages/productionReturn/record/returnToHoldRecordList.vue
+++ b/src/pages/productionReturn/record/returnToHoldRecordList.vue
@@ -145,7 +145,7 @@
if (this.queryParams.creationTime) {
filterParams.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.queryParams.creationTime
})
}
diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue
index 4dace67f..df6e75cc 100644
--- a/src/pages/purchaseReceipt/job/receiptDetail.vue
+++ b/src/pages/purchaseReceipt/job/receiptDetail.vue
@@ -289,8 +289,7 @@
getManagementPrecisions(itemCodes, that.jobToLocationCode, res => {
if (res.success) {
this.managementList = res.list;
- this.managementType = this.managementList.some(item => item.ManagementPrecision ==
- 'BY_BATCH') ? 'BY_BATCH' : ''
+ this.managementType = this.managementList&& this.managementList[0]&& this.managementList[0].ManagementPrecision ? this.managementList[0].ManagementPrecision : 'BY_PACKAGING'
}
})
// if (uni.getStorageSync('purchaseReceiptDetailPointParams')) {
@@ -318,7 +317,7 @@
},
getScanResult(result) {
this.balanceInfo = result.balance
- if(this.managementType == 'BY_BATCH'){
+ if(this.managementType == 'BY_BATCH' || this.managementType == 'BY_QUANTITY' ){
this.getScanResultAfterBatch(result)
}else{
this.getScanResultAfter(result)
diff --git a/src/pages/purchaseReceipt/job/receiptJob.vue b/src/pages/purchaseReceipt/job/receiptJob.vue
index b1a8c9b6..cd90837b 100644
--- a/src/pages/purchaseReceipt/job/receiptJob.vue
+++ b/src/pages/purchaseReceipt/job/receiptJob.vue
@@ -184,7 +184,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/purchaseReturn/job/returnJob.vue b/src/pages/purchaseReturn/job/returnJob.vue
index c9761207..86572ea5 100644
--- a/src/pages/purchaseReturn/job/returnJob.vue
+++ b/src/pages/purchaseReturn/job/returnJob.vue
@@ -136,7 +136,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/purchaseReturn/job/returnJob_0904.vue b/src/pages/purchaseReturn/job/returnJob_0904.vue
index 97f80e7c..2ab89e75 100644
--- a/src/pages/purchaseReturn/job/returnJob_0904.vue
+++ b/src/pages/purchaseReturn/job/returnJob_0904.vue
@@ -134,7 +134,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/putaway/job/putawayJob.vue b/src/pages/putaway/job/putawayJob.vue
index cd09fa03..221be3dd 100644
--- a/src/pages/putaway/job/putawayJob.vue
+++ b/src/pages/putaway/job/putawayJob.vue
@@ -150,7 +150,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/putaway/job/quantityPutawayJob.vue b/src/pages/putaway/job/quantityPutawayJob.vue
index 88b999eb..6ea7c10c 100644
--- a/src/pages/putaway/job/quantityPutawayJob.vue
+++ b/src/pages/putaway/job/quantityPutawayJob.vue
@@ -274,7 +274,7 @@
if (queryParams.creationTime) {
filterParams.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: queryParams.creationTime
})
}
diff --git a/src/pages/repleinsh/job/repleinshJob.vue b/src/pages/repleinsh/job/repleinshJob.vue
index a1063cda..3af57d9d 100644
--- a/src/pages/repleinsh/job/repleinshJob.vue
+++ b/src/pages/repleinsh/job/repleinshJob.vue
@@ -206,7 +206,7 @@
if (queryParams.creationTime ) {
filterParams.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: queryParams.creationTime
})
}
diff --git a/src/pages/scrap/job/scrapJob.vue b/src/pages/scrap/job/scrapJob.vue
index e6951b4d..93e93adb 100644
--- a/src/pages/scrap/job/scrapJob.vue
+++ b/src/pages/scrap/job/scrapJob.vue
@@ -130,7 +130,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/stockUp/job/stockUpJob.vue b/src/pages/stockUp/job/stockUpJob.vue
index 58276213..c8114d86 100644
--- a/src/pages/stockUp/job/stockUpJob.vue
+++ b/src/pages/stockUp/job/stockUpJob.vue
@@ -135,7 +135,7 @@ import {
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/supplierDeliver/record/supplierDeliverRecord.vue b/src/pages/supplierDeliver/record/supplierDeliverRecord.vue
index f1cd6202..0b473e82 100644
--- a/src/pages/supplierDeliver/record/supplierDeliverRecord.vue
+++ b/src/pages/supplierDeliver/record/supplierDeliverRecord.vue
@@ -125,7 +125,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/transfer/job/issueJob.vue b/src/pages/transfer/job/issueJob.vue
index f4997341..2a194fd0 100644
--- a/src/pages/transfer/job/issueJob.vue
+++ b/src/pages/transfer/job/issueJob.vue
@@ -136,7 +136,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/transfer/job/receiptJob.vue b/src/pages/transfer/job/receiptJob.vue
index eab54301..8f903d7c 100644
--- a/src/pages/transfer/job/receiptJob.vue
+++ b/src/pages/transfer/job/receiptJob.vue
@@ -134,7 +134,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/unPlanned/job/issueJob.vue b/src/pages/unPlanned/job/issueJob.vue
index 324f5a48..8750cbee 100644
--- a/src/pages/unPlanned/job/issueJob.vue
+++ b/src/pages/unPlanned/job/issueJob.vue
@@ -137,7 +137,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
diff --git a/src/pages/unPlanned/job/receiptJob.vue b/src/pages/unPlanned/job/receiptJob.vue
index 0fbfeed8..7f6326a6 100644
--- a/src/pages/unPlanned/job/receiptJob.vue
+++ b/src/pages/unPlanned/job/receiptJob.vue
@@ -126,7 +126,7 @@
if (this.checkedToday) {
filters.push({
column: "create_time",
- action: "betweeen",
+ action: "between",
value: this.todayTime
})
}
From 3dc23fa6bcb374746163d131d79e5c0b64c7f4d5 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 6 Nov 2024 13:56:12 +0800
Subject: [PATCH 082/201] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=A4=B1=E5=8E=BB?=
=?UTF-8?q?=E7=84=A6=E7=82=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/inventoryMove/coms/comMoveRecord.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pages/inventoryMove/coms/comMoveRecord.vue b/src/pages/inventoryMove/coms/comMoveRecord.vue
index 5ea7357b..d4ca2eec 100644
--- a/src/pages/inventoryMove/coms/comMoveRecord.vue
+++ b/src/pages/inventoryMove/coms/comMoveRecord.vue
@@ -477,7 +477,7 @@
calcHandleQty(this.detailSource);
},
fromLocationBlur(){
- this.$refs.scanPopup.
+ // this.$refs.scanPopup.
},
showErrorMessage(message) {
if (this.$refs.scanPopup) {
From e11b01a42209a6eecff945a6bca079622b4dcd8c Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 6 Nov 2024 16:42:23 +0800
Subject: [PATCH 083/201] =?UTF-8?q?YT-692=E9=87=87=E8=B4=AD=E6=94=B6?=
=?UTF-8?q?=E8=B4=A7=E6=94=B6=E8=B4=A7=E5=BA=93=E5=8C=BA=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E7=B2=BE=E5=BA=A6=E4=B8=BA=E6=8C=89=E6=95=B0=E9=87=8F=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=EF=BC=8CPDA=E6=89=AB=E6=8F=8F=E6=A0=87=E7=AD=BE?=
=?UTF-8?q?=E5=A4=B1=E8=B4=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/mycomponents/scan/winComScan.vue | 5 +-
src/mycomponents/scan/winScanLocation.vue | 1 +
.../inventoryMove/coms/comMoveRecord.vue | 8 +-
.../inventoryMove/coms/okToHoldRecordPack.vue | 77 +++++++++-
.../purchaseReceipt/job/receiptDetail.vue | 142 +++++++++++++++++-
5 files changed, 219 insertions(+), 14 deletions(-)
diff --git a/src/mycomponents/scan/winComScan.vue b/src/mycomponents/scan/winComScan.vue
index 979ae50c..f442f672 100644
--- a/src/mycomponents/scan/winComScan.vue
+++ b/src/mycomponents/scan/winComScan.vue
@@ -155,10 +155,11 @@
// title: '解析中...',
// mask: true
// })
+ console.log(222)
let that = this;
// if(index==-1){
- // that.scanMsg =that.scanMsg + "\n";
- // }
+ // that.sc
+ console.log(that.scanMsg.includes('\n'))
if (that.scanMsg.includes('\n')) {
// that.scanMsg = 'HPQ;V1.0;ICE115F11161AG;PP20230427000027;B20230427002;Q50';
setTimeout(() => {
diff --git a/src/mycomponents/scan/winScanLocation.vue b/src/mycomponents/scan/winScanLocation.vue
index 68c18dfa..26e2b201 100644
--- a/src/mycomponents/scan/winScanLocation.vue
+++ b/src/mycomponents/scan/winScanLocation.vue
@@ -92,6 +92,7 @@
title: '扫描中...',
mask: true
});
+ console.log(111,result)
let label = result.label;
if (label.barType === 'QRCode') {
this.code = label.locationCode;
diff --git a/src/pages/inventoryMove/coms/comMoveRecord.vue b/src/pages/inventoryMove/coms/comMoveRecord.vue
index d4ca2eec..49af4c40 100644
--- a/src/pages/inventoryMove/coms/comMoveRecord.vue
+++ b/src/pages/inventoryMove/coms/comMoveRecord.vue
@@ -35,8 +35,8 @@
-
-
+
+
@@ -476,7 +476,9 @@
}
calcHandleQty(this.detailSource);
},
- fromLocationBlur(){
+ fromLocationBlur(result){
+ console.log('pooo',result)
+ this.$refs.scanFromLocationCode.getScanResult(result)
// this.$refs.scanPopup.
},
showErrorMessage(message) {
diff --git a/src/pages/inventoryMove/coms/okToHoldRecordPack.vue b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
index 9b4c50b5..0f210073 100644
--- a/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
+++ b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
@@ -9,14 +9,14 @@
来源库位:
-
+
零件:
-
+
@@ -52,6 +52,11 @@
import {
getBusinessType
} from '@/common/record.js';
+
+ import {
+ getLabelInfo
+ } from '../../../common/label.js';
+
export default {
components: {
@@ -111,10 +116,70 @@
}
this.$emit("confirm",obj);
},
- fromLocationBlur(){
- // this.$refs.scanLocationCode.openScanPopup()
- console.log(this.fromLocationCode)
- this.$emit("fromLocationBlur");
+ fromLocationScanMsg(){
+ this.scanMsg = this.fromLocationCode
+ this.handelScanMsg()
+ },
+ itemCodeBlur(){
+ this.scanMsg = this.itemCode
+ this.handelScanMsg()
+ },
+ handelScanMsg() {
+ //点击了回车
+ // uni.showLoading({
+ // title: '解析中...',
+ // mask: true
+ // })
+ let that = this;
+ console.log(that.scanMsg)
+ // if(index==-1){
+ // that.scanMsg =that.scanMsg + "\n";
+ // }
+ console.log(that.scanMsg.includes('\n'))
+ if (that.scanMsg.includes('\n')) {
+ // that.scanMsg = 'HPQ;V1.0;ICE115F11161AG;PP20230427000027;B20230427002;Q50';
+ setTimeout(() => {
+ that.losefocus();
+ let content = uni.$u.trim(that.scanMsg)
+ if (content == "") {
+ // that.getfocus();
+ this.$refs.comMessage.showErrorMessage("扫描内容为空,请重新扫描", res => {
+ if (res) {
+ that.scanMsg = ""
+ that.getfocus();
+ }
+ })
+ return;
+ }
+
+ if (that.isShowHistory) {
+ that.scanList.unshift(content);
+ }
+
+ getLabelInfo(content, this.headerType, callback => {
+ // uni.hideLoading();
+ let scanResult = callback;
+ scanResult.scanMessage = content
+ if (scanResult.success) {
+ // that.getfocus();//不能自动获取焦点
+ that.$emit("fromLocationBlur", scanResult);
+ } else {
+ that.losefocus();
+ this.$refs.comMessage.showErrorMessage(scanResult.message, res => {
+ if (res) {
+ that.getfocus();
+ }
+ })
+ }
+ });
+ }, 200);
+ }
+ },
+ losefocus() {
+ let that = this;
+ this.$nextTick(r => {
+ that.boxfocus = false;
+ });
},
},
watch: {
diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue
index df6e75cc..a96f9c75 100644
--- a/src/pages/purchaseReceipt/job/receiptDetail.vue
+++ b/src/pages/purchaseReceipt/job/receiptDetail.vue
@@ -34,7 +34,7 @@
+ v-if="managementType == 'BY_BATCH' || managementType =='BY_QUANTITY'">
@@ -317,8 +317,11 @@
},
getScanResult(result) {
this.balanceInfo = result.balance
- if(this.managementType == 'BY_BATCH' || this.managementType == 'BY_QUANTITY' ){
+ console.log(this.managementType)
+ if(this.managementType == 'BY_BATCH'){
this.getScanResultAfterBatch(result)
+ }else if(this.managementType == 'BY_QUANTITY' ){
+ this.getScanResultAfterQuantity(result)
}else{
this.getScanResultAfter(result)
}
@@ -559,6 +562,138 @@
this.showErrorMessage(e.message)
}
},
+ // 数量扫码之后逻辑
+ getScanResultAfterQuantity(result){
+ try {
+ var itemCode = result.label.itemCode;
+ var detail = this.detailSource.find(r => r.itemCode == itemCode);
+ if (detail == undefined) {
+ this.showErrorMessage("物料号【" + itemCode + "】不在列表中")
+ return;
+ }
+ detail.scaned = true;
+ if (result.label.labelType == "ContainerLabel") {
+ var containerNumber = result.label.container;
+ var itemDetail = detail.subList.filter(r => r.containerNumber == containerNumber);
+ if (itemDetail.length == 0) {
+ this.showErrorMessage("物料【" + itemCode + "】、托码【" + containerNumber + "】不在列表中")
+ } else {
+ if (itemDetail[0].scaned) {
+ this.showErrorMessage("物料【" + itemCode + "】、托码【" + containerNumber + "】已经扫描")
+ } else {
+ itemDetail.forEach(item => {
+ item.scaned = true;
+ itemDetail.scanDate = new Date();
+ item.handleQty = calc.add(item.handleQty,result.label.qty)
+ item.toLocationCode = this.toLocationCode;
+ })
+ // calcHandleQty(this.detailSource);
+ this.detailSource[0].subList.sort(compareDesc('scanDate')); //按扫描信息排序
+ this.continueScan()
+ this.$forceUpdate()
+ }
+ }
+ } else if (result.label.labelType == "PurchaseLabel") {
+ var packingNumber = result.package.number;
+ var parentpackingNumber = result.package.parentNumber;
+ var batch = result.label.batch;
+ var qty = result.label.qty;
+ var detail = this.detailSource.find(r => r.itemCode == itemCode);
+ console.log(8989,this.detailSource)
+ if (detail == undefined) {
+ this.showMessage("物料号【" + itemCode + "】不在列表中")
+ } else {
+ //物料在列表中
+ // var itemDetail = detail.subList.find(r => r.batch ==
+ // batch);
+ // if (itemDetail == undefined) {
+ // itemDetail = detail.subList.find(r => r.batch ==
+ // batch);
+
+ // if (itemDetail == undefined) {
+ // this.showMessage("批次【" + batch + "】不在列表中")
+ // } else {
+ // var pack = itemDetail.packList.find(p =>
+ // p.batch == batch)
+ // if (pack == undefined) {
+ // this.showMessage("批次【" + batch + "】不在列表中")
+ // } else {
+ let isScan = false
+ const itemDetail = detail.subList[0]
+ let pack = detail.subList[0] && detail.subList[0].length>0 ?detail.subList[0] : {}
+ if(packingNumber){
+ isScan = this.packingNumberList.some(item=>item == packingNumber)
+ }else{
+ isScan = false
+ }
+ if (isScan) {
+ detail.subList[0].scanDate = new Date();
+ // this.showMessage("箱码【" + packingNumber + "】已经扫描");
+
+ detail.subList[0].handleQty = calc.add(detail.subList[0].handleQty,result.label.qty)
+ } else {
+ this.packingNumberList.push(packingNumber)
+ detail.subList[0].scaned = true
+ detail.subList[0].scanDate = new Date();
+ detail.subList[0].handleQty = Number(result.label.qty);
+ detail.subList[0].toLocationCode = this.toLocationCode;
+ detail.subList[0].labelQty = Number(result.label.qty);
+ }
+ // }
+ calcHandleQty(this.detailSource);
+ this.continueScan()
+ // itemDetail.packList[0] = detail.subList[0]; //按扫描信息排序
+ this.$forceUpdate()
+ // }
+
+ // } else {
+ // //扫描的是外包装,将包装集合全部扫描
+ // var scanedLength = 0;
+ // itemDetail.packList.forEach(res => {
+ // if (res.scaned) {
+ // scanedLength++;
+ // }
+ // })
+ // debugger
+ // let isScan = false
+ // if(packingNumber){
+ // isScan = this.packingNumberList.some(item=>item == packingNumber)
+ // }else{
+ // isScan = false
+ // }
+ // if (isScan) {
+ // itemDetail.scanDate = new Date();
+ // // this.showMessage("箱码【" + packingNumber + "】已经扫描")
+ // itemDetail.handleQty = calc.add(itemDetail.handleQty,result.label.qty)
+ // } else {
+ // this.packingNumberList.push(packingNumber)
+ // itemDetail.scaned = true;
+ // itemDetail.scanDate = new Date();
+ // itemDetail.handleQty =itemDetail.handleQty ?itemDetail.handleQty:0
+ // itemDetail.handleQty = calc.add(itemDetail.handleQty,result.label.qty)
+ // console.log(itemDetail.handleQty)
+ // itemDetail.toLocationCode = this.toLocationCode;
+ // itemDetail.labelQty = Number(result.label.qty);
+ // itemDetail.packList.forEach(pac => {
+ // pac.scaned = true
+ // pac.scanDate = new Date();
+ // pac.handleQty = calc.add(pac.handleQty,result.label.qty);
+ // pac.toLocationCode = this.toLocationCode;
+ // })
+ // detail.handleQty = itemDetail.handleQty
+ // this.detailSource[0].subList.sort(compareDesc('scanDate')); //按扫描信息排序
+ // this.continueScan()
+ // this.$forceUpdate()
+ // }
+ // calcHandleQty(this.detailSource);
+ // }
+ }
+ }
+
+ } catch (e) {
+ this.showErrorMessage(e.message)
+ }
+ },
//继续扫描
continueScan() {
this.scanCount = getScanCount(this.subList);
@@ -714,7 +849,8 @@
var params = this.setParams();
let that = this
- console.log(params)
+ console.log(877,params)
+ // return;
purchaseReceiptJobSubmit(params).then(res => {
if (res.data) {
let isCheckPrint = getSwitchInfoByCode(this.switchCode)//是否显示上架指引单
From 27fd58c27aa30b1571159bca31f4cb2be56178c8 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 6 Nov 2024 17:30:29 +0800
Subject: [PATCH 084/201] =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E5=90=88=E6=A0=BC?=
=?UTF-8?q?=E8=BD=AC=E9=9A=94=E7=A6=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../scan/winScanPackAndLocation.vue | 3 +
.../inventoryMove/coms/comMoveRecord.vue | 79 +++----------------
.../inventoryMove/coms/okToHoldRecordPack.vue | 15 ++--
3 files changed, 23 insertions(+), 74 deletions(-)
diff --git a/src/mycomponents/scan/winScanPackAndLocation.vue b/src/mycomponents/scan/winScanPackAndLocation.vue
index aaebd305..43b14388 100644
--- a/src/mycomponents/scan/winScanPackAndLocation.vue
+++ b/src/mycomponents/scan/winScanPackAndLocation.vue
@@ -236,6 +236,9 @@
scanLocation(scanResult) {
+ if(scanResult.fromLocationCode){
+ this.fromLocationCode = scanResult.fromLocationCode
+ }
var isCheck = false;
if (this.fromLocationCode == '') {
this.showErrorMessage('来源库位不能为空', callback => {
diff --git a/src/pages/inventoryMove/coms/comMoveRecord.vue b/src/pages/inventoryMove/coms/comMoveRecord.vue
index 49af4c40..bf25e86c 100644
--- a/src/pages/inventoryMove/coms/comMoveRecord.vue
+++ b/src/pages/inventoryMove/coms/comMoveRecord.vue
@@ -35,7 +35,7 @@
-
+
{
if (r.batch == pack.batch &&
r.fromLocationCode == balance.locationCode &&
@@ -393,68 +396,6 @@
return r;
}
})
-
- if (detail == undefined) {
- let newDetail = createDetailInfo(balance, pack);
- // newDetail.inventoryStatus = balance.inventoryStatus;
- if (this.businessTypeCode == "Move") {
- newDetail.toInventoryStatus = balance.inventoryStatus;
- } else {
- newDetail.toInventoryStatus = this.toInventoryStatus;
- }
-
- if (newDetail.packingNumber == '') {
- newDetail.packingNumber = pack.number;
- }
- newDetail.toLocationCode = this.toLocationCode;
- newDetail.fromLocationCode = result.fromLocationCode
- item.subList.push(newDetail);
- } else {
- detail.handleQty =calc.add(detail.handleQty, result.label.qty)
- }
- }
- calcHandleQty(this.detailSource);
- },
- getScanResultAfterBatchOnePop(result){
- var balance = result.balance;
- this.balanceInfo = result.balance;
- var pack = result.package;
- var item = this.detailSource.find(res => {
- if (res.itemCode == balance.itemCode) {
- return res
- }
- })
- if (item == undefined) {
- var itemp = createItemInfo(balance, pack);
- let newDetail = createDetailInfo(balance, pack);
-
- if (newDetail.packingNumber == '') {
- newDetail.packingNumber = pack.number;
- }
- if (this.businessTypeCode == "Move") {
- newDetail.toInventoryStatus = balance.inventoryStatus;
- } else {
- newDetail.toInventoryStatus = this.toInventoryStatus;
- }
- newDetail.toLocationCode = this.toLocationCode;
- newDetail.fromLocationCode = result.fromLocationCode
- itemp.subList.push(newDetail);
- this.detailSource.push(itemp)
- } else {
- if( balance.inventoryStatus != this.toInventoryStatus){
- this.showErrorMessage("库存状态的库存")
- return
- }
- var detail = item.subList.find(r => {
- if (r.batch == pack.batch &&
- r.fromLocationCode == balance.locationCode &&
- r.toInventoryStatus == balance.inventoryStatus &&
- r.scaned == true) {
- return r;
- }
- })
- console.log(2333,detail)
-
if (detail == undefined) {
let newDetail = createDetailInfo(balance, pack);
// newDetail.inventoryStatus = balance.inventoryStatus;
@@ -476,10 +417,14 @@
}
calcHandleQty(this.detailSource);
},
- fromLocationBlur(result){
+ getInputMsgResult(result){
console.log('pooo',result)
- this.$refs.scanFromLocationCode.getScanResult(result)
- // this.$refs.scanPopup.
+ if(!this.fromLocationCode){
+ this.$refs.scanFromLocationCode.getScanResult(result)
+ }else{
+ result.fromLocationCode = this.fromLocationCode
+ this.$refs.scanPopup.getScanResult(result)
+ }
},
showErrorMessage(message) {
if (this.$refs.scanPopup) {
diff --git a/src/pages/inventoryMove/coms/okToHoldRecordPack.vue b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
index 0f210073..3ddc1ce5 100644
--- a/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
+++ b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
@@ -9,14 +9,14 @@
来源库位:
-
+
零件:
-
+
@@ -62,7 +62,7 @@
components: {
winScanLocation
},
- emits: ["showFromLocationPopup",'itemCodeClick','confirm','fromLocationBlur'],
+ emits: ["showFromLocationPopup",'itemCodeClick','confirm','getInputMsgResult'],
data() {
return {
show:true,
@@ -120,7 +120,7 @@
this.scanMsg = this.fromLocationCode
this.handelScanMsg()
},
- itemCodeBlur(){
+ itemCodeScanMsg(){
this.scanMsg = this.itemCode
this.handelScanMsg()
},
@@ -136,7 +136,7 @@
// that.scanMsg =that.scanMsg + "\n";
// }
console.log(that.scanMsg.includes('\n'))
- if (that.scanMsg.includes('\n')) {
+ // if (that.scanMsg.includes('\n')) {
// that.scanMsg = 'HPQ;V1.0;ICE115F11161AG;PP20230427000027;B20230427002;Q50';
setTimeout(() => {
that.losefocus();
@@ -162,7 +162,7 @@
scanResult.scanMessage = content
if (scanResult.success) {
// that.getfocus();//不能自动获取焦点
- that.$emit("fromLocationBlur", scanResult);
+ that.$emit("getInputMsgResult", scanResult);
} else {
that.losefocus();
this.$refs.comMessage.showErrorMessage(scanResult.message, res => {
@@ -173,7 +173,7 @@
}
});
}, 200);
- }
+ // }
},
losefocus() {
let that = this;
@@ -192,6 +192,7 @@
},
batchProps(newVal) {
this.batch = newVal
+ console.log(999,this.batch)
},
}
}
From 870519221b36966e93ecef161e7608dd05ff7af3 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Thu, 7 Nov 2024 11:11:25 +0800
Subject: [PATCH 085/201] =?UTF-8?q?=E5=8F=91=E6=96=99=E5=8E=BB=E6=8E=89ret?=
=?UTF-8?q?urn?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/issue/job/issueDetailBatch.vue | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/pages/issue/job/issueDetailBatch.vue b/src/pages/issue/job/issueDetailBatch.vue
index 97568dad..15272fa9 100644
--- a/src/pages/issue/job/issueDetailBatch.vue
+++ b/src/pages/issue/job/issueDetailBatch.vue
@@ -481,7 +481,6 @@
}
console.log("提交参数", params);
- return
issueJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
From cef8e66cb922daa7a0c742193b1c57ec59a2c271 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Thu, 7 Nov 2024 13:41:36 +0800
Subject: [PATCH 086/201] =?UTF-8?q?=E5=90=88=E6=A0=BC=E8=BD=AC=E9=9A=94?=
=?UTF-8?q?=E7=A6=BB=E9=9C=80=E6=B1=82=20=20=20YT-734pda=E6=89=80=E6=9C=89?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD=E6=8F=90=E7=A4=BA=E9=97=AE=E9=A2=98=EF=BC=8C?=
=?UTF-8?q?=E6=89=AB=E6=8F=8F=E5=BA=93=E4=BD=8D=E7=9A=84=EF=BC=8C=E6=89=AB?=
=?UTF-8?q?=E6=8F=8F=E7=9A=84=E6=98=AF=E7=AE=B1=E7=A0=81=EF=BC=8C=E6=8F=90?=
=?UTF-8?q?=E7=A4=BA=E8=BE=93=E5=85=A5=E5=BA=93=E4=BD=8D=E4=B8=BA=E7=A9=BA?=
=?UTF-8?q?=EF=BC=9B=E6=89=AB=E6=8F=8F=E7=AE=B1=E7=A0=81=EF=BC=8C=E6=89=AB?=
=?UTF-8?q?=E6=8F=8F=E7=9A=84=E6=98=AF=E5=BA=93=E4=BD=8D=EF=BC=8C=E6=8F=90?=
=?UTF-8?q?=E7=A4=BA=E8=BE=93=E5=85=A5=E7=9A=84=E7=AE=B1=E7=A0=81=E4=B8=BA?=
=?UTF-8?q?=E7=A9=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/mycomponents/scan/winScanLocation.vue | 8 +-
.../scan/winScanPackAndLocation.vue | 5 +
.../inventoryMove/coms/comMoveRecord.vue | 1271 +++++++++--------
.../inventoryMove/coms/okToHoldRecordPack.vue | 58 +-
4 files changed, 697 insertions(+), 645 deletions(-)
diff --git a/src/mycomponents/scan/winScanLocation.vue b/src/mycomponents/scan/winScanLocation.vue
index 26e2b201..a7f363c5 100644
--- a/src/mycomponents/scan/winScanLocation.vue
+++ b/src/mycomponents/scan/winScanLocation.vue
@@ -38,7 +38,7 @@
components: {
winComScan,
},
- emits: ["getLocation"],
+ emits: ["getLocation","clearFromLocation"],
props: {
title: {
type: String,
@@ -101,10 +101,10 @@
}
if(this.code==undefined){
uni.hideLoading();
- this.showErrorMessage("扫描库位[" + this.code + "]为空,请输入正确的库位")
+ this.showErrorMessage("扫描库位为空,请输入正确的库位")
return
}
-
+ console.log(888,this.code)
getBasicLocationByCode(this.code).then(res => {
uni.hideLoading();
@@ -112,6 +112,7 @@
let result = res.data.list[0];
if(result.code!=this.code){
this.showErrorMessage('未查询到库位[' + this.code + ']')
+ this.$emit('clearFromLocation',this.code)
return;
}
var type = result.type;
@@ -131,6 +132,7 @@
}
} else {
this.showErrorMessage('未查询到库位[' + this.code + ']')
+ this.$emit('clearFromLocation',this.code)
}
}).catch(error => {
diff --git a/src/mycomponents/scan/winScanPackAndLocation.vue b/src/mycomponents/scan/winScanPackAndLocation.vue
index 43b14388..2ae6adda 100644
--- a/src/mycomponents/scan/winScanPackAndLocation.vue
+++ b/src/mycomponents/scan/winScanPackAndLocation.vue
@@ -337,6 +337,11 @@
})
}
this.chooseWhich = '2'
+ if(!result.label.itemCode){
+ this.showErrorMessage('扫描标签不对,请重新扫描')
+ this.$emit('clearItemCode',result.label.code)
+ return
+ }
if (res.data && res.data.list && res.data.list.length > 1) {
this.showBalanceSelect(res.data.list);
} else {
diff --git a/src/pages/inventoryMove/coms/comMoveRecord.vue b/src/pages/inventoryMove/coms/comMoveRecord.vue
index bf25e86c..d4408686 100644
--- a/src/pages/inventoryMove/coms/comMoveRecord.vue
+++ b/src/pages/inventoryMove/coms/comMoveRecord.vue
@@ -1,632 +1,641 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/pages/inventoryMove/coms/okToHoldRecordPack.vue b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
index 3ddc1ce5..d30b9cfb 100644
--- a/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
+++ b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
@@ -5,7 +5,7 @@
需求信息
-
+
来源库位:
@@ -36,7 +36,7 @@
-
+
@@ -91,6 +91,14 @@
type: String,
default: ''
},
+ isClearFromLocationCode:{
+ type: Boolean,
+ default: false
+ },
+ isClearItemCode:{
+ type: Boolean,
+ default: false
+ },
},
mounted() {
},
@@ -103,6 +111,10 @@
// 显示箱码
itemCodeClick(){
// this.$refs.scanLocationCode.openScanPopup()
+ if(!this.fromLocationCode){
+ this.$refs.comMessage.showMessage("请先扫描来源库位")
+ return
+ }
this.$emit("itemCodeClick");
},
confirm(){
@@ -117,12 +129,19 @@
this.$emit("confirm",obj);
},
fromLocationScanMsg(){
+ console.log(111,this.fromLocationCode)
this.scanMsg = this.fromLocationCode
+ this.fromWitch = 'fromLocationScanMsg'
this.handelScanMsg()
},
itemCodeScanMsg(){
- this.scanMsg = this.itemCode
- this.handelScanMsg()
+ if(!this.fromLocationCode){
+ this.$refs.comMessage.showMessage("请先扫描来源库位")
+ return
+ }
+ this.fromWitch = 'itemCodeScanMsg'
+ this.scanMsg = this.itemCode
+ this.handelScanMsg()
},
handelScanMsg() {
//点击了回车
@@ -131,7 +150,7 @@
// mask: true
// })
let that = this;
- console.log(that.scanMsg)
+ console.log(777,that.scanMsg)
// if(index==-1){
// that.scanMsg =that.scanMsg + "\n";
// }
@@ -162,7 +181,8 @@
scanResult.scanMessage = content
if (scanResult.success) {
// that.getfocus();//不能自动获取焦点
- that.$emit("getInputMsgResult", scanResult);
+ console.log(scanResult)
+ that.$emit("getInputMsgResult", scanResult,this.fromWitch);
} else {
that.losefocus();
this.$refs.comMessage.showErrorMessage(scanResult.message, res => {
@@ -183,12 +203,28 @@
},
},
watch: {
- fromLocationCodeProps(newVal) {
- console.log(newVal)
- this.fromLocationCode = newVal
+ fromLocationCodeProps:{
+ handler(newVal, oldVal) {
+ console.log('wer',this.isClearFromLocationCode)
+ console.log('wer',newVal)
+ if(this.isClearFromLocationCode){
+ this.fromLocationCode=''
+ }else{
+ this.fromLocationCode = newVal
+ }
+ },
+ // deep: true,
+ // immediate: true
},
- itemCodeProps(newVal) {
- this.itemCode = newVal
+ itemCodeProps: {
+ handler(newVal, oldVal) {
+ if(this.isClearItemCode){
+ this.itemCode=''
+ this.batch=''
+ }else{
+ this.itemCode = newVal
+ }
+ },
},
batchProps(newVal) {
this.batch = newVal
From 5ea1751c903ab34d8e50fb84ffde9266fcb299e8 Mon Sep 17 00:00:00 2001
From: lijuncheng
Date: Thu, 7 Nov 2024 17:03:47 +0800
Subject: [PATCH 087/201] =?UTF-8?q?YT-680=20=E4=BF=AE=E6=94=B9=E7=9B=B4?=
=?UTF-8?q?=E6=8E=A5=E5=8F=91=E6=96=99=E6=8C=89=E6=89=B9=E6=AC=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/mycomponents/query/fifoQuery.vue | 297 ++++++++++++++++++
src/pages/issue/record/directIssueByBatch.vue | 19 +-
2 files changed, 308 insertions(+), 8 deletions(-)
create mode 100644 src/mycomponents/query/fifoQuery.vue
diff --git a/src/mycomponents/query/fifoQuery.vue b/src/mycomponents/query/fifoQuery.vue
new file mode 100644
index 00000000..8e19f4e5
--- /dev/null
+++ b/src/mycomponents/query/fifoQuery.vue
@@ -0,0 +1,297 @@
+
+
+
+
+
+
+ 先进先出查询
+
+
+ 关闭
+
+
+
+
+
+
+
+ 物料号:
+
+
+
+
+
+
+
+
+ 仓库:
+
+
+
+
+
+
+
+
+ ({{index+1}}) 物料代码 : {{item.code}}
+
+
+ 名称 : {{item.name}}
+
+
+ 描述1 : {{item.desc1}}
+
+
+ 描述2 : {{item.desc1}}
+
+
+
+
+
+
+
+
+
+
+ 批次
+ 库位
+ 状态
+ 数量
+ 单位
+
+
+
+ {{item.batch}}
+ {{item.locationCode}}
+ {{statusDesc(item.inventoryStatus)}}
+ {{item.totalQty}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/issue/record/directIssueByBatch.vue b/src/pages/issue/record/directIssueByBatch.vue
index 9457e8aa..2c8a1ab0 100644
--- a/src/pages/issue/record/directIssueByBatch.vue
+++ b/src/pages/issue/record/directIssueByBatch.vue
@@ -47,7 +47,8 @@
-
+
+
@@ -62,7 +63,8 @@
import {
goHome,
getPackingNumberAndBatchByList,
- deepCopyData
+ deepCopyData,
+ getSwitchInfoByCode
} from '@/common/basic.js';
import {
@@ -101,8 +103,8 @@
import recordDetailCard from '@/mycomponents/record/recordDetailCard.vue'
import balanceSelect from '@/mycomponents/balance/balanceSelect.vue'
import winComScanBalance from '@/mycomponents/scan/winComScanBalance.vue'
- import balanceQuery from '@/mycomponents/query/balanceQuery.vue'
-
+ import fifoQuery from '@/mycomponents/query/fifoQuery.vue'
+
export default {
components: {
@@ -116,7 +118,7 @@
recordDetailCard,
balanceSelect,
winComScanBalance,
- balanceQuery
+ fifoQuery
},
data() {
return {
@@ -139,7 +141,8 @@
positionInfo: "请选择生产线",
resultData: {},
itemCode: "",
- managementType: ''
+ managementType: '',
+ fifoSwitch:false
};
},
onLoad(option) {
@@ -148,7 +151,7 @@
})
this.clearData();
this.getBusinessType()
-
+ this.fifoSwitch = getSwitchInfoByCode("directIssueFifoSwitch")
// if (this.positionList.length == 0) {
getWorkShopLineStation().then(res => {
if (res.data != null && res.data.length > 0) {
@@ -169,7 +172,7 @@
if (e.index === 0) {
goHome();
} else if (e.index == 1) {
- this.$refs.refBalanceQuery.showDrawer();
+ this.$refs.refFifoQuery.showDrawer();
this.closeScanPopup();
}
},
From e9a30bf29301b15b7a7772e1d8ab37c407e02757 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Thu, 7 Nov 2024 17:11:53 +0800
Subject: [PATCH 088/201] =?UTF-8?q?YT-765=E5=88=B6=E5=93=81=E7=9B=B4?=
=?UTF-8?q?=E6=8E=A5=E6=94=B6=E8=B4=A7=EF=BC=8C=E8=BE=93=E5=85=A5=E4=B8=8D?=
=?UTF-8?q?=E6=AD=A3=E7=A1=AE=E5=88=B6=E5=93=81=E6=A0=87=E7=AD=BE=EF=BC=8C?=
=?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=8F=90=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../productReceipt/record/productReceiptRecordByBatch.vue | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/pages/productReceipt/record/productReceiptRecordByBatch.vue b/src/pages/productReceipt/record/productReceiptRecordByBatch.vue
index d12eabf4..c50e0cff 100644
--- a/src/pages/productReceipt/record/productReceiptRecordByBatch.vue
+++ b/src/pages/productReceipt/record/productReceiptRecordByBatch.vue
@@ -145,13 +145,17 @@
getScanResult(result) {
let label = result.label;
let pack = result.package;
-
+ if(!result.label.itemCode){
+ this.showErrorMessage('扫描标签不对,请重新扫描')
+ this.$emit('clearItemCode',result.label)
+ return
+ }
var item = this.detailSource.find(res => {
if (res.itemCode == label.itemCode) {
return res
}
})
-
+
if (item == undefined) {
var itemp = this.createItemInfo(label, pack);
let newDetail = this.createDetailInfo(label, pack);
From 72674ec5dab89a0a8505228fb4e7fa9bcafcf920 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Thu, 7 Nov 2024 17:13:27 +0800
Subject: [PATCH 089/201] =?UTF-8?q?YT-767pda=20=E7=9B=B4=E6=8E=A5=E7=A7=BB?=
=?UTF-8?q?=E5=BA=93=EF=BC=8C=E5=BC=B9=E5=87=BA=E4=B8=A4=E4=B8=AA=E6=89=AB?=
=?UTF-8?q?=E6=9D=A5=E8=BF=90=E5=BA=93=E4=BD=8D=20=20=E7=9B=B4=E6=8E=A5?=
=?UTF-8?q?=E5=90=88=E6=A0=BC=E8=BD=AC=E9=9A=94=E7=A6=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/mycomponents/scan/winScanLocation.vue | 2 -
.../scan/winScanPackAndLocation.vue | 3 +-
.../inventoryMove/coms/comMoveRecord.vue | 40 +++++++++----------
.../inventoryMove/coms/okToHoldRecordPack.vue | 20 +++++-----
4 files changed, 33 insertions(+), 32 deletions(-)
diff --git a/src/mycomponents/scan/winScanLocation.vue b/src/mycomponents/scan/winScanLocation.vue
index a7f363c5..2d3d491f 100644
--- a/src/mycomponents/scan/winScanLocation.vue
+++ b/src/mycomponents/scan/winScanLocation.vue
@@ -92,7 +92,6 @@
title: '扫描中...',
mask: true
});
- console.log(111,result)
let label = result.label;
if (label.barType === 'QRCode') {
this.code = label.locationCode;
@@ -104,7 +103,6 @@
this.showErrorMessage("扫描库位为空,请输入正确的库位")
return
}
- console.log(888,this.code)
getBasicLocationByCode(this.code).then(res => {
uni.hideLoading();
diff --git a/src/mycomponents/scan/winScanPackAndLocation.vue b/src/mycomponents/scan/winScanPackAndLocation.vue
index 2ae6adda..7a25ef9e 100644
--- a/src/mycomponents/scan/winScanPackAndLocation.vue
+++ b/src/mycomponents/scan/winScanPackAndLocation.vue
@@ -339,7 +339,7 @@
this.chooseWhich = '2'
if(!result.label.itemCode){
this.showErrorMessage('扫描标签不对,请重新扫描')
- this.$emit('clearItemCode',result.label.code)
+ this.$emit('clearItemCode',result.label)
return
}
if (res.data && res.data.list && res.data.list.length > 1) {
@@ -397,6 +397,7 @@
mustHavaBalance(datas) {
if (datas.length == 0) {
this.showErrorMessage(this.getQueryCondition() + '\n未查找到库存记录', res => {
+ this.$emit('clearItemCode',this.scanResult)
this.packGetFocus();
})
} else if (datas.length == 1) {
diff --git a/src/pages/inventoryMove/coms/comMoveRecord.vue b/src/pages/inventoryMove/coms/comMoveRecord.vue
index d4408686..e256104c 100644
--- a/src/pages/inventoryMove/coms/comMoveRecord.vue
+++ b/src/pages/inventoryMove/coms/comMoveRecord.vue
@@ -32,7 +32,7 @@
-
+
@@ -160,12 +160,7 @@
this.businessType = res.businessType;
this.fromLocationAreaTypeList = res.fromLocationAreaTypeList;
this.toLocationAreaTypeList = res.toLocationAreaTypeList;
- if(this.showOnePop){
- console.log(this.$refs.okToHoldRecordPackRef)
- this.$refs.okToHoldRecordPackRef.show = true
- }else{
- this.showFromLocationPopup();
- }
+
} else {
this.showErrorMessage(res.message)
}
@@ -242,6 +237,7 @@
},
openScanPopup() {
+
if (this.fromLocationCode == "") {
this.showFromLocationPopup();
return
@@ -250,14 +246,21 @@
},
showFromLocationPopup() {
this.$nextTick(() => {
- this.$refs.scanFromLocationCode.openScanPopup();
+ if(this.showOnePop){
+ this.$refs.okToHoldRecordPackRef.showOne = true
+ }else{
+ this.$refs.scanFromLocationCode.openScanPopup();
+ }
})
},
getFromLocation(location) {
this.fromLocationCode = location.code;
this.fromLocationInfo = location;
if(!this.showOnePop){
- this.openScanPopup();
+ this.openScanPopup();
+ }else{
+ this.itemCode =''
+ this.batch =''
}
},
getToLocation(location, code) {
@@ -265,12 +268,11 @@
this.toLocationInfo = location;
},
getScanResult(result,managementType) {
- console.log(356,result)
if(this.showOnePop){
this.itemCode= result.balance.itemCode
this.batch = result.balance.batch
- console.log(357,this.itemCode)
- console.log(358,this.batch )
+ this.isClearItemCode = false
+ debugger
this.getResult = result//存储接受的结果
this.$refs.scanPopup.closeScanPopup()
@@ -419,20 +421,20 @@
calcHandleQty(this.detailSource);
},
getInputMsgResult(result,fromWitch){
- console.log('pooo',result)
if(fromWitch == 'fromLocationScanMsg'){
- this.isClearFromLocationCode = false
this.$refs.scanFromLocationCode.getScanResult(result)
}else if(fromWitch == 'itemCodeScanMsg'){
- console.log(7878,this.fromLocationCode)
result.fromLocationCode = this.fromLocationCode
this.$refs.scanPopup.getScanResult(result)
}
+ this.isClearFromLocationCode = false
this.$refs.scanFromLocationCode.getScanResult(result)
}else if(fromWitch == 'itemCodeScanMsg'){
result.fromLocationCode = this.fromLocationCode
this.$refs.scanPopup.getScanResult(result)
}
},
// 清除来源库位
clearFromLocation(fromLocationCodeParams){
this.fromLocationCode = fromLocationCodeParams
- console.log('rwyrwey',this.fromLocationCode)
+ this.itemCode =''
+ this.batch =''
this.isClearFromLocationCode = true
},
// 清除零件
- clearItemCode(itemCodeParams){
- this.itemCode = itemCodeParams
+ clearItemCode(label){
+ this.itemCode = label.itemCode
+ this.batch =''
this.isClearItemCode = true
},
showErrorMessage(message) {
@@ -595,8 +597,6 @@
var info = getPackingNumberAndBatchByList(this.managementList, detail.itemCode,
detail.packingNumber, detail.toLocationCode, detail.batch);
var submitItem = deepCopyData(detail)
- console.log(233,submitItem)
- console.log(244,info)
submitItem.itemCode = detail.itemCode;
submitItem.itemName = detail.package.itemName;
submitItem.itemDesc1 = detail.package.itemDesc1;
diff --git a/src/pages/inventoryMove/coms/okToHoldRecordPack.vue b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
index d30b9cfb..2142f178 100644
--- a/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
+++ b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
@@ -9,14 +9,14 @@
来源库位:
-
+
零件:
-
+
@@ -65,12 +65,11 @@
emits: ["showFromLocationPopup",'itemCodeClick','confirm','getInputMsgResult'],
data() {
return {
- show:true,
handleQty:0,
fromLocationCode:'',
itemCode:'',
batch:'',
- showOne:true
+ showOne:false
}
},
props: {
@@ -201,12 +200,13 @@
that.boxfocus = false;
});
},
+ onClear(){
+ console.log(111)
+ }
},
watch: {
fromLocationCodeProps:{
handler(newVal, oldVal) {
- console.log('wer',this.isClearFromLocationCode)
- console.log('wer',newVal)
if(this.isClearFromLocationCode){
this.fromLocationCode=''
}else{
@@ -220,15 +220,17 @@
handler(newVal, oldVal) {
if(this.isClearItemCode){
this.itemCode=''
- this.batch=''
}else{
this.itemCode = newVal
}
},
},
batchProps(newVal) {
- this.batch = newVal
- console.log(999,this.batch)
+ if(this.isClearItemCode){
+ this.batch=''
+ }else{
+ this.batch = newVal
+ }
},
}
}
From 47445f5270dfe0f162c1933cb71289976ddb324e Mon Sep 17 00:00:00 2001
From: lijuncheng
Date: Thu, 7 Nov 2024 17:32:01 +0800
Subject: [PATCH 090/201] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BC=80=E5=85=B3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/index/index.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index 78afe347..234ec17f 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -388,7 +388,7 @@
console.log("包装规格获取失败", res)
})
- var switchCode="FgPutawayLocationCodeValidate,SemiPutawayLocationCodeValidate,PurchasePutawayToLocationCodeValidate,IssueToLocationCodeValidate,fgProductReceipCommitValidate,semiProductReceipCommitValidate,purchasereceiptPrintPDA,purchaseReceiptLocationCodeValidate,CreateProductputawayRequestAfterProductreceiptRecordCreated,EnableQms,ShowPackingNumber";
+ var switchCode="FgPutawayLocationCodeValidate,SemiPutawayLocationCodeValidate,PurchasePutawayToLocationCodeValidate,IssueToLocationCodeValidate,fgProductReceipCommitValidate,semiProductReceipCommitValidate,purchasereceiptPrintPDA,purchaseReceiptLocationCodeValidate,CreateProductputawayRequestAfterProductreceiptRecordCreated,EnableQms,ShowPackingNumber,directIssueFifoSwitch";
getSwitchByCode(switchCode).then(res=>{
uni.setStorageSync("switch", res.data)
From 81ab26d52d427f50fad3e2374fbf0c531638bcd1 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Fri, 8 Nov 2024 10:11:14 +0800
Subject: [PATCH 091/201] =?UTF-8?q?YT-668=E5=AF=84=E5=94=AE=E5=BA=93?=
=?UTF-8?q?=E7=9B=B4=E6=8E=A5=E5=8F=91=E8=B4=A7=E3=80=81=E5=AE=A2=E6=88=B7?=
=?UTF-8?q?=E7=9B=B4=E6=8E=A5=E9=80=80=E8=B4=A7=EF=BC=8C=E5=8F=AA=E6=9C=89?=
=?UTF-8?q?=E8=BF=99=E4=BF=A9=E4=B8=AA=E7=9B=B4=E6=8E=A5=E7=9A=84=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD=E4=B8=8D=E8=83=BD=E4=BF=AE=E6=94=B9=E6=95=B0=E9=87=8F?=
=?UTF-8?q?=EF=BC=8C=E6=98=AF=E5=90=A6=E9=9C=80=E8=A6=81=E5=B7=A6=E6=BB=91?=
=?UTF-8?q?=E7=BC=96=E8=BE=91=20=20=E7=9B=B4=E6=8E=A5=E5=90=88=E6=A0=BC?=
=?UTF-8?q?=E8=BD=AC=E9=9A=94=E7=A6=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/mycomponents/record/recordComDetailCard.vue | 9 ++++++---
src/pages/customerReturn/record/returnRecord.vue | 9 ++++++++-
src/pages/deliver/record/deliverRecord.vue | 12 +++++++-----
src/pages/inventoryMove/coms/comMoveRecord.vue | 6 +++---
src/pages/inventoryMove/coms/okToHoldRecordPack.vue | 5 ++++-
5 files changed, 28 insertions(+), 13 deletions(-)
diff --git a/src/mycomponents/record/recordComDetailCard.vue b/src/mycomponents/record/recordComDetailCard.vue
index c712871e..bd6736cf 100644
--- a/src/mycomponents/record/recordComDetailCard.vue
+++ b/src/mycomponents/record/recordComDetailCard.vue
@@ -4,7 +4,7 @@
-
+
item.balanceQty < item.handleQty)
+ if(obj){
+ this.$refs.comMessage.showConfirmWarningModal('批次[' +obj.batch + ']数量[' + obj.handleQty + ']不允许大于库存数量[' +obj.balanceQty + ']')
+ uni.hideLoading()
+ return
+ }
customerReturnRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
diff --git a/src/pages/deliver/record/deliverRecord.vue b/src/pages/deliver/record/deliverRecord.vue
index 0b10be85..1cf8f54e 100644
--- a/src/pages/deliver/record/deliverRecord.vue
+++ b/src/pages/deliver/record/deliverRecord.vue
@@ -175,10 +175,6 @@
} else {
this.setData(result)
}
-
-
-
-
},
setData(result){
@@ -343,7 +339,13 @@
if (res.success) {
this.managementList = res.list;
var params = this.setParams()
- console.log("提交" + JSON.stringify(params))
+ console.log("提交",params)
+ let obj = params.subList.find(item=>item.balanceQty < item.handleQty)
+ if(obj){
+ this.$refs.comMessage.showConfirmWarningModal('批次[' +obj.batch + ']数量[' + obj.handleQty + ']不允许大于库存数量[' +obj.balanceQty + ']')
+ uni.hideLoading()
+ return
+ }
deliverRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
diff --git a/src/pages/inventoryMove/coms/comMoveRecord.vue b/src/pages/inventoryMove/coms/comMoveRecord.vue
index e256104c..1599bdca 100644
--- a/src/pages/inventoryMove/coms/comMoveRecord.vue
+++ b/src/pages/inventoryMove/coms/comMoveRecord.vue
@@ -160,7 +160,7 @@
this.businessType = res.businessType;
this.fromLocationAreaTypeList = res.fromLocationAreaTypeList;
this.toLocationAreaTypeList = res.toLocationAreaTypeList;
-
+ this.showFromLocationPopup()
} else {
this.showErrorMessage(res.message)
}
@@ -245,13 +245,13 @@
this.$refs.scanPopup.openScanPopupForType(this.fromLocationCode, this.businessType);
},
showFromLocationPopup() {
- this.$nextTick(() => {
+ setTimeout(()=>{
if(this.showOnePop){
this.$refs.okToHoldRecordPackRef.showOne = true
}else{
this.$refs.scanFromLocationCode.openScanPopup();
}
- })
+ },200)
},
getFromLocation(location) {
this.fromLocationCode = location.code;
diff --git a/src/pages/inventoryMove/coms/okToHoldRecordPack.vue b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
index 2142f178..fae7571e 100644
--- a/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
+++ b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
@@ -9,7 +9,10 @@
来源库位:
-
+
+
+
+
From 2eab172859e35cec6633751c30283005692fd141 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Fri, 8 Nov 2024 14:19:47 +0800
Subject: [PATCH 092/201] =?UTF-8?q?=E5=90=88=E6=A0=BC=E8=BD=AC=E9=9A=94?=
=?UTF-8?q?=E7=A6=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../inventoryMove/coms/comMoveRecord.vue | 85 ++++++++++++-------
.../inventoryMove/coms/comMoveRecordCard.vue | 4 +-
.../inventoryMove/coms/okToHoldRecordPack.vue | 77 +++++------------
3 files changed, 76 insertions(+), 90 deletions(-)
diff --git a/src/pages/inventoryMove/coms/comMoveRecord.vue b/src/pages/inventoryMove/coms/comMoveRecord.vue
index 1599bdca..207753ee 100644
--- a/src/pages/inventoryMove/coms/comMoveRecord.vue
+++ b/src/pages/inventoryMove/coms/comMoveRecord.vue
@@ -12,7 +12,7 @@
+ :allowEditStatus="allowEditStatus" >
@@ -35,7 +35,7 @@
-
+
{
if(this.showOnePop){
+ this.$refs.okToHoldRecordPackRef.fromLocationCode = ''
+ this.$refs.okToHoldRecordPackRef.itemCode = ''
+ this.$refs.okToHoldRecordPackRef.batch = ''
+ this.$refs.okToHoldRecordPackRef.handleQty = 0
this.$refs.okToHoldRecordPackRef.showOne = true
+
}else{
this.$refs.scanFromLocationCode.openScanPopup();
}
@@ -267,20 +268,19 @@
this.toLocationCode = code;
this.toLocationInfo = location;
},
- getScanResult(result,managementType) {
+ getScanResult(result,managementTypeParams) {
+ this.managementType = managementTypeParams
if(this.showOnePop){
- this.itemCode= result.balance.itemCode
- this.batch = result.balance.batch
- this.isClearItemCode = false
- debugger
+ this.$refs.okToHoldRecordPackRef.itemCode= result.balance.itemCode
+ this.$refs.okToHoldRecordPackRef.batch = result.balance.batch
this.getResult = result//存储接受的结果
this.$refs.scanPopup.closeScanPopup()
}else{
- if(managementType == "BY_BATCH" ||managementType == "BY_QUANTITY" ){
- this.getScanResultAfterBatch(result)
+ if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){
+ this.getScanResultAfterBatch(result,managementTypeParams)
}else{
- this.getScanResultAfter(result)
+ this.getScanResultAfter(result,managementTypeParams)
}
}
@@ -302,7 +302,7 @@
// this.getResult.fromLocationCode = obj.fromLocationCode
this.getResult.label.batch = obj.handleQty
this.getResult.label.qty = obj.handleQty
- this.getScanResultAfterBatch(this.getResult)
+ this.getScanResultAfterBatch(this.getResult,this.managementType)
},
getScanResultAfter(result){
var balance = result.balance;
@@ -364,7 +364,7 @@
}
calcHandleQty(this.detailSource);
},
- getScanResultAfterBatch(result){
+ getScanResultAfterBatch(result,managementTypeParams){
var balance = result.balance;
this.balanceInfo = result.balance;
var pack = result.package;
@@ -387,18 +387,31 @@
newDetail.toInventoryStatus = this.toInventoryStatus;
}
newDetail.toLocationCode = this.toLocationCode;
+ newDetail.managementTypeParams = managementTypeParams;
newDetail.fromLocationCode = result.fromLocationCode
newDetail.handleQty = Number(result.label.qty)
itemp.subList.push(newDetail);
this.detailSource.push(itemp)
} else {
- var detail = item.subList.find(r => {
- if (r.batch == pack.batch &&
- r.fromLocationCode == balance.locationCode &&
- r.scaned == true) {
- return r;
- }
- })
+ var detail = ''
+ console.log(9988,managementTypeParams)
+ if(managementTypeParams == 'BY_QUANTITY'){
+ detail = item.subList.find(r => {
+ if (r.fromLocationCode == balance.locationCode &&
+ r.scaned == true) {
+ return r;
+ }
+ })
+ }else if(managementTypeParams == 'BY_BATCH'){
+ detail = item.subList.find(r => {
+ if (r.batch == pack.batch &&
+ r.fromLocationCode == balance.locationCode &&
+ r.scaned == true) {
+ return r;
+ }
+ })
+ }
+ console.log(detail)
if (detail == undefined) {
let newDetail = createDetailInfo(balance, pack);
// newDetail.inventoryStatus = balance.inventoryStatus;
@@ -412,12 +425,15 @@
newDetail.packingNumber = pack.number;
}
newDetail.toLocationCode = this.toLocationCode;
+ newDetail.managementTypeParams = managementTypeParams;
newDetail.fromLocationCode = result.fromLocationCode
item.subList.push(newDetail);
} else {
+ console.log(999,detail.handleQty)
detail.handleQty =calc.add(detail.handleQty, result.label.qty)
}
}
+
calcHandleQty(this.detailSource);
},
getInputMsgResult(result,fromWitch){
@@ -426,17 +442,17 @@
},
// 清除来源库位
clearFromLocation(fromLocationCodeParams){
- this.fromLocationCode = fromLocationCodeParams
- this.itemCode =''
- this.batch =''
- this.isClearFromLocationCode = true
+ this.$refs.okToHoldRecordPackRef.fromLocationCode = ''
+ this.$refs.okToHoldRecordPackRef.itemCode =''
+ this.$refs.okToHoldRecordPackRef.batch =''
+ // this.isClearFromLocationCode = true
},
- // 清除零件
+ // 清除批次和物料
clearItemCode(label){
- this.itemCode = label.itemCode
- this.batch =''
- this.isClearItemCode = true
+ this.$refs.okToHoldRecordPackRef.itemCode =''
+ this.$refs.okToHoldRecordPackRef.batch =''
},
+
showErrorMessage(message) {
if (this.$refs.scanPopup) {
this.$refs.scanPopup.packLoseFocus()
@@ -547,7 +563,12 @@
}
// if(this.balanceInfo)
console.log("提交" ,params)
-
+ let obj = params.subList.find(item=>item.balanceQty < item.handleQty)
+ if(obj){
+ this.$refs.comMessage.showConfirmWarningModal('批次[' +obj.batch + ']数量[' + obj.handleQty + ']不允许大于库存数量[' +obj.balanceQty + ']')
+ uni.hideLoading()
+ return
+ }
inventoryMoveRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
diff --git a/src/pages/inventoryMove/coms/comMoveRecordCard.vue b/src/pages/inventoryMove/coms/comMoveRecordCard.vue
index 8c0449b2..d8fc1a3b 100644
--- a/src/pages/inventoryMove/coms/comMoveRecordCard.vue
+++ b/src/pages/inventoryMove/coms/comMoveRecordCard.vue
@@ -16,9 +16,9 @@
-
+ :isShowLocation="true" :allowEditStatus='allowEditStatus' :isShowPack='item.managementTypeParams == "BY_PACKAGING"' :isShowBatch='item.managementTypeParams == "BY_PACKAGING" || item.managementTypeParams == "BY_Batch"'>
diff --git a/src/pages/inventoryMove/coms/okToHoldRecordPack.vue b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
index fae7571e..013b738e 100644
--- a/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
+++ b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue
@@ -10,8 +10,8 @@
来源库位:
-
-
+
+
@@ -19,7 +19,10 @@
零件:
-
+
+
+
+
@@ -28,6 +31,7 @@
批次:
+
@@ -65,7 +69,7 @@
components: {
winScanLocation
},
- emits: ["showFromLocationPopup",'itemCodeClick','confirm','getInputMsgResult'],
+ emits: ["showFromLocationPopup",'itemCodeClick','confirm','getInputMsgResult','clearFromLocationCode','clickBtnClearItemCode'],
data() {
return {
handleQty:0,
@@ -76,31 +80,11 @@
}
},
props: {
- fromLocationCodeProps:{
- type: String,
- default: ''
- },
// 是否显示第一层弹窗
showOnePop: {
type: Boolean,
default: false
},
- itemCodeProps:{
- type: String,
- default: ''
- },
- batchProps:{
- type: String,
- default: ''
- },
- isClearFromLocationCode:{
- type: Boolean,
- default: false
- },
- isClearItemCode:{
- type: Boolean,
- default: false
- },
},
mounted() {
},
@@ -131,12 +115,15 @@
this.$emit("confirm",obj);
},
fromLocationScanMsg(){
+ if (this.fromLocationCode) {
console.log(111,this.fromLocationCode)
this.scanMsg = this.fromLocationCode
this.fromWitch = 'fromLocationScanMsg'
this.handelScanMsg()
+ }
},
itemCodeScanMsg(){
+ if (this.itemCode) {
if(!this.fromLocationCode){
this.$refs.comMessage.showMessage("请先扫描来源库位")
return
@@ -144,6 +131,7 @@
this.fromWitch = 'itemCodeScanMsg'
this.scanMsg = this.itemCode
this.handelScanMsg()
+ }
},
handelScanMsg() {
//点击了回车
@@ -157,7 +145,7 @@
// that.scanMsg =that.scanMsg + "\n";
// }
console.log(that.scanMsg.includes('\n'))
- // if (that.scanMsg.includes('\n')) {
+ if (that.scanMsg) {
// that.scanMsg = 'HPQ;V1.0;ICE115F11161AG;PP20230427000027;B20230427002;Q50';
setTimeout(() => {
that.losefocus();
@@ -195,7 +183,7 @@
}
});
}, 200);
- // }
+ }
},
losefocus() {
let that = this;
@@ -203,38 +191,15 @@
that.boxfocus = false;
});
},
- onClear(){
- console.log(111)
- }
- },
- watch: {
- fromLocationCodeProps:{
- handler(newVal, oldVal) {
- if(this.isClearFromLocationCode){
- this.fromLocationCode=''
- }else{
- this.fromLocationCode = newVal
- }
- },
- // deep: true,
- // immediate: true
+ clickBtnClearFromLocation(){
+ this.$emit("clickBtnClearFromLocation");
},
- itemCodeProps: {
- handler(newVal, oldVal) {
- if(this.isClearItemCode){
- this.itemCode=''
- }else{
- this.itemCode = newVal
- }
- },
- },
- batchProps(newVal) {
- if(this.isClearItemCode){
- this.batch=''
- }else{
- this.batch = newVal
- }
+ clickBtnClearItemCode(){
+ this.$emit("clickBtnClearItemCode");
},
+ },
+ watch: {
+
}
}
From a5dcb615c6da45d73a530756892a69d1c9b87103 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Fri, 8 Nov 2024 14:41:08 +0800
Subject: [PATCH 093/201] =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E5=90=88=E6=A0=BC?=
=?UTF-8?q?=E8=BD=AC=E9=9A=94=E7=A6=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/inventoryMove/coms/comMoveRecord.vue | 13 +++++++++++--
src/pages/inventoryMove/coms/comMoveRecordCard.vue | 2 +-
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/src/pages/inventoryMove/coms/comMoveRecord.vue b/src/pages/inventoryMove/coms/comMoveRecord.vue
index 207753ee..18882bf5 100644
--- a/src/pages/inventoryMove/coms/comMoveRecord.vue
+++ b/src/pages/inventoryMove/coms/comMoveRecord.vue
@@ -429,8 +429,17 @@
newDetail.fromLocationCode = result.fromLocationCode
item.subList.push(newDetail);
} else {
- console.log(999,detail.handleQty)
- detail.handleQty =calc.add(detail.handleQty, result.label.qty)
+ // console.log(999,detail.handleQty)
+ // detail.handleQty =calc.add(detail.handleQty, result.label.qty)
+ if(managementTypeParams == 'BY_QUANTITY'){
+ this.showErrorMessage(
+ "批次[]\n" + "库位[" + detail.fromLocationCode + "]\n" +
+ "已经存在")
+ }else if(managementTypeParams == 'BY_BATCH'){
+ this.showErrorMessage(
+ "批次[" + detail.batch + "]\n" + "库位[" + detail.fromLocationCode + "]\n" +
+ "已经存在")
+ }
}
}
diff --git a/src/pages/inventoryMove/coms/comMoveRecordCard.vue b/src/pages/inventoryMove/coms/comMoveRecordCard.vue
index d8fc1a3b..496893f6 100644
--- a/src/pages/inventoryMove/coms/comMoveRecordCard.vue
+++ b/src/pages/inventoryMove/coms/comMoveRecordCard.vue
@@ -18,7 +18,7 @@
:right-options="item.scaned?scanOptions:detailOptions">
+ :isShowLocation="true" :allowEditStatus='allowEditStatus' :isShowPack='item.managementTypeParams == "BY_PACKAGING"' >
From badc865538ca90e23e0cb96be957cb5c94650ca4 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Fri, 8 Nov 2024 14:48:51 +0800
Subject: [PATCH 094/201] =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E9=9A=94=E7=A6=BB?=
=?UTF-8?q?=E8=BD=AC=E5=90=88=E6=A0=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/inventoryMove/coms/comMoveRecord.vue | 8 +++++++-
src/pages/inventoryMove/record/holdToOkRecord.vue | 2 +-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/pages/inventoryMove/coms/comMoveRecord.vue b/src/pages/inventoryMove/coms/comMoveRecord.vue
index 18882bf5..a3948b52 100644
--- a/src/pages/inventoryMove/coms/comMoveRecord.vue
+++ b/src/pages/inventoryMove/coms/comMoveRecord.vue
@@ -392,6 +392,10 @@
newDetail.handleQty = Number(result.label.qty)
itemp.subList.push(newDetail);
this.detailSource.push(itemp)
+
+ this.clearFromLocation()
+ this.$refs.okToHoldRecordPackRef.handleQty = 0
+ this.$refs.okToHoldRecordPackRef.showOne = false
} else {
var detail = ''
console.log(9988,managementTypeParams)
@@ -428,6 +432,9 @@
newDetail.managementTypeParams = managementTypeParams;
newDetail.fromLocationCode = result.fromLocationCode
item.subList.push(newDetail);
+ this.clearFromLocation()
+ this.$refs.okToHoldRecordPackRef.handleQty = 0
+ this.$refs.okToHoldRecordPackRef.showOne = false
} else {
// console.log(999,detail.handleQty)
// detail.handleQty =calc.add(detail.handleQty, result.label.qty)
@@ -442,7 +449,6 @@
}
}
}
-
calcHandleQty(this.detailSource);
},
getInputMsgResult(result,fromWitch){
diff --git a/src/pages/inventoryMove/record/holdToOkRecord.vue b/src/pages/inventoryMove/record/holdToOkRecord.vue
index d708cc99..224a5c05 100644
--- a/src/pages/inventoryMove/record/holdToOkRecord.vue
+++ b/src/pages/inventoryMove/record/holdToOkRecord.vue
@@ -1,6 +1,6 @@
-
+
From 43341f9feb13783a8bf34be218e2ed77bddb4b75 Mon Sep 17 00:00:00 2001
From: wangyufei <2267742828@qq.com>
Date: Fri, 8 Nov 2024 15:57:28 +0800
Subject: [PATCH 095/201] =?UTF-8?q?=E5=8D=8F=E5=AE=9A=E6=94=B6=E8=B4=A7?=
=?UTF-8?q?=E4=BB=BB=E5=8A=A1+=E5=8F=B7=E8=AF=95=E6=94=B6=E8=B4=A7?=
=?UTF-8?q?=E4=BB=BB=E5=8A=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages.json | 56 +++++++++++++++++++
.../purchaseReceipt/job/purchaseReceipt.vue | 2 +-
.../job/purchaseReceiptDevelop.vue | 52 +++++++++++++++++
.../job/purchaseReceiptTool.vue | 52 +++++++++++++++++
.../purchaseReceipt/job/receiptDetail.vue | 15 +++--
src/pages/purchaseReceipt/job/receiptJob.vue | 16 +++++-
6 files changed, 184 insertions(+), 9 deletions(-)
create mode 100644 src/pages/purchaseReceipt/job/purchaseReceiptDevelop.vue
create mode 100644 src/pages/purchaseReceipt/job/purchaseReceiptTool.vue
diff --git a/src/pages.json b/src/pages.json
index 9e882972..8d0db267 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -254,6 +254,62 @@
}
}
},
+ {
+ "path": "pages/purchaseReceipt/job/purchaseReceiptTool",
+ "style": {
+ "navigationBarTitleText": "协定品收货",
+ "enablePullDownRefresh": true,
+ "titleNView": {
+ // "autoBackButton": "true",
+ "buttons": [
+ // 右边按钮
+ {
+
+ "float": "right",
+ "fontSize": "58rpx", //按钮上文字的大小
+ "text": "\ue696",
+ "fontSrc": "/static/ali_icon/iconfont.ttf"
+
+ },
+ {
+
+ "float": "right",
+ "fontSize": "52rpx", //按钮上文字的大小
+ "text": "\ue6e2",
+ "fontSrc": "/static/ali_icon/iconfont.ttf"
+ }
+ ]
+ }
+ }
+ },
+ {
+ "path": "pages/purchaseReceipt/job/purchaseReceiptDevelop",
+ "style": {
+ "navigationBarTitleText": "号试品收货",
+ "enablePullDownRefresh": true,
+ "titleNView": {
+ // "autoBackButton": "true",
+ "buttons": [
+ // 右边按钮
+ {
+
+ "float": "right",
+ "fontSize": "58rpx", //按钮上文字的大小
+ "text": "\ue696",
+ "fontSrc": "/static/ali_icon/iconfont.ttf"
+
+ },
+ {
+
+ "float": "right",
+ "fontSize": "52rpx", //按钮上文字的大小
+ "text": "\ue6e2",
+ "fontSrc": "/static/ali_icon/iconfont.ttf"
+ }
+ ]
+ }
+ }
+ },
{
"path": "pages/purchaseReceipt/job/purchaseReject",
"style": {
diff --git a/src/pages/purchaseReceipt/job/purchaseReceipt.vue b/src/pages/purchaseReceipt/job/purchaseReceipt.vue
index 9d8042b8..60eda37e 100644
--- a/src/pages/purchaseReceipt/job/purchaseReceipt.vue
+++ b/src/pages/purchaseReceipt/job/purchaseReceipt.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/src/pages/purchaseReceipt/job/purchaseReceiptDevelop.vue b/src/pages/purchaseReceipt/job/purchaseReceiptDevelop.vue
new file mode 100644
index 00000000..eecfd51e
--- /dev/null
+++ b/src/pages/purchaseReceipt/job/purchaseReceiptDevelop.vue
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/purchaseReceipt/job/purchaseReceiptTool.vue b/src/pages/purchaseReceipt/job/purchaseReceiptTool.vue
new file mode 100644
index 00000000..58f46eca
--- /dev/null
+++ b/src/pages/purchaseReceipt/job/purchaseReceiptTool.vue
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue
index a96f9c75..952e5021 100644
--- a/src/pages/purchaseReceipt/job/receiptDetail.vue
+++ b/src/pages/purchaseReceipt/job/receiptDetail.vue
@@ -176,7 +176,8 @@
switchCode1: "",
isCheckLocation: 'purchaseReceiptLocationCodeValidate', //校验收货库位
reasonText: "",
- packingNumberList:[],
+ packingNumberList:[],
+ source_type:'',
// printDeafult: {}, //默认打印机
// templateDeafult: {} //默认的模板
};
@@ -187,7 +188,8 @@
this.id = option.id;
this.scanMessage = option.scanMessage;
this.operation = option.operation;
- this.status = option.status;
+ this.status = option.status;
+ this.source_type = option.source_type;
this.switchCode = "purchasereceiptPrintPDA" //采购收货PDA打印开关
this.switchCode1 = "EnableQms" //根据开关中是否启用QMS去判断,如果为TRUE显示检验指引单,如果为FALSE不显示检验指引单
},
@@ -863,7 +865,7 @@
})
}else if(!isCheckPrint1 && !isCheckPrint){
this.showCommitSuccessMessage("提交成功\n生成采购收货记录\n" + res.data.number)
- }else {
+ }else if(this.source_type!='TOOL'&&this.source_type!='Develop'){
// if (res.data == '打印任务已发送,等待打印机处理!') {
// this.showCommitSuccessMessage(res.data)
// const purchaseReceiptDetailPointParams = {
@@ -873,12 +875,13 @@
// uni.setStorageSync('purchaseReceiptDetailPointParams', purchaseReceiptDetailPointParams)
// } else {
// this.showErrorMessage(res.data)
- // }
+ // }
+
uni.showLoading({
title: "提交成功,将跳转到打印页面",
mask: true
- });
-
+ });
+
// 获取上架任务
let timerCount = 0
const timer1 = setInterval(async () => {
diff --git a/src/pages/purchaseReceipt/job/receiptJob.vue b/src/pages/purchaseReceipt/job/receiptJob.vue
index cd90837b..c2769bb2 100644
--- a/src/pages/purchaseReceipt/job/receiptJob.vue
+++ b/src/pages/purchaseReceipt/job/receiptJob.vue
@@ -101,6 +101,10 @@
title: {
type: String,
default: ''
+ },
+ source_type: {
+ type: String,
+ default: ''
},
},
@@ -198,7 +202,15 @@
column: "accept_user_id",
action: "==",
value: this.$store.state.user.id
- })
+ })
+ if(this.source_type){
+ filters.push({
+ column: "source_type",
+ action: "==",
+ value: this.source_type
+ })
+ }
+
var params = {
filters: filters,
@@ -298,7 +310,7 @@
openJobDetail(item, scanMessage = '') {
uni.navigateTo({
url: './receiptDetail?id=' + item.masterId + '&status=' + item.status + '&operation=' + this
- .operation + '&scanMessage=' + scanMessage
+ .operation + '&scanMessage=' + scanMessage + '&source_type=' + this.source_type
});
this.scanMessage = ""
},
From 1a830ff8afbc55baf0dfe006bb064b11e3a91ea4 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Fri, 8 Nov 2024 16:00:19 +0800
Subject: [PATCH 096/201] =?UTF-8?q?YT-816=E7=9B=B4=E6=8E=A5=E5=8F=91?=
=?UTF-8?q?=E6=96=99=EF=BC=8C=E6=89=AB=E6=8F=8F=E7=AE=B1=E7=A0=81=E5=BA=94?=
=?UTF-8?q?=E6=98=AF=E6=A0=87=E7=AD=BE=E6=95=B0=E9=87=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/common/record.js | 16 ++++++++++++++++
src/mycomponents/package/packageCard.vue | 2 +-
src/mycomponents/scan/winComScan.vue | 2 --
src/pages/issue/record/directIssueByBatch.vue | 5 +++--
src/pages/purchaseReceipt/job/receiptDetail.vue | 6 ++++--
5 files changed, 24 insertions(+), 7 deletions(-)
diff --git a/src/common/record.js b/src/common/record.js
index 10c6e606..de6c44e7 100644
--- a/src/common/record.js
+++ b/src/common/record.js
@@ -48,7 +48,23 @@ export function createDetailInfo(balance, pack) {
return detail;
}
+export function createDetailInfoForLabel(balance, pack,label) {
+ balance.scaned = true;
+ // data.toInventoryStatus = this.toInventoryStatus == "" ? data.inventoryStatus : this.toInventoryStatus;
+ // data.inventoryStatus = data.inventoryStatus;
+ let detail = deepCopyData(balance);
+ detail.balanceQty = new Decimal(detail.qty).toNumber()
+ detail.qty = new Decimal(detail.qty).toNumber();
+ detail.packQty = pack.packQty ? new Decimal(pack.packQty).toNumber() : 0
+ detail.packUnit = pack.packUnit
+ console.log(988,label.qty)
+ detail.handleQty = new Decimal(label.qty).toNumber();
+ detail.package = pack;
+ detail.productionlineCode = pack.productionLineCode; // 制品回收记录需要加的
+ detail.toInventoryStatus = balance.inventoryStatus; // 制品回收记录需要加的
+ return detail;
+}
export function createDetailByPackInfo(pack) {
diff --git a/src/mycomponents/package/packageCard.vue b/src/mycomponents/package/packageCard.vue
index 6c1f9269..8e583b13 100644
--- a/src/mycomponents/package/packageCard.vue
+++ b/src/mycomponents/package/packageCard.vue
@@ -6,7 +6,7 @@
-
+
diff --git a/src/mycomponents/scan/winComScan.vue b/src/mycomponents/scan/winComScan.vue
index f442f672..9f34d28d 100644
--- a/src/mycomponents/scan/winComScan.vue
+++ b/src/mycomponents/scan/winComScan.vue
@@ -155,11 +155,9 @@
// title: '解析中...',
// mask: true
// })
- console.log(222)
let that = this;
// if(index==-1){
// that.sc
- console.log(that.scanMsg.includes('\n'))
if (that.scanMsg.includes('\n')) {
// that.scanMsg = 'HPQ;V1.0;ICE115F11161AG;PP20230427000027;B20230427002;Q50';
setTimeout(() => {
diff --git a/src/pages/issue/record/directIssueByBatch.vue b/src/pages/issue/record/directIssueByBatch.vue
index 2c8a1ab0..3f0919e7 100644
--- a/src/pages/issue/record/directIssueByBatch.vue
+++ b/src/pages/issue/record/directIssueByBatch.vue
@@ -81,6 +81,7 @@
createItemInfo,
createDetailInfo,
calcHandleQty,
+ createDetailInfoForLabel
} from '@/common/record.js';
import {
@@ -251,7 +252,7 @@
})
if (item == undefined) {
var itemp = createItemInfo(balance, pack);
- let newDetail = createDetailInfo(balance, pack); //
+ let newDetail = createDetailInfoForLabel(balance, pack,label);
itemp.subList.push(newDetail);
this.detailSource.push(itemp)
} else {
@@ -263,7 +264,7 @@
}
})
if (detail == undefined) {
- let newDetail = createDetailInfo(balance, pack);
+ let newDetail = createDetailInfoForLabel(balance, pack,label);
item.subList.push(newDetail);
} else {
detail.handleQty =calc.add(detail.handleQty, result.label.qty)
diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue
index a96f9c75..8c8a8dd0 100644
--- a/src/pages/purchaseReceipt/job/receiptDetail.vue
+++ b/src/pages/purchaseReceipt/job/receiptDetail.vue
@@ -467,6 +467,7 @@
}
}
} else if (result.label.labelType == "PurchaseLabel") {
+ debugger
var packingNumber = result.package.number;
var parentpackingNumber = result.package.parentNumber;
var batch = result.label.batch;
@@ -492,7 +493,7 @@
} else {
let isScan = false
if(packingNumber){
- isScan = this.packingNumberList.some(item=>item == packingNumber)
+ isScan = this.packList.some(item=>item == packingNumber)
}else{
isScan = false
}
@@ -502,7 +503,8 @@
pack.handleQty = calc.add(pack.handleQty,result.label.qty)
} else {
- this.packingNumberList.push(packingNumber)
+ this.packList.push(packingNumber)
+ pack.packList.push(packingNumber)
pack.scaned = true
pack.scanDate = new Date();
pack.handleQty = Number(result.label.qty);
From 109b02e2ab51f48d226ba2fb4ec11a33c6895e58 Mon Sep 17 00:00:00 2001
From: wangyufei <2267742828@qq.com>
Date: Fri, 8 Nov 2024 16:16:16 +0800
Subject: [PATCH 097/201] =?UTF-8?q?=E5=8D=8F=E5=AE=9A=20=E9=87=87=E8=B4=AD?=
=?UTF-8?q?=E6=94=B6=E8=B4=A7loading?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/purchaseReceipt/job/receiptDetail.vue | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue
index 952e5021..519e8854 100644
--- a/src/pages/purchaseReceipt/job/receiptDetail.vue
+++ b/src/pages/purchaseReceipt/job/receiptDetail.vue
@@ -189,7 +189,7 @@
this.scanMessage = option.scanMessage;
this.operation = option.operation;
this.status = option.status;
- this.source_type = option.source_type;
+ this.source_type = option.source_type;
this.switchCode = "purchasereceiptPrintPDA" //采购收货PDA打印开关
this.switchCode1 = "EnableQms" //根据开关中是否启用QMS去判断,如果为TRUE显示检验指引单,如果为FALSE不显示检验指引单
},
@@ -853,7 +853,8 @@
let that = this
console.log(877,params)
// return;
- purchaseReceiptJobSubmit(params).then(res => {
+ purchaseReceiptJobSubmit(params).then(res => {
+
if (res.data) {
let isCheckPrint = getSwitchInfoByCode(this.switchCode)//是否显示上架指引单
let isCheckPrint1 = getSwitchInfoByCode(this.switchCode1)//是否显示采购收货检验指引单
@@ -865,7 +866,7 @@
})
}else if(!isCheckPrint1 && !isCheckPrint){
this.showCommitSuccessMessage("提交成功\n生成采购收货记录\n" + res.data.number)
- }else if(this.source_type!='TOOL'&&this.source_type!='Develop'){
+ }else if(that.source_type!='TOOL'&&that.source_type!='Develop'){
// if (res.data == '打印任务已发送,等待打印机处理!') {
// this.showCommitSuccessMessage(res.data)
// const purchaseReceiptDetailPointParams = {
@@ -939,6 +940,9 @@
})
}, 2000)
+ }else if(that.source_type=='TOOL'||that.source_type=='Develop'){
+ uni.hideLoading()
+ this.showCommitSuccessMessage("提交成功\n生成采购收货记录\n" + res.data.number)
}
} else {
From c53c68426e773b109dca8fcdd6a320d6676f55f4 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Fri, 8 Nov 2024 17:18:02 +0800
Subject: [PATCH 098/201] =?UTF-8?q?YT-821=E6=8A=A5=E5=BA=9F=E5=87=BA?=
=?UTF-8?q?=E5=BA=93PDA=E6=89=AB=E6=8F=8F=E4=B8=8D=E5=BA=94=E8=AF=A5?=
=?UTF-8?q?=E6=A0=A1=E9=AA=8C=E7=AE=B1=E7=A0=81=E5=92=8C=E6=89=B9=E6=AC=A1?=
=?UTF-8?q?=E5=B7=B2=E7=BB=8F=E6=89=AB=E6=8F=8F=E8=BF=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/scrap/job/scrapJobDetail.vue | 193 +++++++++++++++++++++++--
1 file changed, 182 insertions(+), 11 deletions(-)
diff --git a/src/pages/scrap/job/scrapJobDetail.vue b/src/pages/scrap/job/scrapJobDetail.vue
index 6be9eb41..bf8a9fe7 100644
--- a/src/pages/scrap/job/scrapJobDetail.vue
+++ b/src/pages/scrap/job/scrapJobDetail.vue
@@ -1,13 +1,14 @@