新增页面,国际化

This commit is contained in:
2026-01-21 11:27:09 +08:00
parent 28c09888d9
commit b1fa28b8e6
48 changed files with 173 additions and 49 deletions

View File

@@ -64,7 +64,7 @@
if (!this.val1 || !this.val2) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._boxReturn()
}

View File

@@ -158,7 +158,7 @@
if (this.dataList.length === 0) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._twoPdaOutConfirm()
}

View File

@@ -71,7 +71,7 @@
if (!this.val2 || !this.val3) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._twoPdaBoxIn()
}

View File

@@ -139,7 +139,7 @@
if (!this.checkArr.length) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._twoPdaVehicleIn()
}

View File

@@ -66,7 +66,7 @@
if (!this.val1 || !this.val2 || !this.index) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._twoPdaVehicleIn()
}

View File

@@ -57,7 +57,7 @@
if (!this.val1) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._updatePackagePoint()
}

View File

@@ -16,7 +16,7 @@
</view>
<view class="zd-row submitbar">
<button class="zd-col-6 btn-submit btn-default" @tap="clearUp">{{$t('button.clear')}}</button>
<button class="zd-col-15 btn-submit btn-success" :class="{'btn-info': !val1}" :disabled="disabled" @tap="handleConfirm">子卷包装解绑</button>
<button class="zd-col-15 btn-submit btn-success" :class="{'btn-info': !val1}" :disabled="disabled" @tap="handleConfirm">{{$t('button.confirm')}}</button>
</view>
</view>
</template>
@@ -50,7 +50,7 @@
if (!this.val1) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._toEndSub()
}

View File

@@ -0,0 +1,97 @@
<template>
<view class="zd_container">
<!-- <nav-bar title="三码合一"></nav-bar> -->
<nav-bar :title="title"></nav-bar>
<view class="zd_content">
<view class="zd_wrapper">
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">{{$t('select.internal-label')}}</span>
</view>
<view class="filter_input_wraper">
<search-box v-model="val1" />
</view>
</view>
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">{{$t('select.tube-label')}}</span>
</view>
<view class="filter_input_wraper">
<search-box v-model="val2" />
</view>
</view>
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">{{$t('filter.box-code')}}</span>
</view>
<view class="filter_input_wraper">
<search-box v-model="val3" />
</view>
</view>
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">{{$t('filter.outer-label-code')}}</span>
</view>
<view class="filter_input_wraper">
<search-box v-model="val4" />
</view>
</view>
</view>
</view>
<view class="zd-row submitbar">
<button class="zd-col-6 btn-submit btn-default" @tap="clearUp">{{$t('button.clear')}}</button>
<button class="zd-col-15 btn-submit btn-success" :class="{'btn-info': !val1 || !val2 || !val3 || !val4}" :disabled="disabled" @tap="_checkCode">{{$t('button.verify')}}</button>
</view>
</view>
</template>
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {checkCode} from '@/utils/getData3.js'
export default {
components: {
NavBar,
SearchBox
},
data() {
return {
title: '',
val1: '',
val2: '',
val3: '',
val4: '',
disabled: false
};
},
onLoad (options) {
this.title = options.title
},
methods: {
async _checkCode () {
this.disabled = true
if (!this.val1 || !this.val2 || !this.val3 || !this.val4) {
this.disabled = false
return
}
try {
let res = await checkCode(this.val1, this.val2, this.val3, this.val4)
uni.showToast({
title: res.message,
icon: 'none'
})
this.clearUp()
this.disabled = false
} catch (e) {
this.disabled = false
}
},
clearUp () {
this.val1 = ''
this.val2 = ''
this.val3 = ''
this.val4 = ''
}
}
}
</script>

View File

@@ -80,7 +80,7 @@
if (!this.val1 || !this.val2) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._saveBoxInfo()
}

View File

@@ -66,7 +66,7 @@
if (!this.index || !this.val1 || !this.val2) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._twoPdaReturnIn()
}

View File

@@ -75,7 +75,7 @@
if (!this.index || !this.val1 || !this.val2 || !this.val3) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._twoPdaReback()
}

View File

@@ -60,7 +60,7 @@
if (!this.val2 || !this.val3) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._boxIn()
}

View File

@@ -63,7 +63,7 @@
if (!this.val2 || !this.val3) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._updateWeight()
}

View File

@@ -88,7 +88,7 @@
if (!this.val2 || !this.val3) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._updatePoint()
}

View File

@@ -33,7 +33,7 @@
<thead>
<tr>
<th>{{$t('filter.box-no')}}</th>
<th>木箱料号</th>
<th>{{$t('filter.box-type')}}</th>
<th>{{$t('filter.wooden-box-description')}}</th>
<th>{{$t('filter.max-sub-num')}}</th>
<th>{{$t('grid.wooden-box-length')}}</th>

View File

@@ -62,7 +62,7 @@
if (!this.val1 && !this.val2) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._abnormalOut()
}

View File

@@ -58,7 +58,7 @@
if (!this.index) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._confirmPass()
}

View File

@@ -77,7 +77,7 @@
if (!this.val1 || !this.val2) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._pointOperate(type)
}

View File

@@ -195,7 +195,7 @@
if (!this.val1 || !this.val2) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._inCoolIvt()
}
@@ -227,7 +227,7 @@
this.disabled2 = false
},
async handleConfirm2 () {
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this.modalToSure()
}

View File

@@ -161,7 +161,7 @@
if ((!this.val1 || !this.val2) && type === '2') {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
if (type === '1') {
this._ovenInAndOut1(type)

View File

@@ -68,7 +68,7 @@
if (!this.val1 && !this.index1) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._updatePackageInfo()
}

View File

@@ -104,7 +104,7 @@
if (!this.val1 || !this.val2 || !this.val5) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._handleBakingovenInAndOut1(type)
}
@@ -153,7 +153,7 @@
if (!this.val1 || !this.val2) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._handleBakingcheckConfirm()
}

View File

@@ -59,7 +59,7 @@
if (!this.val1 || !this.index) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._bakingReBake()
}

View File

@@ -60,7 +60,7 @@
if (!this.val1 || !this.val2) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._confirmWeight()
}

View File

@@ -77,7 +77,7 @@
if (!this.val1 || !this.index1 || !this.index2) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._printTable()
}

View File

@@ -183,7 +183,7 @@
if (!this.val2 && type === '7') {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
if (type === '5') {
this._confirmBlanking()
@@ -254,7 +254,7 @@
this.type = ''
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._rawScrollDowm(type)
}

View File

@@ -57,7 +57,7 @@
if (!this.val1) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._updatePackageInfo()
}

View File

@@ -122,7 +122,7 @@
if (!this.arr1.length) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._zjInBoundConfirm()
}

View File

@@ -46,7 +46,7 @@
if (!this.val1) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._AGVPass()
}

View File

@@ -148,7 +148,7 @@
if (!this.index1 ||!this.index2 || !this.index3 || (!this.upL && !this.upR)) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._downBait()
}

View File

@@ -168,7 +168,7 @@
if (!this.index2 || (!this.upL && !this.upR && !this.lowL && !this.lowR)) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._forcedFeedShaft()
}

View File

@@ -140,7 +140,7 @@
if (!this.index || !this.dataList.length) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._downShafts()
}

View File

@@ -69,7 +69,7 @@
if (!this.index) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._doInitShaftPoint()
}

View File

@@ -122,7 +122,7 @@
if (!this.dataList.length) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._operateIvt(type)
}

View File

@@ -65,7 +65,7 @@
if (!this.val1) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._rollCacheManage(type)
}

View File

@@ -45,7 +45,7 @@
if (!this.val1) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._shaftMaintenanceInventory(type)
}

View File

@@ -191,7 +191,7 @@
if (!this.index || !this.dataList.length) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._downRolls2()
}

View File

@@ -327,7 +327,7 @@
if (!this.val1) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._feedingVehicleReturn(type)
}

View File

@@ -57,7 +57,7 @@
if (!this.val1 || !this.val2) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._doStockAreaBinding()
}
@@ -80,7 +80,7 @@
if (!this.val1) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._doStockAreaUnbinding()
}
@@ -103,7 +103,7 @@
if (!this.val1 || !this.val2) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._instorStock(type)
}

View File

@@ -87,7 +87,7 @@
if (!this.val1 || (!this.val2 && !this.val3)) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._doSubRollWeightBinding()
}

View File

@@ -149,7 +149,7 @@
if (this.val1 || !this.index1 || !this.index2) {
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
const isConfirmed = await confirmAction(this.$t('toast.prompt'), this.$t('toast.sure-perform-operation'))
if (isConfirmed) {
this._moveStock()
}

View File

@@ -95,11 +95,11 @@
this.show = true
this.secM = e.sonTree
this.icon = e.path
this.title = e.title
this.title = e[this.$langPre.computedProp('title')]
}
},
toPage2 (e) {
let url = e.path + '?title=' + e.title
let url = e.path + '?title=' + e[this.$langPre.computedProp('title')]
uni.redirectTo({
url: url
})