分切管理模块语言切换

This commit is contained in:
2023-12-25 17:58:31 +08:00
parent 070ad5b37e
commit 8a8f2359c9
9 changed files with 192 additions and 127 deletions

View File

@@ -1,25 +1,25 @@
<template>
<view class="zd_container">
<nav-bar title="空轴套管"></nav-bar>
<nav-bar :title="$t('menu.hollow-shaft-sleeve')"></nav-bar>
<view class="zd_content">
<view class="zd_wrapper">
<view class="filter_item">
<view class="filter_label">区域</view>
<view class="filter_label">{{$t('filter.area')}}</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
<uni-data-select v-model="index1" :placeholder="$t('uni.dataSelect.placeholder')" :emptyTips="$t('uni.dataSelect.emptyTips')" :localdata="options1" @change="selectChange1"></uni-data-select>
</view>
</view>
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">设备</span>
<span class="filter_label">{{$t('filter.device')}}</span>
</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
<uni-data-select v-model="index2" :placeholder="$t('uni.dataSelect.placeholder')" :emptyTips="$t('uni.dataSelect.emptyTips')" :localdata="options2" @change="selectChange2"></uni-data-select>
</view>
</view>
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">子卷号</span>
<span class="filter_label">{{$t('filter.mother-roll')}}</span>
</view>
<view class="filter_input_wraper">
<search-box
@@ -29,7 +29,7 @@
</view>
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">点位</span>
<span class="filter_label">{{$t('filter.point')}}</span>
</view>
<view class="filter_input_wraper">
<search-box
@@ -39,7 +39,7 @@
</view>
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">气涨轴</span>
<span class="filter_label">{{$t('filter.air-shaft')}}</span>
</view>
<view class="filter_input_wraper">
<search-box
@@ -53,21 +53,21 @@
<table>
<thead>
<tr>
<th>序号</th>
<th>选择</th>
<th>子卷号</th>
<th>机台编号</th>
<th>分切组</th>
<th>生产顺序</th>
<th>生产日期</th>
<th>纸筒/FRP管</th>
<th>纸筒物料编码</th>
<th>纸筒物料描述</th>
<th>纸筒规格</th>
<th>FRP管物料编码</th>
<th>FRP管物料描述</th>
<th>FRP管规格</th>
<th>订单号</th>
<th>{{$t('grid.number')}}</th>
<th>{{$t('grid.select')}}</th>
<th>{{$t('grid.sub-roll-number')}}</th>
<th>{{$t('grid.machine-code')}}</th>
<th>{{$t('grid.split-group')}}</th>
<th>{{$t('grid.production-sequence')}}</th>
<th>{{$t('grid.date-of-manufacture')}}</th>
<th>{{$t('grid.paper-FRP-tube')}}</th>
<th>{{$t('grid.paper-tube-material-code')}}</th>
<th>{{$t('grid.paper-tube-material-description')}}</th>
<th>{{$t('grid.paper-tube-specifications')}}</th>
<th>{{$t('grid.FRP-pipe-material-code')}}</th>
<th>{{$t('grid.FRP-pipe-material-description')}}</th>
<th>{{$t('grid.FRP-pipe-specifications')}}</th>
<th>{{$t('grid.order-number')}}</th>
</tr>
</thead>
<tbody>
@@ -95,10 +95,10 @@
<uni-load-more color="#007AFF" iconType="circle" :status="status" :icon-size="14" :content-text="contentText" v-if="dataList.length > 0"/>
</view>
<view class="submit-bar">
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled2" @tap="_casingWearConfirm">穿轴确认</button>
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled1" @tap="_casingOutConfirm">拔轴确认</button>
<button class="submit-button" :class="{'btn-disabled': !checkArr.length || !val2}" :disabled="disabled" @tap="_casingConfirm">套轴确认</button>
<button class="submit-button" @tap="searchList">查询</button>
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled2" @tap="_casingWearConfirm">{{$t('button.through-shaft-confirm')}}</button>
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled1" @tap="_casingOutConfirm">{{$t('button.pull-shaft-confirm')}}</button>
<button class="submit-button" :class="{'btn-disabled': !checkArr.length || !val2}" :disabled="disabled" @tap="_casingConfirm">{{$t('button.overlap-shaft-confirm')}}</button>
<button class="submit-button" @tap="searchList">{{$t('button.search')}}</button>
</view>
</view>
</template>
@@ -128,9 +128,9 @@
reload: false,
status: 'more',
contentText: {
contentdown: '查看更多',
contentrefresh: '加载中',
contentnomore: '没有更多'
contentdown: this.$t('utils.read-more'),
contentrefresh: this.$t('utils.loading'),
contentnomore: this.$t('utils.no-more')
},
totalCount: 0,
pageNum: 1,

View File

@@ -1,17 +1,17 @@
<template>
<view class="zd_container">
<nav-bar title="空轴配送"></nav-bar>
<nav-bar :title="$t('menu.empty-shaft-delivery')"></nav-bar>
<view class="zd_content">
<view class="zd_wrapper">
<view class="filter_item">
<view class="filter_label">区域</view>
<view class="filter_label">{{$t('filter.area')}}</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
</view>
</view>
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">设备</span>
<span class="filter_label">{{$t('filter.device')}}</span>
</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
@@ -19,7 +19,7 @@
</view>
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">气涨轴</span>
<span class="filter_label">{{$t('filter.air-shaft')}}</span>
</view>
<view class="filter_input_wraper">
<search-box
@@ -29,7 +29,7 @@
</view>
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">载具码</span>
<span class="filter_label">{{$t('filter.vehicle-code')}}</span>
</view>
<view class="filter_input_wraper">
<search-box
@@ -39,7 +39,7 @@
</view>
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">起点</span>
<span class="filter_label">{{$t('filter.starting-point')}}</span>
</view>
<view class="filter_input_wraper">
<search-box
@@ -53,22 +53,22 @@
<table>
<thead>
<tr>
<th>序号</th>
<th>选择</th>
<th>气涨轴</th>
<th>机台编号</th>
<th>分切组</th>
<th>生产顺序</th>
<th>生产日期</th>
<th>子卷号</th>
<th>纸筒/FRP管</th>
<th>纸筒物料编码</th>
<th>纸筒物料描述</th>
<th>纸筒规格</th>
<th>FRP管物料编码</th>
<th>FRP管物料描述</th>
<th>FRP管规格</th>
<th>订单号</th>
<th>{{$t('grid.number')}}</th>
<th>{{$t('grid.select')}}</th>
<th>{{$t('filter.air-shaft')}}</th>
<th>{{$t('grid.machine-code')}}</th>
<th>{{$t('grid.split-group')}}</th>
<th>{{$t('grid.production-sequence')}}</th>
<th>{{$t('grid.date-of-manufacture')}}</th>
<th>{{$t('grid.sub-roll-number')}}</th>
<th>{{$t('grid.paper-FRP-tube')}}</th>
<th>{{$t('grid.paper-tube-material-code')}}</th>
<th>{{$t('grid.paper-tube-material-description')}}</th>
<th>{{$t('grid.paper-tube-specifications')}}</th>
<th>{{$t('grid.FRP-pipe-material-code')}}</th>
<th>{{$t('grid.FRP-pipe-material-description')}}</th>
<th>{{$t('grid.FRP-pipe-specifications')}}</th>
<th>{{$t('grid.order-number')}}</th>
</tr>
</thead>
<tbody>
@@ -96,12 +96,12 @@
</view>
</view>
<view class="submit-bar">
<button class="submit-button" :class="{'btn-disabled': !val3}" :disabled="disabled5" @tap="_acrossVehicle">载具横移</button>
<button class="submit-button" :class="{'btn-disabled': checkArr.length === 0 || checkArr.length > 1}" :disabled="disabled1" @tap="_needVehicle">呼叫载具</button>
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled4" @tap="_shippingCheck">配送校验</button>
<button class="submit-button" :class="{'btn-disabled': !checkArr.length || !val3}" :disabled="disabled2" @tap="_shippingConfirm">配送确认</button>
<button class="submit-button" :class="{'btn-disabled': !val3 || checkArr.length > 0}" :disabled="disabled3" @tap="_returnVehicle">载具送回</button>
<button class="submit-button" @tap="_queryMaterialInfo">查询</button>
<button class="submit-button" :class="{'btn-disabled': !val3}" :disabled="disabled5" @tap="_acrossVehicle">{{$t('button.vehicle-lateral-movement')}}</button>
<button class="submit-button" :class="{'btn-disabled': checkArr.length === 0 || checkArr.length > 1}" :disabled="disabled1" @tap="_needVehicle">{{$t('button.call-vehicle')}}</button>
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled4" @tap="_shippingCheck">{{$t('button.delivery-check')}}</button>
<button class="submit-button" :class="{'btn-disabled': !checkArr.length || !val3}" :disabled="disabled2" @tap="_shippingConfirm">{{$t('button.delivery-confirm')}}</button>
<button class="submit-button" :class="{'btn-disabled': !val3 || checkArr.length > 0}" :disabled="disabled3" @tap="_returnVehicle">{{$t('button.vehicle-return')}}</button>
<button class="submit-button" @tap="_queryMaterialInfo">{{$t('button.search')}}</button>
</view>
</view>
</template>

View File

@@ -1,24 +1,24 @@
<template>
<view class="zd_container">
<nav-bar title="空轴进站"></nav-bar>
<nav-bar :title="$t('menu.empty-shaft-entry-station')"></nav-bar>
<view class="zd_content">
<view class="zd_wrapper">
<view class="filter_item">
<view class="filter_label">区域</view>
<view class="filter_label">{{$t('filter.area')}}</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
</view>
</view>
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">设备</span>
<span class="filter_label">{{$t('filter.device')}}</span>
</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index3" :localdata="options3" @change="selectChange3"></uni-data-select>
</view>
</view>
<view class="filter_item">
<view class="filter_label">点位</view>
<view class="filter_label">{{$t('filter.point')}}</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
</view>
@@ -29,16 +29,16 @@
<table>
<thead>
<tr>
<th>序号</th>
<th>气涨轴</th>
<th>子卷号</th>
<th>机台编号</th>
<th>分切组</th>
<th>位置</th>
<th>配送完成</th>
<th>生产顺序</th>
<th>生产日期</th>
<th>订单号</th>
<th>{{$t('grid.number')}}</th>
<th>{{$t('filter.air-shaft')}}</th>
<th>{{$t('grid.sub-roll-number')}}</th>
<th>{{$t('grid.machine-code')}}</th>
<th>{{$t('grid.split-group')}}</th>
<th>{{$t('grid.place')}}</th>
<th>{{$t('grid.delivery-completed')}}</th>
<th>{{$t('grid.production-sequence')}}</th>
<th>{{$t('grid.grid.date-of-manufacture')}}</th>
<th>{{$t('grid.order-number')}}</th>
</tr>
</thead>
<tbody>
@@ -60,8 +60,8 @@
</view>
</view>
<view class="submit-bar">
<button class="submit-button" :class="{'btn-disabled': !index1 || !pkId}" :disabled="disabled" @tap="_inConfirm">上空轴</button>
<button class="submit-button" @tap="_queryMaterialInfo">查询</button>
<button class="submit-button" :class="{'btn-disabled': !index1 || !pkId}" :disabled="disabled" @tap="_inConfirm">{{$t('button.upload-empty-shaft')}}</button>
<button class="submit-button" @tap="_queryMaterialInfo">{{$t('button.search')}}</button>
</view>
</view>
</template>

View File

@@ -1,24 +1,24 @@
<template>
<view class="zd_container">
<nav-bar title="子卷出站"></nav-bar>
<nav-bar :title="$t('menu.subroll-outbound')"></nav-bar>
<view class="zd_content">
<view class="zd_wrapper">
<view class="filter_item">
<view class="filter_label">区域</view>
<view class="filter_label">{{$t('filter.area')}}</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
</view>
</view>
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">设备</span>
<span class="filter_label">{{$t('filter.device')}}</span>
</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index5" :localdata="options5" @change="selectChange5"></uni-data-select>
</view>
</view>
<view class="filter_item">
<view class="filter_label">点位</view>
<view class="filter_label">{{$t('filter.point')}}</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
</view>
@@ -29,7 +29,7 @@
</view>
<view class="filter_input_wraper filter_input_wraper_1">
<view class="iconfont icon_unchecked" :class="{'icon_checked': isV === '1'}" @tap="isVirtual">&#xe66b;</view>
<view class="filter_input_wraper_inn_text">末次下卷</view>
<view class="filter_input_wraper_inn_text">{{$t('filter.last-roll-down')}}</view>
</view>
</view>
</view>
@@ -38,22 +38,22 @@
<table>
<thead>
<tr>
<th>序号</th>
<th>选择</th>
<th>气涨轴</th>
<th>子卷号</th>
<th>机台编号</th>
<th>分切组</th>
<th>生产顺序</th>
<th>生产日期</th>
<th>纸筒/FRP管</th>
<th>纸筒物料编码</th>
<th>纸筒物料描述</th>
<th>纸筒规格</th>
<th>FRP管物料编码</th>
<th>FRP管物料描述</th>
<th>FRP管规格</th>
<th>订单号</th>
<th>{{$t('grid.number')}}</th>
<th>{{$t('grid.select')}}</th>
<th>{{$t('filter.air-shaft')}}</th>
<th>{{$t('grid.sub-roll-number')}}</th>
<th>{{$t('grid.machine-code')}}</th>
<th>{{$t('grid.split-group')}}</th>
<th>{{$t('grid.production-sequence')}}</th>
<th>{{$t('grid.grid.date-of-manufacture')}}</th>
<th>{{$t('grid.paper-FRP-tube')}}</th>
<th>{{$t('grid.paper-tube-material-code')}}</th>
<th>{{$t('grid.paper-tube-material-description')}}</th>
<th>{{$t('grid.paper-tube-specifications')}}</th>
<th>{{$t('grid.FRP-pipe-material-code')}}</th>
<th>{{$t('grid.FRP-pipe-material-description')}}</th>
<th>{{$t('grid.FRP-pipe-specifications')}}</th>
<th>{{$t('grid.order-number')}}</th>
</tr>
</thead>
<tbody>
@@ -81,29 +81,29 @@
</view>
</view>
<view class="submit-bar">
<button class="submit-button" :class="{'btn-disabled': !index1 || checkArr.length > 0}" :disabled="disabled3" @tap="_disuseConfirm">废箔下卷</button>
<button class="submit-button" :class="{'btn-disabled': !index1 || !checkArr.length}" :disabled="disabled1" @tap="_outConfirm">子卷出站</button>
<button class="submit-button" @tap="showModal">出站配送</button>
<button class="submit-button" @tap="_queryMaterialInfo">查询</button>
<button class="submit-button" :class="{'btn-disabled': !index1 || checkArr.length > 0}" :disabled="disabled3" @tap="_disuseConfirm">{{$t('button.scrap-foil-roll-down')}}</button>
<button class="submit-button" :class="{'btn-disabled': !index1 || !checkArr.length}" :disabled="disabled1" @tap="_outConfirm">{{$t('menu.subroll-outbound')}}</button>
<button class="submit-button" @tap="showModal">{{$t('button.outbound-delivery')}}</button>
<button class="submit-button" @tap="_queryMaterialInfo">{{$t('button.search')}}</button>
</view>
<view v-if="active" class="msg_wrapper">
<view class="msg_box">
<view class="filter_item">
<view class="filter_label">区域</view>
<view class="filter_label">{{$t('filter.area')}}</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index3" :localdata="options3" @change="selectChange3"></uni-data-select>
</view>
</view>
<view class="filter_item">
<view class="filter_label">缓存点位</view>
<view class="filter_label">{{$t('filter.cache-point')}}</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index4" :localdata="options4" @change="selectChange4"></uni-data-select>
</view>
<view class="filter_search" @tap="_conveyPointQuery">查询</view>
<view class="filter_search" @tap="_conveyPointQuery">{{$t('button.search')}}</view>
</view>
<view class="msg_btns">
<button class="submit-button msg_btn" @tap="cancleModal">取消</button>
<button class="submit-button msg_btn" :class="{'btn-disabled': !index4}" :disabled="disabled2" @tap="_conveyConfirm">确认</button>
<button class="submit-button msg_btn" @tap="cancleModal">{{$t('button.cancel')}}</button>
<button class="submit-button msg_btn" :class="{'btn-disabled': !index4}" :disabled="disabled2" @tap="_conveyConfirm">{{$t('button.confirm')}}</button>
</view>
</view>
</view>
@@ -206,7 +206,8 @@
this.disabled1 = true
if (!this.index1) {
uni.showToast({
title: '点位不能为空',
// title: '点位不能为空',
title: this.$t('toast.point-not-empty'),
icon: 'none'
})
this.disabled1 = false
@@ -237,7 +238,8 @@
this.disabled3 = true
if (!this.index1) {
uni.showToast({
title: '点位不能为空',
// title: '点位不能为空',
title: this.$t('toast.point-not-empty'),
icon: 'none'
})
this.disabled3 = false
@@ -287,7 +289,8 @@
this.disabled2 = true
if (!this.index4) {
uni.showToast({
title: '请选择缓存点位',
// title: '请选择缓存点位',
title: this.$t('toast.select-cache-point'),
icon: 'none'
})
this.disabled2 = false