Commit 0d1d85af authored by zhengke's avatar zhengke

修改

parent 69cf40a2
...@@ -81,6 +81,9 @@ ...@@ -81,6 +81,9 @@
line-height: 38px; line-height: 38px;
text-align: center; text-align: center;
} }
.page_MyCustomer .upload-demo{
text-align: center;
}
</style> </style>
<template> <template>
<div class="page_MyCustomer"> <div class="page_MyCustomer">
...@@ -93,6 +96,8 @@ ...@@ -93,6 +96,8 @@
<li> <li>
<button class="hollowFixedBtn" @click="getList()">{{$t('pub.searchBtn')}}</button> <button class="hollowFixedBtn" @click="getList()">{{$t('pub.searchBtn')}}</button>
<button class="normalBtn" @click="addShow=true;isOldPerson=false">{{$t('salesModule.addCustomer')}}</button> <button class="normalBtn" @click="addShow=true;isOldPerson=false">{{$t('salesModule.addCustomer')}}</button>
<button class="normalBtn" @click="outerVisible=true">导入</button>
<button class="normalBtn" @click="getDownList">模板下载</button>
</li> </li>
</div> </div>
<div class="_mc_addbox"> <div class="_mc_addbox">
...@@ -333,6 +338,19 @@ ...@@ -333,6 +338,19 @@
</el-row> </el-row>
</el-form> </el-form>
</div> </div>
<el-dialog custom-class="w700" title="模板导入" :visible.sync="outerVisible" center>
<el-upload ref="ticketUpload" drag class="upload-demo" :action="getImportFileUrl()"
:on-success="handleAvatarSuccess">
<i class="el-icon-upload"></i>
<div class="el-upload__text">
将文件拖到此处,或
<em>点击上传</em>
</div>
<div slot="tip" class="el-upload__tip">只能上传Excel文件</div>
</el-upload>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -417,9 +435,45 @@ export default { ...@@ -417,9 +435,45 @@ export default {
regionList:[], regionList:[],
jycs:[], //经营场所 jycs:[], //经营场所
zw:[], //职务 zw:[], //职务
khly:[], //客户来源 khly:[], //客户来源
outerVisible:false,
} }
},methods:{ },methods:{
//导入
getImportFileUrl() {
let url =
this.domainManager().UploadFileUrl +
"?cmd=dmc_post_LocalFileUpload&fileType=1&fileLimit=1&Type=2&uid=" +
this.getLocalStorage().EmployeeId +
"&importType=" +
this.importType;
return url;
},
//上传文件后清空文件队列
handleAvatarSuccess(res, file) {
this.$refs.ticketUpload.clearFiles();
if (res.resultCode == 1) {
this.Success(res.message);
this.outerVisible = false;
}
},
//下载模板文件
getDownList() {
this.apipost(
"AirTicket_post_DownAirticket", {},
res => {
if (res.data.resultCode == 1) {
this.downList =
this.domainManager().LocalTemplateFileDownLoadUrl +
res.data.data.FileUrl;
} else {
this.Error(res.data.message);
}
},
err => {}
);
},
deleteCustomer(obj){ deleteCustomer(obj){
this.$confirm(this.$t('tips.shifoushanchu'), this.$t('tips.tips'), { this.$confirm(this.$t('tips.shifoushanchu'), this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'), confirmButtonText: this.$t('pub.sureBtn'),
......
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