Commit c73080f9 authored by 黄奎's avatar 黄奎
parents 517ff0b3 b779eacd
...@@ -2,6 +2,25 @@ ...@@ -2,6 +2,25 @@
</style> </style>
<template> <template>
<div>
<div style="border: none; display: flex; margin-bottom: 20px">
<ul style="overflow: initial!important;display: flex; width: 100%">
<li style="display: flex">
<span style="width: 60px; line-height: 34px">
<em>{{$t('salesModule.keyWords')}}</em>
</span>
<el-input v-model="qMsg.CustomerName" :placeholder="$t('salesModule.InputPhone')"></el-input>
</li>
<li>
<input
type="button"
class="hollowFixedBtn"
:value="$t('pub.searchBtn')"
@click="resetPageIndex(),getCustomerList()"
>
</li>
</ul>
</div>
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>选择同行</span> <span>选择同行</span>
...@@ -37,7 +56,7 @@ ...@@ -37,7 +56,7 @@
layout="total,prev, pager, next, jumper" :page-size="qMsg.pageSize" :total="qMsg.total"> layout="total,prev, pager, next, jumper" :page-size="qMsg.pageSize" :total="qMsg.total">
</el-pagination> </el-pagination>
</div> </div>
</el-card> </el-card></div>
</template> </template>
<script> <script>
export default { export default {
...@@ -46,6 +65,7 @@ ...@@ -46,6 +65,7 @@
loading: false, loading: false,
dataList: [], //数据列表 dataList: [], //数据列表
qMsg: { qMsg: {
CustomerName: '',
pageIndex: 1, pageIndex: 1,
currentPage: 1, currentPage: 1,
pageSize: 8, pageSize: 8,
...@@ -75,6 +95,7 @@ ...@@ -75,6 +95,7 @@
this.qMsg.pageIndex = val; this.qMsg.pageIndex = val;
this.getCustomerList(); this.getCustomerList();
}, },
resetPageIndex() {this.qMsg.pageIndex = 1;},
// 获取合作伙伴列表 // 获取合作伙伴列表
getCustomerList() { getCustomerList() {
this.loading = true; this.loading = true;
......
...@@ -1200,7 +1200,7 @@ ...@@ -1200,7 +1200,7 @@
addMsg.IsChildrenTour = this.addObj.IsSupportChildren; addMsg.IsChildrenTour = this.addObj.IsSupportChildren;
addMsg.IsBirdDiscount = this.addObj.IsBirdDiscount; addMsg.IsBirdDiscount = this.addObj.IsBirdDiscount;
this.apipost( this.apipost(
"sellorder_post_SetOrderInfo", "sellorder_post_SetTravelTeamOrderForB2B",
addMsg, addMsg,
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
......
...@@ -669,6 +669,14 @@ ...@@ -669,6 +669,14 @@
TotalNumber: 0, TotalNumber: 0,
}; };
}, },
watch: {
info: {
handler: function() {
this.goBuy(this.info)
},
deep: true
}
},
components: { components: {
}, },
filters: { filters: {
...@@ -1364,7 +1372,9 @@ ...@@ -1364,7 +1372,9 @@
} }
this.autoRemarks("VisaNum", "不要签证数量"); this.autoRemarks("VisaNum", "不要签证数量");
}, },
// 计算价格
getTotalPrice(t) { getTotalPrice(t) {
console.log('getTotalPrice', this.addObj)
if (t === 3) { if (t === 3) {
if (parseFloat(this.addMsg.Unit_Price).toString() === "NaN") { if (parseFloat(this.addMsg.Unit_Price).toString() === "NaN") {
this.$message.error("请输入正确的价格!"); this.$message.error("请输入正确的价格!");
...@@ -1416,7 +1426,7 @@ ...@@ -1416,7 +1426,7 @@
Number(this.addMsg.ManNum) + Number(this.addMsg.ManNum) +
Number(this.addMsg.ChirdNum) + Number(this.addMsg.ChirdNum) +
Number(this.addMsg.OldPeopleNum)) - Number(this.addMsg.OldPeopleNum)) -
this.addObj.BackVisaPrice * (this.addObj.BackVisaPrice || 0) *
(Number(this.addMsg.AirticketNum) + (Number(this.addMsg.AirticketNum) +
Number(this.addMsg.ManNum) + Number(this.addMsg.ManNum) +
Number(this.addMsg.ChirdNum) + Number(this.addMsg.ChirdNum) +
...@@ -1483,7 +1493,7 @@ ...@@ -1483,7 +1493,7 @@
Number(this.addMsg.ManNum) + Number(this.addMsg.ManNum) +
Number(this.addMsg.ChirdNum) + Number(this.addMsg.ChirdNum) +
Number(this.addMsg.OldPeopleNum)) - Number(this.addMsg.OldPeopleNum)) -
this.addObj.BackVisaPrice * (this.addObj.BackVisaPrice || 0) *
(Number(this.addMsg.AirticketNum) + (Number(this.addMsg.AirticketNum) +
Number(this.addMsg.ManNum) + Number(this.addMsg.ManNum) +
Number(this.addMsg.ChirdNum) + Number(this.addMsg.ChirdNum) +
...@@ -1515,6 +1525,18 @@ ...@@ -1515,6 +1525,18 @@
dandijie = dandijie =
this.addObj.SingleDMCPrice * Number(this.addMsg.AirticketNum); this.addObj.SingleDMCPrice * Number(this.addMsg.AirticketNum);
} }
console.log('this.addObj.OtherPrice', this.addObj.OtherPrice, (Number(this.addMsg.ManNum) +
Number(this.addMsg.ChirdNum) +
Number(this.addMsg.OldPeopleNum)),this.addObj.VisaPrice,(Number(this.addMsg.AirticketNum) +
Number(this.addMsg.ManNum) +
Number(this.addMsg.ChirdNum) +
Number(this.addMsg.OldPeopleNum)),(Number(this.addMsg.AirticketNum) +
Number(this.addMsg.ManNum) +
Number(this.addMsg.ChirdNum) +
Number(this.addMsg.BabyNum) +
Number(this.addMsg.OldPeopleNum) -
Number(this.addMsg.VisaNum)))
this.addMsg.PreferPrice = this.addMsg.PreferPrice =
dandijie + dandijie +
lianyun + lianyun +
...@@ -1670,9 +1692,12 @@ ...@@ -1670,9 +1692,12 @@
}, },
// todo 购买的产品信息,需要从外部传入 // todo 购买的产品信息,需要从外部传入
goBuy(obj) { goBuy(obj) {
console.log('goBuy', obj)
if(!obj) return
this.isUpdateSharePeople = false; this.isUpdateSharePeople = false;
this.isShowLayer = true; this.isShowLayer = true;
this.addObj = obj; this.addObj = obj;
this.addObj.SingleDMCPrice = this.addObj.SingleDMCPrice || 0
this.addMsg.DepartureCityId = obj.StartCityID; this.addMsg.DepartureCityId = obj.StartCityID;
this.addMsg.ReturnArriveCityId = obj.ReturnArriveCityId; this.addMsg.ReturnArriveCityId = obj.ReturnArriveCityId;
...@@ -1893,7 +1918,7 @@ ...@@ -1893,7 +1918,7 @@
if (this.addMsg.ClientSource == 4 && this.addMsg.Remarks.indexOf(text) == -1) { if (this.addMsg.ClientSource == 4 && this.addMsg.Remarks.indexOf(text) == -1) {
this.addMsg.Remarks = '飞猪订单;' + this.addMsg.Remarks this.addMsg.Remarks = '飞猪订单;' + this.addMsg.Remarks
} }
} },
}, },
mounted() { mounted() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
...@@ -1911,6 +1936,7 @@ ...@@ -1911,6 +1936,7 @@
let nowDay = this.FormartDate(new Date()); let nowDay = this.FormartDate(new Date());
this.msg.StartTime = nowDay; this.msg.StartTime = nowDay;
} }
this.goBuy(this.info)
this.getEmployee(); this.getEmployee();
this.getStartList(); this.getStartList();
this.getKhlxList(); this.getKhlxList();
......
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