Commit 0f56c428 authored by 黄奎's avatar 黄奎

页面修改

parent ca3782fa
...@@ -635,15 +635,15 @@ ...@@ -635,15 +635,15 @@
</el-col> </el-col>
<el-col :span="6" v-show="addMsg.SigningType"> <el-col :span="6" v-show="addMsg.SigningType">
<el-form-item label="签约资料" prop="SigningFile"> <el-form-item label="签约资料" prop="SigningFile">
<el-upload v-if="!saveMsg || !saveMsg.length" class="upload-demo" :disabled="!addMsg.SigningType" <el-upload v-if="!saveMsg || !saveMsg.length" class="upload-demo" :disabled="!addMsg.SigningType"
style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadFileBtn" style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadFileBtn"
:show-file-list="false" action=""> :show-file-list="false" action="">
<el-button size="small" type="primary">签约材料</el-button> <el-button size="small" type="primary">签约材料</el-button>
</el-upload> </el-upload>
<template v-if="addMsg.SigningType && saveMsg&& saveMsg.length>0"> <template v-if="addMsg.SigningType && saveMsg&& saveMsg.length>0">
<template v-for="(subItem,subIndex) in saveMsg"> <template v-for="(subItem,subIndex) in saveMsg">
<a style="margin-left:20px;color:blue;cursor:pointer;" target="_blank" :key="subIndex" <a style="margin-left:20px;color:blue;cursor:pointer;" target="_blank" :key="subIndex"
@click="downloadFile(subItem.URL,subItem.FileName)">{{subItem.FileName}}</a> @click="downloadFile(subItem.URL,subItem.FileName)">{{subItem.FileName}}</a>
<a :key="subIndex+1000" style="margin-left:20px;color:blue;cursor:pointer;" <a :key="subIndex+1000" style="margin-left:20px;color:blue;cursor:pointer;"
@click="DeleteFile(subIndex)">删除</a> @click="DeleteFile(subIndex)">删除</a>
...@@ -764,14 +764,14 @@ ...@@ -764,14 +764,14 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="签约" prop="SigningType"> <el-form-item label="签约" prop="SigningType">
<el-checkbox v-model='updateMsg.SigningType'>签约月结客户 <el-checkbox v-model='updateMsg.SigningType'>签约月结客户
</el-checkbox> </el-checkbox>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" v-show="updateMsg.SigningType"> <el-col :span="6" v-show="updateMsg.SigningType">
<el-form-item label="签约资料" prop="SigningFile"> <el-form-item label="签约资料" prop="SigningFile">
<el-upload v-if="!saveMsg || !saveMsg.length" class="upload-demo" :disabled="!updateMsg.SigningType" <el-upload v-if="!saveMsg || !saveMsg.length" class="upload-demo" :disabled="!updateMsg.SigningType"
style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadFileBtn" style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadFileBtn"
:show-file-list="false" action=""> :show-file-list="false" action="">
...@@ -782,12 +782,13 @@ ...@@ -782,12 +782,13 @@
<a style="margin-left:20px;color:blue;cursor:pointer;" target="_blank" :key="subIndex" <a style="margin-left:20px;color:blue;cursor:pointer;" target="_blank" :key="subIndex"
@click="downloadFile(subItem.URL,subItem.FileName)">{{subItem.FileName}}</a> @click="downloadFile(subItem.URL,subItem.FileName)">{{subItem.FileName}}</a>
<a :key="subIndex+1000" style="margin-left:20px;color:blue;cursor:pointer;" <a :key="subIndex+1000" style="margin-left:20px;color:blue;cursor:pointer;"
@click="DeleteFile(subIndex)">删除</a> @click="DeleteFile(subIndex)">删除</a>
</template>
</template> </template>
</el-form-item> </template>
</el-col></el-row> </el-form-item>
</el-col>
</el-row>
<el-row :gutter="20" style='margin-top:13px;'> <el-row :gutter="20" style='margin-top:13px;'>
<el-col :span="24"> <el-col :span="24">
<p class="fz12 color333 fbold" style="border: none; margin-bottom: 15px; padding-left: 20px;">需审核信息<span <p class="fz12 color333 fbold" style="border: none; margin-bottom: 15px; padding-left: 20px;">需审核信息<span
...@@ -1060,7 +1061,6 @@ ...@@ -1060,7 +1061,6 @@
FileSize: fileSize, FileSize: fileSize,
FolderId: this.msg.ParentId FolderId: this.msg.ParentId
}) })
console.log('file', file, x,this.saveMsg)
}); });
}, },
//删除文件 //删除文件
...@@ -1071,7 +1071,7 @@ ...@@ -1071,7 +1071,7 @@
downloadFile(fileUrl, fileName) { downloadFile(fileUrl, fileName) {
const link = document.createElement('a'); const link = document.createElement('a');
link.href = fileUrl; link.href = fileUrl;
link.target="_blank"; link.target = "_blank";
link.download = fileName; link.download = fileName;
document.body.appendChild(link); document.body.appendChild(link);
link.click(); link.click();
...@@ -1242,13 +1242,13 @@ ...@@ -1242,13 +1242,13 @@
this.updateMsg.email = x.email this.updateMsg.email = x.email
this.updateMsg.email = x.email this.updateMsg.email = x.email
this.updateMsg.email = x.email this.updateMsg.email = x.email
var newUrl = this.domainManager().ViittoFileUrl + x.signingFile
var newUrl = this.domainManager().ViittoFileUrl + x.signingFile this.saveMsg = x.signingFile ? [{
this.saveMsg = x.signingFile ? [{Path: x.signingFile, Path: x.signingFile,
URL: newUrl, URL: newUrl,
FileName: '签约附件'}] : [] FileName: '签约附件'
this.updateMsg.SigningType = x.signingType ? true : false }] : []
console.log('updateMsg', x) this.updateMsg.SigningType = x.signingType ? true : false
} else {} } else {}
}, err => {}) }, err => {})
}, },
...@@ -1565,7 +1565,10 @@ ...@@ -1565,7 +1565,10 @@
if (this.addMsg.District == '') { if (this.addMsg.District == '') {
this.addMsg.District = 0 this.addMsg.District = 0
} }
this.addMsgS.customerInfo = {...this.addMsg, SigningType:this.addMsg.SigningType ? 1 : 0} this.addMsgS.customerInfo = {
...this.addMsg,
SigningType: this.addMsg.SigningType ? 1 : 0
}
if (this.BusinessCardPhotos) { if (this.BusinessCardPhotos) {
this.addMsg.BusinessCardPhotos = [] this.addMsg.BusinessCardPhotos = []
this.addMsg.BusinessCardPhotos.push(this.BusinessCardPhotos) this.addMsg.BusinessCardPhotos.push(this.BusinessCardPhotos)
......
...@@ -288,7 +288,6 @@ ...@@ -288,7 +288,6 @@
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var array = res.data.data; var array = res.data.data;
console.log("array", array);
if (array != null && array.length > 0) { if (array != null && array.length > 0) {
array.forEach(item => { array.forEach(item => {
this.airLineSelectChange(item, item.AirLineId, 1); this.airLineSelectChange(item, item.AirLineId, 1);
......
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