jiekou
This commit is contained in:
@@ -6,30 +6,36 @@
|
|||||||
<view class="filter_item">
|
<view class="filter_item">
|
||||||
<view class="filter_label">子托盘号</view>
|
<view class="filter_label">子托盘号</view>
|
||||||
<view class="filter_input_wraper">
|
<view class="filter_input_wraper">
|
||||||
<input type="text" class="filter_input" v-model="val2">
|
<search-box
|
||||||
|
v-model="val1"
|
||||||
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="filter_item">
|
<view class="filter_item">
|
||||||
<view class="filter_label">母托盘号</view>
|
<view class="filter_label">母托盘号</view>
|
||||||
<view class="filter_input_wraper">
|
<view class="filter_input_wraper">
|
||||||
<input type="text" class="filter_input" v-model="val3">
|
<search-box
|
||||||
|
v-model="val2"
|
||||||
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar_new">
|
<view class="zd-row submit-bar_new">
|
||||||
<button class="zd-col-5 submit-button_c" @tap="toClear">清空</button>
|
<button class="zd-col-5 submit-button_c" @tap="toClear">清空</button>
|
||||||
<button class="zd-col-13 submit-button_new" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled" @tap="_coatedWireIntoStorageTask">确认</button>
|
<button class="zd-col-13 submit-button_new" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled" @tap="_zpjb">确认</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import {coatedWireIntoStorageTaskShow, coatedWireIntoStorageTask} from '@/utils/getData2.js'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
|
import {zpjb} from '@/utils/getData1.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar
|
NavBar,
|
||||||
|
SearchBox
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -37,13 +43,8 @@
|
|||||||
disabled: false,
|
disabled: false,
|
||||||
val1: '',
|
val1: '',
|
||||||
val2: '',
|
val2: '',
|
||||||
val3: '',
|
|
||||||
val4: ''
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created () {
|
|
||||||
this._coatedWireIntoStorageTaskShow()
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
textState (e) {
|
textState (e) {
|
||||||
switch (e) {
|
switch (e) {
|
||||||
@@ -64,29 +65,24 @@
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/** grid查询 */
|
|
||||||
async _coatedWireIntoStorageTaskShow () {
|
|
||||||
let res = await coatedWireIntoStorageTaskShow()
|
|
||||||
this.dataList = [...res]
|
|
||||||
},
|
|
||||||
toClear () {
|
toClear () {
|
||||||
this.val1 = ''
|
this.val1 = ''
|
||||||
this.val2 = ''
|
this.val2 = ''
|
||||||
},
|
},
|
||||||
async _coatedWireIntoStorageTask () {
|
async _zpjb () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.val1 || !this.val2) {
|
if (!this.val1 || !this.val2) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await coatedWireIntoStorageTask(this.val1, this.val2)
|
let res = await zpjb(this.val1, this.val2)
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
this._coatedWireIntoStorageTaskShow()
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
|
this.toClear()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user