初步联调装表

This commit is contained in:
2025-11-03 16:26:30 +08:00
parent fe590353df
commit 1539304999
35 changed files with 1495 additions and 100 deletions

View File

@@ -43,6 +43,26 @@ export const uploadOcrFile = (filePath) => {
})
}
export const uploadInstallMeter = (filePath) => {
const { api } = getConfigByEnv();
return new Promise((resolve, reject) => {
wx.uploadFile({
filePath: filePath,
name: 'data',
url: `${api}/image/meter/reading`,
header: {
authorization: 'Bearer ' + wx.getStorageSync("token")
},
success: (res) => {
resolve(res?.data ? JSON.parse(res?.data) : res?.data);
},
fail: (err) => {
reject(err);
}
})
})
}
export const uploadPublicFile = (filePath) => {
const { api } = getConfigByEnv();
return new Promise((resolve, reject) => {