From cab1dff914218f405cd582afe9cb43275e79aae8 Mon Sep 17 00:00:00 2001
From: caill <815519168@qq.com>
Date: Thu, 27 Apr 2023 15:57:52 +0800
Subject: [PATCH] =?UTF-8?q?=E5=96=B7=E9=9B=BE=E5=B7=A5=E5=BA=8F=E5=8A=A0?=
=?UTF-8?q?=E5=85=A5=E5=8E=9F=E6=9D=90=E6=96=99=E5=BA=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/config/getData2.js | 19 ++++++++++++++
src/pages/xinrui/production/ProcessSpray.vue | 26 ++++++++++++++++++--
2 files changed, 43 insertions(+), 2 deletions(-)
diff --git a/src/config/getData2.js b/src/config/getData2.js
index a7c63cd..ff834de 100644
--- a/src/config/getData2.js
+++ b/src/config/getData2.js
@@ -408,6 +408,12 @@ export const sendLK = (id, vcode, pcode, btn) => post('api/pda/pdm/sendLK', {
point_code: pcode,
button_name: btn
})
+// 1.15入原材料库
+export const inRaw = (vcode, pcode, row) => post('api/pda/pdm/inRaw', {
+ vehicle_code: vcode,
+ point_code: pcode,
+ row: row
+})
// 1.7下发
export const issuePW = (id, n) => post('api/pda/pdm/issuePW', {
worktask_id: id,
@@ -549,3 +555,16 @@ export const xcoutconfirmoutstore = (wcode, vcode, dtl) => post('api/pda/st/out/
},
dtl: dtl
})
+
+/**
+ * 内部软废入库
+ */
+// 1.1内部软废入库
+export const insideIn = (code) => post('api/pda/st/in/insideIn', {
+ vehicle_code: code
+})
+// 1.2入库确认
+export const insideInConfirm = (vcode, code) => post('api/pda/st/in/insideInConfirm', {
+ vehicle_code: vcode,
+ point_code: code
+})
diff --git a/src/pages/xinrui/production/ProcessSpray.vue b/src/pages/xinrui/production/ProcessSpray.vue
index b0e3bce..4a472d6 100644
--- a/src/pages/xinrui/production/ProcessSpray.vue
+++ b/src/pages/xinrui/production/ProcessSpray.vue
@@ -89,6 +89,7 @@
+
@@ -100,7 +101,7 @@ import NavBar from '@components/NavBar.vue'
import SearchBox from '@components/SearchBox.vue'
import DropdownMenu from '@components/DropdownMenu.vue'
import { submitPackUp } from '@config/mUtils.js'
-import {queryMixDevice, queryWorkTask, updateWorkStatus, issuePW, moveFinish, movePWVehicle, sendLK} from '@config/getData2'
+import {queryMixDevice, queryWorkTask, updateWorkStatus, issuePW, moveFinish, movePWVehicle, sendLK, inRaw} from '@config/getData2'
export default {
name: 'ProcessSpray',
components: {
@@ -126,7 +127,8 @@ export default {
disabled2: false,
disabled3: false,
disabled4: false,
- disabled5: false
+ disabled5: false,
+ disabled6: false
}
},
created () {
@@ -317,6 +319,26 @@ export default {
query: {url: 'ProcessSpray'}
})
}
+ },
+ /** 入原材料库 */
+ async _inRaw () {
+ this.disabled6 = true
+ if (this.pkId === '' || this.val3 === '' || this.val4 === '') {
+ this.disabled6 = false
+ return
+ }
+ try {
+ let res = await inRaw(this.val3, this.val4, this.pkObj)
+ if (res.code === '1') {
+ this.toast(res.desc)
+ this._queryWorkTask(this.barCode)
+ } else {
+ this.Dialog(res.desc)
+ }
+ this.disabled6 = false
+ } catch (e) {
+ this.disabled6 = false
+ }
}
}
}