baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
+1212
File diff suppressed because it is too large.
Load diff
+203
@@ -0,0 +1,203 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<view class="main">
|
||||
<view class="m-title mt-center">
|
||||
<text class="title" decode="true"> 常用事项</text>
|
||||
</view>
|
||||
<!-- <view class="m-contain">
|
||||
<view v-for="(item ,index) in comList" :key="index">
|
||||
<view @click="NavigateApply(item.Key)" >
|
||||
<image :src="'../../../static/icon/'+item.Key+'.png'" mode="scaleToFill" ></image>
|
||||
</view>
|
||||
<text >{{item.Name}}</text>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="example-body">
|
||||
<uni-grid :column="4" :show-border="false" :square="false">
|
||||
<uni-grid-item v-for="(subitem ,subindex) in comList" :key="subindex">
|
||||
<view class="grid-item-box" @click="NavigateApplyKanban(subitem)" v-if="subitem.PrgType==8 || subitem.PrgType== 3">
|
||||
<image class="image" src="../../../static/icon/unchecked.png" />
|
||||
<text class="text">{{subitem.Name}}</text>
|
||||
</view>
|
||||
<view class="grid-item-box" @click="NavigateApply(subitem.Key)" v-else>
|
||||
<image class="image" :src="'../../../static/icon/'+subitem.Key+'.png'" />
|
||||
<text class="text">{{subitem.Name}}</text>
|
||||
</view>
|
||||
</uni-grid-item>
|
||||
</uni-grid>
|
||||
</view>
|
||||
<view class="m-bottom" @click="LongTap">
|
||||
<view>
|
||||
<fa-icon type="plus" size="23" color="#cdcdcd"></fa-icon>
|
||||
</view>
|
||||
<view>添加</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="main">
|
||||
<view class="m-title mt-center">
|
||||
<text class="title" decode="true"> 更多应用</text>
|
||||
</view>
|
||||
<!-- 所有菜单遍历 -->
|
||||
<view class="main" v-for="(item ,index) in allMenu" :key="index">
|
||||
<view class="m-title">
|
||||
<text class="title" decode="true"> {{item.Name}}</text>
|
||||
</view>
|
||||
<!-- <view class="m-contain">
|
||||
<view v-for="(subitem ,subindex) in item.SubItems" :key="subindex" >
|
||||
<view @click="NavigateApply(subitem.Key)">
|
||||
<image :src="'../../../static/icon/'+subitem.Key+'.png'" mode="scaleToFill"></image>
|
||||
</view>
|
||||
<text>{{subitem.Name.substr(0,4)}}</text>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="example-body">
|
||||
<uni-grid :column="4" :show-border="false" :square="false">
|
||||
<uni-grid-item v-for="(subitem ,subindex) in item.SubItems" :key="subindex">
|
||||
<view class="grid-item-box" @click="NavigateApplyKanban(subitem)" v-if="subitem.PrgType==8 || subitem.PrgType== 3">
|
||||
<image class="image" src="../../../static/icon/unchecked.png" />
|
||||
<text class="text">{{subitem.Name}}</text>
|
||||
</view>
|
||||
<view class="grid-item-box" @click="NavigateApply(subitem.Key)" v-else>
|
||||
<image class="image" :src="'../../../static/icon/'+subitem.Key+'.png'" />
|
||||
<text class="text">{{subitem.Name}}</text>
|
||||
</view>
|
||||
</uni-grid-item>
|
||||
</uni-grid>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import uniGrid from '@/components/uni-grid/uni-grid.vue'
|
||||
import uniGridItem from '@/components/uni-grid-item/uni-grid-item.vue'
|
||||
import faIcon from '@/components/fa-icon/fa-icon.vue'
|
||||
let commoList = [{
|
||||
key: '1',
|
||||
iconUrl: '../../../static/icon/mail.png',
|
||||
text: '邮件',
|
||||
url: ''
|
||||
},
|
||||
{
|
||||
key: '2',
|
||||
iconUrl: '../../../static/icon/notice.png',
|
||||
text: '消息',
|
||||
url: ''
|
||||
}
|
||||
]
|
||||
|
||||
export default {
|
||||
components: {
|
||||
faIcon,
|
||||
uniGrid,
|
||||
uniGridItem
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
allMenu: [],
|
||||
comList: commoList
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
console.log(this.$global.globalMenu.menuList)
|
||||
this.ShowMenuList();
|
||||
},
|
||||
methods: {
|
||||
NavigateApply(page) {
|
||||
console.log(page)
|
||||
if (page) {
|
||||
if(page=="STK_InventorySeach"){
|
||||
uni.redirectTo({
|
||||
url: '../../views/' + page + '/' + page + '?prepage=moreapply'
|
||||
})
|
||||
}
|
||||
else {
|
||||
uni.redirectTo({
|
||||
url: '../../views/' + page + '/' + page
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
ShowMenuList() {
|
||||
uni.getStorage({
|
||||
key: 'AllMenu',
|
||||
success: (res) => {
|
||||
this.allMenu = res.data
|
||||
}
|
||||
});
|
||||
|
||||
uni.getStorage({
|
||||
key: 'CommonItem',
|
||||
success: (res) => {
|
||||
this.comList = res.data
|
||||
}
|
||||
});
|
||||
},
|
||||
LongTap: function() {
|
||||
uni.navigateTo({
|
||||
url: '../applymanage/applymanage'
|
||||
})
|
||||
},
|
||||
// 点击跳转
|
||||
NavigateApplyKanban(subitem) {
|
||||
let page=subitem.Key;
|
||||
if (page) {
|
||||
let tempurl='../../views/KanBan/KanBan'+'?pageNumber='+page;
|
||||
uni.navigateTo({
|
||||
url: tempurl
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@import url("../../../common/iconindex.css");
|
||||
.page{
|
||||
width: 100%;
|
||||
}
|
||||
page {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.example-body {
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
font-size: 14px;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.grid-item-box {
|
||||
flex: 1;
|
||||
/* position: relative;
|
||||
*/
|
||||
/* #ifndef APP-NVUE */
|
||||
display: flex;
|
||||
/* #endif */
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 15px 0;
|
||||
}
|
||||
|
||||
.text {
|
||||
padding: 10upx 0;
|
||||
}
|
||||
|
||||
.m-bottom {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
/* margin: 2% 5%;
|
||||
margin-bottom: 5%; */
|
||||
border: 1upx dotted #CCCCCC;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
/* height: 160upx; */
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user