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

+50
View File
@@ -0,0 +1,50 @@
import dialogNoticeComponent from '@/components/opsoft-dialog-notice/opsoft-dialog-notice.vue'
export default (Vue) => {
let dialogNoticeDom = null;
let dialogNoticeCom = null;
let dialogShow = true;
function showDialog({title, content, type, cancelText, confirmText, click}) {
if (!dialogNoticeCom) {
dialogNoticeCom = Vue.extend(dialogNoticeComponent);
}
if (!dialogNoticeDom) {
dialogNoticeDom = new dialogNoticeCom();
dialogNoticeDom.dialogNoticeTitle = title;
dialogNoticeDom.dialogNoticeContent = content;
dialogNoticeDom.dialogNoticeConfirm = confirmText;
dialogNoticeDom.dialogNoticeShow = dialogShow;
dialogNoticeDom.dialogNoticeType = type;
dialogNoticeDom.$mount();
dialogNoticeDom.dialogNoticeClickCallback = function(res, event){
dialogShow = false;
dialogNoticeDom.dialogNoticeShow = dialogShow;
click(res, event);
};
document.body.children[1].children[0].appendChild(dialogNoticeDom.$el);
}
else {
if (dialogShow) {
dialogShow = false;
dialogNoticeDom.dialogNoticeShow = dialogShow;
dialogNoticeDom.dialogNoticeShow = dialogShow;
}
dialogShow = true;
dialogNoticeDom.dialogNoticeTitle = title;
dialogNoticeDom.dialogNoticeContent = content;
dialogNoticeDom.dialogNoticeConfirm = confirmText;
dialogNoticeDom.dialogNoticeShow = dialogShow;
dialogNoticeDom.dialogNoticeType = type;
dialogNoticeDom.dialogClickCallback = function(res, event){
if (res == 'cancel') {
dialogShow = false;
dialogNoticeDom._data.dialogShowRef = dialogShow;
}
click(res, event);
};
}
}
Vue.prototype.$dialogNotice = {showDialog};
}
@@ -0,0 +1,155 @@
<template>
<opsoft-dialog v-bind="$attrs" :popuContentStyle="noticeStyle"
:dialogContent="dialogNoticeContent" :dialogShow="dialogNoticeShow"
ref="opsoftDialog">
<template v-slot:dialogTitle>
<view class="dialog-notice-title">
<view :class="['dialog-notice-title-icon', titleIconClass]"/>
<view>{{dialogNoticeTitle}}</view>
</view>
</template>
<template v-slot:dialogButton>
<view class="dialog-notice-buttons">
<view class="dialog-notice-button" @tap.stop="dialogNoticeConfirmClick">{{dialogNoticeConfirm}}</view>
</view>
</template>
</opsoft-dialog>
</template>
<script>
export default {
name: "opsoft-dialog-notice",
props: {
dialogNoticeConfirm: {type:String, default:'确定'},
dialogNoticeType: {type:String, default:'error'},
dialogNoticeTitle: {type:String, default:''},
dialogNoticeContent: {type:String, default:''},
dialogNoticeShow: {type:Boolean, default:false},
dialogNoticeClickCallback: {type:Object},
},
data() {
return {
titleIconClass: "",
noticeStyle: {height:"216px"},
title: "",
}
},
watch:{
dialogNoticeType(newValue, oldValue) {
if (newValue == 'error') {
this.titleIconClass = "dialog-notice-title-icon-error";
if (!this.title) {
this.title = "错误提示";
}
}
else if (newValue == 'success') {
this.titleIconClass = "dialog-notice-title-icon-success";
if (!this.title) {
this.title = "成功提示";
}
}
else if (newValue == 'tips') {
this.titleIconClass = "dialog-notice-title-icon-tips";
if (!this.title) {
this.title = "信息提示";
}
}
else if (newValue == 'warning') {
this.titleIconClass = "dialog-notice-title-icon-warning";
if (!this.title) {
this.title = "警告提示";
}
}
},
},
created() {
this.title = this.dialogNoticeTitle;
if (this.dialogNoticeType == 'error') {
this.titleIconClass = "dialog-notice-title-icon-error";
if (!this.title) {
this.title = "错误提示";
}
}
else if (this.dialogNoticeType == 'success') {
this.titleIconClass = "dialog-notice-title-icon-success";
if (!this.title) {
this.title = "成功提示";
}
}
else if (this.dialogNoticeType == 'tips') {
this.titleIconClass = "dialog-notice-title-icon-tips";
if (!this.title) {
this.title = "信息提示";
}
}
else if (this.dialogNoticeType == 'warning') {
this.titleIconClass = "dialog-notice-title-icon-warning";
if (!this.title) {
this.title = "警告提示";
}
}
},
methods: {
dialogNoticeConfirmClick(event) {
this.$emit("update:dialogNoticeShow",false);
if (this.dialogNoticeClickCallback) {
this.dialogNoticeClickCallback('comfirm', event);
}
this.$emit("dialogNoticeConfirmClick", event);
},
showDialog(show){
this.dialogNoticeShow = show;
this.$refs.opsoftDialog.showDialog(this.dialogNoticeShow);
}
}
}
</script>
<style lang="scss">
.dialog-notice-title{
color: rgba(51, 51, 51, 1);
font-size: 36rpx;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
.dialog-notice-title-icon {
background-size: 44rpx 44rpx;
background-repeat: no-repeat;
background-position:center center;
width: 44rpx;
height: 44rpx;
margin-right: 16rpx;
}
.dialog-notice-title-icon-error {
background-image: url(./static/error.svg);
}
.dialog-notice-title-icon-success {
background-image: url(./static/success.svg);
}
.dialog-notice-title-icon-tips {
background-image: url(./static/tips.svg);
}
.dialog-notice-title-icon-warning {
background-image: url(./static/warning.svg);
}
}
.dialog-notice-buttons {
flex-grow: 0;
flex-shrink: 0;
margin-bottom: 40rpx;
width: 100%;
.dialog-notice-button{
margin-left: 48rpx;
margin-right: 48rpx;
height: 64rpx;
line-height: 64rpx;
text-align: center;
background: linear-gradient(90deg, rgba(72, 162, 249, 1) 0%, rgba(41, 138, 240, 1) 100%);
background: rgba(52, 146, 242, 1);
border-radius: 4px;
color: rgba(255, 255, 255, 1);
font-size: 14px;
}
}
</style>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="19.25" height="19.25" viewBox="0 0 19.25 19.25" fill="none"><path id="分组 1" fill-rule="evenodd" style="fill:#EE0A24" transform="translate(0 0) rotate(0 9.625 9.625)" opacity="1" d="M0 9.63C0 14.94 4.31 19.25 9.63 19.25C14.94 19.25 19.25 14.94 19.25 9.63C19.25 4.31 14.94 0 9.63 0C4.31 0 0 4.31 0 9.63Z M6.09935 14.2394L9.62935 10.7194L13.1494 14.2394C13.4494 14.5494 13.9394 14.5494 14.2394 14.2394C14.5494 13.9394 14.5494 13.4494 14.2394 13.1494L10.7194 9.62935L14.2394 6.09935C14.5494 5.79935 14.5494 5.30935 14.2394 5.00935C13.9394 4.70935 13.4494 4.70935 13.1494 5.00935L9.62935 8.52935L6.09935 5.00935C5.79935 4.69935 5.30935 4.69935 5.00935 5.00935C4.69935 5.30935 4.69935 5.79935 5.00935 6.09935L8.52935 9.62935L5.00935 13.1494C4.70935 13.4494 4.70935 13.9394 5.00935 14.2394C5.30935 14.5494 5.79935 14.5494 6.09935 14.2394Z " /></svg>

After

Width:  |  Height:  |  Size: 937 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20.16666665234375" height="20.166666652343793" viewBox="0 0 20.16666665234375 20.166666652343793" fill="none"><path id="分组 1" fill-rule="evenodd" style="fill:#07C160" transform="translate(6.106226635438361e-15 -2.070565940925917e-13) rotate(0 10.083333326171877 10.083333326171877)" opacity="1" d="M20.17 10.08C20.17 4.51 15.65 0 10.08 0C4.51 0 0 4.51 0 10.08C0 15.65 4.51 20.17 10.08 20.17C15.65 20.17 20.17 15.65 20.17 10.08Z M15.8505 5.45499L9.00048 13.165L5.76048 9.91499C5.49048 9.66499 5.06048 9.67499 4.80048 9.93499C4.54048 10.195 4.53048 10.615 4.78048 10.895L8.54048 14.645C8.54048 14.645 8.54048 14.645 8.55048 14.655L8.55048 14.655C8.70048 14.805 8.91048 14.875 9.12048 14.855C9.33048 14.825 9.52048 14.705 9.63048 14.525L16.8805 6.36499C17.1305 6.08499 17.1005 5.65499 16.8205 5.39499C16.5305 5.14499 16.1005 5.17499 15.8505 5.45499Z " /></svg>

After

Width:  |  Height:  |  Size: 952 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="22" height="22" viewBox="0 0 22 22" fill="none"><path id="提示" fill-rule="evenodd" style="fill:#9E9E9E" transform="translate(0 0) rotate(0 10.999999999999995 11)" opacity="1" d="M0 11C0 17.08 4.92 22 11 22C17.08 22 22 17.08 22 11C22 4.92 17.08 0 11 0C4.92 0 0 4.92 0 11Z M9.8421 4.63368C9.8421 5.10368 10.1221 5.52368 10.5521 5.70368C10.9921 5.88368 11.4921 5.78368 11.8221 5.45368C12.1521 5.12368 12.2521 4.62368 12.0721 4.18368C11.8921 3.75368 11.4721 3.47368 11.0021 3.47368C10.3621 3.47368 9.8421 3.99368 9.8421 4.63368Z M12.9148 17.0686C12.9148 16.1486 11.9648 17.0686 11.4948 16.1486C11.0348 15.2386 12.4348 9.7386 12.4348 7.8986C12.4348 6.0586 9.15476 7.8986 9.15476 7.8986C9.63476 7.8986 9.62476 7.8986 10.0948 8.8086C10.5748 9.7286 8.69476 14.3186 9.15476 17.0686C9.63476 19.8186 12.9148 17.9786 12.9148 17.0686Z " /></svg>

After

Width:  |  Height:  |  Size: 926 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="22" height="22" viewBox="0 0 22 22" fill="none"><path id="分组 1" fill-rule="evenodd" style="fill:#FAAB0C" transform="translate(0 0) rotate(0 11 11)" opacity="1" d="M0 11C0 17.06 4.94 22 11 22C17.06 22 22 17.06 22 11C22 4.94 17.06 0 11 0C4.94 0 0 4.94 0 11Z M10.2171 13.2499C10.2171 13.8299 10.4771 14.1099 10.9971 14.1099C11.5271 14.1099 11.7871 13.8299 11.7871 13.2499L11.7871 5.34994C11.7871 4.77994 11.5271 4.48994 10.9971 4.48994C10.4771 4.48994 10.2171 4.77994 10.2171 5.34994L10.2171 13.2499Z M11.9816 16.5334C11.9816 15.9934 11.5416 15.5534 11.0016 15.5534C10.4616 15.5534 10.0216 15.9934 10.0216 16.5334C10.0216 17.0734 10.4616 17.5134 11.0016 17.5134C11.5416 17.5134 11.9816 17.0734 11.9816 16.5334Z " /></svg>

After

Width:  |  Height:  |  Size: 813 B