Commit 8a6e8730 authored by 黄奎's avatar 黄奎

页面修改

parent 2e7ef853
...@@ -104,9 +104,7 @@ ...@@ -104,9 +104,7 @@
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<el-upload <el-upload :http-request="uploadFileBtn" :multiple="true" :show-file-list="false" action="">
:http-request="uploadFileBtn"
:multiple="true" :show-file-list="false" action="" >
<el-button size="small" type="danger" icon="el-icon-upload2"> <el-button size="small" type="danger" icon="el-icon-upload2">
<i class="el-icon-plus avatar-uploader-icon" @click="ClickItem=item"></i> <i class="el-icon-plus avatar-uploader-icon" @click="ClickItem=item"></i>
<div class="el-upload__text" @click="ClickItem=item">点击上传</div> <div class="el-upload__text" @click="ClickItem=item">点击上传</div>
...@@ -222,7 +220,7 @@ ...@@ -222,7 +220,7 @@
//创建人姓名 //创建人姓名
CreateByName: '', CreateByName: '',
//点击项 //点击项
ClickItem:{}, ClickItem: {},
} }
}, },
methods: { methods: {
...@@ -280,10 +278,9 @@ ...@@ -280,10 +278,9 @@
Name: item.NewHotelName, Name: item.NewHotelName,
ID: item.NewHotelId ID: item.NewHotelId
}) })
item.ContractUrlArray=[]; item.ContractUrlArray = [];
if(item.ContractUrl && item.ContractUrl!='') if (item.ContractUrl && item.ContractUrl != '') {
{ item.ContractUrlArray = item.ContractUrl.split(',');
item.ContractUrlArray=item.ContractUrl.split(',');
} }
item.PayStyle = item.PayStyle.toString() item.PayStyle = item.PayStyle.toString()
item.OrderDetailsList.forEach((x, index1) => { item.OrderDetailsList.forEach((x, index1) => {
...@@ -296,11 +293,11 @@ ...@@ -296,11 +293,11 @@
x.UnitPrice = x.UnitPrice.toString(); x.UnitPrice = x.UnitPrice.toString();
x.HotelDiscount = x.HotelDiscount.toString(); x.HotelDiscount = x.HotelDiscount.toString();
}) })
if(item.ReserveNo==''||item.ReserveNo==null){ if (item.ReserveNo == '' || item.ReserveNo == null) {
item.ReserveNo = this.$route.query.NewCombinationNum; item.ReserveNo = this.$route.query.NewCombinationNum;
} }
}) })
console.log("this.List",this.list); console.log("this.List", this.list);
} else { } else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
...@@ -378,7 +375,7 @@ ...@@ -378,7 +375,7 @@
}, },
//合同上传 //合同上传
uploadFileBtn(file) { uploadFileBtn(file) {
console.log("clickItem",this.ClickItem); console.log("clickItem", this.ClickItem);
if (file.file.size > 1024 * 1024 * 100) { if (file.file.size > 1024 * 1024 * 100) {
this.$message.warning("文件大小不能超过100M!"); this.$message.warning("文件大小不能超过100M!");
return; return;
...@@ -390,8 +387,13 @@ ...@@ -390,8 +387,13 @@
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
var fileUrl = this.domainManager().ViittoFileUrl + x.data.FilePath; var fileUrl = this.domainManager().ViittoFileUrl + x.data.FilePath;
this.ClickItem.ContractUrlArray.push(fileUrl); this.ClickItem.ContractUrlArray.push(fileUrl);
var str = "";
this.ClickItem.ContractUrlArray.forEach(subItem => {
str += subItem + ",";
})
this.ClickItem.ContractUrl = str != "" ? str.substring(0, str.length - 1) : str;
}); });
this.ClickItem.ContractUrl=JSON.stringify(this.ClickItem.ContractUrlArray);
}, },
}, },
mounted() { mounted() {
...@@ -401,12 +403,14 @@ ...@@ -401,12 +403,14 @@
this.getList(); this.getList();
}, },
} }
</script> </script>
<style> <style>
.roomReservationsDetailsTalbe .el-button--small{ .roomReservationsDetailsTalbe .el-button--small {
padding:5px; padding: 5px;
margin-top:10px; margin-top: 10px;
} }
.roomReservationsDetailsTalbe .roomBtn { .roomReservationsDetailsTalbe .roomBtn {
color: #fff; color: #fff;
padding: 0 10px !important; padding: 0 10px !important;
......
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