硕顺crm后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
33 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-groupCompany-subsidiary-newSubsidiary-newSubsidiary"],{2909:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var i=s(n("6005")),a=s(n("db90")),o=s(n("06c5")),r=s(n("3427"));function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return(0,i.default)(e)||(0,a.default)(e)||(0,o.default)(e)||(0,r.default)()}},3035:function(e,t,n){"use strict";var i=n("b38d"),a=n.n(i);a.a},3427:function(e,t,n){"use strict";function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},"45c2":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var i={uActionSheet:n("6c2a").default},a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"create_customer"},[n("v-uni-view",{staticClass:"fllow_form"},[n("v-uni-input",{staticClass:"nameinput",attrs:{type:"text",placeholder:"输入客户名称","placeholder-style":"color:#999;font-size:32rpx;"},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}}),n("v-uni-view",{staticClass:"form_right theme"},[n("v-uni-image",{staticStyle:{margin:"0 15rpx 0 0"},attrs:{id:"img",src:e.BASE_IMG_URL+"chachong.png",mode:"scaleToFill"}}),n("v-uni-view",{staticStyle:{color:"#008EFF","font-size":"26rpx"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.checkName.apply(void 0,arguments)}}},[e._v("查重")])],1)],1),n("v-uni-view",{staticClass:"info_head"},[e._v("基础信息")]),n("v-uni-view",{staticClass:"fllow_form"},[n("v-uni-view",{staticStyle:{color:"#999","font-size":"32rpx"}},[e._v("上级公司")]),n("v-uni-picker",{attrs:{disabled:e.parentDisabled,value:e.parentIndex,range:e.plist},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeParent.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"form_right"},[n("v-uni-view",{class:e.parentName?"valueActive":""},[e._v(e._s(e.parentName?e.parentName:"点击选择"))]),n("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1)],1)],1),n("v-uni-view",{staticClass:"fllow_form",staticStyle:{color:"#999","font-size":"32rpx"}},[n("v-uni-view",[n("v-uni-text",[e._v("*")]),e._v("地址定位")],1),n("v-uni-view",{staticClass:"form_right",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.detailAddClick.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"location",class:e.address_dingwei?"valueActive":""},[e._v(e._s(e.address_dingwei?e.address_dingwei:"点击选择"))]),n("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1)],1),n("v-uni-view",{staticClass:"fllow_form",staticStyle:{color:"#999","font-size":"32rpx"}},[n("v-uni-view",[n("v-uni-text",[e._v("*")]),e._v("详细地址")],1),n("v-uni-view",{staticClass:"form_right"},[n("v-uni-input",{class:e.address_detail?"valueActive":"",attrs:{type:"text","placeholder-style":"font-size:30rpx;color: #999;",placeholder:"填写详细地址"},model:{value:e.address_detail,callback:function(t){e.address_detail=t},expression:"address_detail"}})],1)],1),e._l(e.listForm,(function(t,i){return n("form-item1",{key:i,attrs:{objInfo:t},on:{changeData:function(t){arguments[0]=t=e.$handleEvent(t),e.changeData.apply(void 0,arguments)}}})})),n("v-uni-view",{staticClass:"linktab"},[n("v-uni-view",{staticClass:"info_head"},[e._v("首联系人")]),n("v-uni-view",{staticClass:"link_right"},[n("v-uni-view",{staticClass:"linkbtn",class:1==e.countryType?"linkbtnactive":"",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.changeCountry(1)}}},[e._v("国内")]),n("v-uni-view",{staticClass:"linkbtn",class:2==e.countryType?"linkbtnactive":"",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.changeCountry(2)}}},[e._v("国外")])],1)],1),n("v-uni-view",e._l(e.firstContactForm,(function(t,i){return n("form-item1",{key:i,attrs:{objInfo:t},on:{changeData:function(t){arguments[0]=t=e.$handleEvent(t),e.changeContactData.apply(void 0,arguments)}}})})),1),n("v-uni-view",{staticClass:"info_head"},[e._v("跟进任务")]),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",[e._v(e._s(e.follow_type?e.follow_type:"点击选择"))]),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)],1),n("v-uni-view",{staticClass:"fllow_form"},[n("v-uni-view",[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),0!=e.imgList.length?n("v-uni-view",{staticClass:"imglist"},e._l(e.imgList,(function(t,i){return n("v-uni-view",{key:e.index,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.url,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",{attrs:{value:e.content,placeholder:"勤跟进,多签单","placeholder-style":"color:#999"},on:{input:function(t){arguments[0]=t=e.$handleEvent(t),e.changeContent.apply(void 0,arguments)}}})],1),n("v-uni-view",{staticClass:"affiliation"},[n("v-uni-view",{staticClass:"aff_head"},[e._v("提醒谁看")]),n("v-uni-view",{staticClass:"aff_con"},[e._l(e.remindPeople,(function(t,i){return n("v-uni-view",{key:i,staticClass:"aff_item affbox"},[t.isDel?n("v-uni-image",{staticClass:"delremind",attrs:{src:e.BASE_IMG_URL+"close.png",mode:"scaleToFill"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.delRemind(i)}}}):e._e(),n("v-uni-image",{attrs:{src:t.img?t.img:e.BASE_IMG_URL+"headImg.png",mode:"scaleToFill"}}),n("v-uni-view",[e._v(e._s(t.name))])],1)})),n("v-uni-view",{staticClass:"aff_last",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.moreClick.apply(void 0,arguments)}}},[n("v-uni-image",{attrs:{src:e.BASE_IMG_URL+"morebtn.png",mode:"scaleToFill"}})],1)],2)],1),n("v-uni-view",{staticClass:"btn_g bg-blue button-hover round",attrs:{id:"btn"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.$noMultipleClicks(e.subSave)}}},[e._v("保存")]),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"}})],2)},o=[]},4935:function(e,t,n){"use strict";var i=n("e96e"),a=n.n(i);a.a},"4d37":function(e,t,n){"use strict";n.r(t);var i=n("e584"),a=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},"553d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.netKehuList=a,t.netAddkehu=o,t.netSelect=r,t.netSearchStaffList=s,t.netPrevCustomer=c,t.netLianxiren=l,t.netSelectContract=u,t.netCheckName=d,t.netAddFollowRecords=f,t.netContinueIsFollow=m,t.netFollowRecordDetail=v,t.netAddComment=h,t.netGetCommentList=p,t.netStaffList=g,t.netKehuDetail=_,t.netKehuFollow=y,t.daibanKehuFollow=b,t.netAddLianxiren=w,t.netCreateContract=C,t.netContractNum=R,t.netRemoveSeas=x,t.netReceiveKehu=k,t.netTransKehu=L,t.netKeyCollect=q,t.netRemoveColect=S,t.netEditKehu=T,t.netContactList=F,t.netContact=A,t.netContractList=E,t.netKehuFileList=P,t.netConcatDetailInfo=D,t.netContactFileList=I,t.netOperationList=M,t.netEditContactInfo=$,t.netDelContact=z,t.netEditFileName=j,t.netContractDetail=G,t.netPlanListf=B,t.netAddPlan=N,t.netPaymentNum=O,t.netAddPayment=U,t.netPaymentList=K,t.netPaymentNumber=J,t.netPaymentDetail=W,t.netPaymentApproval=Y,t.netContractFileList=Z,t.netExamine=Q,t.netCancelExamine=H,t.netEditContract=V,t.netPaymentCancel=X,t.netEditPaymentInfo=ee,t.netCrmContractList=te,t.netContractProduct=ne,t.netProductClass=ie,t.netProductDetail=ae,t.netAddCost=oe,t.netCostList=re,t.netCostDetail=se,t.netEditCost=ce,t.netSubordList=le,t.netGetBriefdata=ue,t.netTurnoverList=de,t.netGetreceivableStaff=fe,t.netGetOthersReceivable=me,t.netGetTargetSelect=ve,t.netGetDepTargetlist=he,t.netGetDefaultSelfDetail=pe,t.netSetMymubiao=ge,t.netGetRecordList=_e,t.netGetRecordDetail=ye,t.netGetBumenList=be,t.netGetTealList=we,t.netGetGongsiList=Ce,t.netSetTargetMoney=Re,t.netGetDefaultMoney=xe,t.netQueryData=ke;var i=n("2345");function a(e){return(0,i.myRequest)("customer/getList",e)}function o(e){return(0,i.myRequest)("customer/addCustomer",e)}function r(){return(0,i.myRequest)("common/selectOption")}function s(e){return(0,i.myRequest)("customer/getSearchStaffList",e)}function c(e){return(0,i.myRequest)("customer/getSelectList",e)}function l(e){return(0,i.myRequest)("contacts/getSelectList",e)}function u(e){return(0,i.myRequest)("contract/getSelectList",e)}function d(e){return(0,i.myRequest)("customer/selectName",e)}function f(e){return(0,i.myRequest)("record/createRecord",e)}function m(e){return(0,i.myRequest)("record/record_add",e)}function v(e){return(0,i.myRequest)("record/getRecordDetail",e)}function h(e){return(0,i.myRequest)("record/addComment",e)}function p(e){return(0,i.myRequest)("record/commentList",e)}function g(e){return(0,i.myRequest)("common/getSelectStaff",e)}function _(e){return(0,i.myRequest)("customer/customerDetail",e)}function y(e){return(0,i.myRequest)("record/getList",e)}function b(e){return(0,i.myRequest)("record/getcustomerList",e)}function w(e){return(0,i.myRequest)("contacts/addContacts",e)}function C(e){return(0,i.myRequest)("contract/addContract",e)}function R(){return(0,i.myRequest)("contract/getContractNumber")}function x(e){return(0,i.myRequest)("customer/moveSeas",e)}function k(e){return(0,i.myRequest)("customer/receive",e)}function L(e){return(0,i.myRequest)("customer/transfer",e)}function q(e){return(0,i.myRequest)("customer/collect",e)}function S(e){return(0,i.myRequest)("customer/cancelCollect",e)}function T(e){return(0,i.myRequest)("customer/editCustomer",e)}function F(e){return(0,i.myRequest)("contacts/getList",e)}function A(e){return(0,i.myRequest)("contacts/getSelectList",e)}function E(e){return(0,i.myRequest)("contract/getCustomerContacts",e)}function P(e){return(0,i.myRequest)("customer/getFilesList",e)}function D(e){return(0,i.myRequest)("contacts/getDetail",e)}function I(e){return(0,i.myRequest)("contacts/getFilesList",e)}function M(e){return(0,i.myRequest)("operation/getList",e)}function $(e){return(0,i.myRequest)("contacts/editContacts",e)}function z(e){return(0,i.myRequest)("contacts/delContacts",e)}function j(e){return(0,i.myRequest)("file/editName",e)}function G(e){return(0,i.myRequest)("contract/getDetail",e)}function B(e){return(0,i.myRequest)("receivables_plan/getList",e)}function N(e){return(0,i.myRequest)("receivables_plan/addPlan",e)}function O(e){return(0,i.myRequest)("receivables_plan/getSelectList",e)}function U(e){return(0,i.myRequest)("receivables/addReceivables",e)}function K(e){return(0,i.myRequest)("receivables/getList",e)}function J(){return(0,i.myRequest)("receivables/getReceivablesNumber")}function W(e){return(0,i.myRequest)("receivables/getDetail",e)}function Y(e){return(0,i.myRequest)("examine_record/getList",e)}function Z(e){return(0,i.myRequest)("contract/getFilesList",e)}function Q(e){return(0,i.myRequest)("examine_record/examine",e)}function H(e){return(0,i.myRequest)("contract/cancel",e)}function V(e){return(0,i.myRequest)("contract/editContract",e)}function X(e){return(0,i.myRequest)("receivables/cancel",e)}function ee(e){return(0,i.myRequest)("receivables/editReceivables",e)}function te(e){return(0,i.myRequest)("contract/getList",e)}function ne(e){return(0,i.myRequest)("product/getSelectList",e)}function ie(e){return(0,i.myRequest)("product/getProducttypeList",e)}function ae(e){return(0,i.myRequest)("product/getProductDetail",e)}function oe(e){return(0,i.myRequest)("consume/addConsume",e)}function re(e){return(0,i.myRequest)("consume/getList",e)}function se(e){return(0,i.myRequest)("consume/getDetail",e)}function ce(e){return(0,i.myRequest)("consume/editConsume",e)}function le(e){return(0,i.myRequest)("customer/getLowerCustomer",e)}function ue(e){return(0,i.myRequest)("index/briefing",e)}function de(e){return(0,i.myRequest)("index/contractRanding",e)}function fe(){return(0,i.myRequest)("statistics/receivablesStatistics")}function me(){return(0,i.myRequest)("statistics/staffReceivablesStatistics")}function ve(){return(0,i.myRequest)("achievement/getDepartment")}function he(e){return(0,i.myRequest)("achievement/getStaffList",e)}function pe(e){return(0,i.myRequest)("achievement/getMyAchievementDetail",e)}function ge(e){return(0,i.myRequest)("achievement/staffEditAchievement",e)}function _e(e){return(0,i.myRequest)("achievement/editRecords",e)}function ye(e){return(0,i.myRequest)("achievement/getRecordsDetail",e)}function be(e){return(0,i.myRequest)("achievement/getDepartmentList",e)}function we(e){return(0,i.myRequest)("achievement/getTeamList",e)}function Ce(e){return(0,i.myRequest)("achievement/getCompanyAchievement",e)}function Re(e){return(0,i.myRequest)("achievement/addAchievement",e)}function xe(e){return(0,i.myRequest)("achievement/getAchievementDetail",e)}function ke(e){return(0,i.myRequest)("index/search",e)}},6005:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=a(n("6b75"));function a(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e))return(0,i.default)(e)}},6906:function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.u-tips[data-v-31525de6]{font-size:%?26?%;text-align:center;padding:%?34?% 0;line-height:1;color:#909399}.u-action-sheet-item[data-v-31525de6]{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-31525de6]{font-size:%?24?%;color:#909399;margin-top:%?20?%}.u-gab[data-v-31525de6]{height:%?12?%;background-color:#eaeaec}.u-actionsheet-cancel[data-v-31525de6]{color:#303133}',""]),e.exports=t},"6c2a":function(e,t,n){"use strict";n.r(t);var i=n("f036"),a=n("4d37");for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("3035");var r,s=n("f0c5"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"31525de6",null,!1,i["a"],r);t["default"]=c.exports},7502:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pageJumps=void 0;var i={methods:{selectMemberClick:function(){uni.navigateTo({url:"/pagesA/crm/selectMember/selectMember"})},foTimeClick:function(){uni.navigateTo({url:"/pagesA/crm/customerManagement/newFllow/selectTime/selectTime"})},followPeopleClick:function(){uni.navigateTo({url:"/pagesA/crm/customerManagement/newFllow/selectLinkman/selectLinkman"})},taskRemindClick:function(){uni.navigateTo({url:"/pagesA/crm/customerManagement/newFllow/taskManager/taskManager"})},remindWayClick:function(){uni.navigateTo({url:"/pagesA/crm/customerManagement/newFllow/remindWay/remindWay"})},selectDateClick:function(){uni.navigateTo({url:"/pagesA/crm/customerManagement/newFllow/selectTime/selectTime"})}}};t.pageJumps=i},"93b8":function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */#img[data-v-98b75c12]{float:left;margin-right:%?15?%}.linktab[data-v-98b75c12]{padding:%?0?% %?24?% %?20?% 0;display:flex;justify-content:space-between;align-items:center}.linktab .link_right[data-v-98b75c12]{display:flex;justify-content:flex-end;align-items:center;margin-top:%?15?%}.linktab .link_right .linkbtn[data-v-98b75c12]{margin-right:%?15?%;width:%?120?%;height:%?60?%;border-radius:%?45?%;font-size:%?24?%;color:#666;text-align:center;line-height:%?58?%;border:%?1?% solid #ddd}.linktab .link_right .linkbtnactive[data-v-98b75c12]{background:#008eff;border:%?1?% solid #008eff;color:#fff}.valueActive[data-v-98b75c12]{color:#333}.affiliation[data-v-98b75c12]{background-color:#fff;margin-bottom:%?20?%;padding-bottom:%?40?%}.affiliation .aff_head[data-v-98b75c12]{font-size:%?32?%;color:#999;height:%?100?%;line-height:%?100?%;padding-left:%?50?%}.affiliation .aff_con[data-v-98b75c12]{display:flex;text-align:center;flex-wrap:wrap}.affiliation .aff_con .aff_item[data-v-98b75c12]{width:%?100?%;margin-right:%?15?%;margin-bottom:%?15?%}.affiliation .aff_con .aff_item uni-image[data-v-98b75c12]{margin-bottom:%?15?%;width:%?60?%;height:%?60?%;border-radius:50%}.affiliation .aff_con .affbox[data-v-98b75c12]{position:relative}.affiliation .aff_con .affbox .delremind[data-v-98b75c12]{width:%?32?%;height:%?32?%;border-radius:50%;position:absolute;right:%?-16?%;top:%?-16?%;background:rgba(0,0,0,.5);z-index:2}.affiliation .aff_con .aff_last uni-image[data-v-98b75c12]{margin-bottom:%?15?%;width:%?48?%;height:%?48?%}.imglist[data-v-98b75c12]{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-98b75c12]{width:%?160?%;height:%?160?%;margin-right:%?14?%;position:relative;margin-bottom:%?24?%;border:%?1?% solid #eaeaea}.imglist .imgbox .delimg[data-v-98b75c12]{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-98b75c12]{width:%?160?%;height:%?160?%}.fllow_file_li[data-v-98b75c12]{padding:%?24?% %?34?%;background:#fff;border-bottom:%?1?% solid #eaeaea}.fllow_file_li .fil_li[data-v-98b75c12]{display:flex;justify-content:space-between;align-items:center;margin-bottom:%?14?%}.fllow_file_li .fil_li .fileimg[data-v-98b75c12]{width:%?20?%;height:%?20?%}.fllow_file_li .fil_li .filename[data-v-98b75c12]{font-size:%?24?%;color:#999}.fllow_file_li .fil_li .closeimg[data-v-98b75c12]{width:%?32?%;height:%?32?%}.create_customer[data-v-98b75c12]{font-size:%?28?%}.create_customer .info_head[data-v-98b75c12]{height:%?80?%;line-height:%?80?%;font-size:%?30?%;color:#999;padding-left:%?50?%}.create_customer .mar_top[data-v-98b75c12]{margin-top:%?30?%}.create_customer .fllow_form[data-v-98b75c12]{display:flex;justify-content:space-between;background-color:#fff;border-bottom:%?1?% solid #eaeaea;padding:%?30?% %?40?% %?30?% %?50?%;font-size:%?32?%;color:#999}.create_customer .fllow_form .nameinput[data-v-98b75c12]{width:%?500?%}.create_customer .fllow_form .form_right[data-v-98b75c12]{display:flex;color:#999;text-align:right}.create_customer .fllow_form .form_right .location[data-v-98b75c12]{width:%?300?%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.create_customer .fllow_form .form_right uni-image[data-v-98b75c12]{width:%?40?%;height:%?40?%;margin:%?28?% %?5?% 0 0}.create_customer .fllow_form .theme[data-v-98b75c12]{color:#5ca9fe}.create_customer .fllow_form uni-text[data-v-98b75c12]{color:red;margin-left:%?10?%}.create_customer .fllow_form .form_input uni-input[data-v-98b75c12]{width:%?300?%;text-align:right;height:%?100?%;line-height:%?100?%;text-align:right;margin-right:%?10?%}.create_customer .fllow_area[data-v-98b75c12]{background-color:#fff;padding:0 %?30?% 0 %?50?%;margin-bottom:%?30?%}.create_customer .fllow_area .area_head[data-v-98b75c12]{height:%?100?%;line-height:%?100?%;color:#999;font-size:%?32?%}.create_customer .fllow_area .area_head uni-text[data-v-98b75c12]{color:red}.create_customer .fllow_area uni-textarea[data-v-98b75c12]{margin:0 auto;width:95%;height:%?300?%}#btn[data-v-98b75c12]{width:%?500?%;height:%?88?%;background:#008eff;border-radius:%?29?%;font-size:%?34?%;color:#fff;line-height:%?88?%}',""]),e.exports=t},b38d:function(e,t,n){var i=n("6906");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("4f06").default;a("0a352b38",i,!0,{sourceMap:!1,shadowMode:!1})},d237:function(e,t,n){"use strict";n.r(t);var i=n("45c2"),a=n("eee4");for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("4935");var r,s=n("f0c5"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"98b75c12",null,!1,i["a"],r);t["default"]=c.exports},db90:function(e,t,n){"use strict";function i(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("d3b7"),n("3ca3"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},dd4e:function(e,t,n){"use strict";var i=n("4ea4");n("99af"),n("4160"),n("caad"),n("a434"),n("2532"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,o=i(n("ade3")),r=i(n("2909")),s=n("af19"),c=n("aa66"),l=i(n("ffdc")),u=n("f668"),d=n("7502"),f=n("553d"),m=n("2345"),v={mixins:[d.pageJumps],components:{formItem:l.default},data:function(){return{BASE_IMG_URL:m.BASE_IMG_URL,noClick:!0,name:"",subname:"",industry:"",level:"",source:"",follow:"",address_dingwei:"",address_detail:"",lng:"",lat:"",parent_id:"",parentList:[],plist:[],parentIndex:null,parentName:"",is_event:!0,event_start_time:"",event_title:"",remindtype:"",remindList:["准时提醒","5分钟前","15分钟前","30分钟前","一个小时前","两个小时前","一天前","两天前","一周前"],remindIndex:null,location:"",is_contacts:!0,is_record:1,followList:[],follow_type:null,followIndex:null,next_time:"",uploadShow:!1,uploadActions:[{id:1,text:"拍照",color:"#008EFF"},{id:2,text:"从相册中选择",color:"#008EFF"}],imgList:[],fileList:[],content:"",DefaultRemind:[],remindPeople:[],sourceList:[],sourceIndex:null,listForm:[],firstContactForm:[],dateTimeArray:[],dateArr:[],dateTime:[],countryType:1}},onLoad:function(e){this.parent_id=e.id,this.getSelectlist(),this.getPrevCoustomer(),this.listForm=[],this.firstContactForm=[],this.getForm(),this.getFirstContactform(),this.initTime()},onShow:function(){this.remindPeople=[],this.getDefaultRemind()},onUnload:function(){uni.removeStorageSync("remindlist")},methods:(a={moreClick:function(){uni.navigateTo({url:"/pagesA/crm/selectMember/selectMember"})},getDefaultRemind:function(){var e=this;(0,c.netStaffDefaultReviewer)({type:"record"}).then((function(t){t=t.data,t.forEach((function(e,t){e.isDel=!1})),e.DefaultRemind=t,e.remindPeople=e.$deWeight([].concat((0,r.default)(t),(0,r.default)(uni.getStorageSync("remindlist"))))}))},delRemind:function(e){this.remindPeople.splice(e,1),uni.setStorageSync("remindlist",this.remindPeople)},getForm:function(){var e=this;(0,c.netSetForm)({type:"customer"}).then((function(t){t=t.data.data,t.forEach((function(e,n){"name"==e.id&&t.splice(n,1),e.value=e.value?e.value:""})),e.listForm=t}))},changeData:function(e,t,n){var i=this,a=this.listForm;a.forEach((function(e,a){e.id==n.id&&(e.value=t,i.$set(i.listForm,a,e))}))},getFirstContactform:function(){var e=this;(0,c.netSetForm)({type:"contacts"}).then((function(t){t=t.data.data,t.forEach((function(e){e.value=e.value?e.value:""})),e.firstContactForm=t,e.changeCountry(e.countryType)}))},changeCountry:function(e){this.countryType=e;var t=this.firstContactForm;1==e?t.forEach((function(e,t){"mobile"==e.id&&(e.config.required=!0),"email"==e.id&&(e.config.required=!1)})):t.forEach((function(e,t){"mobile"==e.id&&(e.config.required=!0),"email"==e.id&&(e.config.required=!0)})),this.firstContactForm=t},changeContactData:function(e,t,n){var i=this,a=this.firstContactForm;a.forEach((function(e,a){e.id==n.id&&(e.value=t,i.$set(i.firstContactForm,a,e))}))},getPrevCoustomer:function(){var e=this;(0,f.netPrevCustomer)().then((function(t){e.parentList=t.data,e.handleData(t.data),e.parent_id?(e.handleParent(),e.parentDisabled=!0):e.parentDisabled=!1}))},handleData:function(e){var t=[];e.forEach((function(e){t.push(e.name)})),this.plist=t},handleParent:function(){var e=this,t=this.parent_id;this.parentList.forEach((function(n,i){n.id==t&&(e.parentIndex=i,e.parentName=n.name)}))},getSelectlist:function(){var e=this;(0,f.netSelect)().then((function(t){e.followList=t.data["跟进类型"],e.sourceList=t.data["客户来源"]}))},changeFollow:function(e){this.followIndex=e.detail.value,this.follow_type=this.followList[e.detail.value]},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]],a=this.dateArr[3][e[3]],o=this.dateArr[4][e[4]],r=t+"-"+n+"-"+i+" "+a+":"+o;return r},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){console.log(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,success:function(i){var a=JSON.parse(i.data);if(n.uploadShow=!1,1==a.code)if(1==t){var o={id:a.data.id,file_path:a.data.url};n.imgList.push(o)}else{var r={id:a.data.id,file_path:a.data.url};e=Object.assign({},e,r),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)},changeContent:function(e){this.content=e.detail.value},checkName:function(){var e=this.name;e?(0,f.netCheckName)({name:e}).then((function(e){uni.showToast({title:e.msg,icon:"none",duration:2e3})})):uni.showToast({title:"请填写客户姓名",icon:"none",duration:2e3})},changeParent:function(e){this.parentIndex=e.detail.value,this.parentName=this.parentList[e.detail.value].name,this.parent_id=this.parentList[e.detail.value].id},changeSwitch:function(){this.is_event=!this.is_event},initTime:function(){var e=new Date,t=e.getFullYear(),n=(0,s.dateTimePicker)(this.startYear,t);n.dateTimeArray.pop(),n.dateTime.pop(),n.dateArray.pop();this.dateTimeArray=n.dateTimeArray,this.dateArr=n.dateArray,this.dateTime=n.dateTime},changeFollowTime:function(e){var t=e.detail.value;if(t.includes(-1))uni.showToast({title:"请选择正确的时间",icon:"none"});else{var n=this.handleTime(t);this.event_start_time=n}}},(0,o.default)(a,"handleTime",(function(e){var t=this.dateArr[0][e[0]],n=this.dateArr[1][e[1]],i=this.dateArr[2][e[2]],a=this.dateArr[3][e[3]],o=this.dateArr[4][e[4]],r=t+"-"+n+"-"+i+" "+a+":"+o;return r})),(0,o.default)(a,"changeRemind",(function(e){this.remindIndex=e.detail.value,this.remindtype=this.remindList[e.detail.value]})),(0,o.default)(a,"detailAddClick",(function(){var e=this;uni.chooseLocation({success:function(t){e.lat=t.latitude,e.lng=t.longitude,e.address_detail=t.name,e.address_dingwei=t.address},fail:function(e){"chooseLocation:fail auth deny"==e.errMsg&&uni.showToast({title:"请允许使用位置信息",icon:"none"})}})})),(0,o.default)(a,"subSave",(function(){var e=this.name,t=(this.location,this.address_dingwei),n=this.address_detail,i=this.lng,a=this.lat,o=this.parent_id,r=(this.is_event,this.event_start_time,this.event_title,this.remindtype,this.is_contacts),s=this.is_record,c=this.follow_type,l=this.next_time,d=this.imgList,m=this.fileList,v=this.content,h=this.remindPeople;if(e)if(i&&a){var p={is_contacts:r?1:0,is_record:s},g=[],_={};this.listForm.forEach((function(e){g.push({name:e.id,required:e.config.required,msg:e.config.placeholder,value:e.value})}));for(var y=0;y<g.length;y++){if(g[y].required&&!g[y].value)return void uni.showToast({title:g[y].msg,icon:"none"});if("mobile"==g[y].name&&!(0,u.checkPhone)(g[y].value))return void uni.showToast({title:"请填写正确的手机号",icon:"none"});if("telephone"==g[y].name&&!(0,u.checkPhone)(g[y].value))return void uni.showToast({title:"请填写正确的手机号",icon:"none"});if(("mobile"==g[y].name||"telephone"==g[y].name)&&g[y].value&&!(0,u.checkPhone)(g[y].value))return void uni.showToast({title:"请填写正确的手机号",icon:"none"});_[g[y].name]=g[y].value}_=Object.assign({},_,{name:e,address_detail:n,lng:i,lat:a,address:t,parent_id:o});var b={},w=[];this.firstContactForm.forEach((function(e){w.push({name:e.id,required:e.config.required,msg:e.config.placeholder,value:e.value})}));for(var C=0;C<w.length;C++){if(w[C].required&&!w[C].value&&r)return void uni.showToast({title:w[C].msg,icon:"none"});if("mobile"==w[C].name&&!(0,u.checkPhone)(w[C].value))return void uni.showToast({title:"请填写正确的手机号",icon:"none"});if("telephone"==w[C].name&&!(0,u.checkPhone)(w[C].value))return void uni.showToast({title:"请填写正确的手机号",icon:"none"});b[w[C].name]=w[C].value}if(c)if(l)if(v){var R="",x=[];d.forEach((function(e){x.push(e.id)})),m.forEach((function(e){x.push(e.id)})),R=x.join(",");var k="",L=[];h.forEach((function(e){L.push(e.id)})),k=L.join(",");var q={files:R,follow_type:c,next_time:l,content:v,reminds_id:k};p.record=q,p.customer=_,p.contacts=b,(0,f.netAddkehu)(p).then((function(e){uni.showToast({title:e.msg,icon:"none",duration:2e3}),setTimeout((function(){uni.navigateBack({delta:1})}),2e3)}))}else uni.showToast({title:"请填写跟进内容",icon:"none",duration:2e3});else uni.showToast({title:"请选择跟进时间",icon:"none",duration:2e3});else uni.showToast({title:"请选择跟进类型",icon:"none",duration:2e3})}else uni.showToast({title:"请选择所在位置",icon:"none",duration:2e3});else uni.showToast({title:"请填写客户名称",icon:"none",duration:2e3})})),a)};t.default=v},e584:function(e,t,n){"use strict";n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;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},e96e:function(e,t,n){var i=n("93b8");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("4f06").default;a("59d0b78a",i,!0,{sourceMap:!1,shadowMode:!1})},eee4:function(e,t,n){"use strict";n.r(t);var i=n("dd4e"),a=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},f036:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var i={uPopup:n("d879").default},a=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)},o=[]}}]);