Commit 022d4a20 authored by zhengke's avatar zhengke

no message

parent 86ae5328
...@@ -503,6 +503,9 @@ ...@@ -503,6 +503,9 @@
row.selectedType = row.checkList.join(',') row.selectedType = row.checkList.join(',')
} }
} }
if(num == 3){
}
}, },
// 删除套餐值 // 删除套餐值
delType(row,item) { delType(row,item) {
...@@ -551,7 +554,37 @@ ...@@ -551,7 +554,37 @@
this.ValidateOperator() this.ValidateOperator()
} else { } else {
if (row.OrderStatus != '2') { if (row.OrderStatus != '2') {
if(num=='2'){ if(list&&list.length>1){
if(num=='1'){
let type
type = num == 1 ? 1 : 2 // 1收款 2退款 3成本anceId2 = num
let $this = this;
row.ReFinanceId2 = num
this.MsgBus.$emit("BillMakingOrderBoxOpen", $this.ID, row, true);
}if(num=='3'){
let type
type = num == 1 ? 1 : 2 // 1收款 2退款 3成本
let href
let url
if (this.isOnline()) {
url = 'http://yx.oytour.com/#/'
} else {
url = 'http://www.test.com:8081/#/'
}
let data = [{
path: 'ChoiceAddFinancialDocuments',
type: type,
OtherType: 55,
ReFinanceId: row.OrderId,
ReFinanceId2: num,
GuestId: row.GuestId,
RelevanceFrId: row.selectedType, // 单据类型
}]
href = url + 'automaticLogin?token=' + this.getLocalStorage().token + '&data=' + JSON.stringify(data)
window.open(href);
}
}else{
let type let type
type = num == 1 ? 1 : 2 // 1收款 2退款 3成本 type = num == 1 ? 1 : 2 // 1收款 2退款 3成本
let href let href
...@@ -561,27 +594,30 @@ ...@@ -561,27 +594,30 @@
} else { } else {
url = 'http://www.test.com:8081/#/' url = 'http://www.test.com:8081/#/'
} }
let data = [{ let data
path: 'ChoiceAddFinancialDocuments', if(num==1||num==2){
type: type, data = [{
OtherType: 55, path: 'ChoiceAddFinancialDocuments',
ReFinanceId: row.OrderId, type: type,
ReFinanceId2: num, OtherType: 55,
GuestId: row.GuestId, ReFinanceId: row.OrderId,
RelevanceFrId: row.selectedType?row.selectedType:row.OrderType // 单据类型 ReFinanceId2: num,
}] GuestId: row.GuestId,
RelevanceFrId: row.OrderType, // 单据类型
}]
}
if(num==3){
data = [{
path: 'ChoiceAddFinancialDocuments',
type: type,
OtherType: 55,
ReFinanceId: row.OrderId,
ReFinanceId2: num,
GuestId: row.GuestId,
}]
}
href = url + 'automaticLogin?token=' + this.getLocalStorage().token + '&data=' + JSON.stringify(data) href = url + 'automaticLogin?token=' + this.getLocalStorage().token + '&data=' + JSON.stringify(data)
window.open(href); window.open(href);
}if(num=='1'&&list&&list.length>1){
let type
type = num == 1 ? 1 : 2 // 1收款 2退款 3成本anceId2 = num
let $this = this;
this.MsgBus.$emit("BillMakingOrderBoxOpen", $this.ID, row, true);
}else{
this.apipost2("Financial_post_SetFinanceInfoForCRMIn",{},(res)=>{
})
} }
} }
......
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