生箔工序添加创建工单
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"/>
|
<uni-load-more color="#007AFF" iconType="circle" :status="status" :icon-size="14" :content-text="contentText" v-if="dataList.length > 0"/>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row submitbar">
|
<view class="zd-row submitbar">
|
||||||
<button class="zd-col-3 btn-submit btn-default" @tap="cleanUp">清空</button>
|
<button class="zd-col-3 btn-submit btn-success" :disabled="disabled1" @tap="_needEmptyAxisTest">呼叫</button>
|
||||||
<button class="zd-col-5 btn-submit btn-success letter-30" :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': !(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="disabled2" @tap="_confirmBlanking">准备就绪</button>
|
||||||
<button class="zd-col-5 btn-submit btn-success" :class="{'btn-info': !pkId}" :disabled="disabled3" @tap="_finishBlanking">确认下卷</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 NavBar from '@/components/NavBar.vue'
|
||||||
import SearchBox from '@/components/SearchBox.vue'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import {queryRawFoilList, needEmptyVehicle, confirmBlanking, finishBlanking, finish} from '@/utils/getData1.js'
|
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 {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -173,6 +173,20 @@
|
|||||||
this.disabled1 = false
|
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 () {
|
async _needEmptyVehicle () {
|
||||||
this.disabled5 = true
|
this.disabled5 = true
|
||||||
if (!(this.val1 && !this.pkId)) {
|
if (!(this.val1 && !this.pkId)) {
|
||||||
|
|||||||
@@ -88,6 +88,14 @@ export const needEmptyAxisTest = (code, name) => request({
|
|||||||
url: 'api/pda/raw/needEmptyAxisTest',
|
url: 'api/pda/raw/needEmptyAxisTest',
|
||||||
data: {
|
data: {
|
||||||
point_code: code,
|
point_code: code,
|
||||||
container_name: name,
|
container_name: name
|
||||||
|
}
|
||||||
|
})
|
||||||
|
// 创建工单
|
||||||
|
export const createOrder = (code, name) => request({
|
||||||
|
url: 'api/pda/raw/createOrder',
|
||||||
|
data: {
|
||||||
|
point_code: code,
|
||||||
|
container_name: name
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
Reference in New Issue
Block a user