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 01/24] =?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 02/24] =?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 03/24] =?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 04/24] =?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 05/24] =?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 06/24] =?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 07/24] =?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 08/24] =?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 09/24] =?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 10/24] =?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 11/24] =?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 13/24] =?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 14/24] =?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 15/24] =?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 16/24] =?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 17/24] =?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 18/24] =?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 19/24] =?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 20/24] =?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 21/24] =?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 22/24] =?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 23/24] =?UTF-8?q?=E5=8F=91=E6=96=99=E5=8E=BB=E6=8E=89retur?=
=?UTF-8?q?n?=
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 24/24] =?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