|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <div class="ele-body">
|
|
|
|
|
|
|
+ <div>
|
|
|
<el-card shadow="never" v-loading="loading">
|
|
<el-card shadow="never" v-loading="loading">
|
|
|
<seek-page :seekList="seekList" @search="search"></seek-page>
|
|
<seek-page :seekList="seekList" @search="search"></seek-page>
|
|
|
<!-- <el-tabs v-model="tabValue" type="card" @tab-click="handleTabClick"> -->
|
|
<!-- <el-tabs v-model="tabValue" type="card" @tab-click="handleTabClick"> -->
|
|
@@ -58,7 +58,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:code="{ row }">
|
|
<template v-slot:code="{ row }">
|
|
|
- <el-link type="primary" :underline="false" @click="goDetail(row)">
|
|
|
|
|
|
|
+ <el-link type="primary" :underline="false" @click="handelRouterTo('done', row)">
|
|
|
{{ row.code }}
|
|
{{ row.code }}
|
|
|
</el-link>
|
|
</el-link>
|
|
|
</template>
|
|
</template>
|
|
@@ -172,11 +172,12 @@
|
|
|
<!-- 操作列 -->
|
|
<!-- 操作列 -->
|
|
|
<template v-slot:action="{ row }">
|
|
<template v-slot:action="{ row }">
|
|
|
<el-link
|
|
<el-link
|
|
|
|
|
+ v-if="way == 'todo'"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
:underline="false"
|
|
:underline="false"
|
|
|
- @click="handelRouterTo(row)"
|
|
|
|
|
|
|
+ @click="handelRouterTo('todo', row)"
|
|
|
>
|
|
>
|
|
|
- 详情
|
|
|
|
|
|
|
+ 报工
|
|
|
</el-link>
|
|
</el-link>
|
|
|
<!-- <template v-if="activeName == 'second'">
|
|
<!-- <template v-if="activeName == 'second'">
|
|
|
<el-link
|
|
<el-link
|
|
@@ -281,7 +282,12 @@
|
|
|
components: {
|
|
components: {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ props: {
|
|
|
|
|
+ way: {
|
|
|
|
|
+ type: String,
|
|
|
|
|
+ default: 'todo'
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
activeName: 'first',
|
|
activeName: 'first',
|
|
@@ -485,7 +491,7 @@
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
prop: 'code',
|
|
prop: 'code',
|
|
|
- // slot: 'code',
|
|
|
|
|
|
|
+ slot: 'code',
|
|
|
label: '生产工单号',
|
|
label: '生产工单号',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
minWidth: 110,
|
|
minWidth: 110,
|
|
@@ -835,8 +841,8 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
- handelRouterTo(row) {
|
|
|
|
|
- window.history.pushState(null, '', '/page-mes/produceOrder?businessId=' + row.id);
|
|
|
|
|
|
|
+ handelRouterTo(way, row) {
|
|
|
|
|
+ window.history.pushState(null, '', '/page-mes/produceOrder?isWt=true&way=' + way + '&item=' + JSON.stringify(row));
|
|
|
// this.$router.push(path);
|
|
// this.$router.push(path);
|
|
|
},
|
|
},
|
|
|
//派单
|
|
//派单
|
|
@@ -983,7 +989,8 @@
|
|
|
queryTermination: this.tabValue == '10' ? 1 : 0,
|
|
queryTermination: this.tabValue == '10' ? 1 : 0,
|
|
|
pageNum: page,
|
|
pageNum: page,
|
|
|
size: limit,
|
|
size: limit,
|
|
|
- ...this.sort
|
|
|
|
|
|
|
+ ...this.sort,
|
|
|
|
|
+ statusList: this.way == 'todo' ? [4, 5, 7] : [6, 10]
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
// 只有 tabValue == 1 才可能需要 workCenterIds 字段,可根据业务决定是否添加
|
|
// 只有 tabValue == 1 才可能需要 workCenterIds 字段,可根据业务决定是否添加
|
|
@@ -993,7 +1000,7 @@
|
|
|
|
|
|
|
|
const URL = this.tabValue == 1 ? getMyPage : getPage;
|
|
const URL = this.tabValue == 1 ? getMyPage : getPage;
|
|
|
|
|
|
|
|
- let res = await URL({ ...params, statusList });
|
|
|
|
|
|
|
+ let res = await URL({ ...params });
|
|
|
|
|
|
|
|
this.loadTaskNames(res.list);
|
|
this.loadTaskNames(res.list);
|
|
|
|
|
|
|
@@ -1225,9 +1232,9 @@
|
|
|
/* 刷新表格 */
|
|
/* 刷新表格 */
|
|
|
reload(where = {}) {
|
|
reload(where = {}) {
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
- where.statusList = (
|
|
|
|
|
- where.status || this.statusOpt[this.activeName][0].value
|
|
|
|
|
- ).split(',');
|
|
|
|
|
|
|
+ // where.statusList = (
|
|
|
|
|
+ // where.status || this.statusOpt[this.activeName][0].value
|
|
|
|
|
+ // ).split(',');
|
|
|
this.$refs.table.reload({ page: 1, where });
|
|
this.$refs.table.reload({ page: 1, where });
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|