Commit f23cb914 authored by youjie's avatar youjie

no message

parents 726cdb3e eb47ec26
...@@ -682,8 +682,8 @@ ...@@ -682,8 +682,8 @@
<p class="travelnowrap" v-if="item.LineID==14 && item.IsOpenHotel==1"> <p class="travelnowrap" v-if="item.LineID==14 && item.IsOpenHotel==1">
<span style="color:red;font-weight:bold;">※ {{$t('op.DJyiguanbi')}}.</span> <span style="color:red;font-weight:bold;">※ {{$t('op.DJyiguanbi')}}.</span>
</p> </p>
<p class="travelnowrap"> <p class="travelnowrap" v-if="item.Config_OfferId">
<span style="cursor: pointer;" @click="showDialog(item.ConfigId, item.OfferId)">价格信息</span> <span style="cursor: pointer;" @click="showDialog(item.ID, item.OfferId)">报价详情</span>
</p> </p>
</div> </div>
</div> </div>
...@@ -1228,7 +1228,7 @@ ...@@ -1228,7 +1228,7 @@
</el-col> </el-col>
</el-form> </el-form>
</div> </div>
<el-dialog :visible.sync="dialog.show" width="1400px" title="价格信息"> <el-dialog :visible.sync="dialog.show" width="1400px" title="报价详情">
<price-dialog :ConfigId="dialog.ConfigId" :OfferId="dialog.OfferId" ref="dialog"></price-dialog> <price-dialog :ConfigId="dialog.ConfigId" :OfferId="dialog.OfferId" ref="dialog"></price-dialog>
</el-dialog> </el-dialog>
</div> </div>
......
...@@ -376,6 +376,9 @@ ...@@ -376,6 +376,9 @@
<span>{{$t('scen.sc_cp')}}</span> <span>{{$t('scen.sc_cp')}}</span>
{{item.OutBranchName}} {{item.OutBranchName}}
</p> </p>
<p class="travelnowrap" v-if="item.Config_OfferId">
<span style="cursor: pointer;" @click="showDialog(item.ID, item.OfferId)">报价详情</span>
</p>
</div> </div>
</div> </div>
<div class="el-col" style="width:190px;"> <div class="el-col" style="width:190px;">
...@@ -685,12 +688,23 @@ ...@@ -685,12 +688,23 @@
<button class="normalBtn" type="primary" @click="SetSellingPoints">{{$t('pub.sureBtn')}}</button> <button class="normalBtn" type="primary" @click="SetSellingPoints">{{$t('pub.sureBtn')}}</button>
</div> </div>
</div> </div>
<el-dialog :visible.sync="dialog.show" width="1400px" title="报价详情">
<price-dialog :ConfigId="dialog.ConfigId" :OfferId="dialog.OfferId" ref="dialog"></price-dialog>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import priceDialog from '../TravelNewQuotation/priceDialog.vue';
export default { export default {
components: {
priceDialog
},
data() { data() {
return { return {
dialog: {
show: false,
ConfigId: '',OfferId: ''
},
//查询数据列表 //查询数据列表
queryCommonData: { queryCommonData: {
//线路列表 //线路列表
...@@ -834,6 +848,15 @@ ...@@ -834,6 +848,15 @@
}; };
}, },
methods: { methods: {
showDialog(ConfigId,OfferId) {
this.dialog = {
show: true,
ConfigId,OfferId
}
this.$nextTick(() => {
this.$refs.dialog.getPostData()
})
},
downloadFile: function (item) { downloadFile: function (item) {
let reg = /^http(s)?:\/\/(.*?)\//; let reg = /^http(s)?:\/\/(.*?)\//;
this.downloadFileRename(item.FullUrl.replace(reg, ""), item.Name); this.downloadFileRename(item.FullUrl.replace(reg, ""), item.Name);
......
...@@ -474,8 +474,8 @@ ...@@ -474,8 +474,8 @@
v-if="item.PriceOfferUrl" target="_blank">下载报价单</a> v-if="item.PriceOfferUrl" target="_blank">下载报价单</a>
</span> </span>
</p> </p>
<p class="travelnowrap"> <p class="travelnowrap" v-if="item.Config_OfferId">
<span style="cursor: pointer;" @click="showDialog(item.ConfigId, item.OfferId)">价格信息</span> <span style="cursor: pointer;" @click="showDialog(item.ID, item.OfferId)">报价详情</span>
</p> </p>
</div> </div>
</div> </div>
...@@ -791,7 +791,7 @@ ...@@ -791,7 +791,7 @@
</el-col> </el-col>
</el-form> </el-form>
</div> </div>
<el-dialog :visible.sync="dialog.show" width="1400px" title="价格信息"> <el-dialog :visible.sync="dialog.show" width="1400px" title="报价详情">
<price-dialog :ConfigId="dialog.ConfigId" :OfferId="dialog.OfferId" ref="dialog"></price-dialog> <price-dialog :ConfigId="dialog.ConfigId" :OfferId="dialog.OfferId" ref="dialog"></price-dialog>
</el-dialog> </el-dialog>
</div> </div>
......
...@@ -1113,8 +1113,8 @@ ...@@ -1113,8 +1113,8 @@
<tr> <tr>
<td class="CP_ComTitle2">附件</td> <td class="CP_ComTitle2">附件</td>
<td colspan="13"> <td colspan="13">
<el-upload class="upload-demo" style="display:inline-block;position:relative;top:-1px;left:3px;" <el-upload v-if="!teamPrice.ContractArray || !teamPrice.ContractArray.length" class="upload-demo" style="display:inline-block;position:relative;top:-1px;left:3px;"
:http-request="uploadFileBtn" :multiple="true" :show-file-list="false" action=""> :http-request="uploadFileBtn" :show-file-list="false" action="">
<el-button size="small" type="primary">报价单附件</el-button> <el-button size="small" type="primary">报价单附件</el-button>
</el-upload> </el-upload>
<template v-if="teamPrice.ContractArray&& teamPrice.ContractArray.length>0"> <template v-if="teamPrice.ContractArray&& teamPrice.ContractArray.length>0">
......
...@@ -229,19 +229,19 @@ ...@@ -229,19 +229,19 @@
</div> </div>
<div style="width:134px;"> <div style="width:134px;">
<span class="openGroup newAopbdd" @click="goToOpenTravel(item)" <span class="openGroup newAopbdd" @click="goToOpenTravel(item)"
v-if="item.TravelState==3&& item.OpenState==2 && [2,5].includes(item.LineId) || 1"> v-if="item.TravelState==3&& item.OpenState==2 && [2,5].includes(item.LineId)">
<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">
<i class="iconfont icon-nav-hangzheng"></i> <i class="iconfont icon-nav-hangzheng"></i>
</el-tooltip> </el-tooltip>
</span> </span>
<span v-if="EditBtn" class="bianji newAopbdd" <span v-if="EditBtn" class="bianji newAopbdd"
@click="goMakeQuo('QuotationNewPrice',item.ID)"> @click="goMakeQuo('QuotationNewPrice',item.ID, item.TeamType)">
<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>
</el-tooltip> </el-tooltip>
</span> </span>
<span class="bianji newAopbdd" @click="goMakeQuo('QuotationNewPrice',item.ID)" <span class="bianji newAopbdd" @click="goMakeQuo('QuotationNewPrice',item.ID, item.TeamType)"
v-if="item.TravelState!=3"> v-if="item.TravelState!=3">
<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">
...@@ -613,21 +613,38 @@ ...@@ -613,21 +613,38 @@
that.outerVisible = true; that.outerVisible = true;
}, },
//报价单跳转 //报价单跳转
goMakeQuo(path, configId) { goMakeQuo(path, configId,TeamType) {
if(configId) {
this.$router.push({ this.$router.push({
path: path, path: path,
query: { query: {
TeamType: this.queryData.TeamType, TeamType: TeamType,
configId: configId, configId: configId,
blank: 'y', blank: 'y',
tab: '报价单' tab: '报价单'
} }
}); });
} else {
this.$router.push({
path: path,
query: {
configId: configId,
blank: 'y',
tab: '报价单'
}
});
}
}, },
//开团或修改 //开团或修改
goToOpenTravel(item) { goToOpenTravel(item) {
// TeamType 0常规,1-小包团,2-一日游,3-地接团
var routeName = this.$route.name; var routeName = this.$route.name;
var path = 'TravelManager5'; var path = 'TravelManager5';
if(item.TeamType === 0) {
path = 'TravelManager2'
} else if(item.TeamType === 1) {
path = 'TravelManager3'
}
// if (routeName == 'newQuotation') { // if (routeName == 'newQuotation') {
// path = 'TravelManager6' // path = 'TravelManager6'
// } // }
...@@ -687,12 +704,12 @@ ...@@ -687,12 +704,12 @@
this.getEmployeeList(); this.getEmployeeList();
this.GetAuth(); this.GetAuth();
var routeName = this.$route.name; var routeName = this.$route.name;
if (routeName == 'newQuotation') { // if (routeName == 'newQuotation') {
this.queryData.TeamType = 3; // this.queryData.TeamType = 3;
} // }
if (routeName == 'newQuotation2') { // if (routeName == 'newQuotation2') {
this.queryData.TeamType = 1; // this.queryData.TeamType = 1;
} // }
this.getLineList(); this.getLineList();
this.getList(); this.getList();
let isNoOffer = this.$route.params.isNoOffer; let isNoOffer = this.$route.params.isNoOffer;
......
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