分切上料语言

This commit is contained in:
2023-12-20 14:35:50 +08:00
parent e7d2997ca1
commit 070ad5b37e
5 changed files with 96 additions and 38 deletions

View File

@@ -1,17 +1,17 @@
<template>
<view class="zd_container">
<nav-bar title="分切上料"></nav-bar>
<nav-bar :title="$t('menu.cutting-and-feeding')"></nav-bar>
<view class="zd_content">
<view class="zd_wrapper">
<view class="filter_item">
<view class="filter_label">区域</view>
<view class="filter_label">{{$t('filter.area')}}</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
<uni-data-select v-model="index" :placeholder="$t('uni.dataSelect.placeholder')" :emptyTips="$t('uni.dataSelect.emptyTips')" :localdata="options" @change="selectChange"></uni-data-select>
</view>
</view>
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">点位</span>
<span class="filter_label">{{$t('filter.point')}}</span>
</view>
<view class="filter_input_wraper">
<search-box
@@ -21,7 +21,7 @@
</view>
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">母卷号</span>
<span class="filter_label">{{$t('filter.mother-roll')}}</span>
</view>
<view class="filter_input_wraper">
<search-box
@@ -35,21 +35,21 @@
<table>
<thead>
<tr>
<th>序号</th>
<th>母卷号</th>
<th>子卷号</th>
<th>机台编号</th>
<th>分切组</th>
<th>生产顺序</th>
<th>生产日期</th>
<th>订单号</th>
<th>纸筒/FRP管</th>
<th>纸筒物料编码</th>
<th>纸筒物料描述</th>
<th>纸筒规格</th>
<th>FRP管物料编码</th>
<th>FRP管物料描述</th>
<th>FRP管规格</th>
<th>{{$t('grid.number')}}</th>
<th>{{$t('grid.mother-roll-number')}}</th>
<th>{{$t('grid.sub-roll-number')}}</th>
<th>{{$t('grid.machine-code')}}</th>
<th>{{$t('grid.split-group')}}</th>
<th>{{$t('grid.production-sequence')}}</th>
<th>{{$t('grid.date-of-manufacture')}}</th>
<th>{{$t('grid.order-number')}}</th>
<th>{{$t('grid.paper-FRP-tube')}}</th>
<th>{{$t('grid.paper-tube-material-code')}}</th>
<th>{{$t('grid.paper-tube-material-description')}}</th>
<th>{{$t('grid.paper-tube-specifications')}}</th>
<th>{{$t('grid.FRP-pipe-material-code')}}</th>
<th>{{$t('grid.FRP-pipe-material-description')}}</th>
<th>{{$t('grid.FRP-pipe-specifications')}}</th>
</tr>
</thead>
<tbody>
@@ -77,15 +77,15 @@
<uni-load-more color="#007AFF" iconType="circle" :status="status" :icon-size="14" :content-text="contentText" v-if="dataList.length > 0"/>
</view>
<view class="submit-bar">
<button class="submit-button" :class="{'btn-disabled': !val1}" :disabled="disabled2" @tap="_feedingVehicleReturn">空轴送回</button>
<button class="submit-button" @tap="handleSure">人工呼叫</button>
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="toSure">呼叫</button>
<button class="submit-button" @tap="searchList">查询</button>
<button class="submit-button" :class="{'btn-disabled': !val1}" :disabled="disabled2" @tap="_feedingVehicleReturn">{{$t('button.empty-shaft-return')}}</button>
<button class="submit-button" @tap="handleSure">{{$t('button.manual-call')}}</button>
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="toSure">{{$t('button.call')}}</button>
<button class="submit-button" @tap="searchList">{{$t('button.search')}}</button>
</view>
<view v-if="active" class="msg_wrapper msg_wrapper_1">
<view class="msg_box">
<view class="filter_item">
<view class="filter_label">起点</view>
<view class="filter_label">{{$t('filter.starting-point')}}</view>
<view class="filter_input_wraper">
<search-box
v-model="val3"
@@ -94,7 +94,7 @@
</view>
</view>
<view class="filter_item">
<view class="filter_label">母卷号</view>
<view class="filter_label">{{$t('filter.mother-roll')}}</view>
<view class="filter_input_wraper">
<search-box
v-model="val4"
@@ -102,7 +102,7 @@
</view>
</view>
<view class="filter_item">
<view class="filter_label">终点</view>
<view class="filter_label">{{$t('filter.finishing-point')}}</view>
<view class="filter_input_wraper">
<search-box
v-model="val5"
@@ -110,8 +110,8 @@
</view>
</view>
<view class="msg_btns">
<button class="submit-button msg_btn" @tap="cancleModal">取消</button>
<button class="submit-button msg_btn" @tap="modalToSure">确认</button>
<button class="submit-button msg_btn" @tap="cancleModal">{{$t('button.cancel')}}</button>
<button class="submit-button msg_btn" @tap="modalToSure">{{$t('button.confirm')}}</button>
</view>
</view>
</view>
@@ -141,9 +141,9 @@
reload: false,
status: 'more',
contentText: {
contentdown: '查看更多',
contentrefresh: '加载中',
contentnomore: '没有更多'
contentdown: this.$t('utils.read-more'),
contentrefresh: this.$t('utils.loading'),
contentnomore: this.$t('utils.no-more')
},
totalCount: 0,
pageNum: 1,
@@ -319,9 +319,10 @@
<style lang="stylus">
.slide_new table td:first-child, .slide_new table th:first-child
width 92rpx
min-width 92rpx
.slide_new table td:nth-child(2), .slide_new table th:nth-child(2)
position sticky
left 89rpx
left 92rpx
z-index 102
box-shadow 1px 0 2px rgba(0,0,0,.12)
</style>

View File

@@ -26,7 +26,7 @@
<view class="filter_item">
<view class="filter_label">{{$t('filter.state')}}</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index" :placeholder="$t('uni.dataSelect.placeholder')" :emptyTips="$t('uni.dataSelect.emptyTips')" :localdata="options" @change="selectChange"></uni-data-select>
<uni-data-select v-model="index" :placeholder="$t('uni.dataSelect.placeholder')" :emptyTips="$t('uni.dataSelect.emptyTips')" :localdata="options" @change="selectChange"></uni-data-select>
</view>
</view>
</view>