|
@@ -18,7 +18,7 @@
|
|
|
v-for="(item, index) in routeList"
|
|
v-for="(item, index) in routeList"
|
|
|
:key="index"
|
|
:key="index"
|
|
|
:title="item.taskTypeName"
|
|
:title="item.taskTypeName"
|
|
|
- @click.native="handIdx(index, item.taskId)"
|
|
|
|
|
|
|
+ @click.native="handIdx(index, item)"
|
|
|
:description="desIndex == index ? '此处' : ''"
|
|
:description="desIndex == index ? '此处' : ''"
|
|
|
></el-step>
|
|
></el-step>
|
|
|
</el-steps>
|
|
</el-steps>
|
|
@@ -27,13 +27,13 @@
|
|
|
<el-tab-pane label="投料详情">
|
|
<el-tab-pane label="投料详情">
|
|
|
<feedDetails
|
|
<feedDetails
|
|
|
:routeObj="routeObj"
|
|
:routeObj="routeObj"
|
|
|
- :curTaskId="curTaskId"
|
|
|
|
|
|
|
+ :curTaskObj="curTaskObj"
|
|
|
></feedDetails>
|
|
></feedDetails>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="报工详情">
|
|
<el-tab-pane label="报工详情">
|
|
|
<jobDetails
|
|
<jobDetails
|
|
|
:routeObj="routeObj"
|
|
:routeObj="routeObj"
|
|
|
- :curTaskId="curTaskId"
|
|
|
|
|
|
|
+ :curTaskObj="curTaskObj"
|
|
|
></jobDetails>
|
|
></jobDetails>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
@@ -64,7 +64,7 @@
|
|
|
routeList: [],
|
|
routeList: [],
|
|
|
activeIndex: 0,
|
|
activeIndex: 0,
|
|
|
desIndex: 0,
|
|
desIndex: 0,
|
|
|
- curTaskId: null
|
|
|
|
|
|
|
+ curTaskObj: null
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -81,9 +81,9 @@
|
|
|
this.desIndex = index;
|
|
this.desIndex = index;
|
|
|
|
|
|
|
|
if (this.routeObj.taskId != -2) {
|
|
if (this.routeObj.taskId != -2) {
|
|
|
- this.curTaskId = this.routeObj.taskId;
|
|
|
|
|
|
|
+ this.curTaskObj = JSON.parse(JSON.stringify( this.routeObj));
|
|
|
} else {
|
|
} else {
|
|
|
- this.curTaskId = this.routeList[0].taskId;
|
|
|
|
|
|
|
+ this.curTaskObj = JSON.parse(JSON.stringify( this.routeList[0]));
|
|
|
this.desIndex = 0;
|
|
this.desIndex = 0;
|
|
|
}
|
|
}
|
|
|
this.activeIndex = index;
|
|
this.activeIndex = index;
|
|
@@ -95,9 +95,9 @@
|
|
|
this.$emit('closeRoute');
|
|
this.$emit('closeRoute');
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- handIdx(index, taskId) {
|
|
|
|
|
- this.curTaskId = taskId;
|
|
|
|
|
- if (taskId == -2) {
|
|
|
|
|
|
|
+ handIdx(index, item) {
|
|
|
|
|
+ this.curTaskObj = JSON.parse(JSON.stringify(item));
|
|
|
|
|
+ if (item.taskId == -2) {
|
|
|
this.$message.info('完结状态不能点击');
|
|
this.$message.info('完结状态不能点击');
|
|
|
} else {
|
|
} else {
|
|
|
this.desIndex = index;
|
|
this.desIndex = index;
|