chunk-837d6992.cf8720d5.js 163 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-837d6992"],{"042d":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAkCAYAAAD7PHgWAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKKADAAQAAAABAAAAJAAAAAC/FoutAAACz0lEQVRYCc2YS2sUQRRGp2MiYhAXasAohPGBD4wbX7hwpatE40IJko0rl4I/w+0gKIJ/QbJwEXyAiMGF6EYEQfERUMREEkWiJhMznm9ID9NtV1VXd8fpC1/qceveOn2nuqcnQSWnNRqNtaQ4i46gdegdGg+CYIo2twV5MgCn+CtoTyzPEuOrQH6MzXsPu7wjogFHGcbhtKIbXVAnr2UGpHqKHbYA7GLNXos/lSszINmPoT7HLmccfqc7EyCVWUPmIWf2SmUna/enWGdckgmQbKreFmPWqCNXFb0BPaoXYlaJORAOfFtvQDY4jjZ7bpS5iqkBVTk0CNg5TzgtHyB2FG3wjY08qEmg55eqo/OlO1QK+5voR9YzzmLzBE2jmZW21efBLl/EmhsCpufVCKqiIiAim3gMvrH2CZoAtq64ADg9Bi6rr4mS2DMAb4lFZ1CVKxOcuA5TuO3qCHCbOiW0JpcAZ0sIJ6Q5/RHgA3VKZh/geSOmLg7jY9r7GpTEvsBxA66GeFo3B4fyNGOpk6YX3BpwP0KIFqAmgDxFcz50/uf2PftdA+5n+74RQDmAPEEzhv7xyb9K9pq814H7Hc+fCAGkXqcuIt1Eq20v2eAmcPWkjRIBtRDIQzSXkoIKnBOcbog/ppzGChH0nKC3psCC5m/b4LSHEXAFwHhlBQEuu/K4AJtfN64kOfz9rlgjIGdwI8G9rgQ5/c4CGAHZ2BmcE07h2SuYJrgAQGcROl3BPo5Sj+1COw2o5/BWb0CuyhmYkFRfU18T5l1T1o9Zv+KSTGW3lr4t6Dv9CTTJQ3eJi6vS18+IfSiNrbctSgRko0U2UjX0E9RkeiW6ix6xvh4uoq+3khrxu2kFqtZmn2zOLN/Feh26hx4Cs2BLLh+gqqRAVdm4vSJHLT7ZPjYCahHJD9IMIR3kz+gFEtgvWi8jl/4rcRLtQIp/iu6Qa5HWaH8B4sSxrrXIojcAAAAASUVORK5CYII="},"083a":function(t,e,i){"use strict";var s=i("0d51"),a=TypeError;t.exports=function(t,e){if(!delete t[e])throw a("Cannot delete property "+s(e)+" of "+s(t))}},1001:function(t,e,i){"use strict";i("fb84")},"22be":function(t,e,i){},"2cbd":function(t,e,i){"use strict";i("68ef"),i("a71a"),i("9d70"),i("3743"),i("4d75"),i("e3b3"),i("8400")},"3c65":function(t,e,i){"use strict";var s=i("23e7"),a=i("7b0b"),r=i("07fa"),n=i("3a34"),o=i("083a"),c=i("3511"),l=1!==[].unshift(0),d=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}},m=l||!d();s({target:"Array",proto:!0,arity:1,forced:m},{unshift:function(t){var e=a(this),i=r(e),s=arguments.length;if(s){c(i+s);var l=i;while(l--){var d=l+s;l in e?e[d]=e[l]:o(e,d)}for(var m=0;m<s;m++)e[m]=arguments[m]}return n(e,i+s)}})},4691:function(t,e,i){"use strict";i("cb45")},4807:function(t,e,i){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xq-addtrack-component"},[e("transition",{attrs:{name:"slide-fade"}},[t.showTrack?e("div",{staticClass:"xq-addtrack-mask",on:{click:function(e){t.showTrack=!1}}},[e("div",{staticClass:"xq-addtrack-block",class:{"xq-paddingtop178":t.heightAuto,"xq-paddingtop80":!t.heightAuto},on:{click:function(t){t.stopPropagation()}}},[e("div",{staticClass:"xq-addtrack-top",class:{"xq-height178":t.heightAuto,"xq-height80":!t.heightAuto}},[e("div",{staticClass:"xq-addtrack-header box-module"},[e("div",{staticClass:"xq-addtrack-header-left"},[e("span",{staticClass:"limitWidth ellipsis"},[t._v(t._s(t.customerobj.name||"未知"))]),e("span",{staticClass:"mlr10"},[t._v("|")]),e("span",{staticClass:"limitWidth ellipsis"},[t._v(t._s(t.customerobj.community_name||"未知小区"))]),e("span",{staticClass:"mlr10"},[t._v("|")]),e("span",[t._v(t._s(t.customerobj.square?t.customerobj.square+"㎡":"未知面积"))])]),e("div",{directives:[{name:"show",rawName:"v-show",value:"12"!=t.topflag,expression:"topflag != '12'"}],staticClass:"xq-addtrack-header-right flex justify-end"},[t.nowobj.addtoptime?e("img",{staticClass:"xq-addtrack-collect-icon",attrs:{src:i("bdaa"),width:"20px",height:"20px"},on:{click:t.setoptap}}):e("img",{staticClass:"xq-addtrack-collect-icon",attrs:{src:i("042d"),width:"20px",height:"20px"},on:{click:t.setoptap}})])]),66==t.scene||88==t.scene||t.tabHidden?t._e():e("div",{staticClass:"xq-addtrack-tab flex align-center"},[e("div",{staticClass:"flex-sub flex justify-center align-center font28 color384855",class:{"xq-addtrack-active":"1"===t.addType},on:{click:function(e){return t.switchTab("1")}}},[t._v(" 客户跟踪 ")]),e("div",{directives:[{name:"show",rawName:"v-show",value:1==t.moduleObj.perfect,expression:"moduleObj.perfect == 1"}],staticClass:"flex-sub flex justify-center align-center font28 color384855",class:{"xq-addtrack-active":"2"===t.addType},on:{click:function(e){return t.switchTab("2")}}},[t._v(" 信息完善 ")]),e("div",{directives:[{name:"show",rawName:"v-show",value:1==t.moduleObj.change,expression:"moduleObj.change == 1"}],staticClass:"flex-sub flex justify-center align-center font28 color384855",class:{"xq-addtrack-active":"3"===t.addType},on:{click:function(e){return t.switchTab("3")}}},[t._v(" 客户转化 ")]),e("div",{directives:[{name:"show",rawName:"v-show",value:1==t.moduleObj.subscribe,expression:"moduleObj.subscribe == 1"}],staticClass:"flex-sub flex justify-center align-center font28 color384855",class:{"xq-addtrack-active":"4"===t.addType},on:{click:function(e){return t.switchTab("4")}}},[t._v(" 客户预约 ")])])]),e("div",{ref:"contentData",staticClass:"xq-addtrack-content"},["1"===t.addType?[e(t.componentAlias,{tag:"component",attrs:{dialog:t.showTrack,rtype:t.addType,customerobj:t.customerobj,manager:t.manager,nidx:t.nidx,cid:t.cid,nowitem:t.nowitem,crmSettingObj:t.crmSettingObj,toptype:t.toptype},on:{updateMsg:t.updateTrackMsg}})]:"2"===t.addType?[e(t.componentAlias,{ref:"addcrmmsg",tag:"component",attrs:{cid:t.cid,shareval:t.shareval,customertype:1,customerinfo:t.customerobj}}),e("div",{staticClass:"xq-customer-data-submit"},[e("van-button",{attrs:{type:"info",loading:t.loading,"loading-text":"正在提交数据...",disabled:t.loading},on:{click:function(e){return e.stopPropagation(),t.editcustomermsg.apply(null,arguments)}}},[t._v("确定修改")])],1)]:"3"===t.addType?[e(t.componentAlias,{tag:"component",attrs:{dialog:t.showTrack,rtype:t.addType,customerobj:t.customerobj,manager:t.manager,nidx:t.nidx,cid:t.cid,nowitem:t.nowitem,crmSettingObj:t.crmSettingObj,toptype:t.toptype,jumpType:t.jumpType},on:{updateMsg:t.updateChangeMsg}})]:[e(t.componentAlias,{tag:"component",attrs:{dialog:t.showTrack,rtype:t.addType,customerobj:t.customerobj,manager:t.manager,nidx:t.nidx,cid:t.cid,nowitem:t.nowitem,crmSettingObj:t.crmSettingObj,toptype:t.toptype},on:{updateMsg:t.updateChangeMsg}})]],2)])]):t._e()])],1)},a=[],r=(i("66b9"),i("b650")),n=(i("14d9"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"xq-customer-tracking-component"},[e("div",{staticClass:"xq-customer-tracking-style-1"},[e("div",{staticClass:"xq-customer-tracking-label-1 font28 color384855"},[t._v(" 跟踪方式 ")]),e("div",{staticClass:"flex-sub flex align-center"},t._l(t.clueTypeArr,(function(i){return e("div",{key:i.type,staticClass:"flex-sub flex align-center",on:{click:function(e){return t.switchClueType(i.type)}}},[t.form.clueType==i.type?e("img",{staticClass:"xq-customer-tracking-radio",attrs:{src:t.$store.state.imgUrl+"/xcx/selected.png"}}):t._e(),t.form.clueType!=i.type?e("img",{staticClass:"xq-customer-tracking-radio",attrs:{src:t.$store.state.imgUrl+"/xcx/unselected.png"}}):t._e(),e("span",{staticClass:"font28 color384855 ml10"},[t._v(t._s(i.name))])])})),0)]),e("div",{staticClass:"xq-customer-tracking-style-1"},[e("div",{staticClass:"xq-customer-tracking-label-1 font28 color384855"},[t._v(" 线索状态 ")]),e("div",{staticClass:"flex-sub flex align-center"},t._l(t.clueStateArr,(function(i){return e("div",{directives:[{name:"show",rawName:"v-show",value:i.show,expression:"item.show"}],key:i.state,staticClass:"flex-sub flex align-center",on:{click:function(e){return t.switchClueState(i.state)}}},[t.form.clueState==i.state?e("img",{staticClass:"xq-customer-tracking-radio",attrs:{src:t.$store.state.imgUrl+"/xcx/selected.png"}}):t._e(),t.form.clueState!=i.state?e("img",{staticClass:"xq-customer-tracking-radio",attrs:{src:t.$store.state.imgUrl+"/xcx/unselected.png"}}):t._e(),e("span",{staticClass:"font28 color384855 ml10"},[t._v(t._s(i.name))])])})),0)]),e("div",{staticClass:"xq-customer-tracking-box-1"},[e("div",{staticClass:"xq-customer-tracking-word"},[t._l(t.trackArr,(function(i,s){return[e("span",{key:s,class:{"xq-customer-tracking-active":""==t.form.remark?0==s:t.form.remark==i},on:{click:function(e){return t.switchTrackMsg(i)}}},[t._v(t._s(i))]),e("span",{directives:[{name:"show",rawName:"v-show",value:t.trackArr.length-1!=s,expression:"trackArr.length - 1 != idx"}],staticClass:"mlr15"},[t._v("|")])]}))],2),e("div",{staticClass:"xq-customer-tracking-textarea"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.remark,expression:"form.remark"}],attrs:{rows:"4",placeholder:"请输入跟进内容"},domProps:{value:t.form.remark},on:{input:function(e){e.target.composing||t.$set(t.form,"remark",e.target.value)}}}),e("img",{staticClass:"xq-customer-tracking-file",attrs:{src:i("9ea2")},on:{click:function(e){return e.stopPropagation(),t.upload.apply(null,arguments)}}}),e("input",{ref:"uploadFile",attrs:{hidden:"",type:"file",accept:"image/*"},on:{change:t.getImageFile}})]),t.form.media_id1.length?e("div",{staticClass:"xq-customer-tracking-image-box"},t._l(t.form.media_id1,(function(i,s){return e("div",{key:s,staticClass:"xq-customer-imgItem"},[e("img",{attrs:{src:`${t.imgUrl}/${i.url}`,width:"100%",height:"100%",alt:""}}),e("div",{staticClass:"wzh_img_del",on:{click:function(e){return t.imageDel(s)}}},[e("van-icon",{staticClass:"del_icon",staticStyle:{color:"#fff"},attrs:{name:"cross"}})],1)])})),0):t._e()]),e("div",{staticClass:"xq-customer-tracking-box-2"},[e("xq-custom-field",{ref:"addcrmmsg",attrs:{customertype:1,customerinfo:t.customerobj,customfield:t.customField}})],1),e("div",{staticClass:"line-style-1"}),e("div",{staticClass:"xq-customer-tracking-setting-date"},[e("div",{staticClass:"xq-customer-tracking-title-1 flex align-center justify-between"},[e("div",{staticClass:"flex align-center"},[e("span",{directives:[{name:"show",rawName:"v-show",value:t.crmSettingObj&&0!=t.crmSettingObj.next_visit_time_is_ok,expression:"(crmSettingObj && crmSettingObj.next_visit_time_is_ok!=0)"}],staticClass:"colorFF0000"},[t._v("*")]),e("span",[t._v("设置下次回访时间")])]),e("span",{directives:[{name:"show",rawName:"v-show",value:t.isShowNextVisit,expression:"isShowNextVisit"}],staticClass:"cancelNextRevisit",on:{click:t.cancelNextVisitFun}},[t._v("取消下次回访")])]),e("div",{staticClass:"xq-customer-tracking-date-data"},t._l(t.trackDateArr,(function(i){return e("div",{key:i.type,staticClass:"flex align-center",on:{click:function(e){return t.switchDate(i.type)}}},[t.form.nextdate==i.type?e("img",{staticClass:"xq-customer-tracking-radio",attrs:{src:t.$store.state.imgUrl+"/xcx/selected.png"}}):t._e(),t.form.nextdate!=i.type?e("img",{staticClass:"xq-customer-tracking-radio",attrs:{src:t.$store.state.imgUrl+"/xcx/unselected.png"}}):t._e(),e("span",{staticClass:"font28 color384855 ml10"},[t._v(t._s(i.name))])])})),0),5==t.form.nextdate?e("div",{staticClass:"xq-customer-tracking-other-date",on:{click:function(e){t.showCalendar=!0}}},[e("div",{staticClass:"xq-customer-tracking-date-label font28 color384855"},[t._v(" 下次回访时间: ")]),e("div",{staticClass:"xq-customer-tracking-date-content"},[e("span",{staticClass:"font28",class:t.form.next_contact_date?"color333":"colorB6CADE"},[t._v(t._s(t.form.next_contact_date?t.form.next_contact_date:"请选择回访时间"))]),e("img",{staticClass:"xq-customer-date-icon",attrs:{src:i("f7fb"),alt:""}})])]):t._e()]),e("div",{staticClass:"xq-customer-tracking-submit"},[e("van-button",{attrs:{type:"info",loading:t.loading,"loading-text":"正在提交数据...",disabled:t.loading},on:{click:t.submitData}},[t._v(" 提交本次跟踪数据")])],1),e("div",{staticClass:"trackrecordbox2"},[e("div",{staticClass:"clearfix"},[t._m(0),e("div",{staticClass:"rightrecordbtn fontfpr pull-right"},[t._v(" 回访次数:"+t._s(t.visitcount)+"次 ")])]),e("div",{staticClass:"trackrecordlistbox relative"},[e("span"),t._l(t.visitlogarr,(function(s,a){return e("div",{key:s.id,staticClass:"everytrackrecordbox"},[0==a||t.visitlogarr[a].colortime!=t.visitlogarr[a-1].colortime?e("div",{staticClass:"toptimebox clearfix"},[e("div",{staticClass:"pull-left",class:{redcircclebox:"red"==s.color,bluecircclebox:"blue"==s.color,cyancircclebox:"cyan"==s.color}},[e("div")]),e("div",{staticClass:"daytime pull-left"},[t._v(" "+t._s(s.addtime.split(" ")[0])+" ")])]):t._e(),e("div",{staticClass:"recordcontentbox3 clearfix relative"},[e("div",{directives:[{name:"show",rawName:"v-show",value:0==s.is_track&&!!s.user,expression:"visititem.is_track == 0 && !!visititem.user"}],staticClass:"pull-left",class:{redmiddlecirccle:"red"==s.color,bluemiddlecirccle:"blue"==s.color,cyanmiddlecirccle:"cyan"==s.color}}),e("div",{directives:[{name:"show",rawName:"v-show",value:0==s.is_track&&!!s.user,expression:"visititem.is_track == 0 && !!visititem.user"}],staticClass:"recordcontentdiv pull-left",class:{redcolor:"red"==s.color,bluecolor:"blue"==s.color,cyancolor:"cyan"==s.color}},[e("div",{staticClass:"recordcontent"},[e("div",{staticClass:"clearfix"},[e("img",{directives:[{name:"show",rawName:"v-show",value:s.user&&s.user.headimgurl,expression:"visititem.user && visititem.user.headimgurl"}],staticClass:"headimg pull-left",attrs:{src:s.user&&s.user.headimgurl?s.user.headimgurl:""}}),e("div",{staticClass:"color249efb fontfps pull-left font24"},[t._v(" "+t._s(2==s.role?"设计师":"销售")+":"+t._s(s.employee.name)+" ")]),e("div",{staticClass:"pull-left fontfpr font24 addhourbox"},[t._v(" "+t._s(s.addtime.split(" ")[1])+" ")]),1!=s.is_wisdom&&2!=s.is_wisdom&&s.state&&"未到访"!=s.state?[e("div",{staticClass:"pull-right fontfpr statebox"},[t._v(" "+t._s(t.getStateName(s.state))+" ")])]:t._e()],2),e("div",{directives:[{name:"show",rawName:"v-show",value:1==s.is_merge,expression:"visititem.is_merge == 1"}],staticClass:"mergeDataStyle"},[e("span",[t._v("【合并数据】")])]),1==s.is_wisdom?[e("div",{staticClass:"recordcontentmsg color1A1E25",class:{lineClamp4:s.collapse,retractText:!s.collapse},domProps:{innerHTML:t._s(s.remark)},on:{click:function(e){return e.stopPropagation(),t.collapseFunc(s)}}})]:[e("div",{staticClass:"recordcontentmsg color1A1E25"},[e("p",{directives:[{name:"show",rawName:"v-show",value:s.type,expression:"visititem.type"}]},[t._v(t._s(t.getFollowType(s.type))+";")]),t._v(" "+t._s(s.remark)+" ")])],s.img.length||s.img1.length||s.delivery_img.length||s.sign_img.length?e("div",{staticClass:"recordimgbox clearfix"},[t._l(s.img,(function(i,a){return e("img",{key:a,staticClass:"pull-left",attrs:{src:i+"?x-oss-process=img/resize,w_200"},on:{click:function(e){return t.lookTap(s.img,a)}}})})),t._l(s.img1,(function(i,a){return e("img",{key:1*s.img.length+1*a,staticClass:"pull-left",attrs:{src:i+"?x-oss-process=img/resize,w_200"},on:{click:function(e){return t.lookTap(s.img1,a)}}})})),t._l(s.delivery_img,(function(i,a){return e("img",{key:1*s.img.length+1*a,staticClass:"pull-left",attrs:{src:i+"?x-oss-process=img/resize,w_200"},on:{click:function(e){return t.lookTap(s.delivery_img,a)}}})})),t._l(s.sign_img,(function(i,a){return e("img",{key:1*s.img.length+1*a,staticClass:"pull-left",attrs:{src:i+"?x-oss-process=img/resize,w_200"},on:{click:function(e){return t.lookTap(s.sign_img,a)}}})}))],2):t._e(),s.save_portrait_field?e("div",t._l(s.portraitarr,(function(i){return e("div",{key:"field"+i.id},[6!=i.type?e("div",[t._v(" "+t._s(i.name)+":"+t._s(i.valname)+" ")]):t._e(),6==i.type?e("div",[t._v(t._s(i.name)+":")]):t._e(),6==i.type?e("div",{staticClass:"recordimgbox clearfix"},t._l(i.valname.split(","),(function(s,a){return e("img",{key:a,staticClass:"pull-left",attrs:{src:s},on:{click:function(e){t.lookTap(i.valname.split(","),a)}}})})),0):t._e()])})),0):t._e()],2)]),e("div",{directives:[{name:"show",rawName:"v-show",value:1==s.is_track&&!!s.user,expression:"visititem.is_track == 1 && !!visititem.user"}],staticClass:"trackbox center clearfix"},[e("div",{staticClass:"bgF0F4F7 poolbox inline-block"},[e("div",{staticClass:"color384855 fontfps inline-block font24"},[t._v(" 销售:"+t._s(s.employee.name)+" ")]),e("div",{staticClass:"inline-block fontfpr color384855 mglr26 addhourbox font24"},[t._v(" "+t._s(s.addtime.split(" ")[1])+" ")]),e("div",{staticClass:"inline-block fontfpr color384855 mglr26 font24"},[t._v(" 公海获取 ")])])]),e("div",{directives:[{name:"show",rawName:"v-show",value:2==s.is_track&&!!s.user,expression:"visititem.is_track == 2 && !!visititem.user"}],staticClass:"trackbox center clearfix"},[e("div",{staticClass:"bgF0F4F7 poolbox inline-block"},[e("div",{staticClass:"color384855 fontfps inline-block font24"},[t._v(" "+t._s(s.remark)+" ")]),e("div",{staticClass:"inline-block fontfpr color384855 mglr26 addhourbox font24"},[t._v(" "+t._s(s.addtime.split(" ")[1])+" ")])])]),e("div",{directives:[{name:"show",rawName:"v-show",value:!s.user,expression:"!visititem.user"}],staticClass:"trackbox center clearfix"},[e("div",{staticClass:"bgF0F4F7 poolbox inline-block"},[e("div",{staticClass:"inline-block fontfpr color384855 addhourbox font24"},[t._v(" "+t._s(s.addtime.split(" ")[1])+" ")]),e("div",{staticClass:"inline-block fontfpr color384855 mglr26 font24"},[t._v(" "+t._s(s.remark)+" ")])])]),s.wisdom_url?[e("audio",{ref:"audioEle"+s.id,refInFor:!0,staticStyle:{display:"none"},attrs:{src:s.wisdom_url,controls:"controls",id:"audioEle"+s.id}}),s.play?e("img",{staticClass:"soundstyle",attrs:{src:i("e504"),width:"17px",alt:""},on:{click:function(e){return t.playAudio("audioEle"+s.id,s,a)}}}):e("img",{staticClass:"soundstyle",attrs:{src:i("c211"),width:"17px",alt:""},on:{click:function(e){return t.playAudio("audioEle"+s.id,s,a)}}})]:t._e()],2)])}))],2),t.visitlogarr.length?t._e():e("div",{staticClass:"flex-row align-center justify-center font28 color999 mt30"},[t._v(" ~别让客户等久了,赶快行动起来吧~ ")])]),e("van-calendar",{attrs:{color:"#249EFB",title:"选择下次回访时间",formatter:t.formatter},on:{confirm:t.onConfirm},model:{value:t.showCalendar,callback:function(e){t.showCalendar=e},expression:"showCalendar"}})],1)}),o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"clearfix pull-left leftrecordtitbox font28 fontfpr color384855"},[e("div",{staticClass:"pull-left font32"},[t._v("客户跟踪记录")])])}],c=(i("4662"),i("28a2")),l=(i("6d73"),i("473d")),d=(i("3c65"),i("b7ef"),i("907a"),i("986a"),i("1d02"),i("3c5d"),i("1b3b"),i("3d71"),i("c6e3"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"addcrmmsg"},[e("div",{staticClass:"everysetcrmbox"},[e("div",t._l(t.crmvalarr,(function(s,a){return e("div",{key:s.id},[1==s.type&&"姓名"==s.name?e("div",{staticClass:"relative namebox namebox1"},[e("van-field",{ref:"personame",refInFor:!0,attrs:{required:0==t.requireObj.nameMust,label:s.name,placeholder:"请输入"+s.name},model:{value:t.personame,callback:function(e){t.personame=e},expression:"personame"}})],1):t._e(),4==s.type&&"直播情况"==s.name?e("div",{staticClass:"customerlevelbox fontfpr font28 color384855 lh40 bdrbt1D4E4ED clearfix relative flex-row align-center"},[e("div",{staticClass:"pull-left lh40 leftlabel relative",on:{click:function(e){return t.mshowinputap(s.id)}}},[e("span",{directives:[{name:"show",rawName:"v-show",value:0==t.requireObj.liveMust,expression:"requireObj.liveMust == 0"}],staticClass:"redRequired"},[t._v("*")]),t._v(t._s(s.name)+" ")]),e("div",{staticClass:"pull-left clearfix rightinput1 followbox flex justify-start flex-wrap",on:{click:function(e){return t.mshowinputap(s.id)}}},[e("img",{staticClass:"pull-right",style:{transform:s.showflag?"rotateZ(90deg)":"unset"},attrs:{src:i("f465")}}),t._l(t.extarr[s.id].keytext,(function(i,a){return e("div",{directives:[{name:"show",rawName:"v-show",value:t.extarr[s.id].value.length,expression:"extarr[childitem.id].value.length"}],key:a,staticClass:"pull-left mr24 mbr24 nowbluebtn"},[t._v(" "+t._s(i)+" ")])})),t.extarr[s.id].value&&t.extarr[s.id].value.length?t._e():e("div",{staticClass:"pull-left color9DB6CF"},[t._v(" 请选择 ")])],2),e("wzh-crminput",{attrs:{selectarr:s.select,nowarr:t.extarr[s.id].keytext,flag:t.extarr[s.id].showflag},on:{setalertap:function(e){return t.setlivemoretap(e,0,a,s.id)}}})],1):t._e(),1==s.type&&"业务直播人员"==s.name&&t.livepersonshow1?e("div",{staticClass:"relative namebox namebox1",on:{click:function(e){return t.livepersontap(3,s.id)}}},[e("van-field",{ref:"personame",refInFor:!0,attrs:{required:0==s.is_must,label:s.name,placeholder:"请选择"+s.name,readonly:""},model:{value:t.extarr[s.id].value,callback:function(e){t.$set(t.extarr[s.id],"value",e)},expression:"extarr[childitem.id].value"}}),e("img",{staticClass:"pull-right cjtimg",style:{transform:t.extarr[s.id].showflag?"rotateZ(90deg)":"unset"},attrs:{src:i("f465")}})],1):t._e(),1==s.type&&"设计直播人员"==s.name&&t.livepersonshow2?e("div",{staticClass:"relative namebox namebox1",on:{click:function(e){return t.livepersontap(2,s.id)}}},[e("van-field",{ref:"personame",refInFor:!0,attrs:{required:0==s.is_must,label:s.name,placeholder:"请选择"+s.name,readonly:""},model:{value:t.extarr[s.id].value,callback:function(e){t.$set(t.extarr[s.id],"value",e)},expression:"extarr[childitem.id].value"}}),e("img",{staticClass:"pull-right cjtimg",style:{transform:t.extarr[s.id].showflag?"rotateZ(90deg)":"unset"},attrs:{src:i("f465")}})],1):t._e(),1==s.type&&"直播人员"==s.name&&t.livepersonshow3?e("div",{staticClass:"relative namebox namebox1",on:{click:function(e){return t.livepersontap(1,s.id)}}},[e("van-field",{ref:"personame",refInFor:!0,attrs:{required:0==s.is_must,label:s.name,placeholder:"请选择"+s.name,readonly:""},model:{value:t.extarr[s.id].value,callback:function(e){t.$set(t.extarr[s.id],"value",e)},expression:"extarr[childitem.id].value"}}),e("img",{staticClass:"pull-right cjtimg",style:{transform:t.extarr[s.id].showflag?"rotateZ(90deg)":"unset"},attrs:{src:i("f465")}})],1):t._e(),1==s.type&&"community_name"==s.keyname?e("div",{staticClass:"relative namebox namebox1"},[e("van-field",{ref:"personame",refInFor:!0,attrs:{required:0==s.is_must,label:s.name,placeholder:"请输入"+s.name},on:{blur:t.blurcommunitytap,input:function(e){return t.checkContent(s.id,s)}},model:{value:t.extarr[s.id].value,callback:function(e){t.$set(t.extarr[s.id],"value",e)},expression:"extarr[childitem.id].value"}}),t.communityarr&&t.communityarr.length?e("div",{staticClass:"layercommunity"},t._l(t.communityarr,(function(i){return e("div",{staticClass:"ellipsis",on:{click:function(e){return t.setcommunitytap(i)}}},[t._v(" "+t._s(i.name)+" ")])})),0):t._e()],1):t._e(),1==s.type&&"房屋位置"==s.name?e("div",{staticClass:"relative namebox namebox1",on:{click:function(e){t.showlocation=!0,t.extid=s.id}}},[e("van-field",{ref:"personame",refInFor:!0,attrs:{required:0==s.is_must,label:s.name,placeholder:"请填写房屋所在位置",readonly:""},model:{value:t.extarr[s.id].value,callback:function(e){t.$set(t.extarr[s.id],"value",e)},expression:"extarr[childitem.id].value"}}),e("img",{staticClass:"pull-right cjtimg",style:{transform:t.extarr[s.id].showflag?"rotateZ(90deg)":"unset"},attrs:{src:i("f465")}})],1):t._e(),1==s.type&&"姓名"!=s.name&&"业务直播人员"!=s.name&&"设计直播人员"!=s.name&&"直播人员"!=s.name&&"房屋位置"!=s.name&&"community_name"!=s.keyname?e("div",{staticClass:"relative namebox namebox1"},[e("van-field",{ref:"personame",refInFor:!0,attrs:{required:0==s.is_must,label:s.name,placeholder:"请输入"+s.name},on:{change:function(e){return t.checkContent(s.id,s)}},model:{value:t.extarr[s.id].value,callback:function(e){t.$set(t.extarr[s.id],"value",e)},expression:"extarr[childitem.id].value"}})],1):t._e(),2==s.type&&"手机号"==s.name?e("div",{staticClass:"relative namebox mustbox"},[e("van-field",{attrs:{label:s.name,name:"validator",required:"",pattern:"[0-9]*",type:"number",placeholder:"请输入"+s.name,"right-icon":"add-o"},on:{"click-right-icon":t.addSparePhone},model:{value:t.phonenum,callback:function(e){t.phonenum=e},expression:"phonenum"}})],1):t._e(),t.sparePhone1&&2==s.type&&"手机号"==s.name?e("div",{staticClass:"relative namebox mustbox",on:{click:t.phonenum1tap}},[e("van-field",{ref:"phonenum12",refInFor:!0,attrs:{label:"备用手机号1",pattern:"[0-9]*",type:"number",placeholder:"请输入手机号","right-icon":"delete-o"},on:{change:function(e){return t.checkPhone(2)},"click-right-icon":function(e){return t.delSparePhone(1)}},model:{value:t.phonenum1,callback:function(e){t.phonenum1=e},expression:"phonenum1"}})],1):t._e(),t.sparePhone2&&2==s.type&&"手机号"==s.name?e("div",{staticClass:"relative namebox mustbox",on:{click:t.phonenum2tap}},[e("van-field",{ref:"phonenum22",refInFor:!0,attrs:{label:"备用手机号"+(t.sparePhone1?2:1),pattern:"[0-9]*",type:"number",placeholder:"请输入手机号","right-icon":"delete-o"},on:{change:function(e){return t.checkPhone(3)},"click-right-icon":function(e){return t.delSparePhone(2)}},model:{value:t.phonenum2,callback:function(e){t.phonenum2=e},expression:"phonenum2"}})],1):t._e(),2==s.type&&"手机号"!=s.name?e("div",{staticClass:"relative namebox mustbox"},[e("van-field",{attrs:{label:s.name,required:0==s.is_must,pattern:"[0-9]*",type:"number",placeholder:"请输入"+s.name},model:{value:t.extarr[s.id].value,callback:function(e){t.$set(t.extarr[s.id],"value",e)},expression:"extarr[childitem.id].value"}}),e("span",{staticClass:"talktimespan"},[t._v(t._s(s.unity))])],1):t._e(),3==s.type&&2==s.select.length&&"性别"==s.name?e("div",{staticClass:"sexbox relative bdrbt1D4E4ED clearfix font28"},[e("div",{staticClass:"pull-left leftlabel relative"},[e("span",{directives:[{name:"show",rawName:"v-show",value:0==s.is_must,expression:"childitem.is_must == 0"}],staticClass:"redRequired"},[t._v("*")]),t._v(t._s(s.name)+" ")]),e("div",{staticClass:"pull-left rightinput"},t._l(s.select,(function(i,a){return e("div",{key:i.id,staticClass:"pull-left clearfix",class:{girlbox:a==s.select.length-1},on:{click:function(e){return t.setsextap(i.name)}}},[t.sex==i.name?e("img",{staticClass:"pull-left",attrs:{src:t.$store.state.imgUrl+"/xcx/selected.png"}}):t._e(),t.sex!=i.name?e("img",{staticClass:"pull-left",attrs:{src:t.$store.state.imgUrl+"/xcx/unselected.png"}}):t._e(),e("div",{staticClass:"pull-left"},[t._v(t._s(i.name))])])})),0)]):t._e(),3==s.type&&2==s.select.length&&"性别"!=s.name&&"客户来源"!=s.name?e("div",{staticClass:"sexbox relative bdrbt1D4E4ED clearfix font28"},[e("div",{staticClass:"pull-left leftlabel relative"},[e("span",{directives:[{name:"show",rawName:"v-show",value:0==s.is_must,expression:"childitem.is_must == 0"}],staticClass:"redRequired"},[t._v("*")]),t._v(t._s(s.name)+" ")]),e("div",{staticClass:"pull-left rightinput"},t._l(s.select,(function(i,a){return e("div",{key:i.id,staticClass:"pull-left clearfix",class:{girlbox:a==s.select.length-1},on:{click:function(e){return t.setradiotap(s.id,i.name,i.id)}}},[e("img",{directives:[{name:"show",rawName:"v-show",value:t.extarr[s.id].value==i.id,expression:"extarr[childitem.id].value == selectitem.id"}],staticClass:"pull-left",attrs:{src:t.$store.state.imgUrl+"/xcx/selected.png"}}),e("img",{directives:[{name:"show",rawName:"v-show",value:t.extarr[s.id].value!=i.id,expression:"extarr[childitem.id].value != selectitem.id"}],staticClass:"pull-left",attrs:{src:t.$store.state.imgUrl+"/xcx/unselected.png"}}),e("div",{staticClass:"pull-left"},[t._v(t._s(i.name))])])})),0)]):t._e(),3==s.type&&s.select.length>2&&"客户等级"==s.name?e("div",{staticClass:"customerlevelbox fontfpr font28 color384855 lh40 bdrbt1D4E4ED clearfix"},[e("div",{staticClass:"relative leftlabel pull-left"},[e("span",{directives:[{name:"show",rawName:"v-show",value:0==s.is_must,expression:"childitem.is_must == 0"}],staticClass:"redRequired"},[t._v("*")]),t._v(t._s(s.name)+" ")]),e("div",{staticClass:"clearfix pull-left rightinput"},t._l(s.select,(function(i,a){return e("div",{key:a,staticClass:"everylev pull-left",class:{nowlev:t.level==i.name,mr30:a!=s.select.length-1},on:{click:function(e){return t.setleveltap(i)}}},[t._v(" "+t._s(i.name+"类")+" ")])})),0)]):t._e(),3==s.type&&s.select.length>=1&&"客户来源"==s.name?e("div",{staticClass:"customerlevelbox fontfpr font28 color384855 lh40 bdrbt1D4E4ED clearfix relative"},[e("div",{staticClass:"pull-left relative leftlabel",on:{click:function(e){return t.showinputap(s.id)}}},[e("span",{directives:[{name:"show",rawName:"v-show",value:0==s.is_must,expression:"childitem.is_must == 0"}],staticClass:"redRequired"},[t._v("*")]),t._v(t._s(s.name)+" ")]),e("div",{staticClass:"pull-left clearfix rightinput1",on:{click:function(e){return t.showinputap(s.id)}}},[e("img",{staticClass:"pull-right",style:{transform:s.showflag?"rotateZ(90deg)":"unset"},attrs:{src:i("f465")}}),e("div",{staticClass:"pull-left color9DB6CF",class:{nowbluebtn:t.sourcetext}},[t._v(" "+t._s(t.sourcetext?t.sourcetext:"请选择")+" ")])]),e("wzh-crminput",{attrs:{filterable:!0,selectarr:s.select,nowarr:t.sourcetext,flag:t.extarr[s.id].showflag},on:{setalertap:function(e){return t.setsourcetap(e,0,a,s.id)}}})],1):t._e(),3==s.type&&s.select.length>2&&"客户等级"!=s.name&&"客户来源"!=s.name?e("div",{staticClass:"customerlevelbox fontfpr font28 color384855 lh40 bdrbt1D4E4ED clearfix relative"},[e("div",{staticClass:"pull-left relative leftlabel",on:{click:function(e){return t.showinputap(s.id)}}},[e("span",{directives:[{name:"show",rawName:"v-show",value:0==s.is_must,expression:"childitem.is_must == 0"}],staticClass:"redRequired"},[t._v("*")]),t._v(t._s(s.name)+" ")]),e("div",{staticClass:"pull-left clearfix rightinput1",on:{click:function(e){return t.showinputap(s.id)}}},[e("img",{staticClass:"pull-right",style:{transform:s.showflag?"rotateZ(90deg)":"unset"},attrs:{src:i("f465")}}),e("div",{staticClass:"pull-left color9DB6CF",class:{nowbluebtn:t.extarr[s.id].keytext}},[t._v(" "+t._s(t.extarr[s.id].keytext?t.extarr[s.id].keytext:"请选择")+" ")])]),e("wzh-crminput",{attrs:{selectarr:s.select,nowarr:t.extarr[s.id].keytext,flag:t.extarr[s.id].showflag},on:{setalertap:function(e){return t.setmsgtap(e,0,a,s.id)}}})],1):t._e(),4==s.type&&"直播情况"!=s.name?e("div",{staticClass:"customerlevelbox fontfpr font28 color384855 lh40 bdrbt1D4E4ED clearfix relative flex-row align-center"},[e("div",{staticClass:"pull-left lh40 leftlabel relative",on:{click:function(e){return t.mshowinputap(s.id)}}},[e("span",{directives:[{name:"show",rawName:"v-show",value:0==s.is_must,expression:"childitem.is_must == 0"}],staticClass:"redRequired"},[t._v("*")]),t._v(t._s(s.name)+" ")]),e("div",{staticClass:"pull-left clearfix rightinput1 followbox flex justify-start flex-wrap",on:{click:function(e){return t.mshowinputap(s.id)}}},[e("img",{staticClass:"pull-right",style:{transform:s.showflag?"rotateZ(90deg)":"unset"},attrs:{src:i("f465")}}),t._l(t.extarr[s.id].keytext,(function(i,a){return e("div",{directives:[{name:"show",rawName:"v-show",value:t.extarr[s.id].keytext.length,expression:"extarr[childitem.id].keytext.length"}],key:a,staticClass:"pull-left mr24 mbr24 nowbluebtn"},[t._v(" "+t._s(i)+" ")])})),t.extarr[s.id].keytext&&t.extarr[s.id].keytext.length?t._e():e("div",{staticClass:"pull-left color9DB6CF"},[t._v(" 请选择 ")])],2),e("wzh-crminput",{attrs:{selectarr:s.select,nowarr:t.extarr[s.id].keytext,flag:t.extarr[s.id].showflag},on:{setalertap:function(e){return t.setmoretap(e,0,a,s.id)}}})],1):t._e(),5==s.type&&"预计交房时间"==s.name&&t.deliveryshow?e("div",{staticClass:"calendarbox clearfix lh40 fontfpr font28 bdrbt1D4E4ED",on:{click:function(e){return t.setimetap(s.id,s.name)}}},[e("div",{staticClass:"relative leftlabel pull-left"},[e("span",{directives:[{name:"show",rawName:"v-show",value:0==s.is_must,expression:"childitem.is_must == 0"}],staticClass:"redRequired"},[t._v("*")]),t._v(t._s(s.name)+" ")]),e("div",{staticClass:"pull-left clearfix rightinput"},[e("div",{staticClass:"pull-left",class:{color9DB6CF:!t.extarr[s.id].value,color384855:t.extarr[s.id].value}},[t._v(" "+t._s(t.extarr[s.id].value?t.extarr[s.id].value:"请选择"+s.name)+" ")]),e("img",{staticClass:"pull-right",attrs:{src:t.$store.state.imgUrl+"/xcx/caleimg.png"}})])]):t._e(),5==s.type&&"live_broadcast_date"==s.keyname&&(t.livepersonshow1||t.livepersonshow2||t.livepersonshow3)?e("div",{staticClass:"calendarbox clearfix lh40 fontfpr font28 bdrbt1D4E4ED",on:{click:function(e){return t.setimetap(s.id,s.name,s.keyname)}}},[e("div",{staticClass:"relative leftlabel pull-left"},[e("span",{directives:[{name:"show",rawName:"v-show",value:0==s.is_must,expression:"childitem.is_must == 0"}],staticClass:"redRequired"},[t._v("*")]),t._v(t._s(s.name)+" ")]),e("div",{staticClass:"pull-left clearfix rightinput"},[e("div",{staticClass:"pull-left",class:{color9DB6CF:!t.extarr[s.id].value,color384855:t.extarr[s.id].value}},[t._v(" "+t._s(t.extarr[s.id].value?t.extarr[s.id].value:"请选择"+s.name)+" ")]),e("img",{staticClass:"pull-right",attrs:{src:t.$store.state.imgUrl+"/xcx/caleimg.png"}})])]):t._e(),5==s.type&&"预计交房时间"!=s.name&&"live_broadcast_date"!=s.keyname?e("div",{staticClass:"calendarbox clearfix lh40 fontfpr font28 bdrbt1D4E4ED",on:{click:function(e){return t.setimetap(s.id,s.name,s.keyname)}}},[e("div",{staticClass:"relative leftlabel pull-left"},[e("span",{directives:[{name:"show",rawName:"v-show",value:0==s.is_must,expression:"childitem.is_must == 0"}],staticClass:"redRequired"},[t._v("*")]),t._v(t._s(s.name)+" ")]),e("div",{staticClass:"pull-left clearfix rightinput"},[e("div",{staticClass:"pull-left",class:{color9DB6CF:!t.extarr[s.id].value,color384855:t.extarr[s.id].value}},[t._v(" "+t._s(t.extarr[s.id].value?t.extarr[s.id].value:"请选择"+s.name)+" ")]),e("img",{staticClass:"pull-right",attrs:{src:t.$store.state.imgUrl+"/xcx/caleimg.png"}})])]):t._e(),6==s.type?e("div",{staticClass:"upload-image-box"},[e("div",{staticClass:"upload-image-cell",on:{click:function(e){return t.uploadImage(s)}}},[e("div",{staticClass:"upload-image-label relative"},[e("span",{directives:[{name:"show",rawName:"v-show",value:0==s.is_must,expression:"childitem.is_must == 0"}],staticClass:"redRequired-img"},[t._v("*")]),t._v(t._s(s.name)+" ")]),t._m(0,!0),e("input",{attrs:{type:"file",hidden:"",accept:"image/*",id:"uploadFile"+s.id},on:{change:function(e){return t.getImageFile(e,s)}}})]),t.extarr[s.id].value.length?e("div",{staticClass:"upload-image-list"},["pc"==t.plaform?t._l(t.extarr[s.id].value,(function(i,a){return e("div",{key:a,staticClass:"imgItem"},[e("img",{attrs:{src:i.img,width:"100%",height:"100%",alt:""}}),e("div",{staticClass:"wzh_img_del",on:{click:function(e){return t.imageDel(a,s)}}},[e("van-icon",{staticClass:"del_icon",staticStyle:{color:"#fff"},attrs:{name:"cross"}})],1)])})):[2==t.isIosOrAndroid?t._l(t.extarr[s.id].value,(function(i,a){return e("div",{key:a,staticClass:"imgItem"},[e("img",{attrs:{src:i.img?i.img:i.base64Data,width:"100%",height:"100%",alt:""}}),e("div",{staticClass:"wzh_img_del",on:{click:function(e){return t.imageDel(a,s)}}},[e("van-icon",{staticClass:"del_icon",staticStyle:{color:"#fff"},attrs:{name:"cross"}})],1)])})):t._l(t.extarr[s.id].value,(function(i,a){return e("div",{key:a,staticClass:"imgItem"},[e("img",{attrs:{src:i.img?i.img:i.localId,width:"100%",height:"100%",alt:""}}),e("div",{staticClass:"wzh_img_del",on:{click:function(e){return t.imageDel(a,s)}}},[e("van-icon",{staticClass:"del_icon",staticStyle:{color:"#fff"},attrs:{name:"cross"}})],1)])}))]],2):t._e()]):t._e()])})),0)]),e("checkDesignerVue",{directives:[{name:"show",rawName:"v-show",value:t.showlive,expression:"showlive"}],ref:"liveperson",attrs:{designerlist:JSON.stringify(t.selectlivepersonarr),title:"选择直播人员",select:t.selectype},on:{onSearch:t.livenametap,submit:t.onlivepersonConfirm}}),e("van-calendar",{ref:"calendar1",attrs:{"show-confirm":!1,"min-date":t.minDate,"max-date":t.maxDate,color:"#249EFB"},on:{confirm:t.ontrimConfirm},model:{value:t.trimshow,callback:function(e){t.trimshow=e},expression:"trimshow"}}),t.showlocation?e("div",{staticClass:"layerbox"},[t.showlocation?e("van-area",{staticClass:"locationdiv",attrs:{value:t.adsCode,title:"选择房屋位置","area-list":t.areaList},on:{cancel:function(e){t.showlocation=!1},confirm:t.locationtap}}):t._e()],1):t._e(),e("van-popup",{attrs:{position:"bottom"},model:{value:t.showdateTime,callback:function(e){t.showdateTime=e},expression:"showdateTime"}},[e("van-datetime-picker",{attrs:{type:"datetime",title:"选择完整时间","min-date":t.minDate,"max-date":t.maxDate},on:{cancel:function(e){t.showdateTime=!1},confirm:t.getConfirmdate},model:{value:t.currentDate,callback:function(e){t.currentDate=e},expression:"currentDate"}})],1)],1)}),m=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"upload-image-icon"},[e("img",{attrs:{src:i("9ea2"),width:"20px",alt:""}})])}],u=(i("d1cf"),i("ee83")),h=(i("8a58"),i("e41f")),p=(i("db2c"),i("1125")),f=i("11fe"),v=i("41ae"),g=i("92d9"),y=i("434d"),x=i("5a0c"),b=i.n(x),_=i("5880"),w={name:"addcrmmsg",props:["cid","customertype","customfield","customerinfo"],data(){return{fieldSetting:{},crmvalarr:[],extarr:{},requireObj:{},personame:"",phonenum:"",phonenum1:"",phonenum2:"",fileName:"",currentDate:new Date,sparePhone1:!1,sparePhone2:!1,showdateTime:!1,sex:"男",level:"",source:"",sourcetext:"",livearr:[],selectlivepersonarr:[],showlocation:!1,showlive:!1,selectype:1,maxDate:new Date(2050,0,31),minDate:new Date(2016,0,1),trimshow:!1,extid:"",extext:"",adsCode:"",areaList:y["a"],communityarr:null}},components:{wzhCrminput:v["a"],checkDesignerVue:g["a"],[p["a"].name]:p["a"],[h["a"].name]:h["a"],[u["a"].name]:u["a"]},watch:{customfield:{handler(t){this.fieldfun()},immediate:!0},phonenum1:{handler(t){t?(this.sparePhone1=!0,this.phonenum2||this.isEdit||(this.sparePhone2=!1)):this.sparePhone1=!1},immediate:!0},phonenum2:{handler(t){t?(this.sparePhone2=!0,this.phonenum1||(this.sparePhone1=!1)):this.isEdit||(this.sparePhone2=!1)},immediate:!0},talktime(t){t&&(this.talktime=t.replace(/[^\d.]/g,""))},showlive(t){this.setScrollState(t)},fieldSetting:{handler(t){t.province_city_code&&0==this.customertype&&setTimeout(()=>{this.crmvalarr.forEach((t,e)=>{"house_location"==t.keyname&&(this.adsCode=this.fieldSetting.province_city_code,this.extarr[t.id].value=this.fieldSetting.province_city)}),this.$forceUpdate()},1500)},immediate:!0},customerinfo:{handler(t){t.id&&this.customerfun(t)},immediate:!0}},computed:{...Object(_["mapState"])({platform:t=>t.platform}),plaform(){return"browser"==this.platform||"windows"==this.platform||"mac"==this.platform?"pc":"mobile"},isIosOrAndroid(){var t=navigator.userAgent,e=t.indexOf("Android")>-1||t.indexOf("Adr")>-1;if(e)return 1;var i=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return i?2:0},livepersonshow1(){for(let t=0;t<this.livearr.length;t++)if(this.livearr[t].indexOf("业务直播")>=0)return!0;return!1},livepersonshow2(){for(let t=0;t<this.livearr.length;t++)if(this.livearr[t].indexOf("设计直播")>=0)return!0;return!1},livepersonshow3(){for(let t=0;t<this.livearr.length;t++)if(this.livearr[t].indexOf("一对多直播")>=0)return!0;return!1},deliveryshow(){for(let t in this.extarr)if("house_type"==this.extarr[t].keyname)return"期房"==this.extarr[t].keytext}},methods:{...Object(_["mapMutations"])(["setScrollState"]),checkContent(t,e){"square"==e.keyname?(this.extarr[t].value=this.extarr[t].value.replace(/^\./g,""),this.extarr[t].value=this.extarr[t].value.replace(/[^\d.]/g,""),this.extarr[t].value=this.changeInput(this.extarr[t].value),this.extarr[t].value=Math.round(100*this.extarr[t].value)/100):"community_name"==e.keyname&&this.getCommunityName(this.extarr[t].value)},changeInput:function(t=""){let e=t.replace(/[^\d.]/g,""),i=e.split(".")||[];return i.length>2&&(e=[i.splice(0,1).join(""),".",i.join("")].join("")),i=e.split(".")||[],i.length>=2&&(0==Number(i[1])||""==Number(i[1])&&(e=i[0])),+e||0},getCommunityName(t){let e={name:t};Object(f["p"])(e).then(t=>{0==t.data.code&&(this.communityarr=t.data.data)})},blurcommunitytap(){setTimeout(()=>{this.communityarr=null},600)},setcommunitytap(t){this.crmvalarr.forEach((e,i)=>{"community_name"==e.keyname&&(this.extarr[e.id].value=t.name),"house_delivery_time"==e.keyname&&(this.extarr[e.id].value=t.duetime),"house_location"==e.keyname&&(this.extarr[e.id].value=t.location)}),this.communityarr=null},imageDel(t,e){this.extarr[e.id].value.splice(t,1)},uploadImage(t){let e="uploadFile"+t.id;document.querySelector("#"+e).click()},uploadALY(t){const e=this;return new Promise((function(i,s){let a=new OSS({region:"oss-cn-hangzhou",accessKeyId:"LTAI5tHjWupJSCAycy2yVbQZ",accessKeySecret:"eNFicm77Cfq3u7ZnQyw1urFmFNpf3w",bucket:"zyzswzh",secure:!0});var r=new Date;let n=r.getFullYear()+""+(1*r.getMonth()+1)+r.getDate();e.fileName="crm/"+n+"/"+Date.now()+".jpeg",a.multipartUpload(e.fileName,t).then((function(t){i(t.name)})).catch((function(t){s(t)}))}))},getImageFile(t,e){let i=window.URL||window.webkitURL,s=t.target.files[0];this.uploadALY(s).then(t=>{this.extarr[e.id].value.push({img:i.createObjectURL(s),url:t,serverId:"",localId:""});let a="uploadFile"+e.id;document.querySelector("#"+a).value=""})},livenametap(t){t&&(t.val||""==t.val)&&this.livepersonfun(t.val)},setimetap(t,e,i){if(this.extid=t,this.extext=e,"sign_time"==i)return void(this.showdateTime=!0);this.trimshow=!0;let s=new Date;if("add_wechat_time"==i){let t="";t=1==this.fieldSetting.add_wechat_day_switch?(new Date).getTime()-24*(this.fieldSetting.add_wechat_day-1)*60*60*1e3:new Date(2016,0,1),this.minDate=new Date(t),this.maxDate=new Date}else"group_building_date"==i||"online_meet_checked"==i||"teahouse_meet"==i?this.maxDate=new Date:(this.minDate=new Date(2016,0,1),this.maxDate=new Date(2050,0,31));this.$nextTick(()=>{this.$refs.calendar1.reset(new Date(s.getFullYear(),s.getMonth(),s.getDate()))})},locationtap(t){var e=[];e.push(t[0].name),e.push(t[1].name),e.push(t[2].name),this.extarr[this.extid].value=e.join("/"),this.showlocation=!1},livepersontap(t,e){this.$refs.liveperson.keyword="",this.livepersonfun(""),this.extid=e,this.selectype=t,this.showlive=!0},ontrimConfirm(t){let e,i;this.trimshow=!1,this.extarr[this.extid].value=this.oformatDate(t);for(let s in this.extarr)"house_delivery_time"==this.extarr[s].keyname&&(i=this.extarr[s].value),"plan_deco_time"==this.extarr[s].keyname&&(e=this.extarr[s].value);if("预计装修时间"==this.extext&&i){let t=this.dayDiff(new Date(i),new Date(e));t>0&&(this.$toast("装修时间要晚于与交房时间!"),this.extarr[this.extid].value="")}if("预计交房时间"==this.extext&&e){let t=this.dayDiff(new Date(i),new Date(e));t>0&&(this.$toast("交房时间要早于与装修时间!"),this.extarr[this.extid].value="")}},getConfirmdate(t){this.showdateTime=!1,this.extarr[this.extid].value=b()(t).format("YYYY/MM/DD HH:mm")},oformatDate(t){return`${t.getFullYear()}/${t.getMonth()+1}/${t.getDate()}`},dayDiff(t,e){let i=Math.ceil((t.getTime()-e.getTime())/864e5);return i},onlivepersonConfirm(t){this.showlive=!1,1==this.selectype?this.extarr[this.extid].value=t.map(t=>t.name).join(","):this.extarr[this.extid].value=t},livepersonfun(t){const e=this;let i={name:t};Object(f["m"])(i).then(t=>{0==t.data.code&&(e.fieldSetting=t.data.data,e.selectlivepersonarr=t.data.data.employees)})},phonenum1tap(){this.$refs.phonenum12.length>0&&this.$refs.phonenum12[0].focus()},phonenum2tap(){this.$refs.phonenum22.length>0&&this.$refs.phonenum22[0].focus()},addSparePhone(){this.sparePhone1?this.sparePhone2?this.$toast("只能添加两个备用手机号"):this.sparePhone2=!0:(this.phonenum2&&(this.isEdit=!0,this.phonenum1=JSON.parse(JSON.stringify(this.phonenum2)),this.phonenum2="",setTimeout(()=>{this.isEdit=!1},1e3)),this.sparePhone1=!0)},delSparePhone(t){1==t?(this.sparePhone1=!1,this.phonenum1=""):(this.sparePhone2=!1,this.phonenum2="")},checkPhone(t){if(1==t){if(this.phonenum&&this.phonenum1&&this.phonenum1==this.phonenum)return this.$toast("手机号不能重复!"),void(this.phonenum1="");if(this.phonenum&&this.phonenum2&&this.phonenum2==this.phonenum)return this.$toast("手机号不能重复!"),void(this.phonenum2="");this.phonenum=this.phonenum.replace(/\s*/g,""),this.isPhoneNum(this.phonenum)||(this.$toast("手机号格式不对!"),this.phonenum="")}else if(2==t&&this.sparePhone1){if(this.phonenum&&this.phonenum1&&this.phonenum1==this.phonenum)return this.$toast("手机号不能重复!"),void(this.phonenum1="");if(this.phonenum2&&this.phonenum1&&this.phonenum1==this.phonenum2)return this.$toast("手机号不能重复!"),void(this.phonenum1="");this.phonenum1=this.phonenum1.replace(/\s*/g,""),this.isPhoneNum(this.phonenum1)||(this.$toast("手机号格式不对!"),this.phonenum1="")}else{if(this.phonenum&&this.phonenum2&&this.phonenum2==this.phonenum)return this.$toast("手机号不能重复!"),void(this.phonenum2="");if(this.phonenum2&&this.phonenum1&&this.phonenum1==this.phonenum2)return this.$toast("手机号不能重复!"),void(this.phonenum2="");this.phonenum2=this.phonenum2.replace(/\s*/g,""),!this.isPhoneNum(this.phonenum2)&&this.sparePhone2&&(this.$toast("手机号格式不对!"),this.phonenum2="")}},isPhoneNum:function(t){var e=/^(((13[0-9]{1})|(14[0-9]{1})|(15[0-9]{1})|(16[0-9]{1})|(17[0-9]{1})|(18[0-9]{1})|(19[0-9]{1}))+\d{8})$/;return!!e.test(t)},clueDetailfun(){let t={id:this.cid};Object(f["k"])(t).then(t=>{0==t.data.code&&(this.personame=t.data.data.nickname)})},customerfun(t){this.customerobj=t,this.phonenum=t.phone,this.phonenum1=t.phone1,this.phonenum2=t.phone2,this.sex=t.sex&&2==t.sex?"女":"男"},fieldfun(){this.livepersonfun();for(let t in this.customfield)if("姓名"==this.customfield[t].name?(this.requireObj.nameMust=this.customfield[t].is_must,this.personame=this.customfield[t].value):"手机号"==this.customfield[t].name?this.phonenum=this.customfield[t].value?this.customfield[t].value:this.phonenum:"客户等级"==this.customfield[t].name?(this.requireObj.levelMust=this.customfield[t].is_must,this.level=this.customfield[t].valname):"客户来源"==this.customfield[t].name&&(this.requireObj.sourceMust=this.customfield[t].is_must,this.source=this.customfield[t].value,this.sourcetext=this.customfield[t].valname),"直播情况"==this.customfield[t].name&&(this.requireObj.liveMust=this.customfield[t].is_must,this.livearr=this.customfield[t].valname?this.customfield[t].valname.split(","):[]),"姓名"!=this.customfield[t].name&&"手机号"!=this.customfield[t].name&&"性别"!=this.customfield[t].name&&"客户等级"!=this.customfield[t].name&&"add_wechat_type"!=this.customfield[t].keyname){let e,i;e=4!=this.customfield[t].type?this.customfield[t].value?this.customfield[t].value:"":this.customfield[t].value?this.customfield[t].value.split(","):[],i=4!=this.customfield[t].type?this.customfield[t].valname?this.customfield[t].valname:"":this.customfield[t].valname?this.customfield[t].valname.split(","):[],"直播人员"==this.customfield[t].name&&(e=this.customfield[t].value&&0!=this.customfield[t].value.length?Array.isArray(this.customfield[t].value)?this.customfield[t].value.join(","):this.customfield[t].value:""),6==this.customfield[t].type&&(e=Array.isArray(this.customfield[t].value)&&this.customfield[t].value.length?this.customfield[t].value.map(t=>({img:t.oss_url,url:t.url,serverId:"",localId:""})):[]);let s={keyname:this.customfield[t].keyname,value:e,keytext:i,type:this.customfield[t].type,showflag:!1,isMust:this.customfield[t].is_must};this.$set(this.extarr,this.customfield[t].id,s)}else if("add_wechat_type"==this.customfield[t].keyname){let e=this.customfield[t].value,i=this.customfield[t].valname,s={id:this.customfield[t].id,keyname:this.customfield[t].keyname,name:this.customfield[t].name,value:e,keytext:i,showflag:!1,type:this.customfield[t].type,select:this.customfield[t].select,isMust:this.customfield[t].is_must};this.$set(this.extarr,this.customfield[t].id,s)}this.crmvalarr=this.customfield},setleveltap(t){this.level=t.name},showinputap(t){for(let e in this.extarr)e!=t&&this.$set(this.extarr[e],"showflag",!1);this.extarr[t].showflag=!this.extarr[t].showflag},setsourcetap(t,e,i,s){if(!t)return this.extarr[s].showflag=!1,!1;this.source=t.id,this.sourcetext=t.text,this.extarr[s].value=t.id,this.extarr[s].keytext=t.text,this.extarr[s].showflag=!1},setmsgtap(t,e,i,s){if(!t)return this.extarr[s].showflag=!1,!1;this.extarr[s].value=t.id,this.extarr[s].keytext=t.text,this.extarr[s].showflag=!1},mshowinputap(t){for(let e in this.extarr)e!=t&&this.$set(this.extarr[e],"showflag",!1);this.extarr[t].showflag=!this.extarr[t].showflag},setlivemoretap(t,e,i,s){let a=!1;if(!t)return this.extarr[s].showflag=!1,!1;for(let r in this.extarr[s].keytext)this.extarr[s].keytext[r]==t.text&&(this.extarr[s].keytext.splice(r,1),this.extarr[s].value.splice(r,1),this.livearr.splice(r,1),a=!0);a||(this.extarr[s].keytext.push(t.text),this.extarr[s].value.push(t.id),this.livearr.push(t.text)),this.extarr[s].showflag=!1},setmoretap(t,e,i,s){let a=!1;if(!t)return this.extarr[s].showflag=!1,!1;for(let r in this.extarr[s].keytext)this.extarr[s].keytext[r]==t.text&&(this.extarr[s].keytext.splice(r,1),this.extarr[s].value.splice(r,1),a=!0);a||(this.extarr[s].keytext.push(t.text),this.extarr[s].value.push(t.id)),this.extarr[s].showflag=!1},setsextap(t){this.sex=t},setradiotap(t,e,i){this.$set(this.extarr[t],"value",i),this.$set(this.extarr[t],"keytext",e)}}},C=w,k=(i("4691"),i("2877")),A=Object(k["a"])(C,d,m,!1,null,"09db3b5a",null),T=A.exports,j={components:{[r["a"].name]:r["a"],[l["a"].name]:l["a"],[c["a"].name]:c["a"],xqCustomField:T},props:["dialog","rtype","customerobj","nidx","cid","nowitem","manager","crmSettingObj"],data(){return{loading:!1,showCalendar:!1,trackDateArr:[{name:"今天",type:1},{name:"1天后",type:2},{name:"3天后",type:3},{name:"7天后",type:4},{name:"其他时间",type:5}],clueTypeArr:[{name:"电话",type:"1"},{name:"短信",type:"2"},{name:"微信",type:"3"},{name:"见面",type:"4"},{name:"其它",type:"5"}],clueStateArr:[{name:"待确认",state:"1",show:!0},{name:"有效",state:"2",show:!0},{name:"无效",state:"3",show:!0}],trackArr:[],visitlogarr:[],customField:[],schedulelist:[],visitcount:0,form:{clueType:"1",clueState:"2",remark:"",nextdate:"1",next_contact_date:"",media_id1:[]}}},watch:{dialog:{handler(t){t&&"1"==this.rtype&&(this.getVisitField(),this.getVisitClueTag(),this.tracklog(),this.initForm())},immediate:!0},customerobj:{handler(t){t.id&&("待确认"!=t.state&&t.state?"无效"==t.state?this.form.clueState="3":this.form.clueState="2":this.form.clueState="1")},immediate:!0},crmSettingObj:{handler(t){t&&Object.keys(t).length&&this.initForm()},immediate:!0}},computed:{...Object(_["mapState"])({platform:t=>t.platform,clientype:t=>t.clientype,imgUrl:t=>t.imgUrl}),plaform(){return"browser"==this.platform||"windows"==this.platform||"mac"==this.platform?"pc":"mobile"},isIosOrAndroid(){var t=navigator.userAgent,e=t.indexOf("Android")>-1||t.indexOf("Adr")>-1;if(e)return 1;var i=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return i?2:0},currentState(){return"1"==this.form.clueState?"待确认":"2"==this.form.clueState?"待确认"!=this.customerobj.state&&this.customerobj.state?"回访":"未到访":"无效"},isShowNextVisit(){return this.customerobj.revisit_time&&"0000-00-00"!=this.customerobj.revisit_time&&this.crmSettingObj&&0==this.crmSettingObj.next_visit_time_is_ok}},mounted(){const t=this;window.getimagefile=function(e){if(e){let i=e.split(","),s=i.map(t=>({img:"",url:t}));t.form.media_id1.push(...s)}}},methods:{initForm(){this.form={nextdate:1,next_contact_date:b()(new Date).format("YYYY/MM/DD"),media_id1:[],clueType:"1",clueState:this.form.clueState||"1",remark:""},this.crmSettingObj&&0==this.crmSettingObj.next_visit_time_is_ok&&(this.form.nextdate="",this.form.next_contact_date="")},getStateName(t){return"已交定"==t&&"vL0CQQ"!=this.clientype&&"T2qxut"!=this.clientype&&"7Qn1dz"!=this.clientype?"已签单":"已签单"==t&&"vL0CQQ"!=this.clientype&&"T2qxut"!=this.clientype&&"7Qn1dz"!=this.clientype?"已转单":t},getFollowType(t){return 1==t?"跟踪方式:电话":2==t?"跟踪方式:短信":3==t?"跟踪方式:微信":4==t?"跟踪方式:见面":"跟踪方式:其它"},switchClueType(t){this.form.clueType=t},switchClueState(t){this.form.clueState=t},switchTrackMsg(t){this.form.remark="自定义"==t?"":t},switchDate(t){if(this.crmSettingObj&&0==this.crmSettingObj.next_visit_time_is_ok&&this.form.nextdate==t)return this.form.nextdate="",this.form.next_contact_date="",!1;if(this.form.nextdate=t,5==t)return this.schedulefun(),!1;let e=new Date,i=e.getTime(),s=864e5,a=1==t?0:2==t?1:3==t?3:t=7,r=i+a*s,n=new Date(r).getFullYear(),o=new Date(r).getMonth(),c=new Date(r).getDate(),l=1*o+1<10?"0"+(1*o+1):1*o+1,d=1*c<10?"0"+c:c;this.form.next_contact_date=n+"/"+l+"/"+d},onConfirm(t){this.form.next_contact_date=b()(t).format("YYYY/MM/DD"),this.showCalendar=!1},imageDel(t){this.form.media_id1.splice(t,1)},playAudio(t,e,i){if(e.play)e.play=!1,this.$refs[t][0].pause();else{e.play=!0,this.$refs[t][0].play();for(let t=0;t<this.visitlogarr.length;t++)this.visitlogarr[t].id!=e.id&&this.visitlogarr[t].wisdom_url&&(this.visitlogarr[t].play=!1,document.querySelector("#audioEle"+this.visitlogarr[t].id).pause())}},collapseFunc(t){t.collapse=!t.collapse},lookTap:function(t,e){Object(c["a"])({images:t,startPosition:e})},cancelNextVisitFun(){this.$toast.loading({message:"加载中...",forbidClick:!0,duration:0}),Object(f["i"])({id:this.cid}).then(t=>{this.$toast.clear(),0==t.data.code&&(this.$toast("已取消上次跟进的回访时间"),this.$emit("updateMsg",{state:2,cid:this.cid}),this.tracklog())}).catch(t=>{this.$toast.clear()})},getVisitField(){Object(f["R"])({id:this.cid}).then(t=>{0==t.data.code&&(this.customField=t.data.data)})},getVisitClueTag(){Object(f["Q"])({}).then(t=>{0==t.data.code&&(this.trackArr=t.data.data,this.trackArr.unshift("自定义"))})},formatter(t){const e=t.date.getMonth()+1,i=t.date.getDate(),s=t.date.getFullYear(),a=s+"-"+e+"-"+i;let r=this.schedulelist;for(let n in r){let e=n.split(" ");a==e[0]&&(t.topInfo=r[n])}return t},schedulefun:function(){const t=this;let e=new Date,i=1*e.getMonth()+1,s={date:e.getFullYear()+"-"+(i<10?"0"+i:i)};Object(f["rb"])(s).then((function(e){0==e.data.code&&(t.schedulelist=e.data.data)}))},checkParamsState(){let t=this,e=!0,i=this.$refs.addcrmmsg.crmvalarr,s=this.$refs.addcrmmsg.extarr;for(let a=0;a<i.length;a++){if("name"==i[a].keyname&&0==i[a].status&&0==i[a].is_must&&!t.$refs.addcrmmsg.personame)return this.$toast(i[a].name+"必填!"),e=!1,!1;if("sex"==i[a].keyname&&0==i[a].status&&0==i[a].is_must&&!this.$refs.addcrmmsg.sex)return this.$toast(i[a].name+"必填!"),e=!1,!1;if("level"==i[a].keyname&&0==i[a].status&&0==i[a].is_must&&!t.$refs.addcrmmsg.level)return this.$toast(i[a].name+"必填!"),e=!1,!1;if("source_id"==i[a].keyname&&0==i[a].status&&0==i[a].is_must&&!t.$refs.addcrmmsg.source)return this.$toast(i[a].name+"必填!"),e=!1,!1;if("house_delivery_time"==i[a].keyname&&0==i[a].status&&0==i[a].is_must){let t="";if(Object.keys(s).forEach(e=>{"house_type"==s[e].keyname&&(t=s[e].keytext)}),"期房"==t&&!s[i[a].id].value)return this.$toast(i[a].name+"必填!"),!1}else if("live_broadcast_business"==i[a].keyname&&0==i[a].status&&0==i[a].is_must){let t="";if(Object.keys(s).forEach(e=>{"live_broadcast"==s[e].keyname&&(t=s[e].keytext.filter(t=>"1对1业务直播"==t))}),t.length&&!s[i[a].id].value)return this.$toast(i[a].name+"必填!"),!1}else if("live_broadcast_design"==i[a].keyname&&0==i[a].status&&0==i[a].is_must){let t="";if(Object.keys(s).forEach(e=>{"live_broadcast"==s[e].keyname&&(t=s[e].keytext.filter(t=>"1对1设计直播"==t))}),t.length&&!s[i[a].id].value)return this.$toast(i[a].name+"必填!"),!1}else if("live_broadcast_personnel"==i[a].keyname&&0==i[a].status&&0==i[a].is_must){let t="";if(Object.keys(s).forEach(e=>{"live_broadcast"==s[e].keyname&&(t=s[e].keytext.filter(t=>"一对多直播"==t))}),t.length&&!s[i[a].id].value)return this.$toast(i[a].name+"必填!"),!1}else if(0==i[a].status&&0==i[a].is_must&&s[i[a].id]&&(Array.isArray(s[i[a].id].value)&&!s[i[a].id].value.length||!s[i[a].id].value))return this.$toast(i[a].name+"必填!"),e=!1,!1}return e},submitData(){let t=this.currentState;("无效"==t||this.checkParamsState())&&(this.loading=!0,this.addrecordfun())},addrecordfun:function(t,e){let i=this;var s={customer_id:this.cid,img:"",img1:this.form.media_id1.map(t=>t.url).join(","),delivery_img:"",sign_img:"",media_id:"",weixin_media:!0,media_id1:"",delivery_media_id:"",sign_media_id:"",type:this.form.clueType,remark:this.form.remark,state:this.currentState,next_contact_date:this.form.next_contact_date,aid:"",money:"",deposit_mode:"",package:"",confirm_date:"",number_of_visitors:"",measure_room_img_type:"",talking_order_time:""};1==this.manager?Object(f["pb"])(s).then(t=>{setTimeout(()=>{this.loading=!1},2e3),"0"==t.data.code?(i.$toast(t.data.msg),i.tracklog(i.nowitem.id),"无效"!=s.state&&(this.editcustomermsg(),this.$emit("updateMsg",{state:0,cid:this.cid,data:s})),3==this.form.clueState?this.$emit("updateMsg",{state:1,index:this.nidx}):this.$emit("updateMsg",{state:0,cid:this.cid,data:s}),this.initForm()):i.$toast(t.data.msg)}).catch(t=>{this.loading=!1}):Object(f["c"])(s).then(t=>{setTimeout(()=>{this.loading=!1},2e3),"0"==t.data.code?(i.$toast(t.data.msg),i.tracklog(i.nowitem.id),"无效"!=s.state&&(i.editcustomermsg(),i.$emit("updateMsg",{state:0,cid:i.cid,data:s})),3==i.form.clueState?i.$emit("updateMsg",{state:1,index:i.nidx}):i.$emit("updateMsg",{state:0,cid:i.cid,data:s}),i.initForm()):i.$toast(t.data.msg)}).catch(t=>{this.loading=!1})},editcustomertap(){let t,e=[],i=this.$refs.addcrmmsg.extarr;for(let s in i){let t;"1"==i[s].type||"2"==i[s].type||"5"==i[s].type||"3"==i[s].type?t="live_broadcast_personnel"==i[s].keyname?{id:s,keyname:i[s].keyname,type:i[s].type,value:Array.isArray(i[s].value)?i[s].value.join(","):i[s].value?i[s].value:""}:{id:s,keyname:i[s].keyname,type:i[s].type,value:i[s].value}:"4"==i[s].type?t={id:s,keyname:i[s].keyname,type:i[s].type,value:i[s].value?i[s].value.join(","):""}:"6"==i[s].type&&(t={id:s,keyname:i[s].keyname,type:i[s].type,value:i[s].value.length?i[s].value.map(t=>({serverId:t.serverId||"",img:t.url||""})):""}),e.push(t)}t={id:this.cid,ext:e.filter(t=>t.id),alertshow:"123"},Object(f["o"])(t).then(t=>{t.data.code})},editcustomermsg:function(t){const e=this;let i={clue_id:"",id:e.cid,name:e.$refs.addcrmmsg.personame,phone:e.$refs.addcrmmsg.phonenum,phone1:e.$refs.addcrmmsg.phonenum1,phone2:e.$refs.addcrmmsg.phonenum2,sex:"男"==this.$refs.addcrmmsg.sex?1:"女"==this.$refs.addcrmmsg.sex?2:"",level:e.$refs.addcrmmsg.level,source_id:e.$refs.addcrmmsg.source};Object.keys(i).forEach(t=>{i[t]||"phone1"==t||"phone2"==t||delete i[t]}),Object(f["H"])(i).then(t=>{0==t.data.code&&e.editcustomertap()})},tracklog:function(t){const e=this;let i={id:this.cid},s=new Date,a=(s.getFullYear(),s.getMonth());a=1*a+1;s.getDate();Object(f["D"])(i).then(t=>{if(0==t.data.code){let s=0;var i="red";for(let e=0;e<t.data.data.length;e++)t.data.data[e].portraitarr=JSON.parse(t.data.data[e].save_portrait_field),t.data.data[e].colortime=t.data.data[e].addtime.split(" ")[0],0==e?(t.data.data[0].color=i,s=1*s+1):t.data.data[e].addtime.split(" ")[0]!=t.data.data[e-1].addtime.split(" ")[0]?(s=1*s+1,s%3==0?i="red":s%3==1?i="blue":s%3==2&&(i="cyan"),t.data.data[e].color=i):t.data.data[e].color=i;e.visitlogarr=t.data.data.map(t=>(t.play=!1,t.collapse=!0,t)),e.visitcount=t.data.count}})},upload(){let t=9-this.form.media_id1.length;if(0==t)return this.$toast("最多只能选9张图片"),!1;window.android?window.android.handleSelectedImages(t):window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.handleSelectedImages&&window.webkit.messageHandlers.handleSelectedImages.postMessage(t)},forUploadaly(t){let e=this;if(!e.form.media_id1[t].img&&e.form.media_id1[t].base64Data)this.base64DataToFile(e.form.media_id1[t].base64Data,`${Date.now()}${t}crm`).then(i=>{e.form.media_id1[t].file=i;let s=JSON.parse(JSON.stringify(t));s=parseInt(s),s++,s<e.form.media_id1.length&&e.forUploadaly(s)});else{let i=JSON.parse(JSON.stringify(t));i=parseInt(i),i++,i<e.form.media_id1.length&&e.forUploadaly(i)}},base64DataToFile(t,e){return new Promise((function(i,s){let a=t.split(","),r=a[0].match(/:(.*?);/)[1],n=r.split("/")[1],o=atob(a[1]),c=o.length,l=new Uint8Array(c);while(c--)l[c]=o.charCodeAt(c);let d=new File([l],`${e}.${n}`,{type:r});i(d)}))},getImageFile(t){let e=window.URL||window.webkitURL,i=t.target.files[0];this.form.media_id1.push({img:e.createObjectURL(i),file:i,id:this.form.media_id1.length+1})},uploadALY(t){return new Promise((function(e,i){let s=new OSS({region:"oss-cn-hangzhou",accessKeyId:"LTAI5tHjWupJSCAycy2yVbQZ",accessKeySecret:"eNFicm77Cfq3u7ZnQyw1urFmFNpf3w",bucket:"zyzswzh",secure:!0}),a=t.name.indexOf(".")>-1?t.name.split(".")[0]:(new Date).getTime();var r=new Date;let n=r.getFullYear()+""+(1*r.getMonth()+1)+r.getDate(),o="crm/"+n+"/"+`${Date.now()}${a}.jpeg`;s.multipartUpload(o,t).then((function(t){e(t.name)})).catch((function(t){i(t)}))}))}}},D=j,q=(i("c878"),Object(k["a"])(D,n,o,!1,null,"2f1d9a66",null)),O=q.exports,S=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xq-customer-change-component"},[e("div",{staticClass:"xq-customer-change-header flex align-center"},[t._l(t.headerTabs,(function(i){return[e("div",{directives:[{name:"show",rawName:"v-show",value:1==i.show,expression:"item.show == 1"}],key:i.type,class:{"xq-customer-change-active":t.changeType==i.type},on:{click:function(e){return t.switchChangeType(i.type)}}},[t._v(" "+t._s(i.name)+" "),"2"==i.type?[t._v(" "+t._s(t.customerobj.daodianNum?`(${t.customerobj.daodianNum})`:"")+" ")]:"1"==i.type?[t._v(" "+t._s(t.customerobj.liangfangNum?`(${t.customerobj.liangfangNum})`:"")+" ")]:"3"==i.type?[t._v(" "+t._s(t.customerobj.activityNum?`(${t.customerobj.activityNum})`:"")+" ")]:t._e()],2)]}))],2),e("div",{staticClass:"xq-customer-change-content"},["1"===t.changeType?[e("div",{staticClass:"xq-customer-change-date-box",on:{click:function(e){t.showCalendarOne=!0}}},[t._m(0),e("div",{staticClass:"xq-customer-change-date-content"},[e("span",{staticClass:"font28 color333"},[t._v(t._s(t.form.confirm_date?t.form.confirm_date:"请选择量房时间"))]),e("img",{staticClass:"xq-customer-date-icon",attrs:{src:i("f7fb"),alt:""}})])]),e("div",{staticClass:"xq-customer-change-image-box"},[t._m(1),e("div",{staticClass:"xq-customer-change-image-content",on:{click:function(e){return e.stopPropagation(),t.uploadlfImage.apply(null,arguments)}}},[t._m(2)]),e("input",{ref:"uploadFile",attrs:{hidden:"",type:"file",accept:"image/*"},on:{change:t.getImageFile}})]),t.form.media_id1.length?e("div",{staticClass:"xq-customer-change-image-box"},t._l(t.form.media_id1,(function(i,s){return e("div",{key:s,staticClass:"xq-customer-imgItem"},[e("img",{attrs:{src:`${t.imgUrl}/${i.url}`,width:"100%",height:"100%",alt:""}}),e("div",{staticClass:"wzh_img_del",on:{click:function(e){return t.imageDel(s)}}},[e("van-icon",{staticClass:"del_icon",staticStyle:{color:"#fff"},attrs:{name:"cross"}})],1)])})),0):t._e(),e("div",{staticClass:"xq-customer-change-dialog-box",on:{click:function(e){return t.handleShow(1)}}},[t._m(3),e("div",{staticClass:"xq-customer-change-dialog-content"},[e("div",{staticClass:"xq-customer-change-dialog-data"},[t._l(t.customerobj.assigned_personnel_imgs,(function(t,s){return[t?[e("img",{key:s,attrs:{src:t,alt:""}})]:[e("img",{key:s,attrs:{src:i("ee87"),alt:""}})]]}))],2),e("img",{staticClass:"xq-custom-select-icon",attrs:{src:i("f465")}})])]),e("xq-custom-field",{ref:"addcrmmsg",attrs:{customertype:1,customfield:t.curTrackField,customerinfo:t.customerobj}})]:"2"===t.changeType?[0!=t.nActivityArr.length&&1==t.allChangeField.ddhd.show?e("div",{staticClass:"xq-customer-change-activity-box",on:{click:function(e){t.showPicker=!0}}},[e("div",{staticClass:"xq-customer-change-activity-label font28 color384855"},[t._v("参加的内场活动")]),e("div",{staticClass:"xq-customer-change-activity-content font28 color333"},[t._v(" "+t._s(t.form.sActivename?t.form.sActivename:"请选择活动")+" "),e("img",{staticClass:"xq-arrow-right-icon",attrs:{src:i("f465"),width:"8px",alt:""}})])]):t._e(),e("div",{staticClass:"xq-customer-change-date-box",on:{click:function(e){t.showCalendarTwo=!0}}},[t._m(4),e("div",{staticClass:"xq-customer-change-date-content"},[e("span",{staticClass:"font28 color333"},[t._v(t._s(t.form.confirm_date?t.form.confirm_date:"请选择到店时间"))]),e("img",{staticClass:"xq-customer-date-icon",attrs:{src:i("f7fb"),alt:""}})])]),e("div",{staticClass:"xq-customer-change-number-box"},[t._m(5),e("div",{staticClass:"xq-customer-change-number-content"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.number,expression:"form.number"}],attrs:{type:"number",placeholder:"请输入",onkeyup:"value=value.replace('-','')",oninput:"if(value.length>5) value=value.slice(0,5)"},domProps:{value:t.form.number},on:{input:function(e){e.target.composing||t.$set(t.form,"number",e.target.value)}}}),e("span",[t._v("人")])])]),e("div",{staticClass:"xq-customer-change-store-box",on:{click:function(e){t.showStore=!0}}},[e("div",{staticClass:"xq-customer-change-store-label font28 color384855"},[t._v("所到店面")]),e("div",{staticClass:"xq-customer-change-store-content font28 color333"},[t._v(" "+t._s(t.form.shopName?t.form.shopName:"请选择店面")+" "),e("img",{staticClass:"xq-arrow-right-icon",attrs:{src:i("f465"),width:"8px",alt:""}})])]),e("div",{staticClass:"xq-customer-change-number-box"},[e("div",{staticClass:"xq-customer-change-number-label font28 color384855"},[t._v("谈单时长")]),e("div",{staticClass:"xq-customer-change-number-content"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.orderTimeNum,expression:"form.orderTimeNum"}],attrs:{type:"number",placeholder:"请输入",onkeyup:"value=value.replace('-','')",oninput:"if(value.length>5) value=value.slice(0,5)"},domProps:{value:t.form.orderTimeNum},on:{input:function(e){e.target.composing||t.$set(t.form,"orderTimeNum",e.target.value)}}}),e("span",[t._v("分钟")])])]),e("xq-custom-field",{ref:"addcrmmsg",attrs:{customertype:1,customfield:t.curTrackField,customerinfo:t.customerobj}})]:"3"===t.changeType?[t.activityArr.length?["vL0CQQ"==t.clientype||"T2qxut"==t.clientype||"7Qn1dz"==t.clientype?e("div",{staticClass:"xq-customer-change-activity-box"},[e("div",{staticClass:"xq-customer-change-activity-label font28 color384855"},[t._v("选择见面类型")]),e("div",{staticClass:"flex-sub flex align-center"},t._l(t.meetypeArr,(function(i){return e("div",{key:i.id,staticClass:"flex-sub flex align-center",on:{click:function(e){return t.switchmeetype(i.id)}}},[t.meetype==i.id?e("img",{staticClass:"xq-customer-tracking-radio",attrs:{src:t.$store.state.imgUrl+"/xcx/selected.png"}}):t._e(),t.meetype!=i.id?e("img",{staticClass:"xq-customer-tracking-radio",attrs:{src:t.$store.state.imgUrl+"/xcx/unselected.png"}}):t._e(),e("span",{staticClass:"font28 color384855 ml10"},[t._v(t._s(i.name))])])})),0)]):t._e(),"1"==t.meetype?e("div",{staticClass:"xq-customer-change-activity-box",on:{click:function(e){t.showPicker=!0}}},[e("div",{staticClass:"xq-customer-change-activity-label font28 color384855"},[t._v("参加的活动")]),e("div",{staticClass:"xq-customer-change-activity-content font28 color333"},[t._v(" "+t._s(t.form.dActiveName?t.form.dActiveName:"请选择活动")+" "),e("img",{staticClass:"xq-arrow-right-icon",attrs:{src:i("f465"),width:"8px",alt:""}})])]):t._e(),e("div",{staticClass:"xq-customer-change-date-box",on:{click:function(e){t.showCalendarTwo=!0}}},[e("div",{staticClass:"xq-customer-change-date-label font28 color384855"},[t._v("到场时间")]),e("div",{staticClass:"xq-customer-change-date-content"},[e("span",{staticClass:"font28 color333"},[t._v(t._s(t.form.confirm_date?t.form.confirm_date:"请选择到场时间"))]),e("img",{staticClass:"xq-customer-date-icon",attrs:{src:i("f7fb"),alt:""}})])]),e("div",{staticClass:"xq-customer-change-number-box"},[e("div",{staticClass:"xq-customer-change-number-label font28 color384855"},[t._v("请输入到场人数")]),e("div",{staticClass:"xq-customer-change-number-content"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.number,expression:"form.number"}],attrs:{type:"number",placeholder:"请输入",onkeyup:"value=value.replace('-','')",oninput:"if(value.length>5) value=value.slice(0,5)"},domProps:{value:t.form.number},on:{input:function(e){e.target.composing||t.$set(t.form,"number",e.target.value)}}}),e("span",[t._v("人")])])]),e("div",{staticClass:"xq-customer-change-number-box"},[e("div",{staticClass:"xq-customer-change-number-label font28 color384855"},[t._v("停留时间")]),e("div",{staticClass:"xq-customer-change-number-content"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.stay_length,expression:"form.stay_length"}],attrs:{type:"number",placeholder:"请输入",onkeyup:"value=value.replace('-','')",oninput:"if(value.length>5) value=value.slice(0,5)"},domProps:{value:t.form.stay_length},on:{input:function(e){e.target.composing||t.$set(t.form,"stay_length",e.target.value)}}}),e("span",[t._v("分钟")])])]),e("xq-custom-field",{ref:"addcrmmsg",attrs:{customertype:1,customfield:t.curTrackField,customerinfo:t.customerobj}})]:[e("div",{staticClass:"xq-customer-change-activity-none"},[t._v("~暂无进行中的活动无法确认到场~")])]]:"4"===t.changeType?[e("div",{staticClass:"xq-customer-change-date-box",on:{click:function(e){return t.operateQD(1)}}},[e("div",{staticClass:"xq-customer-change-date-label font28 color384855"},[e("span",{staticClass:"colorFF0000"},[t._v("*")]),t._v(t._s(t.deliveryTimeLabelText)+" ")]),e("div",{staticClass:"xq-customer-change-date-content"},[e("span",{staticClass:"font28 color333"},[t._v(t._s(t.form.confirm_date?t.form.confirm_date:t.deliveryTimeTips))]),e("img",{staticClass:"xq-customer-date-icon",attrs:{src:i("f7fb"),alt:""}})])]),e("div",{staticClass:"xq-customer-change-number-box"},[e("div",{staticClass:"xq-customer-change-number-label font28 color384855"},[e("span",{staticClass:"colorFF0000"},[t._v("*")]),t._v(t._s(t.deliveryMoneyLabelText))]),e("div",{staticClass:"xq-customer-change-number-content"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.money,expression:"form.money"}],attrs:{readonly:t.nowitem.stateNum&&0!=t.nowitem.stateNum.signed,type:"number",placeholder:"请输入",onkeyup:"value=value.replace('-','')",oninput:"if(value.length>8) value=value.slice(0,8)"},domProps:{value:t.form.money},on:{input:function(e){e.target.composing||t.$set(t.form,"money",e.target.value)}}}),e("span",[t._v("元")])])]),e("div",{staticClass:"xq-customer-tracking-style-1"},[e("div",{staticClass:"xq-customer-tracking-label-1 font28 color384855"},[t._v(t._s(t.deliveryTypeText))]),e("div",{staticClass:"flex-sub flex align-center"},t._l(t.jdTypeArr,(function(i){return e("div",{key:i.type,staticClass:"flex-sub flex align-center",on:{click:function(e){return t.switchjdType(i.type)}}},[t.form.deposit_mode==i.type?e("img",{staticClass:"xq-customer-tracking-radio",attrs:{src:t.$store.state.imgUrl+"/xcx/selected.png"}}):t._e(),t.form.deposit_mode!=i.type?e("img",{staticClass:"xq-customer-tracking-radio",attrs:{src:t.$store.state.imgUrl+"/xcx/unselected.png"}}):t._e(),e("span",{staticClass:"font28 color384855 ml10"},[t._v(t._s(i.name))])])})),0)]),e("div",{staticClass:"xq-customer-change-image-box"},[e("div",{staticClass:"xq-customer-change-image-label font28 color384855"},[e("span",{staticClass:"colorFF0000"},[t._v("*")]),t._v(t._s(t.deliveryBasisText))]),e("div",{staticClass:"xq-customer-change-image-content",on:{click:t.uploadFiles}},[t._m(6)]),e("input",{ref:"uploadFile",attrs:{hidden:"",type:"file",accept:"image/*"},on:{change:t.getImageFile}})]),t.form.media_id1.length?e("div",{staticClass:"xq-customer-change-image-box"},t._l(t.form.media_id1,(function(i,s){return e("div",{key:s,staticClass:"xq-customer-imgItem"},[e("img",{attrs:{src:`${t.imgUrl}/${i.url}`,width:"100%",height:"100%",alt:""}}),e("div",{staticClass:"wzh_img_del",on:{click:function(e){return t.imageDel(s)}}},[e("van-icon",{staticClass:"del_icon",staticStyle:{color:"#fff"},attrs:{name:"cross"}})],1)])})),0):t._e(),e("div",{staticClass:"xq-customer-change-select-box",on:{click:t.selectProductDialog}},[e("div",{staticClass:"xq-custom-select-label font28 color384855"},[t._v(t._s(t.deliveryProductText))]),e("div",{staticClass:"xq-custom-select-content"},[e("div",{staticClass:"xq-custom-select-content-data"},[t.depositproductlist.length?[t.form.productText.length?t._e():e("span",{staticClass:"font28 color9DB6CF"},[t._v("请选择产品")]),t._l(t.form.productText,(function(i,s){return e("div",{key:s},[t._v(t._s(i))])}))]:[e("span",{staticClass:"font28 color9DB6CF"},[t._v("暂无"+t._s(t.deliveryTagLabel)+"产品")])]],2),e("img",{staticClass:"xq-custom-select-icon",attrs:{src:i("f465")}})]),t.showSelect?e("div",{staticClass:"xq-custom-select-data",on:{click:function(t){t.stopPropagation()}}},t._l(t.depositproductlist,(function(i){return e("div",{key:i.id,class:{"xq-custom-selected":t.form.productIds.includes(i.id)},on:{click:function(e){return t.setProductData(i)}}},[t._v(t._s(i.name))])})),0):t._e()]),e("xq-custom-field",{ref:"addcrmmsg",attrs:{customertype:1,customfield:t.curTrackField,customerinfo:t.customerobj}})]:"5"===t.changeType?[e("div",{staticClass:"xq-customer-change-date-box",on:{click:t.operateZD}},[e("div",{staticClass:"xq-customer-change-date-label font28 color384855"},[e("span",{staticClass:"colorFF0000"},[t._v("*")]),t._v(t._s(t.getSignOrderText(1))+" ")]),e("div",{staticClass:"xq-customer-change-date-content"},[e("span",{staticClass:"font28 color333"},[t._v(t._s(t.form.confirm_date?t.form.confirm_date:t.getSignOrderText(11)))]),e("img",{staticClass:"xq-customer-date-icon",attrs:{src:i("f7fb"),alt:""}})])]),e("div",{staticClass:"xq-customer-change-number-box"},[e("div",{staticClass:"xq-customer-change-number-label font28 color384855"},[e("span",{staticClass:"colorFF0000"},[t._v("*")]),t._v(t._s(t.getSignOrderText(2)))]),e("div",{staticClass:"xq-customer-change-number-content"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.money,expression:"form.money"}],attrs:{type:"number",placeholder:"请输入",onkeyup:"value=value.replace('-','')",oninput:"if(value.length>8) value=value.slice(0,8)"},domProps:{value:t.form.money},on:{input:function(e){e.target.composing||t.$set(t.form,"money",e.target.value)}}}),e("span",[t._v("元")])])]),e("div",{staticClass:"xq-customer-change-number-box"},[e("div",{staticClass:"xq-customer-change-number-label font28 color384855"},[t._v("首付款")]),e("div",{staticClass:"xq-customer-change-number-content"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.down_payment,expression:"form.down_payment"}],attrs:{type:"number",placeholder:"请输入",onkeyup:"value=value.replace('-','')",oninput:"if(value.length>8) value=value.slice(0,8)"},domProps:{value:t.form.down_payment},on:{input:function(e){e.target.composing||t.$set(t.form,"down_payment",e.target.value)}}}),e("span",[t._v("元")])])]),e("div",{staticClass:"xq-customer-change-image-box"},[e("div",{staticClass:"xq-customer-change-image-label font28 color384855"},[e("span",{staticClass:"colorFF0000"},[t._v("*")]),t._v(t._s(t.getSignOrderText(3)))]),e("div",{staticClass:"xq-customer-change-image-content",on:{click:t.uploadFiles}},[t._m(7)]),e("input",{ref:"uploadFile",attrs:{hidden:"",type:"file",accept:"image/*"},on:{change:t.getImageFile}})]),t.form.media_id1.length?e("div",{staticClass:"xq-customer-change-image-box"},t._l(t.form.media_id1,(function(i,s){return e("div",{key:s,staticClass:"xq-customer-imgItem"},[e("img",{attrs:{src:`${t.imgUrl}/${i.url}`,width:"100%",height:"100%",alt:""}}),e("div",{staticClass:"wzh_img_del",on:{click:function(e){return t.imageDel(s)}}},[e("van-icon",{staticClass:"del_icon",staticStyle:{color:"#fff"},attrs:{name:"cross"}})],1)])})),0):t._e(),e("xq-custom-field",{ref:"addcrmmsg",attrs:{customertype:1,customfield:t.curTrackField,customerinfo:t.customerobj}})]:[e("div",{staticClass:"xq-customer-change-date-box",on:{click:function(e){t.showCalendarOne=!0}}},[t._m(8),e("div",{staticClass:"xq-customer-change-date-content"},[e("span",{staticClass:"font28 color333"},[t._v(t._s(t.form.confirm_date?t.form.confirm_date:"请选择卖卡时间"))]),e("img",{staticClass:"xq-customer-date-icon",attrs:{src:i("f7fb"),alt:""}})])]),e("xq-custom-field",{ref:"addcrmmsg",attrs:{customertype:1,customfield:t.curTrackField,customerinfo:t.customerobj}})],3==t.changeType&&t.activityArr.length||3!=t.changeType?e("div",{staticClass:"xq-customer-change-textarea-box"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.remark,expression:"form.remark"}],attrs:{rows:"4",placeholder:"请添加备注信息"},domProps:{value:t.form.remark},on:{input:function(e){e.target.composing||t.$set(t.form,"remark",e.target.value)}}})]):t._e(),3==t.changeType&&t.activityArr.length||3!=t.changeType?e("div",{staticClass:"xq-customer-tracking-setting-date"},[e("div",{staticClass:"xq-customer-tracking-title-1 flex align-center justify-between"},[e("div",{staticClass:"flex align-center"},[e("span",{directives:[{name:"show",rawName:"v-show",value:t.nextvisitflag,expression:"nextvisitflag"}],staticClass:"colorFF0000"},[t._v("*")]),e("span",[t._v("设置下次回访时间")])]),e("span",{directives:[{name:"show",rawName:"v-show",value:t.isShowNextVisit,expression:"isShowNextVisit"}],staticClass:"cancelNextRevisit",on:{click:t.cancelNextVisitFun}},[t._v("取消下次回访")])]),e("div",{staticClass:"xq-customer-tracking-date-data"},t._l(t.trackDateArr,(function(i){return e("div",{key:i.type,staticClass:"flex align-center",on:{click:function(e){return t.switchDate(i.type)}}},[t.form.nextdate==i.type?e("img",{staticClass:"xq-customer-tracking-radio",attrs:{src:t.$store.state.imgUrl+"/xcx/selected.png"}}):t._e(),t.form.nextdate!=i.type?e("img",{staticClass:"xq-customer-tracking-radio",attrs:{src:t.$store.state.imgUrl+"/xcx/unselected.png"}}):t._e(),e("span",{staticClass:"font28 color384855 ml10"},[t._v(t._s(i.name))])])})),0),5==t.form.nextdate?e("div",{staticClass:"xq-customer-tracking-other-date",on:{click:function(e){t.showCalendar=!0}}},[e("div",{staticClass:"xq-customer-tracking-date-label font28 color384855"},[t._v("下次回访时间:")]),e("div",{staticClass:"xq-customer-tracking-date-content"},[e("span",{staticClass:"font28",class:t.form.next_contact_date?"color333":"colorB6CADE"},[t._v(t._s(t.form.next_contact_date?t.form.next_contact_date:"请选择回访时间"))]),e("img",{staticClass:"xq-customer-date-icon",attrs:{src:i("f7fb"),alt:""}})])]):t._e()]):t._e(),3==t.changeType&&t.activityArr.length||3!=t.changeType?e("div",{staticClass:"xq-customer-change-submit"},[e("van-button",{attrs:{type:"info",loading:t.loading,"loading-text":"正在提交数据...",disabled:t.loading},on:{click:t.submitData1}},[t._v("提交客户转化数据")])],1):t._e()],2),e("div",{staticClass:"line-change"}),1==t.changeType||2==t.changeType||3==t.changeType?e("div",{staticClass:"trackrecordbox2"},[e("div",{staticClass:"clearfix"},[e("div",{staticClass:"clearfix pull-left leftrecordtitbox font28 fontfpr color384855"},[e("div",{staticClass:"pull-left font32"},[t._v(" "+t._s(1==t.changeType?"量房":2==t.changeType?"到店":"活动到场")+"记录 ")])]),e("div",{staticClass:"rightrecordbtn fontfpr pull-right"},[t._v(" "+t._s(1==t.changeType?"量房":2==t.changeType?"到店":"活动到场")+"次数:"+t._s(t.loglist.length)+"次 ")])]),e("div",{staticClass:"amountlogbox relative",style:{paddingLeft:0==t.loglist.length?0:""}},[t.loglist.length>0?e("div",[e("span",{staticClass:"leftline"}),t._l(t.loglist,(function(i,s){return e("recordlog",{key:i.id,attrs:{loglist:t.loglist,idx:s,item:i}})}))],2):t._e()])]):t._e(),e("van-action-sheet",{attrs:{round:!1,actions:t.amountarr,"close-on-click-action":!0},on:{select:t.onSelect},model:{value:t.amountshow,callback:function(e){t.amountshow=e},expression:"amountshow"}}),e("van-calendar",{attrs:{color:"#249EFB",title:"选择下次回访时间",formatter:t.formatter},on:{confirm:t.onConfirm},model:{value:t.showCalendar,callback:function(e){t.showCalendar=e},expression:"showCalendar"}}),e("van-calendar",{style:{height:"70%"},attrs:{color:"#249EFB","min-date":t.minDate,"max-date":t.maxDate},on:{confirm:t.onConfirmOne},model:{value:t.showCalendarOne,callback:function(e){t.showCalendarOne=e},expression:"showCalendarOne"}}),e("van-calendar",{style:{height:"70%"},attrs:{color:"#249EFB","min-date":t.aMinDate,"max-date":t.aMaxDate},on:{confirm:t.onConfirmTwo},model:{value:t.showCalendarTwo,callback:function(e){t.showCalendarTwo=e},expression:"showCalendarTwo"}}),e("van-popup",{attrs:{round:"",position:"bottom"},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}},[e("van-picker",{attrs:{"show-toolbar":"",title:"选择活动名称",columns:2==t.changeType?t.nActivityColumns:t.columns},on:{cancel:function(e){t.showPicker=!1},confirm:t.onactivityConfirm}})],1),e("checkDesignerVue",{directives:[{name:"show",rawName:"v-show",value:t.showPopup,expression:"showPopup"}],attrs:{designerlist:JSON.stringify(t.designerarr),customerid:t.cid,isdepart:t.orgVal,select:4,assignType:t.customerobj.assign_type,showval:t.customerobj.assigned_personnel},on:{onSearch:t.designerfun,submit:t.submitDesigner},model:{value:t.showPopup,callback:function(e){t.showPopup=e},expression:"showPopup"}}),e("van-popup",{attrs:{round:"",position:"bottom"},model:{value:t.showStore,callback:function(e){t.showStore=e},expression:"showStore"}},[e("van-picker",{attrs:{"show-toolbar":"",title:"选择店面",columns:t.storeColumns},on:{cancel:function(e){t.showStore=!1},confirm:t.bindGetStore}})],1)],1)},F=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"xq-customer-change-date-label font28 color384855"},[e("span",{staticClass:"colorFF0000"},[t._v("*")]),t._v("选择量房时间")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"xq-customer-change-image-label font28 color384855"},[e("span",{staticClass:"colorFF0000"},[t._v("*")]),t._v("上传量房图片")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"xq-customer-change-image-icon flex align-center justify-center"},[e("img",{attrs:{src:i("e47f"),alt:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"xq-customer-change-dialog-label font28 color384855"},[t._v(" 选择量房人员 "),e("span",{staticClass:"color9DB6CF"},[t._v("(可多选)")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"xq-customer-change-date-label font28 color384855"},[e("span",{staticClass:"colorFF0000"},[t._v("*")]),t._v("选择到店时间")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"xq-customer-change-number-label font28 color384855"},[e("span",{staticClass:"colorFF0000"},[t._v("*")]),t._v("请输入到店人数")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"xq-customer-change-image-icon flex align-center justify-center"},[e("img",{attrs:{src:i("e47f"),alt:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"xq-customer-change-image-icon flex align-center justify-center"},[e("img",{attrs:{src:i("e47f"),alt:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"xq-customer-change-date-label font28 color384855"},[e("span",{staticClass:"colorFF0000"},[t._v("*")]),t._v("卖卡时间 ")])}],$=(i("2cbd"),i("ab2c")),E=function(){var t=this,e=t._self._c;return e("div",{staticClass:"everytrackrecordbox"},[0==t.idx||t.loglist[t.idx].colortime!=t.loglist[t.idx-1].colortime?e("div",{staticClass:"toptimebox clearfix"},[t._m(0),e("div",{staticClass:"daytime pull-left"},[t._v(t._s(t.item.addtime.split(" ")[0]))])]):t._e(),e("div",{staticClass:"recordcontentbox3 clearfix"},[e("div",{staticClass:"pull-left bluemiddlecirccle"}),e("div",{staticClass:"recordcontentdiv pull-left bluecolor clearfix"},[e("div",{staticClass:"recordcontent clearfix"},[e("div",{staticClass:"color249efb fontfps pull-left font24"},[t._v(" "+t._s("设计师"==t.item.identity?"设计师":"销售")+":"+t._s(t.item.name)+" ")]),e("div",{staticClass:"pull-left fontfpr font24 addhourbox"},[t._v(" "+t._s(t.item.addtime.split(" ")[1])+" ")]),e("div",{staticClass:"pull-left recordcontentmsg clearfix",staticStyle:{width:"100%"}},[e("div",{staticClass:"pull-left colorB6CADE"},[t._v(t._s(t.item.remark))])]),e("div",{staticClass:"clearfix amountlogimg"},t._l(t.item.img,(function(i,s){return e("img",{key:s,staticClass:"pull-left",attrs:{src:i+"?x-oss-process=img/resize,w_200"},on:{click:function(e){return t.lookTap(t.item.img,s)}}})})),0)])])])])},N=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"pull-left bluecircclebox"},[e("div")])}],P={name:"recordlog",props:["item","loglist","idx"],data(){return{}},components:{[c["a"].Component.name]:c["a"].Component},created(){},methods:{lookTap:function(t,e){Object(c["a"])({images:t,startPosition:e})}},mounted(){}},M=P,I=(i("c630"),Object(k["a"])(M,E,N,!1,null,"4462998a",null)),Y=I.exports,Q={components:{[r["a"].name]:r["a"],[$["a"].name]:$["a"],[l["a"].name]:l["a"],[h["a"].name]:h["a"],xqCustomField:T,checkDesignerVue:g["a"],recordlog:Y},props:["dialog","rtype","customerobj","nidx","cid","nowitem","manager","crmSettingObj","jumpType"],data(){return{loading:!1,showStore:!1,showSelect:!1,showPicker:!1,showCalendar:!1,amountshow:!1,nextvisitflag:!0,showCalendarOne:!1,showCalendarTwo:!1,showPopup:!1,changeType:"1",orgVal:1,meetype:"1",unsureaidx:0,minDate:new Date(2020,0,1),maxDate:new Date,aMinDate:new Date(2020,0,1),aMaxDate:new Date,headerTabs:[{name:"量房",type:"1",field:"lf"},{name:"到店",type:"2",field:"dd"},{name:"活动",type:"3",field:"hd"},{name:"签单",type:"4",field:"jd"},{name:"转单",type:"5",field:"zd"},{name:"卖卡",type:"6",field:"mk"}],trackDateArr:[{name:"今天",type:1},{name:"1天后",type:2},{name:"3天后",type:3},{name:"7天后",type:4},{name:"其他时间",type:5}],jdTypeArr:[{name:"线上定金",type:"0"},{name:"线下定金",type:"1"}],meetypeArr:[{id:1,name:"外场活动"},{id:2,name:"茶楼见面"},{id:3,name:"网谈登记"}],allChangeField:{},curTrackField:[],amountarr:[],amountext:[],schedulelist:[],loglist:[],storeArr:[],storeColumns:[],activityArr:[],nActivityArr:[],columns:[],nActivityColumns:[],depositproductlist:[],designerarr:[],departmentArr:[],form:{confirm_date:"",media_id1:[],number:1,deposit_mode:"1",money:"",down_payment:"",next_contact_date:"",remark:"",nextdate:1,orderTimeNum:"",stay_length:"",aid:"",said:"",dActiveName:"",sActivename:"",shopName:"",shopId:"",productIds:[],productText:[]},storeactivity:[]}},watch:{rtype:{handler(t){"3"==t&&this.dialog&&this.$nextTick(()=>{this.getChangeModuleField(),this.designerfun({type:1})})},immediate:!0},crmSettingObj:{handler(t){t&&Object.keys(t).length&&this.crmcustfun1()},immediate:!0},allChangeField:{handler(t){"预约量房"==this.jumpType&&1==t.lf.show?this.changeType="1":"预约到店"==this.jumpType&&1==t.dd.show?this.changeType="2":"预约活动"==this.jumpType&&1==t.hd.show?this.changeType="3":this.$nextTick(()=>{let t=this.headerTabs.filter(t=>1==t.show);t.length&&(this.changeType=t[0].type)}),t.lf&&this.$nextTick(()=>{this.switchChangeType(this.changeType)})},immediate:!0}},computed:{...Object(_["mapState"])({platform:t=>t.platform,clientype:t=>t.clientype,imgUrl:t=>t.imgUrl}),plaform(){return"browser"==this.platform||"windows"==this.platform||"mac"==this.platform?"pc":"mobile"},isIosOrAndroid(){var t=navigator.userAgent,e=t.indexOf("Android")>-1||t.indexOf("Adr")>-1;if(e)return 1;var i=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return i?2:0},deliveryTimeLabelText(){return"vL0CQQ"==this.clientype||"T2qxut"==this.clientype||"7Qn1dz"==this.clientype?"交定时间":"签单时间"},deliveryTimeTips(){return"vL0CQQ"==this.clientype||"T2qxut"==this.clientype||"7Qn1dz"==this.clientype?"请选择交定时间":"请选择签单时间"},deliveryMoneyLabelText(){return"vL0CQQ"==this.clientype||"T2qxut"==this.clientype||"7Qn1dz"==this.clientype?"交定金额":"签单金额"},deliveryTypeText(){return"vL0CQQ"==this.clientype||"T2qxut"==this.clientype||"7Qn1dz"==this.clientype?"交定方式":"签单方式"},deliveryBasisText(){return"vL0CQQ"==this.clientype||"T2qxut"==this.clientype||"7Qn1dz"==this.clientype?"上传交定依据":"上传签单依据"},deliveryProductText(){return"vL0CQQ"==this.clientype||"T2qxut"==this.clientype||"7Qn1dz"==this.clientype?"交定产品":"签单产品"},deliveryTagLabel(){return"vL0CQQ"==this.clientype||"T2qxut"==this.clientype||"7Qn1dz"==this.clientype?"交定":"签单"},isShowNextVisit(){return this.customerobj.revisit_time&&"0000-00-00"!=this.customerobj.revisit_time&&this.crmSettingObj&&0==this.crmSettingObj.next_visit_time_is_ok}},mounted(){const t=this;window.getimagefile=function(e){if(e){let i=e.split(","),s=i.map(t=>({img:"",url:t}));t.form.media_id1.push(...s)}}},methods:{switchmeetype(t){this.meetype=t},initForm(){this.meetype="1",this.form={confirm_date:b()(new Date).format("YYYY/MM/DD"),media_id1:[],number:1,deposit_mode:"1",money:"",down_payment:"",next_contact_date:"",remark:"",nextdate:1,orderTimeNum:"",stay_length:"",aid:"",dActiveName:"",shopName:"",shopId:"",productIds:[],productText:[]},this.nextvisitflag||(this.form.nextdate="",this.form.next_contact_date="")},cancelNextVisitFun(){this.$toast.loading({message:"加载中...",forbidClick:!0,duration:0});let t=1==this.changeType?"量房":2==this.changeType?"到店":"到场";Object(f["i"])({id:this.cid}).then(e=>{this.$toast.clear(),0==e.data.code&&(this.$toast("已取消上次跟进的回访时间"),this.$emit("updateMsg",{state:0,cid:this.cid}),this.looktimetap(t))}).catch(t=>{this.$toast.clear()})},getSignOrderText(t){switch(t){case 1:return"vL0CQQ"==this.clientype||"T2qxut"==this.clientype||"7Qn1dz"==this.clientype?"签单时间":"转单时间";case 11:return"vL0CQQ"==this.clientype||"T2qxut"==this.clientype||"7Qn1dz"==this.clientype?"请选择签单时间":"请选择转单时间";case 2:return"vL0CQQ"==this.clientype||"T2qxut"==this.clientype||"7Qn1dz"==this.clientype?"签单金额":"合同金额";case 3:return"vL0CQQ"==this.clientype||"T2qxut"==this.clientype||"7Qn1dz"==this.clientype?"上传签单依据":"上传合同依据"}},switchChangeType(t){switch(this.changeType=t,t){case"1":this.looktimetap("量房"),this.form.confirm_date=b()(new Date).format("YYYY/MM/DD"),this.curTrackField=this.allChangeField.lf.field;break;case"2":this.looktimetap("到店"),this.getShopListApi(),this.form.confirm_date=b()(new Date).format("YYYY/MM/DD"),this.curTrackField=this.allChangeField.dd.field;break;case"3":this.meetype="1",this.looktimetap("到场"),this.form.confirm_date=b()(new Date).format("YYYY/MM/DD"),this.curTrackField=this.allChangeField.hd.field;break;case"4":this.form.deposit_mode=this.customerobj.deposit_mode,this.form.confirm_date=this.customerobj.deposit?this.customerobj.deposit.split(" ")[0]:b()(new Date).format("YYYY/MM/DD"),this.form.money=this.customerobj.deposit_money1?this.customerobj.deposit_money1:"",this.packagefun(),this.curTrackField=this.allChangeField.jd.field;break;case"5":this.form.money=this.customerobj.money?this.customerobj.money:"",this.form.down_payment=this.customerobj.down_payment||"",this.form.confirm_date=this.customerobj.sign?this.customerobj.sign.split(" ")[0]:b()(new Date).format("YYYY/MM/DD"),this.curTrackField=this.allChangeField.zd.field;break;case"6":this.form.confirm_date=b()(new Date).format("YYYY/MM/DD"),this.curTrackField=this.allChangeField.mk.field;break}},switchjdType(t){if(this.nowitem.stateNum&&0!=this.nowitem.stateNum.signed){let t="vL0CQQ"==this.clientype||"T2qxut"==this.clientype||"7Qn1dz"==this.clientype?"已签单客户":"已转单客户";this.$toast(t)}else this.form.deposit_mode=t},switchDate(t){if(this.crmSettingObj&&0==this.crmSettingObj.next_visit_time_is_ok&&this.form.nextdate==t)return this.form.nextdate="",this.form.next_contact_date="",!1;if(this.form.nextdate=t,5==t)return this.schedulefun(),!1;let e=new Date,i=e.getTime(),s=864e5,a=1==t?0:2==t?1:3==t?3:t=7,r=i+a*s,n=new Date(r).getFullYear(),o=new Date(r).getMonth(),c=new Date(r).getDate(),l=1*o+1<10?"0"+(1*o+1):1*o+1,d=1*c<10?"0"+c:c;this.form.next_contact_date=n+"/"+l+"/"+d},operateQD(t){if(this.nowitem.stateNum&&0!=this.nowitem.stateNum.signed){let t="vL0CQQ"==this.clientype||"T2qxut"==this.clientype||"7Qn1dz"==this.clientype?"已签单客户":"已转单客户";this.$toast(t)}else 1==t&&(this.showCalendarOne=!0)},operateZD(){if(this.nowitem.stateNum&&0!=this.nowitem.stateNum.signed){let t="vL0CQQ"==this.clientype||"T2qxut"==this.clientype||"7Qn1dz"==this.clientype?"已签单客户":"已转单客户";this.$toast(t)}else this.showCalendarOne=!0},selectProductDialog(){if(this.nowitem.stateNum&&0!=this.nowitem.stateNum.signed){let t="vL0CQQ"==this.clientype||"T2qxut"==this.clientype||"7Qn1dz"==this.clientype?"已签单客户":"已转单客户";this.$toast(t)}else this.depositproductlist.length?this.showSelect=!this.showSelect:this.$toast("暂无交定产品")},onConfirm(t){this.form.next_contact_date=b()(t).format("YYYY/MM/DD"),this.showCalendar=!1},onConfirmOne(t){this.form.confirm_date=b()(t).format("YYYY/MM/DD"),this.showCalendarOne=!1},onConfirmTwo(t){this.form.confirm_date=b()(t).format("YYYY/MM/DD"),this.showCalendarTwo=!1},bindGetStore(t){let e=this.storeArr.filter(e=>e.name==t);e.length&&(this.form.shopId=e[0].id,this.form.shopName=e[0].name,this.showStore=!1)},onactivityConfirm(t){2==this.changeType?(this.form.sActivename=t,this.nActivityArr.forEach((e,i)=>{if(e.title==t&&(this.unsureaidx=i,this.form.said=e.id,e.start_date&&e.end_date)){let t=e.start_date.split("-"),i=e.end_date.split("-");this.aMinDate=new Date(t[0],t[1]-1,t[2]);let s=this.utils.nowdayDiff(e.end_date.split("-").join("/")),a=new Date;this.aMaxDate=s>0?new Date(i[0],i[1]-1,i[2]):new Date(a.getFullYear(),a.getMonth(),a.getDate())}})):(this.form.dActiveName=t,this.activityArr.forEach((e,i)=>{if(e.title==t&&(this.unsureaidx=i,this.form.aid=e.id,e.start_date&&e.end_date)){let t=e.start_date.split("-");e.end_date.split("-");this.aMinDate=new Date(t[0],t[1]-1,t[2]),this.aMaxDate=new Date}})),this.showPicker=!1},setProductData(t){let e=this.form.productIds.indexOf(t.id);e>-1?(this.form.productIds.splice(e,1),this.form.productText.splice(e,1)):(this.form.productIds.push(t.id),this.form.productText.push(t.name)),this.showSelect=!1},imageDel(t){this.form.media_id1.splice(t,1)},activityList(t){let e={cate:t};Object(f["a"])(e).then(e=>{if(0==e.data.code)if("0"==t){this.nActivityArr=e.data.data;for(let t in e.data.data)this.nActivityColumns.push(e.data.data[t].title);this.$nextTick(()=>{if(this.nActivityColumns.length>0&&1==this.allChangeField.ddhd.show){this.form.sActivename=this.nActivityColumns[0],this.form.said=e.data.data[0].id;let t=this.nActivityArr[0].start_date.split("-");this.aMinDate=new Date(t[0],t[1]-1,t[2])}})}else if("1"==t){this.columns=[],this.unsureaidx=0,this.activityArr=e.data.data;for(let t in e.data.data)this.columns.push(e.data.data[t].title);this.$nextTick(()=>{if(this.columns.length>0)if(this.customerobj.aid){let t=this.activityArr.filter(t=>t.id==this.customerobj.aid);if(t.length){this.form.dActiveName=t[0].title,this.form.aid=t[0].id;let e=t[0].start_date.split("-");this.aMinDate=new Date(e[0],e[1]-1,e[2])}}else{this.form.dActiveName=this.columns[0],this.form.aid=e.data.data[0].id;let t=this.activityArr[0].start_date.split("-");this.aMinDate=new Date(t[0],t[1]-1,t[2])}})}})},packagefun(){const t=this;Object(f["gb"])({}).then(e=>{if(0==e.data.code)if(this.depositproductlist=e.data.data,t.customerobj.package_id){this.form.productText=[],this.form.productIds=[];for(let e in this.depositproductlist)this.depositproductlist[e].id==t.customerobj.package_id&&(this.form.productIds.push(this.depositproductlist[e].id),this.form.productText.push(this.depositproductlist[e].name))}else this.form.productIds=[],this.form.productText=[]})},getShopListApi(){this.storeArr.length||Object(f["P"])({}).then(t=>{0==t.data.code&&(this.storeArr=t.data.data,this.storeColumns=t.data.data.map(t=>t.name))})},formatter(t){const e=t.date.getMonth()+1,i=t.date.getDate(),s=t.date.getFullYear(),a=s+"-"+e+"-"+i;let r=this.schedulelist;for(let n in r){let e=n.split(" ");a==e[0]&&(t.topInfo=r[n])}return t},schedulefun:function(){const t=this;let e=new Date,i=1*e.getMonth()+1,s={date:e.getFullYear()+"-"+(i<10?"0"+i:i)};Object(f["rb"])(s).then((function(e){0==e.data.code&&(t.schedulelist=e.data.data)}))},handleShow(t){this.orgVal=t,1==t&&(this.designerfun({type:1}),this.showPopup=!0)},designerfun(t){let e={};t&&(t.val||""==t.val)&&(e.keyword=t.val),t&&2==t.type?e.org_type=1:e.org_type=0,Object(f["F"])(e).then(t=>{0==t.data.code&&(this.designerarr=t.data.data)})},submitDesigner(t,e){let i={id:this.cid,designerId:t.join(",")};e&&!this.customerobj.assign_type&&(i["assign_type"]=e),Object(f["ib"])(i).then(t=>{this.loadFlag=!1,0==t.data.code&&(this.$toast(t.data.msg),this.$emit("updateMsg",{state:0,cid:this.cid}))})},crmcustfun1(){var t=this.crmSettingObj.img_type;this.amountarr=[];for(let e in t){let i={id:e,name:"上传"+t[e],color:"#384855"};this.amountarr.push(i)}this.nextvisitflag=0!=this.crmSettingObj.next_visit_time_is_ok,this.nextvisitflag&&(this.form.next_contact_date=b()(new Date).format("YYYY/MM/DD")),this.initForm()},getChangeModuleField(t){Object(f["N"])({id:this.cid}).then(e=>{0==e.data.code&&(this.allChangeField=e.data.data,this.headerTabs.forEach((e,i)=>{this.$set(this.headerTabs[i],"show",this.allChangeField[e.field].show),"vL0CQQ"!=this.clientype&&"T2qxut"!=this.clientype&&"7Qn1dz"!=this.clientype||t||("签单"==e.name&&this.$set(this.headerTabs[i],"name","交定"),"转单"==e.name&&this.$set(this.headerTabs[i],"name","签单"))}),t||(this.activityList("0"),this.activityList("1")))})},uploadlfImage(){let t=this;if("1"==this.changeType){if(this.amountarr.length>1)return void(this.amountshow=!0);0==t.amountext.length&&(t.amountext[0]=this.amountarr[0].name.slice(2,this.amountarr[0].name.length)),this.uploadFiles()}},onSelect(t){this.amountext.push(t.name.slice(2,t.name.length)),this.amountshow=!1,this.uploadFiles()},checkParamsState(){let t=this,e=!0,i=this.$refs.addcrmmsg.crmvalarr,s=this.$refs.addcrmmsg.extarr;for(let a=0;a<i.length;a++){if("name"==i[a].keyname&&0==i[a].status&&0==i[a].is_must&&!t.$refs.addcrmmsg.personame)return this.$toast(i[a].name+"必填!"),e=!1,!1;if("sex"==i[a].keyname&&0==i[a].status&&0==i[a].is_must&&!this.$refs.addcrmmsg.sex)return this.$toast(i[a].name+"必填!"),e=!1,!1;if("level"==i[a].keyname&&0==i[a].status&&0==i[a].is_must&&!t.$refs.addcrmmsg.level)return this.$toast(i[a].name+"必填!"),e=!1,!1;if("source_id"==i[a].keyname&&0==i[a].status&&0==i[a].is_must&&!t.$refs.addcrmmsg.source)return this.$toast(i[a].name+"必填!"),e=!1,!1;if("house_delivery_time"==i[a].keyname&&0==i[a].status&&0==i[a].is_must){let t="";if(Object.keys(s).forEach(e=>{"house_type"==s[e].keyname&&(t=s[e].keytext)}),"期房"==t&&!s[i[a].id].value)return this.$toast(i[a].name+"必填!"),!1}else if("live_broadcast_business"==i[a].keyname&&0==i[a].status&&0==i[a].is_must){let t="";if(Object.keys(s).forEach(e=>{"live_broadcast"==s[e].keyname&&(t=s[e].keytext.filter(t=>"1对1业务直播"==t))}),t.length&&!s[i[a].id].value)return this.$toast(i[a].name+"必填!"),!1}else if("live_broadcast_design"==i[a].keyname&&0==i[a].status&&0==i[a].is_must){let t="";if(Object.keys(s).forEach(e=>{"live_broadcast"==s[e].keyname&&(t=s[e].keytext.filter(t=>"1对1设计直播"==t))}),t.length&&!s[i[a].id].value)return this.$toast(i[a].name+"必填!"),!1}else if("live_broadcast_personnel"==i[a].keyname&&0==i[a].status&&0==i[a].is_must){let t="";if(Object.keys(s).forEach(e=>{"live_broadcast"==s[e].keyname&&(t=s[e].keytext.filter(t=>"一对多直播"==t))}),t.length&&!s[i[a].id].value)return this.$toast(i[a].name+"必填!"),!1}else if(0==i[a].status&&0==i[a].is_must&&s[i[a].id]&&(Array.isArray(s[i[a].id].value)&&!s[i[a].id].value.length||!s[i[a].id].value))return this.$toast(i[a].name+"必填!"),e=!1,!1}return e},submitData1(){if("1"==this.changeType&&!this.form.media_id1.length)return void this.$toast("请上传量房图片");if("2"==this.changeType&&!this.form.number)return void this.$toast("请填写到店人数");if("4"==this.changeType&&!this.form.money){let t="vL0CQQ"==this.clientype||"T2qxut"==this.clientype||"7Qn1dz"==this.clientype?"请填写交定金额":"请填写签单金额";return void this.$toast(t)}if("5"==this.changeType&&!this.form.money){let t="vL0CQQ"==this.clientype||"T2qxut"==this.clientype||"7Qn1dz"==this.clientype?"请填写签单金额":"请填写合同金额";return void this.$toast(t)}if(("4"==this.changeType||"5"==this.changeType)&&!this.form.media_id1.length&&this.nowitem.stateNum&&0==this.nowitem.stateNum.signed){if("vL0CQQ"==this.clientype||"T2qxut"==this.clientype||"7Qn1dz"==this.clientype){let t="4"==this.changeType?"交定":"签单";this.$toast(`请上传${t}依据`)}else{let t="4"==this.changeType?"签单":"合同";this.$toast(`请上传${t}依据`)}return}let t=this.checkParamsState();t&&(this.loading=!0,this.addrecordfun())},addrecordfun:function(t,e){let i=this,s="",a=this.$refs.addcrmmsg.extarr;Object.keys(a).forEach(t=>{"state_measuring_room"==a[t]["keyname"]&&(s=a[t].value)});var r={customer_id:this.cid,img:"1"==this.changeType?this.form.media_id1.map(t=>t.url).join(","):"",img1:"",delivery_img:"4"==this.changeType?this.form.media_id1.map(t=>t.url).join(","):"",sign_img:"5"==this.changeType?this.form.media_id1.map(t=>t.url).join(","):"",media_id:"",weixin_media:!0,media_id1:"",weixin_media1:"",delivery_media_id:"",sign_media_id:"",type:"",remark:this.form.remark,state:this.getstatefun(),next_contact_date:this.form.next_contact_date,aid:"3"==this.changeType&&"1"==this.meetype?this.form.aid:"2"==this.changeType?this.form.said:"",money:this.form.money,deposit_mode:this.form.deposit_mode,starts:0,package:"4"==this.changeType&&this.form.productIds.length?this.form.productIds.join(","):"",confirm_date:this.form.confirm_date,number_of_visitors:"2"==this.changeType||"3"==this.changeType?this.form.number:"",measure_room_img_type:"1"==this.changeType?this.amountext.join(","):"",talking_order_time:"2"==this.changeType?this.form.orderTimeNum:"",stay_length:"3"==this.changeType?this.form.stay_length:"",down_payment:"5"==this.changeType?this.form.down_payment:"",shop_id:"2"==this.changeType?this.form.shopId:"",actmeet_type:"3"==this.changeType?this.meetype:"",state_type:"1"==this.changeType?s:"",vlogid:"5"==this.changeType?this.customerobj.vlogid:""};1==this.manager?Object(f["pb"])(r).then(t=>{if(this.loading=!1,this.meetype="1","0"==t.data.code){if(1==this.changeType||2==this.changeType||3==this.changeType){let t=1==this.changeType?"量房":2==this.changeType?"到店":"到场";this.looktimetap(t)}else i.$toast(t.data.msg);this.editcustomermsg(),"无效"!=r.state&&this.$emit("updateMsg",{state:0,cid:this.cid,data:r}),this.$emit("updateMsg",{state:0,cid:this.cid,data:r}),this.initForm()}else i.$toast(t.data.msg)}).catch(t=>{this.loading=!1}):Object(f["c"])(r).then(t=>{if(this.meetype="1","0"==t.data.code){if(1==this.changeType||2==this.changeType||3==this.changeType){let e=1==this.changeType?"量房":2==this.changeType?"到店":"到场";this.looktimetap(e),this.returnVisitApi(t.data.index),i.$toast("确认"+e+"成功!")}else i.$toast(t.data.msg);this.editcustomermsg(),"无效"!=r.state&&this.$emit("updateMsg",{state:0,cid:this.cid,data:r}),this.$emit("updateMsg",{state:0,cid:this.cid,data:r}),this.initForm()}else this.loading=!1,i.$toast(t.data.msg)}).catch(t=>{this.loading=!1})},editcustomertap(){let t,e=[],i=this.$refs.addcrmmsg.extarr;for(let s in i){let t;"1"==i[s].type||"2"==i[s].type||"5"==i[s].type||"3"==i[s].type?t="live_broadcast_personnel"==i[s].keyname?{id:s,keyname:i[s].keyname,type:i[s].type,value:Array.isArray(i[s].value)?i[s].value.join(","):i[s].value?i[s].value:""}:{id:s,keyname:i[s].keyname,type:i[s].type,value:i[s].value}:"4"==i[s].type?t={id:s,keyname:i[s].keyname,type:i[s].type,value:i[s].value?i[s].value.join(","):""}:"6"==i[s].type&&(t={id:s,keyname:i[s].keyname,type:i[s].type,value:i[s].value.length?i[s].value.map(t=>({serverId:t.serverId||"",img:t.url||""})):""}),e.push(t)}if(!e.length)return setTimeout(()=>{this.loading=!1},1500),void this.getChangeModuleField(!0);t={id:this.cid,ext:e.filter(t=>t.id),alertshow:"123"},Object(f["o"])(t).then(t=>{setTimeout(()=>{this.loading=!1},1500),0==t.data.code&&this.getChangeModuleField(!0)})},editcustomermsg:function(t){const e=this;let i={clue_id:"",id:e.cid,name:e.$refs.addcrmmsg.personame,phone:e.$refs.addcrmmsg.phonenum,phone1:e.$refs.addcrmmsg.phonenum1,phone2:e.$refs.addcrmmsg.phonenum2,sex:"男"==this.$refs.addcrmmsg.sex?1:"女"==this.$refs.addcrmmsg.sex?2:"",level:e.$refs.addcrmmsg.level,source_id:e.$refs.addcrmmsg.source};Object.keys(i).forEach(t=>{i[t]||delete i[t]}),Object(f["H"])(i).then(t=>{0==t.data.code&&e.editcustomertap()})},looktimetap(t){this.loglist=[];let e={id:this.cid,state:"活动"==t?"到场":t};Object(f["qb"])(e).then(t=>{if(0==t.data.code){for(let e=0;e<t.data.data.length;e++)t.data.data[e].colortime=t.data.data[e].addtime.split(" ")[0];this.loglist=t.data.data}})},returnVisitApi(t){Object(f["jb"])({index:t}).then(t=>{})},getstatefun(){const t=this;let e="";return e=1==t.changeType?"已量房":2==this.changeType?"已到店":3==this.changeType?"已到场":4==this.changeType?"已交定":5==this.changeType?"已签单":"已卖卡",e},uploadFiles(){if(4==this.changeType&&this.nowitem.stateNum&&0!=this.nowitem.stateNum.signed){let t="vL0CQQ"==this.clientype||"T2qxut"==this.clientype||"7Qn1dz"==this.clientype?"已签单客户":"已转单客户";return void this.$toast(t)}let t=9-this.form.media_id1.length;if(0==t)return this.$toast("最多只能选9张图片"),!1;window.android?window.android.handleSelectedImages(t):window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.handleSelectedImages&&window.webkit.messageHandlers.handleSelectedImages.postMessage(t)},getImageFile(t){let e=window.URL||window.webkitURL,i=t.target.files[0];this.form.media_id1.push({img:e.createObjectURL(i),file:i,id:this.form.media_id1.length+1})},uploadALY(t){return new Promise((function(e,i){let s=new OSS({region:"oss-cn-hangzhou",accessKeyId:"LTAI5tHjWupJSCAycy2yVbQZ",accessKeySecret:"eNFicm77Cfq3u7ZnQyw1urFmFNpf3w",bucket:"zyzswzh",secure:!0}),a=t.name.indexOf(".")>-1?t.name.split(".")[0]:(new Date).getTime();var r=new Date;let n=r.getFullYear()+""+(1*r.getMonth()+1)+r.getDate(),o="crm/"+n+"/"+`${Date.now()}${a}.jpeg`;s.multipartUpload(o,t).then((function(t){e(t.name)})).catch((function(t){i(t)}))}))}}},B=Q,L=(i("1001"),Object(k["a"])(B,S,F,!1,null,"a121f22a",null)),U=L.exports,R=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xq-customer-subscribe-component"},[e("div",{staticClass:"xq-customer-subscribe-header flex align-center justify-around"},[t._l(t.subscribeTabs,(function(i){return[e("div",{directives:[{name:"show",rawName:"v-show",value:1==i.show,expression:"item.show == 1"}],key:i.type,class:{"xq-customer-subscribe-active":t.subscribeType==i.type},on:{click:function(e){return t.switchChangeType(i.type)}}},[t._v(t._s(i.name))])]}))],2),e("div",{staticClass:"xq-customer-subscribe-padding"},["1"===t.subscribeType?["vL0CQQ"==t.clientype||"T2qxut"==t.clientype||"7Qn1dz"==t.clientype?e("div",{staticClass:"xq-customer-subscribe-activity-box"},[e("div",{staticClass:"xq-customer-subscribe-activity-label font28 color384855"},[t._v("选择见面类型")]),e("div",{staticClass:"flex-sub flex align-center"},t._l(t.meetypeArr,(function(i){return e("div",{key:i.id,staticClass:"flex-sub flex align-center",on:{click:function(e){return t.switchmeetype(i.id)}}},[t.meetype==i.id?e("img",{staticClass:"xq-customer-tracking-radio",attrs:{src:t.$store.state.imgUrl+"/xcx/selected.png"}}):t._e(),t.meetype!=i.id?e("img",{staticClass:"xq-customer-tracking-radio",attrs:{src:t.$store.state.imgUrl+"/xcx/unselected.png"}}):t._e(),e("span",{staticClass:"font28 color384855 ml10"},[t._v(t._s(i.name))])])})),0)]):t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:1==t.meetype,expression:"meetype == 1"}],staticClass:"xq-customer-subscribe-activity-box",on:{click:t.selectActivity}},[t._m(0),e("div",{staticClass:"xq-customer-subscribe-activity-content font28 color333"},[t._v(" "+t._s(t.form.activityName?t.form.activityName:t.outfieldActivityTips)+" ")])]),e("div",{staticClass:"xq-customer-subscribe-date-box",on:{click:function(e){t.showCalendar=!0}}},[t._m(1),e("div",{staticClass:"xq-customer-subscribe-date-content"},[e("span",{staticClass:"font28 color333"},[t._v(t._s(t.form.confirm_date?t.form.confirm_date:"请选择"))]),e("img",{staticClass:"xq-customer-date-icon",attrs:{src:i("f7fb"),alt:""}})])]),e("div",{staticClass:"xq-customer-subscribe-dialog-box",on:{click:function(e){return t.handleShow(1)}}},[t._m(2),e("div",{staticClass:"xq-customer-subscribe-dialog-content"},[e("div",{staticClass:"xq-customer-subscribe-dialog-data"},[t._l(t.customerobj.assigned_personnel_imgs,(function(t,s){return[t?[e("img",{key:s,attrs:{src:t,alt:""}})]:[e("img",{key:s,attrs:{src:i("ee87"),alt:""}})]]}))],2),e("img",{staticClass:"xq-custom-select-icon",attrs:{src:i("f465")}})])]),e("xq-custom-field",{ref:"addcrmmsg",attrs:{customertype:1,customfield:t.curTrackField,customerinfo:t.customerobj}}),e("div",{staticClass:"xq-customer-subscribe-textarea-box"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.remark,expression:"form.remark"}],attrs:{rows:"4",placeholder:"请添加备注信息"},domProps:{value:t.form.remark},on:{input:function(e){e.target.composing||t.$set(t.form,"remark",e.target.value)}}})]),e("div",{staticClass:"xq-customer-subscribe-submit"},[e("van-button",{attrs:{type:"info",loading:t.loading,"loading-text":"正在提交数据...",disabled:t.loading||!t.activityArr.length},on:{click:t.submitActivity}},[t._v(t._s(t.activitySubmitTitle)+" ")])],1),e("checkDesignerVue",{directives:[{name:"show",rawName:"v-show",value:t.showPopup,expression:"showPopup"}],attrs:{designerlist:JSON.stringify(t.designerarr),customerid:t.cid,isdepart:t.orgVal,select:4,assignType:t.customerobj.assign_type,showval:t.customerobj.assigned_personnel},on:{onSearch:t.designerfun,submit:t.submitDesigner},model:{value:t.showPopup,callback:function(e){t.showPopup=e},expression:"showPopup"}})]:"2"===t.subscribeType?[e("div",{staticClass:"xq-customer-subscribe-radio-group"},[e("van-radio-group",{on:{change:t.switchDate},model:{value:t.form.nextdate,callback:function(e){t.$set(t.form,"nextdate",e)},expression:"form.nextdate"}},[e("van-radio",{attrs:{name:1}},[t._v("今天")]),e("van-radio",{attrs:{name:2}},[t._v("明天")]),e("van-radio",{attrs:{name:3}},[t._v("本周六")]),e("van-radio",{attrs:{name:4}},[t._v("本周日")]),e("van-radio",{attrs:{name:5}},[t._v("其他时间")])],1)],1),e("div",{staticClass:"xq-customer-subscribe-activity-box",on:{click:t.selectActivity}},[e("div",{staticClass:"xq-customer-subscribe-activity-label font28 color384855"},[t._v("选择活动")]),e("div",{staticClass:"xq-customer-subscribe-activity-content font28 color333"},[t._v(" "+t._s(t.form.activityNName?t.form.activityNName:t.toStoreActivityTips)+" ")])]),e("div",{staticClass:"xq-customer-subscribe-date-box",on:{click:function(e){t.showCalendar=!0}}},[t._m(3),e("div",{staticClass:"xq-customer-subscribe-date-content"},[e("span",{staticClass:"font28 color333"},[t._v(t._s(t.form.confirm_date?t.form.confirm_date:"请选择"))]),e("img",{staticClass:"xq-customer-date-icon",attrs:{src:i("f7fb"),alt:""}})])]),e("div",{staticClass:"xq-customer-subscribe-dialog-box",on:{click:function(e){return t.handleShow(1)}}},[t._m(4),e("div",{staticClass:"xq-customer-subscribe-dialog-content"},[e("div",{staticClass:"xq-customer-subscribe-dialog-data"},[t._l(t.customerobj.assigned_personnel_imgs,(function(t,s){return[t?[e("img",{key:s,attrs:{src:t,alt:""}})]:[e("img",{key:s,attrs:{src:i("ee87"),alt:""}})]]}))],2),e("img",{staticClass:"xq-custom-select-icon",attrs:{src:i("f465")}})])]),e("xq-custom-field",{ref:"addcrmmsg",attrs:{customertype:1,customfield:t.curTrackField,customerinfo:t.customerobj}}),e("div",{staticClass:"xq-customer-subscribe-textarea-box"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.remark,expression:"form.remark"}],attrs:{rows:"4",placeholder:"请添加备注信息"},domProps:{value:t.form.remark},on:{input:function(e){e.target.composing||t.$set(t.form,"remark",e.target.value)}}})]),e("div",{staticClass:"xq-customer-subscribe-submit"},[e("van-button",{attrs:{type:"info",loading:t.loading,"loading-text":"正在提交数据...",disabled:t.loading},on:{click:t.submitStore}},[t._v("提交预约")])],1),e("checkDesignerVue",{directives:[{name:"show",rawName:"v-show",value:t.showPopup,expression:"showPopup"}],attrs:{designerlist:JSON.stringify(t.designerarr),customerid:t.cid,isdepart:t.orgVal,select:4,assignType:t.customerobj.assign_type,showval:t.customerobj.assigned_personnel},on:{onSearch:t.designerfun,submit:t.submitDesigner},model:{value:t.showPopup,callback:function(e){t.showPopup=e},expression:"showPopup"}})]:[e("div",{staticClass:"xq-customer-subscribe-radio-group"},[e("van-radio-group",{on:{change:t.switchDate},model:{value:t.form.nextdate,callback:function(e){t.$set(t.form,"nextdate",e)},expression:"form.nextdate"}},[e("van-radio",{attrs:{name:1}},[t._v("今天")]),e("van-radio",{attrs:{name:2}},[t._v("明天")]),e("van-radio",{attrs:{name:3}},[t._v("本周六")]),e("van-radio",{attrs:{name:4}},[t._v("本周日")]),e("van-radio",{attrs:{name:5}},[t._v("其他时间")])],1)],1),e("div",{staticClass:"xq-customer-subscribe-date-box",on:{click:function(e){t.showCalendar=!0}}},[t._m(5),e("div",{staticClass:"xq-customer-subscribe-date-content"},[e("span",{staticClass:"font28 color333"},[t._v(t._s(t.form.confirm_date?t.form.confirm_date:"请选择"))]),e("img",{staticClass:"xq-customer-date-icon",attrs:{src:i("f7fb"),alt:""}})])]),e("div",{staticClass:"xq-customer-subscribe-dialog-box",on:{click:function(e){return t.handleShow(1)}}},[t._m(6),e("div",{staticClass:"xq-customer-subscribe-dialog-content"},[e("div",{staticClass:"xq-customer-subscribe-dialog-data"},[t._l(t.customerobj.assigned_personnel_imgs,(function(t,s){return[t?[e("img",{key:s,attrs:{src:t,alt:""}})]:[e("img",{key:s,attrs:{src:i("ee87"),alt:""}})]]}))],2),e("img",{staticClass:"xq-custom-select-icon",attrs:{src:i("f465")}})])]),e("xq-custom-field",{ref:"addcrmmsg",attrs:{customertype:1,customfield:t.curTrackField,customerinfo:t.customerobj}}),e("div",{staticClass:"xq-customer-subscribe-textarea-box"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.remark,expression:"form.remark"}],attrs:{rows:"4",placeholder:"请添加备注信息"},domProps:{value:t.form.remark},on:{input:function(e){e.target.composing||t.$set(t.form,"remark",e.target.value)}}})]),e("div",{staticClass:"xq-customer-subscribe-submit"},[e("van-button",{attrs:{type:"info",loading:t.loading,"loading-text":"正在提交数据...",disabled:t.loading},on:{click:t.submitRoom}},[t._v("提交预约")])],1),e("checkDesignerVue",{directives:[{name:"show",rawName:"v-show",value:t.showPopup,expression:"showPopup"}],attrs:{designerlist:JSON.stringify(t.designerarr),customerid:t.cid,isdepart:t.orgVal,select:4,assignType:t.customerobj.assign_type,showval:t.customerobj.assigned_personnel},on:{onSearch:t.designerfun,submit:t.submitDesigner},model:{value:t.showPopup,callback:function(e){t.showPopup=e},expression:"showPopup"}})]],2),e("div",{staticClass:"line-subscribe"}),e("div",{staticClass:"trackrecordbox2"},[e("div",{staticClass:"clearfix"},[t._m(7),e("div",{staticClass:"rightrecordbtn fontfpr pull-right"},[t._v(" 共预约"+t._s(t.subscribelist.length)+"次 ")])]),e("div",{staticClass:"trackrecordlistbox relative"},[e("span"),t._l(t.subscribelist,(function(i,s){return e("div",{key:i.id,staticClass:"everytrackrecordbox"},[0==s||t.subscribelist[s].colortime!=t.subscribelist[s-1].colortime?e("div",{staticClass:"toptimebox clearfix"},[t._m(8,!0),e("div",{staticClass:"daytime pull-left"},[t._v(" "+t._s(i.addtime.split(" ")[0])+" ")])]):t._e(),e("div",{staticClass:"recordcontentbox3 clearfix"},[e("div",{staticClass:"pull-left bluemiddlecirccle"}),e("div",{staticClass:"recordcontentdiv pull-left bluecolor clearfix"},[e("div",{staticClass:"recordcontent clearfix"},[e("div",{staticClass:"color249efb fontfps pull-left font24"},[t._v(" "+t._s(i.employee&&i.employee.name?i.employee.name:"未知")+" ")]),e("div",{staticClass:"pull-left fontfpr font24 addhourbox"},[t._v(" "+t._s(i.addtime.split(" ")[1])+" ")]),e("div",{staticClass:"pull-left recordcontentmsg clearfix",staticStyle:{width:"100%"}},[e("div",{staticClass:"pull-left colorB6CADE leftextbox"},[t._v(" "+t._s("预约活动"==i.type?"发起了活动预约提醒,预约时间为:"+i.subscribe_date:"预约量房"==i.type?"发起了量房预约提醒,预约时间为:"+i.subscribe_date:"预约到店"==i.type?"发起了到店预约提醒,预约时间为:"+i.subscribe_date:"变更客户状态为"+i.type)+" "+t._s(0!=i.actmeet_type?"见面类型:"+(1==i.actmeet_type?"外场活动":2==i.actmeet_type?"茶楼见面":"网谈登记"):"")+" ")]),e("div",{staticClass:"pull-right fontfpr smstatebox",style:{color:"预约活动"==i.type|"预约量房"==i.type||"预约到店"==i.type?"#71c4ff":"#B6CADE"},on:{click:function(e){return t.cancle(i)}}},[t._v(" "+t._s("预约活动"==i.type||"预约量房"==i.type||"预约到店"==i.type?i.order_type>0?"取消预约":"":i.type)+" ")])])])])])])}))],2)]),e("van-popup",{attrs:{round:"",position:"bottom"},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}},[e("van-picker",{attrs:{"show-toolbar":"",title:"选择外场活动",columns:t.columns},on:{cancel:function(e){t.showPicker=!1},confirm:t.onactivityConfirm}})],1),e("van-popup",{attrs:{round:"",position:"bottom"},model:{value:t.showNPicker,callback:function(e){t.showNPicker=e},expression:"showNPicker"}},[e("van-picker",{attrs:{"show-toolbar":"",title:"选择内场活动",columns:t.nActivityColumns},on:{cancel:function(e){t.showNPicker=!1},confirm:t.onActivityNConfirm}})],1),e("van-calendar",{attrs:{"min-date":t.minDate,"max-date":t.maxDate,color:"#249EFB",title:"选择预约时间"},on:{confirm:t.onConfirm},model:{value:t.showCalendar,callback:function(e){t.showCalendar=e},expression:"showCalendar"}})],1)},z=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"xq-customer-subscribe-activity-label font28 color384855"},[e("span",{staticClass:"colorFF0000"},[t._v("*")]),t._v("选择活动")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"xq-customer-subscribe-date-label font28 color384855"},[e("span",{staticClass:"colorFF0000"},[t._v("*")]),t._v("预计到场时间")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"xq-customer-subscribe-dialog-label font28 color384855"},[t._v(" 指派人员 "),e("span",{staticClass:"color9DB6CF"},[t._v("(可多选)")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"xq-customer-subscribe-date-label font28 color384855"},[e("span",{staticClass:"colorFF0000"},[t._v("*")]),t._v("预计到店时间")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"xq-customer-subscribe-dialog-label font28 color384855"},[t._v(" 指派人员 "),e("span",{staticClass:"color9DB6CF"},[t._v("(可多选)")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"xq-customer-subscribe-date-label font28 color384855"},[e("span",{staticClass:"colorFF0000"},[t._v("*")]),t._v("请选择预约时间")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"xq-customer-subscribe-dialog-label font28 color384855"},[t._v(" 指派人员 "),e("span",{staticClass:"color9DB6CF"},[t._v("(可多选)")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"clearfix pull-left leftrecordtitbox font28 fontfpr color384855"},[e("div",{staticClass:"pull-left font32"},[t._v("预约记录")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"pull-left bluecircclebox"},[e("div")])}],V=(i("4ddd"),i("9f14")),W=(i("a44c"),i("e27c")),K={components:{[r["a"].name]:r["a"],[W["a"].name]:W["a"],[V["a"].name]:V["a"],[$["a"].name]:$["a"],[l["a"].name]:l["a"],[h["a"].name]:h["a"],checkDesignerVue:g["a"],xqCustomField:T},props:["dialog","rtype","customerobj","nidx","cid","nowitem","manager","crmSettingObj"],data(){return{loading:!1,showPicker:!1,showNPicker:!1,showPopup:!1,showCalendar:!1,subscribeType:"1",orgVal:1,unsureaidx:0,minDate:new Date,maxDate:new Date(2027,0,1),meetypeArr:[{id:1,name:"外场活动"},{id:2,name:"茶楼见面"},{id:3,name:"网谈登记"}],subscribeTabs:[{name:"活动预约",type:"1",field:"hd",fieldType:"yyhd"},{name:"到店预约",type:"2",field:"dd",fieldType:"yydd"},{name:"量房预约",type:"3",field:"lf",fieldType:"yylf"}],activityTypeArr:[{name:"内场",type:"0"},{name:"外场",type:"1"}],subscribelist:[],departmentArr:[],designerarr:[],columns:[],nActivityColumns:[],nActivityArr:[],activityArr:[],curTrackField:[],subscribeObj:{},form:{nextdate:1,aid:"",activityName:"",type:"1",remark:"",confirm_date:"",state:"",next_contact_date:""},meetype:1}},watch:{rtype:{handler(t){"4"==t&&this.dialog&&this.$nextTick(()=>{this.initForm(),this.activityList("0"),this.activityList("1"),this.designerfun({type:1}),this.getSubscribeModuleField(),this.crmsubscribefun()})},immediate:!0},customerobj:{handler(t){t.id},immediate:!0}},computed:{...Object(_["mapState"])({clientype:t=>t.clientype}),activitySubmitTitle(){return this.activityArr.length?"提交预约":"~暂无外场活动-无法预约~"},toStoreActivityTips(){return this.nActivityArr.length?"请选择内场活动":"~暂无内场活动~"},outfieldActivityTips(){return this.activityArr.length?"请选择外场活动":"~暂无外场活动~"},activityId(){return 1==this.subscribeType?1==this.meetype?this.form.aid:"":2==this.subscribeType?this.form.aid:""}},methods:{switchmeetype(t){this.meetype=t},initForm(){this.form={nextdate:1,aid:"",activityName:"",type:1==this.subscribeType?"1":"0",remark:"",confirm_date:b()(new Date).format("YYYY/MM/DD"),state:"",next_contact_date:""},this.meetype=1},switchChangeType(t){this.subscribeType=t,1==t?(this.meetype=1,this.form.type="1",this.curTrackField=this.subscribeObj.yyhd.field,this.form.nextdate=1,this.form.confirm_date=b()(new Date).format("YYYY/MM/DD")):2==t?(this.form.type="0",this.curTrackField=this.subscribeObj.yydd.field,this.form.nextdate=1,this.form.confirm_date=b()(new Date).format("YYYY/MM/DD")):3==t&&(this.curTrackField=this.subscribeObj.yylf.field,this.form.nextdate=1,this.form.confirm_date=b()(new Date).format("YYYY/MM/DD")),this.form.aid="",this.form.activityName=""},switchSubscribeType(t){this.form.type=t,this.form.activityName="",this.form.activityNName="",this.form.aid="",this.form.confirm_date=""},switchDate(t){if(this.form.nextdate=t,5==t)return!1;let e=new Date,i=0==e.getDay()?7:e.getDay(),s=e.getTime(),a=864e5,r=1==t?0:2==t?1:3==t?6-i:t=7-i,n=s+r*a,o=new Date(n).getFullYear(),c=new Date(n).getMonth(),l=new Date(n).getDate(),d=1*c+1<10?"0"+(1*c+1):1*c+1,m=1*l<10?"0"+1*l:1*l;this.form.confirm_date=`${o}/${d}/${m}`},setNextdate(t){for(let e=1;e<=5;e++){let i=parseInt(JSON.parse(JSON.stringify(e)));if(5==e)return void(this.form.nextdate=i);let s=new Date,a=0==s.getDay()?7:s.getDay(),r=s.getTime(),n=864e5,o=1==i?0:2==i?1:3==i?6-a:i=7-a,c=r+o*n,l=new Date(c).getFullYear(),d=new Date(c).getMonth(),m=new Date(c).getDate(),u=1*d+1<10?"0"+(1*d+1):1*d+1,h=1*m<10?"0"+1*m:1*m,p=`${l}/${u}/${h}`;if(p==t)return void(this.form.nextdate=i)}},selectActivity(){if("0"===this.form.type){if(!this.nActivityArr.length)return void this.$toast("~暂无内场活动~");this.showNPicker=!0}else{if(!this.activityArr.length)return void this.$toast("~暂无外场活动~");this.showPicker=!0}},onConfirm(t){this.form.confirm_date=b()(t).format("YYYY/MM/DD"),this.setNextdate(this.form.confirm_date),this.showCalendar=!1},handleShow(t){this.orgVal=t,1==t&&(this.showPopup=!0)},getSubscribeModuleField(){Object(f["ob"])({id:this.cid}).then(t=>{if(0==t.data.code){this.subscribeObj=t.data.data,this.subscribeTabs.forEach((t,e)=>{this.$set(this.subscribeTabs[e],"show",this.subscribeObj[t.field].show)});let e=this.subscribeTabs.filter(t=>1==t.show);e.length&&(this.curTrackField=this.subscribeObj[e[0]["fieldType"]]["field"],this.subscribeType=e[0].type)}})},designerfun(t){let e={};t&&(t.val||""==t.val)&&(e.keyword=t.val),t&&2==t.type?e.org_type=1:e.org_type=0,Object(f["F"])(e).then(e=>{0==e.data.code&&(2==t.type?this.departmentArr=e.data.data:this.designerarr=e.data.data)})},submitDesigner(t,e){let i={id:this.cid,designerId:t.join(",")};e&&!this.customerobj.assign_type&&(i["assign_type"]=e),Object(f["ib"])(i).then(t=>{0==t.data.code&&(this.$toast(t.data.msg),this.$emit("updateMsg",{state:0,cid:this.cid}))})},onactivityConfirm(t){this.form.activityName=t,this.activityArr.forEach((e,i)=>{if(e.title==t&&(this.unsureaidx=i,this.form.aid=e.id,e.start_date&&e.end_date)){e.start_date.split("-");let t=e.end_date.split("-");this.minDate=new Date,this.maxDate=new Date(t[0],t[1]-1,t[2])}}),this.showPicker=!1},onActivityNConfirm(t){this.form.activityNName=t,this.nActivityArr.forEach((e,i)=>{if(e.title==t&&(this.unsureaidx=i,this.form.aid=e.id,e.start_date&&e.end_date)){e.start_date.split("-");let t=e.end_date.split("-");this.minDate=new Date,this.maxDate=new Date(t[0],t[1]-1,t[2])}}),this.showNPicker=!1},activityList(t){let e={cate:t};Object(f["a"])(e).then(e=>{0==e.data.code&&("0"==t?(this.nActivityArr=e.data.data,this.nActivityColumns=e.data.data.map(t=>t.title)):"1"==t&&(this.unsureaidx=0,this.activityArr=e.data.data,this.columns=e.data.data.map(t=>t.title)))})},crmsubscribefun(){const t=this;let e={id:t.cid};Object(f["u"])(e).then(t=>{if("0"==t.data.code){let e=new Date,i=e.getFullYear(),s=e.getMonth();s=1*s+1;let a=e.getDate(),r=i+"/"+s+"/"+a;for(let n=0;n<t.data.data.length;n++){let e=this.utils.dayDiff(new Date(t.data.data[n].subscribe_date.split("-").join("/")),new Date(r));t.data.data[n].order_type=e>=0?1:0,t.data.data[n].colortime=t.data.data[n].addtime.split(" ")[0]}this.subscribelist=t.data.data}})},checkParamsState(){let t=this,e=!0,i=this.$refs.addcrmmsg.crmvalarr,s=this.$refs.addcrmmsg.extarr;for(let a=0;a<i.length;a++){if("name"==i[a].keyname&&0==i[a].status&&0==i[a].is_must&&!t.$refs.addcrmmsg.personame)return this.$toast(i[a].name+"必填!"),e=!1,!1;if("sex"==i[a].keyname&&0==i[a].status&&0==i[a].is_must&&!this.$refs.addcrmmsg.sex)return this.$toast(i[a].name+"必填!"),e=!1,!1;if("level"==i[a].keyname&&0==i[a].status&&0==i[a].is_must&&!t.$refs.addcrmmsg.level)return this.$toast(i[a].name+"必填!"),e=!1,!1;if("source_id"==i[a].keyname&&0==i[a].status&&0==i[a].is_must&&!t.$refs.addcrmmsg.source)return this.$toast(i[a].name+"必填!"),e=!1,!1;if("house_delivery_time"==i[a].keyname&&0==i[a].status&&0==i[a].is_must){let t="";if(Object.keys(s).forEach(e=>{"house_type"==s[e].keyname&&(t=s[e].keytext)}),"期房"==t&&!s[i[a].id].value)return this.$toast(i[a].name+"必填!"),!1}else if("live_broadcast_business"==i[a].keyname&&0==i[a].status&&0==i[a].is_must){let t="";if(Object.keys(s).forEach(e=>{"live_broadcast"==s[e].keyname&&(t=s[e].keytext.filter(t=>"1对1业务直播"==t))}),t.length&&!s[i[a].id].value)return this.$toast(i[a].name+"必填!"),!1}else if("live_broadcast_design"==i[a].keyname&&0==i[a].status&&0==i[a].is_must){let t="";if(Object.keys(s).forEach(e=>{"live_broadcast"==s[e].keyname&&(t=s[e].keytext.filter(t=>"1对1设计直播"==t))}),t.length&&!s[i[a].id].value)return this.$toast(i[a].name+"必填!"),!1}else if("live_broadcast_personnel"==i[a].keyname&&0==i[a].status&&0==i[a].is_must){let t="";if(Object.keys(s).forEach(e=>{"live_broadcast"==s[e].keyname&&(t=s[e].keytext.filter(t=>"一对多直播"==t))}),t.length&&!s[i[a].id].value)return this.$toast(i[a].name+"必填!"),!1}else if(0==i[a].status&&0==i[a].is_must&&s[i[a].id]&&(Array.isArray(s[i[a].id].value)&&!s[i[a].id].value.length||!s[i[a].id].value))return this.$toast(i[a].name+"必填!"),e=!1,!1}return e},submitActivity(){if(!this.form.aid&&1==this.meetype)return void this.$toast("请选择活动");if(!this.form.confirm_date)return void this.$toast("请选择预约时间");let t=this.checkParamsState();t&&(this.loading=!0,this.addrecordfun())},submitStore(){let t=this.checkParamsState();t&&(this.loading=!0,this.addrecordfun())},submitRoom(){let t=this.checkParamsState();t&&(this.loading=!0,this.addrecordfun())},addrecordfun:function(t,e){let i=this;var s={customer_id:this.cid,img:"",img1:"",delivery_img:"",sign_img:"",media_id:"",weixin_media:!0,media_id1:"",weixin_media1:"",delivery_media_id:"",sign_media_id:"",type:"",remark:this.form.remark,state:this.getstatefun(t),next_contact_date:this.form.next_contact_date,aid:this.activityId,money:"",deposit_mode:"",starts:0,package:"",confirm_date:t>=4?e:this.form.confirm_date,number_of_visitors:"",measure_room_img_type:"",talking_order_time:"",stay_length:"",down_payment:"",actmeet_type:this.meetype};1==this.manager?Object(f["pb"])(s).then(e=>{if(this.loading=!1,this.meetype=1,"0"==e.data.code){let e=t&&t>=4?"取消预约成功!":"预约成功,别忘了去指派设计师!";i.$toast(e),this.editcustomermsg(),"无效"!=s.state&&this.$emit("updateMsg",{state:0,cid:this.cid,data:s}),this.$emit("updateMsg",{state:0,cid:this.cid,data:s}),this.crmsubscribefun(),this.initForm()}else i.$toast(e.data.msg)}).catch(t=>{this.loading=!1}):Object(f["c"])(s).then(e=>{if(this.loading=!1,this.meetype=1,"0"==e.data.code){let a=t&&t>=4?"取消预约成功!":"预约成功,别忘了去指派设计师!";i.$toast(a),this.editcustomermsg(),"无效"!=s.state&&this.$emit("updateMsg",{state:0,cid:this.cid,data:s}),this.returnVisitApi(e.data.index),this.$emit("updateMsg",{state:0,cid:this.cid,data:s}),this.crmsubscribefun(),this.initForm()}else i.$toast(e.data.msg)}).catch(t=>{this.loading=!1})},returnVisitApi(t){Object(f["jb"])({index:t}).then(t=>{})},cancle(t){var e=this;t.order_type>0&&("预约量房"==t.type&&(e.$parent.loadFlag=!0,this.addrecordfun(4,t.subscribe_date)),"预约到店"==t.type&&(e.$parent.loadFlag=!0,this.addrecordfun(5,t.subscribe_date)),"预约活动"==t.type&&(e.$parent.loadFlag=!0,this.addrecordfun(6,t.subscribe_date)))},getstatefun(t){const e=this;let i="";return i=1==e.subscribeType?"预约活动":2==this.subscribeType?"预约到店":3==this.subscribeType?"预约量房":"",4==t?i="未量房":5==t?i="未到店":6==t&&(i="未到场"),i},editcustomertap(){let t,e=[],i=this.$refs.addcrmmsg.extarr;for(let s in i){let t;"1"==i[s].type||"2"==i[s].type||"5"==i[s].type||"3"==i[s].type?t="live_broadcast_personnel"==i[s].keyname?{id:s,keyname:i[s].keyname,type:i[s].type,value:Array.isArray(i[s].value)?i[s].value.join(","):i[s].value?i[s].value:""}:{id:s,keyname:i[s].keyname,type:i[s].type,value:i[s].value}:"4"==i[s].type?t={id:s,keyname:i[s].keyname,type:i[s].type,value:i[s].value?i[s].value.join(","):""}:"6"==i[s].type&&(t={id:s,keyname:i[s].keyname,type:i[s].type,value:i[s].value.length?i[s].value.map(t=>({serverId:t.serverId||"",img:t.url||""})):""}),e.push(t)}e.length?(t={id:this.cid,ext:e.filter(t=>t.id),alertshow:"123"},Object(f["o"])(t).then(t=>{0==t.data.code&&this.getSubscribeModuleField()})):this.getSubscribeModuleField()},editcustomermsg:function(t){const e=this;let i={clue_id:"",id:e.cid,name:e.$refs.addcrmmsg.personame,phone:e.$refs.addcrmmsg.phonenum,phone1:e.$refs.addcrmmsg.phonenum1,phone2:e.$refs.addcrmmsg.phonenum2,sex:"男"==this.$refs.addcrmmsg.sex?1:"女"==this.$refs.addcrmmsg.sex?2:"",level:e.$refs.addcrmmsg.level,source_id:e.$refs.addcrmmsg.source};Object.keys(i).forEach(t=>{i[t]||delete i[t]}),Object(f["H"])(i).then(t=>{0==t.data.code&&e.editcustomertap()})}}},G=K,H=(i("c5c2"),Object(k["a"])(G,R,z,!1,null,"310a9b58",null)),X=H.exports,J=i("51fe"),Z={components:{[r["a"].name]:r["a"],xqCustomerTracking:O,xqCustomerChange:U,xqCustomerSubscribe:X,addcrmmsg:J["a"]},props:["value","nidx","cid","nowitem","manager","toptype","scene","topflag","shareval"],data(){return{loading:!1,showTrack:!1,addType:"1",jumpType:"",moduleObj:{},customerobj:{},crmSettingObj:{},editCrmFieldObj:{}}},computed:{componentAlias(){switch(this.addType){case"1":return"xq-customer-tracking";case"2":return"addcrmmsg";case"3":return"xq-customer-change";case"4":return"xq-customer-subscribe"}},nowobj(){return this.nowitem},heightAuto(){return 66!=this.scene&&88!=this.scene&&!this.tabHidden},tabHidden(){return 1!=this.moduleObj.perfect&&1!=this.moduleObj.change&&1!=this.moduleObj.subscribe}},watch:{value:{handler(t){this.showTrack=t},immediate:!0},showTrack(t){t||this.$emit("input",t),t&&(this.getModuleSwitch(),this.getCrmportraitField())},moduleObj:{handler(t){t.change&&1==t.change&&!this.scene&&this.$nextTick(()=>{2==this.toptype&&this.jumpType?this.addType="3":this.addType="1"}),this.scene&&66==this.scene&&(this.addType="3"),this.scene&&88==this.scene&&(this.addType="4")},immediate:!0}},methods:{showDialogFunc(t){this.jumpType=t||null,this.showTrack=!0},switchTab(t){this.addType=t,"1"===this.addType||("2"===this.addType?this.$nextTick(()=>{this.$refs.addcrmmsg.customerfun(),this.$refs.addcrmmsg.fieldfun(this.editCrmFieldObj)}):"3"===this.addType||this.addType)},updateTrackMsg(t){0==t.state?(this.$parent.crmeditap(t.data,this.nowitem,this.nidx),this.customerfun(t.cid)):1==t.state?(this.$parent.delcrm(this.nidx,2),this.removecache()):2==t.state&&this.customerfun(t.cid)},updateChangeMsg(t){0==t.state&&this.customerfun(t.cid)},removecache(){let t=localStorage.getItem(this.$store.state.clientype+"minecrm");t==this.cid&&(localStorage.removeItem("visitcrm"),localStorage.removeItem("minecrm"),localStorage.removeItem(this.$store.state.clientype+"minecrm"))},getModuleSwitch(){Object(f["cb"])({}).then(t=>{0==t.data.code&&(this.moduleObj=t.data.data)})},getCrmportraitField(){let t={id:this.cid};Object(f["s"])(t).then(t=>{0==t.data.code&&(this.editCrmFieldObj=t)})},crmcustfun(){let t={};Object(f["m"])(t).then(t=>{0==t.data.code&&(this.crmSettingObj=t.data.data)})},customerfun(t){const e=this;let i=new Date;this.nowDate=new Date(i.getFullYear(),i.getMonth(),i.getDate());let s={id:t};this.shareval&&(s.share=this.shareval),this.crmcustfun(),Object(f["v"])(s).then(t=>{if("0"==t.data.code){e.customerobj=t.data.data,this.$parent.setstatefun&&this.$parent.setstatefun(t.data.data.addtoptime);let i=t.data.data.subscirbe;this.apointobj={};for(let t in i)this.apointobj[i[t].type]=i[t].subscribe_date,"预约活动"==i[t].type&&(this.apointactivity=i[t].activity);6==this.tacktype?this.depositinitfun():7==this.tacktype&&this.signinitfun()}setTimeout(()=>{e.loadFlag=!1},200)})},setoptap(){const t=this;let e={type:1==this.toptype?2:1,id:this.cid};Object(f["B"])(e).then((function(e){0==e.data.code&&(t.nowobj.addtoptime?(t.nowobj.addtoptime="",t.$parent.crmsetoptap(t.nidx,t.cid,2)):(t.$parent.crmsetoptap(t.nidx,t.cid,1),t.nowobj.addtoptime="2021"))}))},editcustomertap(){const t=this;let e,i=[],s=this.$refs.addcrmmsg.extarr;for(let a in s){let t;"1"==s[a].type||"2"==s[a].type||"5"==s[a].type||"3"==s[a].type?t="live_broadcast_personnel"==s[a].keyname?{id:a,keyname:s[a].keyname,type:s[a].type,value:Array.isArray(s[a].value)?s[a].value.join(","):s[a].value?s[a].value:""}:{id:a,keyname:s[a].keyname,type:s[a].type,value:s[a].value}:"4"==s[a].type?t={id:a,keyname:s[a].keyname,type:s[a].type,value:s[a].value?s[a].value.join(","):""}:"6"==s[a].type&&(t={id:a,keyname:s[a].keyname,type:s[a].type,value:s[a].value.length?s[a].value.map(t=>({serverId:t.serverId||"",img:t.url||""})):""}),i.push(t)}e={id:this.cid,alertshow:"123",ext:i.filter(t=>t.id)},Object(f["o"])(e).then(e=>{t.loading=!1,0==e.data.code&&(t.$toast("修改成功!"),this.getCrmportraitField(),this.$parent.closevisitlogtap())}).catch(t=>{this.loading=!1})},checkParamsState(){let t=this,e=!0,i=this.$refs.addcrmmsg.crmvalarr,s=this.$refs.addcrmmsg.extarr;for(let a in i)for(let r=0;r<i[a].child.length;r++){if("name"==i[a].child[r].keyname&&0==i[a].child[r].status&&0==i[a].child[r].is_must&&!t.$refs.addcrmmsg.personame)return this.$toast(i[a].child[r].name+"必填!"),e=!1,!1;if("sex"==i[a].child[r].keyname&&0==i[a].child[r].status&&0==i[a].child[r].is_must&&!this.$refs.addcrmmsg.sex)return this.$toast(i[a].child[r].name+"必填!"),e=!1,!1;if("level"==i[a].child[r].keyname&&0==i[a].child[r].status&&0==i[a].child[r].is_must&&!t.$refs.addcrmmsg.level)return this.$toast(i[a].child[r].name+"必填!"),e=!1,!1;if("source_id"==i[a].child[r].keyname&&0==i[a].child[r].status&&0==i[a].child[r].is_must&&!t.$refs.addcrmmsg.source)return this.$toast(i[a].child[r].name+"必填!"),e=!1,!1;if("house_delivery_time"==i[a].child[r].keyname&&0==i[a].child[r].status&&0==i[a].child[r].is_must){let t="";if(Object.keys(s).forEach(e=>{"house_type"==s[e].keyname&&(t=s[e].keytext)}),"期房"==t&&!s[i[a].child[r].id].value)return this.$toast(i[a].child[r].name+"必填!"),!1}else if("live_broadcast_business"==i[a].child[r].keyname&&0==i[a].child[r].status&&0==i[a].child[r].is_must){let t="";if(Object.keys(s).forEach(e=>{"live_broadcast"==s[e].keyname&&(t=s[e].keytext.filter(t=>"1对1业务直播"==t))}),t.length&&!s[i[a].child[r].id].value)return this.$toast(i[a].child[r].name+"必填!"),!1}else if("live_broadcast_design"==i[a].child[r].keyname&&0==i[a].child[r].status&&0==i[a].child[r].is_must){let t="";if(Object.keys(s).forEach(e=>{"live_broadcast"==s[e].keyname&&(t=s[e].keytext.filter(t=>"1对1设计直播"==t))}),t.length&&!s[i[a].child[r].id].value)return this.$toast(i[a].child[r].name+"必填!"),!1}else if("live_broadcast_personnel"==i[a].child[r].keyname&&0==i[a].child[r].status&&0==i[a].child[r].is_must){let t="";if(Object.keys(s).forEach(e=>{"live_broadcast"==s[e].keyname&&(t=s[e].keytext.filter(t=>"一对多直播"==t))}),t.length&&!s[i[a].child[r].id].value)return this.$toast(i[a].child[r].name+"必填!"),!1}else if(0==i[a].child[r].status&&0==i[a].child[r].is_must&&s[i[a].child[r].id]&&(Array.isArray(s[i[a].child[r].id].value)&&!s[i[a].child[r].id].value.length||!s[i[a].child[r].id].value))return this.$toast(i[a].child[r].name+"必填!"),e=!1,!1}return e},editcustomermsg:function(t){const e=this;let i=this.checkParamsState();if(i){let t={id:e.cid,name:e.$refs.addcrmmsg.personame,phone:e.$refs.addcrmmsg.phonenum,phone1:e.$refs.addcrmmsg.phonenum1,phone2:e.$refs.addcrmmsg.phonenum2,sex:"男"==this.$refs.addcrmmsg.sex?1:"女"==this.$refs.addcrmmsg.sex?2:"",level:e.$refs.addcrmmsg.level,source_id:e.$refs.addcrmmsg.source};Object.keys(t).forEach(e=>{t[e]||"phone1"==e||"phone2"==e||delete t[e]}),this.loading=!0,Object(f["b"])(t).then(t=>{e.$toast.clear(),0==t.data.code?e.editcustomertap():(this.loading=!1,e.$toast(t.data.msg))}).catch(t=>{this.loading=!1})}}}},tt=Z,et=(i("6c7d"),Object(k["a"])(tt,s,a,!1,null,"f5003f14",null));e["a"]=et.exports},6138:function(t,e,i){"use strict";var s=i("8bbf"),a=i.n(s);e["a"]=new a.a},"66b9":function(t,e,i){"use strict";i("68ef"),i("9d70"),i("3743"),i("e3b3"),i("bc1b")},"6c7d":function(t,e,i){"use strict";i("fad7")},7278:function(t,e,i){"use strict";var s=i("c31d");function a(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function r(t){var e=a(t).Element;return t instanceof e||t instanceof Element}function n(t){var e=a(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function o(t){if("undefined"===typeof ShadowRoot)return!1;var e=a(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var c=Math.round;function l(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function d(){return!/^((?!chrome|android).)*safari/i.test(l())}function m(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var s=t.getBoundingClientRect(),o=1,l=1;e&&n(t)&&(o=t.offsetWidth>0&&c(s.width)/t.offsetWidth||1,l=t.offsetHeight>0&&c(s.height)/t.offsetHeight||1);var m=r(t)?a(t):window,u=m.visualViewport,h=!d()&&i,p=(s.left+(h&&u?u.offsetLeft:0))/o,f=(s.top+(h&&u?u.offsetTop:0))/l,v=s.width/o,g=s.height/l;return{width:v,height:g,top:f,right:p+v,bottom:f+g,left:p,x:p,y:f}}function u(t){var e=a(t),i=e.pageXOffset,s=e.pageYOffset;return{scrollLeft:i,scrollTop:s}}function h(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function p(t){return t!==a(t)&&n(t)?h(t):u(t)}function f(t){return t?(t.nodeName||"").toLowerCase():null}function v(t){return((r(t)?t.ownerDocument:t.document)||window.document).documentElement}function g(t){return m(v(t)).left+u(t).scrollLeft}function y(t){return a(t).getComputedStyle(t)}function x(t){var e=y(t),i=e.overflow,s=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+a+s)}function b(t){var e=t.getBoundingClientRect(),i=c(e.width)/t.offsetWidth||1,s=c(e.height)/t.offsetHeight||1;return 1!==i||1!==s}function _(t,e,i){void 0===i&&(i=!1);var s=n(e),a=n(e)&&b(e),r=v(e),o=m(t,a,i),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!i)&&(("body"!==f(e)||x(r))&&(c=p(e)),n(e)?(l=m(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=g(r))),{x:o.left+c.scrollLeft-l.x,y:o.top+c.scrollTop-l.y,width:o.width,height:o.height}}function w(t){var e=m(t),i=t.offsetWidth,s=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-s)<=1&&(s=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:s}}function C(t){return"html"===f(t)?t:t.assignedSlot||t.parentNode||(o(t)?t.host:null)||v(t)}function k(t){return["html","body","#document"].indexOf(f(t))>=0?t.ownerDocument.body:n(t)&&x(t)?t:k(C(t))}function A(t,e){var i;void 0===e&&(e=[]);var s=k(t),r=s===(null==(i=t.ownerDocument)?void 0:i.body),n=a(s),o=r?[n].concat(n.visualViewport||[],x(s)?s:[]):s,c=e.concat(o);return r?c:c.concat(A(C(o)))}function T(t){return["table","td","th"].indexOf(f(t))>=0}function j(t){return n(t)&&"fixed"!==y(t).position?t.offsetParent:null}function D(t){var e=/firefox/i.test(l()),i=/Trident/i.test(l());if(i&&n(t)){var s=y(t);if("fixed"===s.position)return null}var a=C(t);o(a)&&(a=a.host);while(n(a)&&["html","body"].indexOf(f(a))<0){var r=y(a);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||e&&"filter"===r.willChange||e&&r.filter&&"none"!==r.filter)return a;a=a.parentNode}return null}function q(t){var e=a(t),i=j(t);while(i&&T(i)&&"static"===y(i).position)i=j(i);return i&&("html"===f(i)||"body"===f(i)&&"static"===y(i).position)?e:i||D(t)||e}var O="top",S="bottom",F="right",$="left",E="auto",N=[O,S,F,$],P="start",M="end",I=[].concat(N,[E]).reduce((function(t,e){return t.concat([e,e+"-"+P,e+"-"+M])}),[]),Y="beforeRead",Q="read",B="afterRead",L="beforeMain",U="main",R="afterMain",z="beforeWrite",V="write",W="afterWrite",K=[Y,Q,B,L,U,R,z,V,W];function G(t){var e=new Map,i=new Set,s=[];function a(t){i.add(t.name);var r=[].concat(t.requires||[],t.requiresIfExists||[]);r.forEach((function(t){if(!i.has(t)){var s=e.get(t);s&&a(s)}})),s.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||a(t)})),s}function H(t){var e=G(t);return K.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}function X(t){var e;return function(){return e||(e=new Promise((function(i){Promise.resolve().then((function(){e=void 0,i(t())}))}))),e}}function J(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];return[].concat(i).reduce((function(t,e){return t.replace(/%s/,e)}),t)}var Z='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',tt='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',et=["name","enabled","phase","fn","effect","requires","options"];function it(t){t.forEach((function(e){[].concat(Object.keys(e),et).filter((function(t,e,i){return i.indexOf(t)===e})).forEach((function(i){switch(i){case"name":"string"!==typeof e.name&&console.error(J(Z,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":"boolean"!==typeof e.enabled&&console.error(J(Z,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":K.indexOf(e.phase)<0&&console.error(J(Z,e.name,'"phase"',"either "+K.join(", "),'"'+String(e.phase)+'"'));break;case"fn":"function"!==typeof e.fn&&console.error(J(Z,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":null!=e.effect&&"function"!==typeof e.effect&&console.error(J(Z,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":null==e.requires||Array.isArray(e.requires)||console.error(J(Z,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(J(Z,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+et.map((function(t){return'"'+t+'"'})).join(", ")+'; but "'+i+'" was provided.')}e.requires&&e.requires.forEach((function(i){null==t.find((function(t){return t.name===i}))&&console.error(J(tt,String(e.name),i,i))}))}))}))}function st(t,e){var i=new Set;return t.filter((function(t){var s=e(t);if(!i.has(s))return i.add(s),!0}))}function at(t){return t.split("-")[0]}function rt(t){var e=t.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}function nt(t){return t.split("-")[1]}function ot(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ct(t){var e,i=t.reference,s=t.element,a=t.placement,r=a?at(a):null,n=a?nt(a):null,o=i.x+i.width/2-s.width/2,c=i.y+i.height/2-s.height/2;switch(r){case O:e={x:o,y:i.y-s.height};break;case S:e={x:o,y:i.y+i.height};break;case F:e={x:i.x+i.width,y:c};break;case $:e={x:i.x-s.width,y:c};break;default:e={x:i.x,y:i.y}}var l=r?ot(r):null;if(null!=l){var d="y"===l?"height":"width";switch(n){case P:e[l]=e[l]-(i[d]/2-s[d]/2);break;case M:e[l]=e[l]+(i[d]/2-s[d]/2);break;default:}}return e}var lt="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",dt="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",mt={placement:"bottom",modifiers:[],strategy:"absolute"};function ut(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"===typeof t.getBoundingClientRect)}))}function ht(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,s=void 0===i?[]:i,a=e.defaultOptions,n=void 0===a?mt:a;return function(t,e,i){void 0===i&&(i=n);var a={placement:"bottom",orderedModifiers:[],options:Object.assign({},mt,n),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},o=[],c=!1,l={state:a,setOptions:function(i){var o="function"===typeof i?i(a.options):i;m(),a.options=Object.assign({},n,a.options,o),a.scrollParents={reference:r(t)?A(t):t.contextElement?A(t.contextElement):[],popper:A(e)};var c=H(rt([].concat(s,a.options.modifiers)));a.orderedModifiers=c.filter((function(t){return t.enabled}));var u=st([].concat(c,a.options.modifiers),(function(t){var e=t.name;return e}));if(it(u),at(a.options.placement)===E){var h=a.orderedModifiers.find((function(t){var e=t.name;return"flip"===e}));h||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var p=y(e),f=p.marginTop,v=p.marginRight,g=p.marginBottom,x=p.marginLeft;return[f,v,g,x].some((function(t){return parseFloat(t)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" ")),d(),l.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,i=t.popper;if(ut(e,i)){a.rects={reference:_(e,q(i),"fixed"===a.options.strategy),popper:w(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var s=0,r=0;r<a.orderedModifiers.length;r++){if(s+=1,s>100){console.error(dt);break}if(!0!==a.reset){var n=a.orderedModifiers[r],o=n.fn,d=n.options,m=void 0===d?{}:d,u=n.name;"function"===typeof o&&(a=o({state:a,options:m,name:u,instance:l})||a)}else a.reset=!1,r=-1}}else console.error(lt)}},update:X((function(){return new Promise((function(t){l.forceUpdate(),t(a)}))})),destroy:function(){m(),c=!0}};if(!ut(t,e))return console.error(lt),l;function d(){a.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,s=void 0===i?{}:i,r=t.effect;if("function"===typeof r){var n=r({state:a,name:e,instance:l,options:s}),c=function(){};o.push(n||c)}}))}function m(){o.forEach((function(t){return t()})),o=[]}return l.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),l}}var pt={passive:!0};function ft(t){var e=t.state,i=t.instance,s=t.options,r=s.scroll,n=void 0===r||r,o=s.resize,c=void 0===o||o,l=a(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return n&&d.forEach((function(t){t.addEventListener("scroll",i.update,pt)})),c&&l.addEventListener("resize",i.update,pt),function(){n&&d.forEach((function(t){t.removeEventListener("scroll",i.update,pt)})),c&&l.removeEventListener("resize",i.update,pt)}}var vt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ft,data:{}};function gt(t){var e=t.state,i=t.name;e.modifiersData[i]=ct({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var yt={name:"popperOffsets",enabled:!0,phase:"read",fn:gt,data:{}},xt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bt(t){var e=t.x,i=t.y,s=window,a=s.devicePixelRatio||1;return{x:c(e*a)/a||0,y:c(i*a)/a||0}}function _t(t){var e,i=t.popper,s=t.popperRect,r=t.placement,n=t.variation,o=t.offsets,c=t.position,l=t.gpuAcceleration,d=t.adaptive,m=t.roundOffsets,u=t.isFixed,h=o.x,p=void 0===h?0:h,f=o.y,g=void 0===f?0:f,x="function"===typeof m?m({x:p,y:g}):{x:p,y:g};p=x.x,g=x.y;var b=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),w=$,C=O,k=window;if(d){var A=q(i),T="clientHeight",j="clientWidth";if(A===a(i)&&(A=v(i),"static"!==y(A).position&&"absolute"===c&&(T="scrollHeight",j="scrollWidth")),A=A,r===O||(r===$||r===F)&&n===M){C=S;var D=u&&A===k&&k.visualViewport?k.visualViewport.height:A[T];g-=D-s.height,g*=l?1:-1}if(r===$||(r===O||r===S)&&n===M){w=F;var E=u&&A===k&&k.visualViewport?k.visualViewport.width:A[j];p-=E-s.width,p*=l?1:-1}}var N,P=Object.assign({position:c},d&&xt),I=!0===m?bt({x:p,y:g}):{x:p,y:g};return p=I.x,g=I.y,l?Object.assign({},P,(N={},N[C]=_?"0":"",N[w]=b?"0":"",N.transform=(k.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",N)):Object.assign({},P,(e={},e[C]=_?g+"px":"",e[w]=b?p+"px":"",e.transform="",e))}function wt(t){var e=t.state,i=t.options,s=i.gpuAcceleration,a=void 0===s||s,r=i.adaptive,n=void 0===r||r,o=i.roundOffsets,c=void 0===o||o,l=y(e.elements.popper).transitionProperty||"";n&&["transform","top","right","bottom","left"].some((function(t){return l.indexOf(t)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));var d={placement:at(e.placement),variation:nt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,_t(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:n,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,_t(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Ct={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:wt,data:{}};function kt(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},s=e.attributes[t]||{},a=e.elements[t];n(a)&&f(a)&&(Object.assign(a.style,i),Object.keys(s).forEach((function(t){var e=s[t];!1===e?a.removeAttribute(t):a.setAttribute(t,!0===e?"":e)})))}))}function At(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var s=e.elements[t],a=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]),o=r.reduce((function(t,e){return t[e]="",t}),{});n(s)&&f(s)&&(Object.assign(s.style,o),Object.keys(a).forEach((function(t){s.removeAttribute(t)})))}))}}var Tt={name:"applyStyles",enabled:!0,phase:"write",fn:kt,effect:At,requires:["computeStyles"]},jt=[vt,yt,Ct,Tt],Dt=ht({defaultModifiers:jt});function qt(t,e,i){var s=at(t),a=[$,O].indexOf(s)>=0?-1:1,r="function"===typeof i?i(Object.assign({},e,{placement:t})):i,n=r[0],o=r[1];return n=n||0,o=(o||0)*a,[$,F].indexOf(s)>=0?{x:o,y:n}:{x:n,y:o}}function Ot(t){var e=t.state,i=t.options,s=t.name,a=i.offset,r=void 0===a?[0,0]:a,n=I.reduce((function(t,i){return t[i]=qt(i,e.rects,r),t}),{}),o=n[e.placement],c=o.x,l=o.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=l),e.modifiersData[s]=n}var St={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ot},Ft=i("d282"),$t=i("a142"),Et=i("b1d2"),Nt=i("b222"),Pt=i("ad06"),Mt=i("e41f"),It=Object(Ft["a"])("popover"),Yt=It[0],Qt=It[1];e["a"]=Yt({mixins:[Object(Nt["a"])({event:"touchstart",method:"onClickOutside"})],props:{value:Boolean,trigger:String,overlay:Boolean,offset:{type:Array,default:function(){return[0,8]}},theme:{type:String,default:"light"},actions:{type:Array,default:function(){return[]}},placement:{type:String,default:"bottom"},getContainer:{type:[String,Function],default:"body"},closeOnClickAction:{type:Boolean,default:!0}},watch:{value:"updateLocation",placement:"updateLocation"},mounted:function(){this.updateLocation()},beforeDestroy:function(){this.popper&&($t["g"]||(window.removeEventListener("animationend",this.updateLocation),window.removeEventListener("transitionend",this.updateLocation)),this.popper.destroy(),this.popper=null)},methods:{createPopper:function(){var t=Dt(this.$refs.wrapper,this.$refs.popover.$el,{placement:this.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},Object(s["a"])({},St,{options:{offset:this.offset}})]});return $t["g"]||(window.addEventListener("animationend",this.updateLocation),window.addEventListener("transitionend",this.updateLocation)),t},updateLocation:function(){var t=this;this.$nextTick((function(){t.value&&(t.popper?t.popper.setOptions({placement:t.placement}):t.popper=t.createPopper())}))},renderAction:function(t,e){var i=this,s=this.$createElement,a=t.icon,r=t.text,n=t.disabled,o=t.className;return s("div",{attrs:{role:"menuitem"},class:[Qt("action",{disabled:n,"with-icon":a}),o],on:{click:function(){return i.onClickAction(t,e)}}},[a&&s(Pt["a"],{attrs:{name:a},class:Qt("action-icon")}),s("div",{class:[Qt("action-text"),Et["a"]]},[r])])},onToggle:function(t){this.$emit("input",t)},onClickWrapper:function(){"click"===this.trigger&&this.onToggle(!this.value)},onTouchstart:function(t){t.stopPropagation(),this.$emit("touchstart",t)},onClickAction:function(t,e){t.disabled||(this.$emit("select",t,e),this.closeOnClickAction&&this.$emit("input",!1))},onClickOutside:function(){this.$emit("input",!1)},onOpen:function(){this.$emit("open")},onOpened:function(){this.$emit("opened")},onClose:function(){this.$emit("close")},onClosed:function(){this.$emit("closed")}},render:function(){var t=arguments[0];return t("span",{ref:"wrapper",class:Qt("wrapper"),on:{click:this.onClickWrapper}},[t(Mt["a"],{ref:"popover",attrs:{value:this.value,overlay:this.overlay,position:null,transition:"van-popover-zoom",lockScroll:!1,getContainer:this.getContainer},class:Qt([this.theme]),on:{open:this.onOpen,close:this.onClose,input:this.onToggle,opened:this.onOpened,closed:this.onClosed},nativeOn:{touchstart:this.onTouchstart}},[t("div",{class:Qt("arrow")}),t("div",{class:Qt("content"),attrs:{role:"menu"}},[this.slots("default")||this.actions.map(this.renderAction)])]),this.slots("reference")])}})},"81d0":function(t,e,i){},8400:function(t,e,i){},8432:function(t,e,i){},ab2c:function(t,e,i){"use strict";var s=i("c31d"),a=i("2638"),r=i.n(a),n=i("8bbf"),o=i.n(n),c=i("d282"),l=i("ba31"),d=i("6605"),m=i("ad06"),u=i("e41f"),h=i("543e"),p=Object(c["a"])("action-sheet"),f=p[0],v=p[1];function g(t,e,i,s){var a=e.title,n=e.cancelText,c=e.closeable;function d(){Object(l["a"])(s,"input",!1),Object(l["a"])(s,"cancel")}function p(){if(a)return t("div",{class:v("header")},[a,c&&t(m["a"],{attrs:{name:e.closeIcon},class:v("close"),on:{click:d}})])}function f(i,a){var r=i.disabled,n=i.loading,c=i.callback;function d(t){t.stopPropagation(),r||n||(c&&c(i),e.closeOnClickAction&&Object(l["a"])(s,"input",!1),o.a.nextTick((function(){Object(l["a"])(s,"select",i,a)})))}function m(){return n?t(h["a"],{class:v("loading-icon")}):[t("span",{class:v("name")},[i.name]),i.subname&&t("div",{class:v("subname")},[i.subname])]}return t("button",{attrs:{type:"button"},class:[v("item",{disabled:r,loading:n}),i.className],style:{color:i.color},on:{click:d}},[m()])}function g(){if(n)return[t("div",{class:v("gap")}),t("button",{attrs:{type:"button"},class:v("cancel"),on:{click:d}},[n])]}function y(){var s=(null==i.description?void 0:i.description())||e.description;if(s)return t("div",{class:v("description")},[s])}return t(u["a"],r()([{class:v(),attrs:{position:"bottom",round:e.round,value:e.value,overlay:e.overlay,duration:e.duration,lazyRender:e.lazyRender,lockScroll:e.lockScroll,getContainer:e.getContainer,closeOnPopstate:e.closeOnPopstate,closeOnClickOverlay:e.closeOnClickOverlay,safeAreaInsetBottom:e.safeAreaInsetBottom}},Object(l["b"])(s,!0)]),[p(),y(),t("div",{class:v("content")},[e.actions&&e.actions.map(f),null==i.default?void 0:i.default()]),g()])}g.props=Object(s["a"])({},d["b"],{title:String,actions:Array,duration:[Number,String],cancelText:String,description:String,getContainer:[String,Function],closeOnPopstate:Boolean,closeOnClickAction:Boolean,round:{type:Boolean,default:!0},closeable:{type:Boolean,default:!0},closeIcon:{type:String,default:"cross"},safeAreaInsetBottom:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}}),e["a"]=f(g)},aed7:function(t,e,i){},bdaa:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAkCAYAAAD7PHgWAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKKADAAQAAAABAAAAJAAAAAC/FoutAAADmklEQVRYCc2YS2gTQRjH/5Ok2aSCFJHirWjVQ6uehFaxBR81NhURRKiI4MmTFxUED1W0eioeRMWDB70o6lVsShWKeqhKDyKUKq0eqig+8IU22VZ3/c8WyXabndnsVpuBNjPfa37zfbOzkwhEbPYQqs33OG0LdApgIWwMxoBjyQ4MRQztuDNm+GbbEGYO9/i5yR1FCBT412S045lbHqbPxYZvk33Y64WT0ShLWRYuhI9c9AwNSIg4/7qKoWb1WvI5bJ4lLVMQGnAq52RvpXI+GyeV+gDKUHvQHkDCzGOEGVyum4N7MZPKol9n56cPlcHCBPYFgZOT2oiWxbIz6GRvAi848TK/VXvlzGKWWcx55UHGZWeQ2dtfDpyEiJLFwBnkgVxlfkQbLFzjhDVBVu+2YRbPGcAZkcVHt1zXnwFoDyNpjmMpBDe/hRXOp3wQbPaBOoLFdQED6D8x7hhjjsUERuWniGOsagFGRQu+eP0dQOe8snCKg6Y5gvDOE2ws8IaGV1LTmTalkyjcYdmA3LyCSRJ3E7iRzmKPFMUI1l1RcJLKRiff8WscQJbV6chBhbVpQG7Y8QoDc3BY2teyI0t8tgIBnyTa8cAB5Ga8zDL3VAokWZ6n4tjJc5O5Ywblv1QHjvJMOiH789kI99QQaBXb8O4vB2XFxiPn8LyVXOBRKo12sRFfi0Q8B90D2S/kcIBvkUsELfs97Y0VdEyIAaMaOwj3w+szC1AamL28jAJXeaVKeB3mesy91muksYtwhVKxSwJKQx6Uu/m94lYpp7mSOXC1fCDWYsovpi+gdMj34iGfpQ1+zlHlsSQajDaMqOIo9xnpf6mco+q4hbTxlYAMsCoqhMpf/NbH9wXk1X4Jgy9WTRBZZ2O1LoYvoDmhd9YF1+l5UoQHZHCtsw4ggF47h28GeQT80/3nwPPrBLcSL9D+zRfQ+g8ZZInjUyYa/PF8Xmd8eoWw0ahy9OqY8W88ll555dqxpa5U6QwOIsXVpbXBpYHAW4IdNOpQy1tRfTyBZsLeDeRLI1Zqkcq2JKBYjzwnealyJNgHgh3hDaSeYBdFIyalfTKDx/wVYWsijlba3FfGoJKJUP6GyDlKN/kuZqlvynLPsBD4zLtjTzKG8yKDnzN0JQaFPmyxLXSTpNmrZhL6uZiMV+4ez5zcrWGf98PtXGEXAzUQdJhgt5MgWBbfPabaIa9xWdbzEJe7jjHlfr1u1OC4rJbK+Q9a8euDbHvRHwAAAABJRU5ErkJggg=="},c211:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAuBJREFUWEftlsFLVFEUxr9zn0mtAqFFRQRFBYUVVKSEM/fMRCC1kEiphCjbFBqEFCSB2rIihGrRqmhToYsWkRT63n1vJoYWQVEmtAgX/QcVYjC+G1fmDVedZ87Y6Ma7mzv33PM73znvnEtY4UUr7B+rAEtSwPO8DgC9RLSVmSu6qyKjbDa7M5/P9wJot2qImdkvt6bKBlBKXTJRA9g4x1lJAN/3W7XWg1rro6lUyp0LuGiAkZGR+pqaGuP4VEyUcQDNWuthABNCiHQymZyw7ecB5HK5uqmpqR1EtM46uE9rbXJdt4DEsSlQSnUCeEhEw1LK47EAvu9f0VrfLzePhfNFgEwms6G2tvZPQ0PDz+gu3/efaq3Paa3bU6nUs2i/qIDneXeI6HqFzo1ZEUAppYkoJ6U8Et03Ojra6DhODsBrZj4xD0Ap9RHA/v8EcBfAtTAMb6XT6f7oTqXUIIBWAE3M/M7sFxUw1EtwPksB80Mp9YOIJqWUuywAE/krALeZ+Ua1AaJoi6nJZrPb8vn8dwBDzNxWbYCrAAaI6KyU8rmlwi8A35j5YLUBWgC8NLXAzPcsgC8ANjPzzCddzRqYASCibinlgAUwBmDTcgBEKWiTUg5Z/WBSaz2+HCkw8rc4jrMnkUiMG4BMJrN7enr6a9WLMAiCLWEYfgYwxsxNUfSu614QQjyO+ww/ADiwhF5gd8IHALqIqENK+SS60/O8t0R0DEAjM7+fW4RdAIxhpWtWKwbgmw0r+oQQIgDwgpnPzGvFhe51GkA3gEMVUCw4jJRSRonzAJqZ+U1JAGtw7HUcpzh6iahea91T4hFic8aOY9d1+4UQfQAeMfNl22jRDxLXdbcLIQzExRh1FnwRAfhUGEK/KwKIjIIgOBmGoQGZaaXWKgmglJIA+oQQN5PJpBnHs9aiFbCtlFJriainkJY1hf+W51Fqg3ied9iAAFhvV3w5BVyRAuU4+NfZVYAVV+AvNVtWMNH0/y4AAAAASUVORK5CYII="},c5c2:function(t,e,i){"use strict";i("8432")},c630:function(t,e,i){"use strict";i("22be")},c878:function(t,e,i){"use strict";i("81d0")},cb45:function(t,e,i){},d82d:function(t,e,i){"use strict";i("68ef"),i("a71a"),i("9d70"),i("3743"),i("4d75"),i("aed7")},e47f:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAgCAYAAACcuBHKAAAAAXNSR0IArs4c6QAAAylJREFUWEfNl09IFHEUx7/vt5t/kAh3FMvdQYmscGa1QySdrEtlV8kIOxgERRcPEVR00KCiqE7lIYg6VIRl16KLdgi7SKg7gSgEzYiSu7N1CCx398Usjs3+cXd21xbnNrvv+/19fu/3fm/fEjbBQ5uAAWWD0Izv+xiefjUgnUnfeNkgQkYkAsDHnBgMyvUDTpByQrC1cE6IaX3pUKn1EZTrx5wen79Gm73eWLP1GZEYtSEAJOPseJrSzeOC+CGAZHCpjxqQktnVjMgJBoZz+jEmVFnaTyEj8gRAX6mL2/o1CN3sZeJnuXyJoCl+SbUg7LM6XCpIFYm5loBkWD6Tk4s1nlpvKxPXrHccFaDZPXLdfApE+pmWCuXUOzabeTucmdgoiEk93EEejrU11k/YIGWF0Jy1wDinytIjC2RaXxogEk1Zm9VGZyJkmKMAr153GlMDvry1lrMmtIVIayKW6CHydDLHP6R3umw1o+nmaRY8xMzLAN0OBqR7+WprXQgLAAkMM0OxTbJ1u2wLzOhhv/BW/mnZsXUpH0Dy5qx3HNq8+ZaZjzlNGIhTPNapNjV8dGPuNiYrhGZE+xgJq4llPox3qix1uV3AGWcVrSL7nqdrMyB0nat/UnQc4PYcC11UA9L9QkBCengWRLsI6FEC0iunNgNCM8wrDL6Zs90CCzHgQPtqd3QD47pPVC3/GP9dLX0BeGc+YwLdUAK+a8646W+RI0LgOgMNRHiq+KXBgpuVR4iGBONlPoDV701ib4cib5tL/lYsLtaIlS2fiKDaei9T+17ZN2W9u84ESJwn4KRLCBDjriJLl5Id0QhftbKToiW8V/3SUdcQ8Tj3ezziDsCVbiEY/Is5drBN3j4dMsIzAO1O17Lg7mBj3RtXmRCgCwnwkFuAtTjmBwwesSenDD3zC1Wu63UFAWAEQHfBEMAKGK9BOJVdy8vM3OUc7zIGXZsQoCjAtUVAFCTJOuj+gyjIq+jgrBCaEZlnoLFo1wKFTDgb9EuPUzqmppuXmfhWgV5Fh9uDcAqE9aLpZlcC8Y6inV0IBQmtAhi3B+EMCBce/zWkbH8Dc+3iL5DY4jDG+Hf2AAAAAElFTkSuQmCC"},e504:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAw1JREFUWEftltFLFFEUxr8zO7PlUyAUVETlzBYkVlAREkZSBJIPEimVEe1dhcKCEIMkWO2xIoTsIdCd0ZcKffAhknoIDEJ6CIoyIXZWH/oDggpzd2bnxG7tOOu66m5uvnhhYblzzz2/e853zz2EVR60yv6xBvBPEdCMhAAjDNB2UyhF7VWUUcXg7C7JkcJganY1lESt2aqMFaqpggECRvKyAw4T8+YsZ3kANMNuBPOQ49gnplrKXs0HXDZAhRGvklgKAziz4CnzAKgRu46IR8E87XOSx7+0lk177XMAKvu5PCFZAU5SWWYhybyPmVLOy/OGeJEUaAPJNjjOQwJGo0I5lRdANZLXiJ0HheYxvd4DoOm8EX7EzQv0PbOXptuDAF8kouZoUH7sHi7zRzWsu8S4UZTzHACLAYybQjniAkSsahDGmfA8FlTqcwA03XoPYP9KAAR06x4DHWDnthla1z0XBWsIQKPDqJkKKW9S864GND1NXfyYpwEtYn2FhBkzqOzObBrQZ+sZvmcA7phCuVlaAP3Pab3aCOhcwbBjAIZNoTSVFiCSuA6iHgKdjwr5iScNPwB8MYVysKQAan+8gSRphBkdsZBy3wPwCcBWUyjpK10yDWQAAKndFL4eF8CwJsDYUnIA7W8KQNRkBuXhOQB7BsyTJU+BZtgjYG4A5EpT0GQKQNN5D2B/LrkIVZ23EeyPBExEhVIzdw0TQQbp+a7hOwAHii4EWaXY7gX4KoFEVMiGpxq+BOEkiKvNoP9tlghVPZEy6F0ZgHRRGzOFUuuevt86yhJeE9HTaFA+l1OKUxOqYZ8FczsBhwoGWeIxUg3bIOZL7KAu1qK8WBAgM7mzL77XB8l9elnmKjjUSYTsJsRLudhzHIl3g6QuZn4UC/mveM2W3ZBoA6yCk51gDi0YnSU6IgAf/L++1Uy2bfpZFICbS8M+zcydANKl1B35APqsY/ChiyHfigkanw+/7Ah4DXcYvF5mOwWR+inpb/+rKfWCBPTEYQalIDZ4FV+IgIuKQCEOllq7BrDqEfgNsWWHMGb5/yEAAAAASUVORK5CYII="},f7fb:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAEFCu8CAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAHKADAAQAAAABAAAAHAAAAABkvfSiAAAEVElEQVRIDbVWXWgcVRQ+Z2Z3s01MbY3RSn80CkX8e/Ah7G6CFVTYTVJUZLJpq0FFogh9FXzQPij44otPKlgEf9ayUwpKdhOtRZuabGLxRUsFayt0K0RsmtA0P+zuzPGcSe7d2elmqaG5D3PP33fOveeee+4ABAbGkhb5ZSFhdrZCyLZtx1MELbR1LNn/QQ0eRfXEs4NtZbfUrM2EwHjKukQE22ukq4whislRG8HALxDw4/bw1hahRWZohEvPE9CrV5yrDwDTWs7rm9MMExxqj/A1S/MbCF11G9SI0jBwD29mVC3KMGAQTHxKI3e0Qp8w0YjxVqTzwa8mc9nvhfeyV5yHCtO4vOz8hVNnT/OCZnmLAN19A4/zdN2QDHu5S/RYLxIYTeS6HyHi+wbBD0FrByiHCBc5M69HjNBUw20GwX7eW6vsdCKfHfMrGtGyVA+ojFR1SKoUbQL2ukCHeM+dBuKXEyNZ77hqgJEw3KucYCu0mYvhLT/lMhdYlk/07L/7VmqbVvoaYLmCh4BITnAQruGbDlTuGBoaeuVMcfYl160MzBnTn7AuI2CMJ/szXDX7hFnXSPSkn4719H++FpgD/OLXYXzvvvuhXOkChPf41NsNE/rQQTl/PXjxj7ouvYMG7jeALo/n7eM6e9rqRgjEPxqW8po+iHavD8gevePw7saa7msVccu6jeZhRp9jPJm2AN1ngOBoUyscX17AD5ForjBiH1TZnsxnX1BuNJDQfY5Bab4u95SWYFo6wWpqD/q6ggbqPU6O2APS1gqjdtfEsF2IRs2Olkhom0QQenN79BYVTWYN5NIK/7MMuyzLMkVRKXM3MMNyw6HsNs8sXnHuFFoNDfz14ux3pTJcuHQNT8Z7BxIVp3x+YWnpshg6pfmrwiuQzHqPCOa7bFJEoG8e2r759G/Fuc+4mmZWjPG6jgDq3vm9NaLlOASzvpIDOOY1q2CEWMo6xUfTLfJIKLx7bDhzLmhTj0+k0ve55P4pOm5sJ7gGngzaoXRGl/Dw6sUP6m8ijwsmohVyXfgUeDsbP6jFIcrpstn4gF4ErJYbAndqPLERgfkB6+CXwOuevoD4YyGfHd+IgFzav8P8imcd0B+Iq/SINBAl42d2vDCS7e5KpWMOuQUllxlNTBZy2W/jSWuKK6FT6fxvmpLJXPcMkVDetOog8nh2+C8L/RVGJr8FniHC31UAUwje9aiRiVjd/P/7jAcdNeJV8xab+imV59H3R8aXOMOX+ED3XmtXpQLneI8RAbPcCUfMjrGvjxTjqf7DRPSyyGWw7ihjrBWu+l0jpXRX1UQo3CFfh2CbCiY8P79muQS3C83j4ZVp9Uv801Fn1N1hvZYk2MKw/TNPddshF5UumDpxtCjE8EVedTOn421Oy0mtuYkEP76cBb7lCEuhR3Zu3cI/S29w6T3G/0a9Nx5H/mII+ct/6cB3W/x5cxP73sSyTcxH2Z/MZdYf43S+9h80hptWNPjekAAAAABJRU5ErkJggg=="},fad7:function(t,e,i){},fb84:function(t,e,i){}}]);