baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
+255
@@ -0,0 +1,255 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<view class="detail-table-class" @tap="itemClick()">
|
||||
<view class="table-title">
|
||||
<text class="table-title-name">工作中心名称</text>
|
||||
<view class="tool-colon">:</view>
|
||||
<text class="table-title-content">a</text>
|
||||
</view>
|
||||
<view class="detail-row-class" style="margin-top: 8rpx;">
|
||||
<text class="detail-row-title-class">资源名称</text><view class="tool-box"></view>
|
||||
<text class="detail-row-content-class">b</text>
|
||||
</view>
|
||||
<view class="detail-row-class">
|
||||
<text class="detail-row-title-class">任务单号</text><view class="tool-box"></view>
|
||||
<text class="detail-row-content-class">d</text>
|
||||
</view>
|
||||
<view class="detail-row-class">
|
||||
<text class="detail-row-title-class">产品名称</text><view class="tool-box"></view>
|
||||
<text class="detail-row-content-class">e</text>
|
||||
</view>
|
||||
<view class="detail-row-class">
|
||||
<text class="detail-row-title-class">工序</text><view class="tool-box"></view>
|
||||
<text class="detail-row-content-class">f</text>
|
||||
</view>
|
||||
<view class="detail-row-class">
|
||||
<text class="detail-row-title-class">计划数</text><view class="tool-box"></view>
|
||||
<text class="detail-row-content-class">g</text>
|
||||
<text class="detail-row-title-class">完工数</text><view class="tool-box"></view>
|
||||
<text class="detail-row-content-class">h</text>
|
||||
</view>
|
||||
<view class="detail-row-class">
|
||||
<text class="detail-row-title-class">员工</text><view class="tool-box"></view>
|
||||
<text class="detail-row-content-class">i</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Vue from 'vue';
|
||||
import {
|
||||
mapState,
|
||||
mapMutations
|
||||
} from 'vuex';
|
||||
|
||||
var commonUtil = require('../../../common/util.js');
|
||||
var _self;
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
scrollTop: 0,
|
||||
old: {
|
||||
scrollTop: 0
|
||||
},
|
||||
|
||||
taskList:[],
|
||||
pageIndex:1,
|
||||
pageSize:6,
|
||||
pageFlag:1,
|
||||
showTips:false,
|
||||
}
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
this.getTaskList(1, this.pageSize);
|
||||
this.pageIndex = 1;
|
||||
console.log(commonUtil);
|
||||
_self = this;
|
||||
},
|
||||
|
||||
onPullDownRefresh:function(){
|
||||
_self.showTips = false;
|
||||
|
||||
this.getTaskList(1, this.pageSize);
|
||||
setTimeout(()=>{
|
||||
//停止下拉样式
|
||||
uni.stopPullDownRefresh();
|
||||
//隐藏标题读取
|
||||
uni.hideNavigationBarLoading();
|
||||
},
|
||||
500);
|
||||
},
|
||||
|
||||
onReachBottom:function(){
|
||||
if(!_self.showTips) {
|
||||
this.getTaskList(this.pageIndex, this.pageSize);
|
||||
}
|
||||
else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '已经到底了'
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
onNavigationBarButtonTap:function(e){
|
||||
let navigateUrl = '../../views/MESRESRE01/MESRESRE01BeginWork';
|
||||
uni.navigateTo({
|
||||
url: navigateUrl,
|
||||
});
|
||||
},
|
||||
|
||||
computed: {
|
||||
...mapState(['userInfo'])
|
||||
},
|
||||
|
||||
methods: {
|
||||
itemClick: function(){
|
||||
let navigateUrl = '../../views/MESRESRE01/MESRESRE01WorkOrderDetail';
|
||||
uni.navigateTo({
|
||||
url: navigateUrl,
|
||||
});
|
||||
},
|
||||
|
||||
getTaskList: function(index, size) {
|
||||
uni.showLoading({
|
||||
title:"加载中"
|
||||
})
|
||||
let userID = this.userInfo.token;
|
||||
this.pageIndex = index;
|
||||
let requestParams = {
|
||||
"id": "",
|
||||
"pwd":""
|
||||
}
|
||||
let tokenParam = uni.getStorageSync('tokenpara');
|
||||
|
||||
uni.showLoading({
|
||||
icon:'loading',
|
||||
title:'加载中……',
|
||||
mask:true
|
||||
});
|
||||
|
||||
this.$request.post(
|
||||
{
|
||||
data: {
|
||||
action: '',
|
||||
params: requestParams
|
||||
}
|
||||
},
|
||||
tokenParam
|
||||
).then(res => {
|
||||
let data = JSON.parse(res);
|
||||
console.log(data);
|
||||
|
||||
uni.hideLoading();
|
||||
}).catch(err => {
|
||||
uni.hideLoading();
|
||||
if (err.state) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: err.errorMsg
|
||||
});
|
||||
}
|
||||
else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请求失败,请检查网络设置'
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.content {
|
||||
background-color: #F0F0F0;
|
||||
display: flex;
|
||||
flex-direction:column;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.detail-table-class{
|
||||
height: 380rpx;
|
||||
box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.05);
|
||||
margin-top: 32rpx;
|
||||
margin-left: 32rpx;
|
||||
margin-right: 32rpx;
|
||||
margin-bottom: 32rpx;
|
||||
background-color: #FFFFFF;
|
||||
border-radius:10rpx;
|
||||
display: flex;
|
||||
flex-direction:column;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: flex-start;
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
}
|
||||
.table-title{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: flex-start;
|
||||
height: 72rpx;
|
||||
margin-left: 24rpx;
|
||||
border-bottom: 2rpx solid #F8F8F8;
|
||||
}
|
||||
.table-title-name{
|
||||
height: 72rpx;
|
||||
line-height: 72rpx;
|
||||
font-size: 28rpx;
|
||||
font-family: MicrosoftYaHei;
|
||||
color: #3D3D3D;
|
||||
}
|
||||
.tool-colon{
|
||||
width: 32rpx;
|
||||
height: 72rpx;
|
||||
line-height: 72rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.table-title-content{
|
||||
height: 72rpx;
|
||||
line-height: 72rpx;
|
||||
font-size: 28rpx;
|
||||
font-family: MicrosoftYaHei;
|
||||
color: #3D3D3D;
|
||||
}
|
||||
.detail-row-class{
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
height: 32rpx;
|
||||
line-height: 32rpx;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
.tool-box{
|
||||
width: 16rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.detail-row-title-class{
|
||||
width: 120rpx;
|
||||
height: 32rpx;
|
||||
line-height: 32rpx;
|
||||
font-size: 24rpx;
|
||||
font-family: MicrosoftYaHei;
|
||||
color: #8F8F8F;
|
||||
margin-left: 24rpx;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.detail-row-content-class{
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
height: 32rpx;
|
||||
line-height: 32rpx;
|
||||
font-size: 24rpx;
|
||||
font-family: MicrosoftYaHei;
|
||||
color: #505050;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user