Commit a760dfdc authored by 黄奎's avatar 黄奎

页面修改

parent f8f1714d
...@@ -216,12 +216,12 @@ ...@@ -216,12 +216,12 @@
<div class="AD_Operation"> <div class="AD_Operation">
<span class="openGroup opbdList"> <span class="openGroup opbdList">
<el-tooltip class="item" effect="dark" content="查看" placement="top-start" popper-class="max-w250"> <el-tooltip class="item" effect="dark" content="查看" placement="top-start" popper-class="max-w250">
<span @click="goUrl('QuotationAduit',item,1)"></span> <span @click="offerAudit(item,1)"></span>
</el-tooltip> </el-tooltip>
</span> </span>
<span class="openGroup opbdList" v-if="item.TravelState==2"> <span class="openGroup opbdList" v-if="item.TravelState==2">
<el-tooltip class="item" effect="dark" content="审核" placement="top-start" popper-class="max-w250"> <el-tooltip class="item" effect="dark" content="审核" placement="top-start" popper-class="max-w250">
<span @click="goUrl('QuotationAduit',item,2)"></span> <span @click="offerAudit(item,2)"></span>
</el-tooltip> </el-tooltip>
</span> </span>
<span class="openGroup opbdList"> <span class="openGroup opbdList">
...@@ -394,23 +394,16 @@ ...@@ -394,23 +394,16 @@
} }
); );
}, },
goUrl(path, item, qType) { offerAudit( item, qType) {
if (item.ID > 0) {
this.$router.push({ this.$router.push({
name: path, name: 'QuotationAduit',
query: { query: {
configId: item.ID,
offerid: item.OfferId, offerid: item.OfferId,
Qtype: qType, Qtype: qType,
blank: 'y', blank: 'y',
tab: '报价单审核' tab: '报价单审核'
} }
}); });
} else {
this.$router.push({
name: path
});
}
}, },
}, },
mounted() { mounted() {
......
...@@ -146,9 +146,12 @@ ...@@ -146,9 +146,12 @@
<td style="width:50px" class="CP_ComTitle2 CostcomCenter">价格/人</td> <td style="width:50px" class="CP_ComTitle2 CostcomCenter">价格/人</td>
<td style="width:50px" class="CP_ComTitle2 CostcomCenter">车资/天</td> <td style="width:50px" class="CP_ComTitle2 CostcomCenter">车资/天</td>
<td style="width:50px" class="CP_ComTitle2 CostcomCenter">过路费<br />停车费/天</td> <td style="width:50px" class="CP_ComTitle2 CostcomCenter">过路费<br />停车费/天</td>
<td style="width:110px" class="CP_ComTitle2 CostcomCenter">餐厅名称</td> <td style="width:110px" class="CP_ComTitle2 CostcomCenter">餐厅名称<br /><span
style="color:red;">填写餐厅名称才能带出价格</span></td>
<td style="width:90px" class="CP_ComTitle2 CostcomCenter">价格/餐</td> <td style="width:90px" class="CP_ComTitle2 CostcomCenter">价格/餐</td>
<td style="width:100px" class="CP_ComTitle2 CostcomCenter">景点名称</td> <td style="width:100px" class="CP_ComTitle2 CostcomCenter">景点名称<br />
<span style="color:red;">填写景点名称才能带出价格</span>
</td>
<td style="width:50px" class="CP_ComTitle2 CostcomCenter">价格/人</td> <td style="width:50px" class="CP_ComTitle2 CostcomCenter">价格/人</td>
<td style="width:50px" class="CP_ComTitle2 CostcomCenter">名称</td> <td style="width:50px" class="CP_ComTitle2 CostcomCenter">名称</td>
<td style="width:50px" class="CP_ComTitle2 CostcomCenter">价格</td> <td style="width:50px" class="CP_ComTitle2 CostcomCenter">价格</td>
...@@ -180,7 +183,7 @@ ...@@ -180,7 +183,7 @@
<el-option v-for="(x) in subItem.HotelList" :key="x.ID" :label="x.Name" :value='x.ID'> <el-option v-for="(x) in subItem.HotelList" :key="x.ID" :label="x.Name" :value='x.ID'>
</el-option> </el-option>
</el-select> </el-select>
<el-form-item label="含餐类型:"> <el-form-item label="含餐:">
<el-select v-model='subItem.ContainDinnerType' style="width:100px;" placeholder="含餐类型" <el-select v-model='subItem.ContainDinnerType' style="width:100px;" placeholder="含餐类型"
@change="DinnerTypeChange(subItem)"> @change="DinnerTypeChange(subItem)">
<el-option label="含餐类型" :value='0'></el-option> <el-option label="含餐类型" :value='0'></el-option>
...@@ -329,18 +332,18 @@ ...@@ -329,18 +332,18 @@
@keyup.native="checkPrice(teamPrice,'VisaPrice'),getchange()"></el-input> @keyup.native="checkPrice(teamPrice,'VisaPrice'),getchange()"></el-input>
</el-form-item> </el-form-item>
</td> </td>
<td>
<el-form-item label="保险">
<el-input type='text' class="w70" v-model="OtherPrice.SafeMoney"
@keyup.native="checkPrice(OtherPrice,'SafeMoney'),getchange()"></el-input>
</el-form-item>
</td>
<td colspan="2"> <td colspan="2">
<el-form-item label="领队导游分摊"> <el-form-item label="领队导游分摊">
<el-input type='text' class="w120" v-model="OtherPrice.AirTicketShareMoney" <el-input type='text' class="w100" v-model="OtherPrice.AirTicketShareMoney"
@keyup.native="checkPrice(OtherPrice,'AirTicketShareMoney'),getchange()"></el-input> @keyup.native="checkPrice(OtherPrice,'AirTicketShareMoney'),getchange()"></el-input>
</el-form-item>
<el-form-item label="保险">
<el-input type='text' class="w100" v-model="OtherPrice.SafeMoney"
@keyup.native="checkPrice(OtherPrice,'SafeMoney'),getchange()"></el-input>
</el-form-item> </el-form-item>
</td> </td>
<td colspan="2"> <td colspan="2">
小计(机票+税金+联运+过夜+签证+保险+领队导游分摊): 小计(机票+税金+联运+过夜+签证+保险+领队导游分摊):
<br /> {{getCostTotalMoney()}} <br /> {{getCostTotalMoney()}}
......
...@@ -178,16 +178,11 @@ ...@@ -178,16 +178,11 @@
}); });
}, },
getPostData() { getPostData() {
let configId = 0;
if (this.$route.query.configId) {
configId = this.$route.query.configId;
}
let offerId = 0; let offerId = 0;
if (this.$route.query.offerid) { if (this.$route.query.offerid) {
offerId = this.$route.query.offerid; offerId = this.$route.query.offerid;
} }
let msg = { let msg = {
ID: configId,
offerId: offerId offerId: offerId
}; };
this.loading = true; this.loading = true;
...@@ -254,9 +249,6 @@ ...@@ -254,9 +249,6 @@
}, },
}, },
created() { created() {
if (this.$route.query.TeamType) {
this.postData.TeamType = this.$route.query.TeamType;
}
if (this.$route.query.Qtype) { if (this.$route.query.Qtype) {
this.IsEdit = this.$route.query.Qtype; this.IsEdit = this.$route.query.Qtype;
} }
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
</div> </div>
</template> </template>
<script> <script>
import DirectNewQuotation from "../TravelNewQuotation/DirectNewQuotation"; import DirectNewQuotation from "../TravelNewQuotation/DirectNewQuotation";
export default { export default {
data() { data() {
...@@ -59,7 +58,7 @@ ...@@ -59,7 +58,7 @@
CustomerName: "", //客户名称 CustomerName: "", //客户名称
TeamType: 0, //团队类型 TeamType: 0, //团队类型
TravelState: 1, //团控状态(1-草稿,2-待审核,3-审核通过,4-审核拒绝,5已撤销) TravelState: 1, //团控状态(1-草稿,2-待审核,3-审核通过,4-审核拒绝,5已撤销)
OutBranchId: -1, //出团公司 OutBranchId: "", //出团公司
OutDateTime: "", //出发时间 OutDateTime: "", //出发时间
OfferPayType: 0, //报价单付款方式 OfferPayType: 0, //报价单付款方式
SaleOfferPayType: 0, //售价付款方式 SaleOfferPayType: 0, //售价付款方式
...@@ -137,9 +136,9 @@ ...@@ -137,9 +136,9 @@
ContractUrl: "", //合同地址 ContractUrl: "", //合同地址
PriceRemark: "", //定价备注 PriceRemark: "", //定价备注
ContractArray: [], ContractArray: [],
TaxPrice:0,//税金 TaxPrice: 0, //税金
UnionPrice:0,//联运价格 UnionPrice: 0, //联运价格
NightPrice:0,//过夜费 NightPrice: 0, //过夜费
}, },
LineList: [], //线路列表 LineList: [], //线路列表
loading: false loading: false
...@@ -221,21 +220,19 @@ ...@@ -221,21 +220,19 @@
}, },
getPostData() { getPostData() {
this.haveData = false; this.haveData = false;
let configId = this.$route.query.configId;
let offerId = 0; let offerId = 0;
if (this.$route.query.offerid) { if (this.$route.query.offerid) {
offerId = this.$route.query.offerid; offerId = this.$route.query.offerid;
} }
let msg = { let msg = {
ID: configId,
offerId: offerId, offerId: offerId,
IsDefault: 1,
}; };
this.loading = true; this.loading = true;
this.apipost( this.apipost(
"travel_get_GetMyTravelInfo_V4", "travel_get_GetMyTravelInfo_V4",
msg, msg,
res => { res => {
console.log("travel_get_GetMyTravelInfo_V4",res);
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData = res.data.data; var tempData = res.data.data;
...@@ -270,13 +267,15 @@ ...@@ -270,13 +267,15 @@
this.postData.NightNum = tempData.NightNum; this.postData.NightNum = tempData.NightNum;
} }
this.postData.CustomerName = tempData.CustomerName; this.postData.CustomerName = tempData.CustomerName;
if(tempData.OutBranchId!=null){ if (tempData.OutBranchId != null) {
this.postData.OutBranchId = Number(tempData.OutBranchId) this.postData.OutBranchId = Number(tempData.OutBranchId)
} }
if(this.$route.query.OutBranchId!=undefined&&this.$route.query.OutBranchId!=null&&this.postData.OutBranchId==-1){ if (this.$route.query.OutBranchId != undefined && this.$route.query.OutBranchId != null && this.postData
.OutBranchId == -1) {
this.postData.OutBranchId = Number(this.$route.query.OutBranchId) this.postData.OutBranchId = Number(this.$route.query.OutBranchId)
} }
this.postData.OutDateTime = tempData.OutDateTime?tempData.OutDateTime:this.$route.query.OutDateTime?this.$route.query.OutDateTime:null; this.postData.OutDateTime = tempData.OutDateTime ? tempData.OutDateTime : this.$route.query
.OutDateTime ? this.$route.query.OutDateTime : null;
this.postData.OfferPayType = tempData.OfferPayType; this.postData.OfferPayType = tempData.OfferPayType;
this.postData.SaleOfferPayType = tempData.SaleOfferPayType; this.postData.SaleOfferPayType = tempData.SaleOfferPayType;
this.postData.TravelState = tempData.TravelState; this.postData.TravelState = tempData.TravelState;
...@@ -286,7 +285,6 @@ ...@@ -286,7 +285,6 @@
this.OfferArray.push(item) this.OfferArray.push(item)
}) })
} }
this.haveData = true; this.haveData = true;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
...@@ -297,13 +295,7 @@ ...@@ -297,13 +295,7 @@
}, },
}, },
created() { created() {
this.postData.TeamType = this.$route.query.TeamType?Number(this.$route.query.TeamType):0; this.postData.OfferId = this.$route.query.offerid > 0 ? this.$route.query.offerid : 0
this.postData.ID = this.$route.query.configld?this.$route.query.configld:0
this.postData.TCID = this.$route.query.TCID?this.$route.query.TCID:0
this.postData.OfferId = this.$route.query.offerid>0?this.$route.query.offerid:0
this.postData.LineId = this.$route.query.LineID>0?Number(this.$route.query.LineID):0
this.postData.LineteamId = this.$route.query.ltID>0?Number(this.$route.query.ltID):0
this.postData.DayNum = this.$route.query.DayNum?this.$route.query.DayNum:0
this.getPostData(); this.getPostData();
}, },
components: { components: {
......
...@@ -275,10 +275,9 @@ ...@@ -275,10 +275,9 @@
</el-tooltip> </el-tooltip>
</span> </span>
<span class="bianji newAopbdd" <span class="bianji newAopbdd"
v-if="item.TravelState==1||item.TravelState==2||item.TravelState==4||item.TravelState==5" v-if="item.TravelState==1||item.TravelState==2||item.TravelState==4||item.TravelState==5"
@click="goMakeQuo('QuotationNewPrice',item.ID,item.OfferId, item.TeamType)"> @click="goMakeQuo('QuotationNewPrice',item.OfferId)">
<el-tooltip class="item" effect="dark" :content="$t('pub.updateMsg')" placement="top-start" <el-tooltip class="item" effect="dark" :content="$t('pub.updateMsg')" placement="top-start"
popper-class="max-w250"> popper-class="max-w250">
<i class="iconfont icon-bianji-smal"></i> <i class="iconfont icon-bianji-smal"></i>
...@@ -293,9 +292,7 @@ ...@@ -293,9 +292,7 @@
</span> </span>
<span style="background:#85ce61; " class="newAopbdd"> <span style="background:#85ce61; " class="newAopbdd">
<el-tooltip class="item" effect="dark" w450content="查看" placement="top-start" popper-class="max-w250"> <el-tooltip class="item" effect="dark" w450content="查看" placement="top-start" popper-class="max-w250">
<i @click="goUrl('QuotationAduit',item.ID,1)" class="iconfont icon-view"></i>
<i @click="goUrl('QuotationAduit',item.ID,1)" class="iconfont icon-view"></i>"></i>
</el-tooltip> </el-tooltip>
</span> </span>
<!-- <span style="background:#85ce61; " class="newAopbdd" @click="showDownLoad(item)"> <!-- <span style="background:#85ce61; " class="newAopbdd" @click="showDownLoad(item)">
...@@ -533,8 +530,7 @@ ...@@ -533,8 +530,7 @@
} //小包团 } //小包团
else if (this.postConfig.TeamType == 1) { else if (this.postConfig.TeamType == 1) {
chooseLineList = this.LineList.filter(qItem => qItem.Is_PacketGroup == 1); chooseLineList = this.LineList.filter(qItem => qItem.Is_PacketGroup == 1);
} } else if (this.postConfig.TeamType == 2) {
else if (this.postConfig.TeamType == 2) {
chooseLineList = this.LineList.filter(qItem => qItem.LineDirection == 3); chooseLineList = this.LineList.filter(qItem => qItem.LineDirection == 3);
} }
return chooseLineList; return chooseLineList;
...@@ -727,28 +723,15 @@ ...@@ -727,28 +723,15 @@
}); });
}, },
//报价单跳转 //报价单跳转
goMakeQuo(path, configId,OfferId, TeamType) { goMakeQuo(path, OfferId) {
if (configId) {
this.$router.push({ this.$router.push({
path: path, path: path,
query: { query: {
TeamType: TeamType,
configId: configId,
offerid: OfferId, offerid: OfferId,
blank: 'y', blank: 'y',
tab: '报价单' tab: '报价单'
} }
}); });
} else {
this.$router.push({
path: path,
query: {
configId: configId,
blank: 'y',
tab: '报价单'
}
});
}
}, },
//开团或修改 //开团或修改
goToOpenTravel(item) { goToOpenTravel(item) {
......
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