国际化
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
<view class="zd_wrapper-2">
|
||||
<view class="zd-row filter_item">
|
||||
<view :class="!disabled ? 'zd-col-18' : 'zd-col-24'">
|
||||
<input type="text" placeholder="输入关键字搜索" class="filter_input" :class="{'filter_input_disabled': disabled}" :disabled="disabled" v-model="val2">
|
||||
<input type="text" :placeholder="$t('toast.enter-keywords-search')" class="filter_input" :class="{'filter_input_disabled': disabled}" :disabled="disabled" v-model="val2">
|
||||
</view>
|
||||
<view v-show="!disabled" class="zd-col-5"><button class="btn-submit btn-success" @tap="_queryBoxSpec">{{$t('button.search')}}</button></view>
|
||||
</view>
|
||||
@@ -89,35 +89,35 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
<button class="zd-col-6 btn-submit btn-success letter-30" @tap="show = false, pkId = '', pkObj = {}">取消</button>
|
||||
<button class="zd-col-6 btn-submit btn-success letter-30" @tap="show = false, pkId = '', pkObj = {}">{{$t('button.cancel')}}</button>
|
||||
<button class="zd-col-15 btn-submit btn-success letter-30" :class="{'btn-info': !pkId}" :disabled="disabled1" @tap="popSure">{{$t('button.confirm')}}</button>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="show" class="msg_mask"></view>
|
||||
<view class="msg_modal" :class="modalShow ? 'popshow1' : 'pophide1'">
|
||||
<view class="msg_tip">提示</view>
|
||||
<view class="msg_tip">{{$t('toast.prompt')}}</view>
|
||||
<view class="zd_content pdt26">
|
||||
<view class="msg_p1">请仔细核对子卷与木箱规格是否匹配,</view>
|
||||
<view class="msg_p2">木箱规格为:{{this.pkObj.material_name}},</view>
|
||||
<view class="msg_p2">子卷规格为:{{this.current.paper_tube_description}},</view>
|
||||
<view class="msg_p1">击确定后将立即生成空木箱出库任务,无法更改!</view>
|
||||
<view class="msg_p1">{{$t('toast.check-subroll-box-spec-match')}},</view>
|
||||
<view class="msg_p2">{{$t('toast.box-specifications')}}:{{this.pkObj.material_name}},</view>
|
||||
<view class="msg_p2">{{$t('toast.subroll-specifications')}}:{{this.current.paper_tube_description}},</view>
|
||||
<view class="msg_p1">{{$t('toast.generate-outbound-task')}}!</view>
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
<button class="zd-col-6 btn-submit btn-success letter-30" @tap.stop="modalShow = false">取消</button>
|
||||
<button class="zd-col-15 btn-submit btn-success letter-30" @tap="modalSure">确定</button>
|
||||
<button class="zd-col-6 btn-submit btn-success letter-30" @tap.stop="modalShow = false">{{$t('button.cancel')}}</button>
|
||||
<button class="zd-col-15 btn-submit btn-success letter-30" @tap="modalSure">{{$t('button.confirm')}}</button>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="modalShow" class="msg_mask msg_mask_1"></view>
|
||||
<view class="msg_modal" :class="modalShow1 ? 'popshow1' : 'pophide1'">
|
||||
<view class="msg_tip">提示</view>
|
||||
<view class="msg_tip">{{$t('toast.prompt')}}</view>
|
||||
<view class="zd_content pdt26">
|
||||
<view class="msg_p1">请仔细核对当前扫描子卷数与木箱装卷数是否一致,</view>
|
||||
<view class="msg_p2">当前扫描子卷数: {{dataList.length}}卷,该木箱装卷数为:{{pkObj.num}}卷,</view>
|
||||
<view class="msg_p1">点击确定后将立即生成空木箱出库任务,无法更改!</view>
|
||||
<view class="msg_p1">{{$t('toast.check-subroll-count-match')}},</view>
|
||||
<view class="msg_p2">{{$t('toast.current-subroll-scan-count')}}: {{dataList.length}}{{$t('toast.roll-unit')}},{{$t('toast.box-roll-capacity')}}:{{pkObj.num}}{{$t('toast.roll-unit')}},</view>
|
||||
<view class="msg_p1">{{$t('toast.generate-outbound-task')}}!</view>
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
<button class="zd-col-6 btn-submit btn-success letter-30" @tap.stop="modalShow1 = false">取消</button>
|
||||
<button class="zd-col-15 btn-submit btn-success letter-30" @tap="modalSure1">确定</button>
|
||||
<button class="zd-col-6 btn-submit btn-success letter-30" @tap.stop="modalShow1 = false">{{$t('button.cancel')}}</button>
|
||||
<button class="zd-col-15 btn-submit btn-success letter-30" @tap="modalSure1">{{$t('button.confirm')}}</button>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="modalShow1" class="msg_mask msg_mask_1"></view>
|
||||
@@ -178,7 +178,7 @@
|
||||
if (res.content.length) {
|
||||
if (res.content[0].paper_tube_description === null || res.content[0].paper_tube_description === '') {
|
||||
uni.showToast({
|
||||
title: '未查询到该子卷规格信息,请检查子卷的分切计划信息!',
|
||||
title: this.$t('toast.no-subroll-spec-info'),
|
||||
icon: 'none',
|
||||
duration: 5000
|
||||
})
|
||||
@@ -186,7 +186,7 @@
|
||||
}
|
||||
if (this.dataList.length >= 1 && res.content[0].paper_tube_description !== this.current.paper_tube_description) {
|
||||
uni.showToast({
|
||||
title: `扫描的规格为:${res.content[0].paper_tube_description},与列表中的子卷规格不一致,请检查!`,
|
||||
title: `${this.$t('toast.scanned-specifications')}:${res.content[0].paper_tube_description},${this.$t('toast.spec-mismatch-check')}!`,
|
||||
icon: 'none',
|
||||
duration: 5000
|
||||
})
|
||||
@@ -194,7 +194,7 @@
|
||||
}
|
||||
if (this.dataList.length >= 1 && res.content[0].sale_order_name !== this.current.sale_order_name) {
|
||||
uni.showToast({
|
||||
title: `当前扫描的订单号为:${res.content[0].sale_order_name},与列表中的订单号不一致,请检查!`,
|
||||
title: `${this.$t('toast.current-scanned-order-number')}:${res.content[0].sale_order_name},${this.$t('toast.order-number-mismatch-check')}!`,
|
||||
icon: 'none',
|
||||
duration: 5000
|
||||
})
|
||||
@@ -202,7 +202,7 @@
|
||||
}
|
||||
if (res.content[0].status !== '99') {
|
||||
uni.showToast({
|
||||
title: `该子卷状态为已分配木箱规格,请检查!`,
|
||||
title: `${this.$t('toast.subroll-assigned-spec')}!`,
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
@@ -215,7 +215,7 @@
|
||||
})
|
||||
if (flag) {
|
||||
uni.showToast({
|
||||
title: `该子卷已存在,请检查!`,
|
||||
title: `${this.$t('toast.subroll-exists-check')}!`,
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
@@ -267,7 +267,7 @@
|
||||
try {
|
||||
let res = await updateEntityList(this.pkId, this.dataList)
|
||||
uni.showToast({
|
||||
title: '操作成功!',
|
||||
title: this.$t('toast.operation-success'),
|
||||
icon: 'none'
|
||||
})
|
||||
this.clearUp()
|
||||
@@ -278,7 +278,7 @@
|
||||
popSure () {
|
||||
if (this.dataList.length > Number(this.pkObj.num)) {
|
||||
uni.showToast({
|
||||
title: '子卷数量超过木箱的最大装卷数!',
|
||||
title: this.$t('toast.subroll-count-exceed'),
|
||||
icon: 'none',
|
||||
duration: 5000
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user