Commit ef185768 authored by youjie's avatar youjie

no message

parent 99c01c00
......@@ -386,46 +386,8 @@
},
methods: {
GenerateDocuments(outItem){
// console.log(outItem)
this.isShowFinaceDailog = true
this.CurrentOutItem = outItem
return
this.FinanceTypes = []
this.FinanceTypeList = []
let SubItem = {
IsAddLeaderFinance:outItem.TCList[0].IsAddLeaderFinance,
IsAddGuideFinance:outItem.TCList[0].IsAddGuideFinance,
IsAddCompanyFinance:outItem.TCList[0].IsAddCompanyFinance,
IsAddPICFinance:outItem.TCList[0].IsAddPICFinance
}
let obj = {
Name: '全部',Id: 0,
}
if(SubItem.IsAddLeaderFinance&&SubItem.IsAddGuideFinance
&&SubItem.IsAddCompanyFinance&&SubItem.IsAddPICFinance){
this.FinanceTypeList.push(JSON.parse(JSON.stringify(obj)))
this.FinanceTypes = [0]
}
if(SubItem.IsAddLeaderFinance){
obj.Name = '领队佣金'
obj.Id = 1
this.FinanceTypeList.push(JSON.parse(JSON.stringify(obj)))
}
if(SubItem.IsAddGuideFinance){
obj.Name = '导游佣金'
obj.Id = 2
this.FinanceTypeList.push(JSON.parse(JSON.stringify(obj)))
}
if(SubItem.IsAddCompanyFinance){
obj.Name = '公司佣金'
obj.Id = 3
this.FinanceTypeList.push(JSON.parse(JSON.stringify(obj)))
}
if(SubItem.IsAddPICFinance){
obj.Name = 'PIC部分'
obj.Id = 4
this.FinanceTypeList.push(JSON.parse(JSON.stringify(obj)))
}
},
goCreateHandBill: function () {
let obj = {}
......
......@@ -273,21 +273,6 @@
GenerateDocuments(outItem){
this.isShowFinaceDailog = true
this.CurrentOutItem = outItem
return
this.FinanceTypes = ''
this.FinanceTypeList = []
let SubItem = {
IsAddLeaderFinance:outItem.TCList[0].IsAddLeaderFinance,
}
let obj = {
Name: '全部',Id: 0,
}
if(SubItem.IsAddLeaderFinance){
this.FinanceTypes = 1
obj.Name = '领队佣金'
obj.Id = 1
this.FinanceTypeList.push(JSON.parse(JSON.stringify(obj)))
}
},
goUrlFinancial: function (name, path, id ) {
this.$router.push({ name: path, query: { id: id, blank: 'y', tab: name} });
......
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