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

页面修改

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