Commit 8e406f63 authored by 华国豪's avatar 华国豪 🙄

‘部分修改’

parent 925d1a5c
...@@ -1049,11 +1049,11 @@ ...@@ -1049,11 +1049,11 @@
newArr.push(file.file); newArr.push(file.file);
let fileName = file.file.name; let fileName = file.file.name;
var path = "/Upload/DMC/"; var path = "/Upload/DMC/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
//统一图片处理 //统一图片处理
var obj = this.$DMCUtils.DMCImageObj(); var obj = this.$DMCUtils.DMCImageObj();
var str = x.name; var str = x.data.FilePath;
var imgUrl = this.domainManager().AliUrl + str; var imgUrl = this.domainManager().ViittoFileUrl + x.data.FilePath;
obj.Path = str; obj.Path = str;
obj.ShowPath = imgUrl; obj.ShowPath = imgUrl;
this.DiningImageArray.push(obj); this.DiningImageArray.push(obj);
......
...@@ -408,8 +408,8 @@ export default { ...@@ -408,8 +408,8 @@ export default {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.BusinessCardPhotos=x.res.requestUrls[0].split("?")[0] this.BusinessCardPhotos= this.domainManager().ViittoFileUrl + x.data.FilePath
}); });
}, },
uploadImg1(file) { uploadImg1(file) {
...@@ -417,8 +417,8 @@ export default { ...@@ -417,8 +417,8 @@ export default {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.HousePhotos=x.res.requestUrls[0].split("?")[0] this.HousePhotos= this.domainManager().ViittoFileUrl + x.data.FilePath
}); });
}, },
uploadImg2(file) { uploadImg2(file) {
...@@ -426,8 +426,8 @@ export default { ...@@ -426,8 +426,8 @@ export default {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.Images=x.res.requestUrls[0].split("?")[0] this.Images=this.domainManager().ViittoFileUrl + x.data.FilePath
}); });
}, },
searchHistory(val){ searchHistory(val){
......
...@@ -372,8 +372,8 @@ ...@@ -372,8 +372,8 @@
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.BusinessCardPhotos=x.res.requestUrls[0].split("?")[0] this.BusinessCardPhotos= this.domainManager().ViittoFileUrl + x.data.FilePath
}); });
}, },
uploadImg1(file) { uploadImg1(file) {
...@@ -381,8 +381,8 @@ ...@@ -381,8 +381,8 @@
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.HousePhotos=x.res.requestUrls[0].split("?")[0] this.HousePhotos= this.domainManager().ViittoFileUrl + x.data.FilePath
}); });
}, },
uploadImg2(file) { uploadImg2(file) {
...@@ -390,8 +390,8 @@ ...@@ -390,8 +390,8 @@
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.Images=x.res.requestUrls[0].split("?")[0] this.Images= this.domainManager().ViittoFileUrl + x.data.FilePath
}); });
}, },
resetForm(formName) {//弹出框取消 初始化谈框内表单 resetForm(formName) {//弹出框取消 初始化谈框内表单
......
...@@ -795,8 +795,8 @@ export default { ...@@ -795,8 +795,8 @@ export default {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.BusinessCardPhotos=x.res.requestUrls[0].split("?")[0] this.BusinessCardPhotos= this.domainManager().ViittoFileUrl + x.data.FilePath
}); });
}, },
uploadImg1(file) { uploadImg1(file) {
...@@ -804,8 +804,8 @@ export default { ...@@ -804,8 +804,8 @@ export default {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.HousePhotos=x.res.requestUrls[0].split("?")[0] this.HousePhotos= this.domainManager().ViittoFileUrl + x.data.FilePath
}); });
}, },
uploadImg2(file) { uploadImg2(file) {
...@@ -813,8 +813,8 @@ export default { ...@@ -813,8 +813,8 @@ export default {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.Images=x.res.requestUrls[0].split("?")[0] this.Images= this.domainManager().ViittoFileUrl + x.data.FilePath
}); });
}, },
getJycs(){ getJycs(){
......
...@@ -656,8 +656,8 @@ export default { ...@@ -656,8 +656,8 @@ export default {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.BusinessCardPhotos = x.res.requestUrls[0].split("?")[0]; this.BusinessCardPhotos = this.domainManager().ViittoFileUrl + x.data.FilePath;
}); });
}, },
uploadImg1(file) { uploadImg1(file) {
...@@ -665,8 +665,8 @@ export default { ...@@ -665,8 +665,8 @@ export default {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.HousePhotos = x.res.requestUrls[0].split("?")[0]; this.HousePhotos = this.domainManager().ViittoFileUrl + x.data.FilePath;
}); });
}, },
uploadImg2(file) { uploadImg2(file) {
...@@ -674,8 +674,8 @@ export default { ...@@ -674,8 +674,8 @@ export default {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.Images = x.res.requestUrls[0].split("?")[0]; this.Images =this.domainManager().ViittoFileUrl + x.data.FilePath;
}); });
}, },
getJycs() { getJycs() {
......
...@@ -2151,9 +2151,9 @@ ...@@ -2151,9 +2151,9 @@
let newArr = []; let newArr = [];
newArr.push(item.file); newArr.push(item.file);
let path = "/Upload/Ticket/"; let path = "/Upload/Ticket/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
var str = x.res.requestUrls[0]; var str = this.domainManager().ViittoFileUrl + x.data.FilePath;
var fileUrl = this.$commonUtils.GetALiFileUrl(str); var fileUrl = str;
this.UploadItineraryMsg.TripItinerary = fileUrl; this.UploadItineraryMsg.TripItinerary = fileUrl;
this.apipost( this.apipost(
"AirTicket_Post_SetTripItinerary", "AirTicket_Post_SetTripItinerary",
......
<style> <style>
.page_MyCustomer ._mc_addbox{height: 52px;width: 100%; margin-top: 20px;} .page_MyCustomer ._mc_addbox {
.page_MyCustomer ._mc_addbox>li{float: left; width: 116px; font-size: 14px; height: 52px; color: #666; text-align: center; line-height: 52px; background: #E9E9E9; cursor: pointer;} height: 52px;
.page_MyCustomer ._mc_addbox>li.active{background: #fff; color: #333;} width: 100%;
.page_MyCustomer ._mc_addbox .divActive{margin: -3px auto; width: 26px; height: 3px; background: #E95252;} margin-top: 20px;
.page_MyCustomer ._mc_edit{overflow: auto;display: none;position:absolute; }
z-index: 50; bottom:0;left: 0;border-top:3px solid #38425d;background-color:#f9f9f9; padding: 10px;width: 100%;min-width: 1146px;} .page_MyCustomer ._mc_addbox > li {
.page_MyCustomer .edHeight{display: block;height: 191px;} float: left;
.page_MyCustomer ._mc_list{overflow-x: auto; background: #fff; padding-top: 20px; padding-left: 15px;} width: 116px;
.page_MyCustomer ._scrollbar::-webkit-scrollbar{width: 4px;height: 8px;} font-size: 14px;
.page_MyCustomer ._scrollbar::-webkit-scrollbar-thumb{border-radius: 4px;-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);background: #c9c9c9;} height: 52px;
.page_MyCustomer ._scrollbar::-webkit-scrollbar-track{-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);border-radius: 4px;background: #EDEDED;} color: #666;
.page_MyCustomer ._mc_edit ._tit{padding-left: 10px;border-left: 3px solid #E95252; font-size: 16px; font-family: 'PingFangSc-Fine'; color: #000000} text-align: center;
.page_MyCustomer ._mc_edit ._info_box ul._form li{float: left;} line-height: 52px;
.page_MyCustomer ._check_list{padding-left: 120px;margin-bottom: 20px;} background: #e9e9e9;
.page_MyCustomer ._check_box .el-form-item{margin-bottom: 0} cursor: pointer;
.page_MyCustomer ._info_box .el-form-item__label{font-size: 12px; color: #666;} }
._remark textarea{resize: none;width: 646px;height: 100px} .page_MyCustomer ._mc_addbox > li.active {
.page_MyCustomer .avatar { background: #fff;
color: #333;
}
.page_MyCustomer ._mc_addbox .divActive {
margin: -3px auto;
width: 26px;
height: 3px;
background: #e95252;
}
.page_MyCustomer ._mc_edit {
overflow: auto;
display: none;
position: absolute;
z-index: 50;
bottom: 0;
left: 0;
border-top: 3px solid #38425d;
background-color: #f9f9f9;
padding: 10px;
width: 100%;
min-width: 1146px;
}
.page_MyCustomer .edHeight {
display: block;
height: 191px;
}
.page_MyCustomer ._mc_list {
overflow-x: auto;
background: #fff;
padding-top: 20px;
padding-left: 15px;
}
.page_MyCustomer ._scrollbar::-webkit-scrollbar {
width: 4px;
height: 8px;
}
.page_MyCustomer ._scrollbar::-webkit-scrollbar-thumb {
border-radius: 4px;
-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
background: #c9c9c9;
}
.page_MyCustomer ._scrollbar::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
border-radius: 4px;
background: #ededed;
}
.page_MyCustomer ._mc_edit ._tit {
padding-left: 10px;
border-left: 3px solid #e95252;
font-size: 16px;
font-family: "PingFangSc-Fine";
color: #000000;
}
.page_MyCustomer ._mc_edit ._info_box ul._form li {
float: left;
}
.page_MyCustomer ._check_list {
padding-left: 120px;
margin-bottom: 20px;
}
.page_MyCustomer ._check_box .el-form-item {
margin-bottom: 0;
}
.page_MyCustomer ._info_box .el-form-item__label {
font-size: 12px;
color: #666;
}
._remark textarea {
resize: none;
width: 646px;
height: 100px;
}
.page_MyCustomer .avatar {
width: 148px; width: 148px;
height: 148px; height: 148px;
display: block; display: block;
} }
.page_MyCustomerSearch{width: 100%; min-height: auto; overflow: hidden; padding:0 0 20px 0;} .page_MyCustomerSearch {
.page_MyCustomerSearch li{float: left; font-size: 12px; color: #666; margin:20px 0 0px 0;} width: 100%;
.page_MyCustomerSearch li>span {display: inline-block; } min-height: auto;
.page_MyCustomerSearch li span>em{display: inline-block; min-width: 60px; text-align: right; font-style: normal; margin:0 12px 0 0;} overflow: hidden;
.page_MyCustomerSearch li:last-child{float: right;} padding: 0 0 20px 0;
.VisaProductTable{width: 100%; font-size:14px; color: #333; } }
.VisaProductTable tr th{background: #E6E6E6;height:30px; font-size: 12px; text-align: left; text-indent: 25px;} .page_MyCustomerSearch li {
.VisaProductTable tr{background: #fff;text-align: left;} float: left;
.VisaProductTable tr td{height: 60px; padding-left:25px; border: 1px solid #cccccc; font-size: 14px; color: #333;} font-size: 12px;
.VisaProductTable tr td>img{width:24px;height:24px;border-radius:50%; float: left; margin-right: 5px;} color: #666;
.VisaProductTable tr td .tuanqian{vertical-align: middle; font-weight:400; display: table-cell; text-align: center; width: 44px;font-size: 12px; height:19px;color: #FFFFFF;background:#2AAEF2;} margin: 20px 0 0px 0;
.VisaProductTable tr td .geqian{vertical-align: middle; font-weight:400; display: table-cell; text-align: center; width: 44px;font-size: 12px; height:19px;color: #FFFFFF;background:#FF9000;} }
.page_MyCustomer ._edHeight{height:340px;} .page_MyCustomerSearch li > span {
.dateClass{width: 171px !important;} display: inline-block;
.surplusNum{color: #E95252 !important;} }
.peopleNum{height:15px;font-size:16px;font-weight:400;color:rgba(51,51,51,1);line-height:24px;} .page_MyCustomerSearch li span > em {
.orderNum{cursor:pointer;text-decoration:underline;width:18px;height:16px;font-size:16px;font-weight:400;color:rgba(51,51,51,1);line-height:24px;} display: inline-block;
.VisaProductTable tr td .createName{vertical-align: middle; display: table-cell;text-align: left;padding-left:3px; height:21px;} min-width: 60px;
.groupTourOrderIcon button{width: 28px; height:28px;border-radius:4px;} text-align: right;
.groupTourOrderIcon .el-button--primary {padding: 5px; margin: 0; font-size: 14px!important;} font-style: normal;
margin: 0 12px 0 0;
}
.page_MyCustomerSearch li:last-child {
float: right;
}
.VisaProductTable {
width: 100%;
font-size: 14px;
color: #333;
}
.VisaProductTable tr th {
background: #e6e6e6;
height: 30px;
font-size: 12px;
text-align: left;
text-indent: 25px;
}
.VisaProductTable tr {
background: #fff;
text-align: left;
}
.VisaProductTable tr td {
height: 60px;
padding-left: 25px;
border: 1px solid #cccccc;
font-size: 14px;
color: #333;
}
.VisaProductTable tr td > img {
width: 24px;
height: 24px;
border-radius: 50%;
float: left;
margin-right: 5px;
}
.VisaProductTable tr td .tuanqian {
vertical-align: middle;
font-weight: 400;
display: table-cell;
text-align: center;
width: 44px;
font-size: 12px;
height: 19px;
color: #ffffff;
background: #2aaef2;
}
.VisaProductTable tr td .geqian {
vertical-align: middle;
font-weight: 400;
display: table-cell;
text-align: center;
width: 44px;
font-size: 12px;
height: 19px;
color: #ffffff;
background: #ff9000;
}
.page_MyCustomer ._edHeight {
height: 340px;
}
.dateClass {
width: 171px !important;
}
.surplusNum {
color: #e95252 !important;
}
.peopleNum {
height: 15px;
font-size: 16px;
font-weight: 400;
color: rgba(51, 51, 51, 1);
line-height: 24px;
}
.orderNum {
cursor: pointer;
text-decoration: underline;
width: 18px;
height: 16px;
font-size: 16px;
font-weight: 400;
color: rgba(51, 51, 51, 1);
line-height: 24px;
}
.VisaProductTable tr td .createName {
vertical-align: middle;
display: table-cell;
text-align: left;
padding-left: 3px;
height: 21px;
}
.groupTourOrderIcon button {
width: 28px;
height: 28px;
border-radius: 4px;
}
.groupTourOrderIcon .el-button--primary {
padding: 5px;
margin: 0;
font-size: 14px !important;
}
</style> </style>
<template> <template>
<div class="page_MyCustomer"> <div class="page_MyCustomer">
...@@ -48,39 +220,73 @@ ...@@ -48,39 +220,73 @@
<ul> <ul>
<li> <li>
<span> <span>
<em>出团公司</em><el-select class='w210' v-model="msg.BranchId" filterable :placeholder="$t('pub.pleaseSel')"> <em>出团公司</em>
<el-option v-for="item in companyList" :label='item.BName' :value='item.Id' :key='item.Id'></el-option> <el-select
class="w210"
v-model="msg.BranchId"
filterable
:placeholder="$t('pub.pleaseSel')"
>
<el-option
v-for="item in companyList"
:label="item.BName"
:value="item.Id"
:key="item.Id"
></el-option>
</el-select> </el-select>
</span> </span>
</li> </li>
<li> <li>
<span> <span>
<em>产品ID</em><el-input class='w210' v-model='msg.ProductID' placeholder="请输入" ></el-input> <em>产品ID</em>
<el-input class="w210" v-model="msg.ProductID" placeholder="请输入"></el-input>
</span> </span>
</li> </li>
<li> <li>
<span> <span>
<em>产品名称</em><el-input class='w210' v-model='msg.ProductName' placeholder="请输入" ></el-input> <em>产品名称</em>
<el-input class="w210" v-model="msg.ProductName" placeholder="请输入"></el-input>
</span> </span>
</li> </li>
<li> <span> <li>
<em>创建人</em><el-select v-model='msg.EmId'> <span>
<el-option label="不限" value="-1" key='-1'></el-option> <em>创建人</em>
<el-option v-for="item in EmployeeList" <el-select v-model="msg.EmId">
:label='item.EmName' <el-option label="不限" value="-1" key="-1"></el-option>
:value='item.EmployeeId' <el-option
:key='item.EmployeeId'> v-for="item in EmployeeList"
</el-option> :label="item.EmName"
:value="item.EmployeeId"
:key="item.EmployeeId"
></el-option>
</el-select> </el-select>
</span></li> </span>
<li><span><em>状态</em></span><el-select v-model='msg.VisaStatus'> </li>
<el-option label='不限' value='-1' key='-1'></el-option> <li>
<el-option label='上架' value='1' key='1'></el-option> <span>
<el-option label='下架' value='2' key='2'></el-option> <em>状态</em>
</span>
<el-select v-model="msg.VisaStatus">
<el-option label="不限" value="-1" key="-1"></el-option>
<el-option label="上架" value="1" key="1"></el-option>
<el-option label="下架" value="2" key="2"></el-option>
</el-select> </el-select>
</li> </li>
<li><span><em>价格有效日期</em><el-date-picker v-model='msg.StartTime' class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker> - <li>
<el-date-picker v-model='msg.EndTime' class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker> <span>
<em>价格有效日期</em>
<el-date-picker
v-model="msg.StartTime"
class="w135"
value-format="yyyy-MM-dd"
type="date"
></el-date-picker>-
<el-date-picker
v-model="msg.EndTime"
class="w135"
value-format="yyyy-MM-dd"
type="date"
></el-date-picker>
</span> </span>
</li> </li>
<li> <li>
...@@ -90,7 +296,7 @@ ...@@ -90,7 +296,7 @@
</ul> </ul>
</div> </div>
<table class="VisaProductTable" border="0" cellspacing="0" cellpadding="0" v-loading='loading'> <table class="VisaProductTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
<tr> <tr>
<th width="10%">产品名称</th> <th width="10%">产品名称</th>
<th width="8%">签证类型</th> <th width="8%">签证类型</th>
...@@ -105,7 +311,7 @@ ...@@ -105,7 +311,7 @@
<th width="10%">广告图</th> <th width="10%">广告图</th>
<th width="14%">操作</th> <th width="14%">操作</th>
</tr> </tr>
<tr v-for='item in dataList'> <tr v-for="item in dataList">
<td>{{item.Name}}</td> <td>{{item.Name}}</td>
<td> <td>
<span v-if="item.VisaType==1" class="geqian">个签</span> <span v-if="item.VisaType==1" class="geqian">个签</span>
...@@ -129,43 +335,114 @@ ...@@ -129,43 +335,114 @@
{{item.VisaStatus==1?"上架":"下架"}} {{item.VisaStatus==1?"上架":"下架"}}
</td> </td>
<td> <td>
<span class="orderNum" @click="goUrl(item)" >{{item.OrderNum}}</span> <span class="orderNum" @click="goUrl(item)">{{item.OrderNum}}</span>
</td> </td>
<!-- <td> <!-- <td>
<span class="peopleNum">{{item.PeopleNum}}(<span class="surplusNum">{{item.SurplusNum}}</span>)</span> <span class="peopleNum">{{item.PeopleNum}}(<span class="surplusNum">{{item.SurplusNum}}</span>)</span>
</td> --> </td>-->
<td> <td>
<img v-if='!item.CreatePhoto' src="../../assets/img/litheader.png"/> <img v-if="!item.CreatePhoto" src="../../assets/img/litheader.png">
<img v-if='item.CreatePhoto' :onerror="defaultImg" :src='item.CreatePhoto'/> <img v-if="item.CreatePhoto" :onerror="defaultImg" :src="item.CreatePhoto">
<span class="createName">{{item.CreateName}}</span> <span class="createName">{{item.CreateName}}</span>
</td> </td>
<td> <td>
<p v-for="(item2, index2) in item.AdvertisingFileList" :key="index2"> <p v-for="(item2, index2) in item.AdvertisingFileList" :key="index2">
<span style="cursor:pointer;text-decoration: underline;" @click="downloadFile(item2)">{{item2.Name}}</span><i class="iconfont icon-Close" style="font-size:12px;cursor:pointer;" @click="delUnpload(item.Id,item2)"></i> <span
style="cursor:pointer;text-decoration: underline;"
@click="downloadFile(item2)"
>{{item2.Name}}</span>
<i
class="iconfont icon-Close"
style="font-size:12px;cursor:pointer;"
@click="delUnpload(item.Id,item2)"
></i>
</p> </p>
<el-upload :http-request="uploadImg" :data='item' ref="upload" :multiple="false" :show-file-list='false' action=""> <el-upload
<span style="color:#00C6FF;cursor:pointer;" @click='saveitem(item.Id)'>上传广告图</span> :http-request="uploadImg"
:data="item"
ref="upload"
:multiple="false"
:show-file-list="false"
action
>
<span style="color:#00C6FF;cursor:pointer;" @click="saveitem(item.Id)">上传广告图</span>
</el-upload> </el-upload>
</td> </td>
<td class="groupTourOrderIcon"> <td class="groupTourOrderIcon">
<el-button-group> <el-button-group>
<el-tooltip class="item" effect="dark" content="修改" placement="top-start" v-if="item.SendVisaStatus==1&&msg.isFinacial==1"> <el-tooltip
<el-button type="primary" style='background:#409EFF; border-color:#409EFF' icon="iconfont icon-img_bianji_small" @click='getDetail(item)'></el-button> class="item"
effect="dark"
content="修改"
placement="top-start"
v-if="item.SendVisaStatus==1&&msg.isFinacial==1"
>
<el-button
type="primary"
style="background:#409EFF; border-color:#409EFF"
icon="iconfont icon-img_bianji_small"
@click="getDetail(item)"
></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip effect="dark" content="查看" placement="top-start" v-if="msg.isFinacial==1"> <el-tooltip effect="dark" content="查看" placement="top-start" v-if="msg.isFinacial==1">
<el-button type="primary" style='background:#25C1C3; border-color:#25C1C3' @click="goUrl(item)" icon="iconfont icon-img_cz"></el-button> <el-button
type="primary"
style="background:#25C1C3; border-color:#25C1C3"
@click="goUrl(item)"
icon="iconfont icon-img_cz"
></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip effect="dark" content="签证列表" placement="top-start" v-if="item.VisaManagementId>0"> <el-tooltip
<el-button type="primary" @click="goUrlVisaList(item)" style='background:#47BF8C; border-color:#47BF8C' icon="iconfont icon-biaoge"></el-button> effect="dark"
content="签证列表"
placement="top-start"
v-if="item.VisaManagementId>0"
>
<el-button
type="primary"
@click="goUrlVisaList(item)"
style="background:#47BF8C; border-color:#47BF8C"
icon="iconfont icon-biaoge"
></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip v-if="item.OrderNum>0&&msg.isFinacial==1" effect="dark" content="结算" placement="top-start"> <el-tooltip
<el-button type="primary" @click="goUrlJS(item)" style='background:#5EBB64; border-color:#5EBB64' icon="iconfont icon-qian"></el-button> v-if="item.OrderNum>0&&msg.isFinacial==1"
effect="dark"
content="结算"
placement="top-start"
>
<el-button
type="primary"
@click="goUrlJS(item)"
style="background:#5EBB64; border-color:#5EBB64"
icon="iconfont icon-qian"
></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip v-if="item.VisaStatus==1&&msg.isFinacial==1" effect="dark" content="下架" placement="top-start" > <el-tooltip
<el-button type="primary" style='background:#F0A748; border-color:#F0A748' icon="iconfont icon-xiajia1" @click='updateVisaStatus(item)'></el-button> v-if="item.VisaStatus==1&&msg.isFinacial==1"
effect="dark"
content="下架"
placement="top-start"
>
<el-button
type="primary"
style="background:#F0A748; border-color:#F0A748"
icon="iconfont icon-xiajia1"
@click="updateVisaStatus(item)"
></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip v-if="item.VisaStatus==2&&item.SendVisaStatus==1&&msg.isFinacial==1" effect="dark" content="上架" placement="top-start" > <el-tooltip
<el-button type="primary" style='background:#F0A748; border-color:#F0A748' icon="iconfont icon-shangjia1" @click='updateVisaStatus(item)'></el-button> v-if="item.VisaStatus==2&&item.SendVisaStatus==1&&msg.isFinacial==1"
effect="dark"
content="上架"
placement="top-start"
>
<el-button
type="primary"
style="background:#F0A748; border-color:#F0A748"
icon="iconfont icon-shangjia1"
@click="updateVisaStatus(item)"
></el-button>
</el-tooltip> </el-tooltip>
</el-button-group> </el-button-group>
</td> </td>
...@@ -181,29 +458,36 @@ ...@@ -181,29 +458,36 @@
:current-page.sync="currentPage" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" layout="total,prev, pager, next, jumper"
:page-size="this.msg.pageSize" :page-size="this.msg.pageSize"
:total="total"> :total="total"
</el-pagination> ></el-pagination>
<div class="_mc_edit _scrollbar" :class="addShow==true?'edHeight':''"> <div class="_mc_edit _scrollbar" :class="addShow==true?'edHeight':''">
<p class="_tit">签证产品 <p class="_tit">
签证产品
<span class="fr"> <span class="fr">
<button class="hollowFixedBtn" type="button" @click="cancelEdit()">{{$t('pub.cancelBtn')}}</button> <button class="hollowFixedBtn" type="button" @click="cancelEdit()">{{$t('pub.cancelBtn')}}</button>
<button type="button" class="normalBtn" @click="saveVisa()">{{$t('pub.saveBtn')}}</button> <button type="button" class="normalBtn" @click="saveVisa()">{{$t('pub.saveBtn')}}</button>
</span> </span>
</p> </p>
<el-form class="_info_box clearfix" :model="addMsg" :rules="rules" ref="addMsg" label-width="120px"> <el-form
class="_info_box clearfix"
:model="addMsg"
:rules="rules"
ref="addMsg"
label-width="120px"
>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="5"> <el-col :span="5">
<el-form-item label="产品名称" prop="Name" > <el-form-item label="产品名称" prop="Name">
<el-input v-model="addMsg.Name" placeholder="请输入" class="dateClass"></el-input> <el-input v-model="addMsg.Name" placeholder="请输入" class="dateClass"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="5"> <el-col :span="5">
<el-form-item label="类型" prop="VisaType"> <el-form-item label="类型" prop="VisaType">
<el-select v-model='addMsg.VisaType' @change='getVisaManagementList'> <el-select v-model="addMsg.VisaType" @change="getVisaManagementList">
<!-- <el-option label='不限' value='-1' key='-1'></el-option> --> <!-- <el-option label='不限' value='-1' key='-1'></el-option> -->
<el-option label='个签' value='1' key='1'></el-option> <el-option label="个签" value="1" key="1"></el-option>
<el-option label='团签' value='2' key='2'></el-option> <el-option label="团签" value="2" key="2"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -211,7 +495,7 @@ ...@@ -211,7 +495,7 @@
<el-form-item label="人数" prop="PeopleNum"> <el-form-item label="人数" prop="PeopleNum">
<el-input @keyup.native="checkInteger(addMsg,'PeopleNum')" v-model="addMsg.PeopleNum" placeholder="请输入" maxlength="20"></el-input> <el-input @keyup.native="checkInteger(addMsg,'PeopleNum')" v-model="addMsg.PeopleNum" placeholder="请输入" maxlength="20"></el-input>
</el-form-item> </el-form-item>
</el-col> --> </el-col>-->
<el-col :span="5"> <el-col :span="5">
<el-form-item label="成本价" prop="CostPrice"> <el-form-item label="成本价" prop="CostPrice">
<el-input v-model="addMsg.CostPrice" placeholder="请输入" maxlength="20"></el-input> <el-input v-model="addMsg.CostPrice" placeholder="请输入" maxlength="20"></el-input>
...@@ -219,13 +503,13 @@ ...@@ -219,13 +503,13 @@
</el-col> </el-col>
<el-col :span="5"> <el-col :span="5">
<el-form-item label="签证国家" prop="VisaManagementId"> <el-form-item label="签证国家" prop="VisaManagementId">
<el-select v-model='addMsg.VisaManagementId' class="dateClass"> <el-select v-model="addMsg.VisaManagementId" class="dateClass">
<el-option v-for='item in VisaManagementList' <el-option
:label='item.Name' v-for="item in VisaManagementList"
:value='item.Id' :label="item.Name"
:key='item.Id'> :value="item.Id"
</el-option> :key="item.Id"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -242,13 +526,19 @@ ...@@ -242,13 +526,19 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="5"> <el-col :span="5">
<el-form-item label="提成金额" prop="CommissionPrice" > <el-form-item label="提成金额" prop="CommissionPrice">
<el-input v-model="addMsg.CommissionPrice" placeholder="请输入"></el-input> <el-input v-model="addMsg.CommissionPrice" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="5"> <el-col :span="5">
<el-form-item label="价格有效日期" prop="SendVisaDate"> <el-form-item label="价格有效日期" prop="SendVisaDate">
<el-date-picker v-model='addMsg.SendVisaDate' class="dateClass" value-format="yyyy-MM-dd" type="date" placeholder="请选择" ></el-date-picker> <el-date-picker
v-model="addMsg.SendVisaDate"
class="dateClass"
value-format="yyyy-MM-dd"
type="date"
placeholder="请选择"
></el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -258,115 +548,143 @@ ...@@ -258,115 +548,143 @@
</template> </template>
<script> <script>
export default { export default {
data(){ data() {
return{ return {
uploadTCID:0, uploadTCID: 0,
defaultImg: 'this.src="' + require("../../assets/img/litheader.png") + '"', defaultImg:
'this.src="' + require("../../assets/img/litheader.png") + '"',
companyList: [], companyList: [],
msg:{ msg: {
pageIndex:1, pageIndex: 1,
pageSize:12, pageSize: 12,
ProductName:'', ProductName: "",
StartTime:'', StartTime: "",
EndTime:'', EndTime: "",
EmId:'-1', EmId: "-1",
ProductID:0, ProductID: 0,
VisaStatus:'-1', VisaStatus: "-1",
isFinacial:1, isFinacial: 1,
BranchId:'-1' BranchId: "-1"
}, },
addMsg:{ addMsg: {
Id:0, Id: 0,
Name:'', Name: "",
VisaType:'', VisaType: "",
SendVisaDate:'', SendVisaDate: "",
VisaPrice:'', VisaPrice: "",
PeopleNum:'0', PeopleNum: "0",
CostPrice:'', CostPrice: "",
CommissionPrice:'', CommissionPrice: "",
VisaManagementId:'', VisaManagementId: "",
VisaB2CPrice: '' VisaB2CPrice: ""
}, },
rules:{ rules: {
Name:[{required: true, message: "请输入产品名称", trigger: "blur"}], Name: [{ required: true, message: "请输入产品名称", trigger: "blur" }],
customerName:[{required: true, message: "请输入客户名", trigger: "blur"}], customerName: [
VisaPrice:[ { required: true, message: "请输入客户名", trigger: "blur" }
{required: true, message: "请输入同业价", trigger: "blur"},
{pattern: this.$commonUtils.Regex.el_Isdecimal, message: "请输入同业价" }
], ],
VisaB2CPrice:[ VisaPrice: [
{required: true, message: "请输入直客价", trigger: "blur"}, { required: true, message: "请输入同业价", trigger: "blur" },
{pattern: this.$commonUtils.Regex.el_Isdecimal, message: "请输入直客价" } {
pattern: this.$commonUtils.Regex.el_Isdecimal,
message: "请输入同业价"
}
],
VisaB2CPrice: [
{ required: true, message: "请输入直客价", trigger: "blur" },
{
pattern: this.$commonUtils.Regex.el_Isdecimal,
message: "请输入直客价"
}
], ],
CostPrice:[ CostPrice: [
{required: true, message: "请输入成本价", trigger: "blur"}, { required: true, message: "请输入成本价", trigger: "blur" },
{ pattern: this.$commonUtils.Regex.el_Isdecimal, message: "请输入成本价" } {
pattern: this.$commonUtils.Regex.el_Isdecimal,
message: "请输入成本价"
}
],
VisaType: [
{ required: true, message: "请选择类型", trigger: "change" }
], ],
VisaType:[{required: true, message: "请选择类型", trigger: "change"}], PeopleNum: [{ required: true, message: "请输入人数", trigger: "blur" }],
PeopleNum:[{required: true, message: "请输入人数", trigger: "blur"}], CommissionPrice: [
CommissionPrice:[ { required: true, message: "请输入提成金额", trigger: "blur" },
{required: true, message: "请输入提成金额", trigger: "blur"}, {
{pattern: this.$commonUtils.Regex.el_Isdecimal, message: "请输入提成金额" } pattern: this.$commonUtils.Regex.el_Isdecimal,
message: "请输入提成金额"
}
], ],
SendVisaDate:[{required: true, message: "请输入价格有效期", trigger: "blur"}], SendVisaDate: [
{ required: true, message: "请输入价格有效期", trigger: "blur" }
]
}, },
dataList:[], dataList: [],
EmployeeList:[], EmployeeList: [],
loading:true, loading: true,
total: 0, total: 0,
addShow:false, addShow: false,
currentPage: 1, currentPage: 1,
VisaManagementList:[], VisaManagementList: []
} };
},methods:{ },
methods: {
saveitem(tcid) { saveitem(tcid) {
this.uploadTCID = tcid this.uploadTCID = tcid;
}, },
//上传 //上传
uploadImg(file) { uploadImg(file) {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.apipost('dmc_get_visa_UploadVisaAdvertisingImage', { this.apipost(
Path: x.name, "dmc_get_visa_UploadVisaAdvertisingImage",
{
Path: this.domainManager().ViittoFileUrl + x.data.FilePath,
FileName: file.file.name, FileName: file.file.name,
Status: 1, Status: 1,
VId: this.uploadTCID VId: this.uploadTCID
}, res => { },
if (res.data.resultCode===1) { res => {
this.$message.success('上传成功') if (res.data.resultCode === 1) {
this.$message.success("上传成功");
this.getList(); this.getList();
} else { } else {
this.$message.error('上传失败') this.$message.error("上传失败");
} }
}) }
);
}); });
}, },
delUnpload: function (tcid, item) { delUnpload: function(tcid, item) {
this.$confirm('是否删除该广告图?', '提示', { this.$confirm("是否删除该广告图?", "提示", {
confirmButtonText: '确定', confirmButtonText: "确定",
cancelButtonText: '取消', cancelButtonText: "取消",
type: 'warning' type: "warning"
}).then(()=>{ }).then(() => {
this.apipost('dmc_get_visa_UploadVisaAdvertisingImage', { this.apipost(
"dmc_get_visa_UploadVisaAdvertisingImage",
{
Path: item.FullUrl, Path: item.FullUrl,
FileName: item.Name, FileName: item.Name,
Status: 2, Status: 2,
VId: tcid VId: tcid
}, res => { },
if (res.data.resultCode===1) { res => {
this.$message.success('删除成功') if (res.data.resultCode === 1) {
this.$message.success("删除成功");
this.getList(); this.getList();
} else { } else {
this.$message.error('删除失败') this.$message.error("删除失败");
}
} }
}) );
}) });
}, },
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);
}, },
getCompanyList() { getCompanyList() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
...@@ -375,164 +693,233 @@ export default { ...@@ -375,164 +693,233 @@ export default {
Status: 0, Status: 0,
is_show: 0, is_show: 0,
RB_Group_Id: RB_Group_id RB_Group_Id: RB_Group_id
};
this.apipost(
"admin_get_BranchGetList",
msg,
res => {
if (res.data.resultCode == 1) {
this.companyList = [
{
Id: "-1",
BName: "不限"
} }
this.apipost('admin_get_BranchGetList', msg, res => { ];
if(res.data.resultCode == 1) {
this.companyList = [{
Id: '-1',
BName: '不限'
}];
res.data.data.forEach(x => { res.data.data.forEach(x => {
var obj = { var obj = {
Id: '', Id: "",
BName: '' BName: ""
} };
obj.Id = x.Id.toString(); obj.Id = x.Id.toString();
obj.BName = x.BName; obj.BName = x.BName;
this.companyList.push(obj); this.companyList.push(obj);
}) });
} }
}, err => {})
}, },
getVisaManagementList(){ // 获取签证管理 err => {}
this.VisaManagementList=[] );
this.addMsg.VisaManagementId='' },
this.apipost('dmc_get_visa_GetVisaManagementList',{Status:-1,BranchId:-1,SignStatus:this.addMsg.VisaType},res=>{ getVisaManagementList() {
if(res.data.resultCode==1){ // 获取签证管理
this.VisaManagementList = res.data.data this.VisaManagementList = [];
}else{ this.addMsg.VisaManagementId = "";
this.$message.error(res.data.message) this.apipost(
"dmc_get_visa_GetVisaManagementList",
{ Status: -1, BranchId: -1, SignStatus: this.addMsg.VisaType },
res => {
if (res.data.resultCode == 1) {
this.VisaManagementList = res.data.data;
} else {
this.$message.error(res.data.message);
} }
},err=>{}) },
err => {}
);
}, },
goUrl(obj){ goUrl(obj) {
this.$router.push({ name: 'VisaProductOrder',query:{"id":obj.Id,"name":obj.Name,"sendDate":obj.SendVisaDate,"isShow":0,"EmId":"-1",blank:'y',tab:'详情'} }) this.$router.push({
name: "VisaProductOrder",
query: {
id: obj.Id,
name: obj.Name,
sendDate: obj.SendVisaDate,
isShow: 0,
EmId: "-1",
blank: "y",
tab: "详情"
}
});
}, },
goUrlVisaList(obj){ goUrlVisaList(obj) {
this.$router.push({ name: 'visaList2',query:{"id":obj.Id,blank:'y',tab:'签证列表'} }) this.$router.push({
name: "visaList2",
query: { id: obj.Id, blank: "y", tab: "签证列表" }
});
}, },
goUrlJS(obj){ goUrlJS(obj) {
this.$router.push({ name: 'saleOrderSettlement',query:{"id":obj.Id,"branchId":obj.RB_Branch_Id,blank:'y',tab:'结算列表'} }) this.$router.push({
name: "saleOrderSettlement",
query: {
id: obj.Id,
branchId: obj.RB_Branch_Id,
blank: "y",
tab: "结算列表"
}
});
}, },
getList(){ // 获取列表数据 getList() {
this.apipost('dmc_get_visa_GetVisaProductList',this.msg,res=>{ // 获取列表数据
if(res.data.resultCode==0){ this.apipost(
"dmc_get_visa_GetVisaProductList",
this.msg,
res => {
if (res.data.resultCode == 0) {
this.loading = false; this.loading = false;
this.dataList=[] this.dataList = [];
}else{ } else {
this.dataList = res.data.data.pageData; this.dataList = res.data.data.pageData;
this.total = res.data.data.count; this.total = res.data.data.count;
this.loading = false; this.loading = false;
} }
},err=>{})
}, },
getDetail(obj){ err => {}
this.addMsg.Id=obj.Id );
this.apipost('dmc_get_visa_GetVisaProductInfo',{Pid:obj.Id},res=>{ },
if(res.data.resultCode == 1) { getDetail(obj) {
this.addMsg.VisaType=res.data.data.VisaType.toString() this.addMsg.Id = obj.Id;
this.getVisaManagementList() this.apipost(
this.addMsg.VisaManagementId = res.data.data.VisaManagementId "dmc_get_visa_GetVisaProductInfo",
this.addMsg.Name=res.data.data.Name { Pid: obj.Id },
res => {
if (res.data.resultCode == 1) {
this.addMsg.VisaType = res.data.data.VisaType.toString();
this.getVisaManagementList();
this.addMsg.VisaManagementId = res.data.data.VisaManagementId;
this.addMsg.Name = res.data.data.Name;
this.addMsg.SendVisaDate=res.data.data.SendVisaDate this.addMsg.SendVisaDate = res.data.data.SendVisaDate;
if(res.data.data.CostPrice){ if (res.data.data.CostPrice) {
this.addMsg.CostPrice=res.data.data.CostPrice.toString() this.addMsg.CostPrice = res.data.data.CostPrice.toString();
} } else {
else{ this.addMsg.CostPrice = "";
this.addMsg.CostPrice=''
} }
this.addMsg.VisaPrice=res.data.data.VisaPrice.toString() this.addMsg.VisaPrice = res.data.data.VisaPrice.toString();
this.addMsg.VisaB2CPrice=res.data.data.VisaB2CPrice.toString() this.addMsg.VisaB2CPrice = res.data.data.VisaB2CPrice.toString();
// this.addMsg.PeopleNum=res.data.data.PeopleNum.toString() // this.addMsg.PeopleNum=res.data.data.PeopleNum.toString()
this.addMsg.CommissionPrice=res.data.data.CommissionPrice.toString() this.addMsg.CommissionPrice = res.data.data.CommissionPrice.toString();
this.addShow=true; this.addShow = true;
} else {
}else{ console.log(res.data.message);
console.log(res.data.message)
} }
},err=>{})
}, },
updateVisaStatus(obj){ err => {}
this.addMsg.Id=obj.Id );
this.apipost('dmc_post_visa_SetVisaProductStatus',{Pid:obj.Id},res=>{ },
if(res.data.resultCode == 1) { updateVisaStatus(obj) {
this.addShow=false this.addMsg.Id = obj.Id;
this.getList() this.apipost(
this.$message.success(res.data.message) "dmc_post_visa_SetVisaProductStatus",
}else{ { Pid: obj.Id },
this.$message.error(res.data.message) res => {
if (res.data.resultCode == 1) {
this.addShow = false;
this.getList();
this.$message.success(res.data.message);
} else {
this.$message.error(res.data.message);
} }
},err=>{})
}, },
getEmployeeList(){ // 获取人 err => {}
this.apipost('admin_get_GetEmployeeByUserDepartmentId',{},res=>{ );
},
getEmployeeList() {
// 获取人
this.apipost(
"admin_get_GetEmployeeByUserDepartmentId",
{},
res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.EmployeeList = res.data.data; this.EmployeeList = res.data.data;
}else{ } else {
this.$message.error(res.data.message) this.$message.error(res.data.message);
} }
},err=>{})
}, },
saveVisa(){ // 保存 err => {}
this.$refs['addMsg'].validate((valid) => { );
},
saveVisa() {
// 保存
this.$refs["addMsg"].validate(valid => {
if (valid) { if (valid) {
this.addMsg.VisaManagementId==''?'0':this.addMsg.VisaManagementId this.addMsg.VisaManagementId == ""
this.apipost('dmc_post_visa_SetVisaProduct',this.addMsg,res=>{ ? "0"
if(res.data.resultCode==1){ : this.addMsg.VisaManagementId;
this.addMsg={ this.apipost(
Id:0, "dmc_post_visa_SetVisaProduct",
Name:'', this.addMsg,
VisaType:'', res => {
SendVisaDate:'', if (res.data.resultCode == 1) {
VisaPrice:'', this.addMsg = {
PeopleNum:'0', Id: 0,
CostPrice:'', Name: "",
CommissionPrice:'', VisaType: "",
} SendVisaDate: "",
this.$message.success(res.data.message) VisaPrice: "",
this.addShow=false PeopleNum: "0",
this.getList() CostPrice: "",
}else{ CommissionPrice: ""
this.$message.error(res.data.message) };
this.$message.success(res.data.message);
this.addShow = false;
this.getList();
} else {
this.$message.error(res.data.message);
} }
},err=>{}) },
err => {}
);
} else { } else {
return false; return false;
} }
}); });
}, },
cancelEdit(){ // 取消新增 cancelEdit() {
this.addShow=false // 取消新增
this.addMsg={ this.addShow = false;
Id:0, this.addMsg = {
Name:'', Id: 0,
VisaType:'', Name: "",
SendVisaDate:'', VisaType: "",
VisaPrice:'', SendVisaDate: "",
PeopleNum:'0', VisaPrice: "",
CostPrice:'', PeopleNum: "0",
CommissionPrice:'', CostPrice: "",
VisaManagementId:'' CommissionPrice: "",
} VisaManagementId: ""
this.resetForm('addMsg') };
this.resetForm("addMsg");
}, },
resetForm(formName) { // 重置表单 resetForm(formName) {
// 重置表单
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getList(); this.getList();
}
}, },
},mounted(){ mounted() {
this.userId=this.getLocalStorage().EmployeeId this.userId = this.getLocalStorage().EmployeeId;
this.msg.BranchId = this.getLocalStorage().RB_Branch_id.toString() this.msg.BranchId = this.getLocalStorage().RB_Branch_id.toString();
this.msg.ProductID=this.$route.query.VisaID this.msg.ProductID = this.$route.query.VisaID;
this.msg.isFinacial=this.$route.query.isFinacial!=undefined?this.$route.query.isFinacial:1 this.msg.isFinacial =
this.getList() this.$route.query.isFinacial != undefined
this.getCompanyList() ? this.$route.query.isFinacial
: 1;
this.getList();
this.getCompanyList();
this.getEmployeeList(); this.getEmployeeList();
} }
} };
</script> </script>
...@@ -772,9 +772,9 @@ export default { ...@@ -772,9 +772,9 @@ export default {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.apipost('dmc_get_visa_UploadVisaInformation', { this.apipost('dmc_get_visa_UploadVisaInformation', {
Path: x.name, Path: this.domainManager().ViittoFileUrl + x.data.FilePath,
FileName: file.file.name, FileName: file.file.name,
Status: 1, Status: 1,
TCID: this.uploadTCID TCID: this.uploadTCID
......
...@@ -192,9 +192,9 @@ ...@@ -192,9 +192,9 @@
let path = "/Upload/ShopZhang/"; let path = "/Upload/ShopZhang/";
this.$message.info('上传中...'); this.$message.info('上传中...');
var that=this; var that=this;
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0); let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0);
var fileUrl = x.res.requestUrls[0].split("?")[0]; var fileUrl = this.domainManager().ViittoFileUrl + x.data.FilePath;
that.list.forEach((item, index) => { that.list.forEach((item, index) => {
if (index == that.upIndex) { if (index == that.upIndex) {
item.ShopDetailsList.forEach((subItem,subIndex) => { item.ShopDetailsList.forEach((subItem,subIndex) => {
......
...@@ -748,9 +748,9 @@ ...@@ -748,9 +748,9 @@
newArr.push(file.file); newArr.push(file.file);
let fileName = file.file.name; let fileName = file.file.name;
var path = "/Upload/DMC/"; var path = "/Upload/DMC/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
var str = x.name; var str = this.domainManager().ViittoFileUrl + x.data.FilePath;
var imgUrl = this.domainManager().AliUrl + str; var imgUrl = str;
this.imgArray.push(imgUrl); this.imgArray.push(imgUrl);
this.PicPathArray.push(str); this.PicPathArray.push(str);
}); });
......
...@@ -238,13 +238,10 @@ ...@@ -238,13 +238,10 @@
newArr.push(file.file); newArr.push(file.file);
let fileName = file.file.name; let fileName = file.file.name;
let that = this; let that = this;
let path = "/Upload/DMC/"; let path = "/Upload/Temporary/";
this.UploadSelfFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
console.log(x); this.VideoStr = this.domainManager().ViittoFileUrl + x.data.FilePath;
var str = x.res.requestUrls[0].split('?'); this.PostConfig.VideoStr = this.domainManager().ViittoFileUrl + x.data.FilePath;
this.VideoStr = str[0];
this.PostConfig.VideoStr = x.name;
// that.PostConfig.fileList[this.updateChoseIndex].Name = fileName; // that.PostConfig.fileList[this.updateChoseIndex].Name = fileName;
}); });
}, },
...@@ -286,11 +283,11 @@ ...@@ -286,11 +283,11 @@
let fileName = file.file.name; let fileName = file.file.name;
let that = this; let that = this;
let path = "/Upload/DMC/"; let path = "/Upload/DMC/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
var str = x.res.requestUrls[0]; var str = this.domainManager().ViittoFileUrl + x.data.FilePath;
that.PostConfig.fileList[ that.PostConfig.fileList[
this.updateChoseIndex this.updateChoseIndex
].Url = this.$commonUtils.GetALiFileUrl(str); ].Url = str
that.PostConfig.fileList[this.updateChoseIndex].Name = fileName; that.PostConfig.fileList[this.updateChoseIndex].Name = fileName;
}); });
}, },
......
...@@ -556,11 +556,11 @@ ...@@ -556,11 +556,11 @@
let that = this; let that = this;
let path = "/Upload/DMC/"; let path = "/Upload/DMC/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
var str = x.res.requestUrls[0]; var str = this.domainManager().ViittoFileUrl + x.data.FilePath;
that.FeatureData.fileList[ that.FeatureData.fileList[
this.updateChoseIndex this.updateChoseIndex
].Url = this.$commonUtils.GetALiFileUrl(str); ].Url = str
that.FeatureData.fileList[this.updateChoseIndex].Name = fileName; that.FeatureData.fileList[this.updateChoseIndex].Name = fileName;
}); });
}, },
......
...@@ -502,9 +502,9 @@ ...@@ -502,9 +502,9 @@
let newArr = []; let newArr = [];
newArr.push(item.file); newArr.push(item.file);
let path = "/Upload/Icon/AppMenuIcon/"; let path = "/Upload/Icon/AppMenuIcon/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
var str = x.res.requestUrls[0]; var str = this.domainManager().ViittoFileUrl + x.data.FilePath;
this.addMsg.Image = this.$commonUtils.GetALiFileUrl(str); this.addMsg.Image = str
}); });
}, },
//上传菜单选中图标 //上传菜单选中图标
...@@ -512,9 +512,9 @@ ...@@ -512,9 +512,9 @@
let newArr = []; let newArr = [];
newArr.push(item.file); newArr.push(item.file);
let path = "/Upload/Icon/AppMenuIcon/"; let path = "/Upload/Icon/AppMenuIcon/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
var str = x.res.requestUrls[0]; var str = this.domainManager().ViittoFileUrl + x.data.FilePath;
this.addMsg.SelectImage = this.$commonUtils.GetALiFileUrl(str); this.addMsg.SelectImage = str
}); });
} }
} }
......
...@@ -958,11 +958,11 @@ ...@@ -958,11 +958,11 @@
newArr.push(file.file); newArr.push(file.file);
let fileName = file.file.name; let fileName = file.file.name;
var path = "/Upload/DMC/"; var path = "/Upload/DMC/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
//统一图片处理 //统一图片处理
var obj = this.$DMCUtils.DMCImageObj(); var obj = this.$DMCUtils.DMCImageObj();
var str = x.name; var str = this.domainManager().ViittoFileUrl + x.data.FilePath;
var imgUrl = this.domainManager().AliUrl + str; var imgUrl = str;
obj.Path = str; obj.Path = str;
obj.ShowPath = imgUrl; obj.ShowPath = imgUrl;
this.TicketCouponsImageArray.push(obj); this.TicketCouponsImageArray.push(obj);
......
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