国际化
This commit is contained in:
@@ -5,48 +5,48 @@
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">仓库</span>
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-7'">
|
||||
<span class="filter_label">{{$t('filter.ck')}}</span>
|
||||
</view>
|
||||
<view class="zd-col-24 filter_select">
|
||||
<view class="filter_select" :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'">
|
||||
<input type="text" class="filter_input" v-model="val1" @tap="toJump">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="JSON.stringify(currentData) !== '{}'" class="zd_wrapper">
|
||||
<view class="zd-row border-bottom filter_input_disabled">
|
||||
<view class="zd-col-7"><span class="filter_label">库位</span></view>
|
||||
<view class="zd-col-17"><span class="filter_input">{{currentData.struct_code}}</span></view>
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-7'"><span class="filter_label">{{$t('filter.kwbm')}}</span></view>
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'"><span class="filter_input">{{currentData.struct_code}}</span></view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom filter_input_disabled">
|
||||
<view class="zd-col-7"><span class="filter_label">载具编码</span></view>
|
||||
<view class="zd-col-17"><span class="filter_input">{{currentData.vehicle_code}}</span></view>
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-7'"><span class="filter_label">{{$t('filter.zjbm')}}</span></view>
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'"><span class="filter_input">{{currentData.vehicle_code}}</span></view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom filter_input_disabled">
|
||||
<view class="zd-col-7"><span class="filter_label">物料编码</span></view>
|
||||
<view class="zd-col-17"><span class="filter_input">{{currentData.material_code}}</span></view>
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-7'"><span class="filter_label">{{$t('filter.wlbm')}}</span></view>
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'"><span class="filter_input">{{currentData.material_code}}</span></view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom filter_input_disabled">
|
||||
<view class="zd-col-7"><span class="filter_label">批号</span></view>
|
||||
<view class="zd-col-17"><span class="filter_input">{{currentData.pcsn}}</span></view>
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-7'"><span class="filter_label">{{$t('filter.pcsn')}}</span></view>
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'"><span class="filter_input">{{currentData.pcsn}}</span></view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-7"><span class="filter_label">车间</span></view>
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-7'"><span class="filter_label">{{$t('filter.cj')}}</span></view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<uni-data-select v-model="currentData.product_area" :localdata="options1"></uni-data-select>
|
||||
<uni-data-select v-model="currentData.product_area" :placeholder="$t('uni.dataSelect.placeholder')" :emptyTips="$t('uni.dataSelect.emptyTips')" :localdata="options1"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-7"><span class="filter_label">出库库存</span></view>
|
||||
<view class="zd-col-17">
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-7'"><span class="filter_label">{{$t('filter.ckkc')}}</span></view>
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'">
|
||||
<input type="number" v-model="currentData.qty" class="filter_input">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap="toEmpty">清空</button>
|
||||
<button class="zd-col-16 button-primary" :class="{'button-info': JSON.stringify(currentData) === '{}'}" :disabled="disabled" @tap="_outStorageMaterConfirm">出库确认</button>
|
||||
<button class="zd-col-6 button-default" @tap="toEmpty">{{$t('btn.cancle')}}</button>
|
||||
<button class="zd-col-16 button-primary" :class="{'button-info': JSON.stringify(currentData) === '{}'}" :disabled="disabled" @tap="_outStorageMaterConfirm">{{$t('btn.ckqr')}}</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -65,7 +65,7 @@
|
||||
title: '',
|
||||
val1: '',
|
||||
currentData: {},
|
||||
options1: [{value: 'A1', text: 'A1车间'}, {value: 'A2', text: 'A2车间'}, {value: 'A3', text: 'A3车间'}],
|
||||
options1: [{value: 'A1', text: 'A1' + this.$t('text.cj')}, {value: 'A2', text: 'A2' + this.$t('text.cj')}, {value: 'A3', text: 'A3' + this.$t('text.cj')}],
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
@@ -76,9 +76,9 @@
|
||||
if (this.$store.getters.publicObj !== '') {
|
||||
this.currentData = this.$store.getters.publicObj
|
||||
if (this.currentData.stor_code === 'FStockPallet') {
|
||||
this.val1 = '托盘库'
|
||||
this.val1 = this.$t('text.tpk')
|
||||
} else if (this.currentData.stor_code === 'FStockId') {
|
||||
this.val1 = '料箱库'
|
||||
this.val1 = this.$t('text.lxk')
|
||||
}
|
||||
this.$store.dispatch('setPublicObj', '')
|
||||
}
|
||||
@@ -86,7 +86,7 @@
|
||||
methods: {
|
||||
toJump () {
|
||||
uni.navigateTo({
|
||||
url: '/pages/outbound/stock-list?title=库存列表'
|
||||
url: '/pages/outbound/stock-list?title=' + this.$t('nav.kclb')
|
||||
})
|
||||
},
|
||||
async _outStorageMaterConfirm () {
|
||||
@@ -120,10 +120,5 @@
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
@import '../../common/style/mixin.styl';
|
||||
.button-primary, .button-default
|
||||
_fj(center)
|
||||
font-size 26rpx
|
||||
height 88rpx
|
||||
line-height 30rpx
|
||||
// @import '../../common/style/mixin.styl';
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user