Commit 9be6e628 authored by zhengke's avatar zhengke

修改

parent 0c687dfc
......@@ -321,6 +321,14 @@
this.Error('请选择系列');
return
}
if(this.PostPrice&&this.PostPrice.length>0){
for(let i=0;i<this.PostPrice.length;i++){
if(this.PostPrice[i].PriceTeamType==3&&this.PostPrice[i].PriceOfferUrl==''){
this.Error(this.PostPrice[i].StartDate+'必须上传报价单');
return
}
}
}
if (this.isSubmit) {
this.isSubmit = false;
this.SaveData(SaveType);
......@@ -429,7 +437,6 @@
}
basicData.TeamType = this.TeamType;
basicData.IsUpdateHotel = this.PostConfig.IsUpdateHotel;
this.apipost(
"travel_post_SetTravelConfigInfo",
basicData,
......
......@@ -827,6 +827,28 @@
</el-form-item>
</div>
</div>
<div class="clearfix">
<div class="TPright clearfix">
<el-form-item prop="OutBranchId" style="margin-top:1px;">
<span class="TP_Sendprepend" style="margin:3px -1px 0 0">团队类型</span>
<el-select class="w180" v-model="priceData.PriceTeamType">
<el-option v-for="item in TeamListArr" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option>
</el-select>
</el-form-item>
<el-form-item style="margin-top:1px;">
<span class="TP_Sendprepend" style="margin:3px -1px 0 0">报价单地址</span>
<el-upload class="upload-demo" style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadFileBtn" :multiple="true" :show-file-list="false" action="">
<el-button size="small" type="primary">上传</el-button>
</el-upload>
<a style="margin-left:20px;color:blue;" :href="priceData.PriceOfferUrl" v-if="priceData.PriceOfferUrl" target="_blank">预览</a>
</el-form-item>
</div>
</div>
<div class="clearfix">
<div class="leftSetInfo">
<span class="TPbaseSet" style="width:62px;"></span>
......@@ -1132,6 +1154,7 @@
lessPriceVisible: false,
lessPriceData: [],
SupplierList:[],//供应商列表
TeamListArr:[],
};
},
methods: {
......@@ -1286,6 +1309,8 @@
ForeignPassportPrice: 0,
UseFlightType: this.CurrentUserInfo.UseFlightType,
SupplierId: 0, //供应商编号
PriceTeamType:1, //团队类型
PriceOfferUrl:'' //报价单地址
};
}
this.returnPriceList.push(objItem);
......@@ -1874,6 +1899,29 @@
date = new Date(dateArray[0], parseInt(dateArray[1] - 1), dateArray[2]);
return "日一二三四五六".charAt(date.getDay());
}
},
//获取团队类型
getTeamList(){
this.apipost("travel_get_GetTravelPriceTeamTypeList", {}, res => {
if (res.data.resultCode == 1) {
console.log(res,'数据');
this.TeamListArr = res.data.data;
} else {
this.Error(res.data.message);
}
},
err => {}
);
},
uploadFileBtn(file) { //上传
let newArr = [];
newArr.push(file.file)
let path = "/Upload/Temporary/"
this.$message.info(this.$t('tips.shangchuanzhong'))
this.UploadSelfFileT(path, newArr, x => {
this.priceData.PriceOfferUrl = this.domainManager().ViittoFileUrl + x.data.FilePath,
this.Success(this.$t('tips.scchenggong'))
});
}
},
mounted() {
......@@ -1883,6 +1931,7 @@
this.initCalendar();
this.getCompanyList();
this.getTravelSupplier();
this.getTeamList();
},
watch: {
priceList: {
......
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