|
@@ -2,6 +2,7 @@
|
|
|
<div class="hc-page-box">
|
|
|
<hc-new-card>
|
|
|
<div class="hc-steps-view">
|
|
|
+ <el-button type="primary" hc-btn style="opacity: 0; cursor: pointer;" @click="onSwitchClick">切换验收通过状态</el-button>
|
|
|
<el-steps :active="stepsKey" align-center>
|
|
|
<el-step title="验收通过" @click="stepClick(0)" />
|
|
|
<el-step title="四性检测通过" @click="stepClick(1)" />
|
|
@@ -11,7 +12,7 @@
|
|
|
</div>
|
|
|
|
|
|
<div v-if="stepsKey === 0" class="hc-body-center-box">
|
|
|
- <el-button type="primary" hc-btn @click="isExpertAcceptance = !isExpertAcceptance">切换验收通过状态</el-button>
|
|
|
+ <!-- <el-button type="primary" hc-btn @click="isExpertAcceptance = !isExpertAcceptance">切换验收通过状态</el-button> -->
|
|
|
<div v-if="!isExpertAcceptance" class="hc-content-box">
|
|
|
<div class="mb-5 text-gray">当前项目档案未通过验收,未达到移交条件</div>
|
|
|
<el-button type="primary" hc-btn style="width: 268px;height: 68px;font-weight: bold;" @click="toTransferInitial">去申请验收</el-button>
|
|
@@ -23,8 +24,8 @@
|
|
|
</div>
|
|
|
|
|
|
<div v-if="stepsKey === 1" class="hc-body-center-box">
|
|
|
- <el-button type="primary" hc-btn @click="changeIsCustodyTest">切换四性检测状态</el-button>
|
|
|
- <el-button type="primary" hc-btn @click="isTesting = !isTesting">切换四性检测中状态</el-button>
|
|
|
+ <!-- <el-button type="primary" hc-btn @click="changeIsCustodyTest">切换四性检测状态</el-button>
|
|
|
+ <el-button type="primary" hc-btn @click="isTesting = !isTesting">切换四性检测中状态</el-button> -->
|
|
|
<div v-if="!isCustodyTest" class="hc-content-box">
|
|
|
<img :src="bgColor" alt="">
|
|
|
|
|
@@ -45,7 +46,7 @@
|
|
|
</div>
|
|
|
|
|
|
<div v-if="stepsKey === 2 && stepsKeys === 1 && !isShowMoveSubmit " class="hc-body-center-box">
|
|
|
- <el-button type="primary" hc-btn @click="isOverTest = !isOverTest">切换检测通过状态</el-button>
|
|
|
+ <!-- <el-button type="primary" hc-btn @click="isOverTest = !isOverTest">切换检测通过状态</el-button> -->
|
|
|
<div v-if="isOverTest" class="hc-content-box">
|
|
|
<img :src="bgColor" alt="">
|
|
|
<div class="mb-5 text-3xl text-gray">
|
|
@@ -194,6 +195,71 @@ const stepsKeys = ref(1)
|
|
|
const stepsKeysClick = (val) => {
|
|
|
stepsKeys.value = val
|
|
|
}
|
|
|
+const clickCount = ref(0)
|
|
|
+const onSwitchClick = () => {
|
|
|
+ clickCount.value++
|
|
|
+
|
|
|
+ switch (clickCount.value) {
|
|
|
+ case 1:
|
|
|
+ // 第一次点击:stepsKey为0,isExpertAcceptance为true
|
|
|
+ stepsKey.value = 0
|
|
|
+ isExpertAcceptance.value = true
|
|
|
+ break
|
|
|
+ case 2:
|
|
|
+ // 第二次点击:stepsKey为1,isCustodyTest为false
|
|
|
+ stepsKey.value = 1
|
|
|
+ isCustodyTest.value = false
|
|
|
+ break
|
|
|
+ case 3:
|
|
|
+ // 第三次点击:stepsKey为1,isCustodyTest为true,istesting为false
|
|
|
+ stepsKey.value = 1
|
|
|
+ isCustodyTest.value = true
|
|
|
+ isTesting.value = false
|
|
|
+ break
|
|
|
+ case 4:
|
|
|
+ // 第四次点击:stepsKey为1,isCustodyTest为true,istesting为false
|
|
|
+ stepsKey.value = 1
|
|
|
+ isCustodyTest.value = true
|
|
|
+ isTesting.value = false
|
|
|
+ break
|
|
|
+ case 5:
|
|
|
+ // 第五次点击:stepsKey为2,stepsKeys为1,isOverTest为false
|
|
|
+ stepsKey.value = 2
|
|
|
+ stepsKeys.value = 1
|
|
|
+ isOverTest.value = false
|
|
|
+ break
|
|
|
+ case 6:
|
|
|
+ // 第六次点击:stepsKey为2,stepsKeys为1,isOverTest为true
|
|
|
+ stepsKey.value = 2
|
|
|
+ stepsKeys.value = 1
|
|
|
+ isOverTest.value = true
|
|
|
+ break
|
|
|
+ case 7:
|
|
|
+ // 第七次点击:显示移交提交组件
|
|
|
+ stepsKey.value = 2
|
|
|
+ stepsKeys.value = 1
|
|
|
+ isShowMoveSubmit.value = true
|
|
|
+ break
|
|
|
+ case 8:
|
|
|
+ // 第八次次点击:显示移交提交组件
|
|
|
+ stepsKey.value = 3
|
|
|
+ isShowMoveSubmit.value = false
|
|
|
+ break
|
|
|
+ case 9:
|
|
|
+ // 第八次次点击:显示移交提交组件
|
|
|
+ stepsKey.value = 0
|
|
|
+ isExpertAcceptance.value = false
|
|
|
+ break
|
|
|
+ default:
|
|
|
+ // 重置计数,重新开始循环
|
|
|
+ clickCount.value = 0
|
|
|
+ isExpertAcceptance.value = false
|
|
|
+ isCustodyTest.value = false
|
|
|
+ isTesting.value = false
|
|
|
+ isOverTest.value = false
|
|
|
+ break
|
|
|
+ }
|
|
|
+}
|
|
|
//是否正在专家验收中
|
|
|
const isExpertAcceptance = ref(false)
|
|
|
const isCustodyTest = ref(false)
|