Commit e370cfae authored by 吴春's avatar 吴春

1

parent d94ce28e
...@@ -166,7 +166,10 @@ ...@@ -166,7 +166,10 @@
text-decoration: underline; text-decoration: underline;
color: #E95252; color: #E95252;
} }
.CD_dealResultf:hover {
text-decoration: underline;
color: #E95252;
}
.CD_ListLi li { .CD_ListLi li {
border: 1px solid #ccc; border: 1px solid #ccc;
padding: 4px 8px; padding: 4px 8px;
...@@ -237,8 +240,16 @@ ...@@ -237,8 +240,16 @@
<li <li
v-if="ComplainInfo.DisposeStatus===4&&(getLocalStorage().EmployeeId===ComplainInfo.CreateBy || getLocalStorage().EmployeeId===ComplainDetial[ComplainDetial.length-1].CreateBy||authority.indexOf('S_Complain_Finance')!=-1)"> v-if="ComplainInfo.DisposeStatus===4&&(getLocalStorage().EmployeeId===ComplainInfo.CreateBy || getLocalStorage().EmployeeId===ComplainDetial[ComplainDetial.length-1].CreateBy||authority.indexOf('S_Complain_Finance')!=-1)">
<span>立即制单:</span> <span>立即制单:</span>
<span v-for="compensation in ComplainCompensation" class="CD_dealResult" href="javascript:void(0)" <span style="width:auto;" v-for="compensation in ComplainCompensation"><span style="width:auto;cursor: pointer;" class="CD_dealResult"
@click="setFinance(compensation)">{{compensation.CompensateMoney}}</span> >{{compensation.CompensateMoney}}</span>
<span style="width:auto;cursor: pointer;" class="CD_dealResultf" @click="setFinance(compensation)">
付款单
</span>
<span style="width:auto;cursor: pointer;" class="CD_dealResultf" @click="setFinanceYL(compensation)">
原路退款
</span>
</span>
</li> </li>
<li <li
v-if="ComplainInfo.DisposeStatus===4&&getLocalStorage().EmployeeId===ComplainDetial[ComplainDetial.length-1].CreateBy"> v-if="ComplainInfo.DisposeStatus===4&&getLocalStorage().EmployeeId===ComplainDetial[ComplainDetial.length-1].CreateBy">
...@@ -627,6 +638,41 @@ ...@@ -627,6 +638,41 @@
}) })
} }
},
//设置财务单据
setFinanceYL (compensation) {
let id = [252];//团费原路退款
//TODO跳转到财务单据
if (compensation.FinanceID === 0) {
var TCArr = [this.PriceInfo.TCID]
let orderObj = {
OrderID: this.PriceInfo.OrderId,
OrderSource: 11,
Obj: {},
SourceID: compensation.ID,
TCIDList: TCArr
}
this.$router.push({
name: 'ChoiceAddFinancialDocuments',
query: {
Type: 1,
templateID: JSON.stringify(id),
companyID: this.PriceInfo.OutBranchId,
'blank': 'y',
'orderObj': JSON.stringify(orderObj)
}
})
} else if (compensation.FinanceID > 0) {
this.$router.push({
name: 'FinancialDocumentsDetail',
query: {
id: compensation.FinanceID,
blank: 'y',
tab: this.$t('objFill.documentparticulars')
}
})
}
}, },
//保存结果 //保存结果
saveResult () { saveResult () {
...@@ -737,7 +783,13 @@ ...@@ -737,7 +783,13 @@
getBackMoney () { getBackMoney () {
let money = 0 let money = 0
this.ComplainCompensation.forEach(x => { this.ComplainCompensation.forEach(x => {
money += x.BackMoney if(x.BackMoney<0){
money += (x.BackMoney*-1)
}
else{
money += x.BackMoney
}
}) })
return money return money
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment