From 1fb9d414fc915362217bad8bf376765adf61d93f Mon Sep 17 00:00:00 2001
From: niexiting <85552560@qq.com>
Date: Tue, 19 Dec 2023 17:29:29 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=87=87=E8=B4=AD?=
=?UTF-8?q?=E6=94=B6=E8=B4=A7=E8=AE=B0=E5=BD=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/purchaseReturn/record/returnRecord.vue | 20 ++++----------------
1 file changed, 4 insertions(+), 16 deletions(-)
diff --git a/pages/purchaseReturn/record/returnRecord.vue b/pages/purchaseReturn/record/returnRecord.vue
index 03d0ce9a..7275566d 100644
--- a/pages/purchaseReturn/record/returnRecord.vue
+++ b/pages/purchaseReturn/record/returnRecord.vue
@@ -221,7 +221,6 @@
});
if (this.detailSource.length > 0 && this.detailSource[0].subList.length > 0) {
-
console.log("提交参数", JSON.stringify(params));
//直接创建申请
if (this.fromType == "requestType") {
@@ -239,12 +238,8 @@
this.showErrorMessage(error)
})
} else {
-
//直接创建记录
-
- //采购退货不用查询管理模式
- //获取管理模式,封装参数
-
+ //采购退货直接出库,不用查询管理模式
var params = this.setRecordParams(true)
console.log("提交参数", JSON.stringify(params));
@@ -259,7 +254,6 @@
uni.hideLoading()
this.showErrorMessage(error)
})
-
}
} else {
@@ -278,15 +272,9 @@
if (detail.scaned) {
detail.itemCode = detail.itemCode;
detail.inventoryStatus = detail.inventoryStatus;
-
- detail.fromPackingNumber = detail.packingNumber;
- detail.toPackingNumber = detail.packingNumber;;
-
- detail.fromContainerNumber = detail.containerNumber;
- detail.toContainerNumber = detail.containerNumber
-
- detail.fromBatch = detail.batch;
- detail.toBatch = detail.batch;
+ detail.packingNumber = detail.packingNumber;
+ detail.containerNumber = detail.containerNumber;
+ detail.batch = detail.batch;
detail.fromLocationCode = this.fromLocationCode;
detail.toLocationCode = ''; //采购退货直接出库,目标库位为空
From de262f8cbef5c1f668c139c4a1da7c3bdfec4e4c Mon Sep 17 00:00:00 2001
From: niexiting <85552560@qq.com>
Date: Wed, 20 Dec 2023 10:21:36 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=87=87=E8=B4=AD?=
=?UTF-8?q?=E9=80=80=E8=B4=A7=E8=AE=B0=E5=BD=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
mycomponents/record/recordComDetailCard.vue | 2 +-
pages/purchaseReturn/record/returnRecord.vue | 90 ++++++-------------
.../request/returnRequestCreate.vue | 15 ++--
3 files changed, 36 insertions(+), 71 deletions(-)
diff --git a/mycomponents/record/recordComDetailCard.vue b/mycomponents/record/recordComDetailCard.vue
index 46780f13..5911709b 100644
--- a/mycomponents/record/recordComDetailCard.vue
+++ b/mycomponents/record/recordComDetailCard.vue
@@ -16,7 +16,7 @@
+ :isShowStatus="true" :isShowPack="true" :isShowLocation="isShowLocation">
diff --git a/pages/purchaseReturn/record/returnRecord.vue b/pages/purchaseReturn/record/returnRecord.vue
index 7275566d..88bdeb15 100644
--- a/pages/purchaseReturn/record/returnRecord.vue
+++ b/pages/purchaseReturn/record/returnRecord.vue
@@ -223,39 +223,23 @@
if (this.detailSource.length > 0 && this.detailSource[0].subList.length > 0) {
console.log("提交参数", JSON.stringify(params));
//直接创建申请
- if (this.fromType == "requestType") {
- var params = this.setRequestParams();
- console.log("提交" + JSON.stringify(params))
- purchaseReturnRequestCreate(params).then(res => {
- uni.hideLoading()
- if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成采购退货申请" + res.data, )
- } else {
- this.showErrorMessage("提交失败" + res.msg)
- }
- }).catch(error => {
- uni.hideLoading()
- this.showErrorMessage(error)
- })
- } else {
- //直接创建记录
- //采购退货直接出库,不用查询管理模式
- var params = this.setRecordParams(true)
- console.log("提交参数", JSON.stringify(params));
-
- purchaseReturnRecordSubmit(params).then(res => {
- uni.hideLoading()
- if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成采购退货记录" + res.data)
- } else {
- this.showErrorMessage("提交失败" + res.msg)
- }
- }).catch(error => {
- uni.hideLoading()
- this.showErrorMessage(error)
- })
- }
+ //直接创建记录
+ //采购退货直接出库,不用查询管理模式
+ var params = this.setRecordParams(true)
+ console.log("提交参数", JSON.stringify(params));
+
+ purchaseReturnRecordSubmit(params).then(res => {
+ uni.hideLoading()
+ if (res.data) {
+ this.showCommitSuccessMessage("提交成功
生成采购退货记录" + res.data)
+ } else {
+ this.showErrorMessage("提交失败" + res.msg)
+ }
+ }).catch(error => {
+ uni.hideLoading()
+ this.showErrorMessage(error)
+ })
} else {
this.showErrorMessage("没有要提交的数据")
}
@@ -272,50 +256,30 @@
if (detail.scaned) {
detail.itemCode = detail.itemCode;
detail.inventoryStatus = detail.inventoryStatus;
- detail.packingNumber = detail.packingNumber;
- detail.containerNumber = detail.containerNumber;
- detail.batch = detail.batch;
+
+ detail.fromPackingNumber = detail.packingNumber;
+ detail.toPackingNumber = detail.packingNumber;;
+
+ detail.fromContainerNumber = detail.containerNumber;
+ detail.toContainerNumber = detail.containerNumber
+
+ detail.fromBatch = detail.batch;
+ detail.toBatch = detail.batch;
detail.fromLocationCode = this.fromLocationCode;
detail.toLocationCode = ''; //采购退货直接出库,目标库位为空
+ detail.package = null;
subList.push(detail)
}
})
})
this.dataContent.subList = subList
+
// this.dataContent.jobNumber = '';
return this.dataContent;
},
- setRequestParams() {
- var subList = []
- var supplierCode = ""
- this.detailSource.forEach(item => {
- item.subList.forEach(detail => {
- if (detail.scaned) {
- if (supplierCode == "") {
- supplierCode = detail.package.supplierCode
- }
- subList.push(detail)
- }
- })
- })
-
- this.dataContent.subList = subList
- this.dataContent.purchaseReceiptRecordNumber = "";
- this.transferMode = "";
-
- this.dataContent.supplierCode = supplierCode
- this.dataContent.businessType = "PurchasePutaway"
- this.dataContent.departmentCode = "研发部门";
- this.dataContent.status = 1;
- this.dataContent.autoCommit = "FALSE";
- this.dataContent.autoAgree = "FALSE";
- this.dataContent.autoExecute = "FALSE";
- this.dataContent.directCreateRecord = "FALSE";
- return this.dataContent;
- },
showMessage(message) {
setTimeout(r => {
diff --git a/pages/purchaseReturn/request/returnRequestCreate.vue b/pages/purchaseReturn/request/returnRequestCreate.vue
index 3a562a40..8f37e68e 100644
--- a/pages/purchaseReturn/request/returnRequestCreate.vue
+++ b/pages/purchaseReturn/request/returnRequestCreate.vue
@@ -254,13 +254,14 @@
this.transferMode ="";
this.dataContent.supplierCode = supplierCode
this.dataContent.dueTime =getCurrDateOneMonthsTimes()
- this.dataContent.businessType = "PurchasePutaway"
- this.dataContent.departmentCode = "研发部门";
- this.dataContent.status= 1 ;
- this.dataContent.autoCommit = "FALSE";
- this.dataContent.autoAgree = "FALSE";
- this.dataContent.autoExecute = "FALSE";
- this.dataContent.directCreateRecord = "FALSE";
+ //这些都应该由接口赋值
+ // this.dataContent.businessType = "PurchasePutaway"
+ // this.dataContent.departmentCode = "研发部门";
+ // this.dataContent.status= 1 ;
+ // this.dataContent.autoCommit = "FALSE";
+ // this.dataContent.autoAgree = "FALSE";
+ // this.dataContent.autoExecute = "FALSE";
+ // this.dataContent.directCreateRecord = "FALSE";
return this.dataContent;
},
From 10e440a09e9aaedc04ca1eb498612fcec03ef81c Mon Sep 17 00:00:00 2001
From: niexiting <85552560@qq.com>
Date: Wed, 20 Dec 2023 14:44:00 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=AB=E6=8F=8F?=
=?UTF-8?q?=E7=BB=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
mycomponents/balance/balance.vue | 56 ++++++++---------
mycomponents/qty/qty.vue | 1 +
mycomponents/recommend/recommend.vue | 6 +-
mycomponents/record/recordComDetailCard.vue | 6 +-
mycomponents/scan/winComScan.vue | 4 ++
mycomponents/scan/winScanContainer.vue | 4 +-
mycomponents/scan/winScanLocation.vue | 2 +-
mycomponents/scan/winScanPackAndLocation.vue | 4 --
pages/pallet/record/bindPalletRecord.vue | 63 +++++++++++++++-----
9 files changed, 87 insertions(+), 59 deletions(-)
diff --git a/mycomponents/balance/balance.vue b/mycomponents/balance/balance.vue
index 4d48354c..ad6dfb6c 100644
--- a/mycomponents/balance/balance.vue
+++ b/mycomponents/balance/balance.vue
@@ -1,6 +1,6 @@
-
-
+
+
@@ -14,16 +14,10 @@
-
-
- 复制箱码
-
-
- 复制制品
-
+
+ 复制采购
+ |制品
-
-
@@ -83,31 +77,33 @@
},
methods: {
- copy(){
+ copy() {
// HPQ;V1.0;ICE115F11161AG;PP20230427000026;B20230427002;Q100
- var content = "HPQ;V1.0;I"+this.dataContent.itemCode+";P"+this.dataContent.packingNumber+";B"+this.dataContent.batch+";Q"+this.dataContent.qty
+ var content = "HPQ;V1.0;I" + this.dataContent.itemCode + ";P" + this.dataContent.packingNumber + ";B" +
+ this.dataContent.batch + ";Q" + this.dataContent.qty
this.$copyText(content).then(
- res => {
- uni.showToast({
- title: '复制成功',
- icon: 'none'
- })
- }
- )
+ res => {
+ uni.showToast({
+ title: '复制成功',
+ icon: 'none'
+ })
+ }
+ )
},
- copyPro(){
+ copyPro() {
// HPQ;V1.0;ICE115F11161AG;PP20230427000026;B20230427002;Q100
- var content = "HMQ;V1.0;I"+this.dataContent.itemCode+";P"+this.dataContent.packingNumber+";B"+this.dataContent.batch+";Q"+this.dataContent.qty
+ var content = "HMQ;V1.0;I" + this.dataContent.itemCode + ";P" + this.dataContent.packingNumber + ";B" +
+ this.dataContent.batch + ";Q" + this.dataContent.qty
this.$copyText(content).then(
- res => {
- uni.showToast({
- title: '复制成功',
- icon: 'none'
- })
- }
- )
+ res => {
+ uni.showToast({
+ title: '复制成功',
+ icon: 'none'
+ })
+ }
+ )
},
- isDevlement(){
+ isDevlement() {
return getApp().globalData.isDevelopment;
}
}
diff --git a/mycomponents/qty/qty.vue b/mycomponents/qty/qty.vue
index f2d55dcc..b3a8f0cb 100644
--- a/mycomponents/qty/qty.vue
+++ b/mycomponents/qty/qty.vue
@@ -1,6 +1,7 @@
+ {{dataContent.inventoryStatus}}
{{Number(dataContent.qty)}}
diff --git a/mycomponents/recommend/recommend.vue b/mycomponents/recommend/recommend.vue
index dc7295b7..26748846 100644
--- a/mycomponents/recommend/recommend.vue
+++ b/mycomponents/recommend/recommend.vue
@@ -17,9 +17,9 @@
+
- 复制采购
+ 复制采购
|制品
@@ -106,7 +106,7 @@
}
)
},
- isDevlement(){
+ isDevlement() {
return getApp().globalData.isDevelopment;
}
}
diff --git a/mycomponents/record/recordComDetailCard.vue b/mycomponents/record/recordComDetailCard.vue
index 5911709b..f369ba2b 100644
--- a/mycomponents/record/recordComDetailCard.vue
+++ b/mycomponents/record/recordComDetailCard.vue
@@ -15,8 +15,8 @@
-
+
@@ -33,9 +33,9 @@