半成品入库语言切换

This commit is contained in:
2023-12-15 11:28:11 +08:00
parent 8f05bf39ce
commit 0c9c2af083
4 changed files with 82 additions and 25 deletions

View File

@@ -2,8 +2,11 @@
"utils.loading": "Loading...",
"uni.dataSelect.placeholder": "Please select",
"uni.dataSelect.emptyTips": "No options available",
"utils.read-more": "Read more",
"utils.no-more": "No more",
"button.confirm": "OK",
"button.search": "Query",
"button.receipt-confirmation": "Receipt confirmation",
"login.username": "User name",
"login.password": "Password",
"login.remember": "Remember username",
@@ -60,5 +63,21 @@
"menu.customer-label-printing": "Customer label printing",
"menu.scheduling-management": "Scheduling management",
"menu.task-management": "Task management",
"menu.rgv-status-query": "RGV status query"
"menu.rgv-status-query": "RGV status query",
"filter.area": "Area",
"filter.point": "Point",
"filter.mother-roll": "Mother roll",
"filter.state": "State",
"grid.work-order-number": "Work order number",
"grid.mother-roll-number": "Mother roll number",
"grid.start-time": "Start time",
"grid.end-time": "End time",
"grid.machine-code": "Machine code",
"grid.point-code": "Point code",
"grid.product-code": "Product code",
"grid.theoretical-length": "Theoretical length",
"grid.total-weight": "Total weight",
"grid.car-number": "Car number",
"grid.production-area": "Production area",
"grid.update-time": "Update time"
}

View File

@@ -2,8 +2,11 @@
"utils.loading": "Memuatkan...",
"uni.dataSelect.placeholder": "Silakan pilih",
"uni.dataSelect.emptyTips": "Tidak ada pilihan tersedia",
"utils.read-more": "Lihat lebih",
"utils.no-more": "Tidak lagi",
"button.confirm": "OK",
"button.search": "pertanyaan",
"button.receipt-confirmation": "Konfirmasi penerimaan",
"login.username": "Nama pengguna",
"login.password": "Sandi",
"login.remember": "Ingat nama pengguna",
@@ -60,5 +63,21 @@
"menu.customer-label-printing": "Cetakan label pelanggan",
"menu.scheduling-management": "Manajemen jadwal",
"menu.task-management": "Manajemen tugas",
"menu.rgv-status-query": "Pertanyaan status RGV"
"menu.rgv-status-query": "Pertanyaan status RGV",
"filter.area": "Daerah",
"filter.point": "Posisi titik",
"filter.mother-roll": "Mother roll",
"filter.state": "Keadaan",
"grid.work-order-number": "Nomor urutan kerja",
"grid.mother-roll-number": "Nomor Roll Ibu",
"grid.start-time": "Waktu awal",
"grid.end-time": "Waktu akhir",
"grid.machine-code": "Koding mesin",
"grid.point-code": "Kode titik",
"grid.product-code": "Kode produk",
"grid.theoretical-length": "Panjang teori",
"grid.total-weight": "Total berat",
"grid.car-number": "Nomor mobil",
"grid.production-area": "Area produksi",
"grid.update-time": "Waktu kemaskini"
}

View File

@@ -2,8 +2,11 @@
"utils.loading": "加载中...",
"uni.dataSelect.placeholder": "请选择",
"uni.dataSelect.emptyTips": "无选项",
"utils.read-more": "查看更多",
"utils.no-more": "没有更多",
"button.confirm": "确定",
"button.search": "查询",
"button.receipt-confirmation": "确认入库",
"login.username": "用户名",
"login.password": "密码",
"login.remember": "记住用户名",
@@ -60,5 +63,21 @@
"menu.customer-label-printing": "客户标签打印",
"menu.scheduling-management": "调度管理",
"menu.task-management": "任务管理",
"menu.rgv-status-query": "RGV状态查询"
"menu.rgv-status-query": "RGV状态查询",
"filter.area": "区域",
"filter.point": "点位",
"filter.mother-roll": "母卷",
"filter.state": "状态",
"grid.work-order-number": "工单号",
"grid.mother-roll-number": "母卷号",
"grid.start-time": "开始时间",
"grid.end-time": "结束时间",
"grid.machine-code": "机台编码",
"grid.point-code": "点位编码",
"grid.product-code": "产品编码",
"grid.theoretical-length": "理论长度",
"grid.total-weight": "总重量",
"grid.car-number": "车号",
"grid.production-area": "生产区域",
"grid.update-time": "更新时间"
}

View File

@@ -1,11 +1,11 @@
<template>
<view class="zd_container">
<nav-bar title="半成品入库"></nav-bar>
<nav-bar :title="$t('menu.semi-finished-product-warehousing')"></nav-bar>
<view class="zd_content">
<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
@@ -15,7 +15,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
@@ -24,9 +24,9 @@
</view>
</view>
<view class="filter_item">
<view class="filter_label">状态</view>
<view class="filter_label">{{$t('filter.state')}}</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>
@@ -35,18 +35,18 @@
<table>
<thead>
<tr>
<th>状态</th>
<th>工单号</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>{{$t('grid.work-order-number')}}</th>
<th>{{$t('grid.mother-roll-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>
@@ -71,8 +71,8 @@
<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 || !pkId || !index}" :disabled="disabled" @tap="_confirmInstor">确认入库</button>
<button class="submit-button" @tap="searchList">查询</button>
<button class="submit-button" :class="{'btn-disabled': !val1 || !pkId || !index}" :disabled="disabled" @tap="_confirmInstor">{{$t('button.receipt-confirmation')}}</button>
<button class="submit-button" @tap="searchList">{{$t('button.search')}}</button>
</view>
</view>
</template>
@@ -99,9 +99,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,