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

+255
View File
@@ -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>
+288
View File
@@ -0,0 +1,288 @@
<template>
<view class="content">
<view class="head-box">
<view style="height: 48rpx;"></view>
<view class="top-row-class-barcode">
<text class="top-row-title-class">资源</text><text style="width: 16rpx;"></text>
<input class="top-row-input-class" @tap="sourceClick" placeholder="请选择资源" placeholder-class="placeholder"></input>
<image class="image-barcode" src="../../../static/img/scanning.svg" @tap="scanOnClick"></image>
</view>
<view class="top-row-class-barcode">
<text class="top-row-title-class">工作中心</text><text style="width: 16rpx;"></text>
<input class="top-row-input-class"></input>
</view>
<view class="top-row-class-barcode">
<text class="top-row-title-class">班次</text><text style="width: 16rpx;"></text>
<input class="top-row-input-class" @tap="teamRowClick"></input>
<image class="image-barcode" src="../../../static/img/downarrow.svg"></image>
</view>
<view class="top-row-class-barcode">
<text class="top-row-title-class">班组</text><text style="width: 16rpx;"></text>
<input class="top-row-input-class" @tap="teamClick"></input>
<image class="image-barcode" src="../../../static/img/downarrow.svg"></image>
</view>
<view class="top-row-class-barcode">
<text class="top-row-title-class">加工员工</text><text style="width: 16rpx;"></text>
<input class="top-row-input-class" @tap="workerClick"></input>
<image class="image-barcode" src="../../../static/img/downarrow.svg"></image>
</view>
</view>
<view style="height: 16rpx;"></view>
<view style="height: 16rpx;background-color: #F5F5F5;"></view>
<view class="body-box">
<view class="body-box-first-row">
<view class="body-title">开工信息</view>
<view class="clear" v-if="isShowClear">
<image class="image-del" src="../../../static/img/del.svg"></image>
<view style="width: 12rpx;"></view>
<view class="clear-text">清除</view>
</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">流转卡号</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">任务单号</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">产品代码</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">产品名称</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">工序</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">计划数</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">累计完工数</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">余数</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">当班数量</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view style="height: 80rpx;"></view>
</view>
<view class="btn" v-if="!isShowWorkStar">开工</view>
<view class="btn" v-if="isShowWorkStar">确定开工</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 {
isShowClear:false,
isShowWorkStar:false,
}
},
onLoad() {
_self = this;
},
computed: {
...mapState(['userInfo'])
},
methods: {
sourceClick: function(){
let navigateUrl = '../../views/MESRESRE01/MESRESRE01SelectSource';
uni.navigateTo({
url: navigateUrl,
});
},
teamRowClick: function(){
let navigateUrl = '../../views/MESRESRE01/MESRESRE01SelectTeamRow';
uni.navigateTo({
url: navigateUrl,
});
},
teamClick: function(){
let navigateUrl = '../../views/MESRESRE01/MESRESRE01SelectTeam';
uni.navigateTo({
url: navigateUrl,
});
},
workerClick: function(){
let navigateUrl = '../../views/MESRESRE01/MESRESRE01WorkerList';
uni.navigateTo({
url: navigateUrl,
});
},
}
}
</script>
<style>
page{
background-color: #FFFFFF;
}
.top-row-class-barcode{
display: flex;
position: relative;
justify-content: flex-start;
align-items: center;
height: 72rpx;
background: #FFFFFF;
padding-right: 32rpx;
margin-bottom: 16rpx;
}
.top-row-title-class{
text-align: end;
flex-shrink: 0;
flex-grow: 0;
width: 144rpx;
height: 72rpx;
line-height: 72rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
}
.top-row-input-class{
width: 144rpx;
height: 72rpx;
line-height: 72rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
flex-shrink: 1;
flex-grow: 1;
border-radius:10rpx;
border: 1px solid #D8D8D8;
padding-left: 24rpx;
}
.placeholder{
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #CCCCCC;
}
.image-barcode{
position: absolute;
width: 40rpx;
height: 40rpx;
right: 54rpx;
}
.body-box-first-row{
display: flex;
position: relative;
flex-wrap: nowrap;
align-items: center;
justify-content: flex-start;
height: 94rpx;
margin-left: 32rpx;
}
.body-title{
height: 94rpx;
line-height: 94rpx;
font-size: 32rpx;
font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
font-weight: bold;
color: #333333;
text-align: left;
}
.clear{
display: flex;
flex-wrap: nowrap;
align-items: center;
position: absolute;
right: 32rpx;
top:14rpx
}
.image-del{
width: 40rpx;
height: 40rpx;
}
.clear-text{
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
}
.body-box-other-row{
display: flex;
flex-wrap: nowrap;
align-items: center;
justify-content: flex-start;
height: 38rpx;
margin-left: 32rpx;
margin-bottom: 24rpx;
}
.other-row-title{
width: 150rpx;
height: 38rpx;
line-height: 38rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #666666;
text-align: left;
}
.body-tool-box{
width: 16rpx;
}
.other-row-content{
height: 38rpx;
line-height: 38rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
text-align: left;
}
.btn{
height: 80rpx;
line-height: 80rpx;
width: 100%;
position: fixed;
bottom: 0;
background: #5778FF;
font-size: 32rpx;
font-family: MicrosoftYaHei;
color: #FFFFFF;
text-align: center;
}
</style>
@@ -0,0 +1,450 @@
<template>
<view class="content">
<view class="head-box">
<view style="height: 48rpx;"></view>
<view class="top-row-class-barcode">
<text class="top-row-title-class">是否关单</text><text style="width: 16rpx;"></text>
<checkbox class="head-checkbox"></checkbox>
</view>
<view class="top-row-class-barcode">
<text class="top-row-title-class">生产数量</text><text style="width: 16rpx;"></text>
<input class="top-row-input-class"></input>
</view>
<view class="top-row-class-barcode">
<text class="top-row-title-class">良品数量</text><text style="width: 16rpx;"></text>
<input class="top-row-input-class"></input>
<text class="top-row-title-class">不良数量</text><text style="width: 16rpx;"></text>
<input class="top-row-input-class"></input>
</view>
</view>
<view style="height: 16rpx;"></view>
<view style="height: 16rpx;background-color: #F5F5F5;"></view>
<view class="body-box">
<view class="body-box-first-row">
<view class="body-title">不良明细</view>
<view class="clear">
<image class="image-barcode" src="../../../static/img/plusblue.svg"></image>
</view>
</view>
<view>
<uni-swipe-action>
<uni-swipe-action-item v-for="(item, index) in swipeList" :right-options="item.options" :key="item.id" @change="swipeChange($event, index)" @click="swipeClick($event, index)">
<view class="body-box-other-row-qty">
<view class="other-row-title">不良数量</view>
<view class="other-row-content">{{item.defultQty}}</view>
</view>
<view class="sparet-line"></view>
<view class="body-box-other-row-res">
<view class="other-row-title">不良原因</view>
<view class="other-row-content">{{item.defultCause}}</view>
</view>
</uni-swipe-action-item>
</uni-swipe-action>
</view>
<view style="height: 80rpx;"></view>
</view>
<view class="btn">
<view class="btn-confirm">确定汇报</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 {
swipeList: [],
isShowClear:false,
isShowWorkStar:false,
}
},
onReady() {
// 模拟延迟赋值
setTimeout(() => {
this.isOpened = 'right';
this.swipeList = [{
id: 1,
options: [{
text: '删除',
style: {
backgroundColor: 'rgb(255,58,49)'
}
}
],
defultQty: 12,
defultCause:'吞吞吐吐'
}
]
}, 100);
},
onLoad() {
_self = this;
},
computed: {
...mapState(['userInfo'])
},
methods: {
change(e) {
this.isOpened = e;
console.log('返回:', e);
},
swipeChange(e, index) {
console.log('返回:', e);
console.log('当前索引:', index);
},
swipeClick(e, index) {
let {
content
} = e;
if (content.text === '删除') {
uni.showModal({
title: '提示',
content: '是否删除',
success: res => {
if (res.confirm) {
this.swipeList.splice(index, 1);
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
}else {
uni.showToast({
title: `点击了${e.content.text}按钮`,
icon: 'none'
});
}
}
}
}
</script>
<style>
page{
background-color: #FFFFFF;
}
.top-row-class-barcode{
display: flex;
position: relative;
justify-content: flex-start;
align-items: center;
height: 72rpx;
background: #FFFFFF;
padding-right: 32rpx;
margin-bottom: 16rpx;
}
.top-row-title-class{
text-align: end;
flex-shrink: 0;
flex-grow: 0;
width: 144rpx;
height: 72rpx;
line-height: 72rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
}
.top-row-input-class{
width: 144rpx;
height: 72rpx;
line-height: 72rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
flex-shrink: 1;
flex-grow: 1;
border-radius:10rpx;
border: 1px solid #D8D8D8;
padding-right: 24rpx;
text-align: end;
}
.top-row-input-class-gray{
width: 144rpx;
height: 72rpx;
line-height: 72rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
background-color: #F4F4F4;
flex-shrink: 1;
flex-grow: 1;
border-radius:10rpx;
border: 1px solid #D8D8D8;
padding-left: 24rpx;
}
.placeholder{
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #CCCCCC;
}
.body-box-first-row{
display: flex;
position: relative;
flex-wrap: nowrap;
align-items: center;
justify-content: flex-start;
height: 94rpx;
margin-left: 32rpx;
}
.body-title{
height: 94rpx;
line-height: 94rpx;
font-size: 32rpx;
font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
font-weight: bold;
color: #333333;
text-align: left;
}
.clear{
position: absolute;
right: 32rpx;
}
.image-barcode{
width: 40rpx;
height: 40rpx;
}
.clear-text{
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #395FF2;
}
.body-box-other-row-qty{
display: flex;
position: relative;
flex-wrap: nowrap;
align-items: center;
justify-content: flex-start;
height: 38rpx;
margin-left: 32rpx;
margin-bottom: 12rpx;
}
.body-box-other-row-res{
display: flex;
position: relative;
flex-wrap: nowrap;
align-items: center;
justify-content: flex-start;
height: 38rpx;
margin-left: 32rpx;
margin-top: 12rpx;
}
.other-row-title{
width: 150rpx;
height: 38rpx;
line-height: 38rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #666666;
text-align: left;
}
.other-row-content{
height: 38rpx;
line-height: 38rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
position: absolute;
right: 32rpx;
}
.sparet-line{
height: 2rpx;
background-color: #F5F5F5;
margin-left: 32rpx;
margin-right: 32rpx;
}
.btn{
display: flex;
height: 80rpx;
line-height: 80rpx;
width: 100%;
position: fixed;
bottom: 0;
background: #5778FF;
font-size: 32rpx;
font-family: MicrosoftYaHei;
color: #FFFFFF;
}
.btn-clear{
height: 80rpx;
line-height: 80rpx;
width: 50%;
font-size: 32rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
text-align: center;
background-color: #FFFFFF;
}
.btn-confirm{
height: 80rpx;
line-height: 80rpx;
width: 100%;
font-size: 32rpx;
font-family: MicrosoftYaHei;
color: #FFFFFF;
text-align: center;
background-color: #5778FF;
}
/* 滑动删除样式开始 */
/* 头条小程序组件内不能引入字体 */
/* #ifdef MP-TOUTIAO */
@font-face {
font-family: uniicons;
font-weight: normal;
font-style: normal;
src: url('~@/static/uni.ttf') format('truetype');
}
/* #endif */
/* #ifndef APP-NVUE */
/* page {
display: flex;
flex-direction: column;
box-sizing: border-box;
background-color: #efeff4;
min-height: 100%;
height: auto;
} */
view {
font-size: 14px;
line-height: inherit;
}
.example {
padding: 0 15px 15px;
}
.example-info {
padding: 15px;
color: #3b4144;
background: #ffffff;
}
.example-body {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
padding: 0;
font-size: 14px;
background-color: #ffffff;
}
/* #endif */
.example {
padding: 0 15px;
}
.example-info {
/* #ifndef APP-NVUE */
display: block;
/* #endif */
padding: 15px;
color: #3b4144;
background-color: #ffffff;
font-size: 14px;
line-height: 20px;
}
.example-info-text {
font-size: 14px;
line-height: 20px;
color: #3b4144;
}
.example-body {
flex-direction: column;
padding: 15px;
background-color: #ffffff;
}
.word-btn-white {
font-size: 18px;
color: #FFFFFF;
}
.word-btn {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: row;
align-items: center;
justify-content: center;
border-radius: 6px;
height: 48px;
margin: 15px;
background-color: #007AFF;
}
.word-btn--hover {
background-color: #4ca2ff;
}
.example-body {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: row;
justify-content: center;
padding: 10px 0;
background-color: #fff;
}
.button {
border-color: #e5e5e5;
border-style: solid;
border-width: 1px;
padding: 4px 8px;
border-radius: 4px;
}
.button-text {
font-size: 15px;
}
.slot-button {
/* #ifndef APP-NVUE */
display: flex;
height: 100%;
/* #endif */
flex: 1;
flex-direction: row;
justify-content: center;
align-items: center;
padding: 0 20px;
background-color: #ff5a5f;
}
.slot-button-text {
color: #ffffff;
font-size: 14px;
}
/* 滑动删除样式结束 */
</style>
+290
View File
@@ -0,0 +1,290 @@
<template>
<view class="content">
<view class="head-box">
<view style="height: 48rpx;"></view>
<view class="top-row-class-barcode">
<text class="top-row-title-class">资源</text><text style="width: 16rpx;"></text>
<input class="top-row-input-class-gray" disabled="true"></input>
</view>
<view class="top-row-class-barcode">
<text class="top-row-title-class">工作中心</text><text style="width: 16rpx;"></text>
<input class="top-row-input-class-gray" disabled="true"></input>
</view>
<view class="top-row-class-barcode">
<text class="top-row-title-class">班次</text><text style="width: 16rpx;"></text>
<input class="top-row-input-class-gray" disabled="true"></input>
</view>
<view class="top-row-class-barcode">
<text class="top-row-title-class">班组</text><text style="width: 16rpx;"></text>
<input class="top-row-input-class-gray" disabled="true"></input>
</view>
<view class="top-row-class-barcode">
<text class="top-row-title-class">加工员工</text><text style="width: 16rpx;"></text>
<input class="top-row-input-class" @tap="workerClick"></input>
<image class="image-barcode" src="../../../static/img/downarrow.svg"></image>
</view>
</view>
<view style="height: 16rpx;"></view>
<view style="height: 16rpx;background-color: #F5F5F5;"></view>
<view class="body-box">
<view class="body-box-first-row">
<view class="body-title">开工信息</view>
<view class="clear">
<view class="clear-text" @tap='orderReleaseClick'>投料</view>
<view style="width: 14rpx;"></view>
<view style="width: 4rpx;height: 40rpx;background: #E5E5E5;"></view>
<view style="width: 14rpx;"></view>
<view class="clear-text" @tap='orderChangeClick'>换单</view>
</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">流转卡号</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">任务单号</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">产品代码</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">产品名称</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">工序</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">计划数</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">累计完工数</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">余数</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">当班数量</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view style="height: 80rpx;"></view>
</view>
<view class="btn" @tap='completedReportClick'>保存</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 {
isShowClear:false,
isShowWorkStar:false,
}
},
onLoad() {
_self = this;
},
computed: {
...mapState(['userInfo'])
},
methods: {
workerClick: function(){
let navigateUrl = '../../views/MESRESRE01/MESRESRE01WorkerList';
uni.navigateTo({
url: navigateUrl,
});
},
orderReleaseClick: function(){
let navigateUrl = '../../views/MESRESRE01/MESRESRE01OrderRelease';
uni.navigateTo({
url: navigateUrl,
});
},
orderChangeClick: function(){
let navigateUrl = '../../views/MESRESRE01/MESRESRE01OrderChange';
uni.navigateTo({
url: navigateUrl,
});
},
}
}
</script>
<style>
page{
background-color: #FFFFFF;
}
.top-row-class-barcode{
display: flex;
position: relative;
justify-content: flex-start;
align-items: center;
height: 72rpx;
background: #FFFFFF;
padding-right: 32rpx;
margin-bottom: 16rpx;
}
.top-row-title-class{
text-align: end;
flex-shrink: 0;
flex-grow: 0;
width: 144rpx;
height: 72rpx;
line-height: 72rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
}
.top-row-input-class{
width: 144rpx;
height: 72rpx;
line-height: 72rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
flex-shrink: 1;
flex-grow: 1;
border-radius:10rpx;
border: 1px solid #D8D8D8;
padding-left: 24rpx;
}
.top-row-input-class-gray{
width: 144rpx;
height: 72rpx;
line-height: 72rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
background-color: #F4F4F4;
flex-shrink: 1;
flex-grow: 1;
border-radius:10rpx;
border: 1px solid #D8D8D8;
padding-left: 24rpx;
}
.placeholder{
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #CCCCCC;
}
.image-barcode{
position: absolute;
width: 40rpx;
height: 40rpx;
right: 54rpx;
}
.body-box-first-row{
display: flex;
position: relative;
flex-wrap: nowrap;
align-items: center;
justify-content: flex-start;
height: 94rpx;
margin-left: 32rpx;
}
.body-title{
height: 94rpx;
line-height: 94rpx;
font-size: 32rpx;
font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
font-weight: bold;
color: #333333;
text-align: left;
}
.clear{
display: flex;
flex-wrap: nowrap;
align-items: center;
position: absolute;
right: 32rpx;
top:14rpx
}
.clear-text{
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #395FF2;
}
.body-box-other-row{
display: flex;
flex-wrap: nowrap;
align-items: center;
justify-content: flex-start;
height: 38rpx;
margin-left: 32rpx;
margin-bottom: 24rpx;
}
.other-row-title{
width: 150rpx;
height: 38rpx;
line-height: 38rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #666666;
text-align: left;
}
.body-tool-box{
width: 16rpx;
}
.other-row-content{
height: 38rpx;
line-height: 38rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
text-align: left;
}
.btn{
height: 80rpx;
line-height: 80rpx;
width: 100%;
position: fixed;
bottom: 0;
background: #5778FF;
font-size: 32rpx;
font-family: MicrosoftYaHei;
color: #FFFFFF;
text-align: center;
}
</style>
@@ -0,0 +1,477 @@
<template>
<view class="content">
<view class="head-box">
<view style="height: 48rpx;"></view>
<view class="top-row-class-barcode">
<text class="top-row-title-class">物料编码</text><text style="width: 16rpx;"></text>
<input class="top-row-input-class-gray" disabled="true"></input>
</view>
<view class="top-row-class-barcode">
<text class="top-row-title-class">物料名称</text><text style="width: 16rpx;"></text>
<input class="top-row-input-class-gray" disabled="true"></input>
</view>
<view class="top-row-class-barcode">
<text class="top-row-title-class">批次</text><text style="width: 16rpx;"></text>
<input class="top-row-input-class"></input>
</view>
</view>
<view style="height: 16rpx;"></view>
<view style="height: 16rpx;background-color: #F5F5F5;"></view>
<view class="body-box">
<view class="body-box-first-row">
<view class="body-title">投料明细</view>
<view class="clear">
<image class="image-barcode" src="../../../static/img/scanningblue.svg"></image>
</view>
</view>
<view>
<uni-swipe-action>
<uni-swipe-action-item v-for="(item, index) in swipeList" :right-options="item.options" :key="item.id" @change="swipeChange($event, index)" @click="swipeClick($event, index)">
<view class="material-detail">
<view class="body-box-other-row">
<view class="other-first-row-title">调节阀</view>
<view class="clock">
<view class="other-first-row-time">xxxxxxxxxxx</view>
<view style="width: 12rpx;"></view>
<image class="image-clock" src="../../../static/img/clock.svg"></image>
</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">xxx</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">xxx</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxx</view>
</view>
</view>
</uni-swipe-action-item>
</uni-swipe-action>
</view>
<view style="height: 80rpx;"></view>
</view>
<view class="btn">
<view class="btn-clear">清空</view>
<view class="btn-confirm">确定</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 {
swipeList: [],
isShowClear:false,
isShowWorkStar:false,
}
},
onReady() {
// 模拟延迟赋值
setTimeout(() => {
this.isOpened = 'right';
this.swipeList = [{
id: 1,
options: [{
text: '删除',
style: {
backgroundColor: 'rgb(255,58,49)'
}
}
],
defultQty: 12,
defultCause:'吞吞吐吐'
}
]
}, 1000);
},
onLoad() {
_self = this;
},
computed: {
...mapState(['userInfo'])
},
methods: {
change(e) {
this.isOpened = e;
console.log('返回:', e);
},
swipeChange(e, index) {
console.log('返回:', e);
console.log('当前索引:', index);
},
swipeClick(e, index) {
let {
content
} = e;
if (content.text === '删除') {
uni.showModal({
title: '提示',
content: '是否删除',
success: res => {
if (res.confirm) {
this.swipeList.splice(index, 1);
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
}else {
uni.showToast({
title: `点击了${e.content.text}按钮`,
icon: 'none'
});
}
}
}
}
</script>
<style>
page{
background-color: #FFFFFF;
}
.top-row-class-barcode{
display: flex;
position: relative;
justify-content: flex-start;
align-items: center;
height: 72rpx;
background: #FFFFFF;
padding-right: 32rpx;
margin-bottom: 16rpx;
}
.top-row-title-class{
text-align: end;
flex-shrink: 0;
flex-grow: 0;
width: 144rpx;
height: 72rpx;
line-height: 72rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
}
.top-row-input-class{
width: 144rpx;
height: 72rpx;
line-height: 72rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
flex-shrink: 1;
flex-grow: 1;
border-radius:10rpx;
border: 1px solid #D8D8D8;
padding-left: 24rpx;
}
.top-row-input-class-gray{
width: 144rpx;
height: 72rpx;
line-height: 72rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
background-color: #F4F4F4;
flex-shrink: 1;
flex-grow: 1;
border-radius:10rpx;
border: 1px solid #D8D8D8;
padding-left: 24rpx;
}
.placeholder{
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #CCCCCC;
}
.body-box-first-row{
display: flex;
position: relative;
flex-wrap: nowrap;
align-items: center;
justify-content: flex-start;
height: 94rpx;
margin-left: 32rpx;
}
.body-title{
height: 94rpx;
line-height: 94rpx;
font-size: 32rpx;
font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
font-weight: bold;
color: #333333;
text-align: left;
}
.clear{
position: absolute;
right: 32rpx;
}
.image-barcode{
width: 40rpx;
height: 40rpx;
}
.material-detail{
/* width: 100%; */
box-shadow: 0px 4rpx 8rpx 0px rgba(0, 0, 0, 0.05);
border-radius: 10rpx;
margin-left: 32rpx;
margin-right: 32rpx;
}
.clear-text{
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #395FF2;
}
.body-box-other-row{
display: flex;
position: relative;
flex-wrap: nowrap;
align-items: center;
justify-content: flex-start;
height: 38rpx;
margin-bottom: 24rpx;
}
.other-first-row-title{
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
margin-left: 32rpx;
}
.other-first-row-time{
font-size: 24rpx;
font-family: MicrosoftYaHei;
color: #666666;
}
.clock{
display: flex;
flex-wrap: nowrap;
align-items: center;
position: absolute;
right: 24rpx;
}
.image-clock{
width: 40rpx;
height: 40rpx;
}
.other-row-title{
/* width: 150rpx; */
height: 38rpx;
line-height: 38rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #666666;
text-align: left;
margin-left: 32rpx;
}
.body-tool-box{
width: 16rpx;
}
.other-row-content{
height: 38rpx;
line-height: 38rpx;
font-size: 24rpx;
font-family: MicrosoftYaHei;
color: #333333;
text-align: left;
}
.btn{
display: flex;
height: 80rpx;
line-height: 80rpx;
width: 100%;
position: fixed;
bottom: 0;
background: #5778FF;
font-size: 32rpx;
font-family: MicrosoftYaHei;
color: #FFFFFF;
}
.btn-clear{
height: 80rpx;
line-height: 80rpx;
width: 50%;
font-size: 32rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
text-align: center;
background-color: #FFFFFF;
}
.btn-confirm{
height: 80rpx;
line-height: 80rpx;
width: 50%;
font-size: 32rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #FFFFFF;
text-align: center;
background-color: #5778FF;
}
/* 滑动删除样式开始 */
/* 头条小程序组件内不能引入字体 */
/* #ifdef MP-TOUTIAO */
@font-face {
font-family: uniicons;
font-weight: normal;
font-style: normal;
src: url('~@/static/uni.ttf') format('truetype');
}
/* #endif */
/* #ifndef APP-NVUE */
/* page {
display: flex;
flex-direction: column;
box-sizing: border-box;
background-color: #efeff4;
min-height: 100%;
height: auto;
} */
view {
font-size: 14px;
line-height: inherit;
}
.example {
padding: 0 15px 15px;
}
.example-info {
padding: 15px;
color: #3b4144;
background: #ffffff;
}
.example-body {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
padding: 0;
font-size: 14px;
background-color: #ffffff;
}
/* #endif */
.example {
padding: 0 15px;
}
.example-info {
/* #ifndef APP-NVUE */
display: block;
/* #endif */
padding: 15px;
color: #3b4144;
background-color: #ffffff;
font-size: 14px;
line-height: 20px;
}
.example-info-text {
font-size: 14px;
line-height: 20px;
color: #3b4144;
}
.example-body {
flex-direction: column;
padding: 15px;
background-color: #ffffff;
}
.word-btn-white {
font-size: 18px;
color: #FFFFFF;
}
.word-btn {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: row;
align-items: center;
justify-content: center;
border-radius: 6px;
height: 48px;
margin: 15px;
background-color: #007AFF;
}
.word-btn--hover {
background-color: #4ca2ff;
}
.example-body {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: row;
justify-content: center;
padding: 10px 0;
background-color: #fff;
}
.button {
border-color: #e5e5e5;
border-style: solid;
border-width: 1px;
padding: 4px 8px;
border-radius: 4px;
}
.button-text {
font-size: 15px;
}
.slot-button {
/* #ifndef APP-NVUE */
display: flex;
height: 100%;
/* #endif */
flex: 1;
flex-direction: row;
justify-content: center;
align-items: center;
padding: 0 20px;
background-color: #ff5a5f;
}
.slot-button-text {
color: #ffffff;
font-size: 14px;
}
/* 滑动删除样式结束 */
</style>
@@ -0,0 +1,228 @@
<template>
<view class="content">
<view style="height: 32rpx;"></view>
<view class="search">
<input class="top-row-input-class" @tap="sourceClick" placeholder="输入搜索关键词" placeholder-class="placeholder"></input>
<image class="image-barcode" src="../../../static/img/loupe.svg"></image>
<view style="width: 32rpx;height: 80rpx;background-color: #F5F5F5;"></view>
</view>
<view class="detail-table-class">
<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: 14rpx;">
<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">d</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,
nextPage:"MESRESRE01Detail"
}
},
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/MESRESRE01AddSource/MESRESRE01AddSource'
uni.navigateTo({
url: navigateUrl,
});
},
computed: {
...mapState(['userInfo'])
},
methods: {
}
}
</script>
<style>
page{
background-color: #F5F5F5;
}
.search{
display: flex;
position: relative;
justify-content: flex-start;
align-items: center;
height: 72rpx;
background: #FFFFFF;
margin-left: 32rpx;
margin-bottom: 16rpx;
}
.top-row-input-class{
width: 144rpx;
height: 72rpx;
line-height: 72rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
flex-shrink: 1;
flex-grow: 1;
border-radius:10rpx;
border: 1px solid #D8D8D8;
padding-left: 24rpx;
}
.placeholder{
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #CCCCCC;
}
.image-barcode{
position: absolute;
width: 40rpx;
height: 40rpx;
right: 56rpx;
}
.detail-table-class{
height: 240rpx;
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: 170rpx;
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>
+210
View File
@@ -0,0 +1,210 @@
<template>
<view class="content">
<view style="height: 32rpx;"></view>
<view class="search">
<input class="top-row-input-class" @tap="sourceClick" placeholder="输入搜索关键词" placeholder-class="placeholder"></input>
<image class="image-barcode" src="../../../static/img/loupe.svg"></image>
<view style="width: 32rpx;height: 80rpx;background-color: #F5F5F5;"></view>
</view>
<view class="detail-table-class">
<view class="detail-row0-class">
<text class="detail-row0-title-class">班组名称</text><view class="tool-box">:</view>
<text class="detail-row-content0-class">a</text>
<text class="detail-row-content-green-class">审核</text><view class="tool-box-green"></view>
<!-- <text class="detail-row-content-yellow-class">新增</text><view class="tool-box-yellow"></view> -->
</view>
<view class="detail-row-class">
<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">c</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" style="margin-bottom: 24rpx;">
<text class="detail-row-title-class">备注</text><view class="tool-box"></view>
<text class="detail-row-content-class">g</text>
</view>
</view>
</view>
</template>
<script>
</script>
<style>
page{
background-color: #F5F5F5;
}
.search{
display: flex;
position: relative;
justify-content: flex-start;
align-items: center;
height: 72rpx;
background: #FFFFFF;
margin-left: 32rpx;
margin-bottom: 24rpx;
}
.top-row-input-class{
width: 144rpx;
height: 72rpx;
line-height: 72rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
flex-shrink: 1;
flex-grow: 1;
border-radius:10rpx;
border: 1px solid #D8D8D8;
padding-left: 24rpx;
}
.placeholder{
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #CCCCCC;
}
.image-barcode{
position: absolute;
width: 40rpx;
height: 40rpx;
right: 56rpx;
}
.detail-table-class{
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;
}
.detail-row0-class{
display: flex;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: center;
height: 80rpx;
border-bottom: 2rpx solid #F8F8F8;
}
.detail-row-content0-class{
font-size: 28rpx;
font-style: auto;
color: #c2c2c;
flex-shrink: 1;
flex-grow: 1;
word-break: break-all;
line-height:50rpx;
}
.detail-row-class{
display: flex;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: center;
height: 32rpx;
margin-top: 20rpx;
}
.detail-row0-title-class{
width: 128rpx;
height: 34rpx;
line-height: 34rpx;
flex-shrink: 0;
flex-grow: 0;
font-size: 26rpx;
font-family: MicrosoftYaHei;
color: #3D3D3D;
text-align: right;
margin-left: 24rpx;
}
.tool-box{
width: 16rpx;
font-size: 26rpx;
font-family: MicrosoftYaHei;
color: #3D3D3D;
text-align: center;
}
.detail-row-title-class{
width: 128rpx;
flex-shrink: 0;
flex-grow: 0;
font-size: 24rpx;
font-family: MicrosoftYaHei;
color: #8F8F8F;
text-align: right;
margin-left: 32rpx;
}
.detail-row-content-class{
flex-shrink: 1;
flex-grow: 1;
line-height: 40rpx;
font-size: 24rpx;
font-family: MicrosoftYaHei;
color: #505050;
}
.detail-row-content-green-class{
flex-shrink: 0;
flex-grow: 0;
font-size: 26rpx;
font-family: MicrosoftYaHei;
color: #5EC02D;
}
.detail-row-content-yellow-class{
flex-shrink: 0;
flex-grow: 0;
font-size: 26rpx;
font-family: MicrosoftYaHei;
color: #FAAE12;
}
.detail-row-content-red-class{
flex-shrink: 0;
flex-grow: 0;
font-size: 26rpx;
font-family: MicrosoftYaHei;
color: #FF2E2E;
}
.tool-box-green{
width: 4rpx;
height: 30rpx;
border-radius: 3rpx;
background-color: #5EC02D;
margin-left: 16rpx;
}
.tool-box-yellow{
width: 4rpx;
height: 30rpx;
border-radius: 3rpx;
background-color: #FAAE12;
margin-left: 16rpx;
}
</style>
@@ -0,0 +1,290 @@
<template>
<view class="content">
<view style="height: 32rpx;"></view>
<view class="search">
<input class="top-row-input-class" @tap="sourceClick" placeholder="输入搜索关键词" placeholder-class="placeholder"></input>
<image class="image-barcode" src="../../../static/img/loupe.svg"></image>
<view style="width: 32rpx;height: 80rpx;background-color: #F5F5F5;"></view>
</view>
<view class="detail-table-class">
<view class="detail-row0-class">
<text class="detail-row0-title-class">班次名称</text><view class="tool-box">:</view>
<text class="detail-row-content0-class">a</text>
<text class="detail-row-content-green-class">审核</text><view class="tool-box-green"></view>
<!-- <text class="detail-row-content-yellow-class">新增</text><view class="tool-box-yellow"></view> -->
</view>
<view class="detail-row-class">
<text class="detail-row-title-class-time">班次代码</text><view class="tool-box"></view>
<text class="detail-row-content-class-time">b</text>
</view>
<view class="time-box">
<view class="detail-row-class-time">
<text class="detail-row-title-class-time">开始时间</text><view class="tool-box"></view>
<text class="detail-row-content-class-time">c</text>
</view>
<view class="time-box-pic">
<view class="pic-a"></view>
<view class="pic-b"></view>
<view class="pic-c"></view>
</view>
<view class="detail-row-class-time">
<text class="detail-row-title-class-time-end">结束时间</text><view class="tool-box"></view>
<text class="detail-row-content-class-time">d</text>
</view>
</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" style="margin-bottom: 24rpx;">
<text class="detail-row-title-class">备注</text><view class="tool-box"></view>
<text class="detail-row-content-class">g</text>
</view>
</view>
</view>
</template>
<script>
</script>
<style>
page{
background-color: #F5F5F5;
}
.search{
display: flex;
position: relative;
justify-content: flex-start;
align-items: center;
height: 72rpx;
background: #FFFFFF;
margin-left: 32rpx;
margin-bottom: 24rpx;
}
.top-row-input-class{
width: 144rpx;
height: 72rpx;
line-height: 72rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
flex-shrink: 1;
flex-grow: 1;
border-radius:10rpx;
border: 1px solid #D8D8D8;
padding-left: 24rpx;
}
.placeholder{
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #CCCCCC;
}
.image-barcode{
position: absolute;
width: 40rpx;
height: 40rpx;
right: 56rpx;
}
.detail-table-class{
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;
}
.detail-row0-class{
display: flex;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: center;
height: 80rpx;
border-bottom: 2rpx solid #F8F8F8;
}
.detail-row-content0-class{
font-size: 28rpx;
font-style: auto;
color: #c2c2c;
flex-shrink: 1;
flex-grow: 1;
word-break: break-all;
line-height:50rpx;
}
.detail-row-class{
display: flex;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: center;
height: 32rpx;
margin-top: 20rpx;
}
.detail-row0-title-class{
width: 128rpx;
height: 34rpx;
line-height: 34rpx;
flex-shrink: 0;
flex-grow: 0;
font-size: 26rpx;
font-family: MicrosoftYaHei;
color: #3D3D3D;
text-align: right;
margin-left: 24rpx;
}
.tool-box{
width: 16rpx;
font-size: 26rpx;
font-family: MicrosoftYaHei;
color: #3D3D3D;
text-align: center;
}
.detail-row-title-class{
width: 128rpx;
flex-shrink: 0;
flex-grow: 0;
font-size: 24rpx;
font-family: MicrosoftYaHei;
color: #8F8F8F;
text-align: right;
margin-left: 32rpx;
}
.detail-row-content-class{
flex-shrink: 1;
flex-grow: 1;
line-height: 40rpx;
font-size: 24rpx;
font-family: MicrosoftYaHei;
color: #505050;
}
.detail-row-content-green-class{
flex-shrink: 0;
flex-grow: 0;
font-size: 26rpx;
font-family: MicrosoftYaHei;
color: #5EC02D;
}
.detail-row-content-yellow-class{
flex-shrink: 0;
flex-grow: 0;
font-size: 26rpx;
font-family: MicrosoftYaHei;
color: #FAAE12;
}
.detail-row-content-red-class{
flex-shrink: 0;
flex-grow: 0;
font-size: 26rpx;
font-family: MicrosoftYaHei;
color: #FF2E2E;
}
.tool-box-green{
width: 4rpx;
height: 30rpx;
border-radius: 3rpx;
background-color: #5EC02D;
margin-left: 16rpx;
}
.tool-box-yellow{
width: 4rpx;
height: 30rpx;
border-radius: 3rpx;
background-color: #FAAE12;
margin-left: 16rpx;
}
.time-box{
display: flex;
flex-wrap: nowrap;
align-items: flex-start;
height: 32rpx;
margin-top: 16rpx;
}
.detail-row-class-time{
display: flex;
height: 32rpx;
}
.detail-row-title-class-time{
width: 128rpx;
height: 32rpx;
line-height: 32rpx;
flex-shrink: 0;
flex-grow: 0;
font-size: 24rpx;
font-family: MicrosoftYaHei;
color: #8F8F8F;
text-align: right;
margin-left: 32rpx;
}
.detail-row-title-class-time-end{
height: 32rpx;
line-height: 32rpx;
flex-shrink: 0;
flex-grow: 0;
font-size: 24rpx;
font-family: MicrosoftYaHei;
color: #8F8F8F;
text-align: right;
}
.detail-row-content-class-time{
flex-shrink: 1;
flex-grow: 1;
height: 32rpx;
line-height: 32rpx;
font-size: 24rpx;
font-family: MicrosoftYaHei;
color: #505050;
}
.time-box-pic{
display: flex;
flex-wrap: nowrap;
align-items: center;
justify-content: center;
height: 32rpx;
width: 96rpx;
}
.pic-a{
height: 4rpx;
width: 4rpx;
border-radius: 50%;
background: rgba(57, 95, 242, 0.2);
}
.pic-b{
height: 6rpx;
width: 6rpx;
border-radius: 50%;
background: rgba(57, 95, 242, 0.5);
margin-left: 8rpx;
}
.pic-c{
height: 8rpx;
width: 8rpx;
border-radius: 50%;
background: rgba(57, 95, 242, 0.8);
margin-left: 8rpx;
}
</style>
@@ -0,0 +1,315 @@
<template>
<view class="content">
<view class="head-box">
<view style="height: 48rpx;"></view>
<view class="top-row-class-barcode">
<text class="top-row-title-class">资源</text><text style="width: 16rpx;"></text>
<input class="top-row-input-class-gray" disabled="true"></input>
</view>
<view class="top-row-class-barcode">
<text class="top-row-title-class">工作中心</text><text style="width: 16rpx;"></text>
<input class="top-row-input-class-gray" disabled="true"></input>
</view>
<view class="top-row-class-barcode">
<text class="top-row-title-class">班次</text><text style="width: 16rpx;"></text>
<input class="top-row-input-class" @tap="teamRowClick"></input>
<image class="image-barcode" src="../../../static/img/downarrow.svg"></image>
</view>
<view class="top-row-class-barcode">
<text class="top-row-title-class">班组</text><text style="width: 16rpx;"></text>
<input class="top-row-input-class" @tap="teamClick"></input>
<image class="image-barcode" src="../../../static/img/downarrow.svg"></image>
</view>
<view class="top-row-class-barcode">
<text class="top-row-title-class">加工员工</text><text style="width: 16rpx;"></text>
<input class="top-row-input-class" @tap="workerClick"></input>
<image class="image-barcode" src="../../../static/img/downarrow.svg"></image>
</view>
</view>
<view style="height: 16rpx;"></view>
<view style="height: 16rpx;background-color: #F5F5F5;"></view>
<view class="body-box">
<view class="body-box-first-row">
<view class="body-title">开工信息</view>
<view class="clear">
<view class="clear-text" @tap='orderReleaseClick'>投料</view>
<view style="width: 14rpx;"></view>
<view style="width: 4rpx;height: 40rpx;background: #E5E5E5;"></view>
<view style="width: 14rpx;"></view>
<view class="clear-text" @tap='orderChangeClick'>换单</view>
</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">流转卡号</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">任务单号</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">产品代码</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">产品名称</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">工序</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">计划数</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">累计完工数</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">余数</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view class="body-box-other-row">
<view class="other-row-title">当班数量</view>
<view class="body-tool-box"></view>
<view class="other-row-content">xxxxx</view>
</view>
<view style="height: 80rpx;"></view>
</view>
<view class="btn" @tap='completedReportClick'>完工汇报</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 {
isShowClear:false,
isShowWorkStar:false,
}
},
onLoad() {
_self = this;
},
computed: {
...mapState(['userInfo'])
},
methods: {
sourceClick: function(){
let navigateUrl = '../../views/MESRESRE01/MESRESRE01SelectSource';
uni.navigateTo({
url: navigateUrl,
});
},
teamRowClick: function(){
let navigateUrl = '../../views/MESRESRE01/MESRESRE01SelectTeamRow';
uni.navigateTo({
url: navigateUrl,
});
},
teamClick: function(){
let navigateUrl = '../../views/MESRESRE01/MESRESRE01SelectTeam';
uni.navigateTo({
url: navigateUrl,
});
},
workerClick: function(){
let navigateUrl = '../../views/MESRESRE01/MESRESRE01WorkerList';
uni.navigateTo({
url: navigateUrl,
});
},
orderReleaseClick: function(){
let navigateUrl = '../../views/MESRESRE01/MESRESRE01OrderRelease';
uni.navigateTo({
url: navigateUrl,
});
},
orderChangeClick: function(){
let navigateUrl = '../../views/MESRESRE01/MESRESRE01OrderChange';
uni.navigateTo({
url: navigateUrl,
});
},
completedReportClick: function(){
let navigateUrl = '../../views/MESRESRE01/MESRESRE01CompletedReport';
uni.navigateTo({
url: navigateUrl,
});
},
}
}
</script>
<style>
page{
background-color: #FFFFFF;
}
.top-row-class-barcode{
display: flex;
position: relative;
justify-content: flex-start;
align-items: center;
height: 72rpx;
background: #FFFFFF;
padding-right: 32rpx;
margin-bottom: 16rpx;
}
.top-row-title-class{
text-align: end;
flex-shrink: 0;
flex-grow: 0;
width: 144rpx;
height: 72rpx;
line-height: 72rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
}
.top-row-input-class{
width: 144rpx;
height: 72rpx;
line-height: 72rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
flex-shrink: 1;
flex-grow: 1;
border-radius:10rpx;
border: 1px solid #D8D8D8;
padding-left: 24rpx;
}
.top-row-input-class-gray{
width: 144rpx;
height: 72rpx;
line-height: 72rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
background-color: #F4F4F4;
flex-shrink: 1;
flex-grow: 1;
border-radius:10rpx;
border: 1px solid #D8D8D8;
padding-left: 24rpx;
}
.placeholder{
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #CCCCCC;
}
.image-barcode{
position: absolute;
width: 40rpx;
height: 40rpx;
right: 54rpx;
}
.body-box-first-row{
display: flex;
position: relative;
flex-wrap: nowrap;
align-items: center;
justify-content: flex-start;
height: 94rpx;
margin-left: 32rpx;
}
.body-title{
height: 94rpx;
line-height: 94rpx;
font-size: 32rpx;
font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
font-weight: bold;
color: #333333;
text-align: left;
}
.clear{
display: flex;
flex-wrap: nowrap;
align-items: center;
position: absolute;
right: 32rpx;
top:14rpx
}
.clear-text{
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #395FF2;
}
.body-box-other-row{
display: flex;
flex-wrap: nowrap;
align-items: center;
justify-content: flex-start;
height: 38rpx;
margin-left: 32rpx;
margin-bottom: 24rpx;
}
.other-row-title{
width: 150rpx;
height: 38rpx;
line-height: 38rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #666666;
text-align: left;
}
.body-tool-box{
width: 16rpx;
}
.other-row-content{
height: 38rpx;
line-height: 38rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
text-align: left;
}
.btn{
height: 80rpx;
line-height: 80rpx;
width: 100%;
position: fixed;
bottom: 0;
background: #5778FF;
font-size: 32rpx;
font-family: MicrosoftYaHei;
color: #FFFFFF;
text-align: center;
}
</style>
+303
View File
@@ -0,0 +1,303 @@
<template>
<view class="content">
<view class="top-title">已上岗员工({{onWorkList.length}}人)</view>
<view v-for="(onWorkList,indexOnWork) in onWorkList" :key="onWorkList.workCode">
<view class="top-worker-list">
<view class="worker-name">{{onWorkList.workerName}}</view>
<view class="top-right" @click="outWork(onWorkList)">
<image class="image-statu" src="../../../static/img/minblue.svg"></image>
<view style="width: 16rpx;"></view>
<view class="worker-statu">下岗</view>
</view>
</view>
<view class="line"></view>
</view>
<view class="body-title">员工列表</view>
<view class="search">
<input class="body-row-input-class" @tap="sourceClick" placeholder="搜索" placeholder-class="placeholder"></input>
<image class="image-barcode" src="../../../static/img/loupe.svg"></image>
<view style="width: 32rpx;height: 80rpx;background-color: #F5F5F5;"></view>
</view>
<view class="detail-table-class" v-for="(item,indexPWork) in workerList" :key="indexPWork">
<view class="table-title">
<text class="table-title-name">员工姓名</text>
<view class="tool-colon">:</view>
<text class="table-title-content">{{item.workerName}}</text>
</view>
<view class="detail-row-class-box">
<view class="detail-row-class-left">
<view class="detail-row-class">
<text class="detail-row-title-class">员工代码</text><view class="tool-box"></view>
<text class="detail-row-content-class">{{item.workCode}}</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">{{item.depName}}</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">{{item.workerTel}}</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">{{item.workerMail}}</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">{{item.enterDate}}</text>
</view>
</view>
<view class="detail-row-class-right" @click="goWork(item)">上岗</view>
</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 {
onWorkList:[{workerName:'小蓝',workCode:'001',depName:'粉刷',workerTel:'12345678901',workerMail:'xiaolan@bai.com',enterDate:'2020-9-1'},
{workerName:'小灰',workCode:'002',depName:'粉白',workerTel:'12345678902',workerMail:'xiaobai@bai.com',enterDate:'2020-9-2'}],
workerList:[{workerName:'小白',workCode:'003',depName:'粉白',workerTel:'12345678903',workerMail:'xiaobai@bai.com',enterDate:'2020-9-3'},
{workerName:'小黑',workCode:'004',depName:'粉白',workerTel:'12345678904',workerMail:'xiaobai@bai.com',enterDate:'2020-9-4'}]
}
},
onLoad() {
_self = this;
},
computed: {
...mapState(['userInfo'])
},
methods: {
outWork(onWorkList){
this.workerList.push(onWorkList);
console.log(this.workerList)
this.onWorkList = this.onWorkList.filter(
function(el){
return el.workCode !== onWorkList.workCode
}
);
},
goWork(item){
this.onWorkList.push(item);
console.log(this.onWorkList);
this.workerList = this.workerList.filter(
function(el){
let result = (el.workCode !== item.workCode);
return result
}
);
},
}
}
</script>
<style>
.content {
background-color: #F0F0F0;
display: flex;
flex-direction:column;
flex-wrap: nowrap;
justify-content: flex-start;
}
.top-title{
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #666666;
margin-left: 32rpx;
margin-top: 32rpx;
}
.top-worker-list{
display: flex;
align-items: center;
position: relative;
height: 80rpx;
background-color: #FFFFFF;
}
.worker-name{
font-size: 32rpx;
font-family: MicrosoftYaHei;
color: #333333;
margin-left: 32rpx;
}
.top-right{
display: flex;
align-items: center;
position: absolute;
margin-right: 32rpx;
right: 32rpx;
}
.image-statu{
width: 34rpx;
height: 34rpx;
}
.worker-statu{
font-size: 32rpx;
font-family: MicrosoftYaHei;
color: #375DF8;
}
.line{
height: 2rpx;
margin-left: 32rpx;
margin-right: 32rpx;
background-color: #F5F5F5;
}
.body-title{
height: 94rpx;
line-height: 94rpx;
font-size: 32rpx;
font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
font-weight: bold;
color: #333333;
text-align: left;
margin-left: 32rpx;
}
.search{
display: flex;
position: relative;
justify-content: flex-start;
align-items: center;
height: 72rpx;
background: #FFFFFF;
margin-left: 32rpx;
margin-bottom: 16rpx;
}
.body-row-input-class{
width: 144rpx;
height: 72rpx;
line-height: 72rpx;
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #333333;
flex-shrink: 1;
flex-grow: 1;
border-radius:10rpx;
border: 1px solid #D8D8D8;
padding-left: 24rpx;
}
.placeholder{
font-size: 28rpx;
font-family: MicrosoftYaHei;
color: #CCCCCC;
}
.image-barcode{
position: absolute;
width: 40rpx;
height: 40rpx;
right: 56rpx;
}
.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-box{
display: flex;
position: relative;
align-items: center;
flex-wrap: nowrap;
margin-top: 16rpx;
}
.detail-row-class-right{
width: 120rpx;
height: 56rpx;
line-height: 56rpx;
background: #5777FF;
border-radius: 10rpx;
text-align: center;
font-size: 24rpx;
font-family: MicrosoftYaHei;
color: #FFFFFF;
position: absolute;
right: 32rpx;
}
.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>