Commit 04078522 authored by 黄奎's avatar 黄奎

跳转ERP域名调整

parent 8ca738ae
...@@ -392,13 +392,13 @@ ...@@ -392,13 +392,13 @@
</template> </template>
<script> <script>
export default { export default {
props: ["orderId","GuestId"], props: ["orderId", "GuestId"],
data() { data() {
return { return {
loading: true, loading: true,
d: null, d: null,
userInfo:{} userInfo: {}
}; };
}, },
mounted() { mounted() {
...@@ -408,8 +408,9 @@ export default { ...@@ -408,8 +408,9 @@ export default {
methods: { methods: {
init() { init() {
this.apipost2( this.apipost2(
"crm_post_GetCRMGuestOrderCheck", "crm_post_GetCRMGuestOrderCheck", {
{ OrderId: this.orderId }, OrderId: this.orderId
},
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.d = res.data.data; this.d = res.data.data;
...@@ -422,12 +423,10 @@ export default { ...@@ -422,12 +423,10 @@ export default {
openDetails(item) { openDetails(item) {
let href; let href;
let url = this.domainManager().erpRoutingUrl; let url = this.domainManager().erpRoutingUrl;
let data = [ let data = [{
{
path: "FinancialDocumentsDetail", path: "FinancialDocumentsDetail",
id: item.FrID, id: item.FrID,
}, }, ];
];
href = href =
url + url +
"automaticLogin?token=" + "automaticLogin?token=" +
...@@ -470,8 +469,7 @@ export default { ...@@ -470,8 +469,7 @@ export default {
if (this.userInfo.EmName == row.EnterName) { if (this.userInfo.EmName == row.EnterName) {
if (row.OrderStatus != "2") { if (row.OrderStatus != "2") {
if (num == '1' || num == '3') { if (num == '1' || num == '3') {
data = [ data = [{
{
path: "ChoiceAddFinancialDocuments", path: "ChoiceAddFinancialDocuments",
type: type, type: type,
OtherType: 55, OtherType: 55,
...@@ -479,20 +477,17 @@ export default { ...@@ -479,20 +477,17 @@ export default {
ReFinanceId2: num, ReFinanceId2: num,
GuestId: this.GuestId, GuestId: this.GuestId,
RelevanceFrId: 5, // 单据类型 5其他 RelevanceFrId: 5, // 单据类型 5其他
}, }, ];
];
} }
if (num == '2') { if (num == '2') {
data = [ data = [{
{
path: "ChoiceAddFinancialDocuments", path: "ChoiceAddFinancialDocuments",
type: type, type: type,
OtherType: 55, OtherType: 55,
ReFinanceId: this.orderId, ReFinanceId: this.orderId,
ReFinanceId2: num, ReFinanceId2: num,
GuestId: this.GuestId, GuestId: this.GuestId,
}, }, ];
];
} }
href = href =
url + url +
...@@ -506,11 +501,11 @@ export default { ...@@ -506,11 +501,11 @@ export default {
} }
}, },
}, },
}; };
</script> </script>
<style> <style>
.finance-list-box { .finance-list-box {
padding: 0 20px 20px 20px; padding: 0 20px 20px 20px;
position: absolute; position: absolute;
top: 54px; top: 54px;
...@@ -518,13 +513,15 @@ export default { ...@@ -518,13 +513,15 @@ export default {
left: 0; left: 0;
right: 0; right: 0;
overflow-y: auto; overflow-y: auto;
} }
.none-finance {
.none-finance {
height: 30px; height: 30px;
text-align: center; text-align: center;
color: #666666; color: #666666;
} }
.TB_comtitle {
.TB_comtitle {
color: #333333; color: #333333;
padding-left: 10px; padding-left: 10px;
height: 14px; height: 14px;
...@@ -532,162 +529,169 @@ export default { ...@@ -532,162 +529,169 @@ export default {
font-size: 14px; font-size: 14px;
border-left: 3px solid #4d7afd; border-left: 3px solid #4d7afd;
margin-bottom: 20px; margin-bottom: 20px;
} }
.Team_Details { .Team_Details {
margin-top: 20px; margin-top: 20px;
font-size: 12px; font-size: 12px;
} }
.Team_DList { .Team_DList {
border: 1px solid #e6e6e6; border: 1px solid #e6e6e6;
background-color: #fff; background-color: #fff;
margin-top: 20px; margin-top: 20px;
padding: 20px; padding: 20px;
height: 167px; height: 167px;
} }
.tipTable tr td {
.tipTable tr td {
height: 30px !important; height: 30px !important;
} }
.singeRowTable tr th {
.singeRowTable tr th {
height: 30px; height: 30px;
text-align: left !important; text-align: left !important;
padding-left: 12px !important; padding-left: 12px !important;
} }
.singeRowTable tr td { .singeRowTable tr td {
border: 1px solid #e5e5e5; border: 1px solid #e5e5e5;
padding: 0px !important; padding: 0px !important;
padding-left: 12px !important; padding-left: 12px !important;
font-size: 13px; font-size: 13px;
} }
/* .Team_Content .el-col-5 { /* .Team_Content .el-col-5 {
margin-right: 18px; margin-right: 18px;
} */ } */
.Team_Coins { .Team_Coins {
color: #ff9c00; color: #ff9c00;
} }
.Team_income { .Team_income {
color: #4d7afd; color: #4d7afd;
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
.TB-Title { .TB-Title {
float: left; float: left;
position: relative; position: relative;
top: 10px; top: 10px;
} }
.TB-Title.B-Title-fr{
.TB-Title.B-Title-fr {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.Team_ComCoin { .Team_ComCoin {
width: 60%; width: 60%;
margin: auto; margin: auto;
text-align: left; text-align: left;
} }
.Team_btmDiv { .Team_btmDiv {
margin-top: 5px; margin-top: 5px;
} }
.Team_collection { .Team_collection {
margin-top: 40px; margin-top: 40px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.Team_collection tr th{
.Team_collection tr th {
border: 1px solid #e5e5e5; border: 1px solid #e5e5e5;
font-size: 14px; font-size: 14px;
} }
.Team_outCome { .Team_outCome {
color: #ff9c00; color: #ff9c00;
} }
.Team_Pay { .Team_Pay {
color: #ff5150; color: #ff5150;
} }
.TeamAddBtn { .TeamAddBtn {
float: right; float: right;
margin-bottom: 10px; margin-bottom: 10px;
} }
.Team_DList div { .Team_DList div {
margin-bottom: 8px; margin-bottom: 8px;
color: #666666; color: #666666;
} }
.Team_firstTitle { .Team_firstTitle {
font-size: 14px; font-size: 14px;
/* font-family: "PingFang-SC-Bold"; */ /* font-family: "PingFang-SC-Bold"; */
color: #333333 !important; color: #333333 !important;
} }
.Team_comCoinType { .Team_comCoinType {
display: inline-block; display: inline-block;
width: 24px; width: 24px;
height: 24px; height: 24px;
border-radius: 50%; border-radius: 50%;
position: relative; position: relative;
top: -1px; top: -1px;
} }
.Team_shou { .Team_shou {
background-color: #d7e6ff; background-color: #d7e6ff;
color: #4d7afd; color: #4d7afd;
} }
.Team_firstTitle span { .Team_firstTitle span {
margin-right: 10px; margin-right: 10px;
text-align: center; text-align: center;
line-height: 24px; line-height: 24px;
font-size: 12px; font-size: 12px;
vertical-align: middle; vertical-align: middle;
} }
.Team_Incontent {
.Team_Incontent {
font-size: 12px; font-size: 12px;
} }
.Team_Incontent span {
.Team_Incontent span {
font-size: 12px; font-size: 12px;
font-family: "PingFangSC-Fine"; font-family: "PingFangSC-Fine";
} }
.Team_zhichu { .Team_zhichu {
background-color: #fde2df; background-color: #fde2df;
color: #ff504f; color: #ff504f;
} }
.Team_lirun { .Team_lirun {
background-color: #d1f3ea; background-color: #d1f3ea;
color: #1bc594; color: #1bc594;
} }
.Team_BtnList { .Team_BtnList {
margin-top: 30px; margin-top: 30px;
text-align: center; text-align: center;
} }
.TB_Rate, .TB_Rate,
.TB_PayMoney { .TB_PayMoney {
margin-left: 20px; margin-left: 20px;
} }
.TeamBalancePayment .TB_PrintDiv { .TeamBalancePayment .TB_PrintDiv {
height: 40px; height: 40px;
} }
.span_all { .span_all {
margin-left: 15px; margin-left: 15px;
} }
.TeamExpectList {
.TeamExpectList {
max-height: 105px; max-height: 105px;
overflow: auto; overflow: auto;
margin-bottom: 0 !important; margin-bottom: 0 !important;
} }
</style> </style>
\ No newline at end of file
...@@ -218,7 +218,8 @@ ...@@ -218,7 +218,8 @@
<el-col :span="8"> <el-col :span="8">
<div style="display: flex;flex-direction: row;align-items: center;"> <div style="display: flex;flex-direction: row;align-items: center;">
<span class="font-size-12" style="padding-right: 10px;flex-shrink: 0;">订单类型:</span> <span class="font-size-12" style="padding-right: 10px;flex-shrink: 0;">订单类型:</span>
<el-select size="mini" width="200" v-model="msg.OrderType" placeholder="请选择" @change="handleCurrentChange(1)"> <el-select size="mini" width="200" v-model="msg.OrderType" placeholder="请选择"
@change="handleCurrentChange(1)">
<el-option v-for="item in OrderTypeList" :key="item.Id" :label="item.Name" :value="item.Id"> <el-option v-for="item in OrderTypeList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option> </el-option>
</el-select> </el-select>
...@@ -273,7 +274,7 @@ ...@@ -273,7 +274,7 @@
orderList, orderList,
orderDetailsDrawer orderDetailsDrawer
}, },
props: ["detailsData","ID", "BusinessType"], props: ["detailsData", "ID", "BusinessType"],
data() { data() {
return { return {
title: '详情', title: '详情',
...@@ -332,11 +333,20 @@ ...@@ -332,11 +333,20 @@
Id: '3' Id: '3'
}, },
], ],
OrderStatusList: [ OrderStatusList: [{
{Name: '不限',Id:0}, Name: '不限',
{Name: '正常',Id:1}, Id: 0
{Name: '取消',Id:2}], //订单状态 },
OrderTypeList:[], {
Name: '正常',
Id: 1
},
{
Name: '取消',
Id: 2
}
], //订单状态
OrderTypeList: [],
ticketingStatusList: [], // 出票状态 ticketingStatusList: [], // 出票状态
dataList: [], dataList: [],
loading: false, loading: false,
...@@ -359,22 +369,22 @@ ...@@ -359,22 +369,22 @@
EnterId: '0', //业务员id EnterId: '0', //业务员id
OrderState: 1, //订单状态 OrderState: 1, //订单状态
Q_IsCollect: "0", //收款状态 Q_IsCollect: "0", //收款状态
StartTime: "",//报名开始日期 StartTime: "", //报名开始日期
EndTime: "",//报名结束日期 EndTime: "", //报名结束日期
IsMyOrder: "1", //我的订单 IsMyOrder: "1", //我的订单
FinishSTime: "",//完结开始时间 FinishSTime: "", //完结开始时间
FinishETime: "",//完结结束时间 FinishETime: "", //完结结束时间
DepartSTime: "",//出发开始 DepartSTime: "", //出发开始
DepartETime: "",//出发结束 DepartETime: "", //出发结束
TCNUM: "",//团号 TCNUM: "", //团号
ProductName: "",//商品名称 ProductName: "", //商品名称
CustomerName: "",//客户名称 CustomerName: "", //客户名称
LureEmpId: 0,//引流人员 LureEmpId: 0, //引流人员
LineId: 0,//线路 LineId: 0, //线路
TravelType: 0,//跟团类型 1跟团 2当地游 TravelType: 0, //跟团类型 1跟团 2当地游
OrderType: "0",//订单类型 OrderType: "0", //订单类型
IsSelectCRM: 1,//1来源crm IsSelectCRM: 1, //1来源crm
IsMyOrder: 0,//1我的订单 IsMyOrder: 0, //1我的订单
}, },
total: 0, total: 0,
currentOrder: null, currentOrder: null,
...@@ -420,40 +430,42 @@ ...@@ -420,40 +430,42 @@
handleCommand(command) { handleCommand(command) {
let data = [{ let data = [{
path: "", path: "",
LureEmpNmae: this.detailsData.CreateByStr,//引流姓名 LureEmpNmae: this.detailsData.CreateByStr, //引流姓名
LureEmpId: this.detailsData.CreateBy,//引流id LureEmpId: this.detailsData.CreateBy, //引流id
CRMGuestId: this.ID, //客人ID CRMGuestId: this.ID, //客人ID
CRMGuestName: this.detailsData.SurName+this.detailsData.Name //客人ID CRMGuestName: this.detailsData.SurName + this.detailsData.Name //客人ID
}] }]
let href let href
let url = this.domainManager().erpRoutingUrl; let url = this.domainManager().erpRoutingUrl;
if (command == 1) { if (command == 1) {
this.addBusiness(); this.addBusiness();
}else{ } else {
if (command == 2) { if (command == 2) {
data[0].path = 'VisaProductAddOrder' data[0].path = 'VisaProductAddOrder'
href =url +"automaticLogin?token=" +this.getLocalStorage().token +"&data=" +JSON.stringify(data); href = url + "automaticLogin?token=" + this.getLocalStorage().token + "&data=" + JSON.stringify(
}else if (command == 3) { data);
} else if (command == 3) {
data[0].path = 'productQuery' data[0].path = 'productQuery'
href =url +"automaticLogin?token=" +this.getLocalStorage().token +"&data=" +JSON.stringify(data); href = url + "automaticLogin?token=" + this.getLocalStorage().token + "&data=" + JSON.stringify(
} data);
else if (command == 4) { } else if (command == 4) {
data[0].path = 'productQueryOne' data[0].path = 'productQueryOne'
href =url +"automaticLogin?token=" +this.getLocalStorage().token +"&data=" +JSON.stringify(data); href = url + "automaticLogin?token=" + this.getLocalStorage().token + "&data=" + JSON.stringify(
} data);
else if (command == 5) { } else if (command == 5) {
data[0].path = 'singleProductHotelList' data[0].path = 'singleProductHotelList'
href =url +"automaticLogin?token=" +this.getLocalStorage().token +"&data=" +JSON.stringify(data); href = url + "automaticLogin?token=" + this.getLocalStorage().token + "&data=" + JSON.stringify(
} data);
else if (command == 6) { } else if (command == 6) {
data[0].path = 'SingleticketList' data[0].path = 'SingleticketList'
href =url +"automaticLogin?token=" +this.getLocalStorage().token +"&data=" +JSON.stringify(data); href = url + "automaticLogin?token=" + this.getLocalStorage().token + "&data=" + JSON.stringify(
} data);
else if (command == 7) { } else if (command == 7) {
data[0].path = 'BookAcarList' data[0].path = 'BookAcarList'
href =url +"automaticLogin?token=" +this.getLocalStorage().token +"&data=" +JSON.stringify(data); href = url + "automaticLogin?token=" + this.getLocalStorage().token + "&data=" + JSON.stringify(
data);
} }
if(href){ if (href) {
window.open(href); window.open(href);
} }
...@@ -551,7 +563,7 @@ ...@@ -551,7 +563,7 @@
} }
}, },
// 修改日期 // 修改日期
modifiedDate(row){ modifiedDate(row) {
let $this = this let $this = this
this.MsgBus.$emit("modifiedDateOrderBoxOpen", $this.ID, row, true); this.MsgBus.$emit("modifiedDateOrderBoxOpen", $this.ID, row, true);
}, },
...@@ -778,7 +790,7 @@ ...@@ -778,7 +790,7 @@
ReFinanceId: row.OrderId, ReFinanceId: row.OrderId,
ReFinanceId2: num, ReFinanceId2: num,
GuestId: row.GuestId, GuestId: row.GuestId,
RelevanceFrId: num==2?1:row.OrderType, // 单据类型 RelevanceFrId: num == 2 ? 1 : row.OrderType, // 单据类型
}] }]
href = url + 'automaticLogin?token=' + this.getLocalStorage().token + '&data=' + JSON href = url + 'automaticLogin?token=' + this.getLocalStorage().token + '&data=' + JSON
.stringify(data) .stringify(data)
...@@ -885,7 +897,8 @@ ...@@ -885,7 +897,8 @@
if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator() this.ValidateOperator()
} else { } else {
if (row.OrderStatus==1&&(row.TicketStatus == 1||row.TicketStatus == 5) || (row.visaStatus == 0||row.visaStatus == 1)) { if (row.OrderStatus == 1 && (row.TicketStatus == 1 || row.TicketStatus == 5) || (row.visaStatus ==
0 || row.visaStatus == 1)) {
let $this = this; let $this = this;
this.MsgBus.$emit("editOrderTicketOrderBoxOpen", $this.ID, row, true); this.MsgBus.$emit("editOrderTicketOrderBoxOpen", $this.ID, row, true);
} else { } else {
...@@ -898,15 +911,14 @@ ...@@ -898,15 +911,14 @@
if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) { if (this.userInfo.EmployeeId != row.EnterID && this.userInfo.EmployeeId != row.CreateBy) {
this.ValidateOperator() this.ValidateOperator()
} else { } else {
if (row.OrderStatus==1&&(row.TicketStatus == 1||row.TicketStatus == 5) || (row.visaStatus == 0||row.visaStatus == 1)) { if (row.OrderStatus == 1 && (row.TicketStatus == 1 || row.TicketStatus == 5) || (row.visaStatus ==
0 || row.visaStatus == 1)) {
let $this = this; let $this = this;
this.MsgBus.$emit("editTicketOrderBoxOpen", $this.ID, row, true); this.MsgBus.$emit("editTicketOrderBoxOpen", $this.ID, row, true);
} else { } else {
this.emptyMore() this.emptyMore()
} }
} }
}, },
openDetails(row) { openDetails(row) {
let href let href
......
...@@ -18,17 +18,17 @@ export default function () { ...@@ -18,17 +18,17 @@ export default function () {
domainPostUrl = "http://testapi.oytour.com" domainPostUrl = "http://testapi.oytour.com"
} }
} }
let erpRoutingUrl = ""; let erpSiteUrl = "";
var storageUser = this.getLocalStorage(); var storageUser = this.getLocalStorage();
if (locationName.indexOf('oytour') !== -1 || locationName.indexOf('testb2b.oytour.com') !== -1) { if (locationName.indexOf('oytour') !== -1 || locationName.indexOf('testb2b.oytour.com') !== -1) {
erpRoutingUrl = "http://admin.oytour.com/#/"; erpSiteUrl = "http://admin.oytour.com/#/";
if (storageUser && storageUser.ERPUrl) { if (storageUser && storageUser.ERPUrl) {
erpRoutingUrl = storageUser.ERPUrl + "/#/"; erpSiteUrl = storageUser.ERPUrl + "/#/";
} }
} else { } else {
erpRoutingUrl = "http://localhost:8080/#/"; erpSiteUrl = "http://localhost:8080/#/";
if (storageUser && storageUser.ERPUrl) { if (storageUser && storageUser.ERPUrl) {
erpRoutingUrl = storageUser.ERPUrl + "/#/"; erpSiteUrl = storageUser.ERPUrl + "/#/";
} }
} }
...@@ -46,7 +46,7 @@ export default function () { ...@@ -46,7 +46,7 @@ export default function () {
javaUrl: locationName.indexOf('testb2b') == -1 ? "http://efficient.oytour.com" : locationName.indexOf('testb2b.oytour.com') !== -1 ? "http://47.96.12.235:9001" : "http://192.168.10.215:9000", javaUrl: locationName.indexOf('testb2b') == -1 ? "http://efficient.oytour.com" : locationName.indexOf('testb2b.oytour.com') !== -1 ? "http://47.96.12.235:9001" : "http://192.168.10.215:9000",
ViittoFileUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('testb2b.oytour.com') !== -1 ? "http://staticfile.oytour.com" : 'http://192.168.10.214:8130', ViittoFileUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('testb2b.oytour.com') !== -1 ? "http://staticfile.oytour.com" : 'http://192.168.10.214:8130',
UploadUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('testb2b.oytour.com') !== -1 ? "http://uploadfile.oytour.com" : "http://192.168.10.214:8120", UploadUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('testb2b.oytour.com') !== -1 ? "http://uploadfile.oytour.com" : "http://192.168.10.214:8120",
erpRoutingUrl: erpRoutingUrl erpRoutingUrl: erpSiteUrl
}; };
return obj; return obj;
} }
\ No newline at end of file
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