From a64a5efc46c62c59759370a84141d7844e41c0b2 Mon Sep 17 00:00:00 2001
From: caill <815519168@qq.com>
Date: Wed, 5 Mar 2025 10:22:42 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A9=BA=E8=BD=B4=E5=9B=9E?=
=?UTF-8?q?=E5=BA=93=E3=80=81=E5=91=BC=E5=8F=AB=E5=A5=97=E8=BD=B4=EF=BC=8C?=
=?UTF-8?q?add=E4=BD=99=E8=BD=B4=E9=80=80=E5=9B=9E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages.json | 8 +++
pages/ProductManage/CallPaperShaft.vue | 40 ++++++++++++--
pages/ProductManage/PlusShaftReturn.vue | 72 +++++++++++++++++++++++++
pages/ProductManage/UnAxisBack.vue | 33 +++++++++---
utils/getData3.js | 23 +++++++-
utils/mork2.js | 5 +-
6 files changed, 165 insertions(+), 16 deletions(-)
create mode 100644 pages/ProductManage/PlusShaftReturn.vue
diff --git a/pages.json b/pages.json
index 19c1c12..fc1d013 100644
--- a/pages.json
+++ b/pages.json
@@ -615,6 +615,14 @@
}
}
+ ,{
+ "path" : "pages/ProductManage/PlusShaftReturn",
+ "style" :
+ {
+ "navigationStyle": "custom"
+ }
+
+ }
],
"globalStyle": {
// "pageOrientation": "landscape",
diff --git a/pages/ProductManage/CallPaperShaft.vue b/pages/ProductManage/CallPaperShaft.vue
index e9d5649..430fba4 100644
--- a/pages/ProductManage/CallPaperShaft.vue
+++ b/pages/ProductManage/CallPaperShaft.vue
@@ -1,6 +1,6 @@
-
+
@@ -55,8 +55,9 @@
-
-
+
+
+
@@ -65,7 +66,7 @@
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {queryProductArea, queryDeviceByarea} from '@/utils/getData2.js'
- import {paperQueryPaperMaterial, callPaperShaft} from '@/utils/getData3.js'
+ import {paperQueryPaperMaterial, callPaperShaft, labourShaftBack} from '@/utils/getData3.js'
export default {
components: {
NavBar,
@@ -88,7 +89,8 @@
upL: '',
upR: '',
qty: null,
- disabled: false
+ disabled: false,
+ disabled1: false
};
},
onLoad (options) {
@@ -127,6 +129,7 @@
this.index4 = ''
this.qty = null
this.disabled = false
+ this.disabled1 = false
},
async _callPaperShaft () {
this.disabled = true
@@ -186,6 +189,33 @@
},
showSelector2 () {
this.newaxis2 = this.axis
+ },
+ async _labourShaftBack () {
+ this.disabled1 = true
+ if (!this.index1 || !this.index2 || (!this.upL && !this.upR) || !this.index3 || !this.index4) {
+ this.disabled1 = false
+ return
+ }
+ let upLT = ''
+ let upRT = ''
+ this.axis.map(el => {
+ if (el.value === this.upL) {
+ upLT = el.text
+ }
+ if (el.value === this.upR) {
+ upRT = el.text
+ }
+ })
+ try {
+ let res = await labourShaftBack(this.index1, this.index2, upLT, this.upL, upRT, this.upR, this.index3, this.index4)
+ this.disabled1 = false
+ uni.showToast({
+ title: res.message,
+ icon: 'none'
+ })
+ } catch (e) {
+ this.disabled1 = false
+ }
}
}
}
diff --git a/pages/ProductManage/PlusShaftReturn.vue b/pages/ProductManage/PlusShaftReturn.vue
new file mode 100644
index 0000000..1df67de
--- /dev/null
+++ b/pages/ProductManage/PlusShaftReturn.vue
@@ -0,0 +1,72 @@
+
+
+
+
+
+
+
+
+ 起点
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/ProductManage/UnAxisBack.vue b/pages/ProductManage/UnAxisBack.vue
index 844336b..93bcc0e 100644
--- a/pages/ProductManage/UnAxisBack.vue
+++ b/pages/ProductManage/UnAxisBack.vue
@@ -29,8 +29,9 @@
-
-
+
+
+
@@ -38,7 +39,7 @@