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