刻字工序

This commit is contained in:
2023-07-28 21:24:53 +08:00
parent e1797b9620
commit ab8b5e9e1b
6 changed files with 57 additions and 43 deletions

View File

@@ -11,7 +11,7 @@
<router-link :to="i.router" :class="{'router-link-active': i.router === $route.path}">{{i.label}}</router-link>
</li>
<li v-show="Number($route.meta.guidePath) >= 4" v-for="i in menus2" :key="i.index">
<router-link :to="i.router" :class="{'router-link-active': i.router === $route.path}">{{i.label}}</router-link>
<router-link :to="i.router" :class="{'router-link-active': i.router === $route.path || i.router2 === $route.path}">{{i.label}}</router-link>
</li>
</ul>
</div>
@@ -50,11 +50,8 @@ export default {
menus2: [
{
label: '刻字工序',
router: '/letteringprocess'
},
{
label: '刻字机选择',
router: '/letteringmachineselect'
router: '/letteringprocess',
router2: '/letteringmachineselect'
},
{
label: '任务列表',

View File

@@ -14,10 +14,11 @@
<input type="number" class="filter-input" v-model="$route.query.weight" disabled>
</div>
</div>
<div class="search-item">
<div class="search-item flex-end">
<button class="button button--primary" :class="{'button--defalut': dataList.length === 0}" @click="distribute">平均分配</button>
<button class="button button--primary" :class="{'button--defalut': dataList.length === 0}" @click="toCancle">取消分配</button>
<button class="button button--primary" :disabled="disabled1" :class="{'button--defalut': checkArr.length === 0}" @click="_kzSubmitkz">确认上料</button>
<button class="button button--primary" :disabled="disabled1" :class="{'button--defalut': checkArr.length === 0}" @click="_kzSubmitkz">刻字机选择</button>
<button class="button button--primary" @click="toClose">关闭</button>
</div>
</div>
</div>
@@ -139,6 +140,9 @@ export default {
toRadio (e) {
e.checked = !e.checked
this.checkArr = this.dataList.filter(i => { return i.checked === true })
},
toClose () {
this.$router.push('/letteringprocess')
}
}
}
@@ -147,9 +151,9 @@ export default {
<style lang="stylus" scoped>
.search-item
&:nth-child(1), &:nth-child(2)
width 29%
width 24%
&:nth-child(3)
width 38%
width 48%
.search-label
width .55rem
.filter_input_wraper

View File

@@ -45,6 +45,7 @@
<script>
import { bypda } from '@config/getData2.js'
export default {
name: 'letteringprocess',
data () {
return {
dataList: [],
@@ -59,6 +60,14 @@ export default {
created () {
this._bypda()
},
beforeRouteLeave (to, from, next) {
if (to.path === '/home' || to.path === '/login' || to.path === '/letteringtasklist') {
this.$store.dispatch('setKeepAlive', [])
}
next()
},
activated () {
},
methods: {
// grid
async _bypda () {