|
@@ -7,7 +7,7 @@
|
|
|
<div class="header-title">
|
|
|
<span>
|
|
|
<span class="title-id">REQUIREMENT-{{ form_query.id }} </span>
|
|
|
- <el-tooltip v-if="form_query.isDirectlyFromDpm === 1" class="item" effect="dark" :content="form_query.relatedDpmRequirementInfo.requirementDisplayId + form_query.relatedDpmRequirementInfo.name" placement="top">
|
|
|
+ <el-tooltip v-if="form_query.isDirectlyFromDpm === 1" class="item" effect="dark" :content="toilp" placement="top">
|
|
|
<img class="cursorPo img-logo" src="@/assets/home_images/WX20200914-141851@2x.png" @click="dpmUrl(form_query.dpmUrl)">
|
|
|
</el-tooltip>
|
|
|
</span>
|
|
@@ -66,26 +66,29 @@
|
|
|
<div class="title-left-icon" />
|
|
|
<div class="title-left-name">工作流</div>
|
|
|
</div>
|
|
|
- <el-popover
|
|
|
- v-model="visible"
|
|
|
- placement="bottom-start"
|
|
|
- width="300px"
|
|
|
- :visible-arrow="false"
|
|
|
- trigger="manual"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- v-model="textarea2"
|
|
|
- type="textarea"
|
|
|
- rows="5"
|
|
|
- style="width:300px"
|
|
|
- placeholder="请输入Hold原因(选填)"
|
|
|
- />
|
|
|
- <div style="text-align: right; margin-top: 10px;">
|
|
|
- <el-button size="mini" type="text" @click="visible = false">取消</el-button>
|
|
|
- <el-button type="primary" size="mini" @click="requirementHold(textarea2)">确定</el-button>
|
|
|
- </div>
|
|
|
- <el-button slot="reference" class="el-btn-size" size="mini" @click="changeBtn">{{ form_query.status === -2 ? HoldTask = '解除 Hold' : HoldTask = 'Hold 需求' }}</el-button>
|
|
|
- </el-popover>
|
|
|
+ <div>
|
|
|
+ <el-button v-if="form_query.isDirectlyFromDpm === 1" size="mini" @click="dialogVisible = true">{{ '拉取望岳状态及工作流' }}</el-button>
|
|
|
+ <el-popover
|
|
|
+ v-model="visible"
|
|
|
+ placement="bottom-start"
|
|
|
+ width="300px"
|
|
|
+ :visible-arrow="false"
|
|
|
+ trigger="manual"
|
|
|
+ >
|
|
|
+ <el-input
|
|
|
+ v-model="textarea2"
|
|
|
+ type="textarea"
|
|
|
+ rows="5"
|
|
|
+ style="width:300px"
|
|
|
+ placeholder="请输入Hold原因(选填)"
|
|
|
+ />
|
|
|
+ <div style="text-align: right; margin-top: 10px;">
|
|
|
+ <el-button size="mini" type="text" @click="visible = false">取消</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="requirementHold(textarea2)">确定</el-button>
|
|
|
+ </div>
|
|
|
+ <el-button slot="reference" class="el-btn-size" size="mini" @click="changeBtn">{{ form_query.status === -2 ? HoldTask = '解除 Hold' : HoldTask = 'Hold 需求' }}</el-button>
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<timeLine :id="requirementId" ref="timeLine1" :name="'需求'" />
|
|
|
</section>
|
|
@@ -281,6 +284,14 @@
|
|
|
<!-- 排期锁定 -->
|
|
|
<schedule :visible.sync="scheduleVisble" :name="'需求'" :is-schedule-locked="isScheduleLocked" :require-id="requirementId" @updataData="GetRequireScheduleHistory" />
|
|
|
<!-- 排期锁定 -->
|
|
|
+ <!-- 状态及工作流 -->
|
|
|
+ <workflowAndStatus
|
|
|
+ :visible.sync="dialogVisible"
|
|
|
+ :name="'需求'"
|
|
|
+ :dpmrequired="toilp"
|
|
|
+ @update="getRequirementById(); dialogVisible=false "
|
|
|
+ />
|
|
|
+ <!-- 状态及工作流 -->
|
|
|
<drawer
|
|
|
ref="drawer"
|
|
|
title="需求成员"
|
|
@@ -364,6 +375,7 @@ import demand from '@/views/projectManage/components/demand.vue'
|
|
|
import record from '@/views/projectManage/components/record.vue'
|
|
|
import timeLine from '@/views/projectManage/components/timeLine.vue'
|
|
|
import BasicsCode from '@/views/projectManage/requirement/components/BasicsCode.vue'
|
|
|
+import workflowAndStatus from '@/views/projectManage/components/workflowAndStatus.vue'
|
|
|
import ganntViews from './components/ganntViews'
|
|
|
import '@/styles/PublicStyle/index.scss'
|
|
|
export default {
|
|
@@ -382,7 +394,8 @@ export default {
|
|
|
timeLine,
|
|
|
demand,
|
|
|
ganntViews,
|
|
|
- BasicsCode
|
|
|
+ BasicsCode,
|
|
|
+ workflowAndStatus
|
|
|
},
|
|
|
filters: {
|
|
|
ellipsis(value, num) {
|
|
@@ -399,6 +412,8 @@ export default {
|
|
|
showunlock: true,
|
|
|
textarea2: '',
|
|
|
HoldTask: '',
|
|
|
+ dialogVisible: false,
|
|
|
+ toilp: '',
|
|
|
rules: {
|
|
|
brdPassRealTime: [{ required: true, message: '请输入BRD评审通过时间', trigger: 'change' }],
|
|
|
prdPassRealTime: [{ required: true, message: '请输入PRD评审通过时间', trigger: 'change' }],
|
|
@@ -575,6 +590,7 @@ export default {
|
|
|
const res = await getRequirementById({ id: this.$route.query.id })
|
|
|
if (res.code === 200) {
|
|
|
this.form_query = res.data
|
|
|
+ this.toilp = this.form_query.relatedDpmRequirementInfo.requirementDisplayId + this.form_query.relatedDpmRequirementInfo.name
|
|
|
if (this.form_query.referredClientType !== null) {
|
|
|
this.form_query.referredClientType = this.form_query.referredClientTypes
|
|
|
}
|
|
@@ -607,6 +623,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
+ this.$refs.timeLine1.taskGetWorkFlow()
|
|
|
},
|
|
|
async getCommentList() { // 获取需求评论
|
|
|
const res = await getCommentList({ type: 4, joinId: this.$route.query.id })
|