剩余模块:生产入库,销售出库

This commit is contained in:
2025-05-20 14:40:44 +08:00
parent 14a5fa371b
commit 933ddab8f3
68 changed files with 8868 additions and 13081 deletions

View File

@@ -11,13 +11,26 @@ export default function requst(url : string, type : string, params : any, header
// #endif
console.log('检查URL' + env.API_URL + url,)
console.log(params);
var apiHeader = ''
var headerObj = {}
if(url.indexOf('http') !== -1){
apiHeader = url
headerObj = {}
} else {
apiHeader = env.API_URL + url
headerObj = {
Authorization: 'Bearer '+ uni.getStorageSync('TOKEN') || ''
}
}
console.log(apiHeader);
return new Promise((resolve, reject) => {
uni.request({
url: env.API_URL + url,
url: apiHeader,
method: type,
data: params,
sslVerify:false,
header: {
Authorization: 'Bearer '+ uni.getStorageSync('TOKEN') || ''
...headerObj
},
timeout: 5000,
success(result : any) {