空管入库空管出库
This commit is contained in:
@@ -1,28 +1,28 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar title="空管入库"></nav-bar>
|
||||
<nav-bar :title="$t('menu.air-traffic-control-warehousing')"></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">设备</view>
|
||||
<view class="filter_label">{{$t('filter.device')}}</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">物料</view>
|
||||
<view class="filter_label">{{$t('filter.material')}}</view>
|
||||
<view class="filter_input_wraper">
|
||||
<uni-data-select v-model="index3" :searchInput="true" :localdata="newoptions3" @change="selectChange3" @handleChange="handleChange" @showSelector="showSelector"></uni-data-select>
|
||||
<uni-data-select v-model="index3" :placeholder="$t('uni.dataSelect.placeholder')" :emptyTips="$t('uni.dataSelect.emptyTips')" :searchInput="true" :localdata="newoptions3" @change="selectChange3" @handleChange="handleChange" @showSelector="showSelector"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">数量</view>
|
||||
<view class="filter_label">{{$t('filter.quantity')}}</view>
|
||||
<view class="filter_input_wraper">
|
||||
<input type="text" class="filter_input filter_input_disabled" v-model="qty" disabled="disabled">
|
||||
</view>
|
||||
@@ -30,8 +30,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !index1 || !index3}" :disabled="disabled" @tap="_emptyConfirm">入库设置</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !index2}" @tap="_taskQuerydevice">查询</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !index1 || !index3}" :disabled="disabled" @tap="_emptyConfirm">{{$t('button.storage-settings')}}</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !index2}" @tap="_taskQuerydevice">{{$t('button.search')}}</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -127,7 +127,8 @@
|
||||
async _taskQuerydevice () {
|
||||
if (!this.index2) {
|
||||
uni.showToast({
|
||||
title: '请选择设备',
|
||||
// title: '请选择设备',
|
||||
title: this.$t('toast.select-device'),
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
@@ -142,7 +143,8 @@
|
||||
this.disabled = true
|
||||
if (!this.index2) {
|
||||
uni.showToast({
|
||||
title: '设备不能为空',
|
||||
// title: '设备不能为空',
|
||||
title: this.$t('toast.device-not-empty'),
|
||||
icon: 'none'
|
||||
})
|
||||
this.disabled = false
|
||||
@@ -150,7 +152,8 @@
|
||||
}
|
||||
if (!this.index3) {
|
||||
uni.showToast({
|
||||
title: '物料不能为空',
|
||||
// title: '物料不能为空',
|
||||
title: this.$t('toast.material-not-empty'),
|
||||
icon: 'none'
|
||||
})
|
||||
this.disabled = false
|
||||
|
||||
Reference in New Issue
Block a user