国际化
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar title="发货区解绑" :inner="true" :show="false"></nav-bar>
|
||||
<nav-bar :title="$t('grid.unbind-ship-area')" :inner="true" :show="false"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="filter_item">
|
||||
@@ -12,7 +12,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">单据号</view>
|
||||
<view class="filter_label">{{$t('grid.bill-code')}}</view>
|
||||
<view class="filter_input_wraper">
|
||||
<input type="text" class="filter_input filter_input_disabled" v-model="val2" disabled>
|
||||
</view>
|
||||
@@ -25,10 +25,10 @@
|
||||
<tr>
|
||||
<th class="fontcol2">{{$t('filter.box-no')}}</th>
|
||||
<th>{{$t('grid.point-code')}}</th>
|
||||
<th>点位名称</th>
|
||||
<th>{{$t('grid.point-name')}}</th>
|
||||
<th>{{$t('grid.weight')}}</th>
|
||||
<th>{{$t('grid.product-code')}}</th>
|
||||
<th>产品名称</th>
|
||||
<th>{{$t('grid.product-name')}}</th>
|
||||
<th>{{$t('grid.order-number')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -62,20 +62,20 @@
|
||||
<tr>
|
||||
<th>{{$t('filter.box-no')}}</th>
|
||||
<th>{{$t('grid.sub-roll-number')}}</th>
|
||||
<th>sap批次</th>
|
||||
<th>净重</th>
|
||||
<th>状态</th>
|
||||
<th>{{$t('grid.sap-batch')}}</th>
|
||||
<th>{{$t('grid.net-weight')}}</th>
|
||||
<th>{{$t('grid.status')}}</th>
|
||||
<th>{{$t('grid.order-number')}}</th>
|
||||
<th>客户编码</th>
|
||||
<th>{{$t('grid.customer-code')}}</th>
|
||||
<th>{{$t('grid.customer-name')}}</th>
|
||||
<th>幅宽</th>
|
||||
<th>厚度</th>
|
||||
<th>长度</th>
|
||||
<th>客户要求幅宽</th>
|
||||
<th>物料标准厚度</th>
|
||||
<th>保质期</th>
|
||||
<th>制造完成日期</th>
|
||||
<th>入库日期</th>
|
||||
<th>{{$t('grid.width')}}</th>
|
||||
<th>{{$t('grid.thickness')}}</th>
|
||||
<th>{{$t('grid.length')}}</th>
|
||||
<th>{{$t('grid.width-required-customer')}}</th>
|
||||
<th>{{$t('grid.standard-hickness-mater')}}</th>
|
||||
<th>{{$t('grid.shelf-life')}}</th>
|
||||
<th>{{$t('grid.manu-completion-date')}}</th>
|
||||
<th>{{$t('grid.warehousing-date')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -103,7 +103,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
<button class="zd-col-22 btn-submit btn-success letter-30" @tap.stop="show = false">返回</button>
|
||||
<button class="zd-col-22 btn-submit btn-success letter-30" @tap.stop="show = false">{{$t('button.return')}}</button>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="show" class="msg_mask"></view>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<search-box v-model="val1" @handleChange="handleChange1" />
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="editValue.length" class="msg_item" style="margin-bottom:16rpx;">已扫木箱号:{{editValue.toString()}}</view>
|
||||
<view v-if="editValue.length" class="msg_item" style="margin-bottom:16rpx;">{{$t('filter.case-has-scanned')}}:{{editValue.toString()}}</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label_wraper">
|
||||
<span class="filter_label">{{$t('filter.select-box-num')}}</span>
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
options: [{value: '1', text: this.$t('select.return-inspection-warehousing')}, {value: '2', text: this.$t('select.recut-warehousing')}, {value: '0001', text: this.$t('select.production-warehousing')}, {value: '0009', text: '手工入库'}],
|
||||
options: [{value: '1', text: this.$t('select.return-inspection-warehousing')}, {value: '2', text: this.$t('select.recut-warehousing')}, {value: '0001', text: this.$t('select.production-warehousing')}, {value: '0009', text: this.$t('select.manual-warehousing')}],
|
||||
index: '',
|
||||
val1: '',
|
||||
val2: '',
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">去向</view>
|
||||
<view class="filter_label">{{$t('filter.destination')}}</view>
|
||||
<view class="filter_input_wraper">
|
||||
<uni-data-select v-model="index1" :placeholder="$t('uni.dataSelect.placeholder')" :emptyTips="$t('uni.dataSelect.emptyTips')" :localdata="options1" placement="top"></uni-data-select>
|
||||
</view>
|
||||
@@ -126,9 +126,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,
|
||||
@@ -139,7 +139,7 @@
|
||||
val3: '',
|
||||
val4: '',
|
||||
index1: '',
|
||||
options1: [{value: '1', text: '入冷却'}, {value: '2', text: '入烘箱'}]
|
||||
options1: [{value: '1', text: this.$t('select.enter-cooling')}, {value: '2', text: this.$t('select.enter-oven')}]
|
||||
};
|
||||
},
|
||||
onPageScroll(e) {
|
||||
|
||||
@@ -90,9 +90,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,
|
||||
|
||||
@@ -113,9 +113,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,
|
||||
|
||||
@@ -91,9 +91,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,
|
||||
|
||||
@@ -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
|
||||
})
|
||||
|
||||
@@ -157,9 +157,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,
|
||||
|
||||
@@ -84,23 +84,11 @@
|
||||
})
|
||||
},
|
||||
async toLogin() {
|
||||
uni.redirectTo({
|
||||
url: '/pages/home/home'
|
||||
})
|
||||
// uni.redirectTo({
|
||||
// url: '/pages/home/home'
|
||||
// })
|
||||
this.disabled = true
|
||||
if (this.user === '') {
|
||||
// uni.showToast({
|
||||
// title: '用户名不能为空',
|
||||
// icon: 'none'
|
||||
// })
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
if (this.password === '') {
|
||||
// uni.showToast({
|
||||
// title: '密码不能为空',
|
||||
// icon: 'none'
|
||||
// })
|
||||
if (this.user === '' || this.password === '') {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar title="设置" :inner2="true" @goIn="goIn" :show="false"></nav-bar>
|
||||
<nav-bar :title="$t('login.settings')" :inner2="true" @goIn="goIn" :show="false"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="zd-row">
|
||||
@@ -105,18 +105,7 @@
|
||||
// }
|
||||
},
|
||||
_submit () {
|
||||
if (this.addrip === '') {
|
||||
uni.showToast({
|
||||
title: '服务器地址',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
if (this.setTime === '') {
|
||||
uni.showToast({
|
||||
title: '请填写刷新时间',
|
||||
icon: 'none'
|
||||
})
|
||||
if (this.addrip === '' || this.setTime === '') {
|
||||
return
|
||||
}
|
||||
// 存值
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
<view class="mask flex-center">
|
||||
<view class="content botton-radius">
|
||||
<view class="content-top">
|
||||
<text class="content-top-text">发现新版本</text>
|
||||
<text class="content-top-text">{{$t('upgrade.new-version')}}</text>
|
||||
<image class="content-top" style="top: 0;" width="100%" height="100%" src="../../static/image/bg_top.png">
|
||||
</image>
|
||||
</view>
|
||||
<view class="content-header"></view>
|
||||
<view class="content-body">
|
||||
<view class="title">
|
||||
<text>海亮铜箔又有新版本了,升级到最新版本,享受更丰富、稳定、快速的功能和体验!</text>
|
||||
<text>{{$t('upgrade.text1')}}</text>
|
||||
</view>
|
||||
<view class="footer flex-center">
|
||||
<template>
|
||||
@@ -17,11 +17,11 @@
|
||||
<view class="progress-box flex-column" v-if="downloading">
|
||||
<progress class="progress" border-radius="35" :percent="downLoadPercent" activeColor="#3DA7FF" show-info stroke-width="10" />
|
||||
<view style="width:100%;font-size: 28rpx;display: flex;justify-content: space-around;">
|
||||
<text>安装包下载中,请稍后</text>
|
||||
<text>{{$t('upgrade.text2')}}</text>
|
||||
<text>({{downloadedSize}}/{{packageFileSize}}M)</text>
|
||||
</view>
|
||||
</view>
|
||||
<button v-else class="content-button" style="border: none;color: #fff;" plain @click="updateApp">立即升级</button>
|
||||
<button v-else class="content-button" style="border: none;color: #fff;" plain @click="updateApp">{{$t('upgrade.upgrade-now')}}</button>
|
||||
</template>
|
||||
</template>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user