人工放行
This commit is contained in:
@@ -13,9 +13,10 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
<button class="zd-col-5 btn-submit btn-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !index}" :disabled="disabled" @tap="_confirmPass">确认</button>
|
||||
<button class="zd-col-8 btn-submit btn-success" @tap="btn_active=true">出库点放行</button>
|
||||
<button class="zd-col-4 btn-submit btn-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-4 btn-submit btn-success" :class="{'btn-info': !index}" :disabled="disabled" @tap="_confirmPass">确认</button>
|
||||
<button class="zd-col-6 btn-submit btn-success" @tap="btn_active=true">出库点放行</button>
|
||||
<button class="zd-col-8 btn-submit btn-success" :disabled="disabled" @tap="handleConfirm">异常出库点放行</button>
|
||||
</view>
|
||||
<view class="more_btns_wraper" :class="btn_active ? 'popshow' : 'pophide'">
|
||||
<view class="more_btns_items">
|
||||
@@ -31,7 +32,8 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {confirmPass, outPointPass} from '@/utils/getData3.js'
|
||||
import { confirmAction } from '@/utils/utils.js'
|
||||
import {confirmPass, outPointPass, outExcepionPointPass} from '@/utils/getData3.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -89,6 +91,25 @@
|
||||
this.disabled = false
|
||||
this.btn_active = false
|
||||
}
|
||||
},
|
||||
async handleConfirm() {
|
||||
const isConfirmed = await confirmAction("提示", "确定是否进行异常出库点放行?")
|
||||
if (isConfirmed) {
|
||||
this._outExcepionPointPass()
|
||||
}
|
||||
},
|
||||
async _outExcepionPointPass () {
|
||||
try {
|
||||
this.disabled = true
|
||||
let res = await outExcepionPointPass('CK2001')
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.disabled = false
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user