Commit f21e1742 authored by 华国豪's avatar 华国豪 🙄
parents 640b4652 d7277f93
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
<el-select v-model="msg2.BatchNumber" placeholder="请选择"> <el-select v-model="msg2.BatchNumber" placeholder="请选择">
<el-option label="第一批" :value="1"></el-option> <el-option label="第一批" :value="1"></el-option>
<el-option label="第二批" :value="2"></el-option> <el-option label="第二批" :value="2"></el-option>
<el-option label="第三批" :value="3"></el-option> <!-- <el-option label="第三批" :value="3"></el-option> -->
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -345,7 +345,7 @@ ...@@ -345,7 +345,7 @@
<el-select v-model="msg.BatchNumber" placeholder="请选择"> <el-select v-model="msg.BatchNumber" placeholder="请选择">
<el-option label="第一批" :value="1"></el-option> <el-option label="第一批" :value="1"></el-option>
<el-option label="第二批" :value="2"></el-option> <el-option label="第二批" :value="2"></el-option>
<el-option label="第三批" :value="3"></el-option> <!-- <el-option label="第三批" :value="3"></el-option> -->
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
......
...@@ -881,6 +881,7 @@ export default { ...@@ -881,6 +881,7 @@ export default {
let path = "/Upload/DMC/Icon/"; let path = "/Upload/DMC/Icon/";
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
let url = this.domainManager().ViittoFileUrl + x.data.FilePath; let url = this.domainManager().ViittoFileUrl + x.data.FilePath;
console.log('url', url)
let Name=x.data.SourceFileName; let Name=x.data.SourceFileName;
this.addMsg.VisaProductInfo.DownloadMaterialsFileList.push({Url:url,Name:Name,name:Name}) this.addMsg.VisaProductInfo.DownloadMaterialsFileList.push({Url:url,Name:Name,name:Name})
......
...@@ -204,6 +204,7 @@ ...@@ -204,6 +204,7 @@
margin-left: 10px; margin-left: 10px;
} }
._top img { ._top img {
display: inline-block;
width: 71px; width: 71px;
height: 46px; height: 46px;
} }
...@@ -237,7 +238,46 @@ ...@@ -237,7 +238,46 @@
top:2px; top:2px;
right: 0px; right: 0px;
} }
.visa_pro_country .TFimgList {
float: left;
width: 170px;
height: 120px;
border-radius: 4px;
position: relative;
margin: 0 10px 10px 0;
overflow: hidden;
}
.visa_pro_country .TFIMGzhe {
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
position: absolute;
top: 0;
text-align: center;
line-height: 115px;
border-radius: 4px;
display: none;
}
.visa_pro_country .TFreupload {
width: 32px;
height: 32px;
border-radius: 50%;
line-height: 32px;
top: 50px;
left: 53px;
display: inline-block;
text-align: center;
background-color: gray;
color: #fff;
}
.visa_pro_country .TFimgList:hover .TFIMGzhe {
display: block;
}
.visa_pro_country .TFimgList img {
width: 100%;
height: 100%;
}
</style> </style>
<template> <template>
<div class="page_visaMG visa_pro_country"> <div class="page_visaMG visa_pro_country">
...@@ -313,7 +353,7 @@ ...@@ -313,7 +353,7 @@
<el-input v-model="country.Sort" placeholder="排序"/> <el-input v-model="country.Sort" placeholder="排序"/>
</el-form-item> </el-form-item>
<el-form-item label="国家图标"> <el-form-item label="国家图标">
<el-upload <!-- <el-upload
:file-list="fileList" :file-list="fileList"
:http-request="uploadTest" :http-request="uploadTest"
:multiple="true" :multiple="true"
...@@ -321,23 +361,48 @@ ...@@ -321,23 +361,48 @@
:on-change="handleChange1" :on-change="handleChange1"
action=""> action="">
<el-button size="small" type="primary">点击上传</el-button> <el-button size="small" type="primary">点击上传</el-button>
</el-upload> -->
<div class="TFimgList">
<img v-if="!country.Icon" src="../../assets/img/bg_c3@3x.png">
<img v-else :src='country.Icon'>
<div class="TFIMGzhe">
<div class="TFreupload">
<el-upload :file-list="fileList" :http-request="uploadTest" :multiple="true" :limit="2"
:on-change="handleChange1"
accept="image/jpeg, image/gif, image/png, image/bmp"
:show-file-list="false" action="">
<i class="iconfont icon-Edit"></i>
</el-upload> </el-upload>
</div>
</div>
</div>
</el-form-item> </el-form-item>
<el-form-item label="背景图片"> <el-form-item label="背景图片">
<el-upload <!-- <el-upload
:file-list="fileList2" :file-list="fileList2"
:http-request="uploadTest2" :http-request="uploadTest2"
:multiple="true" :multiple="true"
:limit="2" :limit="2"
:on-change="handleChange2" :on-change="handleChange2"
action=""> action="">
<el-button size="small" type="primary">点击上传</el-button> <el-button size="small" type="primary">点击上传</el-button></el-upload> -->
<div class="TFimgList">
<img v-if="!country.ImageFileList[0]" src="../../assets/img/bg_c3@3x.png">
<img v-else :src='country.ImageFileList[0]'>
<div class="TFIMGzhe">
<div class="TFreupload">
<el-upload :file-list="fileList2" :http-request="uploadTest2" :multiple="true" :limit="2"
:on-change="handleChange2"
accept="image/jpeg, image/gif, image/png, image/bmp"
:show-file-list="false" action="">
<i class="iconfont icon-Edit"></i>
</el-upload> </el-upload>
</div>
</div>
</div>
</el-form-item> </el-form-item>
<!-- <el-form-item>
<button class="hollowFixedBtn" type="button" @click="cancelEdit()">取消</button>
<button type="button" class="normalBtn" @click="saveVisa">保存</button>
</el-form-item> -->
</el-form> </el-form>
</div> </div>
<!-- 国家产品标签 --> <!-- 国家产品标签 -->
...@@ -488,7 +553,7 @@ export default { ...@@ -488,7 +553,7 @@ export default {
}, },
// 编辑标签 // 编辑标签
EditTag(tag,num){ EditTag(tag,num){
console.log(tag);
this.showInput(num); this.showInput(num);
this.inputValue=tag.TagTame; this.inputValue=tag.TagTame;
this.productlabel.Id=tag.Id; this.productlabel.Id=tag.Id;
...@@ -587,11 +652,9 @@ export default { ...@@ -587,11 +652,9 @@ export default {
"dmc_post_visa_GetVisaProductCountryTagList", "dmc_post_visa_GetVisaProductCountryTagList",
{VisaCountryId:item}, {VisaCountryId:item},
res => { res => {
console.log(res);
this.tagloading=false; this.tagloading=false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.CountryTagList=res.data.data; this.CountryTagList=res.data.data;
console.log(this.CountryTagList,'countrylist');
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
...@@ -648,8 +711,10 @@ export default { ...@@ -648,8 +711,10 @@ export default {
this.fileList2 = fileList.slice(-1); this.fileList2 = fileList.slice(-1);
}, },
handleChange1(file, fileList) { handleChange1(file, fileList) {
this.fileList = fileList.slice(-1); this.fileList = fileList.slice(-1);
}, },
// 修改国家图标
uploadTest(file) { uploadTest(file) {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
...@@ -700,7 +765,7 @@ export default { ...@@ -700,7 +765,7 @@ export default {
}, },
saveVisa() { saveVisa() {
//修改保存 //修改保存
// console.log("this.country",this.country);
if (this.country.CountryId == "") { if (this.country.CountryId == "") {
this.$message.error("请选择国家!"); this.$message.error("请选择国家!");
return; return;
......
<style> <style>
.page_visaMG ._vMG_edit{overflow: auto;display: none;position:absolute;font-family: 'PingFangSc-Fine';bottom:0;left: 0;border-top:3px solid #38425d;background-color:#fff;padding:10px;width: 100%;min-width: 1146px;padding-right: 10px} .page_visaMG ._vMG_edit {
.page_visaMG .edHeight{display: block;height: 330px;} overflow: auto;
.page_visaMG ._vMG_conten{padding: 30px 0;overflow-x: auto;} display: none;
.page_visaMG ._vMG_conten ul li{width: 175px;height: auto;float: left;background-color: #FFFFFF;margin-right: 26px} position: absolute;
.page_visaMG ._vMG_conten ul li ._top{text-align: center;position: relative;} font-family: "PingFangSc-Fine";
.page_visaMG ._vMG_conten ul li ._top p{font-size: 14px;color: #333333;font-weight: bold;margin-top: 8px;padding-bottom: 20px;font-weight: bold} bottom: 0;
.page_visaMG ._vMG_conten ul li ._btm{border-top:1px dashed #B8B8B8;display:flex;text-align: center;padding-top: 22px} left: 0;
.page_visaMG ._vMG_conten ul li ._btmt{border:none;} border-top: 3px solid #38425d;
.page_visaMG ._vMG_conten ul li ._btm>div{width: 50%;} background-color: #fff;
.page_visaMG ._vMG_conten ul li ._btm>div:nth-child(1){border-right: 1px solid #B8B8B8} padding: 10px;
.page_visaMG ._vMG_conten ul li ._btm>div ._num{font-size: 16px;color: #333333;font-weight: bold} width: 100%;
.page_visaMG ._vMG_conten ul li ._btmt>div ._num{font-size: 14px} min-width: 1146px;
.page_visaMG ._vMG_conten ul li ._btm>div ._text{font-size: 12px;color: #666666} padding-right: 10px;
.page_visaMG ._vMG_conten ul li .tcenter{margin-top: 20px} }
.page_visaMG ._vMG_conten li:hover{box-shadow:0px 0px 20px rgba(191,191,191,1);transition: all linear 0.5s;} .page_visaMG .edHeight {
.page_visaMG ._black{filter: gray;-webkit-filter: grayscale(100%);} display: block;
.page_visaMG ._noOpen{line-height: 34px;color: #666666;font-size: 12px;text-align: center;padding-top: 22px;border-top:1px dashed #B8B8B8;} height: 330px;
.page_visaMG ._vMG_edit ._tit{padding-left: 10px;border-left: 3px solid #E95252; font-size: 16px;color: #000000} }
.page_visaMG ._vMG_edit ._tit span{color: #666666;font-size: 14px;} .page_visaMG ._vMG_conten {
.page_visaMG ._info_box{padding:30px 15px;font-size: 12px !important} padding: 30px 0;
.page_visaMG ._info_box>div{float: left;} overflow-x: auto;
.page_visaMG .w400{width: 450px;margin-right: 20px;height: 100px;} }
.page_visaMG .w225{width: 225px;margin-right: 20px} .page_visaMG ._vMG_conten ul li {
.page_visaMG .wauto label{width: 98px;} width: 175px;
.page_visaMG ._info_box {padding-bottom: 0} height: auto;
.page_visaMG ._info_box ul{margin-top: 10px} float: left;
.page_visaMG ._info_box ul li{} background-color: #ffffff;
.page_visaMG ._info_box ul li .el-form-item{display: flex;height: 30px;line-height: 30px;} margin-right: 26px;
.page_visaMG ._info_box ul li .el-form-item .el-input{display: flex;height: 30px;line-height: 30px;} }
.page_visaMG ._info_box ul li:nth-child(odd){margin-right: 15px} .page_visaMG ._vMG_conten ul li ._top {
.page_visaMG ._info_box ul li .el-form-item__label{font-size: 12px !important;line-height: 30px} text-align: center;
.page_visaMG ._info_box ul li .el-form-item input{height: 30px;line-height: 30px} position: relative;
.page_visaMG ._info_box ul li .el-form-item textarea{height: 80px;resize: none;width: 280px;} }
.page_visaMG ._edHeight{height:400px;} .page_visaMG ._vMG_conten ul li ._top p {
.page_visaMG ._scrollbar::-webkit-scrollbar{width: 4px;height: 8px;} font-size: 14px;
.page_visaMG ._scrollbar::-webkit-scrollbar-thumb{border-radius: 4px;-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);background: #c9c9c9;} color: #333333;
.page_visaMG ._scrollbar::-webkit-scrollbar-track{-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);border-radius: 4px;background: #EDEDED;} font-weight: bold;
.page_visaMG ._status{position: absolute;left: -20px;top: 0px} margin-top: 8px;
.page_visaMG ._status span{display: inline-block;padding: 2px 5px;background-color: #4BCA81;color: white;font-size: 12px;border-top-right-radius: 15px;border-bottom-right-radius: 15px;} padding-bottom: 20px;
.page_visaMG ._status span:nth-child(2){background-color: #E95252} font-weight: bold;
.page_visaMG ._tips{display: inline-block;width: 16px;height: 16px;border-radius: 50%;border: 1px solid #E95252;color: #E95252;font-size: 12px;line-height: 15px;cursor: pointer;} }
.page_visaMG_tips{text-align: center} .page_visaMG ._vMG_conten ul li ._btm {
.page_visaMG_tips .hollowFixedBtn{margin-top: 10px} border-top: 1px dashed #b8b8b8;
._form_item{padding-left: 13px} display: flex;
text-align: center;
padding-top: 22px;
}
.page_visaMG ._vMG_conten ul li ._btmt {
border: none;
}
.page_visaMG ._vMG_conten ul li ._btm > div {
width: 50%;
}
.page_visaMG ._vMG_conten ul li ._btm > div:nth-child(1) {
border-right: 1px solid #b8b8b8;
}
.page_visaMG ._vMG_conten ul li ._btm > div ._num {
font-size: 16px;
color: #333333;
font-weight: bold;
}
.page_visaMG ._vMG_conten ul li ._btmt > div ._num {
font-size: 14px;
}
.page_visaMG ._vMG_conten ul li ._btm > div ._text {
font-size: 12px;
color: #666666;
}
.page_visaMG ._vMG_conten ul li .tcenter {
margin-top: 20px;
}
.page_visaMG ._vMG_conten li:hover {
box-shadow: 0px 0px 20px rgba(191, 191, 191, 1);
transition: all linear 0.5s;
}
.page_visaMG ._black {
filter: gray;
-webkit-filter: grayscale(100%);
}
.page_visaMG ._noOpen {
line-height: 34px;
color: #666666;
font-size: 12px;
text-align: center;
padding-top: 22px;
border-top: 1px dashed #b8b8b8;
}
.page_visaMG ._vMG_edit ._tit {
padding-left: 10px;
border-left: 3px solid #e95252;
font-size: 16px;
color: #000000;
}
.page_visaMG ._vMG_edit ._tit span {
color: #666666;
font-size: 14px;
}
.page_visaMG ._info_box {
padding: 30px 15px;
font-size: 12px !important;
}
.page_visaMG ._info_box > div {
float: left;
}
.page_visaMG .w400 {
width: 450px;
margin-right: 20px;
height: 100px;
}
.page_visaMG .w225 {
width: 225px;
margin-right: 20px;
}
.page_visaMG .wauto label {
width: 98px;
}
.page_visaMG ._info_box {
padding-bottom: 0;
}
.page_visaMG ._info_box ul {
margin-top: 10px;
}
.page_visaMG ._info_box ul li {
}
.page_visaMG ._info_box ul li .el-form-item {
display: flex;
height: 30px;
line-height: 30px;
}
.page_visaMG ._info_box ul li .el-form-item .el-input {
display: flex;
height: 30px;
line-height: 30px;
}
.page_visaMG ._info_box ul li:nth-child(odd) {
margin-right: 15px;
}
.page_visaMG ._info_box ul li .el-form-item__label {
font-size: 12px !important;
line-height: 30px;
}
.page_visaMG ._info_box ul li .el-form-item input {
line-height: 30px;
}
.page_visaMG ._info_box ul li .el-form-item textarea {
height: 80px;
resize: none;
width: 280px;
}
.page_visaMG ._edHeight {
height: 400px;
}
.page_visaMG ._scrollbar::-webkit-scrollbar {
width: 4px;
height: 8px;
}
.page_visaMG ._scrollbar::-webkit-scrollbar-thumb {
border-radius: 4px;
-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
background: #c9c9c9;
}
.page_visaMG ._scrollbar::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
border-radius: 4px;
background: #ededed;
}
.page_visaMG ._status {
position: absolute;
left: -20px;
top: 0px;
}
.page_visaMG ._status span {
display: inline-block;
padding: 2px 5px;
background-color: #4bca81;
color: white;
font-size: 12px;
border-top-right-radius: 15px;
border-bottom-right-radius: 15px;
}
.page_visaMG ._status span:nth-child(2) {
background-color: #e95252;
}
.page_visaMG ._tips {
display: inline-block;
width: 16px;
height: 16px;
border-radius: 50%;
border: 1px solid #e95252;
color: #e95252;
font-size: 12px;
line-height: 15px;
cursor: pointer;
}
.page_visaMG_tips {
text-align: center;
}
.page_visaMG_tips .hollowFixedBtn {
margin-top: 10px;
}
._form_item {
padding-left: 13px;
}
</style> </style>
<template> <template>
<div class="page_visaMG"> <div class="page_visaMG">
...@@ -154,7 +313,7 @@ ...@@ -154,7 +313,7 @@
</li> </li>
</ul> </ul>
</div> </div>
<div class="w225"> <div style="width:500px" class="w225">
<p>{{$t('visa.v_qianzhengst')}}</p> <p>{{$t('visa.v_qianzhengst')}}</p>
<ul class="clearfix"> <ul class="clearfix">
<li> <li>
...@@ -178,9 +337,9 @@ ...@@ -178,9 +337,9 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</li> </li>
<li> <li v-for="(item,index) in MRList" :key="index+2000">
<el-form-item :label="$t('hotel.hotel_Supplier')+':'" class="_form_item"> <el-form-item style="width:220px;display:inline-block" :label="$t('hotel.hotel_Supplier')+':'" class="_form_item">
<el-select v-model="addMsg.CommuneId " class="w135"> <el-select v-model="item.CommuneId " class="w135">
<el-option <el-option
v-for="item in CommuneInfoList" v-for="item in CommuneInfoList"
:key="item.Id" :key="item.Id"
...@@ -189,6 +348,20 @@ ...@@ -189,6 +348,20 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item style="width:230px;display:inline-block" label="公司" class="_form_item collapse_select">
<el-select multiple collapse-tags v-model="item.BranchList" style="width:170px">
<el-option
v-for="item in companyList"
:key="item.Id"
:label="item.BName"
:value="item.Id">
</el-option>
</el-select>
</el-form-item>
<span><el-button @click="DeleteMRList(item,index)" style="padding:4px" type="danger" icon="el-icon-delete" circle></el-button></span>
</li>
<li>
<el-button @click="AddMRList" type="danger" size="small">新增</el-button>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -224,120 +397,220 @@ ...@@ -224,120 +397,220 @@
</template> </template>
<script> <script>
export default { export default {
data(){ data() {
return{ return {
msg:{ msg: {
pageIndex:1, pageIndex: 1,
pageSize:15, pageSize: 15,
StartTime:'', StartTime: "",
EndTime:'', EndTime: "",
orderId:'', orderId: "",
IsSaveFile:'', IsSaveFile: ""
}, },
addMsg:{ addMsg: {
Id:0, Id: 0,
Discription:'', Discription: "",
Icon:'', Icon: "",
Sort:1, Sort: 1,
Status:0, Status: 0,
B2B_Price:'', B2B_Price: "",
B2C_Price:'', B2C_Price: "",
DaySet:'', DaySet: "",
Interior_Price:'', Interior_Price: "",
SalesPlatform:'', SalesPlatform: "",
Unit_Price:'', Unit_Price: "",
CommuneId:'', CommuneId: "",
TCInterior_Price:'', TCInterior_Price: "",
TCUnit_Price:'', TCUnit_Price: ""
}, },
DataList:[], DataList: [],
editData:[], editData: [],
VisaSalesPlatformEnum:[], VisaSalesPlatformEnum: [],
CommuneInfoList:[], CommuneInfoList: [],
addShow:false, addShow: false,
} companyList: [],
},methods:{ MRList: []
editVisa(item){ };
let data = item },
data.Status = data.Status.toString() methods: {
this.addShow=true // 删除公司
this.addMsg=JSON.parse(JSON.stringify(data)) DeleteMRList(item, index) {
this.MRList.splice(index, 1);
}, },
getVisaSalesPlatformEnum(){ // 获取签证销售平台枚举 AddMRList() {
this.apipost('dmc_get_visa_GetVisaSalesPlatformEnum',{},res=>{ let obj = {};
if(res.data.resultCode==1){ obj.CommuneId = 12;
this.VisaSalesPlatformEnum = res.data.data obj.BranchList = [];
}else{ this.MRList.push(obj);
this.$message.error(res.data.message) },
getCompanyList() {
let userInfo = this.getLocalStorage();
let RB_Group_id = userInfo.RB_Group_id;
let msg = {
Status: 0,
is_show: 0,
RB_Group_Id: RB_Group_id
};
this.apipost(
"admin_get_BranchGetList",
msg,
res => {
if (res.data.resultCode == 1) {
this.companyList = [
{
Id: "-1",
BName: "不限"
}
];
res.data.data.forEach(x => {
var obj = {
Id: "",
BName: ""
};
obj.Id = x.Id.toString();
obj.BName = x.BName;
this.companyList.push(obj);
});
} }
},err=>{})
}, },
getVisaManagementList(){ // 获取签证管理 err => {}
this.apipost('dmc_get_visa_GetVisaManagementList',{Status:-1,BranchId:-1},res=>{ );
if(res.data.resultCode==1){ },
this.DataList = res.data.data editVisa(item) {
this.DataList.forEach(x=>{ let data = item;
x.SalesPlatform = x.SalesPlatform.toString() data.Status = data.Status.toString();
}) this.addShow = true;
}else{ this.addMsg = JSON.parse(JSON.stringify(data));
this.$message.error(res.data.message) this.MRList = this.addMsg.MRList;
for (let i = 0; i < this.MRList.length; i++) {
let obj = this.MRList[i];
for (let j = 0; j < obj.BranchList.length; j++) {
obj.BranchList[j] = obj.BranchList[j].toString();
} }
},err=>{}) }
}, },
getCommuneInfoList(){ // 获取签证供应商 getVisaSalesPlatformEnum() {
this.apipost('dmc_post_visa_GetCommuneInfoList',{},res=>{ // 获取签证销售平台枚举
if(res.data.resultCode==1){ this.apipost(
this.CommuneInfoList = res.data.data "dmc_get_visa_GetVisaSalesPlatformEnum",
}else{ {},
this.$message.error(res.data.message) res => {
if (res.data.resultCode == 1) {
this.VisaSalesPlatformEnum = res.data.data;
} else {
this.$message.error(res.data.message);
} }
},err=>{})
}, },
saveVisa(){ //修改保存 err => {}
if(!this.addMsg.Icon){ );
this.addMsg.Icon='' },
getVisaManagementList() {
// 获取签证管理
this.apipost(
"dmc_get_visa_GetVisaManagementList",
{ Status: -1, BranchId: -1 },
res => {
if (res.data.resultCode == 1) {
this.DataList = res.data.data;
this.DataList.forEach(x => {
x.SalesPlatform = x.SalesPlatform.toString();
});
} else {
this.$message.error(res.data.message);
} }
this.apipost('dmc_post_visa_SetVisaManagement',this.addMsg,res=>{ },
if(res.data.resultCode==1){ err => {}
this.addMsg = { );
Id:0, },
Discription:'', getCommuneInfoList() {
Sort:1, // 获取签证供应商
Status:0, this.apipost(
B2B_Price:'', "dmc_post_visa_GetCommuneInfoList",
B2C_Price:'', {},
DaySet:'', res => {
Interior_Price:'', if (res.data.resultCode == 1) {
SalesPlatform:'', this.CommuneInfoList = res.data.data;
Unit_Price:'', } else {
this.$message.error(res.data.message);
} }
this.addShow=false },
this.$message.success(res.data.message) err => {}
this.getVisaManagementList() );
}else{ },
this.$message.error(res.data.message) isRepeat(arr) {
var hash = {};
for (var i in arr) {
if (hash[arr[i]]) return true;
hash[arr[i]] = true;
} }
},err=>{}) return false;
}, },
cancelEdit(){ saveVisa() {
//修改保存
this.addMsg.MRList=this.MRList;
let arr=[];
for (let i = 0; i < this.MRList.length; i++) {
let obj = this.MRList[i];
arr.push(obj.CommuneId);
}
if(this.isRepeat(arr)){
this.Error("存在相同的供应商!")
return;
}
if (!this.addMsg.Icon) {
this.addMsg.Icon = "";
}
this.apipost(
"dmc_post_visa_SetVisaManagement",
this.addMsg,
res => {
if (res.data.resultCode == 1) {
this.addMsg = { this.addMsg = {
Id:0, Id: 0,
Discription:'', Discription: "",
Sort:1, Sort: 1,
Status:0, Status: 0,
B2B_Price:'', B2B_Price: "",
B2C_Price:'', B2C_Price: "",
DaySet:'', DaySet: "",
Interior_Price:'', Interior_Price: "",
SalesPlatform:'', SalesPlatform: "",
Unit_Price:'', Unit_Price: ""
};
this.addShow = false;
this.$message.success(res.data.message);
this.getVisaManagementList();
} else {
this.$message.error(res.data.message);
} }
this.addShow=false },
err => {}
);
},
cancelEdit() {
this.addMsg = {
Id: 0,
Discription: "",
Sort: 1,
Status: 0,
B2B_Price: "",
B2C_Price: "",
DaySet: "",
Interior_Price: "",
SalesPlatform: "",
Unit_Price: ""
};
this.addShow = false;
} }
},mounted(){ },
this.getVisaManagementList() mounted() {
this.getVisaSalesPlatformEnum() this.getCompanyList();
this.getCommuneInfoList() this.getVisaManagementList();
this.getVisaSalesPlatformEnum();
this.getCommuneInfoList();
} }
} };
</script> </script>
...@@ -824,6 +824,7 @@ ...@@ -824,6 +824,7 @@
newPlanData.DriverTel = oldPlanData.DriverTel; newPlanData.DriverTel = oldPlanData.DriverTel;
newPlanData.BusNum = oldPlanData.BusNum; newPlanData.BusNum = oldPlanData.BusNum;
newPlanData.BusCompany = oldPlanData.BusCompany; newPlanData.BusCompany = oldPlanData.BusCompany;
newPlanData.BusType = oldPlanData.BusType;
newPlanData.PayType = oldPlanData.PayType; newPlanData.PayType = oldPlanData.PayType;
newPlanData.BookGroup = oldPlanData.BookGroup; newPlanData.BookGroup = oldPlanData.BookGroup;
} }
......
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