国际化

This commit is contained in:
2026-01-29 20:28:02 +08:00
parent b957c6c1c5
commit 53c80bce5e
6 changed files with 77 additions and 65 deletions

View File

@@ -5,14 +5,14 @@
<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')" :localdata="options" @change="selectChange"></uni-data-select>
</view>
</view>
<view class="filter_item is-required">
<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>
<view class="filter_item">
<view class="filter_label">母卷号</view>
<view class="filter_label">{{$t('grid.mother-roll-number')}}</view>
<view class="zd-row">
<view class="zd-col-21 filter_input_wraper">
<search-box
@@ -37,21 +37,21 @@
<table>
<thead>
<tr>
<th>序号</th>
<th class="th_2">母卷号</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 class="th_2">{{$t('grid.mother-roll-number')}}</th>
<th>{{$t('grid.sub-roll-number')}}</th>
<th>{{$t('grid.jtcode')}}</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>
@@ -79,17 +79,17 @@
<uni-load-more color="#007AFF" iconType="circle" :status="status" :icon-size="14" :content-text="contentText" v-if="dataList.length > 0"/>
</view>
<view class="zd-row submitbar">
<button class="zd-col-6 btn-submit btn-success" :class="{'btn-info': !val1}" :disabled="disabled2" @tap="_feedingVehicleReturn('2')">满轴送回</button>
<button class="zd-col-6 btn-submit btn-success" :class="{'btn-info': !val1}" :disabled="disabled2" @tap="_feedingVehicleReturn('1')">空轴送回</button>
<button class="zd-col-6 btn-submit btn-success" @tap="handleSure">人工呼叫</button>
<button class="zd-col-6 btn-submit btn-success" :class="{'btn-info': !pkId}" :disabled="disabled" @tap="toSure">呼叫</button>
<button class="zd-col-6 btn-submit btn-success" :class="{'btn-info': !val1}" :disabled="disabled2" @tap="_feedingVehicleReturn('2')">{{$t('button.full-shaft-return')}}</button>
<button class="zd-col-6 btn-submit btn-success" :class="{'btn-info': !val1}" :disabled="disabled2" @tap="_feedingVehicleReturn('1')">{{$t('button.empty-shaft-return')}}</button>
<button class="zd-col-6 btn-submit btn-success" @tap="handleSure">{{$t('button.manual-call')}}</button>
<button class="zd-col-6 btn-submit btn-success" :class="{'btn-info': !pkId}" :disabled="disabled" @tap="toSure">{{$t('button.call')}}</button>
</view>
<view class="msg_wrapper h-50" :class="active ? 'popshow' : 'pophide'">
<view class="pop-line"></view>
<view class="msg_content">
<view class="zd_wrapper zd_wrapper-1">
<view class="filter_item filter_item-1">
<view class="filter_label">起点</view>
<view class="filter_label">{{$t('filter.starting-point')}}</view>
<view class="filter_input_wraper">
<search-box
v-model="val3"
@@ -98,7 +98,7 @@
</view>
</view>
<view class="filter_item filter_item-1">
<view class="filter_label">母卷号</view>
<view class="filter_label">{{$t('grid.mother-roll-number')}}</view>
<view class="filter_input_wraper">
<search-box
v-model="val4"
@@ -106,7 +106,7 @@
</view>
</view>
<view class="filter_item filter_item-1">
<view class="filter_label">终点</view>
<view class="filter_label">{{$t('filter.end')}}</view>
<view class="filter_input_wraper">
<search-box
v-model="val5"
@@ -116,8 +116,8 @@
</view>
</view>
<view class="zd-row submitbar">
<button class="zd-col-11 btn-submit btn-default letter-30" @tap="cancleModal">取消</button>
<button class="zd-col-11 btn-submit btn-success letter-30" @tap="modalToSure">确认</button>
<button class="zd-col-11 btn-submit btn-default letter-30" @tap="cancleModal">{{$t('button.cancel')}}</button>
<button class="zd-col-11 btn-submit btn-success letter-30" @tap="modalToSure">{{$t('button.confirm')}}</button>
</view>
</view>
<view v-if="active" class="msg_mask"></view>
@@ -147,9 +147,9 @@
reload: false,
status: 'more',
contentText: {
contentdown: '查看更多',
contentrefresh: '加载中',
contentnomore: '没有更多'
contentdown: this.$t('uni-load-more.contentdown'),
contentrefresh: this.$t('uni-load-more.contentrefresh'),
contentnomore: this.$t('uni-load-more.contentnomore')
},
totalCount: 0,
pageNum: 1,