From 58b792bb96fddd7d6e4e55933c405109f6ab081d Mon Sep 17 00:00:00 2001
From: zhang_li
Date: Thu, 24 Apr 2025 18:42:34 +0800
Subject: [PATCH] =?UTF-8?q?YT-2530=E7=9B=B4=E6=8E=A5=E5=8F=91=E6=96=99?=
=?UTF-8?q?=E6=94=B9=E4=B8=BA=E6=89=AB=E6=8F=8F=E7=94=9F=E4=BA=A7=E7=BA=BF?=
=?UTF-8?q?=E4=BB=A3=E7=A0=81=EF=BC=9B=E6=A0=87=E7=AD=BE=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E4=B8=AD=E5=A2=9E=E5=8A=A0=E7=94=9F=E4=BA=A7=E7=BA=BF=E6=A0=87?=
=?UTF-8?q?=E7=AD=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../location/requiredProductionLine.vue | 64 ++++++++
.../scan/winScanProductionLine.vue | 155 ++++++++++++++++++
src/pages/issue/record/directIssueByBatch.vue | 67 ++------
3 files changed, 237 insertions(+), 49 deletions(-)
create mode 100644 src/mycomponents/location/requiredProductionLine.vue
create mode 100644 src/mycomponents/scan/winScanProductionLine.vue
diff --git a/src/mycomponents/location/requiredProductionLine.vue b/src/mycomponents/location/requiredProductionLine.vue
new file mode 100644
index 00000000..40d70df8
--- /dev/null
+++ b/src/mycomponents/location/requiredProductionLine.vue
@@ -0,0 +1,64 @@
+
+
+
+
+ {{title}}
+   请扫描
+   {{productionLine}}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/mycomponents/scan/winScanProductionLine.vue b/src/mycomponents/scan/winScanProductionLine.vue
new file mode 100644
index 00000000..73b68efa
--- /dev/null
+++ b/src/mycomponents/scan/winScanProductionLine.vue
@@ -0,0 +1,155 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/issue/record/directIssueByBatch.vue b/src/pages/issue/record/directIssueByBatch.vue
index 462e4122..252bba90 100644
--- a/src/pages/issue/record/directIssueByBatch.vue
+++ b/src/pages/issue/record/directIssueByBatch.vue
@@ -25,17 +25,16 @@
style="background-color:ghostwhite; width: 100%; ">
-
-
+
+
@@ -101,7 +100,7 @@
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import winScanPack from '@/mycomponents/scan/winScanPack.vue'
- import requiredLocation from '@/mycomponents/location/requiredLocation.vue'
+ import requiredProductionLine from '@/mycomponents/location/requiredProductionLine.vue'
import comBlankView from '@/mycomponents/common/comBlankView.vue'
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue"
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
@@ -116,7 +115,7 @@
components: {
winScanButton,
winScanPack,
- requiredLocation,
+ requiredProductionLine,
comBlankView,
winScanLocation,
winScanPackAndLocation,
@@ -250,6 +249,7 @@
if (item == undefined) {
var itemp = createItemInfo(balance, pack);
let newDetail = createDetailInfo(balance, pack); //
+ itemp.itemName = balance.itemName
newDetail.packingNumber = pack.number
newDetail.handleQty =label.qty
newDetail.supplierCode =label.supplierCode
@@ -423,48 +423,17 @@
}
},
- async scanLocationCode(location, code) {
- const params = {
- pageNo: 1,
- pageSize: 100,
- filters:[{action: "==",
- column: "rawLocationCode",
- value:code,
- }]
- }
- // 查询目标库位对应的产线并赋值
- const res = await workstationByLocation(params)
- if(res.code == 0){
- if(res.data&&res.data.list&&res.data.list.length>0){
- const array = res.data.list.filter(item=>item.available == 'TRUE')
- if(array.length>0){
- this.positionInfo = array[0].productionLineCode
- this.workStationCode = array[0].workshopCode
- this.toLocationCode = code
- this.detailSource.forEach(item => {
- item.subList.forEach(detail => {
- detail.toLocationCode = code
- detail.productionLineCode = this.positionInfo
- detail.workStationCode = this.workStationCode
- })
- })
-
- }else{
- this.showErrorMessage("未查询到库位对应的生产线,请重新扫描。")
- }
- }else{
- this.showErrorMessage("未查询到库位对应的生产线,请重新扫描。")
- this.positionInfo = ''
- this.workStationCode = ''
- return
- }
- }else{
- this.positionInfo = ''
- this.workStationCode = ''
- this.showErrorMessage(res.mag)
- return
- }
-
+ async scanProductionLine(productionLine, code) {
+ this.positionInfo = productionLine.productionLineCode
+ this.workStationCode = productionLine.workshopCode
+ this.toLocationCode = productionLine.rawLocationCode
+ this.detailSource.forEach(item => {
+ item.subList.forEach(detail => {
+ detail.toLocationCode = this.toLocationCode
+ detail.productionLineCode = this.positionInfo
+ detail.workStationCode = this.workStationCode
+ })
+ })
},
commit() {