|
@@ -168,7 +168,7 @@ export default {
|
|
|
this.visible = false
|
|
|
},
|
|
|
// 初始化。type:{addItem:仅回调方法返回数据,update:调用接口更新}
|
|
|
- async init (id, item, type, projectName) {
|
|
|
+ async init (id, item, type, projectName, bizType) {
|
|
|
this.id = id || 0
|
|
|
this.type = type || 'addItem'
|
|
|
if (item) {
|
|
@@ -181,13 +181,22 @@ export default {
|
|
|
this.dataForm = item
|
|
|
} else {
|
|
|
this.isModify = false
|
|
|
- this.dataForm = {
|
|
|
- taskName: projectName,
|
|
|
- content: '尽快报价',
|
|
|
- planCompletionTime: new Date(),
|
|
|
- ranks: '1',
|
|
|
- taskType: 'routine',
|
|
|
- recordId: Math.round(Math.random() * 1000000)
|
|
|
+ if (bizType === 'communicate') {
|
|
|
+ this.dataForm = {
|
|
|
+ planCompletionTime: new Date(),
|
|
|
+ ranks: '1',
|
|
|
+ taskType: 'routine',
|
|
|
+ recordId: Math.round(Math.random() * 1000000)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.dataForm = {
|
|
|
+ taskName: projectName,
|
|
|
+ content: '尽快报价',
|
|
|
+ planCompletionTime: new Date(),
|
|
|
+ ranks: '1',
|
|
|
+ taskType: 'routine',
|
|
|
+ recordId: Math.round(Math.random() * 1000000)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
this.userList = []
|