From db16c0207818437ddd711bcc0778667ba8d9fcc4 Mon Sep 17 00:00:00 2001
From: 展杰 <1240968267@qq.com>
Date: 星期三, 03 七月 2024 14:14:44 +0800
Subject: [PATCH] Merge branch 'master' of https://gitcode.net/csddngb/hk_pda_vue
---
api/inspection.js | 40 ++++++++++++++++++++++++++++++++++++++--
1 files changed, 38 insertions(+), 2 deletions(-)
diff --git a/api/inspection.js b/api/inspection.js
index b4d09a3..bb76c01 100644
--- a/api/inspection.js
+++ b/api/inspection.js
@@ -12,6 +12,18 @@
})
}
+export function getFirstInspectionList() {
+ return request({
+ 'url': '/check/getFirstCheckList?userNo=' + uni.getStorageSync('userInfo').code,
+ 'method': 'post',
+ 'header': {
+ 'Content-Type': 'application/json',
+ 'dataType': 'json',
+ 'Accept': 'application/json'
+ }
+ })
+}
+
export function getInspectionInfo(checkNo) {
return request({
'url': '/check/getCheckInfo?checkNo=' + checkNo,
@@ -24,9 +36,9 @@
})
}
-export function saveInspectionInfo(checkNo,info) {
+export function saveInspectionInfo(checkNo,info,remeke) {
return request({
- 'url': '/check/saveCheckInfo?checkNo=' + checkNo +'&userNo=' + uni.getStorageSync('userInfo').code,
+ 'url': '/check/saveCheckInfo?checkNo=' + checkNo +'&userNo=' + uni.getStorageSync('userInfo').code + '&remeke=' + encodeURIComponent(remeke.replace(/\%/g, '%25').replace(/\ /g,'%20').replace(/\#/g,'%23').replace(/\?/g,'%3F').replace(/\+/g,'%2B').replace(/\//g,'%2F').replace(/\&/g,'%26')),
'method': 'post',
'data':info,
'header': {
@@ -35,4 +47,28 @@
'Accept': 'application/json'
}
})
+}
+
+export function getBadReason() {
+ return request({
+ 'url': '/check/getBadReason?userNo=' + uni.getStorageSync('userInfo').code,
+ 'method': 'post',
+ 'header': {
+ 'Content-Type': 'application/json',
+ 'dataType': 'json',
+ 'Accept': 'application/json'
+ }
+ })
+}
+
+export function generateInfo(checkNo) {
+ return request({
+ 'url': '/check/generateInfo?checkNo=' + checkNo,
+ 'method': 'post',
+ 'header': {
+ 'Content-Type': 'application/json',
+ 'dataType': 'json',
+ 'Accept': 'application/json'
+ }
+ })
}
\ No newline at end of file
--
Gitblit v1.9.3