From 9074563bcff1ef1157c9205313aba90726d3eb11 Mon Sep 17 00:00:00 2001
From: caill <815519168@qq.com>
Date: Fri, 10 May 2024 13:57:52 +0800
Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E7=AE=94=E5=B7=A5=E5=BA=8F=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E5=88=9B=E5=BB=BA=E5=B7=A5=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/SecondPhase/production/SboProcess.vue | 20 +++++++++++++++++---
utils/getData3.js | 10 +++++++++-
2 files changed, 26 insertions(+), 4 deletions(-)
diff --git a/pages/SecondPhase/production/SboProcess.vue b/pages/SecondPhase/production/SboProcess.vue
index 9a6e222..ecb0201 100644
--- a/pages/SecondPhase/production/SboProcess.vue
+++ b/pages/SecondPhase/production/SboProcess.vue
@@ -73,8 +73,8 @@
-
-
+
+
@@ -86,7 +86,7 @@
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {queryRawFoilList, needEmptyVehicle, confirmBlanking, finishBlanking, finish} from '@/utils/getData1.js'
- import {needEmptyAxisTest} from '@/utils/getData3.js'
+ import {needEmptyAxisTest, createOrder} from '@/utils/getData3.js'
export default {
components: {
NavBar,
@@ -173,6 +173,20 @@
this.disabled1 = false
}
},
+ /** 创建工单 */
+ async _createOrder () {
+ this.disabled4 = true
+ try {
+ let res = await createOrder(this.val1, this.val2)
+ this.disabled4 = false
+ uni.showToast({
+ title: res.message,
+ icon: 'none'
+ })
+ } catch (e) {
+ this.disabled4 = false
+ }
+ },
async _needEmptyVehicle () {
this.disabled5 = true
if (!(this.val1 && !this.pkId)) {
diff --git a/utils/getData3.js b/utils/getData3.js
index f51474c..01e17ae 100644
--- a/utils/getData3.js
+++ b/utils/getData3.js
@@ -88,6 +88,14 @@ export const needEmptyAxisTest = (code, name) => request({
url: 'api/pda/raw/needEmptyAxisTest',
data: {
point_code: code,
- container_name: name,
+ container_name: name
+ }
+})
+// 创建工单
+export const createOrder = (code, name) => request({
+ url: 'api/pda/raw/createOrder',
+ data: {
+ point_code: code,
+ container_name: name
}
})
\ No newline at end of file