Browse Source

扫码页面的部分国际化修改

caojunjie 4 years ago
parent
commit
768f1dbe1d

+ 32 - 2
common/locales/zh.js

@@ -46,6 +46,8 @@ export default {
 		networkstate: '无网络,请连接网络后再试~',
 		nodata:'暂无数据',
 		Loading:'加载中...',
+		error:'出错啦',
+		//下面是日历的周一到周天
 		sun:'日',
 		mon:'一',
 		tues:'二',
@@ -58,11 +60,13 @@ export default {
 	scanenter: {
 		title: '扫码入库',
 		tips: '提示',
-		tips_s: '胎号',
+		tips_a:'请扫码入库',
 		input: '手动录入',
+		confirmentry:'确认输入',
 		number: '胎号',
 		Specifications: '规格',
 		operation: '操作',
+		Delete:'删除',
 		slide: '没有更多啦',
 		confirm: '扫码确认',
 		pleaseenter: '请输入胎号',
@@ -70,9 +74,35 @@ export default {
 		nodata: '请扫码或录入后再点击!',
 		networkstate_s: '网络繁忙请稍后再试',
 		locationstate: '获取地址失败, 请检查是否开启定位权限~',
+		seekfailed:'获取定位失败,请稍后再试~',
 		repeat: '请勿重复录入',
 		inputsuccess: '录入成功',
-		scansuccess: '扫码成功'
+		scansuccess: '扫码成功',
+		transformation:'正在转换坐标,请稍候~',
+		repeatscan:'请重新扫码'
+	},
+	//出入库扫码确认
+	scanningconfirm:{
+		strip:'条',
+		Successfullypit:'成功入库轮胎',
+		success:'成功信息',
+		fail:'失败信息',
+		number:'轮胎胎号',
+		number_s: '胎号',
+		failreason:'失败原因',
+		stateA:'非门店经营品牌',
+		stateB:'非正规胎号',
+		stateC:'库存中已存在',
+		reward:'奖励',
+		yuan:'元',
+		integral:'积分',
+		one:'个',
+		materiel:'物料',
+		estimatereward:'预计奖励',
+		total:'合计',
+		attention:'注:所有的奖励均在达到签约任务后给予兑现。',
+		confirm: '扫码确认',
+		networkstate:'网络繁忙,请稍后再试~',
 	},
 	//出入库明细
 	scancodeenter: {

+ 2 - 2
common/request/request.js

@@ -27,9 +27,9 @@ export function request(config) {
 	// uEnvProd;生产模式,点击发行
 	if (process.env.NODE_ENV === 'production') {
 	    //测试接口
-		// baseURL = "http://b2bcnapi.sailuntire.com/allstell/test/app"
+		baseURL = "http://b2bcnapi.sailuntire.com/allstell/test/app"
 		//正式接口
-		baseURL = "http://b2bcnapi.sailuntire.com/allstell/app";
+		// baseURL = "http://b2bcnapi.sailuntire.com/allstell/app";
 	};
     let newVar = axios.create({
         baseURL: baseURL,

+ 27 - 25
pages/home/Scan-code-in/index.vue

@@ -2,38 +2,38 @@
 	<!-- 扫码入库确认页面 -->
 	<view>
 		<u-modal v-model="show" :show-title="false" @confirm="confirm">
-			<view style="width: 100%;height: 42rpx;margin-top: 30rpx;margin-bottom: 10rpx;text-align: center;">成功信息</view>
+			<view style="width: 100%;height: 42rpx;margin-top: 30rpx;margin-bottom: 10rpx;text-align: center;">{{$t('scanningconfirm.success')}}</view>
 			<u-table border-color="#f2f2f2">
 				<u-tr class="u-tr">
-					<u-td class="u-td">{{successCount}}</u-td>
-					<u-td class="u-td">成功入库轮胎</u-td>
+					<u-td class="u-td">{{successCount}}{{$t('scanningconfirm.strip')}}</u-td>
+					<u-td class="u-td">{{$t('scanningconfirm.Successfullypit')}}</u-td>
 				</u-tr>
 			</u-table>
-			<view style="width: 100%;height: 42rpx;margin-top: 30rpx;margin-bottom: 10rpx;text-align: center;">失败信息</view>
+			<view style="width: 100%;height: 42rpx;margin-top: 30rpx;margin-bottom: 10rpx;text-align: center;">{{$t('scanningconfirm.fail')}}</view>
 			<u-table border-color="#f2f2f2">
 				<u-tr class="u-tr">
-					<u-th class="u-th">轮胎胎号</u-th>
-					<u-th class="u-th">失败原因</u-th>
+					<u-th class="u-th">{{$t('scanningconfirm.number')}}</u-th>
+					<u-th class="u-th">{{$t('scanningconfirm.failreason')}}</u-th>
 				</u-tr>
 				<u-tr class="u-tr" v-for="(item,index) in notBelongStoreBrandTyreNumbers" :key="index">
 					<u-td class="u-td">{{item}}</u-td>
-					<u-td class="u-td">非门店经营品牌</u-td>
+					<u-td class="u-td">{{$t('scanningconfirm.stateA')}}</u-td>
 				</u-tr>
 				<u-tr class="u-tr" v-for="(item,index) in nonRegularTyreNumbers" :key="index">
 					<u-td class="u-td">{{item}}</u-td>
-					<u-td class="u-td">非正规胎号</u-td>
+					<u-td class="u-td">{{$t('scanningconfirm.stateB')}}</u-td>
 				</u-tr>
 				<u-tr class="u-tr" v-for="(item,index) in alreadyExistsTyreNumbers" :key="index">
 					<u-td class="u-td">{{item}}</u-td>
-					<u-td class="u-td">库存中已存在</u-td>
+					<u-td class="u-td">{{$t('scanningconfirm.stateC')}}</u-td>
 				</u-tr>
 
 			</u-table>
 			<view style="width: 100%;height: 42rpx;margin-top: 30rpx;margin-bottom: 10rpx;text-align: center;">奖励合计</view>
 			<u-table border-color="#f2f2f2">
 				<u-tr class="u-tr">
-					<u-td class="u-td">奖励:{{rewardMoney}}元</u-td>
-					<u-td class="u-td">积分:{{rewardIntegral}}个</u-td>
+					<u-td class="u-td">{{$t('scanningconfirm.reward')}}:{{rewardMoney}}{{$t('scanningconfirm.yuan')}}</u-td>
+					<u-td class="u-td">{{$t('scanningconfirm.integral')}}:{{rewardIntegral}}{{$t('scanningconfirm.one')}}</u-td>
 				</u-tr>
 			</u-table>
 		</u-modal>
@@ -41,31 +41,31 @@
 			<view class="behind"></view>
 			<view class="content">
 				<view class="content-one">
-					<view>胎号</view>
-					<view>物料</view>
-					<view>预计奖励</view>
+					<view>{{$t('scanningconfirm.number_s')}}</view>
+					<view>{{$t('scanningconfirm.materiel')}}</view>
+					<view>{{$t('scanningconfirm.estimatereward')}}</view>
 				</view>
 				<view v-for="(item,index) in dalist" :key="index">
 					<view class="content-two">
 						<view>{{item.tireNumber}}</view>
 						<view>{{item.maktx}}</view>
-						<view>{{item.rewardMoney}}</view>
+						<view>{{item.rewardMoney}}{{$t('scanningconfirm.yuan')}}</view>
 					</view>
 				</view>
 
 				<view class="content-three">
 					<view>
-						合计:{{total}}元
+						{{$t('scanningconfirm.total')}}:{{total}}{{$t('scanningconfirm.yuan')}}
 					</view>
 				</view>
 			</view>
 			<view class="content-four">
-				注:所有的奖励均在达到签约任务后给予兑现。
+				{{$t('scanningconfirm.attention')}}
 			</view>
 		</view>
 		<u-toast ref="repeat" position="bottom" />
 		<view class="tail" @click="location">
-			扫码确认
+			{{$t('scanningconfirm.confirm')}}
 		</view>
 	</view>
 </template>
@@ -108,7 +108,7 @@
 					if (none == 'none') {
 						uni.showToast({
 							icon: 'none',
-							title: '无网络,请连接网络后再试~',
+							title: this.$t('unified.networkstate'),
 							position: "bottom"
 						})
 					}
@@ -140,7 +140,7 @@
 			},
 			getDatalist() {
 				uni.showLoading({
-					title: '加载中...'
+					title: this.$t('unified.Loading')
 				});
 				setTimeout(function() {
 					uni.hideLoading();
@@ -168,15 +168,14 @@
 						} else {
 							uni.showToast({
 								icon: 'none',
-								title: '出错啦~'
+								title: this.$t('unified.error')
 							})
 						}
 
 					}).catch(err => {
-						
 						uni.showToast({
 							icon: 'none',
-							title: '无网络,请连接网络后再试~'
+							title: this.$t('unified.networkstate')
 						})
 					}).finally(() => {
 						// Loading.close()
@@ -192,7 +191,7 @@
 						if (none == 'none') {
 							uni.showToast({
 								icon: 'none',
-								title: '无网络,请连接网络后再试~',
+								title: this.$t('unified.networkstate'),
 								position: "bottom"
 							})
 						}
@@ -233,7 +232,10 @@
 					
 					this.datalist = ''
 				}).catch(err => {
-					
+					uni.showToast({
+						icon: 'none',
+						title: this.$t('scanningconfirm.networkstate')
+					})
 				}).finally(() => {
 					// Loading.close()
 				})

+ 33 - 35
pages/home/scancode/index.vue

@@ -8,11 +8,11 @@
 		<view class="roll">
 			<view>
 				<view @click="show =! show">
-					<u-icon name="edit-pen"></u-icon>手动录入
+					<u-icon name="edit-pen"></u-icon>{{$t('scanenter.input')}}
 				</view>
 				<view class="lnput" v-if="show==false">
 					<input type="text" v-model="number_a" :placeholder="content" clearable="true" focus="true" />
-					<u-button type="primary" size="medium" @click="manualentry" throttle-time="2000">确认录入</u-button>
+					<u-button type="primary" size="medium" @click="manualentry" throttle-time="2000">{{$t('scanenter.confirmentry')}}</u-button>
 				</view>
 				<view class="" v-else>
 					<view>{{tips}}:{{number}}</view>
@@ -28,21 +28,21 @@
 			<view class="generate">
 				<u-table font-size="24" border-color="#ffffff" bg-color="#fff">
 					<u-tr class="u-tr">
-						<u-th class="u-th" width="30%">胎号</u-th>
-						<u-th class="u-th">规格</u-th>
-						<u-th class="u-th" width="15%">操作</u-th>
+						<u-th class="u-th" width="30%">{{$t('scanenter.number')}}</u-th>
+						<u-th class="u-th">{{$t('scanenter.Specifications')}}</u-th>
+						<u-th class="u-th" width="15%">{{$t('scanenter.operation')}}</u-th>
 					</u-tr>
 					<u-tr class="u-tr" v-for="(item, index) in lisi" :key="index">
 						<u-td class="u-td" width="30%">{{item.tireNumber}}</u-td>
 						<u-td class="u-td">{{item.maktx}}</u-td>
-						<u-td class="u-td" width="15%"><text @click="confirm(index)" style="color: #FA3534;">删除</text></u-td>
+						<u-td class="u-td" width="15%"><text @click="confirm(index)" style="color: #FA3534;">{{$t('scanenter.Delete')}}</text></u-td>
 					</u-tr>
 				</u-table>
-				<u-divider color="rgb(144, 147, 153)" half-width="200" border-color="rgb(144, 147, 153)" margin-top="40">没有更多啦</u-divider>
+				<u-divider color="rgb(144, 147, 153)" half-width="200" border-color="rgb(144, 147, 153)" margin-top="40">{{$t('scanenter.slide')}}</u-divider>
 			</view>
 		</view>
 		<view class="determine">
-			<u-button type="primary" shape="circle" @click="scancodein">扫码确认</u-button>
+			<u-button type="primary" shape="circle" @click="scancodein">{{$t('scanenter.confirm')}}</u-button>
 		</view>
 		<view>
 		</view>
@@ -62,13 +62,11 @@
 	export default {
 		data() {
 			return {
-				tips: '提示',
-				number: '请扫码入库',
-				nbTitle: '扫码标题',
-				content: '请输入轮胎胎号',
+				tips: this.$t('scanenter.tips'),
+				number: this.$t('scanenter.tips_a'),
+				content: this.$t('scanenter.pleaseenter_s'),
 				number_s: '',
 				number_a: '',
-				// regular: '轮胎非正规是否入库',
 				lisi: [],
 				background: {
 					backgroundColor: '#0094fe',
@@ -106,7 +104,7 @@
 					if (none == 'none') {
 						uni.showToast({
 							icon: 'none',
-							title: '无网络,请连接网络后再试~',
+							title: this.$t('unified.networkstate'),
 							position: "bottom"
 						})
 					}
@@ -144,7 +142,7 @@
 					fail: function(e) {
 						uni.showToast({
 							icon: 'none',
-							title: '获取地址失败, 请检查是否开启定位权限~'
+							title: this.$t('scanenter.locationstate')
 						})
 					}
 				})
@@ -176,7 +174,7 @@
 							if (res.data.code != 0) {
 								uni.showToast({
 									icon: 'none',
-									title: '获取定位失败,请稍后再试~'
+									title: this.$t('scanenter.seekfailed')
 								})
 							} else {
 								this_.baidu = res.data.data.result
@@ -186,7 +184,7 @@
 
 							uni.showToast({
 								icon: 'none',
-								title: '网络繁忙请稍后再试~'
+								title: this.$t('scanenter.networkstate_s')
 							})
 						}).finally(() => {
 							// Loading.close()
@@ -205,7 +203,7 @@
 					if (this.degree == undefined) {
 						uni.showToast({
 							icon: 'none',
-							title: '获取地址失败, 请检查是否开启定位权限~~',
+							title: this.$t('scanenter.locationstate'),
 							position: "bottom"
 						})
 						return
@@ -225,7 +223,7 @@
 								}
 							}).then(res => {
 
-								this.tips = "胎号"
+								this.tips = this.$t('scanenter.number')
 
 								switch (res.data.code) {
 									case 513:
@@ -285,7 +283,7 @@
 
 													let err = {
 														"data": {
-															"msg": "请勿重复录入",
+															"msg": this.$t('scanenter.repeat'),
 														}
 													}
 
@@ -366,11 +364,11 @@
 								// }
 
 							}).catch(err => {
-								// this.$refs.repeat.show({
-								// 	title: "网络繁忙,请稍后再试",
-								// 	type: 'default',
-								// 	position: 'bottom'
-								// })
+								this.$refs.repeat.show({
+									title: this.$t('scanenter.networkstate_s'),
+									type: 'default',
+									position: 'bottom'
+								})
 
 							})
 							.finally(() => {
@@ -379,7 +377,7 @@
 					}
 				} else {
 					this.$refs.repeat.show({
-						title: '请输入胎号',
+						title: this.$t('scanenter.pleaseenter'),
 						type: 'default',
 						position: 'bottom'
 					})
@@ -405,7 +403,7 @@
 			},
 			container() {
 				this.$refs.repeat.show({
-					title: '录入成功',
+					title: this.$t('scanenter.inputsuccess'),
 					type: 'success',
 					position: 'bottom'
 				})
@@ -451,7 +449,7 @@
 						if (none == 'none') {
 							uni.showToast({
 								icon: 'none',
-								title: '无网络,请连接网络后再试',
+								title: this.$t('unified.networkstate'),
 								position: "bottom"
 							})
 							const innerAudioContext = uni.createInnerAudioContext();
@@ -471,12 +469,12 @@
 				this.number = val
 				this.number_s = val
 				if (val.length != 0) {
-					this.tips = "胎号"
+					this.tips = this.$t('scanenter.number')
 				}
 				if (this.degree == undefined) {
 					uni.showToast({
 						icon: 'none',
-						title: '正在转换坐标,请稍候~',
+						title: this.$t('scanenter.transformation'),
 						position: "bottom"
 					})
 					return
@@ -496,7 +494,7 @@
 							}
 						}).then(res => {
 
-							this.tips = "胎号"
+							this.tips = this.$t('scanenter.number')
 
 							switch (res.data.code) {
 								case 513:
@@ -556,7 +554,7 @@
 
 												let err = {
 													"data": {
-														"msg": "请勿重复录入",
+														"msg": this.$t('scanenter.repeat'),
 													}
 												}
 
@@ -638,7 +636,7 @@
 
 						}).catch(err => {
 							this.$refs.repeat.show({
-								title: "网络繁忙,请稍后再试",
+								title: this.$t('scanenter.networkstate_s'),
 								type: 'default',
 								position: 'bottom'
 							})
@@ -683,7 +681,7 @@
 
 				});
 				this.$refs.repeat.show({
-					title: '扫码成功',
+					title: this.$t('scanenter.scansuccess'),
 					type: 'success',
 					position: 'bottom'
 				})
@@ -695,7 +693,7 @@
 			scancodein() {
 				if (this.lisi == '') {
 					this.$refs.repeat.show({
-						title: '请扫码或录入后再点击!',
+						title: this.$t('scanenter.nodata'),
 						type: 'default',
 						position: 'bottom'
 					})

+ 32 - 57
pages/home/scancode/scancodeout.vue

@@ -8,11 +8,11 @@
 		<view class="roll">
 			<view>
 				<view @click="show =! show">
-					<u-icon name="edit-pen"></u-icon>手动录入
+					<u-icon name="edit-pen"></u-icon>{{$t('scanenter.input')}}
 				</view>
 				<view class="lnput" v-if="show==false">
 					<input type="text" v-model="number_a" :placeholder="content" clearable="true" focus="true" />
-					<u-button type="primary" size="medium" @click="manualentry" throttle-time="2000">确认录入</u-button>
+					<u-button type="primary" size="medium" @click="manualentry" throttle-time="2000">{{$t('scanenter.confirmentry')}}</u-button>
 				</view>
 				<view class="" v-else>
 					<view>{{tips}}:{{number}}</view>
@@ -28,47 +28,25 @@
 			<view class="generate">
 				<u-table font-size="24" border-color="#ffffff" bg-color="#fff">
 					<u-tr class="u-tr">
-						<u-th class="u-th" width="30%">胎号</u-th>
-						<u-th class="u-th">规格</u-th>
-						<u-th class="u-th" width="15%">操作</u-th>
+						<u-th class="u-th" width="30%">{{$t('scanenter.number')}}</u-th>
+						<u-th class="u-th">{{$t('scanenter.Specifications')}}</u-th>
+						<u-th class="u-th" width="15%">{{$t('scanenter.operation')}}</u-th>
 					</u-tr>
 					<u-tr class="u-tr" v-for="(item, index) in lisi" :key="index">
 						<u-td class="u-td" width="30%">{{item.tireNumber}}</u-td>
 						<u-td class="u-td">{{item.maktx}}</u-td>
-						<u-td class="u-td" width="15%"><text @click="confirm(index)" style="color: #FA3534;">删除</text></u-td>
+						<u-td class="u-td" width="15%"><text @click="confirm(index)" style="color: #FA3534;">{{$t('scanenter.Delete')}}</text></u-td>
 					</u-tr>
 				</u-table>
-				<u-divider color="rgb(144, 147, 153)" half-width="200" border-color="rgb(144, 147, 153)" margin-top="40">没有更多啦</u-divider>
+				<u-divider color="rgb(144, 147, 153)" half-width="200" border-color="rgb(144, 147, 153)" margin-top="40">{{$t('scanenter.slide')}}</u-divider>
 			</view>
 		</view>
 		<view class="determine">
-			<u-button type="primary" shape="circle" @click="scancodein">扫码确认</u-button>
+			<u-button type="primary" shape="circle" @click="scancodein">{{$t('scanenter.confirm')}}</u-button>
 		</view>
 		<view>
 		</view>
 		<u-toast ref="repeat" position="bottom" />
-		<u-popup mode="bottom" v-model="show_s" :mask-close-able="false" :safe-area-inset-bottom="true">
-			<view class="confrim-btn">
-				<u-button @click="show_s = false;" style="float: left;border: none;" :hair-line="false" :plain="false">取消</u-button>
-				<u-button @click="container" style="float: right;border: none;" :hair-line="false" :plain="false">确定</u-button>
-			</view>
-			<view class="content_s">
-				<scroll-view scroll-y="true" style="height: 200rpx;">
-					{{regular}}
-				</scroll-view>
-			</view>
-		</u-popup>
-		<u-popup mode="bottom" v-model="show_d" :mask-close-able="false" :safe-area-inset-bottom="true">
-			<view class="confrim-btn">
-				<u-button @click="show_d = false;" style="float: left;border: none;" :hair-line="false" :plain="false">取消</u-button>
-				<u-button @click="container_s" style="float: right;border: none;" :hair-line="false" :plain="false">确定</u-button>
-			</view>
-			<view class="content_s">
-				<scroll-view scroll-y="true" style="height: 200rpx;">
-					{{regular}}
-				</scroll-view>
-			</view>
-		</u-popup>
 	</view>
 </template>
 
@@ -84,13 +62,11 @@
 	export default {
 		data() {
 			return {
-				tips: '提示',
-				number: '请扫码出库',
-				nbTitle: '扫码标题',
-				content: '请输入轮胎胎号',
+				tips: this.$t('scanenter.tips'),
+				number: this.$t('scanenter.tips_a'),
+				content: this.$t('scanenter.pleaseenter_s'),
 				number_s: '',
 				number_a: '',
-				regular: '轮胎非正规是否出库',
 				lisi: [],
 				background: {
 					backgroundColor: '#0094fe',
@@ -103,7 +79,6 @@
 				point: '',
 				coord: '',
 				address: '',
-				addd: ''
 			}
 		},
 		onBackPress(options) {
@@ -130,7 +105,7 @@
 					if (none == 'none') {
 						uni.showToast({
 							icon: 'none',
-							title: '无网络,请连接网络后再试~',
+							title: this.$t('unified.networkstate'),
 							position: "bottom"
 						})
 					}
@@ -169,7 +144,7 @@
 					fail: function(e) {
 						uni.showToast({
 							icon: 'none',
-							title: '获取地址失败, 请检查是否开启定位权限~~'
+							title: this.$t('scanenter.locationstate')
 						})
 					}
 				})
@@ -201,7 +176,7 @@
 							if (res.data.code != 0) {
 								uni.showToast({
 									icon: 'none',
-									title: '获取定位失败,请稍后再试~'
+									title: this.$t('scanenter.seekfailed')
 								})
 							} else {
 								this_.baidu = res.data.data.result
@@ -211,7 +186,7 @@
 							
 							uni.showToast({
 								icon: 'none',
-								title: '网络繁忙请稍后再试~'
+								title: this.$t('scanenter.networkstate_s')
 							})
 						}).finally(() => {
 							// Loading.close()
@@ -229,7 +204,7 @@
 					if (this.degree == undefined) {
 						uni.showToast({
 							icon: 'none',
-							title: '正在转换坐标,请稍候~',
+							title: this.$t('scanenter.locationstate'),
 							position: "bottom"
 						})
 						return
@@ -307,7 +282,7 @@
 									
 													let err = {
 														"data": {
-															"msg": "请勿重复录入",
+															"msg": this.$t('scanenter.repeat'),
 														}
 													}
 									
@@ -392,11 +367,11 @@
 								// }
 								
 							}).catch(err => {
-								// this.$refs.repeat.show({
-								// 	title: "网络繁忙,请稍后再试",
-								// 	type: 'default',
-								// 	position: 'bottom'
-								// })
+								this.$refs.repeat.show({
+									title: this.$t('scanenter.networkstate_s'),
+									type: 'default',
+									position: 'bottom'
+								})
 								
 							})
 							.finally(() => {
@@ -405,7 +380,7 @@
 					}
 				} else {
 					this.$refs.repeat.show({
-						title: '请输入胎号',
+						title: this.$t('scanenter.pleaseenter'),
 						type: 'default',
 						position: 'bottom'
 					})
@@ -431,7 +406,7 @@
 			},
 			container() {
 				this.$refs.repeat.show({
-					title: '录入成功',
+					title: this.$t('scanenter.inputsuccess'),
 					type: 'success',
 					position: 'bottom'
 				})
@@ -477,7 +452,7 @@
 						if (none == 'none') {
 							uni.showToast({
 								icon: 'none',
-								title: '无网络,请连接网络后再试',
+								title: this.$t('unified.networkstate'),
 								position: "bottom"
 							})
 							const innerAudioContext = uni.createInnerAudioContext();
@@ -499,7 +474,7 @@
 				if (this.degree == undefined) {
 					uni.showToast({
 						icon: 'none',
-						title: '获取地址失败, 请检查是否开启定位权限~~',
+						title: this.$t('scanenter.transformation'),
 						position: "bottom"
 					})
 					return
@@ -519,7 +494,7 @@
 							}
 						}).then(res => {
 							this.res_s = res
-							this.tips = "胎号"
+							this.tips = this.$t('scanenter.number')
 							switch (res.data.code) {
 								case 513:
 									{
@@ -578,7 +553,7 @@
 								
 												let err = {
 													"data": {
-														"msg": "请勿重复录入",
+														"msg": this.$t('scanenter.repeat'),
 													}
 												}
 								
@@ -670,13 +645,13 @@
 						}).catch(err => {
 							if (err.code == 400) { //谁给我删了......
 								this.$refs.repeat.show({
-									title: "无网络",
+									title: this.$t('scanenter.networkstate_s'),
 									type: 'default',
 									position: 'bottom'
 								})
 							} else {
 								this.$refs.repeat.show({
-									title: "请重新扫码",
+									title: this.$t('scanenter.repeatscan'),
 									type: 'default',
 									position: 'bottom'
 								})
@@ -723,7 +698,7 @@
 					
 				});
 				this.$refs.repeat.show({
-					title: '扫码成功',
+					title: this.$t('scanenter.scansuccess'),
 					type: 'success',
 					position: 'bottom'
 				})
@@ -736,7 +711,7 @@
 				
 				if (this.lisi == '') {
 					this.$refs.repeat.show({
-						title: '请扫码或录入后再点击!',
+						title: this.$t('scanenter.nodata'),
 						type: 'default',
 						position: 'bottom'
 					})