This commit is contained in:
2025-04-29 13:26:19 +08:00
parent 6e1ae24845
commit bf88fcb395
73 changed files with 12939 additions and 4637 deletions

View File

@@ -50,6 +50,8 @@ export const PRD_MOScanData = async (data : object) => requst('/api/PRD_MO/ScanD
//生产入库
export const PRD_MORPTList = async (data : object) => requst('/api/PRD_MORPT/List', 'get', { ...data })
export const PRD_MORPTView = async (data : object) => requst('/api/PRD_MORPT/View', 'get', { ...data })
//入库扫描查询 && 生产装箱
export const PRD_MORPTScanData = async (data : object) => requst('/api/PRD_MORPT/ScanData', 'get', { ...data })
export const PRD_MORPTPush = async (data : object) => requst('/api/PRD_MORPT/Push', 'post', { ...data })
@@ -60,7 +62,9 @@ export const SAL_DELIVERYNOTICEScanData = async (data : object) => requst('/api/
export const SAL_DELIVERYNOTICEPush = async (data : object) => requst('/api/SAL_DELIVERYNOTICE/Push', 'post', { ...data })
//生产装箱
// export const SAL_DELIVERYNOTICEList = async (data : object) => requst('/api/SAL_DELIVERYNOTICE/List', 'get', { ...data })
export const PRD_MORPTPackView = async (data : object) => requst('/api/PRD_MORPT/PackView', 'get', { ...data })
export const BarcodePackBillSave = async (data : object) => requst('/api/BarcodePackBill/Save', 'post', { ...data })
export const UHIK_BD_BarCodeMainFileSave = async (data : object) => requst('/api/UHIK_BD_BarCodeMainFile/Save', 'post', { ...data })
//仓库信息
@@ -76,4 +80,12 @@ export const fStockFlexDetailMultiDelete = async (data : object) => requst('/api
//版本信息处理
export const version = () => requst('/util/versions/find/AppAppVersionsServiceOrder', 'get', {});
export const version = () => requst('/util/versions/find/AppAppVersionsServiceOrder', 'get', {});
//组织列表
export const ORGOrganizationsList = (data:object) => requst('/api/ORG_Organizations/List', 'get', {});
//获取账套数据中心
export const getDataCenterList = (data:object) => requst('/api/Account/GetDataCenterList', 'post', {...data});
//组织范围
export const accountSearchOrg = (data:object) => requst('/api/Account/SearchOrg', 'post', {...data});

View File

@@ -17,12 +17,12 @@ if (process.env.NODE_ENV === 'production') {
// #ifdef APP-PLUS
// 开发环境
if (process.env.NODE_ENV === 'development') {
API_URL = 'http://8.130.121.29:5000';
API_URL = 'http://58.252.252.77:5000';
// API_URL = 'https://jyptapp.com/prod-app';
}
// 生产环境
if (process.env.NODE_ENV === 'production') {
API_URL = 'http://8.130.121.29:5000';
API_URL = 'http://58.252.252.77:5000';
// API_URL = 'https://jyptapp.com/prod-app';
}
// #endif

View File

@@ -1,6 +1,4 @@
import NO_TOKEN from './noToken';
import env from './env';
import tools from '../../tools/index';
// import uniChat from "./uniChat";
export default function requst(url : string, type : string, params : any, header : object = {}) {
// #ifndef APP-PLUS
@@ -12,6 +10,7 @@ export default function requst(url : string, type : string, params : any, header
plus.nativeUI.showWaiting();
// #endif
console.log('检查URL' + env.API_URL + url,)
console.log(params);
return new Promise((resolve, reject) => {
uni.request({
url: env.API_URL + url,
@@ -22,6 +21,7 @@ export default function requst(url : string, type : string, params : any, header
},
timeout: 5000,
success(result : any) {
console.log(result);
let res = result.data;
if (res.code === 200) {
console.log('请求成功')
@@ -41,7 +41,7 @@ export default function requst(url : string, type : string, params : any, header
// uni.removeStorageSync('userInfo');
// uni.clearStorage();
// tools.jumpTo('/pages/client/account/login', {}, 0)
reject(res)
resolve(res)
} else {
setTimeout(() => {
uni.showToast({
@@ -50,10 +50,11 @@ export default function requst(url : string, type : string, params : any, header
title: res.msg
})
})
reject(res)
resolve(res)
}
},
fail(error : any) {
console.log(error);
uni.showToast({
icon: 'none',
mask: true,