分切管理模块语言切换

This commit is contained in:
2023-12-25 17:58:31 +08:00
parent 070ad5b37e
commit 8a8f2359c9
9 changed files with 192 additions and 127 deletions

View File

@@ -1,25 +1,25 @@
<template>
<view class="zd_container">
<nav-bar title="空轴套管"></nav-bar>
<nav-bar :title="$t('menu.hollow-shaft-sleeve')"></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="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
<uni-data-select v-model="index1" :placeholder="$t('uni.dataSelect.placeholder')" :emptyTips="$t('uni.dataSelect.emptyTips')" :localdata="options1" @change="selectChange1"></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.device')}}</span>
</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
<uni-data-select v-model="index2" :placeholder="$t('uni.dataSelect.placeholder')" :emptyTips="$t('uni.dataSelect.emptyTips')" :localdata="options2" @change="selectChange2"></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.mother-roll')}}</span>
</view>
<view class="filter_input_wraper">
<search-box
@@ -29,7 +29,7 @@
</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
@@ -39,7 +39,7 @@
</view>
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">气涨轴</span>
<span class="filter_label">{{$t('filter.air-shaft')}}</span>
</view>
<view class="filter_input_wraper">
<search-box
@@ -53,21 +53,21 @@
<table>
<thead>
<tr>
<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>订单号</th>
<th>{{$t('grid.number')}}</th>
<th>{{$t('grid.select')}}</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.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>
<th>{{$t('grid.order-number')}}</th>
</tr>
</thead>
<tbody>
@@ -95,10 +95,10 @@
<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 || !val2}" :disabled="disabled2" @tap="_casingWearConfirm">穿轴确认</button>
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled1" @tap="_casingOutConfirm">拔轴确认</button>
<button class="submit-button" :class="{'btn-disabled': !checkArr.length || !val2}" :disabled="disabled" @tap="_casingConfirm">套轴确认</button>
<button class="submit-button" @tap="searchList">查询</button>
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled2" @tap="_casingWearConfirm">{{$t('button.through-shaft-confirm')}}</button>
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled1" @tap="_casingOutConfirm">{{$t('button.pull-shaft-confirm')}}</button>
<button class="submit-button" :class="{'btn-disabled': !checkArr.length || !val2}" :disabled="disabled" @tap="_casingConfirm">{{$t('button.overlap-shaft-confirm')}}</button>
<button class="submit-button" @tap="searchList">{{$t('button.search')}}</button>
</view>
</view>
</template>
@@ -128,9 +128,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,