修改空轴回库、呼叫套轴,add余轴退回
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<!-- <nav-bar title="分切呼叫套轴"></nav-bar> -->
|
||||
<!-- <nav-bar title="呼叫套轴"></nav-bar> -->
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
@@ -55,8 +55,9 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
<button class="zd-col-6 btn-submit btn-default letter-30" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-15 btn-submit btn-success letter-30" :class="{'btn-info': !index1 || !index2 || (!upL && !upR) || !index3 || !index4 || !qty}" :disabled="disabled" @tap="_callPaperShaft">送轴</button>
|
||||
<button class="zd-col-5 btn-submit btn-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !index1 || !index2 || (!upL && !upR) || !index3 || !index4 || !qty}" :disabled="disabled" @tap="_callPaperShaft">自动送轴</button>
|
||||
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !index1 || !index2 || (!upL && !upR) || !index3 || !index4}" :disabled="disabled1" @tap="_labourShaftBack">人工送轴</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -65,7 +66,7 @@
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {queryProductArea, queryDeviceByarea} from '@/utils/getData2.js'
|
||||
import {paperQueryPaperMaterial, callPaperShaft} from '@/utils/getData3.js'
|
||||
import {paperQueryPaperMaterial, callPaperShaft, labourShaftBack} from '@/utils/getData3.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -88,7 +89,8 @@
|
||||
upL: '',
|
||||
upR: '',
|
||||
qty: null,
|
||||
disabled: false
|
||||
disabled: false,
|
||||
disabled1: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
@@ -127,6 +129,7 @@
|
||||
this.index4 = ''
|
||||
this.qty = null
|
||||
this.disabled = false
|
||||
this.disabled1 = false
|
||||
},
|
||||
async _callPaperShaft () {
|
||||
this.disabled = true
|
||||
@@ -186,6 +189,33 @@
|
||||
},
|
||||
showSelector2 () {
|
||||
this.newaxis2 = this.axis
|
||||
},
|
||||
async _labourShaftBack () {
|
||||
this.disabled1 = true
|
||||
if (!this.index1 || !this.index2 || (!this.upL && !this.upR) || !this.index3 || !this.index4) {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
let upLT = ''
|
||||
let upRT = ''
|
||||
this.axis.map(el => {
|
||||
if (el.value === this.upL) {
|
||||
upLT = el.text
|
||||
}
|
||||
if (el.value === this.upR) {
|
||||
upRT = el.text
|
||||
}
|
||||
})
|
||||
try {
|
||||
let res = await labourShaftBack(this.index1, this.index2, upLT, this.upL, upRT, this.upR, this.index3, this.index4)
|
||||
this.disabled1 = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user