From e929005eb35f61a2dd3943cc23264b084614eff4 Mon Sep 17 00:00:00 2001
From: caill <815519168@qq.com>
Date: Tue, 22 Jul 2025 14:54:20 +0800
Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E7=AE=94=E5=B7=A5=E5=BA=8F=E6=89=93?=
=?UTF-8?q?=E5=8D=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/SecondPhase/production/SboProcess.vue | 27 +++++++++++++++++++--
utils/getData1.js | 7 ++++++
2 files changed, 32 insertions(+), 2 deletions(-)
diff --git a/pages/SecondPhase/production/SboProcess.vue b/pages/SecondPhase/production/SboProcess.vue
index 00776c8..436ec04 100644
--- a/pages/SecondPhase/production/SboProcess.vue
+++ b/pages/SecondPhase/production/SboProcess.vue
@@ -11,7 +11,7 @@
-
+
@@ -34,6 +34,7 @@
+
@@ -89,7 +90,7 @@
import SearchBox from '@/components/SearchBox.vue'
import UpTop from '@/components/upTop.vue'
import { confirmAction } from '@/utils/utils.js'
- import {queryProductArea, queryRawFoilList, createOrder, confirmBlanking, rawScrollDowm} from '@/utils/getData1.js'
+ import {queryProductArea, queryRawFoilList, createOrder, rawPrint, confirmBlanking, rawScrollDowm} from '@/utils/getData1.js'
export default {
components: {
NavBar,
@@ -179,6 +180,9 @@
if ((!this.val1 || !this.val2) && type === '6') {
return
}
+ if (!this.val2 && type === '7') {
+ return
+ }
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
if (isConfirmed) {
if (type === '5') {
@@ -187,6 +191,9 @@
if (type === '6') {
this._createOrder()
}
+ if (type === '7') {
+ this._rawPrint()
+ }
}
},
async _confirmBlanking () {
@@ -221,6 +228,22 @@
this.disabled1 = false
}
},
+ async _rawPrint () {
+ this.disabled1 = true
+ try {
+ let res = await rawPrint(this.val2)
+ this.disabled1 = false
+ this.pkId = ''
+ this.pkObj = {}
+ this.searchList()
+ uni.showToast({
+ title: res.message,
+ icon: 'none'
+ })
+ } catch (e) {
+ this.disabled1 = false
+ }
+ },
async handleConfirm1(type) {
this.type = type
if (!this.pkId && (type === '1' || type === '3')) {
diff --git a/utils/getData1.js b/utils/getData1.js
index 249249d..879b9fd 100644
--- a/utils/getData1.js
+++ b/utils/getData1.js
@@ -50,6 +50,13 @@ export const createOrder = (code, name) => request({
container_name: name
}
})
+// 打印
+export const rawPrint = (name) => request({
+ url: 'api/pda/raw/print',
+ data: {
+ container_name: name
+ }
+})
// 确认下卷-改为:准备就绪
export const confirmBlanking = (code) => request({
url: 'api/pda/raw/confirmBlanking',