baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)

This commit is contained in:
Gaussian committed 2026-11-06 18:38:38 +08:00
commit c2b0e7be0d
6522 files changed
+3530643

No files matched your search

File diff suppressed because it is too large. Load diff
+303
View File
@@ -0,0 +1,303 @@
<template>
<view class="page">
<view class="title">系统设置</view>
<view class="title-switch"><text>设为默认账号</text><switch/></view>
<view class="title-switch"><text>直接登录</text><switch/></view>
<view class="title-switch"><text>退出清除信息</text><switch/></view>
<view class="title">声音管理</view>
<view class="title-switch"><text>暂无</text></view>
<view class="title">网络设定</view>
<view class="title-switch"><text>{{requestUrl}}</text></view>
<view class="bottom-button">
<view class="bot-btn" @tap="clickClearCache"> 切换账号</view>
<!-- #ifdef APP-PLUS -->
<view class="bot-btn-quit" @tap="Quit">
<navigator target="miniProgram">退出系统</navigator>
</view>
<!-- #endif -->
</view>
</view>
</template>
<script>
import uniCollapse from '@/components/uni-collapse/uni-collapse.vue'
import uniCollapseItem from '@/components/uni-collapse-item/uni-collapse-item.vue'
import uniList from '@/components/uni-list/uni-list.vue'
import uniListItem from '@/components/uni-list-item/uni-list-item.vue'
import errorUtil from '@/common/errorutil.js'
import {
mapState,
mapMutations
} from 'vuex';
export default {
data() {
return {
requestUrl: '',
ip:'',
post:'',
virtualPath:''
}
},
components: {
uniCollapse,
uniCollapseItem,
uniList,
uniListItem
},
computed: {
...mapState(['hasLogin','userInfo'])
},
onShow() {
this.requestUrl = this.$global.globalData.requestUrl
},
methods: {
...mapMutations(['logout','clearCache']),
Quit() {
//只在安卓应用中有用 退出当前应用,改方法只在App中生效
plus.runtime.quit();
},
clearServerCache: function(count){
console.log("----clearServerCache----"+this.userInfo);
// let requestParams = {
// "id": this.userInfo.UserID,
// "sysYN":1,
// "billYN":1,
// "deptYN":1,
// "suppYN":1,
// "custYN":1,
// "stockYN":1,
// // "tokenpara": this.userInfo.dbAlise + "," + this.userInfo.UserID
// // + "," + this.userInfo.UserName
// };
if(count) {
count = count + 1;
if(count>4){
return;
}
}else {
count = 1;
}
let requestParams;
let tokenpara = uni.getStorageSync('tokenpara');
if(count > 1) {
requestParams = {
"id": this.userInfo.UserID,
"sysYN":1,
"billYN":1,
"deptYN":1,
"suppYN":1,
"custYN":1,
"stockYN":1,
"tokenpara": tokenpara
};
}else {
requestParams = {
"id": this.userInfo.UserID,
"sysYN":1,
"billYN":1,
"deptYN":1,
"suppYN":1,
"custYN":1,
"stockYN":1,
};
}
this.$request.post({
data: {
action: 'ArrangeCache',
params: requestParams
}
}).then(res => {
let data = JSON.parse(res);
console.log("----clearServerCache success----");
}).catch(err => {
uni.hideLoading();
if(err.state ==400){
this.clearServerCache(count);
if(count > 4) {
errorUtil.handle(err);
return;
}
}else{
errorUtil.handle(err);
}
});
},
logOut(count){
if(count) {
count = count + 1;
if(count>4){
return;
}
}else {
count = 1;
}
let requestParams;
let tokenpara = uni.getStorageSync('tokenpara');
if(count > 1) {
requestParams = {
"id": this.userInfo.token,
"tokenpara": tokenpara
};
}else {
requestParams = {
"id": this.userInfo.token,
};
}
this.$request.post({
data: {
action: 'Logout',
params: requestParams
}
}).then(res => {
// let data = JSON.parse(res);
}).catch(err => {
uni.hideLoading();
if(err.state ==400){
this.Logout(count);
if(count > 4) {
errorUtil.handle(err);
return;
}
}else{
errorUtil.handle(err);
}
});
},
clickClearCache: function() {
//方便测试后续删除
let requestUrl = this.$global.globalData.requestUrl;
this.post = uni.getStorageSync('requestPort');
this.ip = uni.getStorageSync('requestIp');
this.virtualPath = uni.getStorageSync('requestPath');
uni.showModal({
title: '提示',
content: '确认退出该系统',
showCancel: true,
cancelText: '否',
confirmText: '是',
confirmColor: '#3860F3',
success: res => {
if (res.confirm) {
// this.logOut('');
//清除服务器缓存
// this.clearServerCache();
//清除本地缓存
// this.clearCache();
//移除头像
uni.removeStorage({
key: 'Avatar'
});
//缓存账套配置
this.$global.setGlobalObj({
requestUrl: requestUrl
});
uni.setStorage({
key:"requestPort",
data:this.post
});
uni.setStorage({
key:"requestIp",
data:this.ip
});
uni.setStorage({
key:"requestPath",
data:this.virtualPath
});
uni.setStorageSync("ifLogin", false);
uni.reLaunch({url: '../../myinfo/login/login'});
}
},
fail: () => {},
complete: () => {}
});
},
}
}
</script>
<style>
page {
width: 100%;
height: 100%;
background: #F2F2F2;
}
.title{
height: 90.57upx;
line-height: 90.57upx;
font-size: 28.98upx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #686868;
margin-left: 43.47upx;
}
.title-switch{
display: flex;
width: 100%;
flex-direction: row;
background: #FFFFFF;
margin-top: 3.62upx;
align-items: center;
}
.title-switch text{
width: 100%;
height: 108.69upx;
line-height: 108.69upx;
font-size: 32.6upx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #232323;
margin-left: 43.47upx;
}
switch{
width: 79.71upx;
transform: scale(0.7);
margin-right: 43.47upx;
}
.bot-btn{
height: 86.95upx;
line-height: 86.95upx;
background: #FFFFFF;
box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.05);
border-radius: 43.47upx;
text-align: center;
font-size: 32.6upx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #4688FD;
margin-top: 65.21upx;
margin-left: 43.47upx;
margin-right: 43.47upx;
}
.bot-btn-quit{
height: 86.95upx;
line-height: 86.95upx;
background: #FFFFFF;
box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.05);
border-radius: 43.47upx;
text-align: center;
font-size: 32.6upx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #4688FD;
margin-top: 30rpx;
margin-left: 43.47upx;
margin-right: 43.47upx;
}
</style>
+106
View File
@@ -0,0 +1,106 @@
<template>
<view class="page">
<view class="my-operate">
<view class="my-item " >
<view class="icon-text">当前版本</view>
<view class="text-right">{{versionCode}}</view>
</view>
<view class="my-item " >
<view class="icon-text">客服电话</view>
<view class="text-right">400-878-8790</view>
</view>
</view>
<view class="my-operate">
<view class="my-item">
<view class="icon-text">升级日志</view>
<image src="../../../static/myinfo/right-arrow.png" style="height: 25.36upx;width: 25.36upx;margin-right: 43.47upx;"></image>
</view>
</view>
<view class="v-bottom">
客服电话:400-878-8790
</view>
</view>
</template>
<script>
import Vue from 'vue';
export default {
data() {
return {
verCode:62300,
versionCode:'v6.2.3.00'
}
},
onLoad:function(){
},
methods: {
},
}
</script>
<style>
.page{
width: 100%;
height: 100%;
background:#F2F2F2;
}
.my-operate {
//使用flex布局 使内容垂直居中
display: flex;
flex-direction: column;
padding-top: 30upx;
}
.my-item {
background:#FFFFFF;
padding-left: 30upx;
display: flex;
justify-content: flex-start;
align-items: center;
padding: 25upx 0;
flex: 1;
//margin-bottom: 10upx;
border-bottom: 0.5px solid #F2F2F2
}
.my-item:nth-of-type(1) {
border-top: 0.5px solid #F2F2F2
}
.my-item view{
display: flex;
flex: 1;
}
.icon-text{
margin-left: 43.47upx;
font-size: 32.6upx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #232323;
}
.text-right{
justify-content: flex-end;
margin-right: 43.47upx;
font-size: 32.6upx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #686868;
}
.v-bottom{
width: 100%;
position:absolute;
bottom:0px;
text-align: center;
font-size: 30upx;
padding: 30upx 0;
}
</style>