| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pagesA-signin-busSign","pages-index-groupCompany-contact-contactDetail~pages-index-groupCompany-contact-editInfo~pages-index~54577a3e","pages-index-groupCompany-cost-addCost~pages-index-newSche-newSche~pagesA-cost-index~pagesA-crm-custo~82b164c9"],{"0184":function(e,t,i){"use strict";i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){return n}));var n={uRate:i("a0dd").default,tkiTree:i("6f45").default,uSelect:i("d29e").default},o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",["input"!=e.objInfo.component||1!=e.objInfo.config.required&&e.isNotRequired||e.objInfo.config.addShow?e._e():i("v-uni-view",{staticClass:"fllow_form"},[i("v-uni-view",[i("v-uni-text",{class:1==e.objInfo.config.required?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.objInfo.config.label))],1),i("v-uni-view",{staticClass:"form_input"},[e.isEdit?i("v-uni-input",{class:e.objInfo.value?"valueActive":"",attrs:{type:e.objInfo.config.inputType?e.objInfo.config.inputType:"text","placeholder-style":"color:#999;font-size:32rpx;",value:e.objInfo.value,placeholder:e.isEdit?e.objInfo.config.placeholder:""},on:{input:function(t){arguments[0]=t=e.$handleEvent(t),e.changeInput.apply(void 0,arguments)}}}):e._e(),e.isEdit?e._e():i("v-uni-view",{staticClass:"valueActive"},[e._v(e._s(e.objInfo.value?e.objInfo.value:""))])],1)],1),"input-number"!=e.objInfo.component||1!=e.objInfo.config.required&&e.isNotRequired||e.objInfo.config.addShow?e._e():i("v-uni-view",{staticClass:"fllow_form"},[i("v-uni-view",[i("v-uni-text",{class:1==e.objInfo.config.required?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.objInfo.config.label))],1),i("v-uni-view",{staticClass:"form_input"},[i("v-uni-input",{class:e.objInfo.value?"valueActive":"",attrs:{type:"","placeholder-style":"color:#999;font-size:32rpx;",disabled:!e.isEdit,value:e.objInfo.value,placeholder:e.isEdit?e.objInfo.config.placeholder:""},on:{input:function(t){arguments[0]=t=e.$handleEvent(t),e.changeInput.apply(void 0,arguments)}}})],1)],1),"select"!=e.objInfo.component||1!=e.objInfo.config.required&&e.isNotRequired||e.objInfo.config.addShow?e._e():i("v-uni-view",{staticClass:"fllow_form"},[i("v-uni-view",[i("v-uni-text",{class:1==e.objInfo.config.required?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.objInfo.config.label))],1),i("v-uni-view",{staticClass:"form_right",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.changeSelect.apply(void 0,arguments)}}},[i("v-uni-view",{class:e.objInfo.value?"valueActive":""},[e._v(e._s(e.isEdit||e.objInfo.value?e.objInfo.value?e.objInfo.value:e.objInfo.config.placeholder:""))]),i("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1)],1),"Rate"!=e.objInfo.component||1!=e.objInfo.config.required&&e.isNotRequired||e.objInfo.config.addShow?e._e():i("v-uni-view",{staticClass:"fllow_form"},[i("v-uni-view",[i("v-uni-text",{class:1==e.objInfo.config.required?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.objInfo.config.label))],1),i("v-uni-view",{staticClass:"form_right"},[i("v-uni-view",[i("u-rate",{attrs:{disabled:!e.isEdit,"active-color":"#FFD049","inactive-color":"#b2b2b2",size:35,gutter:10},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeRate.apply(void 0,arguments)}},model:{value:e.objInfo.value,callback:function(t){e.$set(e.objInfo,"value",t)},expression:"objInfo.value"}})],1)],1)],1),"TimePicker"!=e.objInfo.component||1!=e.objInfo.config.required&&e.isNotRequired||e.objInfo.config.addShow?e._e():i("v-uni-view",{staticClass:"fllow_form"},[i("v-uni-view",[i("v-uni-text",{class:1==e.objInfo.config.required?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.objInfo.config.label))],1),i("v-uni-picker",{attrs:{mode:"multiSelector",disabled:!e.isEdit,range:e.dateTimeArray,value:e.dateTime},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeTime.apply(void 0,arguments)},columnchange:function(t){arguments[0]=t=e.$handleEvent(t),e.changeColumn.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"form_right"},[i("v-uni-view",{class:e.objInfo.value?"valueActive":""},[e._v(e._s(e.objInfo.value?e.objInfo.value:e.objInfo.config.placeholder))]),i("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1)],1)],1),"textarea"!=e.objInfo.component||1!=e.objInfo.config.required&&e.isNotRequired||e.objInfo.config.addShow?e._e():i("v-uni-view",{staticClass:"fllow_area"},[i("v-uni-view",{staticClass:"area_head"},[i("v-uni-text",{class:1==e.objInfo.config.required?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.objInfo.config.label))],1),i("v-uni-textarea",{class:e.objInfo.value?"valueActive":"",style:{height:e.height+"rpx"},attrs:{maxlength:"-1","auto-height":e.autoHeight,value:e.objInfo.value?e.objInfo.value:"",disabled:!e.isEdit,placeholder:e.isEdit?e.objInfo.config.placeholder:"","placeholder-style":"color:#999;font-size:32rpx;"},on:{input:function(t){arguments[0]=t=e.$handleEvent(t),e.changeTextarea.apply(void 0,arguments)}}})],1),"radio"!=e.objInfo.component||1!=e.objInfo.config.required&&e.isNotRequired||e.objInfo.config.addShow?e._e():i("v-uni-view",{staticClass:"fllow_form"},[i("v-uni-view",[i("v-uni-text",{class:1==e.objInfo.config.required?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.objInfo.config.label))],1),i("v-uni-view",{staticClass:"form_right"},[i("v-uni-radio-group",{staticClass:"labellist",attrs:{disabled:!e.isEdit},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeRadio.apply(void 0,arguments)}}},e._l(e.objInfo.config.content,(function(t,n){return i("v-uni-label",{key:n,staticClass:"labelbox",attrs:{class:"labelbox"}},[i("v-uni-view",[i("v-uni-radio",{attrs:{color:"#008EFF",disabled:!e.isEdit,value:t.value,checked:t.value==e.objInfo.value}})],1),i("v-uni-view",[e._v(e._s(t.value))])],1)})),1)],1)],1),"checkbox"!=e.objInfo.component||1!=e.objInfo.config.required&&e.isNotRequired||e.objInfo.config.addShow?e._e():i("v-uni-view",{staticClass:"fllow_area"},[i("v-uni-view",{staticClass:"area_head"},[i("v-uni-text",{class:1==e.objInfo.config.required?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.objInfo.config.label))],1),i("v-uni-checkbox-group",{staticStyle:{display:"flex","justify-content":"flex-start","flex-wrap":"wrap"},attrs:{value:e.objInfo.value},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeCheckbox.apply(void 0,arguments)}}},e._l(e.objInfo.config.content,(function(t,n){return i("v-uni-label",{key:n,staticStyle:{"margin-right":"15rpx","margin-bottom":"25rpx",display:"block"}},[i("v-uni-checkbox",{staticClass:"checkbox",attrs:{color:"#ff7800",value:t.value,checked:-1!=e.objInfo.value.indexOf(t.value),disabled:!e.isEdit}}),i("span",[e._v(e._s(t.value))])],1)})),1)],1),"Cascader"!=e.objInfo.component||1!=e.objInfo.config.required&&e.isNotRequired||e.objInfo.config.addShow?e._e():i("v-uni-view",{staticClass:"fllow_form"},[i("v-uni-view",[i("v-uni-text",{class:1==e.objInfo.config.required?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.objInfo.config.label))],1),e.isEdit?i("v-uni-view",{staticClass:"form_right",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.show=!0}}},[i("v-uni-view",{class:e.objInfo.value?"valueActive":""},[e._v(e._s(e.isEdit||e.objInfo.value?e.objInfo.value?e.objInfo.value:e.objInfo.config.placeholder:""))]),i("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1):i("v-uni-view",{staticClass:"form_right"},[i("v-uni-view",{class:e.objInfo.value?"valueActive":""},[e._v(e._s(e.isEdit||e.objInfo.value?e.objInfo.value?e.objInfo.value:e.objInfo.config.placeholder:""))]),i("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1)],1),"DatePicker"!=e.objInfo.component||1!=e.objInfo.config.required&&e.isNotRequired||e.objInfo.config.addShow?e._e():i("v-uni-view",{staticClass:"fllow_form"},[i("v-uni-view",[i("v-uni-text",{class:1==e.objInfo.config.required?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.objInfo.config.label))],1),i("v-uni-picker",{attrs:{mode:"date",disabled:!e.isEdit},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeDate.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"form_right"},[i("v-uni-view",{class:e.objInfo.value?"valueActive":""},[e._v(e._s(e.isEdit||e.objInfo.value?e.objInfo.value?e.objInfo.value:e.objInfo.config.placeholder:""))]),i("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1)],1)],1),"uploadImage"!=e.objInfo.component||!e.objInfo.config.required&&e.isNotRequired||e.objInfo.config.addShow?e._e():i("upload-image",{attrs:{flag:e.objInfo.config.required,imgList:e.objInfo.value?e.objInfo.value:[],title:e.objInfo.config.label,single:e.objInfo.config.maxnum,isEdit:e.isEdit,istype:e.istype},on:{uploadImg:function(t){arguments[0]=t=e.$handleEvent(t),e.uploadImg.apply(void 0,arguments)},delImg:function(t){arguments[0]=t=e.$handleEvent(t),e.delImg.apply(void 0,arguments)}}}),"uploadFile"!=e.objInfo.component||!e.objInfo.config.required&&e.isNotRequired||e.objInfo.config.addShow?e._e():i("upload-file",{attrs:{title:e.objInfo.config.label,flag:e.objInfo.config.required,fileList:e.objInfo.value?e.objInfo.value:[],isEdit:e.isEdit},on:{uploadFile:function(t){arguments[0]=t=e.$handleEvent(t),e.uploadFile.apply(void 0,arguments)},delFile:function(t){arguments[0]=t=e.$handleEvent(t),e.delFile.apply(void 0,arguments)}}}),"select"==e.objInfo.component?i("tki-tree",{ref:"tkitree",attrs:{range:e.objInfo.config.content,multiple:e.objInfo.config.multiple,rangeKey:"label",idKey:"nodeKey",confirmColor:"#008EFF"},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.selectTree.apply(void 0,arguments)}}}):e._e(),i("u-select",{attrs:{mode:"mutil-column-auto","value-name":"code","label-name":"name","child-name":"children",list:e.addressList},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.confirm.apply(void 0,arguments)}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}})],1)},a=[]},"06ea":function(e,t,i){var n=i("883d").default,o=i("4db6").default;i("aa9c"),i("e838"),i("7a76"),i("c9b5"),i("8f71"),i("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",c={location2query:function(e){if("string"==typeof e)return e;for(var t="",i=0;i<e.length;i++){var n=e[i];t&&(t+=";"),n.location&&(t=t+n.location.lat+","+n.location.lng),n.latitude&&n.longitude&&(t=t+n.latitude+","+n.longitude)}return t},rad:function(e){return e*Math.PI/180},getEndLocation:function(e){for(var t=e.split(";"),i=[],n=0;n<t.length;n++)i.push({lat:parseFloat(t[n].split(",")[0]),lng:parseFloat(t[n].split(",")[1])});return i},getDistance:function(e,t,i,n){var o=this.rad(e),a=this.rad(i),s=o-a,r=this.rad(t)-this.rad(n),c=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 c*=6378136.49,c=Math.round(1e4*c)/1e4,parseFloat(c.toFixed(0))},getWXLocation:function(e,t,i){wx.getLocation({type:"gcj02",success:e,fail:t,complete:i})},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 i=this.buildErrorConfig(a.PARAM_ERR,a.PARAM_ERR_MSG+t+"参数格式有误");return e.fail(i),e.complete(i),!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 i=this.buildErrorConfig(a.PARAM_ERR,a.PARAM_ERR_MSG+" location参数格式有误");return e.fail(i),e.complete(i),!1}return!0},buildErrorConfig:function(e,t){return{status:e,message:t}},handleData:function(e,t,i){if("search"===i){for(var n=t.data,o=[],a=0;a<n.length;a++)o.push({id:n[a].id||null,title:n[a].title||null,latitude:n[a].location&&n[a].location.lat||null,longitude:n[a].location&&n[a].location.lng||null,address:n[a].address||null,category:n[a].category||null,tel:n[a].tel||null,adcode:n[a].ad_info&&n[a].ad_info.adcode||null,city:n[a].ad_info&&n[a].ad_info.city||null,district:n[a].ad_info&&n[a].ad_info.district||null,province:n[a].ad_info&&n[a].ad_info.province||null});e.success(t,{searchResult:n,searchSimplify:o})}else if("suggest"===i){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"===i){var c=t.result,l={address:c.address||null,latitude:c.location&&c.location.lat||null,longitude:c.location&&c.location.lng||null,adcode:c.ad_info&&c.ad_info.adcode||null,city:c.address_component&&c.address_component.city||null,district:c.address_component&&c.address_component.district||null,nation:c.address_component&&c.address_component.nation||null,province:c.address_component&&c.address_component.province||null,street:c.address_component&&c.address_component.street||null,street_number:c.address_component&&c.address_component.street_number||null,recommend:c.formatted_addresses&&c.formatted_addresses.recommend||null,rough:c.formatted_addresses&&c.formatted_addresses.rough||null};if(c.pois){var u=c.pois,d=[];for(a=0;a<u.length;a++)d.push({id:u[a].id||null,title:u[a].title||null,latitude:u[a].location&&u[a].location.lat||null,longitude:u[a].location&&u[a].location.lng||null,address:u[a].address||null,category:u[a].category||null,adcode:u[a].ad_info&&u[a].ad_info.adcode||null,city:u[a].ad_info&&u[a].ad_info.city||null,district:u[a].ad_info&&u[a].ad_info.district||null,province:u[a].ad_info&&u[a].ad_info.province||null});e.success(t,{reverseGeocoderResult:c,reverseGeocoderSimplify:l,pois:u,poisSimplify:d})}else e.success(t,{reverseGeocoderResult:c,reverseGeocoderSimplify:l})}else if("geocoder"===i){var f=t.result,v={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:v})}else if("getCityList"===i){var m=t.result[0],g=t.result[1],p=t.result[2];e.success(t,{provinceResult:m,cityResult:g,districtResult:p})}else if("getDistrictByCityId"===i){var h=t.result[0];e.success(t,h)}else if("calculateDistance"===i){var b=t.result.elements,_=[];for(a=0;a<b.length;a++)_.push(b[a].distance);e.success(t,{calculateDistanceResult:b,distance:_})}else e.success(t)},buildWxRequestConfig:function(e,t,i){var n=this;return t.header={"content-type":"application/json"},t.method="GET",t.success=function(t){var o=t.data;0===o.status?n.handleData(e,o,i):e.fail(o)},t.fail=function(t){t.statusCode=a.WX_ERR_CODE,e.fail(n.buildErrorConfig(a.WX_ERR_CODE,t.errMsg))},t.complete=function(t){var i=+t.statusCode;switch(i){case a.WX_ERR_CODE:e.complete(n.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(n.buildErrorConfig(o.status,o.message));break;default:e.complete(n.buildErrorConfig(a.SYSTEM_ERR,a.SYSTEM_ERR_MSG))}},t},locationProcess:function(e,t,i,n){var o=this;if(i=i||function(t){t.statusCode=a.WX_ERR_CODE,e.fail(o.buildErrorConfig(a.WX_ERR_CODE,t.errMsg))},n=n||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=c.getLocationParam(e.location);t(s)}}else o.getWXLocation(t,i,n)}},l=function(){"use strict";function e(t){if(n(this,e),!t.key)throw Error("key值不能为空");this.key=t.key}return o(e,[{key:"search",value:function(e){if(e=e||{},c.polyfillParam(e),c.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 i=e.distance||"1000",n=e.auto_extend||1,o=null,a=null;e.region&&(o=e.region),e.rectangle&&(a=e.rectangle);c.locationProcess(e,(function(s){t.boundary=o&&!a?"region("+o+","+n+","+s.latitude+","+s.longitude+")":a&&!o?"rectangle("+a+")":"nearby("+s.latitude+","+s.longitude+","+i+","+n+")",wx.request(c.buildWxRequestConfig(e,{url:"https://apis.map.qq.com/ws/place/v1/search",data:t},"search"))}))}}},{key:"getSuggestion",value:function(e){if(e=e||{},c.polyfillParam(e),c.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){c.locationProcess(e,(function(i){t.location=i.latitude+","+i.longitude,wx.request(c.buildWxRequestConfig(e,{url:r,data:t},"suggest"))}))}else wx.request(c.buildWxRequestConfig(e,{url:r,data:t},"suggest"))}}},{key:"reverseGeocoder",value:function(e){e=e||{},c.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);c.locationProcess(e,(function(i){t.location=i.latitude+","+i.longitude,wx.request(c.buildWxRequestConfig(e,{url:"https://apis.map.qq.com/ws/geocoder/v1/",data:t},"reverseGeocoder"))}))}},{key:"geocoder",value:function(e){if(e=e||{},c.polyfillParam(e),!c.checkParamKeyEmpty(e,"address")){var t={address:e.address,output:"json",key:this.key};e.region&&(t.region=e.region),wx.request(c.buildWxRequestConfig(e,{url:"https://apis.map.qq.com/ws/geocoder/v1/",data:t},"geocoder"))}}},{key:"getCityList",value:function(e){e=e||{},c.polyfillParam(e);var t={output:"json",key:this.key};wx.request(c.buildWxRequestConfig(e,{url:"https://apis.map.qq.com/ws/district/v1/list",data:t},"getCityList"))}},{key:"getDistrictByCityId",value:function(e){if(e=e||{},c.polyfillParam(e),!c.checkParamKeyEmpty(e,"id")){var t={id:e.id||"",output:"json",key:this.key};wx.request(c.buildWxRequestConfig(e,{url:"https://apis.map.qq.com/ws/district/v1/getchildren",data:t},"getDistrictByCityId"))}}},{key:"calculateDistance",value:function(e){if(e=e||{},c.polyfillParam(e),!c.checkParamKeyEmpty(e,"to")){var t={mode:e.mode||"walking",to:c.location2query(e.to),output:"json",key:this.key};if(e.from&&(e.location=e.from),"straight"==t.mode){var i=function(i){for(var n=c.getEndLocation(t.to),o={message:"query ok",result:{elements:[]},status:0},a=0;a<n.length;a++)o.result.elements.push({distance:c.getDistance(i.latitude,i.longitude,n[a].lat,n[a].lng),duration:0,from:{lat:i.latitude,lng:i.longitude},to:{lat:n[a].lat,lng:n[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})};c.locationProcess(e,i)}else{i=function(i){t.from=i.latitude+","+i.longitude,wx.request(c.buildWxRequestConfig(e,{url:"https://apis.map.qq.com/ws/distance/v1/",data:t},"calculateDistance"))};c.locationProcess(e,i)}}}}]),e}();e.exports=l},"0e34":function(e,t,i){var n=i("216c");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=i("967d").default;o("b2a168fa",n,!0,{sourceMap:!1,shadowMode:!1})},1392:function(e,t,i){var n=i("c86c");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.popup_title[data-v-8aa32ac2]{text-align:center;font-size:%?34?%;color:#333;padding:%?24?%}.searbox[data-v-8aa32ac2]{width:%?690?%;height:%?60?%;margin:0 %?24?% %?15?%;border-radius:%?30?%;padding:0 %?24?%;display:flex;justify-content:flex-start;align-items:center;background:#f5f5f5}.searbox .searimg[data-v-8aa32ac2]{width:%?50?%;height:%?50?%;margin-right:%?10?%}.searbox .li_box[data-v-8aa32ac2]{width:%?630?%}.scrollbox[data-v-8aa32ac2]{width:100%;height:%?600?%;background:#f5f5f5}.scrollbox .liwarp[data-v-8aa32ac2]{width:%?702?%;padding:%?20?% %?30?%;margin:%?20?% auto;background:#fff;border-radius:%?10?%;display:flex;justify-content:space-between;align-items:center}.scrollbox .liwarp .warpleft[data-v-8aa32ac2]{flex:1;display:flex;justify-content:flex-start;align-items:center}.scrollbox .liwarp .warpleft .headerimg[data-v-8aa32ac2]{width:%?50?%;height:%?50?%;border-radius:50%;margin-right:%?15?%}.scrollbox .liwarp .warpleft .name[data-v-8aa32ac2]{font-size:%?24?%;color:#333}.scrollbox .liwarp .warpleft .number[data-v-8aa32ac2]{font-size:%?24?%;color:#999;margin:%?15?% 0}.scrollbox .liwarp .warpleft .guishu[data-v-8aa32ac2]{font-size:%?24?%;color:#666}.btnlist[data-v-8aa32ac2]{width:%?750?%;display:flex;justify-content:space-around;padding:%?30?% 0;border-top:%?1?% solid #f5f5f5}.btnlist .btn[data-v-8aa32ac2]{width:%?200?%;height:%?60?%;border-radius:%?30?%;font-size:%?24?%;color:#fff;text-align:center;line-height:%?60?%}.btnlist .firbtn[data-v-8aa32ac2]{background:#14c2c1}.btnlist .secbtn[data-v-8aa32ac2]{background:#ff7800}',""]),e.exports=t},1723:function(e,t,i){"use strict";var n=i("e5da"),o=i.n(n);o.a},"17e0":function(e,t,i){"use strict";var n=i("0e34"),o=i.n(n);o.a},"1c36":function(e,t,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("64aa"),i("bf0f"),i("2797"),i("aa9c"),i("5ef2"),i("4626"),i("5ac7"),i("dd2b");var o=i("2632"),a=n(i("6f45")),s=n(i("52c1")),r=n(i("e2dc")),c=i("d41c"),l={props:{objInfo:{type:Object,default:{}},isEdit:{type:Boolean,default:!0},height:{type:Number,default:300},autoHeight:{type:Boolean,default:!1},index:{type:Number,default:null},isNotRequired:{type:Boolean,default:!1},istype:{type:String,default:"all"}},components:{tkiTree:a.default,uploadImage:s.default,uploadFile:r.default},data:function(){return{dateTimeArray:[],dateArr:[],dateTime:[],addressList:[],show:!1}},computed:{},watch:{},created:function(){"TimePicker"==this.objInfo.component&&this.initTime(),"Cascader"==this.objInfo.component&&(this.addressList=c.citys)},onShow:function(){},methods:{changeInput:function(e){var t=this.objInfo.id,i=e.detail.value;this.$emit("changeData",t,i,this.objInfo)},changeSelect:function(){this.isEdit&&this.$refs.tkitree._show()},selectTree:function(e){console.log(e,"选择");var t=this.objInfo.id;if(e.length>0){console.log("123456");var i=[];e.forEach((function(e){i.push(e.label)})),this.$emit("changeData",t,i.join(","),this.objInfo)}else this.$emit("changeData",t,"",this.objInfo)},changeRate:function(e){var t=e,i=this.objInfo.id;this.$emit("changeData",i,t,this.objInfo)},changeTextarea:function(e){var t=this.objInfo.id,i=e.detail.value;this.$emit("changeData",t,i,this.objInfo)},changeRadio:function(e){var t=e.detail.value,i=this.objInfo.id;this.$emit("changeData",i,t,this.objInfo)},changeCheckbox:function(e){var t=this.objInfo.id,i=e.detail.value;this.$emit("changeData",t,i.join(","),this.objInfo)},changeAddress:function(e){var t=e.detail.value[0];if(-1!=t.indexOf("市")){var i=t.indexOf("市");t=t.substring(0,i)}var n=t+"/"+e.detail.value[1]+"/"+e.detail.value[2],o=this.objInfo.id;this.$emit("changeData",o,n,this.objInfo)},confirm:function(e){var t=e[0].label+e[1].label+e[2].label,i=this.objInfo.id;this.$emit("changeData",i,t,this.objInfo)},changeDate:function(e){var t=e.detail.value,i=this.objInfo.id;this.$emit("changeData",i,t,this.objInfo)},withData:function(e){return e<10?"0"+e:""+e},initTime:function(){var e=(0,o.dateTimePicker)();e.dateTimeArray.pop(),e.dateTime.pop(),e.dateArray.pop();this.dateTimeArray=e.dateTimeArray,this.dateArr=e.dateArray,this.dateTime=e.dateTime},changeColumn:function(e){var t=e.detail.column;e.detail.value;if(1==t){var i=(0,o.dateTimePicker)();i.dateTimeArray.pop(),i.dateTime.pop(),i.dateArray.pop();this.dateTimeArray=i.dateTimeArray,this.dateArr=i.dateArray,this.dateTime=i.dateTime}},changeTime:function(e){var t=e.detail.value;if(t.includes(-1))uni.showToast({title:"请选择正确的时间",icon:"none"});else{var i=this.handleTime(t),n=this.objInfo.id;this.$emit("changeData",n,i,this.objInfo,this.index)}},changeAlipayTime:function(e){var t=this.objInfo.id;this.$emit("changeData",t,e.detail.value,this.objInfo)},handleTime:function(e){var t=this.dateArr[0][e[0]],i=this.dateArr[1][e[1]],n=this.dateArr[2][e[2]],o=this.dateArr[3][e[3]],a=this.dateArr[4][e[4]],s=t+"-"+i+"-"+n+" "+o+":"+a;return s},uploadImg:function(e){var t=this.objInfo.id,i=this.objInfo.value?this.objInfo.value:[];i.push(e),this.$emit("changeData",t,i,this.objInfo)},delImg:function(e){var t=this.objInfo.id,i=this.objInfo.value;i.splice(e,1),this.$emit("changeData",t,i,this.objInfo)},uploadFile:function(e){var t=this.objInfo.id,i=this.objInfo.value?this.objInfo.value:[];i.push(e),this.$emit("changeData",t,i,this.objInfo)},delFile:function(e){var t=this.objInfo.id,i=this.objInfo.value;i.splice(e,1),this.$emit("changeData",t,i,this.objInfo)}}};t.default=l},"216c":function(e,t,i){var n=i("c86c");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.doc_item[data-v-fd42ce0e]{display:flex;justify-content:space-between;align-items:center;padding:%?24?% %?35?%;background:#fff;border-bottom:%?1?% solid #ededed}.doc_item .remarkimg[data-v-fd42ce0e]{width:%?31?%;height:%?33?%;margin-right:%?15?%}.doc_item .deleimg[data-v-fd42ce0e]{width:%?44?%;height:%?44?%}.doc_item .doc_name[data-v-fd42ce0e]{width:%?575?%;font-size:%?24?%;color:#333;overflow:hidden}.inp_warp[data-v-fd42ce0e]{padding:%?30?%;background:#fff;display:flex;justify-content:space-between;align-items:center;border-bottom:%?1?% solid #ededed}.inp_warp .inp_title[data-v-fd42ce0e]{font-size:%?32?%;color:#999}.inp_warp .form_right[data-v-fd42ce0e]{display:flex;justify-content:flex-end;align-items:center;color:#999;min-width:%?450?%;text-align:right}.inp_warp .form_right uni-image[data-v-fd42ce0e]{width:%?40?%;height:%?40?%;margin-left:%?24?%}.inp_warp .form_right .rightinput[data-v-fd42ce0e]{width:100%;text-align:right}.inp_warp .add_in[data-v-fd42ce0e]{display:flex;justify-content:flex-end;align-items:center;font-size:%?26?%;color:#ffa205}.inp_warp .add_in .icon-jiahaocu[data-v-fd42ce0e]{font-size:%?28?%;color:#ffa205;margin-right:%?5?%}',""]),e.exports=t},2935:function(e,t,i){"use strict";i.r(t);var n=i("e60a"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(a);t["default"]=o.a},2947:function(e,t,i){var n=i("2b72");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=i("967d").default;o("18c03769",n,!0,{sourceMap:!1,shadowMode:!1})},"2b72":function(e,t,i){var n=i("c86c");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.fllow_form[data-v-8d682e7c]{display:flex;justify-content:space-between;align-items:center;background-color:#fff;border-bottom:%?1?% solid #eaeaea;padding:%?30?% %?20?%;color:#999;font-size:%?32?%}.fllow_form[data-v-8d682e7c] :first-child{flex-shrink:0;font-weight:%?32?%}.fllow_form .form_right[data-v-8d682e7c]{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;color:#999;text-align:right;font-weight:%?32?%}.fllow_form .theme[data-v-8d682e7c]{color:#5ca9fe}.fllow_form uni-text[data-v-8d682e7c]{margin-left:%?10?%}.fllow_form .form_input uni-input[data-v-8d682e7c]{text-align:right;margin-right:%?10?%}.fllow_area[data-v-8d682e7c]{background-color:#fff;padding:%?30?% %?20?%;padding-bottom:%?30?%;color:#999;font-size:%?32?%}.fllow_area .area_head[data-v-8d682e7c]{margin-bottom:%?24?%}.fllow_area uni-textarea[data-v-8d682e7c]{width:80%;height:%?300?%;padding:%?30?%;background:#f8f8f8;margin:0 auto}',""]),e.exports=t},"31bd":function(e,t,i){var n=i("c86c");t=n(!1),t.push([e.i,"uni-radio[data-v-8aa32ac2]{-webkit-transform:scale(.7);transform:scale(.7)}",""]),e.exports=t},3711:function(e,t,i){var n=i("7a60");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=i("967d").default;o("15389468",n,!0,{sourceMap:!1,shadowMode:!1})},3754:function(e,t,i){var n=i("c86c");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.valueActive[data-v-847d22a0]{color:#333}.mapbox[data-v-847d22a0]{width:%?750?%;height:%?400?%;overflow:hidden}.locainfo[data-v-847d22a0]{padding:%?20?%;display:flex;justify-content:space-between;align-items:center;background:#fff}.locainfo .localeft[data-v-847d22a0]{display:flex;justify-content:flex-start;align-items:center}.locainfo .localeft .dingwei[data-v-847d22a0]{width:%?44?%;height:%?44?%;margin-right:%?15?%}.locainfo .localeft .text[data-v-847d22a0]{font-size:%?26?%;color:#333}.locainfo .locaright uni-image[data-v-847d22a0]{width:%?46?%;height:%?46?%}.inp_warp[data-v-847d22a0]{padding:%?30?%;background:#fff;margin-top:%?20?%;display:flex;justify-content:space-between;align-items:center;border-bottom:%?1?% solid #ccc;margin-bottom:%?30?%;border-top:1px solid #ededed}.inp_warp .inp_title[data-v-847d22a0]{font-size:%?32?%;color:#999}.inp_warp .form_right[data-v-847d22a0]{display:flex;align-items:center;justify-content:flex-end;font-size:%?32?%;padding-right:%?30?%;text-align:right}.fllow_area[data-v-847d22a0]{background-color:#fff;padding:0 %?70?%;padding-bottom:%?30?%;color:#999}.fllow_area .area_head[data-v-847d22a0]{height:%?40?%;line-height:%?40?%;font-size:%?32?%;margin-bottom:%?24?%}.fllow_area .area_head uni-text[data-v-847d22a0]{color:red}.fllow_area uni-textarea[data-v-847d22a0]{width:%?600?%;height:%?250?%;padding:%?30?%;box-sizing:border-box;background:#f8f8f8;border-radius:%?15?%;margin:0 auto}.savebox[data-v-847d22a0]{display:flex;justify-content:center;align-items:center;position:fixed;left:0;bottom:0;width:%?750?%;height:calc(%?100?% + env(safe-area-inset-bottom) / 2);background:#fff;z-index:2;padding-bottom:calc(env(safe-area-inset-bottom) / 2)}.savebox .savebtn[data-v-847d22a0]{font-size:%?26?%;color:#fff;text-align:center;line-height:%?88?%;width:%?500?%;height:%?88?%;background:#008eff;border-radius:%?29?%}.imglist[data-v-847d22a0]{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-847d22a0]{width:%?160?%;height:%?160?%;margin-right:%?14?%;position:relative;margin-bottom:%?24?%;border:%?1?% solid #eaeaea}.imglist .imgbox .delimg[data-v-847d22a0]{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-847d22a0]{width:%?160?%;height:%?160?%}',""]),e.exports=t},"391e":function(e,t,i){"use strict";i("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.daibanKehuFollow=function(e){return(0,n.myRequest)("record/getcustomerList",e)},t.netAddComment=function(e){return(0,n.myRequest)("record/addComment",e)},t.netAddCost=function(e){return(0,n.myRequest)("consume/addConsume",e)},t.netAddFollowRecords=function(e){return(0,n.myRequest)("record/createRecord",e)},t.netAddLianxiren=function(e){return(0,n.myRequest)("contacts/addContacts",e)},t.netAddPayment=function(e){return(0,n.myRequest)("receivables/addReceivables",e)},t.netAddPlan=function(e){return(0,n.myRequest)("receivables_plan/addPlan",e)},t.netAddkehu=function(e){return(0,n.myRequest)("customer/addCustomer",e)},t.netCancelExamine=function(e){return(0,n.myRequest)("contract/cancel",e)},t.netCheckName=function(e){return(0,n.myRequest)("customer/selectName",e)},t.netConcatDetailInfo=function(e){return(0,n.myRequest)("contacts/getDetail",e)},t.netContact=function(e){return(0,n.myRequest)("contacts/getSelectList",e)},t.netContactFileList=function(e){return(0,n.myRequest)("contacts/getFilesList",e)},t.netContactList=function(e){return(0,n.myRequest)("contacts/getList",e)},t.netContinueIsFollow=function(e){return(0,n.myRequest)("record/record_add",e)},t.netContractDetail=function(e){return(0,n.myRequest)("contract/getDetail",e)},t.netContractFileList=function(e){return(0,n.myRequest)("contract/getFilesList",e)},t.netContractList=function(e){return(0,n.myRequest)("contract/getCustomerContacts",e)},t.netContractNum=function(){return(0,n.myRequest)("contract/getContractNumber")},t.netContractProduct=function(e){return(0,n.myRequest)("product/getSelectList",e)},t.netCostDetail=function(e){return(0,n.myRequest)("consume/getDetail",e)},t.netCostList=function(e){return(0,n.myRequest)("consume/getList",e)},t.netCreateContract=function(e){return(0,n.myRequest)("contract/addContract",e)},t.netCrmContractList=function(e){return(0,n.myRequest)("contract/getList",e)},t.netDelContact=function(e){return(0,n.myRequest)("contacts/delContacts",e)},t.netEditContactInfo=function(e){return(0,n.myRequest)("contacts/editContacts",e)},t.netEditContract=function(e){return(0,n.myRequest)("contract/editContract",e)},t.netEditCost=function(e){return(0,n.myRequest)("consume/editConsume",e)},t.netEditFileName=function(e){return(0,n.myRequest)("file/editName",e)},t.netEditKehu=function(e){return(0,n.myRequest)("customer/editCustomer",e)},t.netEditPaymentInfo=function(e){return(0,n.myRequest)("receivables/editReceivables",e)},t.netExamine=function(e){return(0,n.myRequest)("examine_record/examine",e)},t.netFollowRecordDetail=function(e){return(0,n.myRequest)("record/getRecordDetail",e)},t.netGetBriefdata=function(e){return(0,n.myRequest)("index/briefing",e)},t.netGetBumenList=function(e){return(0,n.myRequest)("achievement/getDepartmentList",e)},t.netGetCommentList=function(e){return(0,n.myRequest)("record/commentList",e)},t.netGetDefaultMoney=function(e){return(0,n.myRequest)("achievement/getAchievementDetail",e)},t.netGetDefaultSelfDetail=function(e){return(0,n.myRequest)("achievement/getMyAchievementDetail",e)},t.netGetDepTargetlist=function(e){return(0,n.myRequest)("achievement/getStaffList",e)},t.netGetGongsiList=function(e){return(0,n.myRequest)("achievement/getCompanyAchievement",e)},t.netGetOthersReceivable=function(){return(0,n.myRequest)("statistics/staffReceivablesStatistics")},t.netGetRecordDetail=function(e){return(0,n.myRequest)("achievement/getRecordsDetail",e)},t.netGetRecordList=function(e){return(0,n.myRequest)("achievement/editRecords",e)},t.netGetTargetSelect=function(){return(0,n.myRequest)("achievement/getDepartment")},t.netGetTealList=function(e){return(0,n.myRequest)("achievement/getTeamList",e)},t.netGetreceivableStaff=function(){return(0,n.myRequest)("statistics/receivablesStatistics")},t.netKehuDetail=function(e){return(0,n.myRequest)("customer/customerDetail",e)},t.netKehuFileList=function(e){return(0,n.myRequest)("customer/getFilesList",e)},t.netKehuFollow=function(e){return(0,n.myRequest)("record/getList",e)},t.netKehuList=function(e){return(0,n.myRequest)("customer/getList",e)},t.netKeyCollect=function(e){return(0,n.myRequest)("customer/collect",e)},t.netLianxiren=function(e){return(0,n.myRequest)("contacts/getSelectList",e)},t.netOperationList=function(e){return(0,n.myRequest)("operation/getList",e)},t.netPaymentApproval=function(e){return(0,n.myRequest)("examine_record/getList",e)},t.netPaymentCancel=function(e){return(0,n.myRequest)("receivables/cancel",e)},t.netPaymentDetail=function(e){return(0,n.myRequest)("receivables/getDetail",e)},t.netPaymentList=function(e){return(0,n.myRequest)("receivables/getList",e)},t.netPaymentNum=function(e){return(0,n.myRequest)("receivables_plan/getSelectList",e)},t.netPaymentNumber=function(){return(0,n.myRequest)("receivables/getReceivablesNumber")},t.netPlanListf=function(e){return(0,n.myRequest)("receivables_plan/getList",e)},t.netPrevCustomer=function(e){return(0,n.myRequest)("customer/getSelectList",e)},t.netProductClass=function(e){return(0,n.myRequest)("product/getProducttypeList",e)},t.netProductDetail=function(e){return(0,n.myRequest)("product/getProductDetail",e)},t.netQueryData=function(e){return(0,n.myRequest)("index/search",e)},t.netReceiveKehu=function(e){return(0,n.myRequest)("customer/receive",e)},t.netRemoveColect=function(e){return(0,n.myRequest)("customer/cancelCollect",e)},t.netRemoveSeas=function(e){return(0,n.myRequest)("customer/moveSeas",e)},t.netSearchStaffList=function(e){return(0,n.myRequest)("customer/getSearchStaffList",e)},t.netSelect=function(){return(0,n.myRequest)("common/selectOption")},t.netSelectContract=function(e){return(0,n.myRequest)("contract/getSelectList",e)},t.netSetMymubiao=function(e){return(0,n.myRequest)("achievement/staffEditAchievement",e)},t.netSetTargetMoney=function(e){return(0,n.myRequest)("achievement/addAchievement",e)},t.netStaffList=function(e){return(0,n.myRequest)("common/getSelectStaff",e)},t.netSubordList=function(e){return(0,n.myRequest)("customer/getLowerCustomer",e)},t.netTransKehu=function(e){return(0,n.myRequest)("customer/transfer",e)},t.netTurnoverList=function(e){return(0,n.myRequest)("index/contractRanding",e)};var n=i("3a07")},"39e5":function(e,t,i){"use strict";i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){return n}));var n={uniPopup:i("02f0").default},o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",[i("uni-popup",{ref:"popup",attrs:{type:"bottom","background-color":"#fff"},on:{touchmove:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t)}}},[i("v-uni-view",{staticClass:"popup_title"},[e._v("选择客户")]),i("v-uni-view",{staticClass:"searbox"},[i("v-uni-image",{staticClass:"searimg",attrs:{src:e.BASE_IMG_URL+"ss.png",mode:"scaleToFill"}}),i("v-uni-input",{staticClass:"li_box",class:e.keyword?"fontactive":"",attrs:{type:"text","placeholder-style":"color:#999;",placeholder:"客户名称"},on:{input:function(t){arguments[0]=t=e.$handleEvent(t),e.searchName.apply(void 0,arguments)}},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}})],1),i("v-uni-scroll-view",{staticClass:"scrollbox",attrs:{"scroll-y":!0,"lower-threshold":"30"},on:{scrolltolower:function(t){arguments[0]=t=e.$handleEvent(t),e.loadMoredata.apply(void 0,arguments)}}},[e._l(e.customerlist,(function(t,n){return i("v-uni-view",{key:n,staticClass:"liwarp",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.selectItem(t,n)}}},[i("v-uni-view",{staticClass:"warpleft"},[i("v-uni-view",{staticClass:"name"},[e._v("名称:"+e._s(t.name))])],1),i("v-uni-label",{staticClass:"radio"},[i("v-uni-radio",{attrs:{value:"r1",color:"#008EFF",checked:e.preseCustomerObj.id==t.id}})],1)],1)})),0==e.customerlist.length?i("v-uni-view",{staticClass:"noData"},[e._v("暂无更多")]):e._e()],2),i("v-uni-view",{staticClass:"btnlist",on:{click:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t)}}},[i("v-uni-view",{staticClass:"btn secbtn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.hideSelect.apply(void 0,arguments)}}},[e._v("取消")]),i("v-uni-view",{staticClass:"btn firbtn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.sureSelect.apply(void 0,arguments)}}},[e._v("确定")])],1)],1)],1)},a=[]},"4bca":function(e,t,i){"use strict";i.r(t);var n=i("eb54"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(a);t["default"]=o.a},"4db6":function(e,t,i){i("6a54");var n=i("8bcf");function o(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,n(o.key),o)}}e.exports=function(e,t,i){return t&&o(e.prototype,t),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports["default"]=e.exports},5144:function(e,t,i){"use strict";var n=i("985f"),o=i.n(n);o.a},"52c1":function(e,t,i){"use strict";i.r(t);var n=i("e2fa"),o=i("4bca");for(var a in o)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return o[e]}))}(a);i("604e");var s=i("828b"),r=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"cffaf83a",null,!1,n["a"],void 0);t["default"]=r.exports},"53f9":function(e,t,i){var n=i("1392");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=i("967d").default;o("03ee0026",n,!0,{sourceMap:!1,shadowMode:!1})},"56c9":function(e,t,i){i("9e15"),i("884b"),i("01a2"),i("e39c"),i("bf0f"),i("7a76"),i("c9b5"),i("64aa");var n=i("bdbb")["default"];e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var o=i.call(e,t||"default");if("object"!==n(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},5848:function(e,t,i){"use strict";i.r(t);var n=i("1c36"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(a);t["default"]=o.a},"5c92":function(e,t,i){"use strict";i.r(t);var n=i("39e5"),o=i("63e7");for(var a in o)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return o[e]}))}(a);i("5144"),i("dc690");var s=i("828b"),r=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"8aa32ac2",null,!1,n["a"],void 0);t["default"]=r.exports},"604e":function(e,t,i){"use strict";var n=i("c4e3"),o=i.n(n);o.a},"63e7":function(e,t,i){"use strict";i.r(t);var n=i("c7a9"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(a);t["default"]=o.a},"67f5":function(e,t,i){"use strict";var n=i("3711"),o=i.n(n);o.a},7450:function(e,t,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(i("9b1b"));i("bf0f"),i("2797"),i("c223");var a,s=i("e360"),r=i("af8c"),c=i("391e"),l=i("3a07"),u=n(i("9c8b")),d=n(i("5c92")),f={components:{formItem:u.default,selectCustomer:d.default},data:function(){return{noClick:!0,longitude:null,latitude:null,markers:[],address:"",kehuList:[],kehuIndex:null,kehuName:"",BASE_IMG_URL:l.BASE_IMG_URL,location:"",lng:"",lat:"",files:"",customer_id:"",defaultCustomer:!1,listForm:[],customerObj:{},mapKey:""}},onLoad:function(e){this.getKey(),e.customerid&&(this.customer_id=e.customerid,this.defaultCustomer=!0,this.getKehulist()),this.getForm()},methods:{getForm:function(){var e=this;(0,r.netSetForm)({type:"signin"}).then((function(t){t=t.data.data,t.forEach((function(e){e.value=e.value?e.value:""})),e.listForm=t}))},changeOtherData:function(e,t,i){var n=this,o=this.listForm;o.forEach((function(e,o){e.id==i.id&&(e.value=t,n.$set(n.listForm,o,e))}))},getKey:function(){var e=this;(0,s.netMapKey)().then((function(t){t.data.map_key?(e.mapKey=t.data.map_key,a=i("06ea"),new a({key:t.data.map_key}),e.getAddressinfo()):uni.showToast({title:"请在后台配置地图key",icon:"none"})}))},handleCustomer:function(){var e=this,t=this.customer_id,i=this.kehuList;i.forEach((function(i,n){i.id==t&&(e.customerObj=i)}))},getKehulist:function(){var e=this;(0,c.netPrevCustomer)({name:this.kehuName}).then((function(t){e.kehuList=t.data,e.defaultCustomer&&e.handleCustomer()}))},toSelectCustomer:function(){this.$refs.customerChild.init()},getCustomerinfo:function(e){this.customerObj=e},getAddressinfo:function(){var e=this;uni.getLocation({type:"gcj02",isHighAccuracy:!0,altitude:!0,success:function(t){e.longitude=t.longitude,e.latitude=t.latitude,e.markers=[{id:1,latitude:t.latitude,longitude:t.longitude,iconPath:l.BASE_IMG_URL+"weizhi.png",width:30,height:30}],e.$jsonp("https://apis.map.qq.com/ws/geocoder/v1",{key:e.mapKey,output:"jsonp",location:"".concat(t.latitude,",").concat(t.longitude),get_poi:"1"}).then((function(t){e.address=t.result.address_component.province+t.result.address_component.city+t.result.formatted_addresses.rough}))},fail:function(e){console.log(e,"错误")}})},toAdd:function(){var e=this.longitude,t=this.latitude,i=this.address;if(this.customerObj.id){var n=this.checkCommonForm(this.listForm);if(n){var a=(0,o.default)({location:i,lng:e,lat:t,customer_id:this.customerObj.id},n);(0,r.netAddSignin)(a).then((function(e){uni.showToast({title:e.msg,icon:"none"}),setTimeout((function(){uni.navigateBack({delta:1})}),2e3)}))}}else uni.showToast({title:"请选择拜访客户",icon:"none"})}}};t.default=f},"74d9":function(e,t,i){var n=i("3754");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=i("967d").default;o("e400a01e",n,!0,{sourceMap:!1,shadowMode:!1})},7532:function(e,t,i){"use strict";i.r(t);var n=i("c47f"),o=i("d27d");for(var a in o)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return o[e]}))}(a);i("1723"),i("f253");var s=i("828b"),r=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"847d22a0",null,!1,n["a"],void 0);t["default"]=r.exports},"7a60":function(e,t,i){var n=i("c86c");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.b_color[data-v-8d682e7c]{color:red}.bo_color[data-v-8d682e7c]{color:#fff}.valueActive[data-v-8d682e7c]{color:#333}.labellist[data-v-8d682e7c]{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap}.labellist .labelbox[data-v-8d682e7c]{display:flex;justify-content:flex-start;align-items:center}uni-radio[data-v-8d682e7c]{-webkit-transform:scale(.6);transform:scale(.6)}.sales_item[data-v-8d682e7c]{display:flex;justify-content:flex-start;padding-bottom:%?15?%;flex-wrap:wrap}.sales_item .checkbox[data-v-8d682e7c]{display:flex;justify-content:flex-start;margin-right:%?20?%;margin-bottom:%?20?%}.u-checkbox__icon[data-v-8d682e7c]{width:%?20?%;height:%?20?%}',""]),e.exports=t},"883d":function(e,t,i){i("7a76"),i("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,i){var n=i("bdbb")["default"],o=i("56c9");e.exports=function(e){var t=o(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports["default"]=e.exports},"8e90":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{},[i("v-uni-view",{staticClass:"inp_warp"},[i("v-uni-view",{staticClass:"inp_title key"},[i("v-uni-text",{class:e.flag?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.title)+":")],1),e.isEdit?i("v-uni-view",{staticClass:"form_right",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toUploadFile.apply(void 0,arguments)}}},[i("v-uni-view",[e._v("点击上传")]),i("v-uni-view",{staticClass:"iconfont icon-you"})],1):e._e()],1),e._l(e.fileList,(function(t,n){return i("v-uni-view",{key:n,staticClass:"doc_item"},[i("v-uni-image",{staticClass:"remarkimg",attrs:{src:e.BASE_IMG_URL+"/file-clip.png"}}),i("v-uni-view",{staticClass:"doc_name",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.toLookFile(t)}}},[e._v(e._s(t.name))]),e.isEdit?i("v-uni-image",{staticClass:"deleimg",attrs:{src:e.BASE_IMG_URL+"/file_del.png"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.delFile(n)}}}):e._e()],1)}))],2)},o=[]},"985f":function(e,t,i){var n=i("31bd");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=i("967d").default;o("5b2407fd",n,!0,{sourceMap:!1,shadowMode:!1})},"9c8b":function(e,t,i){"use strict";i.r(t);var n=i("0184"),o=i("5848");for(var a in o)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return o[e]}))}(a);i("67f5"),i("b3e2");var s=i("828b"),r=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"8d682e7c",null,!1,n["a"],void 0);t["default"]=r.exports},a1a9:function(e,t,i){var n=i("c86c");t=n(!1),t.push([e.i,"uni-radio[data-v-847d22a0]{-webkit-transform:scale(.6);transform:scale(.6)}",""]),e.exports=t},b3e2:function(e,t,i){"use strict";var n=i("2947"),o=i.n(n);o.a},c47f:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",[i("v-uni-view",{staticClass:"mapbox"},[i("v-uni-map",{staticStyle:{width:"750rpx",height:"400rpx"},attrs:{name:"",id:"mapself",latitude:e.latitude,longitude:e.longitude,markers:e.markers}})],1),i("v-uni-view",{staticClass:"position"},[i("v-uni-view",{staticClass:"locainfo"},[i("v-uni-view",{staticClass:"localeft"},[i("v-uni-image",{staticClass:"dingwei",attrs:{src:e.BASE_IMG_URL+"ydw.png",mode:"scaleToFill"}}),i("v-uni-view",{staticClass:"text"},[e._v(e._s(e.address))])],1)],1),i("v-uni-view",{staticStyle:{background:"#fff"}},[i("v-uni-view",{staticClass:"inp_warp"},[i("v-uni-view",{staticClass:"inp_title"},[e._v("拜访客户:")]),e.defaultCustomer?e._e():i("v-uni-view",{staticClass:"form_right",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toSelectCustomer.apply(void 0,arguments)}}},[i("v-uni-view",{class:e.customerObj.id?"valueActive":""},[e._v(e._s(e.customerObj.id?e.customerObj.name:"点击选择"))])],1),e.defaultCustomer?i("v-uni-view",{staticClass:"form_right"},[i("v-uni-view",{class:e.customerObj.id?"valueActive":""},[e._v(e._s(e.customerObj.id?e.customerObj.name:"点击选择"))])],1):e._e()],1),e._l(e.listForm,(function(t,n){return i("form-item",{key:n,attrs:{objInfo:t,istype:"camera"},on:{changeData:function(t){arguments[0]=t=e.$handleEvent(t),e.changeOtherData.apply(void 0,arguments)}}})}))],2),i("v-uni-view",{staticStyle:{height:"120rpx"}}),i("v-uni-view",{staticClass:"savebox"},[i("v-uni-view",{staticClass:"savebtn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.$noMultipleClicks(e.toAdd)}}},[e._v("保存")])],1)],1),i("select-customer",{ref:"customerChild",on:{getCustomerinfo:function(t){arguments[0]=t=e.$handleEvent(t),e.getCustomerinfo.apply(void 0,arguments)}}})],1)},o=[]},c4e3:function(e,t,i){var n=i("dd92");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=i("967d").default;o("8dc222c6",n,!0,{sourceMap:!1,shadowMode:!1})},c7a9:function(e,t,i){"use strict";i("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("c223");var n=i("391e"),o=i("3a07"),a={props:{},data:function(){return{keyword:"",customerlist:[],page:1,totalPage:1,preseCustomerObj:{},BASE_IMG_URL:o.BASE_IMG_URL}},methods:{init:function(){this.$refs.popup.open(),this.page=1,this.customerlist=[],this.getList()},getList:function(){var e=this,t={page:this.page,name:this.keyword};(0,n.netKehuList)(t).then((function(t){e.customerlist=e.customerlist.concat(t.data.data),e.totalPage=t.data.last_page}))},loadMoredata:function(){this.page>=this.totalPage||(this.page++,this.getList())},searchName:function(e){this.page=1,this.customerlist=[],this.getList()},selectItem:function(e,t){this.preseCustomerObj=e},closePopup:function(){this.$refs.popup.close()},sureSelect:function(){this.preseCustomerObj?(this.$refs.popup.close(),this.$emit("getCustomerinfo",this.preseCustomerObj)):this.$refs.popup.close()},hideSelect:function(){this.$refs.popup.close()}}};t.default=a},d27d:function(e,t,i){"use strict";i.r(t);var n=i("7450"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(a);t["default"]=o.a},dc690:function(e,t,i){"use strict";var n=i("53f9"),o=i.n(n);o.a},dd92:function(e,t,i){var n=i("c86c");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.b_color[data-v-cffaf83a]{color:red}.bo_color[data-v-cffaf83a]{color:#fff}.imglist[data-v-cffaf83a]{padding:%?24?% %?34?%;background:#fff;border-bottom:%?1?% solid #ededed;display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap}.imglist .imgbox[data-v-cffaf83a]{width:%?160?%;height:%?160?%;margin-right:%?14?%;position:relative;margin-bottom:%?24?%}.imglist .imgbox[data-v-cffaf83a]:nth-child(4n){margin-right:0}.imglist .imgbox .delimg[data-v-cffaf83a]{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_img[data-v-cffaf83a]{width:%?160?%;height:%?160?%}.imglist .imgbox_tow[data-v-cffaf83a]{width:%?75?%;height:%?75?%}.imglist .imgbox_tow .selfimg[data-v-cffaf83a]{width:%?75?%;height:%?75?%}.inp_warp[data-v-cffaf83a]{padding:%?30?%;background:#fff;display:flex;justify-content:space-between;align-items:center;border-bottom:%?1?% solid #ededed}.inp_warp .inp_title[data-v-cffaf83a]{font-size:%?32?%;color:#999}.inp_warp .form_right[data-v-cffaf83a]{display:flex;justify-content:flex-end;align-items:center;color:#999;min-width:%?450?%;text-align:right}',""]),e.exports=t},e2dc:function(e,t,i){"use strict";i.r(t);var n=i("8e90"),o=i("2935");for(var a in o)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return o[e]}))}(a);i("17e0");var s=i("828b"),r=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"fd42ce0e",null,!1,n["a"],void 0);t["default"]=r.exports},e2fa:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",[i("v-uni-view",{staticClass:"inp_warp"},[i("v-uni-view",{staticClass:"inp_title key"},[i("v-uni-text",{class:e.flag?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.title)+":")],1),e.isEdit?i("v-uni-view",{staticClass:"form_right"},[i("v-uni-view",[e._v("上传图片")]),i("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1):e._e()],1),i("v-uni-view",{staticClass:"imglist"},[e._l(e.imgList,(function(t,n){return i("v-uni-view",{key:n,staticClass:"imgbox"},[e.isEdit?i("v-uni-image",{staticClass:"delimg",attrs:{src:e.BASE_IMG_URL+"/close.png"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.delImg(n)}}}):e._e(),i("v-uni-image",{staticClass:"selfimg_img",attrs:{src:t.file_path},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toPriveImg(n)}}})],1)})),e.imgList.length<e.single&&e.isEdit?i("v-uni-view",{staticClass:"imgbox_tow",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.uploadFiles.apply(void 0,arguments)}}},[i("v-uni-image",{staticClass:"selfimg",attrs:{src:e.BASE_IMG_URL+"/addfile.png"}})],1):e._e()],2)],1)},o=[]},e5da:function(e,t,i){var n=i("a1a9");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=i("967d").default;o("3403dd4e",n,!0,{sourceMap:!1,shadowMode:!1})},e60a:function(e,t,i){"use strict";i("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i("3a07"),o=i("af8c"),a={props:{title:{type:String,default:"附件"},flag:{type:Boolean,default:!1},fileList:{type:Array,default:[]},isEdit:{type:Boolean,default:!0}},data:function(){return{BASE_IMG_URL:n.BASE_IMG_URL}},methods:{toUploadFile:function(){var e=this;wx.chooseMessageFile({count:1,success:function(t){var i=t.tempFiles[0];e.Upload(i.path,i.name)}})},Upload:function(e,t){var i=this;uni.uploadFile({url:o.uploadUrl,name:"file",header:{token:uni.getStorageSync("token")},filePath:e,formData:{name:t},success:function(e){var n=JSON.parse(e.data);if(1==n.code){var o=n.data;o.name=t,o.file_path=o.url,console.log(o,"上传文件"),i.$emit("uploadFile",o)}else uni.showToast({title:"上传失败",icon:"none"})},fail:function(e){console.log(e)}})},toLookFile:function(e){this.openCommonFile(e)},delFile:function(e,t){console.log("删除文件"),this.$emit("delFile",t)}}};t.default=a},eb54:function(e,t,i){"use strict";i("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("64aa"),i("bf0f"),i("2797"),i("18f7"),i("de6c"),i("dc89"),i("2425");var n=i("3a07"),o=i("af8c"),a={props:{imgList:{type:Array,default:[]},flag:{type:Boolean,default:!0},title:{type:String,default:"附件"},single:{type:Number,default:9},istype:{type:String,default:"all"},isEdit:{type:Boolean,default:!0}},data:function(){return{BASE_IMG_URL:n.BASE_IMG_URL}},methods:{toPriveImg:function(e){this.openCommonImg(this.imgList,e)},uploadFiles:function(){var e=this,t=[];"all"==this.istype?t=["album","camera"]:"album"==this.istype?t=["album"]:"camera"==this.istype&&(t=["camera"]),uni.chooseImage({count:this.single,sourceType:t,sizeType:["compressed"],success:function(t){console.log(t,"====");var i=t.tempFilePaths;i.forEach((function(t){e.imgList.length<e.single&&e.toUpload(t)}))}})},toUpload:function(e){var t=this;uni.uploadFile({url:o.uploadUrl,name:"file",header:{token:uni.getStorageSync("token")},filePath:e,success:function(e){var i=JSON.parse(e.data);if(1==i.code){var n={id:i.data.id,file_path:i.data.url};t.$emit("uploadImg",n)}else uni.showToast({title:"上传失败",icon:"none"})},fail:function(e){console.log(e)}})},delImg:function(e){this.$emit("delImg",e)},getImageInfo:function(e){return new Promise((function(t,i){uni.showLoading({title:"压缩中...",icon:"none"}),uni.getImageInfo({src:e,success:function(e){console.log("压缩前",e);var i=e.width,n=e.height,o=new Image;o.src=e.path;var a=document.createElement("canvas"),s=a.getContext("2d");a.width=i/2,a.height=n/2,console.log(o),s.drawImage(o,0,0,i/2,n/2),a.toBlob((function(e){var i=window.URL.createObjectURL(e);console.log("压缩后",i),t(i),uni.hideLoading()}))}})}))}}};t.default=a},f253:function(e,t,i){"use strict";var n=i("74d9"),o=i.n(n);o.a}}]);
|