289 lines
7.4 KiB
Vue
Executable File
289 lines
7.4 KiB
Vue
Executable File
<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>
|