国际化
This commit is contained in:
@@ -5,83 +5,83 @@
|
||||
<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.wlbm')}}</span>
|
||||
</view>
|
||||
<view class="zd-col-24">
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'">
|
||||
<input type="text" class="filter_input" v-model="currentData.material_code" @tap="toJump">
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label filter_input_disabled">物料名称</span>
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-7'">
|
||||
<span class="filter_label filter_input_disabled">{{$t('filter.wlmc')}}</span>
|
||||
</view>
|
||||
<view class="zd-col-24">
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'">
|
||||
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_name" disabled>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label filter_input_disabled">物料规格</span>
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-7'">
|
||||
<span class="filter_label filter_input_disabled">{{$t('filter.wlgg')}}</span>
|
||||
</view>
|
||||
<view class="zd-col-24">
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'">
|
||||
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_spec" disabled>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label filter_input_disabled">单位</span>
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-7'">
|
||||
<span class="filter_label filter_input_disabled">{{$t('filter.unit')}}</span>
|
||||
</view>
|
||||
<view class="zd-col-24">
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'">
|
||||
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.unit_id" disabled>
|
||||
</view>
|
||||
</view>
|
||||
<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.wldz')}}</span>
|
||||
</view>
|
||||
<view class="zd-col-24">
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'">
|
||||
<input type="number" class="filter_input" v-model="currentData.single_weight">
|
||||
</view>
|
||||
</view>
|
||||
<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.wlpc')}}</span>
|
||||
</view>
|
||||
<view class="zd-col-24">
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'">
|
||||
<input type="text" class="filter_input" v-model="currentData.pcsn">
|
||||
</view>
|
||||
</view>
|
||||
<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.wlsl')}}</span>
|
||||
</view>
|
||||
<view class="zd-col-24">
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'">
|
||||
<input type="number" class="filter_input" v-model="currentData.qty">
|
||||
</view>
|
||||
</view>
|
||||
<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.zjbm')}}</span>
|
||||
</view>
|
||||
<view class="zd-col-24">
|
||||
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'">
|
||||
<search-box v-model="currentData.vehicle_code"/>
|
||||
</view>
|
||||
</view>
|
||||
<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.ckbm')}}</span>
|
||||
</view>
|
||||
<view class="zd-col-24 filter_select">
|
||||
<view class="filter_select" :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'">
|
||||
<!-- <search-box v-model="currentData.stor_code"/> -->
|
||||
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
||||
<uni-data-select v-model="index" :placeholder="$t('uni.dataSelect.placeholder')" :emptyTips="$t('uni.dataSelect.emptyTips')" :localdata="options" @change="selectChange"></uni-data-select>
|
||||
</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="_groupMaterIn">组盘确认</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="_groupMaterIn">{{$t('btn.zpqr')}}</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -101,7 +101,8 @@
|
||||
currentData: {},
|
||||
options: [],
|
||||
index: '',
|
||||
disabled: false
|
||||
disabled: false,
|
||||
locale: this.$i18n.locale
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
@@ -136,7 +137,7 @@
|
||||
},
|
||||
toJump () {
|
||||
uni.navigateTo({
|
||||
url: '/pages/common/mater-list?title=查询物料'
|
||||
url: '/pages/common/mater-list?title=' + this.$t('nav.cxwl')
|
||||
})
|
||||
},
|
||||
toEmpty () {
|
||||
|
||||
Reference in New Issue
Block a user