修改
This commit is contained in:
@@ -3,14 +3,6 @@
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<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>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<zxz-uni-data-select v-model="index1" filterable :localdata="options1"></zxz-uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">终点</span>
|
||||
@@ -33,7 +25,7 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap.stop="clearUp">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !index1 || !index2 || !val1}" :disabled="disabled1" @tap="_pdaHnby">混碾搬运</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !index2 || !val1}" :disabled="disabled1" @tap="_pdaHnby">混碾搬运</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -50,8 +42,6 @@
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
options1: this.generateArray('HNJ', 'DJW', '混碾机', '', 8),
|
||||
index1: '',
|
||||
options2: this.generateArray('YJ', 'SLW01', '压机', '号上料位', 10),
|
||||
index2: '',
|
||||
val1: null,
|
||||
@@ -73,19 +63,18 @@
|
||||
return array
|
||||
},
|
||||
clearUp () {
|
||||
this.index1 = ''
|
||||
this.index2 = ''
|
||||
this.val1 = null
|
||||
this.disabled1 = false
|
||||
},
|
||||
async _pdaHnby () {
|
||||
this.disabled1 = true
|
||||
if (!this.index1 || !this.index2 || !this.val1) {
|
||||
if (!this.index2 || !this.val1) {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await pdaHnby(this.index1, this.index2, this.val1)
|
||||
let res = await pdaHnby(this.index2, this.val1)
|
||||
this.disabled1 = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-5 button-default" @tap.stop="clearUp">清空</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1}" :disabled="disabled1" @tap="toSure1">入库</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1}" :disabled="disabled2" @tap="toSure2">出库</button>
|
||||
<button class="zd-col-6 button-default" @tap.stop="clearUp">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !val1}" :disabled="disabled1" @tap="toSure1">入库</button>
|
||||
<!-- <button class="zd-col-8 button-primary" :class="{'button-info': !val1}" :disabled="disabled2" @tap="toSure2">出库</button> -->
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user