Files
hht-tongbo-two/pages/WarehouseManage/ErrorOutUnlock.vue

81 lines
1.9 KiB
Vue
Raw Normal View History

2024-04-25 14:29:54 +08:00
<template>
<view class="zd_container">
2024-07-16 15:20:42 +08:00
<!-- <nav-bar title="异常出库解锁"></nav-bar> -->
<nav-bar :title="title"></nav-bar>
2024-04-25 14:29:54 +08:00
<view class="zd_content">
<view class="zd_wrapper">
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">木箱</span>
</view>
<view class="filter_input_wraper">
2024-05-13 17:09:27 +08:00
<search-box ref="scanChild" v-model="val1" @handleChange="handleChange1"
2024-04-25 14:29:54 +08:00
/>
</view>
</view>
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">点位</span>
</view>
<view class="filter_input_wraper">
<search-box v-model="val2" @handleChange="handleChange2" />
</view>
</view>
</view>
</view>
<view class="zd-row submitbar">
<button class="zd-col-22 btn-submit btn-success letter-30" :class="{'btn-info': !val1 && !val2}" :disabled="disabled1" @tap="_abnormalOut">解锁</button>
</view>
</view>
</template>
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {abnormalOut} from '@/utils/getData1.js'
export default {
components: {
NavBar,
SearchBox
},
data() {
return {
2024-07-16 15:20:42 +08:00
title: '',
2024-04-25 14:29:54 +08:00
val1: '',
val2: '',
disabled1: false
};
},
2024-07-16 15:20:42 +08:00
onLoad (options) {
this.title = options.title
},
2024-05-13 17:09:27 +08:00
mounted () {
this.$refs.scanChild.handleFocus()
},
2024-04-25 14:29:54 +08:00
methods: {
handleChange1 (e) {
},
handleChange2 (e) {
},
async _abnormalOut () {
this.disabled1 = true
if (!this.val1 && !this.val2) {
this.disabled1 = false
return
}
try {
let res = await abnormalOut(this.val1, this.val2)
this.disabled1 = false
2025-06-12 13:09:12 +08:00
this.val1 = ''
this.val2 = ''
2024-04-25 14:29:54 +08:00
uni.showToast({
title: res.message,
icon: 'none'
})
} catch (e) {
this.disabled1 = false
}
}
}
}
2024-05-11 17:37:01 +08:00
</script>