生产发货
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !dataList.length}" :disabled="disabled1" @tap="_stoutConfirm">出库确认</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled2" @tap="_stdeliverApply">发货申请</button>
|
||||
<button class="submit-button" @tap="_stivtQuery(val1, val2)">查询</button>
|
||||
</view>
|
||||
</view>
|
||||
@@ -60,7 +61,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {stivtQuery, stoutConfirm, stoutPrint} from '@/utils/getData1.js'
|
||||
import {stivtQuery, stoutConfirm, stoutPrint, stdeliverApply} from '@/utils/getData1.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -73,7 +74,8 @@
|
||||
dataList: [],
|
||||
pkId: '',
|
||||
pkObj: {},
|
||||
disabled1: false
|
||||
disabled1: false,
|
||||
disabled2: false
|
||||
};
|
||||
},
|
||||
created () {
|
||||
@@ -106,6 +108,23 @@
|
||||
this.disabled1 = false
|
||||
}
|
||||
},
|
||||
async _stdeliverApply () {
|
||||
this.disabled2 = true
|
||||
if (!this.val1 || !this.val2) {
|
||||
this.disabled2 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await stdeliverApply(this.val1, this.val2)
|
||||
this.disabled2 = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled2 = false
|
||||
}
|
||||
},
|
||||
async _stoutPrint () {
|
||||
this.disabled1 = true
|
||||
if (!this.pkId) {
|
||||
|
||||
Reference in New Issue
Block a user