空载具堆叠
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<!-- 空载具堆叠 -->
|
||||
<nav-bar :title="title" :inner="true"></nav-bar>
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="zd-row border-bottom">
|
||||
|
||||
@@ -12,14 +12,6 @@
|
||||
<search-box v-model="val1"/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-6">
|
||||
<span class="filter_label">载具类型</span>
|
||||
</view>
|
||||
<view class="zd-col-18 filter_select">
|
||||
<uni-data-select v-model="index" :localdata="options"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-6">
|
||||
<span class="filter_label">载具库区</span>
|
||||
@@ -40,7 +32,7 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-5 button-default" @tap="toEmpty">清空</button>
|
||||
<button class="zd-col-18 button-primary" :class="{'button-info': !val1 || !index || !index2 || !num}" :disabled="disabled" @tap="_callEmptyVehicle">呼叫出库</button>
|
||||
<button class="zd-col-18 button-primary" :class="{'button-info': !val1 || !index2 || !num}" :disabled="disabled" @tap="_callEmptyVehicle">呼叫出库</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -58,9 +50,7 @@
|
||||
return {
|
||||
title: '',
|
||||
val1: '',
|
||||
num: null,
|
||||
options: [],
|
||||
index: '',
|
||||
num: 1,
|
||||
options2: [{text: '原料区', value: 1}, {text: '辅料区', value: 2}, {text: '批料室', value: 3}, {text: '内包材区', value: 4}],
|
||||
index2: '',
|
||||
disabled: false
|
||||
@@ -85,19 +75,18 @@
|
||||
},
|
||||
toEmpty () {
|
||||
this.val1 = ''
|
||||
this.index = ''
|
||||
this.index2 = ''
|
||||
this.num = null
|
||||
this.num = 1
|
||||
this.disabled = false
|
||||
},
|
||||
async _callEmptyVehicle () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.index || !this.index2 || !this.num) {
|
||||
if (!this.val1 || !this.index2 || !this.num) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await callEmptyVehicle(this.index2, this.val1, this.index, this.num)
|
||||
let res = await callEmptyVehicle(this.index2, this.val1, this.num)
|
||||
if (res) {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
|
||||
Reference in New Issue
Block a user