diff --git a/src/views/xm/core/xmMenu/XmMenuAdd.vue b/src/views/xm/core/xmMenu/XmMenuAdd.vue index 04bddb8d..e2da560e 100644 --- a/src/views/xm/core/xmMenu/XmMenuAdd.vue +++ b/src/views/xm/core/xmMenu/XmMenuAdd.vue @@ -4,40 +4,77 @@ + + + + 需求池 + 需求 +
+ 需求:建议按以下逻辑描述一个需求:什么人?做什么事?,为什么? + 需求池:需求池下可建立子需求池或者需求。负责汇总统计下级数据,分解上级需求池预算。 +
- - {{parentMenu.seqNo}}     {{parentMenu.menuName}} - - - 无归属需求集 - - - - - - - 建议:{{parentMenu.seqNo}}.{{parentMenu.childrenCnt?parentMenu.childrenCnt+1:1}} - - - {{addForm.mmUsername}} - 未配置 - 选负责人 - - - - - - - - - - - - - - - - + + {{parentMenu.seqNo}}     {{parentMenu.menuName}} + + + 无归属需求池 + + + {{addForm.productName?addForm.productName:addForm.productId}} + + + + + + + 建议:{{parentMenu.seqNo}}.{{parentMenu.childrenCnt?parentMenu.childrenCnt+1:1}} + + + + {{addForm.mmUsername}} + 未配置 + 选负责人 + + + {{addForm.mmUsername}} + 未配置 + 选跟进人 + + + + +
+ + +  小时 + + + 人时,{{this.toFixed(addForm.budgetWorkload/8/20)}}人月 + + + 元 + + + + + + + + + + + + + + + + + +
用户决策:根据场景可给予用户操作建议或安全提示,但不能代替用户进行决策;
+
结果可控:用户可以自由的进行操作,包括撤销、回退和终止当前操作等。
+
+
@@ -75,14 +112,18 @@ }, 'visible':function(visible) { if(visible==true){ - if(this.parentMenu){ - if(this.parentMenu.children){ - this.addForm.seqNo=this.parentMenu.seqNo+"."+(this.parentMenu.children.length+1) - }else{ - this.addForm.seqNo=this.parentMenu.seqNo+"."+1 - } - - } + if(this.parentMenu && this.parentMenu.menuId){ + if(this.parentMenu.childrenCnt){ + this.addForm.seqNo=this.parentMenu.seqNo+"."+(this.parentMenu.childrenCnt.length+1) + }else{ + this.addForm.seqNo=this.parentMenu.seqNo+"."+1 + } + + } + if(this.product && this.product.id){ + this.addForm.productId=this.product.id + this.addForm.productName=this.product.productName + } //从新打开页面时某些数据需要重新加载,可以在这里添加 } } @@ -127,7 +168,7 @@ return; } if(this.parentMenu && this.parentMenu.ntype=="0"){ - this.$notify({showClose: true, message: '需求集下不能再建立子需求', type:'error' }); + this.$notify({showClose: true, message: '需求池下不能再建立子需求', type:'error' }); return; } this.$refs.addForm.validate((valid) => { @@ -173,9 +214,16 @@ clearPmUser:function(){ this.addForm.mmUserid='' this.addForm.mmUsername='' - } + }, /**begin 在下面加自定义方法,记得补上面的一个逗号**/ + toFixed(floatValue){ + if(floatValue ==null || floatValue=='' || floatValue == undefined){ + return 0; + }else{ + return parseFloat(floatValue).toFixed(2); + } + }, /**end 在上面加自定义方法**/ },//end method @@ -187,6 +235,10 @@ this.addForm=Object.assign(this.addForm, this.xmMenu); this.addForm.mmUserid=this.userInfo.userid this.addForm.mmUsername=this.userInfo.username + if(this.product){ + this.addForm.productId=this.product.id + this.addForm.productName=this.product.productName + } this.addForm.remark="作为 ,我需要 ,以便我能够 。" if(this.parentMenu){ if(this.parentMenu.childrenCnt){ diff --git a/src/views/xm/core/xmMenu/XmMenuEdit.vue b/src/views/xm/core/xmMenu/XmMenuEdit.vue index a8dd9c3a..63d7feea 100644 --- a/src/views/xm/core/xmMenu/XmMenuEdit.vue +++ b/src/views/xm/core/xmMenu/XmMenuEdit.vue @@ -5,7 +5,7 @@ - + diff --git a/src/views/xm/core/xmQuestion/XmQuestionEdit.vue b/src/views/xm/core/xmQuestion/XmQuestionEdit.vue index 4eb34391..b0aec81f 100644 --- a/src/views/xm/core/xmQuestion/XmQuestionEdit.vue +++ b/src/views/xm/core/xmQuestion/XmQuestionEdit.vue @@ -393,7 +393,7 @@ }, onSelectedMenu(menu){ if(menu.ntype=='1'){ - this.$notify({showClose: true, message: "您选择的【"+menu.menuName+"】属于需求集,请重新选择。建议选择树中叶子节点", type: 'error' }); + this.$notify({showClose: true, message: "您选择的【"+menu.menuName+"】属于需求池,请重新选择。建议选择树中叶子节点", type: 'error' }); return; } this.editForm.menuId=menu.menuId