Commit 2a553c79 authored by 华国豪's avatar 华国豪 🙄

新增地接op分房

parent 0c623ea4
...@@ -1271,7 +1271,9 @@ export default { ...@@ -1271,7 +1271,9 @@ export default {
this.detailList.CostTypeId = this.orderObj.CostType?this.orderObj.CostType: ''; this.detailList.CostTypeId = this.orderObj.CostType?this.orderObj.CostType: '';
this.detailList.UnitPrice = this.orderObj.Money?this.orderObj.Money:0; this.detailList.UnitPrice = this.orderObj.Money?this.orderObj.Money:0;
this.detailList.Number = this.orderObj.CostType ? 1 : 0 this.detailList.Number = this.orderObj.CostType ? 1 : 0
this.Description = this.orderObj.laRemark?this.orderObj.laRemark:''; if (!JSON.parse(sessionStorage.getItem("saveGuestInfo"))){
this.Description = this.orderObj.laRemark?this.orderObj.laRemark:'';
}
} }
if(data.VorcherInos){ if(data.VorcherInos){
data.VorcherInos.forEach(x=>{ data.VorcherInos.forEach(x=>{
...@@ -1370,7 +1372,7 @@ export default { ...@@ -1370,7 +1372,7 @@ export default {
}) })
}) })
this.companyList = data; this.companyList = data;
} }
} }
console.log('this.companyList', this.companyList) console.log('this.companyList', this.companyList)
......
...@@ -1394,7 +1394,9 @@ export default { ...@@ -1394,7 +1394,9 @@ export default {
this.msg.Obj = this.orderObj.Obj?this.orderObj.Obj:''; this.msg.Obj = this.orderObj.Obj?this.orderObj.Obj:'';
this.msg.SourceID = this.orderObj.SourceID?this.orderObj.SourceID:0; this.msg.SourceID = this.orderObj.SourceID?this.orderObj.SourceID:0;
this.msg.CallType=this.orderObj.CallType?this.orderObj.CallType:0; this.msg.CallType=this.orderObj.CallType?this.orderObj.CallType:0;
this.Description = this.orderObj.laRemark?this.orderObj.laRemark:''; if (!JSON.parse(sessionStorage.getItem("saveGuestInfo"))){
this.Description = this.orderObj.laRemark?this.orderObj.laRemark:'';
}
} }
if(data.VorcherInos){ if(data.VorcherInos){
data.VorcherInos.forEach(x=>{ data.VorcherInos.forEach(x=>{
......
...@@ -15,11 +15,17 @@ ...@@ -15,11 +15,17 @@
:texts="texts" :texts="texts"
show-text> show-text>
</el-rate> </el-rate>
<template v-else-if="item.SurveyType === 2"> <template v-else-if="item.SurveyType === 2">
<el-radio v-for="(r, i) in item.SurveyOptionsList" v-model="item.lable" :label="r.ID" disabled="disabled" :key="i">{{r.OptionsName}}</el-radio> <template v-for="(r, i) in item.SurveyOptionsList" v-if="r.IsCheck!=='0'">
<span>{{r.OptionsName}}</span>
</template>
<!-- <el-radio v-for="(r, i) in item.SurveyOptionsList" v-model="item.lable" :label="r.ID" disabled="disabled" :key="i"></el-radio> -->
</template> </template>
<template v-else-if="item.SurveyType === 3"> <template v-else-if="item.SurveyType === 3">
<el-checkbox v-for="(r, i) in item.SurveyOptionsList" v-model="item.ckeckList" :label="r.ID" disabled="disabled" :key="i">{{r.OptionsName}}</el-checkbox > <template v-for="(r, i) in item.SurveyOptionsList" v-if="r.IsCheck!=='0'">
<span>{{r.OptionsName}}</span>
</template>
<!-- <el-checkbox v-for="(r, i) in item.SurveyOptionsList" v-model="item.ckeckList" :label="r.ID" disabled="disabled" :key="i">{{r.OptionsName}}</el-checkbox > -->
</template> </template>
<template v-else-if="item.SurveyType === 4"> <template v-else-if="item.SurveyType === 4">
<span>{{item.TextContent}}</span> <span>{{item.TextContent}}</span>
......
...@@ -271,7 +271,7 @@ ...@@ -271,7 +271,7 @@
</div> </div>
</td> </td>
<td> <td>
<div class="fz16 fbold linkspan" @click="goUrlT('TravelPassengerList',item.TCID,'旅客名单')"> <div class="fz16 fbold linkspan" @click="goUrlT('TravelPassengerList2',item.TCID,'旅客名单')">
<span style="color: #4BCA81;" v-if="item.HouseResult==1"></span> <span style="color: #4BCA81;" v-if="item.HouseResult==1"></span>
<span class="colorE95252" v-else>{{item.HouseResult=='-1'?"x":"O"}}</span> <span class="colorE95252" v-else>{{item.HouseResult=='-1'?"x":"O"}}</span>
</div> </div>
......
...@@ -980,54 +980,49 @@ export default { ...@@ -980,54 +980,49 @@ export default {
return return
} }
// type 1 零件地 自动生成 2 领队人头费 跳转 // type 1 零件地 自动生成 2 领队人头费 跳转
let BType = 3,
AccountId = 1,
IsRelevanceTravel = 1,
TemplateId = 71,
RB_Branch_Id = userinfo.RB_Branch_id,
OrderSource = 6;
if (obj.Type == 2) { if (obj.Type == 2) {
let id = [72, 73]; BType = 1;
let TCIDARR = [obj.TCIDs]; AccountId = 7;
let orderObj = { IsRelevanceTravel = 0;
OrderID: 0, TemplateId = obj.OutBranchId === 0 ? 72 : 73;
OrderSource: 6, RB_Branch_Id = obj.OutBranchId;
Obj: {}, OrderSource = 8;
SourceID: 0, }
CostType: 180, // 自动生成
TCIDList: TCIDARR, let msg = {
Money: inputPrice, TemplateId: 71,
TCNUMS: '' RB_Branch_Id: RB_Branch_Id,
}; IsPublic: 0,
let fullPath = `/ChoiceAddFinancialDocuments?Type=${1}&templateID=${JSON.stringify(id)}&companyID=${userinfo.RB_Branch_id}&orderObj=${JSON.stringify(orderObj)}&blank=y&tab=领队报账`; BType: BType,
let dom = document.querySelector("#blankLink"); AccountId: AccountId,
dom.href = `http://${window.location.host}/#${fullPath}`; CostTypeID: 180,
dom.click(); WBMoney: obj.price,
} else { Remark: "",
// 自动生成 TCID: obj.TCIDs,
let msg = { IsRelevanceTravel: IsRelevanceTravel,
TemplateId: 71, OrderID: 0,
RB_Branch_Id: userinfo.RB_Branch_id, vorcherInos: [{FrIdStr:''}],
IsPublic: 0, Description: "",
BType: 4, RemitterName: obj.LeaderOrGuidName,
AccountId: 14, TradeDate: new Date().Format("yyyy-MM-dd"),
CostTypeID: 180, OrderSource: OrderSource,
WBMoney: obj.price,
Remark: "",
TCID: obj.TCIDs,
IsRelevanceTravel: 1,
OrderID: 0,
vorcherInos: [{FrIdStr:''}],
Description: "",
RemitterName: obj.LeaderOrGuidName,
TradeDate: new Date().Format("yyyy-MM-dd"),
OrderSource: 6,
}
this.apipost('Financial_post_SetFinanceInfoCommonForIn', msg, res=>{
if (res.data.resultCode == 1) {
obj.FrId.push(res.data.data)
this.listCost[index] = obj
this.$forceUpdate()
this.$message.success("制单成功")
} else {
this.$message.error(res.data.message)
}
}, null)
} }
this.apipost('Financial_post_SetFinanceInfoCommonForIn', msg, res=>{
if (res.data.resultCode == 1) {
obj.FrId.push(res.data.data)
this.listCost[index] = obj
this.$forceUpdate()
this.$message.success("制单成功")
} else {
this.$message.error(res.data.message)
}
}, null)
}, },
goZhiDan: function(obj) { goZhiDan: function(obj) {
let id = [59]; let id = [59];
...@@ -1277,7 +1272,7 @@ export default { ...@@ -1277,7 +1272,7 @@ export default {
DiningID: ai.DiningID, DiningID: ai.DiningID,
data: [ai] data: [ai]
}); });
Diningmap[ai.PlanDateStr] = ai; Diningmap[ai.UseTimeStr] = ai;
}else{ }else{
for(var j = 0; j < Diningdest.length; j++){ for(var j = 0; j < Diningdest.length; j++){
var dj = Diningdest[j]; var dj = Diningdest[j];
...@@ -1306,7 +1301,7 @@ export default { ...@@ -1306,7 +1301,7 @@ export default {
TicketID: ai.TicketID, TicketID: ai.TicketID,
data: [ai] data: [ai]
}); });
Scenicmap[ai.PlanDateStr] = ai; Scenicmap[ai.UseTimeStr] = ai;
}else{ }else{
for(var j = 0; j < Scenicdest.length; j++){ for(var j = 0; j < Scenicdest.length; j++){
var dj = Scenicdest[j]; var dj = Scenicdest[j];
......
...@@ -1816,6 +1816,14 @@ export default { ...@@ -1816,6 +1816,14 @@ export default {
title: '旅客名单' title: '旅客名单'
}, },
}, },
{
path: '/TravelPassengerList2', //旅客名单
name: 'TravelPassengerList2',
component: resolve => require(['@/components/TravelManager/TravelList/TravelPassengerList2'], resolve),
meta: {
title: '旅客名单'
},
},
{ {
path: '/RegistrationList', path: '/RegistrationList',
name: 'RegistrationList', name: 'RegistrationList',
......
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