pagesA-crm-followRecord-handle.3c9a592c.js 39 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pagesA-crm-followRecord-handle"],{"0067":function(e,t,n){"use strict";n.r(t);var i=n("db4a"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=o.a},"0446":function(e,t,n){var i=n("5c6a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=n("967d").default;o("57a030ba",i,!0,{sourceMap:!1,shadowMode:!1})},"06ea":function(e,t,n){var i=n("883d").default,o=n("4db6").default;n("aa9c"),n("e838"),n("7a76"),n("c9b5"),n("8f71"),n("bf0f");var a={KEY_ERR:311,KEY_ERR_MSG:"key格式错误",PARAM_ERR:310,PARAM_ERR_MSG:"请求参数信息有误",SYSTEM_ERR:600,SYSTEM_ERR_MSG:"系统错误",WX_ERR_CODE:1e3,WX_OK_CODE:200},s="https://apis.map.qq.com/ws/",r=s+"place/v1/suggestion",l={location2query:function(e){if("string"==typeof e)return e;for(var t="",n=0;n<e.length;n++){var i=e[n];t&&(t+=";"),i.location&&(t=t+i.location.lat+","+i.location.lng),i.latitude&&i.longitude&&(t=t+i.latitude+","+i.longitude)}return t},rad:function(e){return e*Math.PI/180},getEndLocation:function(e){for(var t=e.split(";"),n=[],i=0;i<t.length;i++)n.push({lat:parseFloat(t[i].split(",")[0]),lng:parseFloat(t[i].split(",")[1])});return n},getDistance:function(e,t,n,i){var o=this.rad(e),a=this.rad(n),s=o-a,r=this.rad(t)-this.rad(i),l=2*Math.asin(Math.sqrt(Math.pow(Math.sin(s/2),2)+Math.cos(o)*Math.cos(a)*Math.pow(Math.sin(r/2),2)));return l*=6378136.49,l=Math.round(1e4*l)/1e4,parseFloat(l.toFixed(0))},getWXLocation:function(e,t,n){wx.getLocation({type:"gcj02",success:e,fail:t,complete:n})},getLocationParam:function(e){if("string"==typeof e){var t=e.split(",");e=2===t.length?{latitude:e.split(",")[0],longitude:e.split(",")[1]}:{}}return e},polyfillParam:function(e){e.success=e.success||function(){},e.fail=e.fail||function(){},e.complete=e.complete||function(){}},checkParamKeyEmpty:function(e,t){if(!e[t]){var n=this.buildErrorConfig(a.PARAM_ERR,a.PARAM_ERR_MSG+t+"参数格式有误");return e.fail(n),e.complete(n),!0}return!1},checkKeyword:function(e){return!this.checkParamKeyEmpty(e,"keyword")},checkLocation:function(e){var t=this.getLocationParam(e.location);if(!t||!t.latitude||!t.longitude){var n=this.buildErrorConfig(a.PARAM_ERR,a.PARAM_ERR_MSG+" location参数格式有误");return e.fail(n),e.complete(n),!1}return!0},buildErrorConfig:function(e,t){return{status:e,message:t}},handleData:function(e,t,n){if("search"===n){for(var i=t.data,o=[],a=0;a<i.length;a++)o.push({id:i[a].id||null,title:i[a].title||null,latitude:i[a].location&&i[a].location.lat||null,longitude:i[a].location&&i[a].location.lng||null,address:i[a].address||null,category:i[a].category||null,tel:i[a].tel||null,adcode:i[a].ad_info&&i[a].ad_info.adcode||null,city:i[a].ad_info&&i[a].ad_info.city||null,district:i[a].ad_info&&i[a].ad_info.district||null,province:i[a].ad_info&&i[a].ad_info.province||null});e.success(t,{searchResult:i,searchSimplify:o})}else if("suggest"===n){var s=t.data,r=[];for(a=0;a<s.length;a++)r.push({adcode:s[a].adcode||null,address:s[a].address||null,category:s[a].category||null,city:s[a].city||null,district:s[a].district||null,id:s[a].id||null,latitude:s[a].location&&s[a].location.lat||null,longitude:s[a].location&&s[a].location.lng||null,province:s[a].province||null,title:s[a].title||null,type:s[a].type||null});e.success(t,{suggestResult:s,suggestSimplify:r})}else if("reverseGeocoder"===n){var l=t.result,u={address:l.address||null,latitude:l.location&&l.location.lat||null,longitude:l.location&&l.location.lng||null,adcode:l.ad_info&&l.ad_info.adcode||null,city:l.address_component&&l.address_component.city||null,district:l.address_component&&l.address_component.district||null,nation:l.address_component&&l.address_component.nation||null,province:l.address_component&&l.address_component.province||null,street:l.address_component&&l.address_component.street||null,street_number:l.address_component&&l.address_component.street_number||null,recommend:l.formatted_addresses&&l.formatted_addresses.recommend||null,rough:l.formatted_addresses&&l.formatted_addresses.rough||null};if(l.pois){var c=l.pois,d=[];for(a=0;a<c.length;a++)d.push({id:c[a].id||null,title:c[a].title||null,latitude:c[a].location&&c[a].location.lat||null,longitude:c[a].location&&c[a].location.lng||null,address:c[a].address||null,category:c[a].category||null,adcode:c[a].ad_info&&c[a].ad_info.adcode||null,city:c[a].ad_info&&c[a].ad_info.city||null,district:c[a].ad_info&&c[a].ad_info.district||null,province:c[a].ad_info&&c[a].ad_info.province||null});e.success(t,{reverseGeocoderResult:l,reverseGeocoderSimplify:u,pois:c,poisSimplify:d})}else e.success(t,{reverseGeocoderResult:l,reverseGeocoderSimplify:u})}else if("geocoder"===n){var f=t.result,m={title:f.title||null,latitude:f.location&&f.location.lat||null,longitude:f.location&&f.location.lng||null,adcode:f.ad_info&&f.ad_info.adcode||null,province:f.address_components&&f.address_components.province||null,city:f.address_components&&f.address_components.city||null,district:f.address_components&&f.address_components.district||null,street:f.address_components&&f.address_components.street||null,street_number:f.address_components&&f.address_components.street_number||null,level:f.level||null};e.success(t,{geocoderResult:f,geocoderSimplify:m})}else if("getCityList"===n){var p=t.result[0],v=t.result[1],h=t.result[2];e.success(t,{provinceResult:p,cityResult:v,districtResult:h})}else if("getDistrictByCityId"===n){var g=t.result[0];e.success(t,g)}else if("calculateDistance"===n){var y=t.result.elements,_=[];for(a=0;a<y.length;a++)_.push(y[a].distance);e.success(t,{calculateDistanceResult:y,distance:_})}else e.success(t)},buildWxRequestConfig:function(e,t,n){var i=this;return t.header={"content-type":"application/json"},t.method="GET",t.success=function(t){var o=t.data;0===o.status?i.handleData(e,o,n):e.fail(o)},t.fail=function(t){t.statusCode=a.WX_ERR_CODE,e.fail(i.buildErrorConfig(a.WX_ERR_CODE,t.errMsg))},t.complete=function(t){var n=+t.statusCode;switch(n){case a.WX_ERR_CODE:e.complete(i.buildErrorConfig(a.WX_ERR_CODE,t.errMsg));break;case a.WX_OK_CODE:var o=t.data;0===o.status?e.complete(o):e.complete(i.buildErrorConfig(o.status,o.message));break;default:e.complete(i.buildErrorConfig(a.SYSTEM_ERR,a.SYSTEM_ERR_MSG))}},t},locationProcess:function(e,t,n,i){var o=this;if(n=n||function(t){t.statusCode=a.WX_ERR_CODE,e.fail(o.buildErrorConfig(a.WX_ERR_CODE,t.errMsg))},i=i||function(t){t.statusCode==a.WX_ERR_CODE&&e.complete(o.buildErrorConfig(a.WX_ERR_CODE,t.errMsg))},e.location){if(o.checkLocation(e)){var s=l.getLocationParam(e.location);t(s)}}else o.getWXLocation(t,n,i)}},u=function(){"use strict";function e(t){if(i(this,e),!t.key)throw Error("key值不能为空");this.key=t.key}return o(e,[{key:"search",value:function(e){if(e=e||{},l.polyfillParam(e),l.checkKeyword(e)){var t={keyword:e.keyword,orderby:e.orderby||"_distance",page_size:e.page_size||10,page_index:e.page_index||1,output:"json",key:this.key};e.address_format&&(t.address_format=e.address_format),e.filter&&(t.filter=e.filter);var n=e.distance||"1000",i=e.auto_extend||1,o=null,a=null;e.region&&(o=e.region),e.rectangle&&(a=e.rectangle);l.locationProcess(e,(function(s){t.boundary=o&&!a?"region("+o+","+i+","+s.latitude+","+s.longitude+")":a&&!o?"rectangle("+a+")":"nearby("+s.latitude+","+s.longitude+","+n+","+i+")",wx.request(l.buildWxRequestConfig(e,{url:"https://apis.map.qq.com/ws/place/v1/search",data:t},"search"))}))}}},{key:"getSuggestion",value:function(e){if(e=e||{},l.polyfillParam(e),l.checkKeyword(e)){var t={keyword:e.keyword,region:e.region||"全国",region_fix:e.region_fix||0,policy:e.policy||0,page_size:e.page_size||10,page_index:e.page_index||1,get_subpois:e.get_subpois||0,output:"json",key:this.key};if(e.address_format&&(t.address_format=e.address_format),e.filter&&(t.filter=e.filter),e.location){l.locationProcess(e,(function(n){t.location=n.latitude+","+n.longitude,wx.request(l.buildWxRequestConfig(e,{url:r,data:t},"suggest"))}))}else wx.request(l.buildWxRequestConfig(e,{url:r,data:t},"suggest"))}}},{key:"reverseGeocoder",value:function(e){e=e||{},l.polyfillParam(e);var t={coord_type:e.coord_type||5,get_poi:e.get_poi||0,output:"json",key:this.key};e.poi_options&&(t.poi_options=e.poi_options);l.locationProcess(e,(function(n){t.location=n.latitude+","+n.longitude,wx.request(l.buildWxRequestConfig(e,{url:"https://apis.map.qq.com/ws/geocoder/v1/",data:t},"reverseGeocoder"))}))}},{key:"geocoder",value:function(e){if(e=e||{},l.polyfillParam(e),!l.checkParamKeyEmpty(e,"address")){var t={address:e.address,output:"json",key:this.key};e.region&&(t.region=e.region),wx.request(l.buildWxRequestConfig(e,{url:"https://apis.map.qq.com/ws/geocoder/v1/",data:t},"geocoder"))}}},{key:"getCityList",value:function(e){e=e||{},l.polyfillParam(e);var t={output:"json",key:this.key};wx.request(l.buildWxRequestConfig(e,{url:"https://apis.map.qq.com/ws/district/v1/list",data:t},"getCityList"))}},{key:"getDistrictByCityId",value:function(e){if(e=e||{},l.polyfillParam(e),!l.checkParamKeyEmpty(e,"id")){var t={id:e.id||"",output:"json",key:this.key};wx.request(l.buildWxRequestConfig(e,{url:"https://apis.map.qq.com/ws/district/v1/getchildren",data:t},"getDistrictByCityId"))}}},{key:"calculateDistance",value:function(e){if(e=e||{},l.polyfillParam(e),!l.checkParamKeyEmpty(e,"to")){var t={mode:e.mode||"walking",to:l.location2query(e.to),output:"json",key:this.key};if(e.from&&(e.location=e.from),"straight"==t.mode){var n=function(n){for(var i=l.getEndLocation(t.to),o={message:"query ok",result:{elements:[]},status:0},a=0;a<i.length;a++)o.result.elements.push({distance:l.getDistance(n.latitude,n.longitude,i[a].lat,i[a].lng),duration:0,from:{lat:n.latitude,lng:n.longitude},to:{lat:i[a].lat,lng:i[a].lng}});var s=o.result.elements,r=[];for(a=0;a<s.length;a++)r.push(s[a].distance);return e.success(o,{calculateResult:s,distanceResult:r})};l.locationProcess(e,n)}else{n=function(n){t.from=n.latitude+","+n.longitude,wx.request(l.buildWxRequestConfig(e,{url:"https://apis.map.qq.com/ws/distance/v1/",data:t},"calculateDistance"))};l.locationProcess(e,n)}}}}]),e}();e.exports=u},2632:function(e,t,n){var i=n("d189").default;function o(e){return e<10?"0"+e:""+e}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return function(e,t){e=e||0,t=t||1;for(var i=[],a=e;a<=t;a++)i.push(o(a)+n);return i}(e,t)}function s(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=e%400==0||e%4==0&&e%100!=0,s=null;switch(t){case"01":case"03":case"05":case"07":case"08":case"10":case"12":s=a(1,n||31,i);break;case"04":case"06":case"09":case"11":s=a(1,n||30,i);break;case"02":s=a(1,o?n||29:n||28,i);break;default:s="月份格式不正确,请重新输入!"}return s}n("aa9c"),n("c223"),n("64aa"),n("bf0f"),n("5ef2"),e.exports={dateTimePicker:function(e,t,n,r){var l=[],u=[[],[],[],[],[],[]],c=[[],[],[],[],[],[]],d=t||2e3,f=n||2100,m=r?[].concat(i(r.split(" ")[0].split("-")),i(r.split(" ")[1].split(":"))):function(){var e=new Date,t=o(e.getFullYear()),n=o(e.getMonth()+1),i=o(e.getDate()),a=o(e.getHours()),s=o(e.getMinutes()),r=o(e.getSeconds());return[t,n,i,a,s,r]}();if(c[0]=a(d,f),c[1]=a(1,12),c[2]=s(m[0],m[1]),c[3]=a(0,23),c[4]=a(0,59),c[5]=a(0,59),e){var p=new Date,v=p.getTime(),h=(e=v+24*Number(e)*60*60*1e3,n=f,new Date(e).getMonth()+1),g=new Date(e).getDate(),y=new Date(e).getHours(),_=new Date(e).getMinutes(),b=new Date(e).getSeconds();console.log(n,h,g,y,_,b),u[0]=a(d,n,"年"),u[1]=a(1,h,"月"),u[2]=s(m[0],m[1],m[1]<h?null:g,"日")}else u[0]=a(d,f,"年"),u[1]=a(1,12,"月"),u[2]=s(m[0],m[1],null,"日");return u[3]=a(0,23,"时"),u[4]=a(0,59,"分"),u[5]=a(0,59,"秒"),c.forEach((function(e,t){l.push(e.indexOf(m[t]))})),{dateTimeArray:u,dateTime:l,dateArray:c}},getMonthDay:s}},2774:function(e,t,n){n("01a2"),n("e39c"),n("bf0f"),n("844d"),n("18f7"),n("de6c"),n("08eb"),e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},"30f7":function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},n("7a76"),n("c9b5")},3221:function(e,t,n){"use strict";var i=n("0446"),o=n.n(i);o.a},"391e":function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.daibanKehuFollow=function(e){return(0,i.myRequest)("record/getcustomerList",e)},t.netAddComment=function(e){return(0,i.myRequest)("record/addComment",e)},t.netAddCost=function(e){return(0,i.myRequest)("consume/addConsume",e)},t.netAddFollowRecords=function(e){return(0,i.myRequest)("record/createRecord",e)},t.netAddLianxiren=function(e){return(0,i.myRequest)("contacts/addContacts",e)},t.netAddPayment=function(e){return(0,i.myRequest)("receivables/addReceivables",e)},t.netAddPlan=function(e){return(0,i.myRequest)("receivables_plan/addPlan",e)},t.netAddkehu=function(e){return(0,i.myRequest)("customer/addCustomer",e)},t.netCancelExamine=function(e){return(0,i.myRequest)("contract/cancel",e)},t.netCheckName=function(e){return(0,i.myRequest)("customer/selectName",e)},t.netConcatDetailInfo=function(e){return(0,i.myRequest)("contacts/getDetail",e)},t.netContact=function(e){return(0,i.myRequest)("contacts/getSelectList",e)},t.netContactFileList=function(e){return(0,i.myRequest)("contacts/getFilesList",e)},t.netContactList=function(e){return(0,i.myRequest)("contacts/getList",e)},t.netContinueIsFollow=function(e){return(0,i.myRequest)("record/record_add",e)},t.netContractDetail=function(e){return(0,i.myRequest)("contract/getDetail",e)},t.netContractFileList=function(e){return(0,i.myRequest)("contract/getFilesList",e)},t.netContractList=function(e){return(0,i.myRequest)("contract/getCustomerContacts",e)},t.netContractNum=function(){return(0,i.myRequest)("contract/getContractNumber")},t.netContractProduct=function(e){return(0,i.myRequest)("product/getSelectList",e)},t.netCostDetail=function(e){return(0,i.myRequest)("consume/getDetail",e)},t.netCostList=function(e){return(0,i.myRequest)("consume/getList",e)},t.netCreateContract=function(e){return(0,i.myRequest)("contract/addContract",e)},t.netCrmContractList=function(e){return(0,i.myRequest)("contract/getList",e)},t.netDelContact=function(e){return(0,i.myRequest)("contacts/delContacts",e)},t.netEditContactInfo=function(e){return(0,i.myRequest)("contacts/editContacts",e)},t.netEditContract=function(e){return(0,i.myRequest)("contract/editContract",e)},t.netEditCost=function(e){return(0,i.myRequest)("consume/editConsume",e)},t.netEditFileName=function(e){return(0,i.myRequest)("file/editName",e)},t.netEditKehu=function(e){return(0,i.myRequest)("customer/editCustomer",e)},t.netEditPaymentInfo=function(e){return(0,i.myRequest)("receivables/editReceivables",e)},t.netExamine=function(e){return(0,i.myRequest)("examine_record/examine",e)},t.netFollowRecordDetail=function(e){return(0,i.myRequest)("record/getRecordDetail",e)},t.netGetBriefdata=function(e){return(0,i.myRequest)("index/briefing",e)},t.netGetBumenList=function(e){return(0,i.myRequest)("achievement/getDepartmentList",e)},t.netGetCommentList=function(e){return(0,i.myRequest)("record/commentList",e)},t.netGetDefaultMoney=function(e){return(0,i.myRequest)("achievement/getAchievementDetail",e)},t.netGetDefaultSelfDetail=function(e){return(0,i.myRequest)("achievement/getMyAchievementDetail",e)},t.netGetDepTargetlist=function(e){return(0,i.myRequest)("achievement/getStaffList",e)},t.netGetGongsiList=function(e){return(0,i.myRequest)("achievement/getCompanyAchievement",e)},t.netGetOthersReceivable=function(){return(0,i.myRequest)("statistics/staffReceivablesStatistics")},t.netGetRecordDetail=function(e){return(0,i.myRequest)("achievement/getRecordsDetail",e)},t.netGetRecordList=function(e){return(0,i.myRequest)("achievement/editRecords",e)},t.netGetTargetSelect=function(){return(0,i.myRequest)("achievement/getDepartment")},t.netGetTealList=function(e){return(0,i.myRequest)("achievement/getTeamList",e)},t.netGetreceivableStaff=function(){return(0,i.myRequest)("statistics/receivablesStatistics")},t.netKehuDetail=function(e){return(0,i.myRequest)("customer/customerDetail",e)},t.netKehuFileList=function(e){return(0,i.myRequest)("customer/getFilesList",e)},t.netKehuFollow=function(e){return(0,i.myRequest)("record/getList",e)},t.netKehuList=function(e){return(0,i.myRequest)("customer/getList",e)},t.netKeyCollect=function(e){return(0,i.myRequest)("customer/collect",e)},t.netLianxiren=function(e){return(0,i.myRequest)("contacts/getSelectList",e)},t.netOperationList=function(e){return(0,i.myRequest)("operation/getList",e)},t.netPaymentApproval=function(e){return(0,i.myRequest)("examine_record/getList",e)},t.netPaymentCancel=function(e){return(0,i.myRequest)("receivables/cancel",e)},t.netPaymentDetail=function(e){return(0,i.myRequest)("receivables/getDetail",e)},t.netPaymentList=function(e){return(0,i.myRequest)("receivables/getList",e)},t.netPaymentNum=function(e){return(0,i.myRequest)("receivables_plan/getSelectList",e)},t.netPaymentNumber=function(){return(0,i.myRequest)("receivables/getReceivablesNumber")},t.netPlanListf=function(e){return(0,i.myRequest)("receivables_plan/getList",e)},t.netPrevCustomer=function(e){return(0,i.myRequest)("customer/getSelectList",e)},t.netProductClass=function(e){return(0,i.myRequest)("product/getProducttypeList",e)},t.netProductDetail=function(e){return(0,i.myRequest)("product/getProductDetail",e)},t.netQueryData=function(e){return(0,i.myRequest)("index/search",e)},t.netReceiveKehu=function(e){return(0,i.myRequest)("customer/receive",e)},t.netRemoveColect=function(e){return(0,i.myRequest)("customer/cancelCollect",e)},t.netRemoveSeas=function(e){return(0,i.myRequest)("customer/moveSeas",e)},t.netSearchStaffList=function(e){return(0,i.myRequest)("customer/getSearchStaffList",e)},t.netSelect=function(){return(0,i.myRequest)("common/selectOption")},t.netSelectContract=function(e){return(0,i.myRequest)("contract/getSelectList",e)},t.netSetMymubiao=function(e){return(0,i.myRequest)("achievement/staffEditAchievement",e)},t.netSetTargetMoney=function(e){return(0,i.myRequest)("achievement/addAchievement",e)},t.netStaffList=function(e){return(0,i.myRequest)("common/getSelectStaff",e)},t.netSubordList=function(e){return(0,i.myRequest)("customer/getLowerCustomer",e)},t.netTransKehu=function(e){return(0,i.myRequest)("customer/transfer",e)},t.netTurnoverList=function(e){return(0,i.myRequest)("index/contractRanding",e)};var i=n("3a07")},"3fc3":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var i={uPopup:n("de5b").default},o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("u-popup",{attrs:{mode:"bottom","border-radius":e.borderRadius,popup:!1,maskCloseAble:e.maskCloseAble,length:"auto",safeAreaInsetBottom:e.safeAreaInsetBottom,"z-index":e.uZIndex},on:{close:function(t){arguments[0]=t=e.$handleEvent(t),e.popupClose.apply(void 0,arguments)}},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},[e.tips.text?n("v-uni-view",{staticClass:"u-tips u-border-bottom",style:[e.tipsStyle]},[e._v(e._s(e.tips.text))]):e._e(),e._l(e.list,(function(t,i){return[n("v-uni-view",{key:i+"_0",staticClass:"u-action-sheet-item u-line-1",class:[i<e.list.length-1?"u-border-bottom":""],style:[e.itemStyle(i)],attrs:{"hover-stay-time":150},on:{touchmove:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t)},click:function(t){arguments[0]=t=e.$handleEvent(t),e.itemClick(i)}}},[n("v-uni-text",[e._v(e._s(t.text))]),t.subText?n("v-uni-text",{staticClass:"u-action-sheet-item__subtext u-line-1"},[e._v(e._s(t.subText))]):e._e()],1)]})),e.cancelBtn?n("v-uni-view",{staticClass:"u-gab"}):e._e(),e.cancelBtn?n("v-uni-view",{staticClass:"u-actionsheet-cancel u-action-sheet-item",attrs:{"hover-class":"u-hover-class","hover-stay-time":150},on:{touchmove:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t)},click:function(t){arguments[0]=t=e.$handleEvent(t),e.close.apply(void 0,arguments)}}},[e._v(e._s(e.cancelText))]):e._e()],2)},a=[]},4733:function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(Array.isArray(e))return(0,i.default)(e)};var i=function(e){return e&&e.__esModule?e:{default:e}}(n("8d0b"))},"4db6":function(e,t,n){n("6a54");var i=n("8bcf");function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,i(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports["default"]=e.exports},"56c9":function(e,t,n){n("9e15"),n("884b"),n("01a2"),n("e39c"),n("bf0f"),n("7a76"),n("c9b5"),n("64aa");var i=n("bdbb")["default"];e.exports=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},"57d3":function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("64aa");var i={name:"u-action-sheet",props:{maskCloseAble:{type:Boolean,default:!0},list:{type:Array,default:function(){return[]}},tips:{type:Object,default:function(){return{text:"",color:"",fontSize:"26"}}},cancelBtn:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!1},value:{type:Boolean,default:!1},borderRadius:{type:[String,Number],default:0},zIndex:{type:[String,Number],default:0},cancelText:{type:String,default:"取消"}},computed:{tipsStyle:function(){var e={};return this.tips.color&&(e.color=this.tips.color),this.tips.fontSize&&(e.fontSize=this.tips.fontSize+"rpx"),e},itemStyle:function(){var e=this;return function(t){var n={};return e.list[t].color&&(n.color=e.list[t].color),e.list[t].fontSize&&(n.fontSize=e.list[t].fontSize+"rpx"),e.list[t].disabled&&(n.color="#c0c4cc"),n}},uZIndex:function(){return this.zIndex?this.zIndex:this.$u.zIndex.popup}},methods:{close:function(){this.popupClose(),this.$emit("close")},popupClose:function(){this.$emit("input",!1)},itemClick:function(e){this.list[e].disabled||(this.$emit("click",e),this.$emit("input",!1))}}};t.default=i},"5c6a":function(e,t,n){var i=n("c86c");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.u-tips[data-v-921eb322]{font-size:%?26?%;text-align:center;padding:%?34?% 0;line-height:1;color:#909399}.u-action-sheet-item[data-v-921eb322]{display:flex;flex-direction:row;line-height:1;justify-content:center;align-items:center;font-size:%?32?%;padding:%?34?% 0;flex-direction:column}.u-action-sheet-item__subtext[data-v-921eb322]{font-size:%?24?%;color:#909399;margin-top:%?20?%}.u-gab[data-v-921eb322]{height:%?12?%;background-color:#eaeaec}.u-actionsheet-cancel[data-v-921eb322]{color:#303133}',""]),e.exports=t},"79b7":function(e,t,n){n("f7a5"),n("bf0f"),n("08eb"),n("18f7"),n("5c47"),n("0506");var i=n("e476");e.exports=function(e,t){if(e){if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}},e.exports.__esModule=!0,e.exports["default"]=e.exports},"883d":function(e,t,n){n("7a76"),n("c9b5"),e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports["default"]=e.exports},"8bcf":function(e,t,n){var i=n("bdbb")["default"],o=n("56c9");e.exports=function(e){var t=o(e,"string");return"symbol"===i(t)?t:String(t)},e.exports.__esModule=!0,e.exports["default"]=e.exports},"8d8b":function(e,t,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.commonF=void 0;var o=i(n("b7c7"));n("bf0f"),n("2797"),n("c223"),n("dd2b");var a=n("af8c"),s={onShow:function(){this.remindPeople=[],this.getDefaultRemind()},onUnload:function(){uni.removeStorageSync("remindlist")},methods:{getDefaultRemind:function(){var e=this;(0,a.netStaffDefaultReviewer)({type:this.remindType}).then((function(t){t=t.data,t.forEach((function(e,t){e.isDel=!1})),e.remindPeople=e.$deWeight([].concat((0,o.default)(t),(0,o.default)(uni.getStorageSync("remindlist"))))}))},delRemind:function(e){this.remindPeople.splice(e,1),uni.setStorageSync("remindlist",this.remindPeople)}}};t.commonF=s},9376:function(e,t,n){n("7a76"),n("c9b5"),e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports["default"]=e.exports},b443:function(e,t,n){"use strict";n.r(t);var i=n("e084"),o=n("0067");for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);n("eda1");var s=n("828b"),r=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"698036a0",null,!1,i["a"],void 0);t["default"]=r.exports},b7c7:function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e)||(0,o.default)(e)||(0,a.default)(e)||(0,s.default)()};var i=r(n("4733")),o=r(n("d14d")),a=r(n("5d6b")),s=r(n("30f7"));function r(e){return e&&e.__esModule?e:{default:e}}},d14d:function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},n("01a2"),n("e39c"),n("bf0f"),n("844d"),n("18f7"),n("de6c"),n("08eb")},d189:function(e,t,n){var i=n("e2db"),o=n("2774"),a=n("79b7"),s=n("9376");e.exports=function(e){return i(e)||o(e)||a(e)||s()},e.exports.__esModule=!0,e.exports["default"]=e.exports},d1ea:function(e,t,n){var i=n("c86c");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */uni-radio[data-v-698036a0]{-webkit-transform:scale(.6);transform:scale(.6)}.fllow_form[data-v-698036a0]{display:flex;justify-content:space-between;background-color:#fff;border-bottom:%?1?% solid #eaeaea;padding:%?30?% %?40?% %?30?% %?47?%;font-size:%?32?%;color:#999}.fllow_form .form_right[data-v-698036a0]{display:flex;align-items:center;color:#999}.fllow_form uni-text[data-v-698036a0]{color:red;margin-left:%?10?%}.fllow_area[data-v-698036a0]{background-color:#fff;padding:0 %?55?%;font-size:%?32?%;color:#999;padding-bottom:%?30?%}.fllow_area .area_head[data-v-698036a0]{height:%?100?%;line-height:%?100?%}.fllow_area .area_head uni-text[data-v-698036a0]{color:red}.fllow_area uni-textarea[data-v-698036a0]{height:%?300?%;padding:%?30?%;background:#f8f8f8;border-radius:%?15?%;margin:0 auto}.imglist[data-v-698036a0]{padding:%?24?% %?34?%;background:#fff;border-bottom:%?1?% solid #eaeaea;display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap}.imglist .imgbox[data-v-698036a0]{width:%?160?%;height:%?160?%;margin-right:%?14?%;position:relative;margin-bottom:%?24?%;border:%?1?% solid #eaeaea}.imglist .imgbox .delimg[data-v-698036a0]{width:%?32?%;height:%?32?%;border-radius:50%;position:absolute;right:%?-16?%;top:%?-16?%;background:rgba(0,0,0,.5);z-index:2}.imglist .imgbox .selfimg[data-v-698036a0]{width:%?160?%;height:%?160?%}.fllow_file_li[data-v-698036a0]{padding:%?24?% %?34?%;background:#fff;border-bottom:%?1?% solid #eaeaea}.fllow_file_li .fil_li[data-v-698036a0]{display:flex;justify-content:space-between;align-items:center;padding-bottom:%?14?%;padding-top:%?15?%;border-bottom:%?1?% solid #f5f5f5}.fllow_file_li .fil_li .fileimg[data-v-698036a0]{width:%?20?%;height:%?20?%}.fllow_file_li .fil_li .filename[data-v-698036a0]{font-size:%?24?%;color:#999}.fllow_file_li .fil_li .closeimg[data-v-698036a0]{width:%?32?%;height:%?32?%}',""]),e.exports=t},d7c5:function(e,t,n){var i=n("d1ea");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=n("967d").default;o("2179eae6",i,!0,{sourceMap:!1,shadowMode:!1})},d8f3:function(e,t,n){"use strict";n.r(t);var i=n("3fc3"),o=n("dbf6");for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);n("3221");var s=n("828b"),r=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"921eb322",null,!1,i["a"],void 0);t["default"]=r.exports},db4a:function(e,t,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("39d8"));n("c223"),n("bf0f"),n("2797"),n("aa9c"),n("dd2b");var a,s=n("3a07"),r=n("8d8b"),l=n("391e"),u=n("e360"),c=n("af8c"),d=n("2632"),f={mixins:[r.commonF],data:function(){return{BASE_IMG_URL:s.BASE_IMG_URL,noClick:!0,type:0,content:"",remarks:"",followList:[],followIndex:null,statusList:[],statusIndex:null,next_time:"",imgList:[],fileList:[],uploadActions:[{id:1,text:"拍照",color:"#008EFF"},{id:2,text:"从相册中选择",color:"#008EFF"}],remindPeople:[],remindType:"record",dateTime:null,dateTimeArray:null,dateArr:null,uploadShow:!1,mapKey:"",lng:"",lat:"",address:"",record_id:"",relation_type:"",relation_id:""}},onLoad:function(e){this.record_id=e.id,this.relation_id=e.relation_id,this.relation_type=e.relation_type,this.initTime(),this.getLocation(),this.getSelectList()},methods:{getSelectList:function(){var e=this;(0,l.netSelect)().then((function(t){e.followList=t.data["跟进类型"],e.statusList=t.data["客户状态"]}))},getLocation:function(){var e=this;uni.getLocation({type:"gcj02",altitude:!0,isHighAccuracy:!0,success:function(t){e.lng=t.longitude,e.lat=t.latitude,e.getKey()},fail:function(e){uni.showToast({title:"次数频繁,请稍后再试",icon:"none"})}})},getKey:function(){var e=this;(0,u.netMapKey)().then((function(t){t.data.map_key?(e.mapKey=t.data.map_key,a=n("06ea"),new a({key:t.data.map_key}),e.$jsonp("https://apis.map.qq.com/ws/geocoder/v1",{key:e.mapKey,output:"jsonp",location:"".concat(e.lat,",").concat(e.lng),get_poi:"1"}).then((function(t){e.address=t.result.address_component.province+t.result.address_component.city+t.result.formatted_addresses.rough}))):uni.showToast({title:"请在后台配置地图key",icon:"none"})}))},initTime:function(){var e=(0,d.dateTimePicker)();e.dateTimeArray.pop(),e.dateTime.pop(),e.dateArray.pop();this.dateTimeArray=e.dateTimeArray,this.dateTime=e.dateTime,this.dateArr=e.dateArray},changeTime:function(e){var t=e.detail.value,n=this.handleTime(t);this.next_time=n},changeAlipayTime:function(e){this.next_time=e.detail.value},handleTime:function(e){var t=this.dateArr[0][e[0]],n=this.dateArr[1][e[1]],i=this.dateArr[2][e[2]],o=this.dateArr[3][e[3]],a=this.dateArr[4][e[4]],s=t+"-"+n+"-"+i+" "+o+":"+a;return s},uploadClick:function(){this.uploadShow=!0},onCancel:function(){this.uploadShow=!1},uploadType:function(e){var t=this;0==e?uni.chooseImage({sourceType:["camera"],sizeType:["compressed"],success:function(e){var n=e.tempFilePaths;n.forEach((function(e){t.uploadFile(e,1)}))}}):1==e?uni.chooseImage({sourceType:["album"],sizeType:["compressed"],success:function(e){var n=e.tempFilePaths;n.forEach((function(e){t.uploadFile(e,1)}))}}):wx.chooseMessageFile({count:1,type:"file",success:function(e){var n=e.tempFiles[0];t.uploadFile(n,2)},fail:function(e){console.log(e)}})},uploadFile:function(e,t){var n=this;uni.uploadFile({url:c.uploadUrl,name:"file",header:{token:uni.getStorageSync("token")},filePath:1==t?e:e.path,formData:{name:2==t?e.name:""},success:function(i){var o=JSON.parse(i.data);if(n.uploadShow=!1,1==o.code)if(1==t){var a={id:o.data.id,file_path:o.data.url};n.imgList.push(a)}else{var s={id:o.data.id,file_path:o.data.url};e=Object.assign({},e,s),n.fileList.push(e)}else uni.showToast({title:"上传失败",icon:"none"})},fail:function(e){console.log(e)}})},delImg:function(e){this.imgList.splice(e,1)},delFile:function(e){this.fileList.splice(e,1)},changeRelation:function(e){this.type=e.detail.value,this.content=""},changeFollow:function(e){this.followIndex=e.detail.value},changeStatus:function(e){this.statusIndex=e.detail.value},saveParams:function(){0==this.type?this.handleFir():1==this.type&&this.handleSec()},handleFir:function(){var e=(0,o.default)({type:this.type,remarks:this.remarks,record_id:this.record_id,relation_type:this.relation_type},"type",this.type);(0,l.netContinueIsFollow)(e).then((function(e){uni.showToast({title:e.msg,icon:"none"}),setTimeout((function(){uni.navigateBack({delta:1})}),2e3)}))},handleSec:function(){if(1!=this.relation_type||this.statusList[this.statusIndex])if(this.followList[this.followIndex])if(this.next_time)if(this.content){var e=[];this.imgList.forEach((function(t){e.push(t.id)})),this.fileList.forEach((function(t){e.push(t.id)}));var t=[];this.remindPeople.forEach((function(e){t.push(e.id)}));var n={files:e.join(","),reminds_id:t.join(","),follow_type:this.followList[this.followIndex],next_time:this.next_time,content:this.content,relation_id:this.relation_id,relation_type:this.relation_type,lng:this.lng,lat:this.lat,location:this.address,remarks:this.remarks,type:this.type,record_id:this.record_id};(0,l.netContinueIsFollow)(n).then((function(e){uni.showToast({title:e.msg,icon:"none"}),setTimeout((function(){uni.navigateBack({delta:1})}),2e3)}))}else uni.showToast({title:"请填写跟进内容",icon:"none"});else uni.showToast({title:"请选择下次跟进时间",icon:"none"});else uni.showToast({title:"请选择跟进类型",icon:"none"});else uni.showToast({title:"请选择客户状态",icon:"none"})}}};t.default=f},dbf6:function(e,t,n){"use strict";n.r(t);var i=n("57d3"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=o.a},e084:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var i={uActionSheet:n("d8f3").default},o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{},[n("v-uni-view",{staticClass:"fllow_form"},[n("v-uni-view",[n("v-uni-text",[e._v("*")]),e._v("是否继续跟进")],1),n("v-uni-view",{staticClass:"form_right"},[n("v-uni-radio-group",{staticClass:"labellist",on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeRelation.apply(void 0,arguments)}}},[n("v-uni-label",{staticClass:"labelbox",attrs:{class:"labelbox"}},[n("v-uni-radio",{attrs:{color:"#008EFF",value:0,checked:0==e.type}}),e._v("否")],1),n("v-uni-label",{staticClass:"labelbox",attrs:{class:"labelbox"}},[n("v-uni-radio",{attrs:{color:"#008EFF",value:1,checked:1==e.type}}),e._v("是")],1)],1)],1)],1),n("v-uni-view",{staticClass:"fllow_area"},[n("v-uni-view",{staticClass:"area_head"},[e._v("备注信息")]),n("v-uni-textarea",{class:e.remarks?"valueActive":"",attrs:{placeholder:"备注信息","placeholder-style":"color:#999"},model:{value:e.remarks,callback:function(t){e.remarks=t},expression:"remarks"}})],1),1==e.type?n("v-uni-view",{},[1==e.relation_type?n("v-uni-view",{staticClass:"fllow_form"},[n("v-uni-view",[n("v-uni-text",[e._v("*")]),e._v("客户状态")],1),n("v-uni-picker",{attrs:{value:e.statusIndex,range:e.statusList},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeStatus.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"form_right"},[n("v-uni-view",{class:e.statusList[e.statusIndex]?"valueActive":""},[e._v(e._s(e.statusList[e.statusIndex]?e.statusList[e.statusIndex]:"点击选择"))]),n("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1)],1)],1):e._e(),n("v-uni-view",{staticClass:"fllow_form"},[n("v-uni-view",[n("v-uni-text",[e._v("*")]),e._v("跟进类型")],1),n("v-uni-picker",{attrs:{value:e.followIndex,range:e.followList},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeFollow.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"form_right"},[n("v-uni-view",{class:e.followList[e.followIndex]?"valueActive":""},[e._v(e._s(e.followList[e.followIndex]?e.followList[e.followIndex]:"点击选择"))]),n("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1)],1)],1),n("v-uni-view",{staticClass:"fllow_form"},[n("v-uni-view",[n("v-uni-text",[e._v("*")]),e._v("下次跟进时间")],1),n("v-uni-picker",{attrs:{mode:"multiSelector",range:e.dateTimeArray,value:e.dateTime},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeTime.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"form_right"},[n("v-uni-view",{class:e.next_time?"valueActive":""},[e._v(e._s(e.next_time?e.next_time:"点击选择"))]),n("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1)],1)],1),n("v-uni-view",{staticClass:"fllow_form"},[n("v-uni-view",{staticStyle:{"padding-left":"27rpx"}},[e._v("上传附件")]),n("v-uni-view",{staticClass:"form_right",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.uploadClick.apply(void 0,arguments)}}},[n("v-uni-view",[e._v("选择附件")]),n("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1)],1),n("u-action-sheet",{attrs:{list:e.uploadActions},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.uploadType.apply(void 0,arguments)}},model:{value:e.uploadShow,callback:function(t){e.uploadShow=t},expression:"uploadShow"}}),0!=e.imgList.length?n("v-uni-view",{staticClass:"imglist"},e._l(e.imgList,(function(t,i){return n("v-uni-view",{key:i,staticClass:"imgbox"},[n("v-uni-image",{staticClass:"delimg",attrs:{src:e.BASE_IMG_URL+"close.png",mode:"scaleToFill"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.delImg(i)}}}),n("v-uni-image",{staticClass:"selfimg",attrs:{src:t.file_path,mode:"scaleToFill"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.openCommonImg(e.imgList,i)}}})],1)})),1):e._e(),0!=e.fileList.length?n("v-uni-view",{staticClass:"fllow_file_li"},e._l(e.fileList,(function(t,i){return n("v-uni-view",{key:i,staticClass:"fil_li"},[n("v-uni-image",{staticClass:"fileimg",attrs:{src:e.BASE_IMG_URL+"fujian.png",mode:"scaleToFill"}}),n("v-uni-view",{staticClass:"filename",on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.openCommonFile(t)}}},[e._v(e._s(t.name))]),n("v-uni-image",{staticClass:"closeimg",attrs:{src:e.BASE_IMG_URL+"close.png",mode:"scaleToFill"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.delFile(i)}}})],1)})),1):e._e(),n("v-uni-view",{staticClass:"fllow_area"},[n("v-uni-view",{staticClass:"area_head"},[n("v-uni-text",[e._v("*")]),e._v("跟进内容")],1),n("v-uni-textarea",{class:e.content?"valueActive":"",attrs:{placeholder:"勤跟进,多签单","placeholder-style":"color:#999"},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1),n("examine-template",{attrs:{remindPeople:e.remindPeople,flag:!1,title:"提醒谁看"},on:{delExamine:function(t){arguments[0]=t=e.$handleEvent(t),e.delRemind.apply(void 0,arguments)}}})],1):e._e(),n("v-uni-view",{staticClass:"btn_g bg-blue button-hover round",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.$noMultipleClicks(e.saveParams)}}},[e._v("保存")])],1)},a=[]},e2db:function(e,t,n){var i=n("e476");e.exports=function(e){if(Array.isArray(e))return i(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},e476:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i},e.exports.__esModule=!0,e.exports["default"]=e.exports},eda1:function(e,t,n){"use strict";var i=n("d7c5"),o=n.n(i);o.a}}]);