中英韩

This commit is contained in:
2024-08-01 12:21:21 +08:00
parent ea7996e0a7
commit f738d12f9e
29 changed files with 803 additions and 2314 deletions

View File

@@ -11,7 +11,7 @@
<view class="zd_wrapper">
<view class="zd-row mgb20 border-bottom">
<uni-icons type="arrow-up" size="18" color="#ff6a00"></uni-icons>
<view class="zd-col-6 filter_label">任务起点</view>
<view class="zd-col-6 filter_label">{{$t('call.sp')}}</view>
<view class="zd-col-18 relative">
<input type="text" class="filter_input" v-model="sCode" @input="matchData(1)">
<view v-if="filterNo ===1 && filteredData.length" class="filter_select_wraper">
@@ -21,7 +21,7 @@
</view>
<view class="zd-row">
<uni-icons type="arrow-down" size="18" color="#ff6a00"></uni-icons>
<view class="zd-col-6 filter_label">任务终点</view>
<view class="zd-col-6 filter_label">{{$t('call.ep')}}</view>
<view class="zd-col-18 relative">
<input type="text" class="filter_input" v-model="nCode" @input="matchData(2)">
<view v-if="filterNo ===2 && filteredData.length" class="filter_select_wraper">
@@ -33,13 +33,17 @@
<view class="zd_wrapper">
<view class="allwidth" v-for="e in areaArr" :key="e.region_code">
<view class="zd-row" @click="getPonit(e)">
<view class="title_locate">{{e.region_name}}</view>
<view v-if="$i18n.locale === 'en'" class="title_locate">{{e.en_region_name}}</view>
<view v-if="$i18n.locale === 'ko'" class="title_locate">{{e.ko_region_name}}</view>
<view v-if="$i18n.locale === 'zh-Hans'" class="title_locate">{{e.region_name}}</view>
<uni-icons :type="pkId === e.region_code ? 'up' : 'down'" size="16"></uni-icons>
</view>
<view v-if="pkId === e.region_code" class="zd-row flexstart flexwrap">
<view class="zd-col-12 site_item" v-for="(el, index) in pointArr" :key="index">
<view class="site_item_box" :class="{'isChecked': el.device_code === sCode || el.device_code === nCode}" :id="'site_item_box_'+ index" @click="setcode(el,index)">
<view class="point_title_1">{{el.device_name}}</view>
<view v-if="$i18n.locale === 'en'" class="point_title_1">{{el.en_device_name}}</view>
<view v-if="$i18n.locale === 'ko'" class="point_title_1">{{el.ko_device_name}}</view>
<view v-if="$i18n.locale === 'zh-Hans'" class="point_title_1">{{el.device_name}}</view>
<view class="point_title_2">{{el.device_code}}</view>
</view>
</view>
@@ -48,18 +52,16 @@
</view>
</view>
<view class="zd-row submit-bar">
<button class="zd-col-4 button-default" @click="cancle">清空</button>
<button class="zd-col-6 button-primary" :class="{'button-info': sCode === '' || nCode === ''}" :disabled="disabled" @tap="_callTask('1')">生箔换轴</button>
<button class="zd-col-6 button-primary" :class="{'button-info': sCode === '' || nCode === ''}" :disabled="disabled" @tap="_callTask('2')">分切换轴</button>
<button class="zd-col-6 button-primary" :class="{'button-info': sCode === '' || nCode === ''}" :disabled="disabled" @tap="_callTask('3')">搬运任务</button>
<button class="zd-col-11 button-default" @click="cancle">{{$t('button.cancel')}}</button>
<button class="zd-col-11 button-primary" :class="{'button-info': sCode === '' || nCode === ''}" :disabled="disabled" @tap="_callTask('3')">{{$t('button.handtask')}}</button>
</view>
<view class="pop_point_wrap" :style="{top: distanceToTop + 'px',left: distanceToLeft + 'px'}">
<view class="zd-row jccenter">
<uni-icons type="map-pin-ellipse" size="18" color="#fff"></uni-icons>
</view>
<view class="zd-row pop_point_content" :class="{'pop_point_content_up': this.popup}">
<view class="zd-col-11 item-font-6 bggreen" @tap="popCode(1)">任务起点</view>
<view class="zd-col-11 item-font-6 bgblue" @tap="popCode(2)">任务终点</view>
<view class="zd-col-11 item-font-6 bggreen" @tap="popCode(1)">{{$t('call.sp')}}</view>
<view class="zd-col-11 item-font-6 bgblue" @tap="popCode(2)">{{$t('call.ep')}}</view>
</view>
</view>
<view v-if="show" class="msg_mask" @tap="colsePop"></view>
@@ -205,7 +207,8 @@
}
if (this.sCode === this.nCode) {
uni.showToast({
title: '任务起点终点不能相同',
// title: '任务起点终点不能相同',
title: this.$t('call.toast'),
icon: 'none'
})
this.disabled = false