|
@@ -5,7 +5,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="top-wrapper cx">
|
|
<view class="top-wrapper cx">
|
|
|
- <stepsNav></stepsNav>
|
|
|
|
|
|
|
+ <stepsNav :stepsList="stepsList"></stepsNav>
|
|
|
|
|
|
|
|
<view class="tab_box rx-sc">
|
|
<view class="tab_box rx-sc">
|
|
|
<view class="tab_item" :class="{active: tabType == 1}" @click="handTab(1)">基本信息</view>
|
|
<view class="tab_item" :class="{active: tabType == 1}" @click="handTab(1)">基本信息</view>
|
|
@@ -120,6 +120,8 @@
|
|
|
<script>
|
|
<script>
|
|
|
import bottomOperate from '../../components/bottomOperate.vue'
|
|
import bottomOperate from '../../components/bottomOperate.vue'
|
|
|
import stepsNav from '../../components/stepsNav.vue'
|
|
import stepsNav from '../../components/stepsNav.vue'
|
|
|
|
|
+
|
|
|
|
|
+ import { getTaskInstanceList } from '@/api/pda/workOrder.js'
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
bottomOperate,
|
|
bottomOperate,
|
|
@@ -129,6 +131,9 @@
|
|
|
return {
|
|
return {
|
|
|
title: '',
|
|
title: '',
|
|
|
tabType: 1,
|
|
tabType: 1,
|
|
|
|
|
+ id: null,
|
|
|
|
|
+
|
|
|
|
|
+ stepsList: [],
|
|
|
|
|
|
|
|
detailList: [{
|
|
detailList: [{
|
|
|
name: '挤压成型',
|
|
name: '挤压成型',
|
|
@@ -167,6 +172,9 @@
|
|
|
|
|
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
this.title = options.title
|
|
this.title = options.title
|
|
|
|
|
+
|
|
|
|
|
+ this.id = options.id
|
|
|
|
|
+ this.getSteps()
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -177,6 +185,15 @@
|
|
|
if (type != this.tabType) {
|
|
if (type != this.tabType) {
|
|
|
this.tabType = type
|
|
this.tabType = type
|
|
|
}
|
|
}
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ getSteps() {
|
|
|
|
|
+ getTaskInstanceList(this.id).then(res => {
|
|
|
|
|
+ this.stepsList = res
|
|
|
|
|
+ if(!this.title && this.stepsList.length) {
|
|
|
|
|
+ this.title = this.stepsList[0].taskTypeName
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|