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

页面修改

parent ca3782fa
...@@ -787,7 +787,8 @@ ...@@ -787,7 +787,8 @@
</template> </template>
</template> </template>
</el-form-item> </el-form-item>
</el-col></el-row> </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 ? [{Path: x.signingFile, this.saveMsg = x.signingFile ? [{
Path: x.signingFile,
URL: newUrl, URL: newUrl,
FileName: '签约附件'}] : [] FileName: '签约附件'
}] : []
this.updateMsg.SigningType = x.signingType ? true : false this.updateMsg.SigningType = x.signingType ? true : false
console.log('updateMsg', x)
} 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)
......
<style> <style>
.customerApproval .approvalNav { .customerApproval .approvalNav {
height: 52px; height: 52px;
width: 100%; width: 100%;
margin: 30px 0 20px; margin: 30px 0 20px;
} }
.customerApproval .approvalNav > li {
.customerApproval .approvalNav>li {
float: left; float: left;
width: 116px; width: 116px;
font-size: 14px; font-size: 14px;
...@@ -14,41 +15,48 @@ ...@@ -14,41 +15,48 @@
line-height: 52px; line-height: 52px;
background: #e9e9e9; background: #e9e9e9;
cursor: pointer; cursor: pointer;
} }
.customerApproval .approvalNav > li.active {
.customerApproval .approvalNav>li.active {
background: #fff; background: #fff;
color: #333; color: #333;
} }
.customerApproval .approvalNav .divActive {
.customerApproval .approvalNav .divActive {
margin: -3px auto; margin: -3px auto;
width: 26px; width: 26px;
height: 3px; height: 3px;
background: #e95252; background: #e95252;
} }
.customerApprovalDetailTable {
.customerApprovalDetailTable {
width: 100%; width: 100%;
font-size: 14px; font-size: 14px;
color: #333; color: #333;
} }
.customerApprovalDetailTable tr th {
.customerApprovalDetailTable tr th {
background: #e6e6e6; background: #e6e6e6;
height: 30px; height: 30px;
font-size: 12px; font-size: 12px;
text-align: left; text-align: left;
text-indent: 25px; text-indent: 25px;
} }
.customerApprovalDetailTable tr {
.customerApprovalDetailTable tr {
background: #fff; background: #fff;
text-align: left; text-align: left;
} }
.customerApprovalDetailTable tr td {
.customerApprovalDetailTable tr td {
height: 60px; height: 60px;
padding-left: 25px; padding-left: 25px;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
font-size: 14px; font-size: 14px;
color: #333; color: #333;
} }
.customerApprovalLayer {
.customerApprovalLayer {
position: fixed; position: fixed;
z-index: 99; z-index: 99;
background: rgba(0, 0, 0, 0.1); background: rgba(0, 0, 0, 0.1);
...@@ -56,11 +64,13 @@ ...@@ -56,11 +64,13 @@
height: 100%; height: 100%;
left: 0; left: 0;
top: 0; top: 0;
} }
.customerApprovalLayer .rightZero {
.customerApprovalLayer .rightZero {
right: 0px; right: 0px;
} }
.customerApprovalLayercontentDiv {
.customerApprovalLayercontentDiv {
width: 420px; width: 420px;
background: #fff; background: #fff;
height: 100%; height: 100%;
...@@ -70,8 +80,9 @@ ...@@ -70,8 +80,9 @@
position: fixed; position: fixed;
box-shadow: 4px 0px 10px rgba(0, 0, 0, 0.1); box-shadow: 4px 0px 10px rgba(0, 0, 0, 0.1);
transition: right 0.5s; transition: right 0.5s;
} }
.customerApprovalLayercontentDiv .title {
.customerApprovalLayercontentDiv .title {
width: 420px; width: 420px;
height: 48px; height: 48px;
line-height: 48px; line-height: 48px;
...@@ -79,46 +90,55 @@ ...@@ -79,46 +90,55 @@
font-size: 16px; font-size: 16px;
color: #333; color: #333;
background: #edeef0; background: #edeef0;
} }
.customerApprovalLayercontentDiv .item {
.customerApprovalLayercontentDiv .item {
width: 380px; width: 380px;
height: auto; height: auto;
overflow: hidden; overflow: hidden;
border: 1px solid #e6e6e6; border: 1px solid #e6e6e6;
margin: 20px 0 20px 20px; margin: 20px 0 20px 20px;
padding: 20px; padding: 20px;
} }
.customerApprovalLayercontentDiv .item .topMsg {
.customerApprovalLayercontentDiv .item .topMsg {
overflow: hidden; overflow: hidden;
padding-bottom: 20px; padding-bottom: 20px;
border-bottom: 1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6;
} }
.customerApprovalLayercontentDiv .item .topMsg > img {
.customerApprovalLayercontentDiv .item .topMsg>img {
float: left; float: left;
margin-right: 13px; margin-right: 13px;
} }
.customerApprovalLayercontentDiv .item .bottomMsg {
.customerApprovalLayercontentDiv .item .bottomMsg {
padding: 15px 0; padding: 15px 0;
} }
.customerApprovalLayercontentDiv .item .bottomMsg .pImg {
.customerApprovalLayercontentDiv .item .bottomMsg .pImg {
margin-top: 10px; margin-top: 10px;
} }
.customerApprovalLayercontentDiv .item .bottomMsg .pImg img {
.customerApprovalLayercontentDiv .item .bottomMsg .pImg img {
cursor: pointer; cursor: pointer;
height: 100px; height: 100px;
} }
.customerApprovalLayercontentDiv .answerItem {
.customerApprovalLayercontentDiv .answerItem {
overflow: hidden; overflow: hidden;
padding: 15px 0; padding: 15px 0;
} }
.customerApprovalLayercontentDiv .answerItem > img {
.customerApprovalLayercontentDiv .answerItem>img {
float: left; float: left;
width: 28px; width: 28px;
height: 28px; height: 28px;
border-radius: 14px; border-radius: 14px;
margin-right: 10px; margin-right: 10px;
} }
.customerApprovalLayercontentBtn {
.customerApprovalLayercontentBtn {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
background: #f5f5f5; background: #f5f5f5;
...@@ -127,15 +147,17 @@ ...@@ -127,15 +147,17 @@
line-height: 70px; line-height: 70px;
text-align: right; text-align: right;
padding: 0 20px; padding: 0 20px;
} }
.customerApprovalLayercontentBtn > div {
.customerApprovalLayercontentBtn>div {
border-bottom: 1px solid #d9d9d9; border-bottom: 1px solid #d9d9d9;
height: 40px; height: 40px;
line-height: 40px; line-height: 40px;
text-align: left; text-align: left;
overflow: hidden; overflow: hidden;
} }
.customerApprovalLayercontentBtn > span {
.customerApprovalLayercontentBtn>span {
display: inline-block; display: inline-block;
line-height: 18px; line-height: 18px;
color: #333; color: #333;
...@@ -148,94 +170,69 @@ ...@@ -148,94 +170,69 @@
width: 110px; width: 110px;
margin-top: 20px; margin-top: 20px;
box-sizing: border-box; box-sizing: border-box;
} }
.customerApprovalLayercontentBtn > span.cked {
.customerApprovalLayercontentBtn>span.cked {
border: 2px solid #e95252; border: 2px solid #e95252;
box-sizing: border-box; box-sizing: border-box;
} }
.customerApprovalLayercontentBtn > span > img {
.customerApprovalLayercontentBtn>span>img {
float: left; float: left;
margin: 10px 23px; margin: 10px 23px;
width: 63px; width: 63px;
height: 63px; height: 63px;
} }
.customerApproval .lastVisitContent {
.customerApproval .lastVisitContent {
background: #f5f5f5; background: #f5f5f5;
font-size: 12px; font-size: 12px;
padding: 5px 12px; padding: 5px 12px;
margin-top: 8px; margin-top: 8px;
} }
.customerApproval ._class_b {
.customerApproval ._class_b {
color: #257bf1 !important; color: #257bf1 !important;
} }
.price-item {
.price-item {
padding: 10px 20px; padding: 10px 20px;
font-size: 14px; font-size: 14px;
} }
.price-item-title {
.price-item-title {
color: #666; color: #666;
} }
</style> </style>
<template> <template>
<div class="customerApproval"> <div class="customerApproval">
<div <div :class="{ viewBigPicLayer: true, viewBigPicLayerDisplayNone: dspNone }" @click="closePicLayer">
:class="{ viewBigPicLayer: true, viewBigPicLayerDisplayNone: dspNone }" <i @click="closePicLayer" class="el-icon-circle-close-outline clolseViewBigPicLayer"></i>
@click="closePicLayer" <el-carousel height="600px" :initial-index="initialIndex" :interval="5000" trigger="click">
>
<i
@click="closePicLayer"
class="el-icon-circle-close-outline clolseViewBigPicLayer"
></i>
<el-carousel
height="600px"
:initial-index="initialIndex"
:interval="5000"
trigger="click"
>
<el-carousel-item v-for="(item, index) in picObj" :key="index"> <el-carousel-item v-for="(item, index) in picObj" :key="index">
<div class="inlineDiv ownScrollbarStyle"><img :src="item" /></div> <div class="inlineDiv ownScrollbarStyle"><img :src="item" /></div>
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel>
</div> </div>
<viewer <viewer :images="picObj" :options="imageOptions" @inited="inited" class="viewer" ref="viewer">
:images="picObj"
:options="imageOptions"
@inited="inited"
class="viewer"
ref="viewer"
>
<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 <div :class="{
:class="{
customerApprovalLayercontentDiv: true, customerApprovalLayercontentDiv: true,
rightZero: isTransition, rightZero: isTransition,
}" }" class="ownScrollbarStyle" @click.stop>
class="ownScrollbarStyle"
@click.stop
>
<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">
<img <img v-if="!detailList.photo" src="../../assets/img/litheader.png" />
v-if="!detailList.photo" <img v-if="detailList.photo" :onerror="defaultImg" :src="detailList.photo" />
src="../../assets/img/litheader.png"
/>
<img
v-if="detailList.photo"
:onerror="defaultImg"
:src="detailList.photo"
/>
<p>{{ detailList.customerName }}</p> <p>{{ detailList.customerName }}</p>
<p class="mt5"> <p class="mt5">
<i <i class="iconfont icon-img_dianhua fz12" style="color: #09d49d"></i>
class="iconfont icon-img_dianhua fz12"
style="color: #09d49d"
></i>
<span class="fz14 color333">{{ detailList.contact }}</span> <span class="fz14 color333">{{ detailList.contact }}</span>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<span class="fz14 color333">{{ detailList.contactNumber }}</span> <span class="fz14 color333">{{ detailList.contactNumber }}</span>
...@@ -250,10 +247,7 @@ ...@@ -250,10 +247,7 @@
}}&nbsp; }}&nbsp;
<span class="color666 fz12">{{ lastVisitObj.timestr }}</span> <span class="color666 fz12">{{ lastVisitObj.timestr }}</span>
</p> </p>
<div <div v-if="lastVisitObj.visitId > 0" style="border-bottom: 1px solid #ccc; padding-bottom: 10px">
v-if="lastVisitObj.visitId > 0"
style="border-bottom: 1px solid #ccc; padding-bottom: 10px"
>
<p class="fz12 mt10"> <p class="fz12 mt10">
{{ $t("salesModule.ProcessType") }}{{ {{ $t("salesModule.ProcessType") }}{{
lastVisitObj.salesProcess lastVisitObj.salesProcess
...@@ -270,131 +264,87 @@ ...@@ -270,131 +264,87 @@
</div> </div>
<div class="bottomMsg"> <div class="bottomMsg">
<p class="fz14 color666 mt10"> <p class="fz14 color666 mt10">
<i class="iconfont icon-ico-mingpianzhaopian fz14 colorccc"></i <i class="iconfont icon-ico-mingpianzhaopian fz14 colorccc"></i>&nbsp;
>&nbsp;
{{ $t("salesModule.BusinessPhoto") }} {{ $t("salesModule.BusinessPhoto") }}
</p> </p>
<p class="pImg" v-if="!detailList.businessCardPhotos"> <p class="pImg" v-if="!detailList.businessCardPhotos">
<span class="fz12 color333">{{ $t("active.cl_zanwu") }}</span> <span class="fz12 color333">{{ $t("active.cl_zanwu") }}</span>
</p> </p>
<p class="pImg" v-else> <p class="pImg" v-else>
<img <img @click="getPic(detailList.businessCardPhotos, index)"
@click="getPic(detailList.businessCardPhotos, index)" v-if="detailList.businessCardPhotos.length == 1" v-for="(i, index) in detailList.businessCardPhotos"
v-if="detailList.businessCardPhotos.length == 1" :src="i + '?x-oss-process=image/resize,m_mfit,h_100,w_300'" />
v-for="(i, index) in detailList.businessCardPhotos" <img @click="getPic(detailList.businessCardPhotos, index)" v-if="
:src="i + '?x-oss-process=image/resize,m_mfit,h_100,w_300'"
/>
<img
@click="getPic(detailList.businessCardPhotos, index)"
v-if="
detailList.businessCardPhotos.length == 2 || detailList.businessCardPhotos.length == 2 ||
detailList.businessCardPhotos.length == 4 detailList.businessCardPhotos.length == 4
" " v-for="(i, index) in detailList.housePhotos" :src="
v-for="(i, index) in detailList.housePhotos"
:src="
i + i +
'?x-oss-process=image/resize,m_pad,w_169,h_150,color_333333' '?x-oss-process=image/resize,m_pad,w_169,h_150,color_333333'
" " />
/> <img @click="getPic(detailList.businessCardPhotos, index)" v-if="
<img
@click="getPic(detailList.businessCardPhotos, index)"
v-if="
detailList.businessCardPhotos.length == 3 || detailList.businessCardPhotos.length == 3 ||
detailList.businessCardPhotos.length >= 5 detailList.businessCardPhotos.length >= 5
" " v-for="(i, index) in detailList.housePhotos" :src="
v-for="(i, index) in detailList.housePhotos"
:src="
i + i +
'?x-oss-process=image/resize,m_pad,h_100,w_100,color_333333' '?x-oss-process=image/resize,m_pad,h_100,w_100,color_333333'
" " />
/>
</p> </p>
<p class="fz14 color666 mt10"> <p class="fz14 color666 mt10">
<i class="iconfont icon-ico-menpaizhaopian fz14 colorccc"></i <i class="iconfont icon-ico-menpaizhaopian fz14 colorccc"></i>&nbsp;
>&nbsp;
{{ $t("salesModule.doorPhoto") }} {{ $t("salesModule.doorPhoto") }}
</p> </p>
<p class="pImg" v-if="!detailList.housePhotos"> <p class="pImg" v-if="!detailList.housePhotos">
<span class="fz12 color333">{{ $t("active.cl_zanwu") }}</span> <span class="fz12 color333">{{ $t("active.cl_zanwu") }}</span>
</p> </p>
<p class="pImg" v-else> <p class="pImg" v-else>
<img <img @click="getPic(detailList.housePhotos, index)" v-if="detailList.housePhotos.length == 1"
@click="getPic(detailList.housePhotos, index)"
v-if="detailList.housePhotos.length == 1"
v-for="(i, index) in detailList.housePhotos" v-for="(i, index) in detailList.housePhotos"
:src="i + '?x-oss-process=image/resize,m_mfit,h_100,w_300'" :src="i + '?x-oss-process=image/resize,m_mfit,h_100,w_300'" />
/> <img @click="getPic(detailList.housePhotos, index)" v-if="
<img
@click="getPic(detailList.housePhotos, index)"
v-if="
detailList.housePhotos.length == 2 || detailList.housePhotos.length == 2 ||
detailList.housePhotos.length == 4 detailList.housePhotos.length == 4
" " v-for="(i, index) in detailList.housePhotos" :src="
v-for="(i, index) in detailList.housePhotos"
:src="
i + i +
'?x-oss-process=image/resize,m_pad,w_169,h_150,color_333333' '?x-oss-process=image/resize,m_pad,w_169,h_150,color_333333'
" " />
/> <img @click="getPic(detailList.housePhotos, index)" v-if="
<img
@click="getPic(detailList.housePhotos, index)"
v-if="
detailList.housePhotos.length == 3 || detailList.housePhotos.length == 3 ||
detailList.housePhotos.length >= 5 detailList.housePhotos.length >= 5
" " v-for="(i, index) in detailList.housePhotos" :src="
v-for="(i, index) in detailList.housePhotos"
:src="
i + i +
'?x-oss-process=image/resize,m_pad,h_100,w_100,color_333333' '?x-oss-process=image/resize,m_pad,h_100,w_100,color_333333'
" " />
/>
</p> </p>
<p class="fz14 color666 mt10"> <p class="fz14 color666 mt10">
<i class="iconfont icon-ico_yingyezhizhao fz14 colorccc"></i <i class="iconfont icon-ico_yingyezhizhao fz14 colorccc"></i>&nbsp;
>&nbsp;
{{ $t("salesModule.BusinessLicense") }} {{ $t("salesModule.BusinessLicense") }}
</p> </p>
<p class="pImg" v-if="!detailList.images"> <p class="pImg" v-if="!detailList.images">
<span class="fz12 color333">{{ $t("active.cl_zanwu") }}</span> <span class="fz12 color333">{{ $t("active.cl_zanwu") }}</span>
</p> </p>
<p class="pImg" v-else> <p class="pImg" v-else>
<img <img @click="getPic(detailList.images, index)" v-if="detailList.images.length == 1"
@click="getPic(detailList.images, index)" v-for="(i, index) in detailList.images" :src="i + '?x-oss-process=image/resize,m_mfit,h_100,w_300'" />
v-if="detailList.images.length == 1" <img @click="getPic(detailList.images, index)" v-if="
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="
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="
i + i +
'?x-oss-process=image/resize,m_pad,w_169,h_150,color_333333' '?x-oss-process=image/resize,m_pad,w_169,h_150,color_333333'
" " />
/> <img @click="getPic(detailList.images, index)" v-if="
<img
@click="getPic(detailList.images, index)"
v-if="
detailList.images.length == 3 || detailList.images.length >= 5 detailList.images.length == 3 || detailList.images.length >= 5
" " v-for="(i, index) in detailList.images" :src="
v-for="(i, index) in detailList.images"
:src="
i + i +
'?x-oss-process=image/resize,m_pad,h_100,w_100,color_333333' '?x-oss-process=image/resize,m_pad,h_100,w_100,color_333333'
" " />
/>
</p> </p>
<p class="fz14 color666 mt10"> <p class="fz14 color666 mt10">
<i class="iconfont icon-ico_yingyezhizhao fz14 colorccc"></i <i class="iconfont icon-ico_yingyezhizhao fz14 colorccc"></i>&nbsp;
>&nbsp;
签约资料 签约资料
</p> </p>
<a v-if="detailList.signingFile" style="margin-left:20px;color:blue;cursor:pointer;font-size: 14px;" target="_blank" <a v-if="detailList.signingFile" style="margin-left:20px;color:blue;cursor:pointer;font-size: 14px;"
@click="downloadFile(detailList.signingFile)">签约客户附件</a> target="_blank" @click="downloadFile(detailList.signingFile)">签约客户附件</a>
<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") }}
...@@ -411,43 +361,24 @@ ...@@ -411,43 +361,24 @@
detailList.visitRecord == "" ? "暂无" : detailList.visitRecord detailList.visitRecord == "" ? "暂无" : detailList.visitRecord
}} }}
</p> </p>
<p <p class="fz14 mt10" style="color: #4779ff" v-show="customerStatus == 2 || customerStatus == 3">
class="fz14 mt10" <i class="iconfont icon-shenpiyijian fz14" style="color: #4779ff"></i>&nbsp;
style="color: #4779ff"
v-show="customerStatus == 2 || customerStatus == 3"
>
<i
class="iconfont icon-shenpiyijian fz14"
style="color: #4779ff"
></i
>&nbsp;
{{ $t("salesModule.SPYJ") }} {{ $t("salesModule.SPYJ") }}
</p> </p>
<div class="answerItem" v-for="item in answerDetailList"> <div class="answerItem" v-for="item in answerDetailList">
<img v-if="!item.emPhoto" src="../../assets/img/litheader.png" /> <img v-if="!item.emPhoto" src="../../assets/img/litheader.png" />
<img <img v-if="item.emPhoto" :onerror="defaultImg" :src="item.emPhoto" />
v-if="item.emPhoto"
:onerror="defaultImg"
:src="item.emPhoto"
/>
<p> <p>
<span class="fz14 color333">{{ item.createBy }}</span> <span class="fz14 color333">{{ item.createBy }}</span>
<span class="fz12 color999">{{ item.createDate }}</span> <span class="fz12 color999">{{ item.createDate }}</span>
</p> </p>
<p <p class="mt5" style="color: #e95252" v-show="item.adviceStatus == 2">
class="mt5"
style="color: #e95252"
v-show="item.adviceStatus == 2"
>
{{ $t("salesModule.ApprovalRejected") }} {{ $t("salesModule.ApprovalRejected") }}
</p> </p>
<p style="color: #09d49d" v-show="item.adviceStatus == 1"> <p style="color: #09d49d" v-show="item.adviceStatus == 1">
{{ $t("salesModule.ApprovalPassed") }} {{ $t("salesModule.ApprovalPassed") }}
</p> </p>
<p <p class="fz12 color333 mt5" style="margin-left: 35px; background: #f5f5f5; padding: 10px">
class="fz12 color333 mt5"
style="margin-left: 35px; background: #f5f5f5; padding: 10px"
>
{{ item.adviceContent }} {{ item.adviceContent }}
</p> </p>
</div> </div>
...@@ -465,164 +396,89 @@ ...@@ -465,164 +396,89 @@
<span>{{addMsg.SigningEndTime}}</span> <span>{{addMsg.SigningEndTime}}</span>
</div> </div>
</div> </div>
<div <div class="customerApprovalLayercontentBtn"
class="customerApprovalLayercontentBtn" v-show="(customerStatus == 0 || customerStatus == 1) && isOk == -1">
v-show="(customerStatus == 0 || customerStatus == 1) && isOk == -1" <input type="button" class="normalBtn" :value="$t('visa.v_tongguo')" @click="
>
<input
type="button"
class="normalBtn"
:value="$t('visa.v_tongguo')"
@click="
isOk = 1; isOk = 1;
addMsg.AdviceStatus = 1; addMsg.AdviceStatus = 1;
" " />
/> <input type="button" class="hollowFixedBtn" :value="$t('visa.v_jujue')" @click="
<input
type="button"
class="hollowFixedBtn"
:value="$t('visa.v_jujue')"
@click="
isOk = 0; isOk = 0;
addMsg.AdviceStatus = 2; addMsg.AdviceStatus = 2;
" " />
/>
</div> </div>
<div <div class="customerApprovalLayercontentBtn" style="height: 190px" v-show="isOk == 0">
class="customerApprovalLayercontentBtn"
style="height: 190px"
v-show="isOk == 0"
>
<div> <div>
<span class="fz14 color333">{{ $t("salesModule.RejectJJ") }}</span> <span class="fz14 color333">{{ $t("salesModule.RejectJJ") }}</span>
</div> </div>
<p class="mt10"> <p class="mt10">
<el-input <el-input type="textarea" v-model="addMsg.AdviceContent" maxlength="200"></el-input>
type="textarea"
v-model="addMsg.AdviceContent"
maxlength="200"
></el-input>
</p> </p>
<input <input type="button" class="normalBtn" :value="$t('adm.adm_publish')" @click="saveApproval()" />
type="button" <input type="button" class="hollowFixedBtn" :value="$t('pub.cancelBtn')" @click="isOk = -1" />
class="normalBtn"
:value="$t('adm.adm_publish')"
@click="saveApproval()"
/>
<input
type="button"
class="hollowFixedBtn"
:value="$t('pub.cancelBtn')"
@click="isOk = -1"
/>
</div> </div>
<div <div class="customerApprovalLayercontentBtn" style="height: 400px; text-align: center" v-show="isOk == 1">
class="customerApprovalLayercontentBtn"
style="height: 400px; text-align: center"
v-show="isOk == 1"
>
<div> <div>
<span class="fz14 color333">{{ <span class="fz14 color333">{{
$t("salesModule.ChoiceCustomer") $t("salesModule.ChoiceCustomer")
}}</span> }}</span>
</div> </div>
<span <span :class="{ cked: addMsg.IsMember == 2 }" @click="addMsg.IsMember = 2">
:class="{ cked: addMsg.IsMember == 2 }"
@click="addMsg.IsMember = 2"
>
<img src="../../assets/img/notVip.png" /> <img src="../../assets/img/notVip.png" />
{{ $t("salesModule.NormalCustomer") }} {{ $t("salesModule.NormalCustomer") }}
</span> </span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span <span :class="{ cked: addMsg.IsMember == 1 }" @click="addMsg.IsMember = 1">
:class="{ cked: addMsg.IsMember == 1 }"
@click="addMsg.IsMember = 1"
>
<img src="../../assets/img/isVip.png" /> <img src="../../assets/img/isVip.png" />
{{ $t("salesModule.MemberCustomer") }} {{ $t("salesModule.MemberCustomer") }}
</span> </span>
<p class="clearfix"></p> <p class="clearfix"></p>
<el-form> <el-form>
<el-form-item label="签约额度"> <el-form-item label="签约额度">
<el-input <el-input style="width: 220px" v-model="addMsg.SigningPrice" type="number"></el-input>
style="width: 220px"
v-model="addMsg.SigningPrice"
type="number"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="有效日期"> <el-form-item label="有效日期">
<el-date-picker <el-date-picker class="h34" v-model="addMsg.SigningEndTime" type="date" value-format="yyyy-MM-dd">
class="h34"
v-model="addMsg.SigningEndTime"
type="date"
value-format="yyyy-MM-dd"
>
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-form> </el-form>
<input <input type="button" class="normalBtn mg0" :value="$t('restaurant.res_confirm')" @click="saveApproval()" />
type="button"
class="normalBtn mg0"
:value="$t('restaurant.res_confirm')"
@click="saveApproval()"
/>
&nbsp;&nbsp; &nbsp;&nbsp;
<input <input type="button" class="hollowFixedBtn mg0" :value="$t('pub.cancelBtn')" @click="isOk = -1" />
type="button"
class="hollowFixedBtn mg0"
:value="$t('pub.cancelBtn')"
@click="isOk = -1"
/>
</div> </div>
</div> </div>
</div> </div>
<div class="approvalNav"> <div class="approvalNav">
<li <li :class="{ active: type == -1 }" @click="
:class="{ active: type == -1 }"
@click="
type = -1; type = -1;
clickGetList(-1); clickGetList(-1);
" ">
>
{{ $t("salesModule.AllApproval") }} {{ $t("salesModule.AllApproval") }}
<div class="divActive" v-show="type == -1"></div> <div class="divActive" v-show="type == -1"></div>
</li> </li>
<li <li :class="{ active: type == 1 }" @click="
:class="{ active: type == 1 }"
@click="
type = 1; type = 1;
clickGetList(1); clickGetList(1);
" ">
>
{{ $t("salesModule.Pending") }} {{ $t("salesModule.Pending") }}
<div class="divActive" v-show="type == 1"></div> <div class="divActive" v-show="type == 1"></div>
</li> </li>
<li <li :class="{ active: type == 2 }" @click="
:class="{ active: type == 2 }"
@click="
type = 2; type = 2;
clickGetList(2); clickGetList(2);
" ">
>
{{ $t("salesModule.YSP") }} {{ $t("salesModule.YSP") }}
<div class="divActive" v-show="type == 2"></div> <div class="divActive" v-show="type == 2"></div>
</li> </li>
</div> </div>
<table <table class="customerApprovalDetailTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
class="customerApprovalDetailTable"
border="0"
cellspacing="0"
cellpadding="0"
v-loading="loading"
>
<tr> <tr>
<th width="20%">{{ $t("salesModule.Stores") }}</th> <th width="20%">{{ $t("salesModule.Stores") }}</th>
<th width="10%">{{ $t("hotel.suplier_contact") }}</th> <th width="10%">{{ $t("hotel.suplier_contact") }}</th>
<th width="15%">{{ $t("hotel.table_tel") }}</th> <th width="15%">{{ $t("hotel.table_tel") }}</th>
<!-- <th width="15%">{{ $t("salesModule.SaveTime") }}</th> -->
<th width="15%" v-if="type != 1">到期时间</th> <th width="15%" v-if="type != 1">到期时间</th>
<th width="15%" v-if="type != 1">签约金额</th> <th width="15%" v-if="type != 1">签约金额</th>
<th width="10%">{{ $t("salesModule.Laiyuan") }}</th> <th width="10%">{{ $t("salesModule.Laiyuan") }}</th>
...@@ -632,54 +488,33 @@ ...@@ -632,54 +488,33 @@
<tr v-for="item in list"> <tr v-for="item in list">
<td class="fz16"> <td class="fz16">
{{ item.customerName {{ item.customerName
}}<i }}<i class="iconfont icon-shimingrenzheng" :class="{ _class_b: item.RealNameAuthentication === 1 }"></i>
class="iconfont icon-shimingrenzheng"
:class="{ _class_b: item.RealNameAuthentication === 1 }"
></i>
</td> </td>
<td> <td>
{{ item.contact }} {{ item.contact }}
</td> </td>
<td>{{ item.contactNumber }}</td> <td>{{ item.contactNumber }}</td>
<!-- <td>{{ item.expectVisitDateTime }}</td> -->
<td v-if="type != 1">{{ item.signingEndTime }}</td> <td v-if="type != 1">{{ item.signingEndTime }}</td>
<td v-if="type != 1">{{ item.signingPrice }}</td> <td v-if="type != 1">{{ item.signingPrice }}</td>
<td>{{ item.emName }}</td> <td>{{ item.emName }}</td>
<td> <td>
<img <img src="../../assets/img/dsp.png" v-show="item.customerStatus == 0 || item.customerStatus == 1" />
src="../../assets/img/dsp.png" <img src="../../assets/img/ysp.png" v-show="item.customerStatus == 2 || item.customerStatus == 3" />
v-show="item.customerStatus == 0 || item.customerStatus == 1"
/>
<img
src="../../assets/img/ysp.png"
v-show="item.customerStatus == 2 || item.customerStatus == 3"
/>
</td> </td>
<td> <td>
<input <input type="button" :value="$t('salesModule.CheckDetails')" class="normalBtn" style="margin-left: 0"
type="button" @click="getDetail(item)" />
:value="$t('salesModule.CheckDetails')"
class="normalBtn"
style="margin-left: 0"
@click="getDetail(item)"
/>
</td> </td>
</tr> </tr>
</table> </table>
<el-pagination <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
background layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total">
@current-change="handleCurrentChange"
:current-page.sync="currentPage"
layout="total,prev, pager, next, jumper"
:page-size="msg.pageSize"
:total="total"
>
</el-pagination> </el-pagination>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
subItem: {}, subItem: {},
...@@ -712,8 +547,7 @@ export default { ...@@ -712,8 +547,7 @@ export default {
picObj: [], picObj: [],
dspNone: true, dspNone: true,
initialIndex: 0, initialIndex: 0,
defaultImg: defaultImg: 'this.src="' + require("../../assets/img/litheader.png") + '"',
'this.src="' + require("../../assets/img/litheader.png") + '"',
currentPage: 1, currentPage: 1,
total: 0, total: 0,
list: [], list: [],
...@@ -727,7 +561,6 @@ export default { ...@@ -727,7 +561,6 @@ export default {
var newUrl = this.domainManager().ViittoFileUrl + fileUrl var newUrl = this.domainManager().ViittoFileUrl + fileUrl
const link = document.createElement('a'); const link = document.createElement('a');
link.href = newUrl; link.href = newUrl;
// link.download = fileName;
link.download = '签约客户附件'; link.download = '签约客户附件';
document.body.appendChild(link); document.body.appendChild(link);
link.click(); link.click();
...@@ -762,12 +595,8 @@ export default { ...@@ -762,12 +595,8 @@ export default {
getPic(obj, index) { getPic(obj, index) {
this.picObj = obj; this.picObj = obj;
this.$viewer.show(); this.$viewer.show();
// this.initialIndex = index;
//
// this.dspNone = false;
}, },
getDetail(obj) { getDetail(obj) {
console.log("addMsg.SigningEndTime addMsg.SigningPrice", obj);
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;
...@@ -775,38 +604,39 @@ export default { ...@@ -775,38 +604,39 @@ export default {
this.addMsg.SigningPrice = obj.signingPrice; this.addMsg.SigningPrice = obj.signingPrice;
this.customerStatus = obj.customerStatus; this.customerStatus = obj.customerStatus;
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.openLayer();
this.detailList = res.data.data.customerInfo; this.detailList = res.data.data.customerInfo;
} else { } else {}
}
}, },
(err) => {} (err) => {}
); );
this.apipost( this.apipost(
"app_today_visit_GetCustomerAdvice", "app_today_visit_GetCustomerAdvice", {
{ CustomerId: obj.customerId }, CustomerId: obj.customerId
},
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.answerDetailList = res.data.data; this.answerDetailList = res.data.data;
} else { } else {}
}
}, },
(err) => {} (err) => {}
); );
this.apipost( this.apipost(
"app_get_my_GetVisitPlanLastList", "app_get_my_GetVisitPlanLastList", {
{ empId: obj.creatBy, customerId: obj.customerId }, empId: obj.creatBy,
customerId: obj.customerId
},
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.lastVisitObj = res.data.data; this.lastVisitObj = res.data.data;
} else { } else {}
}
}, },
(err) => {} (err) => {}
); );
...@@ -861,6 +691,5 @@ export default { ...@@ -861,6 +691,5 @@ export default {
mounted() { mounted() {
this.getList(); this.getList();
}, },
}; };
</script> </script>
\ No newline at end of file
...@@ -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