hujiaokongzhou
This commit is contained in:
@@ -62,7 +62,8 @@
|
||||
<uni-load-more color="#007AFF" iconType="circle" :status="status" :icon-size="14" :content-text="contentText" v-if="dataList.length > 0"/>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled1" @tap="_needEmptyAxis">呼叫空轴</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled1" @tap="_needEmptyAxis">呼叫</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled5" @tap="_needEmptyVehicle">呼叫空轴</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled2" @tap="_confirmBlanking">确认下卷</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled3" @tap="_finishBlanking">下卷完成</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled4" @tap="_finish">结束</button>
|
||||
@@ -74,7 +75,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {queryRawFoilList, needEmptyAxis, confirmBlanking, finishBlanking, finish} from '@/utils/getData1.js'
|
||||
import {queryRawFoilList, needEmptyAxis, needEmptyVehicle, confirmBlanking, finishBlanking, finish} from '@/utils/getData1.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -91,6 +92,7 @@
|
||||
disabled2: false,
|
||||
disabled3: false,
|
||||
disabled4: false,
|
||||
disabled5: false,
|
||||
reload: false,
|
||||
status: 'more',
|
||||
contentText: {
|
||||
@@ -163,6 +165,26 @@
|
||||
this.disabled1 = false
|
||||
}
|
||||
},
|
||||
async _needEmptyVehicle () {
|
||||
this.disabled5 = true
|
||||
if (!this.pkId) {
|
||||
this.disabled5 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await needEmptyVehicle(this.pkObj)
|
||||
this.disabled5 = false
|
||||
this.pkId = ''
|
||||
this.pkObj = {}
|
||||
this.searchList()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled5 = false
|
||||
}
|
||||
},
|
||||
async _confirmBlanking () {
|
||||
this.disabled2 = true
|
||||
if (!this.pkId) {
|
||||
|
||||
Reference in New Issue
Block a user