baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
+261
@@ -0,0 +1,261 @@
|
||||
<template>
|
||||
<view>
|
||||
<!-- 常用事项 -->
|
||||
<view class="main" >
|
||||
<view class="m-title mt-center">
|
||||
<text class="title" decode="true">常用事项</text>
|
||||
</view>
|
||||
<view v-if="comList.length==0" style="text-align: center;margin: 10px 0;">暂无常用事项,请添加!</view>
|
||||
<view class="example-body" style="margin-bottom: 20px;">
|
||||
<uni-grid :column="4" :show-border="false" :square="false" >
|
||||
<uni-grid-item v-for="(item ,index) in comList" :key="index" >
|
||||
<view class="grid-item-box" @click="MenuDelete(item,index)">
|
||||
<image class="image" src="../../../static/icon/unchecked.png" v-if="item.FTYPE==4"/>
|
||||
<!-- <image class="image" :src="item.src" v-else/> -->
|
||||
<view class="image" :style="{backgroundImage:'url('+item.src+')'}"/>
|
||||
<text class="text">{{item.NAME}}</text>
|
||||
<view class="grid-dot-del">
|
||||
<!-- <uni-badge text="-" type="warning" size="small" /> -->
|
||||
</view>
|
||||
</view>
|
||||
</uni-grid-item>
|
||||
</uni-grid>
|
||||
</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="example-body">
|
||||
<uni-grid :column="4" :show-border="false" :square="false" >
|
||||
<uni-grid-item v-for="(subitem ,subindex) in item.SubMenus" :key="subindex" >
|
||||
<view class="grid-item-box" v-show="!subitem.inComList" @click="MenuAdd(subitem,subindex)">
|
||||
<image class="image" src="../../../static/icon/unchecked.png" v-if="subitem.FTYPE==4" />
|
||||
<!-- <image class="image" :src="subitem.src" v-else /> -->
|
||||
<view class="image" :style="{backgroundImage:'url('+subitem.src+')'}"/>
|
||||
<text class="text">{{subitem.NAME}}</text>
|
||||
<view class="grid-dot-add">
|
||||
<!-- <uni-badge text="+" type="primary" size="small"/> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="grid-item-box" v-show="subitem.inComList">
|
||||
<image class="image" src="../../../static/icon/unchecked.png" v-if="subitem.FTYPE==4" />
|
||||
<!-- <image class="image" :src="subitem.src" v-else /> -->
|
||||
<view class="image" :style="{backgroundImage:'url('+subitem.src+')'}"/>
|
||||
<text class="text">{{subitem.NAME}}</text>
|
||||
<view class="grid-dot-sel" v-show="subitem.inComList">
|
||||
<!-- <uni-badge text="+" type="default" size="small" /> -->
|
||||
</view>
|
||||
</view>
|
||||
</uni-grid-item>
|
||||
</uni-grid>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Vue from 'vue';
|
||||
import uniGrid from '@/components/uni-grid/uni-grid.vue'
|
||||
import uniGridItem from '@/components/uni-grid-item/uni-grid-item.vue'
|
||||
import uniBadge from '@/components/uni-badge/uni-badge.vue'
|
||||
|
||||
export default {
|
||||
components:{
|
||||
uniGrid,
|
||||
uniGridItem,
|
||||
uniBadge
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
allMenu:[],
|
||||
comList:[],
|
||||
itemKey:'',
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.ShowMenuList();
|
||||
},
|
||||
methods: {
|
||||
showAddonLoad(comList,allMenu){
|
||||
let _self = this;
|
||||
let comIDList = [];
|
||||
if(comList.length==0){
|
||||
return
|
||||
}
|
||||
comList.forEach(
|
||||
function(e){
|
||||
let arr = {
|
||||
"ID":e.ID
|
||||
}
|
||||
comIDList.push(arr)
|
||||
}
|
||||
);
|
||||
console.log(this.allMenu)
|
||||
this.allMenu.forEach(
|
||||
function(e){
|
||||
e.SubMenus.forEach(
|
||||
function(el,index){
|
||||
comIDList.forEach(
|
||||
function(comEl){
|
||||
if(comEl.ID==el.ID){
|
||||
let inComList = {
|
||||
"inComList":true
|
||||
};
|
||||
Vue.set(e.SubMenus[index],'inComList',true)
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
console.log(this.allMenu)
|
||||
},
|
||||
ShowMenuList() {
|
||||
let _self = this;
|
||||
this.comList = uni.getStorageSync('ComMenu');
|
||||
this.allMenu = uni.getStorageSync('AllMenu');
|
||||
this.comList.forEach(e => {
|
||||
e.src = "../../../static/icon/" + e.KEY +".png"
|
||||
})
|
||||
this.showAddonLoad(this.comList,this.allMenu);
|
||||
},
|
||||
MenuDelete:function(item,index){
|
||||
let id = item.ID;
|
||||
this.delFavorites(id);
|
||||
if(index>=0){
|
||||
this.comList.splice(index,1)
|
||||
this.allMenu = uni.getStorageSync('AllMenu')
|
||||
this.showAddonLoad(this.comList,this.allMenu)
|
||||
}
|
||||
},
|
||||
MenuAdd:function(item,index){
|
||||
let id = item.ID;
|
||||
this.setFavorites(id);
|
||||
if(item){
|
||||
this.comList.push(item)
|
||||
let obj = {};
|
||||
this.comList= this.comList.reduce((cur,next) => {
|
||||
obj[next.ID] ? "" : obj[next.ID] = true && cur.push(next);
|
||||
return cur;
|
||||
},[]);
|
||||
this.allMenu = uni.getStorageSync('AllMenu')
|
||||
this.showAddonLoad(this.comList,this.allMenu)
|
||||
}
|
||||
|
||||
},
|
||||
setFavorites(id) {
|
||||
this.$request.post('/Service/SetFavorites',
|
||||
JSON.stringify(id)).then(res => {
|
||||
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
});
|
||||
},
|
||||
delFavorites(id) {
|
||||
this.$request.post('/Service/DelFavorites',
|
||||
JSON.stringify(id)).then(res => {
|
||||
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
});
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@import url("../../../common/iconindex.css");
|
||||
|
||||
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;
|
||||
border: 1upx solid #F2F2F2;
|
||||
}
|
||||
.text {
|
||||
padding: 10upx 0;
|
||||
word-break: break-all;
|
||||
text-align: center;
|
||||
line-height: 16px;
|
||||
width: 64px;
|
||||
|
||||
}
|
||||
.grid-dot-del {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 20px;
|
||||
height: 15px;
|
||||
width: 15px;
|
||||
border-radius: 50%;
|
||||
background-image: url('@/static/myinfo/del.png');
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
|
||||
}
|
||||
.grid-dot-add {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 20px;
|
||||
height: 15px;
|
||||
width: 15px;
|
||||
border-radius: 50%;
|
||||
background-image: url('@/static/myinfo/add.png');
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
|
||||
}
|
||||
.grid-dot-sel {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 20px;
|
||||
height: 15px;
|
||||
width: 15px;
|
||||
border-radius: 50%;
|
||||
background-image: url('@/static/myinfo/selected.png');
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
|
||||
}
|
||||
.uni-badge{
|
||||
width: 17upx !important;
|
||||
}
|
||||
.image{
|
||||
height: 79.71rpx;
|
||||
width: 79.71rpx;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
}
|
||||
</style>
|
||||
Executable
+154
@@ -0,0 +1,154 @@
|
||||
<template>
|
||||
<view class="main">
|
||||
<view class="top-tag">
|
||||
<view class="tag" @click="PageNavigate('../../apply/auditlist/auditlist')">
|
||||
<view >
|
||||
<image src="../../../static/com/myapply.png" mode="scaleToFill"></image>
|
||||
</view>
|
||||
<text>我审批的</text>
|
||||
</view>
|
||||
<view class="tag" @click="PageNavigate('../../apply/auditlist/auditlist')">
|
||||
<view>
|
||||
<image src="../../../static/com/msend.png" mode="scaleToFill"></image>
|
||||
</view>
|
||||
<text>我发起的</text>
|
||||
</view>
|
||||
<view class="tag" @click="PageNavigate('../../apply/auditlist/auditlist')">
|
||||
<view>
|
||||
<image src="../../../static/com/finish.png" mode="scaleToFill"></image>
|
||||
</view>
|
||||
<text>抄送我的</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="drop-tag" >
|
||||
<view class="drop-title" @tap="DropChange" data-index="1">
|
||||
<view class="d-title">单据审批(2)</view>
|
||||
<view class="d-icon">
|
||||
<view>
|
||||
<fa-icon v-if="tagIndex===1" type="angle-up" size="22" color="#CCC"></fa-icon>
|
||||
<fa-icon v-if="tagIndex!=1" type="angle-down" size="22" color="#CCC"></fa-icon>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="drop-contain" v-if="tagIndex===1">
|
||||
<view class="d-tag">
|
||||
<view>
|
||||
<image src="../../../static/com/ordersissued.png" mode="scaleToFill"></image>
|
||||
</view>
|
||||
<text>工单下达</text>
|
||||
</view>
|
||||
<view class="d-tag">
|
||||
<view>
|
||||
<image src="../../../static/com/orderclosure.png" mode="scaleToFill"></image>
|
||||
</view>
|
||||
<text>工单结案</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import faIcon from "@/components/fa-icon/fa-icon.vue"
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
tagIndex:1
|
||||
}
|
||||
},
|
||||
components: {
|
||||
faIcon
|
||||
},
|
||||
methods: {
|
||||
//下拉
|
||||
DropChange:function (e) {
|
||||
console.log(e.currentTarget.dataset)
|
||||
if (e.currentTarget.dataset.index != this.tagIndex) {
|
||||
this.tagIndex=1;
|
||||
} else {
|
||||
this.tagIndex=0;
|
||||
}
|
||||
console.log(this.tagIndex);
|
||||
},
|
||||
PageNavigate:function(urls){
|
||||
uni.navigateTo({
|
||||
url: urls
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.main{
|
||||
height: 100%;
|
||||
background-color: #F2F2F2;
|
||||
}
|
||||
.top-tag{
|
||||
height: 20%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
background-color: #FFFFFF;
|
||||
margin-bottom: 20upx;
|
||||
}
|
||||
image{
|
||||
height: 100upx;
|
||||
width: 100upx;
|
||||
}
|
||||
.tag{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex: 1;
|
||||
}
|
||||
.drop-tag{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: #FFFFFF;
|
||||
margin-bottom: 10upx;
|
||||
}
|
||||
.drop-title{
|
||||
height: 80upx;
|
||||
padding: 18upx 0;
|
||||
border-bottom: 1upx solid #F2F2F2;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
.drop-title view{
|
||||
flex: 1;
|
||||
}
|
||||
.d-title{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
padding-left: 30upx;
|
||||
font-size: 35upx;
|
||||
font-weight: bold;
|
||||
}
|
||||
.d-icon{
|
||||
display: flex;
|
||||
}
|
||||
.d-icon view{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
margin-right: 15upx;
|
||||
}
|
||||
.drop-contain
|
||||
{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
.d-tag{
|
||||
display: flex;
|
||||
height: 230upx;
|
||||
width: 33%;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
+159
@@ -0,0 +1,159 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<view class="example-body">
|
||||
<uni-search-bar radius="100" placeholder="请输入搜索内容" cancelButton="auto" @confirm="search" />
|
||||
</view>
|
||||
<scroll-view class="list" scroll-y="true" @scrolltolower="loadMore()">
|
||||
<block v-for="(item,index) in list" :key="index">
|
||||
<view class="list-row" @click="goDetail(item)">
|
||||
<view class="list-row-img">
|
||||
<image src="../../../static/com/apply.png" style="width: 70upx; height: 70upx;"></image>
|
||||
</view>
|
||||
<view class="list-row-sub">
|
||||
<view class="sub-top">
|
||||
<text class="sub-title">审批主题1</text>
|
||||
<text class="sub-datetime">2019-09-09</text>
|
||||
</view>
|
||||
<text class="sub-date">审批时间:2019-03-29 17:30</text>
|
||||
<text class="sub-addr">审批地点:江苏欧软信息科技有限公司</text>
|
||||
<text class="sub-reason">审批说明:主要审批内容说明</text>
|
||||
<text class="sub-status" :style="{color:statusColor}">审批失败</text>
|
||||
</view>
|
||||
</view>
|
||||
<!--<media-list :options="newsitem" @close="close(index1,index2)" @click="goDetail(newsitem)"></media-list>-->
|
||||
</block>
|
||||
<view class="uni-tab-bar-loading">
|
||||
{{loadingText}}
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import uniSearchBar from '@/components/uni-search-bar/uni-search-bar.vue'
|
||||
|
||||
const tpl = {
|
||||
data0: {
|
||||
"datetime": "40分钟前",
|
||||
"article_type": 0,
|
||||
"title": "uni-app行业峰会频频亮相,开发者反响热烈!",
|
||||
"source": "DCloud",
|
||||
"comment_count": 639
|
||||
},
|
||||
data1: {
|
||||
"datetime": "一天前",
|
||||
"article_type": 1,
|
||||
"title": "DCloud完成B2轮融资,uni-app震撼发布!",
|
||||
"image_url": "https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/shuijiao.jpg?imageView2/3/w/200/h/100/q/90",
|
||||
"source": "DCloud",
|
||||
"comment_count": 11395
|
||||
},
|
||||
data2: {
|
||||
"datetime": "一天前",
|
||||
"article_type": 2,
|
||||
"title": "中国技术界小奇迹:HBuilder开发者突破200万",
|
||||
"image_url": "https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/muwu.jpg?imageView2/3/w/200/h/100/q/90",
|
||||
"source": "DCloud",
|
||||
"comment_count": 11395
|
||||
},
|
||||
data3: {
|
||||
"article_type": 3,
|
||||
"image_list": [{
|
||||
"url": "https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/cbd.jpg?imageView2/3/w/200/h/100/q/90",
|
||||
"width": 563,
|
||||
"height": 316
|
||||
}, {
|
||||
"url": "https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/muwu.jpg?imageView2/3/w/200/h/100/q/90",
|
||||
"width": 641,
|
||||
"height": 360
|
||||
}, {
|
||||
"url": "https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/shuijiao.jpg?imageView2/3/w/200/h/100/q/90",
|
||||
"width": 640,
|
||||
"height": 360
|
||||
}],
|
||||
"datetime": "5分钟前",
|
||||
"title": "uni-app 支持使用 npm 安装第三方包,生态更趋丰富",
|
||||
"source": "DCloud",
|
||||
"comment_count": 11
|
||||
},
|
||||
data4: {
|
||||
"datetime": "2小时前",
|
||||
"article_type": 4,
|
||||
"title": "uni-app 支持原生小程序自定义组件,更开放、更自由",
|
||||
"image_url": "https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/cbd.jpg?imageView2/3/w/200/h/100/q/90",
|
||||
"source": "DCloud",
|
||||
"comment_count": 69
|
||||
}
|
||||
};
|
||||
export default {
|
||||
components: {
|
||||
uniSearchBar
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
statusColor:'red',
|
||||
scrollLeft: 0,
|
||||
isClickChange: false,
|
||||
list: [1,2,3,4],
|
||||
loadingText:'加载更多...'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
.page{
|
||||
height: 100%;
|
||||
}
|
||||
scroll-view{
|
||||
height: 90%;
|
||||
}
|
||||
.swiper-tab-list{
|
||||
width:33%;
|
||||
}
|
||||
.uni-tab-bar-loading {
|
||||
text-align: center;
|
||||
font-size: 28upx;
|
||||
color: #999;
|
||||
}
|
||||
.list-row{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
border-bottom: 1upx solid #F2F2F2;
|
||||
padding: 15upx;
|
||||
}
|
||||
.list-row-img{
|
||||
display: flex;
|
||||
flex: 1;
|
||||
justify-content: center;
|
||||
padding-top: 30upx;
|
||||
}
|
||||
.list-row-sub{
|
||||
display: flex;
|
||||
flex: 4;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.sub-top{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
.list-row-sub view text{
|
||||
display: flex;
|
||||
flex: 1;
|
||||
align-items: center;
|
||||
}
|
||||
.sub-title{
|
||||
justify-content: flex-start;
|
||||
font-size: 35upx;
|
||||
font-weight: bold;
|
||||
}
|
||||
.sub-datetime{
|
||||
justify-content: flex-end;
|
||||
padding-right: 5%;
|
||||
}
|
||||
</style>
|
||||
Executable
+231
@@ -0,0 +1,231 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<view class="example-body">
|
||||
<uni-search-bar radius="100" placeholder="请输入搜索内容" cancelButton="auto" @confirm="search" />
|
||||
</view>
|
||||
<scroll-view scroll-y="true" scroll-top="0">
|
||||
<view class="uni-list">
|
||||
<block v-for="(item,index) in lists" :key="index">
|
||||
<view class="mail-list-cell" hover-class="uni-list-cell-hover">
|
||||
<view class="mail-triplex-col">
|
||||
<view class="mail-triplex-top">
|
||||
<text class="mail-text mail-start">{{item.senduser}}</text>
|
||||
<text class="mail-date">{{item.senddate}}</text>
|
||||
</view>
|
||||
<view class="mail-triplex-content">
|
||||
<view class="mail-title mail-start"><text class="txt-title">{{item.title}}</text></view>
|
||||
<view class="mail-content mail-start"><text class="txt-content">{{item.content}}</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="mail-loading">
|
||||
{{loadingText}}
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="mail-bottom">
|
||||
<view @tap="PageNavigate('../mailedit/mailedit')">写邮件</view>
|
||||
<view>已发邮件</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import uniSearchBar from '@/components/uni-search-bar/uni-search-bar.vue'
|
||||
export default {
|
||||
components: {
|
||||
uniSearchBar
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loadingText: "已加载全部",
|
||||
inputVal: '',
|
||||
lists: [{
|
||||
title: '车间任务发布',
|
||||
subtitle: '邮件副标题',
|
||||
senduser: '刘学聪',
|
||||
content: '本月车间任务已安排,请各部门注意自己的工作,及时查看。',
|
||||
senddate: '2019-07-02'
|
||||
},
|
||||
{
|
||||
title: '车间任务发布',
|
||||
subtitle: '邮件副标题',
|
||||
senduser: '刘学聪',
|
||||
content: '本月车间任务已安排,请各部门注意自己的工作,及时查看。',
|
||||
senddate: '2019-07-02'
|
||||
},
|
||||
{
|
||||
title: 'CM1生产部日报',
|
||||
subtitle: '邮件副标题',
|
||||
senduser: '王雪',
|
||||
content: '生产部7月21日日报具体明细如下,请查收:谢谢!',
|
||||
senddate: '2019-07-21'
|
||||
},
|
||||
{
|
||||
title: 'A01号工单验货反馈',
|
||||
subtitle: '邮件副标题',
|
||||
senduser: '郭渺',
|
||||
content: 'A01号工单本次验货已全部结束,具体详情如下:',
|
||||
senddate: '2019-08-03'
|
||||
},
|
||||
{
|
||||
title: 'CM1生产部日报',
|
||||
subtitle: '邮件副标题',
|
||||
senduser: '张磊',
|
||||
content: '生产部8月9日日报具体明细如下,请查收:谢谢!',
|
||||
senddate: '2019-08-09'
|
||||
},
|
||||
{
|
||||
title: '车间问题反馈',
|
||||
subtitle: '邮件副标题',
|
||||
senduser: '缪玲玲',
|
||||
content: '2019年8月25号三号车间问题反馈。',
|
||||
senddate: '2019-08-25'
|
||||
}
|
||||
],
|
||||
pattern: {
|
||||
color: '#7A7E83',
|
||||
backgroundColor: '#fff',
|
||||
selectedColor: '#3860F3',
|
||||
buttonColor: '#3860F3'
|
||||
},
|
||||
content: [{
|
||||
iconPath: '/static/component.png',
|
||||
selectedIconPath: '/static/componentHL.png',
|
||||
text: '组件',
|
||||
active: false
|
||||
},
|
||||
{
|
||||
iconPath: '/static/api.png',
|
||||
selectedIconPath: '/static/apiHL.png',
|
||||
text: 'API',
|
||||
active: false
|
||||
},
|
||||
{
|
||||
iconPath: '/static/template.png',
|
||||
selectedIconPath: '/static/templateHL.png',
|
||||
text: '模版',
|
||||
active: false
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
page {
|
||||
background-color: #F2F2F2;
|
||||
}
|
||||
|
||||
.page {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.example-body {
|
||||
/* border-bottom: 1upx solid #CCCCCC; */
|
||||
}
|
||||
|
||||
scroll-view {
|
||||
height: 83%;
|
||||
}
|
||||
|
||||
.mail-bottom {
|
||||
height: 7%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
border-top: 1upx solid #CCCCCC;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
.mail-start {
|
||||
margin-left: 3%;
|
||||
margin-right: 3%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.mail-triplex-col {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-bottom: 1upx solid #F2F2F2;
|
||||
padding: 20upx 0;
|
||||
}
|
||||
|
||||
.mail-triplex-top {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
height: 60upx;
|
||||
}
|
||||
|
||||
.mail-text {
|
||||
width: 30%;
|
||||
font-size: 35upx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.mail-date {
|
||||
margin-right: 5%;
|
||||
width: 70%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.mail-triplex-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.mail-title {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.mail-content {
|
||||
/*超出文本用省略号显示*/
|
||||
color: #666666;
|
||||
|
||||
}
|
||||
|
||||
.txt-title {
|
||||
overflow: hidden;
|
||||
display: -webkit-box; //将对象作为弹性伸缩盒子模型显示;
|
||||
text-overflow: ellipsis; //溢出部分用省略号代替
|
||||
-webkit-line-clamp: 1; //设置文本显示两行
|
||||
-webkit-box-orient: vertical; //从上到下排列子元素;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.txt-content {
|
||||
overflow: hidden;
|
||||
display: -webkit-box; //将对象作为弹性伸缩盒子模型显示;
|
||||
text-overflow: ellipsis; //溢出部分用省略号代替
|
||||
-webkit-line-clamp: 2; //设置文本显示两行
|
||||
-webkit-box-orient: vertical; //从上到下排列子元素;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.mail-loading {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.mail-bottom view {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 35upx;
|
||||
color: #3860F3;
|
||||
border-right: 0.5px solid #CCCCCC
|
||||
}
|
||||
|
||||
.mail-bottom view:last-child {
|
||||
/*该项为最后一项时去除边框样式*/
|
||||
border-style: none;
|
||||
}
|
||||
</style>
|
||||
+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