国际化

This commit is contained in:
2025-09-12 13:13:29 +08:00
parent caef2ecc53
commit 2ebaeac1e9
18 changed files with 533 additions and 331 deletions

View File

@@ -4,68 +4,46 @@
<nav-bar :title="title"></nav-bar>
<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>
<view class="zd-col-17">
<search-box
v-model="val2"
@handleChange="handleChange"
/>
</view>
<view class="is-required">
<view class="filter_label">{{$t('label.StartPosition')}}</view>
<search-box
v-model="val2"
@handleChange="handleChange"
/>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label">载具编码</span>
</view>
<view class="zd-col-12">
<view class="is-required">
<view class="filter_label">{{$t('label.CarrierCode')}}</view>
</view>
<view class="zd-row">
<view class="zd-col-18">
<search-box
v-model="val1"
@handleChange="handleChange"
/>
</view>
<button class="mini-btn" type="primary" size="mini" style="margin-right: 0" @tap="_getVehicleMaterial(val1)">查询</button>
<button class="mini-btn" type="primary" size="mini" style="margin-right: 0" @tap="_getVehicleMaterial(val1)">{{$t('button.search')}}</button>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label">入库库区</span>
</view>
<view class="zd-col-24 filter_select">
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
<view class="is-required">
<view class="filter_label">{{$t('label.WarehouseArea')}}</view>
<view class="filter_select">
<uni-data-select :placeholder="$t('utils.selectPlaceholder')" :emptyTips="$t('utils.selectEmptyTips')" v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label filter_input_disabled">物料名称</span>
</view>
<view class="zd-col-17">
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_name" disabled>
</view>
<view>
<view class="filter_label">{{$t('label.MaterialName')}}</view>
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_name" disabled>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label filter_input_disabled">物料规格</span>
</view>
<view class="zd-col-17">
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_spec" disabled>
</view>
<view>
<view class="filter_label">{{$t('label.MaterialSpecification')}}</view>
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_spec" disabled>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label filter_input_disabled">物料编号</span>
</view>
<view class="zd-col-17">
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_code" disabled>
</view>
<view>
<view class="filter_label">{{$t('label.MaterialCode')}}</view>
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_code" disabled>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label filter_input_disabled">物料数量</span>
</view>
<view class="zd-col-17">
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.qty" disabled>
</view>
<view>
<view class="filter_label">{{$t('label.MaterialQuantity')}}</view>
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.qty" disabled>
</view>
</view>
<view v-if="dataList.length" class="zd_wrapper grid-wraper">
@@ -73,8 +51,8 @@
<table>
<thead>
<tr>
<th width="60%">料框号</th>
<th width="40%">数量</th>
<th width="60%">{{$t('th.MaterialBoxNumber')}}</th>
<th width="40%">{{$t('th.Quantity')}}</th>
</tr>
</thead>
<tbody>
@@ -88,8 +66,8 @@
</view>
</view>
<view class="zd-row submit-bar">
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
<button class="zd-col-16 button-primary" :class="{'button-info': !val1 || !val2 || !index}" :disabled="disabled" @tap="_confirmIn">确认</button>
<button class="zd-col-6 button-default" @tap="clearUp">{{$t('button.clear')}}</button>
<button class="zd-col-16 button-primary" :class="{'button-info': !val1 || !val2 || !index}" :disabled="disabled" @tap="_confirmIn">{{$t('button.confirm')}}</button>
</view>
</view>
</template>