|
|
@@ -10,10 +10,13 @@
|
|
|
</view>
|
|
|
<view :class="[direction==='column'?'uni-steps__column-check':'uni-steps__row-check']"
|
|
|
v-if="index === active">
|
|
|
- <view class="uni-steps__row-circle activeRound" :class="[ taskId == item.taskId ?'circleActive': 'activeRound']">{{index + 1}}</view>
|
|
|
+ <view class="uni-steps__row-circle activeRound"
|
|
|
+ :class="[ taskId == item.taskId ?'circleActive': 'activeRound']">{{index + 1}}</view>
|
|
|
</view>
|
|
|
- <view :class="[direction=='column'?'uni-steps__column-circle': taskId == item.taskId ?'circleActive' :'uni-steps__row-circle']" v-else>
|
|
|
- {{index + 1}}
|
|
|
+ <view
|
|
|
+ :class="[direction=='column'?'uni-steps__column-circle': taskId == item.taskId ?'circleActive' :'uni-steps__row-circle']"
|
|
|
+ v-else>
|
|
|
+ {{index + 1}}
|
|
|
</view>
|
|
|
<view
|
|
|
:class="[direction==='column'?'uni-steps__column-line':'uni-steps__row-line',direction==='column'?'uni-steps__column-line--after':'uni-steps__row-line--after']"
|
|
|
@@ -72,12 +75,13 @@
|
|
|
data() {
|
|
|
return {
|
|
|
taskId: null,
|
|
|
+ clientEnvironmentId: uni.getStorageSync("userInfo") && uni.getStorageSync("userInfo").clientEnvironmentId,
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
toStep(item, index) {
|
|
|
-
|
|
|
- if(item.taskId == -2) {
|
|
|
+
|
|
|
+ if (item.taskId == -2) {
|
|
|
uni.showToast({
|
|
|
title: "工序已到完结状态",
|
|
|
icon: "none",
|
|
|
@@ -85,16 +89,25 @@
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
- if(item.count > 0 || index == this.active) {
|
|
|
+ if(this.clientEnvironmentId == 3) { // 碳谷
|
|
|
this.taskId = item.taskId
|
|
|
- this.$emit('selectStep', item);
|
|
|
+ this.$emit('selectStep', item);
|
|
|
} else {
|
|
|
- uni.showToast({
|
|
|
- title: "还未执行到次工序",
|
|
|
- icon: "none",
|
|
|
- })
|
|
|
+ if(item.count > 0 || index == this.active) {
|
|
|
+ this.taskId = item.taskId
|
|
|
+ this.$emit('selectStep', item);
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: "还未执行到次工序",
|
|
|
+ icon: "none",
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -288,7 +301,7 @@
|
|
|
background: $theme-color;
|
|
|
color: #fff;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.circleActive {
|
|
|
border: 1px solid #FFA929;
|
|
|
background: #FFA929;
|