喷雾工序添加打印按钮

This commit is contained in:
2022-07-13 11:30:34 +08:00
parent a66d008fe4
commit 8ce47f78ee
2 changed files with 22 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
<template>
<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">
<div class="filter-wraper">
<search-box
@@ -212,6 +213,9 @@ export default {
record_order: this.val6,
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)
if (res.code === '1') {
this.toast(res.desc)
@@ -256,6 +260,12 @@ export default {
} catch (e) {
this.disabled2 = false
}
},
goIn () {
if (this.$route.query.url === 'ProcessSpray') {
this.$store.dispatch('materObj1', {})
this.$router.push('/ProcessSpray')
}
}
}
}