国际化

This commit is contained in:
蔡玲
2024-12-23 15:36:05 +08:00
parent e172f8620a
commit 1a153dd60c
25 changed files with 749 additions and 280 deletions

View File

@@ -6,7 +6,7 @@
<view class="zd_wrapper">
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label">物料</span>
<span class="filter_label">{{$t('filter.wl')}}</span>
</view>
<view class="zd-col-24">
<input type="text" class="filter_input" v-model="val1">
@@ -18,15 +18,15 @@
<table>
<thead>
<tr>
<th>物料编码</th>
<th>物料名称</th>
<th>物料规格</th>
<th>单位</th>
<th>物料单重</th>
<th>物料批次</th>
<th>物料数量</th>
<th>载具编码</th>
<th>仓库编码</th>
<th>{{$t('filter.wlbm')}}</th>
<th>{{$t('filter.wlmc')}}</th>
<th>{{$t('filter.wlgg')}}</th>
<th>{{$t('filter.unit')}}</th>
<th>{{$t('filter.wldz')}}</th>
<th>{{$t('filter.wlpc')}}</th>
<th>{{$t('filter.wlsl')}}</th>
<th>{{$t('filter.zjbm')}}</th>
<th>{{$t('filter.ckbm')}}</th>
</tr>
</thead>
<tbody>
@@ -48,9 +48,9 @@
<uni-load-more color="#007AFF" iconType="circle" :status="status" :icon-size="14" :content-text="contentText" v-if="dataList.length > 0"/>
</view>
<view class="zd-row submit-bar">
<button class="zd-col-5 button-default" @tap="toEmpty">清空</button>
<button class="zd-col-8 button-primary" @tap="searchList">查询</button>
<button class="zd-col-8 button-primary" :class="{'button-info': !pkId}" @tap="toSure">确认</button>
<button class="zd-col-5 button-default" @tap="toEmpty">{{$t('btn.cancle')}}</button>
<button class="zd-col-8 button-primary" @tap="searchList">{{$t('btn.search')}}</button>
<button class="zd-col-8 button-primary" :class="{'button-info': !pkId}" @tap="toSure">{{$t('btn.confirm')}}</button>
</view>
</view>
</template>
@@ -74,9 +74,9 @@
reload: false,
status: 'more',
contentText: {
contentdown: '查看更多',
contentrefresh: '加载中',
contentnomore: '没有更多'
contentdown: this.$t('more.ckgd'),
contentrefresh: this.$t('more.jzz'),
contentnomore: this.$t('more.mygd')
},
totalCount: 0,
pageNum: 1,

View File

@@ -5,28 +5,28 @@
<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.zjbm')}}</span>
</view>
<view class="zd-col-17">
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'">
<search-box
v-model="val1"
/>
</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.tplx')}}</span>
</view>
<view class="zd-col-24 filter_select">
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
<view class="filter_select" :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'">
<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="clearUp">清空</button>
<button class="zd-col-16 button-primary" :class="{'button-info': !val1 || !index}" :disabled="disabled" @tap="_pdaPalletIostorinvIn">确认</button>
<button class="zd-col-6 button-default" @tap="clearUp">{{$t('btn.cancle')}}</button>
<button class="zd-col-16 button-primary" :class="{'button-info': !val1 || !index}" :disabled="disabled" @tap="_pdaPalletIostorinvIn">{{$t('btn.confirm')}}</button>
</view>
</view>
</template>
@@ -44,7 +44,7 @@
return {
title: '',
val1: '',
options: [{text:'堆叠托盘', value:'22222222'},{text:'料箱',value: '11111111'}],
options: [{text:this.$t('text.ddtp'), value:'22222222'},{text:this.$t('text.lx'),value: '11111111'}],
index: '',
disabled: false
};

View File

@@ -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 () {

View File

@@ -5,10 +5,10 @@
<view class="zd_content">
<view class="zd_wrapper">
<view class="zd-row border-bottom">
<view class="zd-col-8">
<span class="filter_label">合格证编码</span>
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-8'">
<span class="filter_label">{{$t('filter.hgzbm')}}</span>
</view>
<view class="zd-col-16">
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-16'">
<search-box
v-model="val1"
@handleChange="handleChange1"
@@ -16,10 +16,10 @@
</view>
</view>
<view class="zd-row">
<view class="zd-col-8">
<span class="filter_label">载具编码</span>
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-8'">
<span class="filter_label">{{$t('filter.zjbm')}}</span>
</view>
<view class="zd-col-16">
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-16'">
<search-box
v-model="val2"
/>
@@ -28,58 +28,58 @@
</view>
<view class="zd_wrapper">
<view class="zd-row border-bottom filter_input_disabled">
<view class="zd-col-8"><span class="filter_label">订单号</span></view>
<view class="zd-col-16"><span class="filter_input">{{currentData.moNumber}}</span></view>
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-8'"><span class="filter_label">{{$t('filter.ddh')}}</span></view>
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-16'"><span class="filter_input">{{currentData.moNumber}}</span></view>
</view>
<view class="zd-row border-bottom filter_input_disabled">
<view class="zd-col-8"><span class="filter_label">源单信息</span></view>
<view class="zd-col-16"><span class="filter_input">{{currentData.srcBillNo}}</span></view>
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-8'"><span class="filter_label">{{$t('filter.ydxx')}}</span></view>
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-16'"><span class="filter_input">{{currentData.srcBillNo}}</span></view>
</view>
<view class="zd-row border-bottom filter_input_disabled">
<view class="zd-col-8"><span class="filter_label">物料编码</span></view>
<view class="zd-col-16"><span class="filter_input">{{currentData.material_code}}</span></view>
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-8'"><span class="filter_label">{{$t('filter.wlbm')}}</span></view>
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-16'"><span class="filter_input">{{currentData.material_code}}</span></view>
</view>
<view class="zd-row border-bottom filter_input_disabled">
<view class="zd-col-8"><span class="filter_label">物料名称</span></view>
<view class="zd-col-16"><span class="filter_input">{{currentData.material_name}}</span></view>
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-8'"><span class="filter_label">{{$t('filter.wlmc')}}</span></view>
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-16'"><span class="filter_input">{{currentData.material_name}}</span></view>
</view>
<view class="zd-row border-bottom filter_input_disabled">
<view class="zd-col-8"><span class="filter_label">物料规格</span></view>
<view class="zd-col-16"><span class="filter_input">{{currentData.material_spec}}</span></view>
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-8'"><span class="filter_label">{{$t('filter.wlgg')}}</span></view>
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-16'"><span class="filter_input">{{currentData.material_spec}}</span></view>
</view>
<view class="zd-row border-bottom filter_input_disabled">
<view class="zd-col-8"><span class="filter_label">单位</span></view>
<view class="zd-col-16"><span class="filter_input">{{currentData.unit_name}}</span></view>
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-8'"><span class="filter_label">{{$t('filter.unit')}}</span></view>
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-16'"><span class="filter_input">{{currentData.unit_name}}</span></view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-8"><span class="filter_label">单重</span></view>
<view class="zd-col-16">
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-8'"><span class="filter_label">{{$t('filter.wldz')}}</span></view>
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-16'">
<input type="number" class="filter_input" v-model="currentData.single_weight">
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-8"><span class="filter_label">批次</span></view>
<view class="zd-col-16">
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-8'"><span class="filter_label">{{$t('filter.wlpc')}}</span></view>
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-16'">
<input type="text" class="filter_input" v-model="currentData.pcsn">
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-8"><span class="filter_label">物料数量</span></view>
<view class="zd-col-16">
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-8'"><span class="filter_label">{{$t('filter.wlsl')}}</span></view>
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-16'">
<input type="number" class="filter_input" v-model="val3">
</view>
</view>
<view class="zd-row">
<view class="zd-col-8"><span class="filter_label">仓库编码</span></view>
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-8'"><span class="filter_label">{{$t('filter.ckbm')}}</span></view>
<view class="zd-col-16 filter_select">
<uni-data-select v-model="index" :localdata="options"></uni-data-select>
<uni-data-select v-model="index" :placeholder="$t('uni.dataSelect.placeholder')" :emptyTips="$t('uni.dataSelect.emptyTips')" :localdata="options"></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': !val2 || !val3 || !index}" :disabled="disabled" @tap="_inStorageConfirm">组盘确认</button>
<button class="zd-col-6 button-default" @tap="toEmpty">{{$t('btn.cancle')}}</button>
<button class="zd-col-16 button-primary" :class="{'button-info': !val2 || !val3 || !index}" :disabled="disabled" @tap="_inStorageConfirm">{{$t('btn.zpqr')}}</button>
</view>
</view>
</template>

View File

@@ -1,15 +1,15 @@
<template>
<view class="home_wraper">
<view class="zd_content">
<view class="header">首页</view>
<view class="header">{{$t('home.title')}}</view>
<view class="userInfo-wrap">
<view class="userInfo">
<text v-if="userName !== ''" class="p1">{{userName}}</text>
<text class="p2">欢迎进入恒森WMS手持系统</text>
<text class="p2">{{$t('home.message')}}</text>
</view>
<view class="exit" @tap="Quit">
<view class="icon-exit"></view>
<view class="exit-text">退出</view>
<view class="exit-text">{{$t('home.exit')}}</view>
</view>
</view>
<view class="zd_home_wrapper">
@@ -50,12 +50,16 @@
{title: '设备操控', path: 'RF07', sonTree: [{title: '切换出入库模式', path: '/pages/mode/switch-in-out'}, {title: '拣选工位启停模式', path: '/pages/mode/pick'}, {title: '下发输送线运动命令', path: '/pages/mode/command'}]},
{title: '转运管理', path: 'RF09', sonTree: [{title: '托盘转运', path: '/pages/transfer/tray-transfer'}]}
],
// menuList: [
// {title: '入库管理', path: 'RF01', sonTree: [{title: '物料组盘入库', path: '/pages/entry/mater-group-to-store'}, {title: '合格证入库', path: '/pages/entry/qualified-to-store'}, {title: '空托盘入库', path: '/pages/entry/empty-tray-to-store'}]},
// {title: '出库管理', path: 'RF02', sonTree: [{title: '空托盘出库', path: '/pages/outbound/tray-out-store'}, {title: '出库确认', path: '/pages/outbound/out-store-confirm'}, {title: '单据出库', path: '/pages/outbound/bill-out-store'}, {title: '库存出库', path: '/pages/outbound/stock-out-store'}]},
// {title: '拣选管理', path: 'RF04', sonTree: [{title: '拣选作业', path: '/pages/pick/pick-task'}]},
// {title: '设备操控', path: 'RF07', sonTree: [{title: '切换出入库模式', path: '/pages/mode/switch-in-out'}, {title: '拣选工位启停模式', path: '/pages/mode/pick'}, {title: '下发输送线运动命令', path: '/pages/mode/command'}]},
// {title: '转运管理', path: 'RF09', sonTree: [{title: '托盘转运', path: '/pages/transfer/tray-transfer'}]}
// ],
menuList: [
{title: '入库管理', path: 'RF01', sonTree: [{title: '物料组盘入库', path: '/pages/entry/mater-group-to-store'}, {title: '合格证入库', path: '/pages/entry/qualified-to-store'}, {title: '空托盘入库', path: '/pages/entry/empty-tray-to-store'}]},
{title: '出库管理', path: 'RF02', sonTree: [{title: '空托盘出库', path: '/pages/outbound/tray-out-store'}, {title: '出库确认', path: '/pages/outbound/out-store-confirm'}, {title: '单据出库', path: '/pages/outbound/bill-out-store'}, {title: '库存出库', path: '/pages/outbound/stock-out-store'}]},
{title: '拣选管理', path: 'RF04', sonTree: [{title: '拣选作业', path: '/pages/pick/pick-task'}]},
{title: '设备操控', path: 'RF07', sonTree: [{title: '切换出入库模式', path: '/pages/mode/switch-in-out'}, {title: '拣选工位启停模式', path: '/pages/mode/pick'}, {title: '下发输送线运动命令', path: '/pages/mode/command'}]},
{title: '转运管理', path: 'RF09', sonTree: [{title: '托盘转运', path: '/pages/transfer/tray-transfer'}]}
{title: this.$t('nav.rk'), path: 'RF01', sonTree: [{title: this.$t('nav.wlzprk'), path: '/pages/entry/mater-group-to-store'}, {title: this.$t('nav.hgzrk'), path: '/pages/entry/qualified-to-store'}, {title: this.$t('nav.ktprk'), path: '/pages/entry/empty-tray-to-store'}]},
{title: this.$t('nav.ck'), path: 'RF02', sonTree: [{title: this.$t('nav.ktpck'), path: '/pages/outbound/tray-out-store'}, {title: this.$t('nav.ckqr'), path: '/pages/outbound/out-store-confirm'}, {title: this.$t('nav.djck'), path: '/pages/outbound/bill-out-store'}, {title: this.$t('nav.kcck'), path: '/pages/outbound/stock-out-store'}]}
],
show: false,
secM: [],
@@ -226,6 +230,7 @@
_font(28rpx, 30rpx, #fff, 700, center)
border-radius 10rpx
padding 10rpx
word-break: break-all;
overflow hidden
.pop-title
margin 60rpx 38rpx 0 38rpx

View File

@@ -1,23 +1,23 @@
<template>
<view class="zd_content bg">
<view class="p1">欢迎来到</view>
<view class="p2">恒森WMS手持系统</view>
<view class="p1">{{$t('login.text1')}}</view>
<view class="p2">{{$t('login.text2')}}</view>
<view class="input-box">
<input class="large-input" type="text" placeholder="请输入用户名" v-model="user">
<input class="large-input" type="text" :placeholder="$t('login.username')" v-model="user">
</view>
<div class="input-box">
<input class="large-input" :password="!showPassword" placeholder="请输入密码" v-model="password" autocomplete=off>
<input class="large-input" :password="!showPassword" :placeholder="$t('login.password')" v-model="password" autocomplete=off>
<uni-icons :type="showPassword ? 'eye-filled' : 'eye'" size="20" :color="showPassword ? '#ff6a00' : '#999'" @tap="showPassword = !showPassword"></uni-icons>
</div>
<view class="zd-row radio-box">
<view class="zd-col-2 zd-row jccenter radio-icon-wrap" :class="{'radio-icon-wrap_checked': saveUser}" @tap="toSaveUser">
<uni-icons type="checkmarkempty" size="14" :color="saveUser ? '#ff6a00' : '#fff'"></uni-icons>
</view>
<view class="zd-col-13 radio-label">记住用户名</view>
<view class="zd-col-4 setup-text" @tap="setup">设置</view>
<view class="zd-col-5 setup-text" @tap="isUpdate">升级版本</view>
<view class="zd-col-10 radio-label">{{$t('login.remember')}}</view>
<view class="zd-col-4 setup-text" @tap="setup">{{$t('login.settings')}}</view>
<view class="zd-col-8 setup-text" @tap="isUpdate">{{$t('login.upgrade')}}</view>
</view>
<button class="login-btn" :disabled="disabled" @tap="toLogin">确认登录</button>
<button class="login-btn" :disabled="disabled" @tap="toLogin">{{$t('login.login')}}</button>
<view v-if="version !== ''" class="version-name">v{{version}}</view>
<Up-grade v-if="grade === true" @closeUpdate="closeUpdate" :androidUrl="androidUrl"></up-grade>
</view>
@@ -71,41 +71,22 @@
// url: '/pages/home/home'
// })
this.disabled = true
if (this.user === '') {
uni.showToast({
title: '用户名不能为空',
icon: 'none'
})
this.disabled = false
return
}
if (this.password === '') {
uni.showToast({
title: '密码不能为空',
icon: 'none'
})
if (this.user === '' || this.password === '') {
this.disabled = false
return
}
try {
let res = await handLogin(this.user, RSAencrypt(this.password))
if (res.code === '200') {
if (this.saveUser) {
this.$store.dispatch('saveLoginName', this.user)
} else {
this.$store.dispatch('delLoginName', '')
}
this.$store.dispatch('saveUserInfo', JSON.stringify(res.data.user))
this.$store.dispatch('saveToken', res.token)
uni.redirectTo({
url: '/pages/home/home'
})
if (this.saveUser) {
this.$store.dispatch('saveLoginName', this.user)
} else {
uni.showToast({
title: res.msg,
icon: 'none'
})
this.$store.dispatch('delLoginName', '')
}
this.$store.dispatch('saveUserInfo', JSON.stringify(res.user.user))
this.$store.dispatch('saveToken', res.token)
uni.redirectTo({
url: '/pages/home/home'
})
this.disabled = false
} catch (e) {
this.disabled = false

View File

@@ -1,20 +1,23 @@
<template>
<view class="zd_container">
<nav-bar title="设置" :inner2="true" @goIn="goIn"></nav-bar>
<nav-bar :title="$t('login.settings')" :inner2="true" @goIn="goIn" :show1="false"></nav-bar>
<view class="zd_content">
<view class="zd_wrapper">
<view class="setup-item">
<view class="setup-label">服务器地址</view>
<input type="text" class="setup-input" placeholder="请输入服务器地址" v-model="addrip">
<view class="input-wrap">
<view class="input-label">{{$t('setting.language')}}</view>
<view class="select_wrap">
<uni-data-select v-model="index1" :localdata="options1" :clear="false"
@change="selectChange1"></uni-data-select>
</view>
</view>
<view class="input-wrap">
<view class="input-label">{{$t('setting.server')}}</view>
<input type="text" class="setup-input" v-model="addrip">
</view>
<!-- <view class="setup-item">
<view class="setup-label">刷新时间(s)</view>
<input type="text" class="setup-input" placeholder="请输入刷新时间" v-model="setTime">
</view> -->
</view>
</view>
<view class="zd-row submit-bar">
<button class="zd-col-24 button-primary" @click="_submit">确认</button>
<button class="zd-col-22 button-primary" @click="_submit">{{$t('button.confirm')}}</button>
</view>
</view>
</template>
@@ -28,33 +31,57 @@
data() {
return {
addrip: this.$store.getters.baseUrl,
acsip: this.$store.getters.acsUrl,
setTime: this.$store.getters.setTime / 1000
options1: [{text: '中文',value: 'zh-Hans'}, {text: 'English', value: 'en'}, {text: 'Español', value: 'es'}],
index1: '',
systemLocale: '',
applicationLocale: ''
};
},
onLoad() {
let systemInfo = uni.getSystemInfoSync();
this.systemLocale = systemInfo.language;
this.applicationLocale = uni.getLocale();
this.index1 = this.applicationLocale.split('-')[0]
this.isAndroid = systemInfo.platform.toLowerCase() === 'android';
uni.onLocaleChange((e) => {
this.applicationLocale = e.locale;
})
},
methods: {
onLocaleChange(e) {
if (this.isAndroid) {
uni.showModal({
content: this.$t('setting.language-change-confirm'),
success: (res) => {
if (res.confirm) {
uni.setLocale(e);
}
}
})
} else {
uni.setLocale(e);
this.$i18n.locale = e;
}
},
goIn () {
uni.redirectTo({
url: '/pages/login/login'
})
},
selectChange1(e) {
this.onLocaleChange(e)
this.index1 = e
},
_submit () {
if (this.addrip === '') {
uni.showToast({
title: '请填写LMS地址',
title: '服务器地址',
icon: 'none'
})
return
}
// if (this.setTime === '') {
// uni.showToast({
// title: '请填写刷新时间',
// icon: 'none'
// })
// return
// }
// 存值
this.$store.dispatch('setConfig',{baseUrl: this.addrip, acsUrl: this.acsip, setTime: this.setTime * 1000})
this.$store.dispatch('setConfig',{baseUrl: this.addrip})
uni.redirectTo({
url: '/pages/login/login'
})
@@ -65,16 +92,24 @@
<style lang="stylus">
@import '../../common/style/mixin.styl';
.setup-item
width 100%
margin-bottom 40rpx
.setup-label
_font(24rpx,40rpx,#000)
.setup-input
.input-wrap
_wh(100%, 80rpx)
margin 20rpx 0
_fj()
.input-label
_wh(210rpx, 80rpx)
_font(28rpx,80rpx,#464646)
text-align:justify;
text-align-last: justify;
text-justify: inter-ideograph;/*兼容ie*/
.setup-input
_wh(calc(100% - 220rpx), 80rpx)
background #fff
border: 1px solid #dcdfe6;
border-radius: 10rpx;
_font(28rpx,80rpx,#323232)
padding 0 28rpx
border 2px solid #e9ecf3
border-radius 12rpx
padding 0 10rpx
.select_wrap
_wh(calc(100% - 220rpx), 80rpx)
background #fff
</style>

View File

@@ -2,14 +2,14 @@
<view class="mask flex-center">
<view class="content botton-radius">
<view class="content-top">
<text class="content-top-text">发现新版本</text>
<text class="content-top-text">{{$t('upgrade.new-version')}}</text>
<image class="content-top" style="top: 0;" width="100%" height="100%" src="../../static/image/bg_top.png">
</image>
</view>
<view class="content-header"></view>
<view class="content-body">
<view class="title">
<text>恒森WMS手持系统又有新版本了升级到最新版本享受更丰富稳定快速的功能和体验</text>
<text>{{$t('upgrade.text1')}}</text>
</view>
<view class="footer flex-center">
<template>
@@ -17,11 +17,11 @@
<view class="progress-box flex-column" v-if="downloading">
<progress class="progress" border-radius="35" :percent="downLoadPercent" activeColor="#3DA7FF" show-info stroke-width="10" />
<view style="width:100%;font-size: 28rpx;display: flex;justify-content: space-around;">
<text>安装包下载中请稍后</text>
<text>{{$t('upgrade.text2')}}</text>
<text>({{downloadedSize}}/{{packageFileSize}}M)</text>
</view>
</view>
<button v-else class="content-button" style="border: none;color: #fff;" plain @click="updateApp">立即升级</button>
<button v-else class="content-button" style="border: none;color: #fff;" plain @click="updateApp">{{$t('upgrade.upgrade-now')}}</button>
</template>
</template>
</view>
@@ -146,7 +146,7 @@
}
.content-top-text {
font-size: 45rpx;
font-size: 32rpx;
font-weight: bold;
color: #F8F8FA;
position: absolute;

View File

@@ -5,10 +5,10 @@
<view class="zd_content">
<view class="zd_wrapper">
<view class="zd-row">
<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.djbm')}}</span>
</view>
<view class="zd-col-24">
<view class="filter_select" :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'">
<search-box
v-model="code"
@handleChange="handleChange"
@@ -21,17 +21,17 @@
<table>
<thead>
<tr>
<th>单据编码</th>
<th>单据类型</th>
<th>备注</th>
<th>创建时间</th>
<th>创建人</th>
<th>物料编码</th>
<th>申请数量</th>
<th>计划数量</th>
<th>已分配数量</th>
<th>批次号</th>
<th>单位</th>
<th>{{$t('filter.djbm')}}</th>
<th>{{$t('filter.djlx')}}</th>
<th>{{$t('filter.remark')}}</th>
<th>{{$t('filter.cjsj')}}</th>
<th>{{$t('filter.cjr')}}</th>
<th>{{$t('filter.wlbm')}}</th>
<th>{{$t('filter.sqsl')}}</th>
<th>{{$t('filter.jhsl')}}</th>
<th>{{$t('filter.yfpsl')}}</th>
<th>{{$t('filter.pcsn')}}</th>
<th>{{$t('filter.unit')}}</th>
</tr>
</thead>
<tbody>
@@ -55,8 +55,8 @@
<uni-load-more color="#007AFF" iconType="circle" :status="status" :icon-size="14" :content-text="contentText" v-if="dataList.length > 0"/>
</view>
<view class="zd-row submit-bar">
<button class="zd-col-6 button-primary" @tap="seachList">查询</button>
<button class="zd-col-16 button-primary" :class="{'button-info': !pkId}" @tap="toSure">确认</button>
<button class="zd-col-6 button-primary" @tap="seachList">{{$t('btn.search')}}</button>
<button class="zd-col-16 button-primary" :class="{'button-info': !pkId}" @tap="toSure">{{$t('btn.confirm')}}</button>
</view>
</view>
</template>
@@ -82,9 +82,9 @@
reload: false,
status: 'more',
contentText: {
contentdown: '查看更多',
contentrefresh: '加载中',
contentnomore: '没有更多'
contentdown: this.$t('more.ckgd'),
contentrefresh: this.$t('more.jzz'),
contentnomore: this.$t('more.mygd')
},
totalCount: 0,
pageNum: 1,

View File

@@ -5,41 +5,41 @@
<view class="zd_content">
<view class="zd_wrapper">
<view class="zd-row">
<view class="zd-col-9">
<span class="filter_label">出库单类型</span>
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-7'">
<span class="filter_label">{{$t('filter.ckdlx')}}</span>
</view>
<view class="zd-col-24 filter_select">
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
<view class="filter_select" :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'">
<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 v-if="JSON.stringify(currentData) !== '{}'" class="zd_wrapper">
<view class="zd-row border-bottom filter_input_disabled">
<view class="zd-col-6"><span class="filter_label">单据编码</span></view>
<view class="zd-col-6"><span class="filter_label">{{$t('filter.djbm')}}</span></view>
<view class="zd-col-6"><span class="filter_input">{{currentData.code}}</span></view>
<view class="zd-col-6"><span class="filter_label">单据类型</span></view>
<view class="zd-col-6"><span class="filter_label">{{$t('filter.djlx')}}</span></view>
<view class="zd-col-6"><span class="filter_input">{{currentData.form_type}}</span></view>
</view>
<view class="zd-row border-bottom filter_input_disabled">
<view class="zd-col-6"><span class="filter_label">创建时间</span></view>
<view class="zd-col-6"><span class="filter_label">{{$t('filter.cjsj')}}</span></view>
<view class="zd-col-6"><span class="filter_input">{{currentData.create_time}}</span></view>
<view class="zd-col-6"><span class="filter_label">创建人</span></view>
<view class="zd-col-6"><span class="filter_label">{{$t('filter.cjr')}}</span></view>
<view class="zd-col-6"><span class="filter_input">{{currentData.create_name}}</span></view>
</view>
<view class="zd-row border-bottom filter_input_disabled">
<view class="zd-col-6"><span class="filter_label">物料编码</span></view>
<view class="zd-col-6"><span class="filter_label">{{$t('filter.wlbm')}}</span></view>
<view class="zd-col-6"><span class="filter_input">{{currentData.material_code}}</span></view>
<view class="zd-col-6"><span class="filter_label">单位</span></view>
<view class="zd-col-6"><span class="filter_label">{{$t('filter.unit')}}</span></view>
<view class="zd-col-6"><span class="filter_input">{{currentData.unit_name}}</span></view>
</view>
<view class="zd-row">
<view class="zd-col-6"><span class="filter_label">仓库</span></view>
<view class="zd-col-6"><span class="filter_label">{{$t('filter.ck')}}</span></view>
<view class="zd-col-6 filter_select">
<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 class="zd-col-6"><span class="filter_label">车间</span></view>
<view class="zd-col-6"><span class="filter_label">{{$t('filter.cj')}}</span></view>
<view class="zd-col-6 filter_select">
<uni-data-select v-model="currentData.product_area" :localdata="options2"></uni-data-select>
<uni-data-select v-model="currentData.product_area" :placeholder="$t('uni.dataSelect.placeholder')" :emptyTips="$t('uni.dataSelect.emptyTips')" :localdata="options2"></uni-data-select>
</view>
</view>
</view>
@@ -51,16 +51,16 @@
<th @tap="toAllCheck"><uni-icons :type="allCheck ? 'checkbox' : 'circle'" size="24" color="#4e6ef2"></uni-icons></th>
<th class="td_3">
<view class="td_3">
物料名称
{{$t('filter.wlmc')}}
</view>
</th>
<th>计划数量</th>
<th>申请数量</th>
<th>库存数量</th>
<th>出库数量</th>
<th>已分配数量</th>
<th>批次号</th>
<th>单位</th>
<th>{{$t('filter.jhsl')}}</th>
<th>{{$t('filter.sqsl')}}</th>
<th>{{$t('filter.kcsl')}}</th>
<th>{{$t('filter.cksl')}}</th>
<th>{{$t('filter.yfpsl')}}</th>
<th>{{$t('filter.pcsn')}}</th>
<th>{{$t('filter.unit')}}</th>
</tr>
</thead>
<tbody>
@@ -81,8 +81,8 @@
</view>
</view>
<view class="zd-row submit-bar">
<button class="zd-col-6 button-primary" @tap="toEmpty">清空</button>
<button class="zd-col-16 button-primary" :class="{'button-info': JSON.stringify(currentData) === '{}'}" :disabled="disabled" @tap="_outStorageConfirm">出库确认</button>
<button class="zd-col-6 button-primary" @tap="toEmpty">{{$t('btn.cancle')}}</button>
<button class="zd-col-16 button-primary" :class="{'button-info': JSON.stringify(currentData) === '{}'}" :disabled="disabled" @tap="_outStorageConfirm">{{$t('btn.ckqr')}}</button>
</view>
</view>
</template>
@@ -104,9 +104,9 @@
currentData: {},
dataList: [],
disabled: false,
options1: [{value: 'FStockPallet', text: '托盘库'}, {value: 'FStockId', text: '料箱库'}],
options1: [{value: 'FStockPallet', text: this.$t('text.tpk')}, {value: 'FStockId', text: this.$t('text.lxk')}],
index1: '',
options2: [{value: 'A1', text: 'A1车间'}, {value: 'A2', text: 'A2车间'}, {value: 'A3', text: 'A3车间'}],
options2: [{value: 'A1', text: 'A1' + this.$t('text.cj')}, {value: 'A2', text: 'A2' + this.$t('text.cj')}, {value: 'A3', text: 'A3' + this.$t('text.cj')}],
allCheck: false
};
},
@@ -138,7 +138,7 @@
this.index = e
if (e) {
uni.navigateTo({
url: '/pages/outbound/bill-list?title=单据列表&id=' + e
url: '/pages/outbound/bill-list?title=' + this.$t('nav.djlb') +'&id=' + e
})
}
},

View File

@@ -5,10 +5,10 @@
<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.zjbm')}}</span>
</view>
<view class="zd-col-24">
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'">
<search-box
v-model="code"
/>
@@ -17,8 +17,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': !code}" :disabled="disabled" @tap="_ioStorageOut">扫码出库确认</button>
<button class="zd-col-6 button-default" @tap="clearUp">{{$t('btn.cancle')}}</button>
<button class="zd-col-16 button-primary" :class="{'button-info': !code}" :disabled="disabled" @tap="_ioStorageOut">{{$t('btn.smckqr')}}</button>
</view>
</view>
</template>

View File

@@ -5,18 +5,18 @@
<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">
<uni-data-select v-model="index" :localdata="options"></uni-data-select>
<view class="filter_select" :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'">
<uni-data-select v-model="index" :placeholder="$t('uni.dataSelect.placeholder')" :emptyTips="$t('uni.dataSelect.emptyTips')" :localdata="options"></uni-data-select>
</view>
</view>
<view class="zd-row">
<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 filter_select">
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'">
<input type="text" class="filter_input" v-model="val1">
</view>
</view>
@@ -26,12 +26,12 @@
<table>
<thead>
<tr>
<th>仓库编码</th>
<th>库位编码</th>
<th>载具编码</th>
<th>物料编码</th>
<th>物料批次</th>
<th>出库库存</th>
<th>{{$t('filter.ckbm')}}</th>
<th>{{$t('filter.kwbm')}}</th>
<th>{{$t('filter.zjbm')}}</th>
<th>{{$t('filter.wlbm')}}</th>
<th>{{$t('filter.wlpc')}}</th>
<th>{{$t('filter.ckkc')}}</th>
</tr>
</thead>
<tbody>
@@ -50,9 +50,9 @@
<uni-load-more color="#007AFF" iconType="circle" :status="status" :icon-size="14" :content-text="contentText" v-if="dataList.length > 0"/>
</view>
<view class="zd-row submit-bar">
<button class="zd-col-5 button-default" @tap="toEmpty">清空</button>
<button class="zd-col-8 button-primary" @tap="searchList">查询</button>
<button class="zd-col-8 button-primary" :class="{'button-info': !pkId}" @tap="toSure">确认</button>
<button class="zd-col-5 button-default" @tap="toEmpty">{{$t('btn.cancle')}}</button>
<button class="zd-col-8 button-primary" @tap="searchList">{{$t('btn.search')}}</button>
<button class="zd-col-8 button-primary" :class="{'button-info': !pkId}" @tap="toSure">{{$t('btn.confirm')}}</button>
</view>
</view>
</template>
@@ -70,7 +70,7 @@
return {
title: '',
val1: '',
options: [{value: 'FStockPallet', text: '托盘库'}, {value: 'FStockId', text: '料箱库'}],
options: [{value: 'FStockPallet', text: this.$t('text.tpk')}, {value: 'FStockId', text: this.$t('text.lxk')}],
index: '',
dataList: [],
pkId: '',
@@ -78,9 +78,9 @@
reload: false,
status: 'more',
contentText: {
contentdown: '查看更多',
contentrefresh: '加载中',
contentnomore: '没有更多'
contentdown: this.$t('more.ckgd'),
contentrefresh: this.$t('more.jzz'),
contentnomore: this.$t('more.mygd')
},
totalCount: 0,
pageNum: 1,

View File

@@ -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>

View File

@@ -5,34 +5,34 @@
<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.tplx')}}</span>
</view>
<view class="zd-col-24 filter_select">
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
<view class="filter_select" :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'">
<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="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.cksl')}}</span>
</view>
<view class="zd-col-17">
<view :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'">
<input type="number" class="filter_input" v-model="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.ckd')}}</span>
</view>
<view class="zd-col-24 filter_select">
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
<view class="filter_select" :class="$i18n.locale !== 'zh-Hans' ? 'zd-col-12' : 'zd-col-17'">
<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>
</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': !qty || !index1 || !index2}" :disabled="disabled" @tap="_pdaPalletIostorinvOut">托盘库出库</button>
<button class="zd-col-6 button-default" @tap="clearUp">{{$t('btn.cancle')}}</button>
<button class="zd-col-16 button-primary" :class="{'button-info': !qty || !index1 || !index2}" :disabled="disabled" @tap="_pdaPalletIostorinvOut">{{$t('btn.tpkck')}}</button>
</view>
</view>
</template>
@@ -49,7 +49,7 @@
data() {
return {
title: '',
options1: [{text:'堆叠托盘', value:'22222222'},{text:'料箱',value: '11111111'}],
options1: [{text:this.$t('text.ddtp'), value:'22222222'},{text:this.$t('text.lx'),value: '11111111'}],
index1: '',
qty: '',
options2: [],