电表强控,工单跳转

This commit is contained in:
2025-11-12 14:12:01 +08:00
parent 7271c982d5
commit 422338f816
8 changed files with 141 additions and 60 deletions

View File

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