|  | @@ -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'
 | 
	
		
			
				|  |  |  					})
 |