Commit ba6de5c7 authored by 黄奎's avatar 黄奎

页面修改

parents ee2ac177 3dd36320
...@@ -1070,7 +1070,10 @@ ...@@ -1070,7 +1070,10 @@
</div> </div>
</div> </div>
<div class="_fujian_box" <div class="_fujian_box"
v-if="GetDetail.VorcherInos&&GetDetail.VorcherInos.length===0&&GetDetail.IsUploadPic===1&&saveMsg.length===0"> v-if="GetDetail.VorcherInos
&&GetDetail.VorcherInos.length===0
&&GetDetail.IsUploadPic===1
&&saveMsg.length===0">
<div style="margin-top: 80px;"> <div style="margin-top: 80px;">
<div class="_pic_upload" v-if="GetDetail.IsUploadPic===1"> <div class="_pic_upload" v-if="GetDetail.IsUploadPic===1">
<!--<div class="_pic_upload" v-if="saveMsg.length!==5 && ((saveMsg.length + GetDetail.VorcherInos.length) < 5)">--> <!--<div class="_pic_upload" v-if="saveMsg.length!==5 && ((saveMsg.length + GetDetail.VorcherInos.length) < 5)">-->
...@@ -2135,11 +2138,6 @@ ...@@ -2135,11 +2138,6 @@
} }
}) })
} else if (type == 2) { } else if (type == 2) {
// let routeData = this.$router.resolve({
// name: path,
// query: { OrderSource: id.OrderSource,SourceID: id.SourceID}
// });
// window.open(routeData.href, "_blank");
this.$router.push({ this.$router.push({
name: path, name: path,
query: { query: {
...@@ -2149,11 +2147,6 @@ ...@@ -2149,11 +2147,6 @@
} }
}) })
} else if (type == 3) { } else if (type == 3) {
// let routeData = this.$router.resolve({
// name: path,
// query: { OrderSource: id.OrderSource,SourceID: id.SourceID}
// });
// window.open(routeData.href, "_blank");
this.$router.push({ this.$router.push({
name: path, name: path,
query: { query: {
...@@ -2163,11 +2156,6 @@ ...@@ -2163,11 +2156,6 @@
} }
}) })
} else if (type == 4) { } else if (type == 4) {
// let routeData = this.$router.resolve({
// name: path,
// query: { OrderSource: id.OrderSource,SourceID: id.SourceID}
// });
// window.open(routeData.href, "_blank");
this.$router.push({ this.$router.push({
name: path, name: path,
query: { query: {
...@@ -2177,11 +2165,6 @@ ...@@ -2177,11 +2165,6 @@
} }
}) })
} else if (type == 5) { } else if (type == 5) {
// let routeData = this.$router.resolve({
// name: path,
// query: { id:id,OutBranchId:id.RB_Branch_Id}
// });
// window.open(routeData.href, "_blank");
this.$router.push({ this.$router.push({
name: path, name: path,
query: { query: {
...@@ -2191,11 +2174,6 @@ ...@@ -2191,11 +2174,6 @@
} }
}) })
} else if (type == 6) { } else if (type == 6) {
// let routeData = this.$router.resolve({
// name: path,
// query: { id:id,OutBranchId:id.RB_Branch_Id,'CloseIncomeBtn':true}
// });
// window.open(routeData.href, "_blank");
this.$router.push({ this.$router.push({
name: path, name: path,
query: { query: {
...@@ -2206,11 +2184,6 @@ ...@@ -2206,11 +2184,6 @@
} }
}) })
} else if (type == 7) { } else if (type == 7) {
// let routeData = this.$router.resolve({
// name: path,
// query: { id:id,isShow:false}
// });
// window.open(routeData.href, "_blank");
this.$router.push({ this.$router.push({
name: path, name: path,
query: { query: {
...@@ -2220,11 +2193,6 @@ ...@@ -2220,11 +2193,6 @@
} }
}) })
} else if (type == 8) { } else if (type == 8) {
// let routeData = this.$router.resolve({
// name: path,
// query: {VisaID:id.SourceID,isFinacial:0}
// });
// window.open(routeData.href, "_blank");
if (OrderID) { if (OrderID) {
this.$router.push({ this.$router.push({
name: path, name: path,
......
...@@ -406,7 +406,7 @@ ...@@ -406,7 +406,7 @@
<li> <li>
<button class="hollowFixedBtn" @click="getList()">{{$t('pub.searchBtn')}}</button> <button class="hollowFixedBtn" @click="getList()">{{$t('pub.searchBtn')}}</button>
<button class="normalBtn" <button class="normalBtn"
@click="addShow=true;isOldPerson=false,addLayer1=false">{{$t('salesModule.addCustomer')}}</button> @click="clickAdd">{{$t('salesModule.addCustomer')}}</button>
<button class="normalBtn" @click="outerVisible=true">导入</button> <button class="normalBtn" @click="outerVisible=true">导入</button>
<button class="normalBtn" @click="getDownList">模板下载</button> <button class="normalBtn" @click="getDownList">模板下载</button>
</li> </li>
...@@ -775,7 +775,7 @@ ...@@ -775,7 +775,7 @@
<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="">
<el-button size="small" type="primary">签约材</el-button> <el-button size="small" type="primary">上传资</el-button>
</el-upload> </el-upload>
<template v-if="updateMsg.SigningType && saveMsg&& saveMsg.length>0"> <template v-if="updateMsg.SigningType && saveMsg&& saveMsg.length>0">
<template v-for="(subItem,subIndex) in saveMsg"> <template v-for="(subItem,subIndex) in saveMsg">
...@@ -1039,6 +1039,11 @@ ...@@ -1039,6 +1039,11 @@
} }
}, },
methods: { methods: {
clickAdd(){
this.addShow=true;
this.isOldPerson=false,
this.addLayer1=false
},
uploadFileBtn(file) { //上传 uploadFileBtn(file) { //上传
if (file.file.size > 1024 * 1024 * 100) { if (file.file.size > 1024 * 1024 * 100) {
this.$message.warning('文件大小不能超过100M!') this.$message.warning('文件大小不能超过100M!')
......
<style> <style>
.iconfont {
font-size: 14px;
display: inline-block;
}
._wenjian_P {
font-size: 30px;
text-align: center;
color: #41D2A1;
}
.customerApproval .approvalNav { .customerApproval .approvalNav {
height: 52px; height: 52px;
width: 100%; width: 100%;
...@@ -220,11 +229,13 @@ ...@@ -220,11 +229,13 @@
<img v-for="item in picObj" :src="item" :key="item" /> <img v-for="item in picObj" :src="item" :key="item" />
</viewer> </viewer>
<div :class="{ customerApprovalLayer: showlayer }" @click="closeLayer"> <div :class="{ customerApprovalLayer: showlayer }" @click="closeLayer"
>
<div :class="{ <div :class="{
customerApprovalLayercontentDiv: true, customerApprovalLayercontentDiv: true,
rightZero: isTransition, rightZero: isTransition,
}" class="ownScrollbarStyle" @click.stop> }" class="ownScrollbarStyle" @click.stop
v-loading="loadingInfor">
<div class="title">{{ meta }}{{ $t("fnc.xiangqing") }}</div> <div class="title">{{ meta }}{{ $t("fnc.xiangqing") }}</div>
<div class="item"> <div class="item">
<div class="topMsg"> <div class="topMsg">
...@@ -324,7 +335,8 @@ ...@@ -324,7 +335,8 @@
</p> </p>
<p class="pImg" v-else> <p class="pImg" v-else>
<img @click="getPic(detailList.images, index)" v-if="detailList.images.length == 1" <img @click="getPic(detailList.images, index)" v-if="detailList.images.length == 1"
v-for="(i, index) in detailList.images" :src="i + '?x-oss-process=image/resize,m_mfit,h_100,w_300'" /> v-for="(i, index) in detailList.images"
:src="i + '?x-oss-process=image/resize,m_mfit,h_100,w_300'" />
<img @click="getPic(detailList.images, index)" v-if=" <img @click="getPic(detailList.images, index)" v-if="
detailList.images.length == 2 || detailList.images.length == 4 detailList.images.length == 2 || detailList.images.length == 4
" v-for="(i, index) in detailList.images" :src=" " v-for="(i, index) in detailList.images" :src="
...@@ -343,8 +355,28 @@ ...@@ -343,8 +355,28 @@
<i class="iconfont icon-ico_yingyezhizhao fz14 colorccc"></i>&nbsp; <i class="iconfont icon-ico_yingyezhizhao fz14 colorccc"></i>&nbsp;
签约资料 签约资料
</p> </p>
<a v-if="detailList.signingFile" style="margin-left:20px;color:blue;cursor:pointer;font-size: 14px;" <!-- <a v-if="detailList.signingFile" style="margin-left:20px;color:blue;cursor:pointer;font-size: 14px;"
target="_blank" @click="downloadFile(detailList.signingFile)">签约客户附件</a> target="_blank" @click="downloadFile(detailList.signingFile)">签约客户附件</a> -->
<div v-if="detailList&&detailList.signingFile" style="display: flex;">
<span style="color:blue;font-size: 12px; padding: 5px 0;">签约附件:</span>
<div>
<template v-if="verificationFile(detailList.signingFile)==3">
<el-image :src="domainManager().ViittoFileUrl+detailList.signingFile"
:preview-src-list="[domainManager().ViittoFileUrl+detailList.signingFile]"
style="height: 100px;">
<div slot="error" class="image-slot">
<i class="el-icon-picture-outline"></i>
</div>
</el-image>
</template>
<div v-if="verificationFile(detailList.signingFile)==1"
style="width: 88px; line-height: 59px;text-align: center;cursor: pointer;"
@click="showUpLoadFile(domainManager().ViittoFileUrl+detailList.signingFile)">
<span class="_wenjian_P iconfont"
:class="detailList.signingFile.substring(detailList.signingFile.lastIndexOf('.')+1,detailList.signingFile.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"></span>
</div>
</div>
</div>
<p class="fz14 color666 mt10"> <p class="fz14 color666 mt10">
<i class="iconfont icon-fangwenjilu fz14 colorccc"></i>&nbsp; <i class="iconfont icon-fangwenjilu fz14 colorccc"></i>&nbsp;
{{ $t("salesModule.kaifaDetail") }} {{ $t("salesModule.kaifaDetail") }}
...@@ -502,7 +534,7 @@ ...@@ -502,7 +534,7 @@
<img src="../../assets/img/ysp.png" v-show="item.customerStatus == 2 || item.customerStatus == 3" /> <img src="../../assets/img/ysp.png" v-show="item.customerStatus == 2 || item.customerStatus == 3" />
</td> </td>
<td> <td>
<input type="button" :value="$t('salesModule.CheckDetails')" class="normalBtn" style="margin-left: 0" <input type="button" :value="$t('salesModule.CheckDetails')" class="normalBtn" style="margin-left: 0;margin-right: 10px;"
@click="getDetail(item)" /> @click="getDetail(item)" />
</td> </td>
</tr> </tr>
...@@ -517,6 +549,7 @@ ...@@ -517,6 +549,7 @@
export default { export default {
data() { data() {
return { return {
loadingInfor: false,
subItem: {}, subItem: {},
imageOptions: { imageOptions: {
navbar: false, navbar: false,
...@@ -556,6 +589,9 @@ ...@@ -556,6 +589,9 @@
}; };
}, },
methods: { methods: {
showUpLoadFile(i) { // 预览上传文件
this.previewPDF(i)
},
//下载文件 //下载文件
downloadFile(fileUrl) { downloadFile(fileUrl) {
var newUrl = this.domainManager().ViittoFileUrl + fileUrl var newUrl = this.domainManager().ViittoFileUrl + fileUrl
...@@ -597,23 +633,25 @@ ...@@ -597,23 +633,25 @@
this.$viewer.show(); this.$viewer.show();
}, },
getDetail(obj) { getDetail(obj) {
this.openLayer();
this.meta = obj.customerName; this.meta = obj.customerName;
this.addMsg.VisitId = obj.visitID; this.addMsg.VisitId = obj.visitID;
this.addMsg.CustomerId = obj.customerId; this.addMsg.CustomerId = obj.customerId;
this.addMsg.SigningEndTime = obj.signingEndTime; this.addMsg.SigningEndTime = obj.signingEndTime;
this.addMsg.SigningPrice = obj.signingPrice; this.addMsg.SigningPrice = obj.signingPrice;
this.customerStatus = obj.customerStatus; this.customerStatus = obj.customerStatus;
this.loadingInfor = true
this.apipost( this.apipost(
"app_today_visit_GetVisitByCustomerIDEntity", { "app_today_visit_GetVisitByCustomerIDEntity", {
customerId: obj.customerId customerId: obj.customerId
}, },
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.openLayer();
this.detailList = res.data.data.customerInfo; this.detailList = res.data.data.customerInfo;
} else {} } else {}
this.loadingInfor = false
}, },
(err) => {} (err) => {this.loadingInfor = false}
); );
this.apipost( this.apipost(
...@@ -692,4 +730,4 @@ ...@@ -692,4 +730,4 @@
this.getList(); this.getList();
}, },
}; };
</script> </script>
\ No newline at end of file
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