|
|
|
@ -14,7 +14,6 @@
|
|
|
|
|
class="LeftUnit"
|
|
|
|
|
@click="ClickTasksUnit(item)"
|
|
|
|
|
>
|
|
|
|
|
<!-- active -->
|
|
|
|
|
<div class="activeBox" :class="activeId == item.id ? 'active' : ''">
|
|
|
|
|
<span v-if="item.isMainBL" class="type MainBL">主</span>
|
|
|
|
|
<span v-else class="type NoMainBL">分</span>
|
|
|
|
@ -30,7 +29,11 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="bottom">
|
|
|
|
|
<a-steps :current="activeSteps" class="steps">
|
|
|
|
|
<!-- isMainBL.value && -->
|
|
|
|
|
<div v-if="isMainBL && activeStepsArr.length == 0">
|
|
|
|
|
<a-button type="primary" @click="FnSetSteps"> 手动确认 </a-button>
|
|
|
|
|
</div>
|
|
|
|
|
<a-steps :current="activeSteps" class="steps" v-else>
|
|
|
|
|
<a-step v-for="(item, index) in activeStepsArr" :key="item.id">
|
|
|
|
|
<template #title>{{ item.typeName }}</template>
|
|
|
|
|
<template #description>
|
|
|
|
@ -144,23 +147,22 @@
|
|
|
|
|
ApiData = { ...item }
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
// if (!isMainBL.value) {
|
|
|
|
|
ApiData.steps[activeSteps.value].isCompleted = true
|
|
|
|
|
// }
|
|
|
|
|
if (!(isMainBL.value && activeStepsArr.value.length == 0)) {
|
|
|
|
|
ApiData.steps[activeSteps.value].isCompleted = true
|
|
|
|
|
}
|
|
|
|
|
// 是否自动同步更新主任务状态 (嵇工 说 最好是手动设置一下确保万无一失)
|
|
|
|
|
ApiData.autoSync = true
|
|
|
|
|
let res: any = null
|
|
|
|
|
// if (isMainBL.value) {
|
|
|
|
|
// res = await SetTaskStatus(ApiData)
|
|
|
|
|
// } else {
|
|
|
|
|
res = await SetSteps(ApiData)
|
|
|
|
|
// }
|
|
|
|
|
if (isMainBL.value && activeStepsArr.value.length == 0) {
|
|
|
|
|
res = await SetTaskStatus(ApiData)
|
|
|
|
|
} else {
|
|
|
|
|
res = await SetSteps(ApiData)
|
|
|
|
|
}
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
createMessage.success(res.message)
|
|
|
|
|
init(true)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function FnSetTaskStatus() {}
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.Main {
|
|
|
|
|