Merge branch 'master' into change0706
This commit is contained in:
@@ -58,7 +58,7 @@ export default {
|
||||
required: false
|
||||
},
|
||||
// 当前需要转换key的属性, 悬浮显示实际具体内容信息时需要
|
||||
// paymentRecord 来款 mail -- 邮寄 bill--开票
|
||||
// paymentRecord 来款 confirm-确认收入 mail -- 邮寄 bill--开票
|
||||
statusKey: {
|
||||
type: String,
|
||||
required: false,
|
||||
@@ -106,6 +106,9 @@ export default {
|
||||
} else {
|
||||
return finished
|
||||
}
|
||||
} else if(this.statusNo === 4) {
|
||||
// 确认收入莫名其妙的出现了 4, 所以修改成 全部确认的样式
|
||||
return finished
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -129,9 +132,16 @@ export default {
|
||||
// 到账、开票、邮寄 的时候,请求接口获得相应的数据
|
||||
// 判断条件 tooltip显示、 有不同的统计状态,统计状态值不为0 没有请求过详情数据
|
||||
if (visible && this.statusType && this.statusNo && !this.hasInfo) {
|
||||
this.getInfoFunc({ id: this.statuObj.id }).then(res => {
|
||||
let idKey = this.statusKey === 'confirm' && 'projectId' || 'id'
|
||||
this.getInfoFunc({ [idKey]: this.statuObj.id }).then(res => {
|
||||
if (res.success) {
|
||||
let arr = res.result[this.opeStatusKey] || []
|
||||
let arr = []
|
||||
if(this.statusKey === 'confirm') {
|
||||
// 确认收入单独的实现逻辑
|
||||
arr = res.result || []
|
||||
} else {
|
||||
arr = res.result[this.opeStatusKey] || []
|
||||
}
|
||||
let result = []
|
||||
arr.map(tt => {
|
||||
result.push(this.showTemplate(tt))
|
||||
@@ -139,6 +149,7 @@ export default {
|
||||
// 对tooltip中的文字进行替换
|
||||
this.currentTitle = result.join('\n')
|
||||
this.hasInfo = true
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -165,6 +176,10 @@ export default {
|
||||
if (item.sendDate || item.postNo) {
|
||||
result = `${ item.sendDate }新增邮寄信息,邮寄单号:${ item.postNo }`
|
||||
}
|
||||
} else if (this.statusKey === 'confirm') {
|
||||
if (item.paymentDate || item.amountReceived) {
|
||||
result = `${ item.paymentDate }确认收入${ item.amountReceived }元`
|
||||
}
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user