|
@@ -2,38 +2,38 @@
|
|
|
<!-- 入库明细页面 -->
|
|
|
<view class="header">
|
|
|
<view class="header-one">
|
|
|
- 库存总量:<text>{{total}}</text>
|
|
|
+ {{$t('scancodeenter.total')}}:<text>{{total}}</text>
|
|
|
</view>
|
|
|
<view style="width: 100%;margin-top: 60rpx;">
|
|
|
<!-- <u-tabs style="width: 350rpx;float: left;margin-top: 0;" :list="list" :is-scroll="false" :current="current" @change="change"
|
|
|
active-color="#fff" inactive-color="#ffffff" bg-color="#ffffff00"></u-tabs> -->
|
|
|
<view style="width: 340rpx;height: 80rpx;text-align: center;padding-top: 25rpx;padding-left: 20rpx;float: left;margin-top: 0;margin-left: 30rpx;">
|
|
|
<view style="float: left;">
|
|
|
- <text @tap="$u.throttle(whole, 500)">全部</text>
|
|
|
+ <text @tap="$u.throttle(whole, 500)">{{$t('scancodeenter.tabs_a')}}</text>
|
|
|
<view v-if="bottoma == true" style="width: 100%;height: 1rpx;background-color: #FFFFFF;border-radius: 10rpx;"></view>
|
|
|
<view v-else></view>
|
|
|
</view>
|
|
|
<view style="float: left;margin-left: 70rpx;">
|
|
|
- <text @click="brand">品牌</text>
|
|
|
+ <text @click="brand">{{$t('scancodeenter.tabs_b')}}</text>
|
|
|
<view v-if="bottomb == true" style="width: 100%;height: 1rpx;background-color: #FFFFFF;border-radius: 10rpx;"></view>
|
|
|
<view v-else></view>
|
|
|
</view>
|
|
|
<view style="float: left;margin-left: 70rpx;">
|
|
|
- <text @click="time_s">时间</text>
|
|
|
+ <text @click="time_s">{{$t('scancodeenter.tabs_c')}}</text>
|
|
|
<view v-if="bottomc == true" style="width: 100%;height: 1rpx;background-color: #FFFFFF;border-radius: 10rpx;"></view>
|
|
|
<view v-else></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <u-search class="inputbox" placeholder="请输入胎号或规格" @change="inputbox" v-model="keyword" :show-action="false"></u-search>
|
|
|
+ <u-search class="inputbox" :placeholder="$t('scancodeenter.tips')" @change="inputbox" v-model="keyword" :show-action="false"></u-search>
|
|
|
</view>
|
|
|
<view class="nothing" v-if="judge==true">
|
|
|
- <u-empty text="暂无数据"></u-empty>
|
|
|
+ <u-empty :text="$t('scancodeenter.nodata')"></u-empty>
|
|
|
</view>
|
|
|
<view style="width: 100%;margin-top: 160rpx;">
|
|
|
<view class="block" v-for="(item, index) in itemList" :key="index">
|
|
|
<view class="title">
|
|
|
<view>|</view>
|
|
|
- <view>单号:{{item.scanNum}} </view>
|
|
|
+ <view>{{$t('scancodeenter.number')}}:{{item.scanNum}} </view>
|
|
|
<view>{{item.scanTime.slice(0,10)}}</view>
|
|
|
</view>
|
|
|
<u-line color="#f4f4f4"></u-line>
|
|
@@ -45,25 +45,25 @@
|
|
|
{{item2.tireModel}}
|
|
|
</view>
|
|
|
<view class="">
|
|
|
- {{item2.tyreCount}}条
|
|
|
+ {{item2.tyreCount}}{{$t('scancodeenter.strip')}}
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="details" v-for="(item3,index) in item2.matnrMsgVOS" :key="index">
|
|
|
<view class="u-font-25">
|
|
|
- <view>物料描述</view>
|
|
|
+ <view>{{$t('scancodeenter.describe')}}</view>
|
|
|
<view>{{item3.maktx}}</view>
|
|
|
</view>
|
|
|
<view class="u-font-25">
|
|
|
- <view>轮胎胎号</view>
|
|
|
+ <view>{{$t('scancodeenter.number_d')}}</view>
|
|
|
<view>{{item3.tyreNum}}</view>
|
|
|
</view>
|
|
|
<view class="u-font-25">
|
|
|
- <view>参加活动</view>
|
|
|
- <view v-if="item3.satisfyActivity == 1">参加</view>
|
|
|
- <view v-else>不参加</view>
|
|
|
+ <view>{{$t('scancodeenter.activity')}}</view>
|
|
|
+ <view v-if="item3.satisfyActivity == 1">{{$t('scancodeenter.participation')}}</view>
|
|
|
+ <view v-else>{{$t('scancodeenter.noparticipation')}}</view>
|
|
|
</view>
|
|
|
<view class="u-font-25">
|
|
|
- <view>创建时间</view>
|
|
|
+ <view>{{$t('scancodeenter.creationtime')}}</view>
|
|
|
<view>{{item3.createDate}}</view>
|
|
|
</view>
|
|
|
<u-line color="#f4f4f4"></u-line>
|
|
@@ -76,7 +76,7 @@
|
|
|
<u-loadmore :status="status" :icon-type="iconType" :load-text="loadText" />
|
|
|
</view>
|
|
|
<u-action-sheet :list="list_a" @click="click" v-model="show" :mask-close-able="false" @close="close"></u-action-sheet>
|
|
|
- <u-calendar v-model="show_d" :toolTip="$t('scancodeenter.daterange')" :mode="mode" @change="time" :mask-close-able="false" start-text="开始" end-text="结束"></u-calendar>
|
|
|
+ <u-calendar v-model="show_d" :toolTip="$t('scancodeenter.daterange')" :mode="mode" @change="time" :mask-close-able="false" :start-text="$t('scancodeenter.start')" :end-text="$t('scancodeenter.end')"></u-calendar>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -96,18 +96,11 @@
|
|
|
show_d: false,
|
|
|
mode: 'range',
|
|
|
loadText: {
|
|
|
- loadmore: '无数据',
|
|
|
- loading: '努力加载中',
|
|
|
- nomore: '没有更多啦'
|
|
|
+ loadmore: this.$t('scancodeenter.loadmore'),
|
|
|
+ loading: this.$t('scancodeenter.loading'),
|
|
|
+ nomore: this.$t('scancodeenter.nomore')
|
|
|
},
|
|
|
style: '.5rpx solid #FFFFFF',
|
|
|
- list: [{
|
|
|
- name: '全部'
|
|
|
- }, {
|
|
|
- name: '品牌'
|
|
|
- }, {
|
|
|
- name: '时间'
|
|
|
- }],
|
|
|
brandCode: null,
|
|
|
list_a: [],
|
|
|
current: 0,
|
|
@@ -238,7 +231,7 @@
|
|
|
}).catch(err => {
|
|
|
uni.showToast({
|
|
|
icon: 'none',
|
|
|
- title: '网络繁忙,请稍后再试~',
|
|
|
+ title: this.$t('scancodeenter.networkstate'),
|
|
|
position: "bottom"
|
|
|
})
|
|
|
}).finally(() => {
|
|
@@ -306,7 +299,7 @@
|
|
|
//
|
|
|
//
|
|
|
uni.showLoading({
|
|
|
- title: '加载中...'
|
|
|
+ title: this.$t('scancodeenter.Loading')
|
|
|
});
|
|
|
setTimeout(function() {
|
|
|
uni.hideLoading();
|
|
@@ -351,7 +344,7 @@
|
|
|
//
|
|
|
uni.showToast({
|
|
|
icon: 'none',
|
|
|
- title: '网络繁忙,请稍后再试~',
|
|
|
+ title: this.$t('scancodeenter.networkstate'),
|
|
|
position: "bottom"
|
|
|
})
|
|
|
}).finally(() => {
|