change
This commit is contained in:
@@ -67,8 +67,8 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1 || !this.currentData.group_id}" :disabled="disabled" @tap="_confirm('2')">强制确认</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1 || !this.currentData.group_id}" :disabled="disabled" @tap="_confirm('1')">出库确认</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1 || !this.currentData.group_id}" :disabled="disabled" @tap="_outstoreconfirm('2')">强制确认</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1 || !this.currentData.group_id}" :disabled="disabled" @tap="_outstoreconfirm('1')">出库确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -76,7 +76,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {iosOutgetVehicleMaterial, confirm} from '@/utils/getData3.js'
|
||||
import {iosOutgetVehicleMaterial, outstoreconfirm} from '@/utils/getData3.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -117,14 +117,14 @@
|
||||
this.currentData = {}
|
||||
}
|
||||
},
|
||||
async _confirm (type) {
|
||||
async _outstoreconfirm (type) {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.currentData.group_id) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await confirm(this.currentData.group_id, this.val1, type)
|
||||
let res = await outstoreconfirm(this.currentData.group_id, this.val1, type)
|
||||
if (res.code === '200') {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
|
||||
Reference in New Issue
Block a user