fenqie
This commit is contained in:
@@ -23,9 +23,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row submitbar">
|
<view class="zd-row submitbar">
|
||||||
<button class="zd-col-5 btn-submit btn-default letter-30" @tap="clearUp">清空</button>
|
<button class="zd-col-6 btn-submit btn-default letter-30" @tap="clearUp">清空</button>
|
||||||
<button class="zd-col-8 btn-submit btn-success letter-30" :class="{'btn-info': !index || index2 !== 'B2'}" :disabled="disabled" @tap="toSure(2)">暂存区</button>
|
<button class="zd-col-15 btn-submit btn-success letter-30" :class="{'btn-info': !index}" :disabled="disabled" @tap="toSure(1)">内包间</button>
|
||||||
<button class="zd-col-8 btn-submit btn-success letter-30" :class="{'btn-info': !index}" :disabled="disabled" @tap="toSure(1)">内包间</button>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -33,7 +32,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import {queryProductArea} from '@/utils/getData2.js'
|
import {queryProductArea} from '@/utils/getData2.js'
|
||||||
import {getCutCacheAgvPoints, sendSubVolumeToNBJ, queryCacheDownSubVolumeInfos, markingFoilSlittingToCache} from '@/utils/getData3.js'
|
import {getCutCacheAgvPoints, sendSubVolumeToNBJ, queryCacheDownSubVolumeInfos} from '@/utils/getData3.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar
|
NavBar
|
||||||
@@ -128,20 +127,6 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (type === 2) {
|
|
||||||
uni.showModal({
|
|
||||||
title: '提示',
|
|
||||||
content: '确认是否创建送到暂存区AGV任务?',
|
|
||||||
confirmColor: '#ff6a00',
|
|
||||||
success: (res) => {
|
|
||||||
if (res.confirm) {
|
|
||||||
this._markingFoilSlittingToCache()
|
|
||||||
} else if (res.cancel) {
|
|
||||||
this.disabled = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
async _sendSubVolumeToNBJ () {
|
async _sendSubVolumeToNBJ () {
|
||||||
try {
|
try {
|
||||||
@@ -155,18 +140,6 @@
|
|||||||
this.disabled = false
|
this.disabled = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async _markingFoilSlittingToCache () {
|
|
||||||
try {
|
|
||||||
let res = await markingFoilSlittingToCache(this.index)
|
|
||||||
uni.showToast({
|
|
||||||
title: res.message,
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
this.disabled = false
|
|
||||||
} catch (e) {
|
|
||||||
this.disabled = false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
clearUp () {
|
clearUp () {
|
||||||
this.index = ''
|
this.index = ''
|
||||||
this.index2 = ''
|
this.index2 = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user