Commit 2e7ef853 authored by 黄奎's avatar 黄奎

上传修改

parent fdd05e2f
......@@ -106,8 +106,11 @@
</div>
<el-upload
:http-request="uploadFileBtn"
:multiple="true" :show-file-list="false" action="" style="display:none">
<el-button size="small" type="danger" icon="el-icon-upload2">合同上传</el-button>
:multiple="true" :show-file-list="false" action="" >
<el-button size="small" type="danger" icon="el-icon-upload2">
<i class="el-icon-plus avatar-uploader-icon" @click="ClickItem=item"></i>
<div class="el-upload__text" @click="ClickItem=item">点击上传</div>
</el-button>
</el-upload>
</td>
<td>
......@@ -218,6 +221,8 @@
CreateByAccount: '',
//创建人姓名
CreateByName: '',
//点击项
ClickItem:{},
}
},
methods: {
......@@ -270,11 +275,16 @@
this.CreateByPhoto = res.data.data.CreateByPhoto;
this.CreateByAccount = res.data.data.CreateByAccount;
this.list.forEach(item => {
this.calculationPrice(item)
this.calculationPrice(item);
item.hotelList.push({
Name: item.NewHotelName,
ID: item.NewHotelId
})
item.ContractUrlArray=[];
if(item.ContractUrl && item.ContractUrl!='')
{
item.ContractUrlArray=item.ContractUrl.split(',');
}
item.PayStyle = item.PayStyle.toString()
item.OrderDetailsList.forEach((x, index1) => {
if (x.HouseTypeCount <= 0) {
......@@ -290,7 +300,7 @@
item.ReserveNo = this.$route.query.NewCombinationNum;
}
})
console.log(this.list,'lists');
console.log("this.List",this.list);
} else {
this.$message.error(res.data.message);
}
......@@ -368,7 +378,7 @@
},
//合同上传
uploadFileBtn(file) {
//上传
console.log("clickItem",this.ClickItem);
if (file.file.size > 1024 * 1024 * 100) {
this.$message.warning("文件大小不能超过100M!");
return;
......@@ -378,16 +388,10 @@
let path = "/Upload/DMC/";
this.$message.info("上传中...");
this.UploadSelfFileT(path, newArr, x => {
let fileSize =
file.file.size < 1024
? file.file.size
: (file.file.size / 1024).toFixed(0);
console.log(x);
// this.uploadList.push({
// Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
// Name: file.file.name
// });
var fileUrl = this.domainManager().ViittoFileUrl + x.data.FilePath;
this.ClickItem.ContractUrlArray.push(fileUrl);
});
this.ClickItem.ContractUrl=JSON.stringify(this.ClickItem.ContractUrlArray);
},
},
mounted() {
......
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