喷雾工序添加打印按钮
This commit is contained in:
@@ -81,6 +81,7 @@
|
|||||||
<button class="btn submit-button" :class="{'btn-disabled': pkId === ''}" :disabled="disabled2" @click="_issuePW('下发')">下发</button>
|
<button class="btn submit-button" :class="{'btn-disabled': pkId === ''}" :disabled="disabled2" @click="_issuePW('下发')">下发</button>
|
||||||
<button class="btn submit-button" :class="{'btn-disabled': pkId === ''}" :disabled="disabled3" @click="_moveFinish('过料完成')">过料完成</button>
|
<button class="btn submit-button" :class="{'btn-disabled': pkId === ''}" :disabled="disabled3" @click="_moveFinish('过料完成')">过料完成</button>
|
||||||
<button class="btn submit-button" :class="{'btn-disabled': pkId === '' || val3 === '' || val4 === '' || active === ''}" :disabled="disabled4" @click="_movePWVehicle('下料混合')">下料混合</button>
|
<button class="btn submit-button" :class="{'btn-disabled': pkId === '' || val3 === '' || val4 === '' || active === ''}" :disabled="disabled4" @click="_movePWVehicle('下料混合')">下料混合</button>
|
||||||
|
<button class="btn submit-button" :class="{'btn-disabled': pkId === ''}" @click="toPrint1">打印桶码</button>
|
||||||
<button class="btn submit-button" :class="{'btn-disabled': pkId === ''}" @click="groupDisk">组盘</button>
|
<button class="btn submit-button" :class="{'btn-disabled': pkId === ''}" @click="groupDisk">组盘</button>
|
||||||
<button class="btn submit-button" :class="{'btn-disabled': pkId === ''}" :disabled="disabled5" @click="_sendLK">发送立库</button>
|
<button class="btn submit-button" :class="{'btn-disabled': pkId === ''}" :disabled="disabled5" @click="_sendLK">发送立库</button>
|
||||||
<button class="btn submit-button" :class="{'btn-disabled': pkId === ''}" :disabled="disabled1" @click="_updateWorkStatus('99', '结束')">结束</button>
|
<button class="btn submit-button" :class="{'btn-disabled': pkId === ''}" :disabled="disabled1" @click="_updateWorkStatus('99', '结束')">结束</button>
|
||||||
@@ -302,6 +303,16 @@ export default {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled5 = false
|
this.disabled5 = false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
/** 打印桶码 */
|
||||||
|
toPrint1 () {
|
||||||
|
if (this.pkId) {
|
||||||
|
this.$store.dispatch('materObj1', this.pkObj)
|
||||||
|
this.$router.push({
|
||||||
|
path: '/ChengPinBarrelPrint',
|
||||||
|
query: {url: 'ProcessSpray'}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<section>
|
<section>
|
||||||
<nav-bar title="成品组桶标签打印"></nav-bar>
|
<nav-bar v-if="$route.query.url !== '' && $route.query.url !== undefined" :inner2="true" @goIn="goIn" title="成品组桶标签打印"></nav-bar>
|
||||||
|
<nav-bar v-else title="成品组桶标签打印"></nav-bar>
|
||||||
<section class="content mgt186" ref="content">
|
<section class="content mgt186" ref="content">
|
||||||
<div class="filter-wraper">
|
<div class="filter-wraper">
|
||||||
<search-box
|
<search-box
|
||||||
@@ -212,6 +213,9 @@ export default {
|
|||||||
record_order: this.val6,
|
record_order: this.val6,
|
||||||
is_offline_hand: this.option[this.active].value
|
is_offline_hand: this.option[this.active].value
|
||||||
}
|
}
|
||||||
|
if (this.$route.query.url === 'ProcessSpray') {
|
||||||
|
newObj = Object.assign({}, newObj, this.$store.getters.materObj1)
|
||||||
|
}
|
||||||
let res = await endProductconfirmGroupBucket(newObj)
|
let res = await endProductconfirmGroupBucket(newObj)
|
||||||
if (res.code === '1') {
|
if (res.code === '1') {
|
||||||
this.toast(res.desc)
|
this.toast(res.desc)
|
||||||
@@ -256,6 +260,12 @@ export default {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled2 = false
|
this.disabled2 = false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
goIn () {
|
||||||
|
if (this.$route.query.url === 'ProcessSpray') {
|
||||||
|
this.$store.dispatch('materObj1', {})
|
||||||
|
this.$router.push('/ProcessSpray')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user