国际化

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

@@ -6,7 +6,7 @@
<view class="zd_wrapper">
<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 v-model="val1"
@@ -14,7 +14,7 @@
</view>
</view>
<view class="filter_item">
<view class="filter_label">母卷</view>
<view class="filter_label">{{$t('filter.mother-roll')}}</view>
<view class="zd-row">
<view class="zd-col-21 filter_input_wraper">
<search-box
@@ -32,15 +32,15 @@
</view>
<view class="filter_input_wraper filter_input_wraper_1 mgb20">
<view class="iconfont icon_unchecked" :class="{'icon_checked': isV === '1'}" @tap="isVirtual">&#xe66b;</view>
<view class="filter_input_wraper_inn_text">是否大车(A2车间使用)</view>
<view class="filter_input_wraper_inn_text">{{$t('toast.is-large-vehicle-A2')}}</view>
</view>
</view>
<view class="filter_item mgb40">
<view class="filter_label_wraper">
<span class="filter_label">温度</span>
<span class="filter_label">{{$t('filter.temperature')}}()</span>
</view>
<view class="relative filter_input_wraper">
<view class="absolute filter_tip">B2车间需要输入温度</view>
<view class="absolute filter_tip">{{$t('toast.tempera-input-B2')}}</view>
<NumberInput
v-model="val3"
input-class="filter_input"
@@ -51,10 +51,10 @@
</view>
<view class="filter_item mgb40">
<view class="filter_label_wraper">
<span class="filter_label">时间小时</span>
<span class="filter_label">{{$t('filter.time')}}(h)</span>
</view>
<view class="relative filter_input_wraper">
<view class="absolute filter_tip">B2车间需要输入时间</view>
<view class="absolute filter_tip">{{$t('toast.time-input-B2')}}</view>
<NumberInput
v-model="val4"
input-class="filter_input"
@@ -68,18 +68,18 @@
<table>
<thead>
<tr>
<th>状态</th>
<th class="th_2">母卷号</th>
<th>工单号</th>
<th>机台编码</th>
<th>产品编码</th>
<th>理论长度</th>
<th>开始时间</th>
<th>结束时间</th>
<th>总重量</th>
<th>车号</th>
<th>生产区域</th>
<th>更新时间</th>
<th>{{$t('filter.state')}}</th>
<th class="th_2">{{$t('grid.mother-roll-number')}}</th>
<th>{{$t('grid.work-order-number')}}</th>
<th>{{$t('grid.machine-code')}}</th>
<th>{{$t('grid.product-code')}}</th>
<th>{{$t('grid.theoretical-length')}}</th>
<th>{{$t('grid.start-time')}}</th>
<th>{{$t('grid.end-time')}}</th>
<th>{{$t('grid.total-weight')}}</th>
<th>{{$t('grid.car-number')}}</th>
<th>{{$t('grid.production-area')}}</th>
<th>{{$t('grid.update-time')}}</th>
</tr>
</thead>
<tbody>
@@ -104,10 +104,10 @@
<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-4 btn-submit btn-success" :class="{'btn-info': !pkId}" :disabled="disabled1" @tap="_needEmptyAxis">呼叫</button>
<button class="zd-col-6 btn-submit btn-success" :class="{'btn-info': !(val1 && !pkId)}" :disabled="disabled5" @tap="_needEmptyVehicle">呼叫空轴</button>
<button class="zd-col-6 btn-submit btn-success" :class="{'btn-info': !pkId}" :disabled="disabled2" @tap="_confirmBlanking">准备就绪</button>
<button class="zd-col-6 btn-submit btn-success" :class="{'btn-info': !pkId}" :disabled="disabled3" @tap="_finishBlanking">确认下卷</button>
<button class="zd-col-4 btn-submit btn-success" :class="{'btn-info': !pkId}" :disabled="disabled1" @tap="_needEmptyAxis">{{$t('button.call')}}</button>
<button class="zd-col-6 btn-submit btn-success" :class="{'btn-info': !(val1 && !pkId)}" :disabled="disabled5" @tap="_needEmptyVehicle">{{$t('button.call-empty-shaft')}}</button>
<button class="zd-col-6 btn-submit btn-success" :class="{'btn-info': !pkId}" :disabled="disabled2" @tap="_confirmBlanking">{{$t('button.ready-to-go')}}</button>
<button class="zd-col-6 btn-submit btn-success" :class="{'btn-info': !pkId}" :disabled="disabled3" @tap="_finishBlanking">{{$t('button.surerolldown')}}</button>
</view>
</view>
</template>
@@ -139,9 +139,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,