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

+477
View File
@@ -0,0 +1,477 @@
<template>
<view class="main">
<image src="../../../static/myinfo/mybg.png" :style="{'height':bannerHeight+'px'}" style="width: 100%;"></image>
<view class="my-info">
<image class="my-info-left" src="../../../static/head.png"></image>
<view class="my-info-right">
<view class="my-info-right-up">
<text class="my-info-name">{{userInfo.UserName==null?'用户昵称':userInfo.UserName}}</text>
<image class="my-info-edit" src="../../../static/myinfo/editwithe.png" @click="editClick"></image>
</view>
<view class="my-info-right-down">{{dataBase}}</view>
</view>
</view>
<view class="my-body-outline" style="margin-top: 221.01rpx;"
@click="PageNavigate('../../myinfo/loginmanage/loginmanage')">
<image class="left-img" src="../../../static/myinfo/login.png"
:style="{'height':leftIconWidth+'px','width':leftIconWidth+'px'}"></image>
<view class="my-body">
<view>登录管理</view>
<image src="../../../static/myinfo/right-arrow.png"></image>
</view>
</view>
<view class="my-body-outline" @click="clickClearCache">
<image class="left-img" src="../../../static/myinfo/refresh.png"
:style="{'height':leftIconWidth+'px','width':leftIconWidth+'px'}"></image>
<view class="my-body">
<view>刷新缓存</view>
<!-- <image src="../../../static/myinfo/right-arrow.png"></image> -->
</view>
</view>
<view class="my-body-outline" @click="PageNavigate('../../myinfo/system/system')">
<image class="left-img" src="../../../static/myinfo/system-version.png"
:style="{'height':leftIconWidth+'px','width':leftIconWidth+'px'}"></image>
<view class="my-body">
<view>系统版本</view>
<image src="../../../static/myinfo/right-arrow.png"></image>
</view>
</view>
<view class="tabBar">
<view class="tabBar-item" @click="mainSelectF">
<view v-show="mainSelect" class="tabBar-item-view">
<image class="tabBar-item-img" src="../../../static/tabbar/home.png"></image>
<text class="tabBar-item-text" style="color:#007AFF">首页</text>
</view>
<view v-show="!mainSelect" class="tabBar-item-view">
<image class="tabBar-item-img" src="../../../static/tabbar/home.png"></image>
<text class="tabBar-item-text" style="color: #666666;">首页</text>
</view>
</view>
<view class="tabBar-item" @click="applySelectF">
<view v-show="applySelect" class="tabBar-item-view">
<image class="tabBar-item-img" src="../../../static/tabbar/apply.png"></image>
<text class="tabBar-item-text" style="color:#007AFF">应用</text>
</view>
<view v-show="!applySelect" class="tabBar-item-view">
<image class="tabBar-item-img" src="../../../static/tabbar/apply.png"></image>
<text class="tabBar-item-text" style="color: #666666;">应用</text>
</view>
</view>
<view class="tabBar-item" @click="mySelectF">
<view v-show="mySelect" class="tabBar-item-view">
<image class="tabBar-item-img" src="../../../static/tabbar/my.png"></image>
<text class="tabBar-item-text" style="color:#007AFF">我的</text>
</view>
<view v-show="!mySelect" class="tabBar-item-view">
<image class="tabBar-item-img" src="../../../static/tabbar/my.png"></image>
<text class="tabBar-item-text" style="color: #666666;">我的</text>
</view>
</view>
</view>
</view>
</template>
<script>
import faIcon from "@/components/fa-icon/fa-icon.vue";
import {
mapState,
mapMutations
} from 'vuex';
export default {
components: {
// faIcon
},
computed: {
...mapState(['hasLogin', 'userInfo'])
},
data() {
return {
windowWidth:"",
windowHeight:"",
bannerHeight:"",
bannerWidth:"",
leftIconHeight:"",
leftIconWidth:"",
mainSelect:false,
applySelect:false,
cleandarSelect:false,
mySelect:true,
avatar: '',
dataBase:''
}
},
onLoad() {
if(this.userInfo.avatarUrl)
{
this.avatar=this.userInfo.avatarUrl
}
if(this.userInfo.dbAlise){
this.dataBase = this.userInfo.dbAlise
}
const res = uni.getSystemInfoSync();
this.windowHeight = res.windowHeight;
this.windowWidth = res.windowWidth;
let sWindow = this.windowHeight*this.windowWidth;
let sBaseWindow = 414*896;
let sBaseBanner = 414*270;
let basePrecent = sBaseBanner/sBaseWindow;
let baseWHprecent = 414/270;
let sWindowBanner = sWindow*basePrecent;
this.bannerHeight = Math.sqrt((sWindowBanner/baseWHprecent));
this.bannerWidth = this.bannerHeight*baseWHprecent;
},
methods: {
editClick(){
uni.navigateTo({
url:'../../myinfo/selfinfo/selfinfo'
})
},
mainSelectF(){
this.mainSelect = true;
this.applySelect = false;
this.cleandarSelect = false;
this.mySelect = false;
uni.redirectTo({
url:'../home/home'
})
},
applySelectF(){
this.mainSelect = false;
this.applySelect = true;
this.cleandarSelect = false;
this.mySelect = false;
uni.redirectTo({
url:'../apply/apply'
})
},
// cleandarSelectF(){
// this.mainSelect = false;
// this.applySelect = false;
// this.cleandarSelect = true;
// this.mySelect = false;
// uni.redirectTo({
// url:'../calendar/calender'
// })
// },
mySelectF(){
this.mainSelect = false;
this.applySelect = false;
this.cleandarSelect = false;
this.mySelect = true;
},
PageNavigate:function(urls){
uni.navigateTo({
url: urls,
});
// if(this.hasLogin)
// {
// uni.navigateTo({
// url: urls,
// });
// }
// else{
// this.clickRePage();
// }
},
clickRePage:function(){
uni.navigateTo({
url: '../../myinfo/login/login'
});
},
//清除缓存
clickClearCache: function() {
//方便测试后续删除
let requestUrl = this.$global.globalData.requestUrl;
//缓存账套配置
this.$global.setGlobalObj({
requestUrl: requestUrl
});
this.clearServerCache();
this.getSupplierList(this.userInfo);
this.getCustomerList(this.userInfo);
this.getDeptList(this.userInfo);
this.getSysParameters(this.userInfo);
this.$global.GetAllMenu(this.userInfo);
uni.showToast({
title: '缓存已刷新!',
duration: 2000,
icon: 'none',
complete:function() {
}
});
},
getDeptList: function(userInfo){
let requestParams = {
"id": userInfo.token,
"basicType": 1,
orgid:userInfo.orgid
};
this.$request.post(
{
data: {
action: 'QueryBasicData',
params: requestParams
}
}
).then(res => {
console.log("----getDeptList---- requestsuccess");
let datalist = JSON.parse(res);
this.saveDeptInfos(datalist);
});
},
getCustomerList: function(userInfo){
//客户
let requestParams = {
"id": userInfo.token,
"basicType": 3,
orgid:userInfo.orgid
};
this.$request.post(
{
data: {
action: 'QueryBasicData',
params: requestParams
}
}
).then(res => {
console.log("----getCustomerList---- requestsuccess");
let datalist = JSON.parse(res);
this.saveCustomerInfos(datalist);
});
},
getSupplierList: function(userInfo){
let requestParams = {
"id": userInfo.token,
"basicType": 2,
orgid:userInfo.orgid
};
this.$request.post(
{
data: {
action: 'QueryBasicData',
params: requestParams
}
}
).then(res => {
console.log("----getSupplierList---- requestsuccess");
let datalist = JSON.parse(res);
this.saveSupplierInfos(datalist);
});
},
getSysParameters: function(userInfo){
this.getSysParameter(userInfo, "BarcodeRuleForVerification");
let _self = this;
setTimeout(
function(){
_self.getSysParameter(userInfo, "STOCKPLACECHAR");
}, 1000);
},
getSysParameter: function(userInfo, sysKey){
let updateFlag = !this.sysParameters;
if(!updateFlag) {
if(!this.sysParameters.hasOwnProperty(sysKey)) {
updateFlag = true;
}
}
let requestParams = {
"id": userInfo.token,
"sysKey": sysKey
};
this.$request.post(
{
data: {
action: 'GetSysParams',
params: requestParams
}
}
).then(res => {
console.log("----getSysParameters---- requestsuccess");
//返回的是字符串
let data = res;
this.saveSysParameters({value:data, key:sysKey});
});
},
clearServerCache: function(){
let requestParams = {
"id": this.userInfo.token,
"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----");
});
},
...mapMutations(['clearCache', 'saveCustomerInfos', 'saveDeptInfos',
'saveSysParameters', 'saveSupplierInfos',"deptInfos",
"customerInfos", "supplierInfos", "sysParameters"])
}
}
</script>
<style>
.my-info{
position:fixed;
display: flex;
flex-direction: row;
padding-left: 43.47rpx;
align-items: center;
z-index: 100;
top:150rpx;
}
.my-info-left{
height: 181.15rpx;
width: 181.15rpx;
}
.my-info-right{
display: flex;
flex-direction: column;
margin-left: 43.47rpx;
}
.my-info-right-up{
display: flex;
flex-direction: row;
align-items: center;
}
.my-info-name{
height: 59.78rpx;
font-size: 43.47rpx;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #FFFFFF;
line-height: 59.78rpx;
z-index: 10;
}
.my-info-edit{
height: 43.47rpx;
width: 43.47rpx;
margin-left: 18.11rpx;
z-index: 10;
}
.my-info-right-down{
height: 36.23rpx;
font-size: 25.36rpx;
font-family: PingFang-SC-Regular, PingFang-SC;
font-weight: 400;
color: #FFFFFF;
line-height: 36.23rpx;
z-index: 10;
}
.my-body-outline{
height: 108.69rpx;
display: flex;
flex-direction:
row;align-items: center;
}
.left-img{
height: 50.72rpx;
width: 50.72rpx;
margin-left: 43.47rpx;
}
.my-body{
width: 80%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: start;
height: 108.69rpx;
line-height: 108.69rpx;
margin-left: 43.47rpx;
margin-right: 43.47rpx;
border-bottom: #F1F1F1 solid 1.81rpx;
}
.my-body image{
height: 32.6rpx;
width: 32.6rpx;
}
.my-body view{
margin-left: 21.73rpx;
width: 100%;
font-size: 32.6rpx;
}
.tabBar{
display: flex;
position: fixed;
flex-direction: row;
left: 0;
right: 0;
bottom: 0;
height: 119.56rpx;
background: rgba(255, 255, 255, 1);
box-shadow:2px 2px 10px rgba(0, 0, 0, 1);
}
.tabBar-item{
display: flex;
flex-direction: column;
flex-shrink: 1;
flex-grow: 1;
align-items: center ;
width: 100%;
}
.tabBar-item-view{
display: flex;
flex-direction: column;
flex-shrink: 1;
flex-grow: 1;
align-items: center ;
}
.tabBar-item-img{
height: 54.34rpx;
width: 54.34rpx;
margin-top: 16.3rpx;
}
.tabBar-item-text{
text-align: center;
height: 28.98rpx;
font-size:28.98rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #515151;
line-height: 28.98rpx;
margin-left: 0;
}
.main {
height: 100%;
overflow-y: hidden;
}
</style>