生箔工序添加创建工单
This commit is contained in:
@@ -73,8 +73,8 @@
|
||||
<uni-load-more color="#007AFF" iconType="circle" :status="status" :icon-size="14" :content-text="contentText" v-if="dataList.length > 0"/>
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
<button class="zd-col-3 btn-submit btn-default" @tap="cleanUp">清空</button>
|
||||
<button class="zd-col-5 btn-submit btn-success letter-30" :disabled="disabled1" @tap="_needEmptyAxisTest">呼叫</button>
|
||||
<button class="zd-col-3 btn-submit btn-success" :disabled="disabled1" @tap="_needEmptyAxisTest">呼叫</button>
|
||||
<button class="zd-col-5 btn-submit btn-success" :disabled="disabled4" @tap="_createOrder">创建工单</button>
|
||||
<button class="zd-col-5 btn-submit btn-success" :class="{'btn-info': !(val1 && !pkId)}" :disabled="disabled5" @tap="_needEmptyVehicle">呼叫空轴</button>
|
||||
<button class="zd-col-5 btn-submit btn-success" :class="{'btn-info': !pkId}" :disabled="disabled2" @tap="_confirmBlanking">准备就绪</button>
|
||||
<button class="zd-col-5 btn-submit btn-success" :class="{'btn-info': !pkId}" :disabled="disabled3" @tap="_finishBlanking">确认下卷</button>
|
||||
@@ -86,7 +86,7 @@
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {queryRawFoilList, needEmptyVehicle, confirmBlanking, finishBlanking, finish} from '@/utils/getData1.js'
|
||||
import {needEmptyAxisTest} from '@/utils/getData3.js'
|
||||
import {needEmptyAxisTest, createOrder} from '@/utils/getData3.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -173,6 +173,20 @@
|
||||
this.disabled1 = false
|
||||
}
|
||||
},
|
||||
/** 创建工单 */
|
||||
async _createOrder () {
|
||||
this.disabled4 = true
|
||||
try {
|
||||
let res = await createOrder(this.val1, this.val2)
|
||||
this.disabled4 = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled4 = false
|
||||
}
|
||||
},
|
||||
async _needEmptyVehicle () {
|
||||
this.disabled5 = true
|
||||
if (!(this.val1 && !this.pkId)) {
|
||||
|
||||
Reference in New Issue
Block a user