From 764ad15473528c6c327d37c04f279e70bea3cb6f Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 09 五月 2024 09:15:01 +0800
Subject: [PATCH] 1.设备管理接口写入
---
config/api.js | 63 +++++++++++++++++++++++++++++++
pages/sbgl/rcdj.vue | 4 +-
manifest.json | 7 +++
3 files changed, 70 insertions(+), 4 deletions(-)
diff --git a/config/api.js b/config/api.js
index 0818e80..338ec36 100644
--- a/config/api.js
+++ b/config/api.js
@@ -246,4 +246,65 @@
// 瀹夌伅鍝嶅簲鎻愪氦
export const AppAnDonLampResponseSave = (data1, data) => http.post('/AppAnDon/AppAnDonLampResponseSave' + data1,
- data)
\ No newline at end of file
+ data)
+
+
+// 鏃ュ父鐐规,鎵弿宸ヤ綅/璁惧浜岀淮鐮�
+export const CheckScanDeviceQrCodeData = (data) => http.get('/DeviceManager/CheckScanDeviceQrCodeData', {
+ params: data
+})
+
+// 鏃ュ父鐐规,閫夋嫨鎵爜璁惧鍒楄〃甯﹀嚭鐐规椤�
+export const SelectScanDeviceQrCodeItem = (data) => http.get('/DeviceManage/SelectScanDeviceQrCodeItem', {
+ params: data
+})
+// 鏃ュ父鐐规,鎵弿宸ヤ綅/璁惧浜岀淮鐮佹煡鎵剧偣妫�鏍囧噯
+export const CheckScanDeviceTemp = (data) => http.get('/DeviceManage/CheckScanDeviceTemp', {
+ params: data
+})
+// 鏃ュ父鐐规銆佹彁浜や繚瀛�
+export const AppDeviceCheckSave = (username, data, config = {}) => http.post(
+ '/DeviceManage/AppDeviceCheckSave?username=' + username, data, config)
+// 瀹氭湡淇濆吇,鎵弿宸ヤ綅/璁惧浜岀淮鐮�
+export const RepairScanDeviceQrCodeData = (data) => http.get('/DeviceManage/RepairScanDeviceQrCodeData', {
+ params: data
+})
+// 瀹氭湡淇濆吇,鎵弿宸ヤ綅/璁惧浜岀淮鐮佹煡鎵句繚鍏绘爣鍑�
+export const RepairScanDeviceTemp = (data) => http.get('/DeviceManage/RepairScanDeviceTemp', {
+ params: data
+})
+// 鏃ュ父淇濆吇,閫夋嫨鎵爜璁惧鍒楄〃甯﹀嚭淇濆吇椤�
+export const RepairSelectScanDeviceQrCodeItem = (data) => http.get(
+ '/DeviceManage/RepairSelectScanDeviceQrCodeItem', {
+ params: data
+ })
+// 鏃ュ父淇濆吇,鎻愪氦淇濆瓨
+export const AppDeviceRepairSave = (data, username, maintcyc, config = {}) => http.post(
+ '/DeviceManage/AppDeviceRepairSave?username=' + username + '&maintcyc=' + maintcyc, data, config)
+
+// 璁惧缁翠慨鐢宠,鎵弿宸ヤ綅/璁惧浜岀淮鐮�
+export const MaintainScanDeviceApplyQrCodeData = (data) => http.get(
+ '/DeviceManage/MaintainScanDeviceApplyQrCodeData', {
+ params: data
+ })
+
+// 璁惧缁翠慨鐢宠,鎻愪氦淇濆瓨
+export const MaintainScanDeviceApplySave = (FormData, config = {}) => http.post(
+ '/DeviceManage/MaintainScanDeviceApplySave', FormData, config)
+
+
+// 璁惧缁翠慨鍒楄〃
+export const RepairScanDeviceQrCodeDataList = (data) => http.get(
+ '/DeviceManage/RepairScanDeviceQrCodeDataList', {
+ params: data
+ })
+
+// 缁翠慨楠岃瘉鍒楄〃
+export const RepairVerificationScanDeviceData = (data) => http.get(
+ '/DeviceManage/RepairVerificationScanDeviceData', {
+ params: data
+ })
+// 缁翠慨楠岃瘉璇︽儏淇℃伅
+export const RepairVerificationScanDeviceDataSub = (repair_code, eqpcode, wkshpcode) => http.get(
+ '/DeviceManage/RepairVerificationScanDeviceDataSub?repair_code=' + repair_code + '&eqpcode=' + eqpcode +
+ '&wkshpcode=' + wkshpcode)
\ No newline at end of file
diff --git a/manifest.json b/manifest.json
index 29245a1..63b30ed 100644
--- a/manifest.json
+++ b/manifest.json
@@ -51,7 +51,12 @@
"ad": {},
"maps": {},
"share": {},
- "push": {}
+ "push": {
+ "unipush": {
+ "version": "2",
+ "offline": true
+ }
+ }
},
"icons": {
"android": {
diff --git a/pages/sbgl/rcdj.vue b/pages/sbgl/rcdj.vue
index 8825663..b11c568 100644
--- a/pages/sbgl/rcdj.vue
+++ b/pages/sbgl/rcdj.vue
@@ -158,7 +158,7 @@
<script>
import {
- // CheckScanDeviceQrCodeData,
+ CheckScanDeviceQrCodeData,
// SelectScanDeviceQrCodeItem,
// CheckScanDeviceTemp,
// AppDeviceCheckSave
@@ -205,7 +205,7 @@
mounted() {
this.init()
- // this.getCheckScanDeviceQrCodeData('SB001')
+ this.getCheckScanDeviceQrCodeData('111')
// this.getCheckScanDeviceQrCodeData('SB002')
// this.getCheckScanDeviceQrCodeData('SB003')
--
Gitblit v1.9.3