Commit 0ef778cd authored by liudong1993's avatar liudong1993

1

parent ceb07d61
...@@ -251,7 +251,7 @@ ...@@ -251,7 +251,7 @@
</div> </div>
</td> --> </td> -->
<td :rowspan="outItem.rowspanCount" v-if="index==0&&subIndex==0"> <td :rowspan="outItem.rowspanCount" v-if="index==0&&subIndex==0">
<p style="cursor: pointer;color:blue;" @click="GenerateDocuments(outItem)"> <p style="cursor: pointer;color:blue;" @click="GenerateDocuments(outItem,subItem.LeaderId,subItem.GuideId)">
{{$t('ground.scdanju')}} {{$t('ground.scdanju')}}
</p> </p>
<p style="cursor: pointer;color:blue;margin-top:5px;" <p style="cursor: pointer;color:blue;margin-top:5px;"
...@@ -334,6 +334,28 @@ ...@@ -334,6 +334,28 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="领队账户" v-if="LeaderAccountList && LeaderAccountList.length>0">
<el-select v-model="LeaderAccountId">
<el-option
v-for="(item,index) in LeaderAccountList"
:label="item.Name" :value="item.ID" :key="item.ID"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="导游账户" v-if="GuideAccountList && GuideAccountList.length>0">
<el-select v-model="GuideAccountId">
<el-option
v-for="(item,index) in GuideAccountList"
:label="item.Name" :value="item.ID" :key="item.ID"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="生成550手续费">
<el-select v-model="IsFee">
<el-option label="是" :value="1" :key="1"></el-option>
<el-option label="否" :value="2" :key="2"></el-option>
</el-select>
</el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" <button class="hollowFixedBtn"
...@@ -359,6 +381,11 @@ ...@@ -359,6 +381,11 @@
FinanceTypes: [0],//佣金类型 FinanceTypes: [0],//佣金类型
loading: false, loading: false,
PayType: 1, //付款方式 PayType: 1, //付款方式
LeaderAccountId : 0,
GuideAccountId : 0,
LeaderAccountList : [],
GuideAccountList : [],
IsFee : 1,
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 8, pageSize: 8,
...@@ -385,9 +412,20 @@ ...@@ -385,9 +412,20 @@
} }
}, },
methods: { methods: {
GenerateDocuments(outItem){ GenerateDocuments(outItem,LeaderId,GuideId){
this.isShowFinaceDailog = true this.isShowFinaceDailog = true
this.CurrentOutItem = outItem this.CurrentOutItem = outItem
// 处理账户
this.LeaderAccountList = [];
this.LeaderAccountId=0;
this.GuideAccountList = [];
this.GuideAccountId=0;
if(LeaderId && LeaderId>0){
this.financeinfo_post_GetClientAccountList(LeaderId,1);
}
if(GuideId && GuideId>0){
this.financeinfo_post_GetClientAccountList(GuideId,2);
}
}, },
goCreateHandBill: function () { goCreateHandBill: function () {
let obj = {} let obj = {}
...@@ -562,7 +600,10 @@ ...@@ -562,7 +600,10 @@
TCIDs: that.CurrentOutItem.TCIDs, TCIDs: that.CurrentOutItem.TCIDs,
PayType: that.PayType, PayType: that.PayType,
uid: that.getLocalStorage().EmployeeId, uid: that.getLocalStorage().EmployeeId,
FinanceType: this.FinanceTypes.join(',') FinanceType: this.FinanceTypes.join(','),
LeaderAccountId : that.LeaderAccountId,
GuideAccountId : that.GuideAccountId,
IsFee : that.IsFee
}; };
that.loading = true; that.loading = true;
that.apipost("dmcstatistics_post_CheckShopDetailsDMCRate", nMsg, res => { that.apipost("dmcstatistics_post_CheckShopDetailsDMCRate", nMsg, res => {
...@@ -589,6 +630,38 @@ ...@@ -589,6 +630,38 @@
// }); // });
}, },
financeinfo_post_GetClientAccountList(ObjID,type) { //获取付款 对象类型 新增用
let msg = {
ID: 0,
Type: 7,
ObjID: ObjID,
IsJapanRan: true
}
this.apipost('financeinfo_post_GetClientAccountList', msg, res => {
if (res.data.resultCode == 1) {
let data = res.data.data;
let ClientAccountList = [];
data.forEach(x => {
let obj = {
ID: x.ID,
Name: x.AccountHolder + x.CardNum +`(${x.AccountAlias})`,
}
ClientAccountList.push(obj)
})
if(type==1){
this.LeaderAccountList = ClientAccountList;
if(ClientAccountList && ClientAccountList.length>0){
this.LeaderAccountId = ClientAccountList[0].ID;
}
}else{
this.GuideAccountList = ClientAccountList;
if(ClientAccountList && ClientAccountList.length>0){
this.GuideAccountId = ClientAccountList[0].ID;
}
}
}
}, err => {})
},
}, },
mounted() { mounted() {
let myDate = new Date(); let myDate = new Date();
......
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
</td> </td>
<td :rowspan="outItem.rowspanCount" v-if="index==0&&subIndex==0"> <td :rowspan="outItem.rowspanCount" v-if="index==0&&subIndex==0">
<div> <div>
<p style="cursor: pointer;color:blue;" @click="GenerateDocuments(outItem)"> <p style="cursor: pointer;color:blue;" @click="GenerateDocuments(outItem,subItem.LeaderId,subItem.GuideId)">
{{$t('ground.scdanju')}}</p> {{$t('ground.scdanju')}}</p>
</div> </div>
</td> </td>
...@@ -221,6 +221,28 @@ ...@@ -221,6 +221,28 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="领队账户" v-if="LeaderAccountList && LeaderAccountList.length>0">
<el-select v-model="LeaderAccountId">
<el-option
v-for="(item,index) in LeaderAccountList"
:label="item.Name" :value="item.ID" :key="item.ID"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="导游账户" v-if="GuideAccountList && GuideAccountList.length>0">
<el-select v-model="GuideAccountId">
<el-option
v-for="(item,index) in GuideAccountList"
:label="item.Name" :value="item.ID" :key="item.ID"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="生成550手续费">
<el-select v-model="IsFee">
<el-option label="是" :value="1" :key="1"></el-option>
<el-option label="否" :value="2" :key="2"></el-option>
</el-select>
</el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" <button class="hollowFixedBtn"
...@@ -260,6 +282,11 @@ ...@@ -260,6 +282,11 @@
total: 0, total: 0,
}, },
PayType: 1, //付款方式 PayType: 1, //付款方式
LeaderAccountId : 0,
GuideAccountId : 0,
LeaderAccountList : [],
GuideAccountList : [],
IsFee : 1,
LineList: [], LineList: [],
LineTeamList: [], LineTeamList: [],
shopDataList: [], shopDataList: [],
...@@ -270,9 +297,20 @@ ...@@ -270,9 +297,20 @@
} }
}, },
methods: { methods: {
GenerateDocuments(outItem){ GenerateDocuments(outItem,LeaderId,GuideId){
this.isShowFinaceDailog = true this.isShowFinaceDailog = true
this.CurrentOutItem = outItem this.CurrentOutItem = outItem
// 处理账户
this.LeaderAccountList = [];
this.LeaderAccountId=0;
this.GuideAccountList = [];
this.GuideAccountId=0;
if(LeaderId && LeaderId>0){
this.financeinfo_post_GetClientAccountList(LeaderId,1);
}
if(GuideId && GuideId>0){
this.financeinfo_post_GetClientAccountList(GuideId,2);
}
}, },
goUrlFinancial: function (name, path, id ) { goUrlFinancial: function (name, path, id ) {
this.$router.push({ name: path, query: { id: id, blank: 'y', tab: name} }); this.$router.push({ name: path, query: { id: id, blank: 'y', tab: name} });
...@@ -400,7 +438,10 @@ ...@@ -400,7 +438,10 @@
TCIDs: that.CurrentOutItem.TCIDs, TCIDs: that.CurrentOutItem.TCIDs,
PayType: that.PayType, PayType: that.PayType,
uid: that.getLocalStorage().EmployeeId, uid: that.getLocalStorage().EmployeeId,
FinanceType: this.FinanceTypes FinanceType: this.FinanceTypes,
LeaderAccountId : that.LeaderAccountId,
GuideAccountId : that.GuideAccountId,
IsFee : that.IsFee
}; };
that.loading = true; that.loading = true;
that.apipost("dmcstatistics_post_CheckShopDetailsDMCRate", nMsg, res => { that.apipost("dmcstatistics_post_CheckShopDetailsDMCRate", nMsg, res => {
...@@ -425,6 +466,38 @@ ...@@ -425,6 +466,38 @@
}).catch(() => {}) }).catch(() => {})
}, },
financeinfo_post_GetClientAccountList(ObjID,type) { //获取付款 对象类型 新增用
let msg = {
ID: 0,
Type: 7,
ObjID: ObjID,
IsJapanRan: true
}
this.apipost('financeinfo_post_GetClientAccountList', msg, res => {
if (res.data.resultCode == 1) {
let data = res.data.data;
let ClientAccountList = [];
data.forEach(x => {
let obj = {
ID: x.ID,
Name: x.AccountHolder + x.CardNum +`(${x.AccountAlias})`,
}
ClientAccountList.push(obj)
})
if(type==1){
this.LeaderAccountList = ClientAccountList;
if(ClientAccountList && ClientAccountList.length>0){
this.LeaderAccountId = ClientAccountList[0].ID;
}
}else{
this.GuideAccountList = ClientAccountList;
if(ClientAccountList && ClientAccountList.length>0){
this.GuideAccountId = ClientAccountList[0].ID;
}
}
}
}, err => {})
},
}, },
mounted() { mounted() {
let myDate = new Date(); let myDate = new Date();
......
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