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
45 KiB
1 lines
45 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pagesA-crm-linkman-newLinkman-newLinkman","pages-index-groupCompany-contact-contactDetail~pages-index-groupCompany-contact-editInfo~pages-index~ba405b04","pages-index-groupCompany-cost-addCost~pages-index-newSche-newSche~pagesA-cost-index~pagesA-crm-custo~0eb04adb"],{"0221":function(e,t,n){"use strict";var i=n("4b79"),a=n.n(i);a.a},"06ac":function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.b_color[data-v-34e30c15]{color:red}.bo_color[data-v-34e30c15]{color:#fff}.valueActive[data-v-34e30c15]{color:#333}.labellist[data-v-34e30c15]{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap}.labellist .labelbox[data-v-34e30c15]{display:flex;justify-content:flex-start;align-items:center}uni-radio[data-v-34e30c15]{-webkit-transform:scale(.6);transform:scale(.6)}.sales_item[data-v-34e30c15]{display:flex;justify-content:flex-start;padding-bottom:%?15?%;flex-wrap:wrap}.sales_item .checkbox[data-v-34e30c15]{display:flex;justify-content:flex-start;margin-right:%?20?%;margin-bottom:%?20?%}.u-checkbox__icon[data-v-34e30c15]{width:%?20?%;height:%?20?%}',""]),e.exports=t},"0a7a":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"new_linkman"},[n("v-uni-view",{staticClass:"top_required"},[e._v("只展示"),n("span",{staticStyle:{color:"#f00"}},[e._v("必填")]),e._v("字段"),n("v-uni-switch",{attrs:{checked:e.isRequired,color:"#008EFF"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeRequired.apply(void 0,arguments)}}})],1),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),e._l(e.listForm,(function(t,i){return n("form-item",{key:i,attrs:{isNotRequired:e.isRequired,objInfo:t},on:{changeData:function(t){arguments[0]=t=e.$handleEvent(t),e.changeBaseData.apply(void 0,arguments)}}})})),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",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.changeKehu.apply(void 0,arguments)}}},[n("v-uni-view",{class:e.relationName?"valueActive":""},[e._v(e._s(e.relationName?e.relationName:"点击选择"))]),n("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1)],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.toSave)}}},[e._v("保存")]),n("v-uni-view",{staticClass:"botsec"}),n("select-customer",{ref:"customerChild",on:{getCustomerinfo:function(t){arguments[0]=t=e.$handleEvent(t),e.sureSelect.apply(void 0,arguments)}}})],2)},o=[]},"0e15":function(e,t,n){"use strict";n("99af"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("553d"),a=n("2345"),o={props:{},data:function(){return{keyword:"",customerlist:[],page:1,totalPage:1,preseCustomerObj:{},BASE_IMG_URL:a.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,i.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=o},"10de":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",[n("v-uni-view",{staticClass:"inp_warp"},[n("v-uni-view",{staticClass:"inp_title key"},[n("v-uni-text",{class:e.flag?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.title)+":")],1),e.isEdit?n("v-uni-view",{staticClass:"form_right"},[n("v-uni-view",[e._v("上传图片")]),n("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1):e._e()],1),n("v-uni-view",{staticClass:"imglist"},[e._l(e.imgList,(function(t,i){return n("v-uni-view",{key:i,staticClass:"imgbox"},[e.isEdit?n("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(i)}}}):e._e(),n("v-uni-image",{staticClass:"selfimg_img",attrs:{src:t.file_path},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toPriveImg(i)}}})],1)})),e.imgList.length<e.single&&e.isEdit?n("v-uni-view",{staticClass:"imgbox_tow",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.uploadFiles.apply(void 0,arguments)}}},[n("v-uni-image",{staticClass:"selfimg",attrs:{src:e.BASE_IMG_URL+"/addfile.png"}})],1):e._e()],2)],1)},o=[]},"13e3":function(e,t,n){"use strict";n("4160"),n("a9e3"),n("d3b7"),n("3ca3"),n("159b"),n("ddb0"),n("2b3d"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("2345"),a=n("aa66"),o={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:i.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 n=t.tempFilePaths;n.forEach((function(t){e.imgList.length<e.single&&e.toUpload(t)}))}})},toUpload:function(e){var t=this;uni.uploadFile({url:a.uploadUrl,name:"file",header:{token:uni.getStorageSync("token")},filePath:e,success:function(e){var n=JSON.parse(e.data);if(1==n.code){var i={id:n.data.id,file_path:n.data.url};t.$emit("uploadImg",i)}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,n){uni.showLoading({title:"压缩中...",icon:"none"}),uni.getImageInfo({src:e,success:function(e){console.log("压缩前",e);var n=e.width,i=e.height,a=new Image;a.src=e.path;var o=document.createElement("canvas"),r=o.getContext("2d");o.width=n/2,o.height=i/2,console.log(a),r.drawImage(a,0,0,n/2,i/2),o.toBlob((function(e){var n=window.URL.createObjectURL(e);console.log("压缩后",n),t(n),uni.hideLoading()}))}})}))}}};t.default=o},1430:function(e,t,n){"use strict";n.r(t);var i=n("10de"),a=n("4b21");for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("0221");var r,c=n("f0c5"),s=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"780e565f",null,!1,i["a"],r);t["default"]=s.exports},"1b5f":function(e,t,n){"use strict";var i=n("c91e"),a=n.n(i);a.a},"1da3":function(e,t,n){"use strict";n.r(t);var i=n("b9b9"),a=n("c02f");for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("c6d5"),n("5186");var r,c=n("f0c5"),s=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"a1c848da",null,!1,i["a"],r);t["default"]=s.exports},2394:function(e,t,n){"use strict";n.r(t);var i=n("fc19"),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},"24e3":function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.doc_item[data-v-649d1837]{display:flex;justify-content:space-between;align-items:center;padding:%?24?% %?35?%;background:#fff;border-bottom:%?1?% solid #ededed}.doc_item .remarkimg[data-v-649d1837]{width:%?31?%;height:%?33?%;margin-right:%?15?%}.doc_item .deleimg[data-v-649d1837]{width:%?44?%;height:%?44?%}.doc_item .doc_name[data-v-649d1837]{width:%?575?%;font-size:%?24?%;color:#333;overflow:hidden}.inp_warp[data-v-649d1837]{padding:%?30?%;background:#fff;display:flex;justify-content:space-between;align-items:center;border-bottom:%?1?% solid #ededed}.inp_warp .inp_title[data-v-649d1837]{font-size:%?32?%;color:#999}.inp_warp .form_right[data-v-649d1837]{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-649d1837]{width:%?40?%;height:%?40?%;margin-left:%?24?%}.inp_warp .form_right .rightinput[data-v-649d1837]{width:100%;text-align:right}.inp_warp .add_in[data-v-649d1837]{display:flex;justify-content:flex-end;align-items:center;font-size:%?26?%;color:#ffa205}.inp_warp .add_in .icon-jiahaocu[data-v-649d1837]{font-size:%?28?%;color:#ffa205;margin-right:%?5?%}',""]),e.exports=t},"4b21":function(e,t,n){"use strict";n.r(t);var i=n("13e3"),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},"4b79":function(e,t,n){var i=n("c75c");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("4f06").default;a("1f93a234",i,!0,{sourceMap:!1,shadowMode:!1})},5186:function(e,t,n){"use strict";var i=n("8c47"),a=n.n(i);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=c,t.netPrevCustomer=s,t.netLianxiren=l,t.netSelectContract=u,t.netCheckName=f,t.netAddFollowRecords=d,t.netContinueIsFollow=v,t.netFollowRecordDetail=h,t.netAddComment=m,t.netGetCommentList=g,t.netStaffList=p,t.netKehuDetail=b,t.netKehuFollow=_,t.daibanKehuFollow=w,t.netAddLianxiren=y,t.netCreateContract=I,t.netContractNum=j,t.netRemoveSeas=x,t.netReceiveKehu=C,t.netTransKehu=k,t.netKeyCollect=R,t.netRemoveColect=q,t.netEditKehu=E,t.netContactList=L,t.netContact=S,t.netContractList=$,t.netKehuFileList=F,t.netConcatDetailInfo=A,t.netContactFileList=D,t.netOperationList=T,t.netEditContactInfo=P,t.netDelContact=M,t.netEditFileName=N,t.netContractDetail=O,t.netPlanListf=U,t.netAddPlan=G,t.netPaymentNum=B,t.netAddPayment=z,t.netPaymentList=K,t.netPaymentNumber=J,t.netPaymentDetail=H,t.netPaymentApproval=Y,t.netContractFileList=Q,t.netExamine=V,t.netCancelExamine=W,t.netEditContract=X,t.netPaymentCancel=Z,t.netEditPaymentInfo=ee,t.netCrmContractList=te,t.netContractProduct=ne,t.netProductClass=ie,t.netProductDetail=ae,t.netAddCost=oe,t.netCostList=re,t.netCostDetail=ce,t.netEditCost=se,t.netSubordList=le,t.netGetBriefdata=ue,t.netTurnoverList=fe,t.netGetreceivableStaff=de,t.netGetOthersReceivable=ve,t.netGetTargetSelect=he,t.netGetDepTargetlist=me,t.netGetDefaultSelfDetail=ge,t.netSetMymubiao=pe,t.netGetRecordList=be,t.netGetRecordDetail=_e,t.netGetBumenList=we,t.netGetTealList=ye,t.netGetGongsiList=Ie,t.netSetTargetMoney=je,t.netGetDefaultMoney=xe,t.netQueryData=Ce;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 c(e){return(0,i.myRequest)("customer/getSearchStaffList",e)}function s(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 f(e){return(0,i.myRequest)("customer/selectName",e)}function d(e){return(0,i.myRequest)("record/createRecord",e)}function v(e){return(0,i.myRequest)("record/record_add",e)}function h(e){return(0,i.myRequest)("record/getRecordDetail",e)}function m(e){return(0,i.myRequest)("record/addComment",e)}function g(e){return(0,i.myRequest)("record/commentList",e)}function p(e){return(0,i.myRequest)("common/getSelectStaff",e)}function b(e){return(0,i.myRequest)("customer/customerDetail",e)}function _(e){return(0,i.myRequest)("record/getList",e)}function w(e){return(0,i.myRequest)("record/getcustomerList",e)}function y(e){return(0,i.myRequest)("contacts/addContacts",e)}function I(e){return(0,i.myRequest)("contract/addContract",e)}function j(){return(0,i.myRequest)("contract/getContractNumber")}function x(e){return(0,i.myRequest)("customer/moveSeas",e)}function C(e){return(0,i.myRequest)("customer/receive",e)}function k(e){return(0,i.myRequest)("customer/transfer",e)}function R(e){return(0,i.myRequest)("customer/collect",e)}function q(e){return(0,i.myRequest)("customer/cancelCollect",e)}function E(e){return(0,i.myRequest)("customer/editCustomer",e)}function L(e){return(0,i.myRequest)("contacts/getList",e)}function S(e){return(0,i.myRequest)("contacts/getSelectList",e)}function $(e){return(0,i.myRequest)("contract/getCustomerContacts",e)}function F(e){return(0,i.myRequest)("customer/getFilesList",e)}function A(e){return(0,i.myRequest)("contacts/getDetail",e)}function D(e){return(0,i.myRequest)("contacts/getFilesList",e)}function T(e){return(0,i.myRequest)("operation/getList",e)}function P(e){return(0,i.myRequest)("contacts/editContacts",e)}function M(e){return(0,i.myRequest)("contacts/delContacts",e)}function N(e){return(0,i.myRequest)("file/editName",e)}function O(e){return(0,i.myRequest)("contract/getDetail",e)}function U(e){return(0,i.myRequest)("receivables_plan/getList",e)}function G(e){return(0,i.myRequest)("receivables_plan/addPlan",e)}function B(e){return(0,i.myRequest)("receivables_plan/getSelectList",e)}function z(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 H(e){return(0,i.myRequest)("receivables/getDetail",e)}function Y(e){return(0,i.myRequest)("examine_record/getList",e)}function Q(e){return(0,i.myRequest)("contract/getFilesList",e)}function V(e){return(0,i.myRequest)("examine_record/examine",e)}function W(e){return(0,i.myRequest)("contract/cancel",e)}function X(e){return(0,i.myRequest)("contract/editContract",e)}function Z(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 ce(e){return(0,i.myRequest)("consume/getDetail",e)}function se(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 fe(e){return(0,i.myRequest)("index/contractRanding",e)}function de(){return(0,i.myRequest)("statistics/receivablesStatistics")}function ve(){return(0,i.myRequest)("statistics/staffReceivablesStatistics")}function he(){return(0,i.myRequest)("achievement/getDepartment")}function me(e){return(0,i.myRequest)("achievement/getStaffList",e)}function ge(e){return(0,i.myRequest)("achievement/getMyAchievementDetail",e)}function pe(e){return(0,i.myRequest)("achievement/staffEditAchievement",e)}function be(e){return(0,i.myRequest)("achievement/editRecords",e)}function _e(e){return(0,i.myRequest)("achievement/getRecordsDetail",e)}function we(e){return(0,i.myRequest)("achievement/getDepartmentList",e)}function ye(e){return(0,i.myRequest)("achievement/getTeamList",e)}function Ie(e){return(0,i.myRequest)("achievement/getCompanyAchievement",e)}function je(e){return(0,i.myRequest)("achievement/addAchievement",e)}function xe(e){return(0,i.myRequest)("achievement/getAchievementDetail",e)}function Ce(e){return(0,i.myRequest)("index/search",e)}},5722:function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.fllow_form[data-v-34e30c15]{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-34e30c15] :first-child{flex-shrink:0;font-weight:%?32?%}.fllow_form .form_right[data-v-34e30c15]{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-34e30c15]{color:#5ca9fe}.fllow_form uni-text[data-v-34e30c15]{margin-left:%?10?%}.fllow_form .form_input uni-input[data-v-34e30c15]{text-align:right;margin-right:%?10?%}.fllow_area[data-v-34e30c15]{background-color:#fff;padding:%?30?% %?20?%;padding-bottom:%?30?%;color:#999;font-size:%?32?%}.fllow_area .area_head[data-v-34e30c15]{margin-bottom:%?24?%}.fllow_area uni-textarea[data-v-34e30c15]{width:80%;height:%?300?%;padding:%?30?%;background:#f8f8f8;margin:0 auto}',""]),e.exports=t},"5c61":function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.popup_title[data-v-a1c848da]{text-align:center;font-size:%?34?%;color:#333;padding:%?24?%}.searbox[data-v-a1c848da]{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-a1c848da]{width:%?50?%;height:%?50?%;margin-right:%?10?%}.searbox .li_box[data-v-a1c848da]{width:%?630?%}.scrollbox[data-v-a1c848da]{width:100%;height:%?600?%;background:#f5f5f5}.scrollbox .liwarp[data-v-a1c848da]{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-a1c848da]{flex:1;display:flex;justify-content:flex-start;align-items:center}.scrollbox .liwarp .warpleft .headerimg[data-v-a1c848da]{width:%?50?%;height:%?50?%;border-radius:50%;margin-right:%?15?%}.scrollbox .liwarp .warpleft .name[data-v-a1c848da]{font-size:%?24?%;color:#333}.scrollbox .liwarp .warpleft .number[data-v-a1c848da]{font-size:%?24?%;color:#999;margin:%?15?% 0}.scrollbox .liwarp .warpleft .guishu[data-v-a1c848da]{font-size:%?24?%;color:#666}.btnlist[data-v-a1c848da]{width:%?750?%;display:flex;justify-content:space-around;padding:%?30?% 0;border-top:%?1?% solid #f5f5f5}.btnlist .btn[data-v-a1c848da]{width:%?200?%;height:%?60?%;border-radius:%?30?%;font-size:%?24?%;color:#fff;text-align:center;line-height:%?60?%}.btnlist .firbtn[data-v-a1c848da]{background:#14c2c1}.btnlist .secbtn[data-v-a1c848da]{background:#ff7800}',""]),e.exports=t},"71f7":function(e,t,n){"use strict";var i=n("f47b"),a=n.n(i);a.a},7577:function(e,t,n){"use strict";n.r(t);var i=n("d0ea"),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},"7f00":function(e,t,n){"use strict";var i=n("4ea4");n("4160"),n("caad"),n("c975"),n("a434"),n("a9e3"),n("2532"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n("af19"),o=i(n("ea3f")),r=i(n("1430")),c=i(n("80b8")),s=n("866e"),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:o.default,uploadImage:r.default,uploadFile:c.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=s.citys)},onShow:function(){},methods:{changeInput:function(e){var t=this.objInfo.id,n=e.detail.value;this.$emit("changeData",t,n,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 n=[];e.forEach((function(e){n.push(e.label)})),this.$emit("changeData",t,n.join(","),this.objInfo)}else this.$emit("changeData",t,"",this.objInfo)},changeRate:function(e){var t=e,n=this.objInfo.id;this.$emit("changeData",n,t,this.objInfo)},changeTextarea:function(e){var t=this.objInfo.id,n=e.detail.value;this.$emit("changeData",t,n,this.objInfo)},changeRadio:function(e){var t=e.detail.value,n=this.objInfo.id;this.$emit("changeData",n,t,this.objInfo)},changeCheckbox:function(e){var t=this.objInfo.id,n=e.detail.value;this.$emit("changeData",t,n.join(","),this.objInfo)},changeAddress:function(e){var t=e.detail.value[0];if(-1!=t.indexOf("市")){var n=t.indexOf("市");t=t.substring(0,n)}var i=t+"/"+e.detail.value[1]+"/"+e.detail.value[2],a=this.objInfo.id;this.$emit("changeData",a,i,this.objInfo)},confirm:function(e){var t=e[0].label+e[1].label+e[2].label,n=this.objInfo.id;this.$emit("changeData",n,t,this.objInfo)},changeDate:function(e){var t=e.detail.value,n=this.objInfo.id;this.$emit("changeData",n,t,this.objInfo)},withData:function(e){return e<10?"0"+e:""+e},initTime:function(){var e=new Date,t=e.getFullYear(),n=this.withData(e.getMonth()+1),i=this.withData(e.getDate()),o=this.withData(e.getHours()),r=this.withData(e.getMinutes()),c=this.withData(e.getSeconds()),s={},l=t+"-"+n+"-"+i+" "+o+":"+r+":"+c;s="order_date"==this.objInfo.id?(0,a.dateTimePicker)(7,2015,t,l):(0,a.dateTimePicker)();s.dateTimeArray.pop(),s.dateTime.pop(),s.dateArray.pop();this.dateTimeArray=s.dateTimeArray,this.dateArr=s.dateArray,this.dateTime=s.dateTime},changeColumn:function(e){var t=e.detail.column,n=e.detail.value;if(1==t){var i=this.dateArr[t][n],o=new Date,r=o.getFullYear(),c=r+"-"+i+"-01 00:00:00",s={};s="order_date"==this.objInfo.id?(0,a.dateTimePicker)(7,2015,r,c):(0,a.dateTimePicker)();s.dateTimeArray.pop(),s.dateTime.pop(),s.dateArray.pop();this.dateTimeArray=s.dateTimeArray,this.dateArr=s.dateArray,this.dateTime=s.dateTime}},changeTime:function(e){var t=e.detail.value;if(t.includes(-1))uni.showToast({title:"请选择正确的时间",icon:"none"});else{var n=this.handleTime(t),i=this.objInfo.id;this.$emit("changeData",i,n,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]],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},uploadImg:function(e){var t=this.objInfo.id,n=this.objInfo.value?this.objInfo.value:[];n.push(e),this.$emit("changeData",t,n,this.objInfo)},delImg:function(e){var t=this.objInfo.id,n=this.objInfo.value;n.splice(e,1),this.$emit("changeData",t,n,this.objInfo)},uploadFile:function(e){var t=this.objInfo.id,n=this.objInfo.value?this.objInfo.value:[];n.push(e),this.$emit("changeData",t,n,this.objInfo)},delFile:function(e){var t=this.objInfo.id,n=this.objInfo.value;n.splice(e,1),this.$emit("changeData",t,n,this.objInfo)}}};t.default=l},"80b8":function(e,t,n){"use strict";n.r(t);var i=n("c20d7"),a=n("2394");for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("1b5f");var r,c=n("f0c5"),s=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"649d1837",null,!1,i["a"],r);t["default"]=s.exports},"8c47":function(e,t,n){var i=n("5c61");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("4f06").default;a("407f707b",i,!0,{sourceMap:!1,shadowMode:!1})},9608:function(e,t,n){"use strict";var i=n("fe8b"),a=n.n(i);a.a},ae85:function(e,t,n){var i=n("06ac");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("4f06").default;a("65f4cd20",i,!0,{sourceMap:!1,shadowMode:!1})},aec2: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={uRate:n("a73c").default,tkiTree:n("ea3f").default,uSelect:n("193e").default},a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",["input"!=e.objInfo.component||1!=e.objInfo.config.required&&e.isNotRequired||e.objInfo.config.addShow?e._e():n("v-uni-view",{staticClass:"fllow_form"},[n("v-uni-view",[n("v-uni-text",{class:1==e.objInfo.config.required?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.objInfo.config.label))],1),n("v-uni-view",{staticClass:"form_input"},[e.isEdit?n("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():n("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():n("v-uni-view",{staticClass:"fllow_form"},[n("v-uni-view",[n("v-uni-text",{class:1==e.objInfo.config.required?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.objInfo.config.label))],1),n("v-uni-view",{staticClass:"form_input"},[n("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():n("v-uni-view",{staticClass:"fllow_form"},[n("v-uni-view",[n("v-uni-text",{class:1==e.objInfo.config.required?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.objInfo.config.label))],1),n("v-uni-view",{staticClass:"form_right",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.changeSelect.apply(void 0,arguments)}}},[n("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:""))]),n("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():n("v-uni-view",{staticClass:"fllow_form"},[n("v-uni-view",[n("v-uni-text",{class:1==e.objInfo.config.required?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.objInfo.config.label))],1),n("v-uni-view",{staticClass:"form_right"},[n("v-uni-view",[n("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():n("v-uni-view",{staticClass:"fllow_form"},[n("v-uni-view",[n("v-uni-text",{class:1==e.objInfo.config.required?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.objInfo.config.label))],1),n("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)}}},[n("v-uni-view",{staticClass:"form_right"},[n("v-uni-view",{class:e.objInfo.value?"valueActive":""},[e._v(e._s(e.objInfo.value?e.objInfo.value:e.objInfo.config.placeholder))]),n("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():n("v-uni-view",{staticClass:"fllow_area"},[n("v-uni-view",{staticClass:"area_head"},[n("v-uni-text",{class:1==e.objInfo.config.required?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.objInfo.config.label))],1),n("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():n("v-uni-view",{staticClass:"fllow_form"},[n("v-uni-view",[n("v-uni-text",{class:1==e.objInfo.config.required?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.objInfo.config.label))],1),n("v-uni-view",{staticClass:"form_right"},[n("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,i){return n("v-uni-label",{key:i,staticClass:"labelbox",attrs:{class:"labelbox"}},[n("v-uni-view",[n("v-uni-radio",{attrs:{color:"#008EFF",disabled:!e.isEdit,value:t.value,checked:t.value==e.objInfo.value}})],1),n("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():n("v-uni-view",{staticClass:"fllow_area"},[n("v-uni-view",{staticClass:"area_head"},[n("v-uni-text",{class:1==e.objInfo.config.required?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.objInfo.config.label))],1),n("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,i){return n("v-uni-label",{key:i,staticStyle:{"margin-right":"15rpx","margin-bottom":"25rpx",display:"block"}},[n("v-uni-checkbox",{staticClass:"checkbox",attrs:{color:"#ff7800",value:t.value,checked:-1!=e.objInfo.value.indexOf(t.value),disabled:!e.isEdit}}),n("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():n("v-uni-view",{staticClass:"fllow_form"},[n("v-uni-view",[n("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?n("v-uni-view",{staticClass:"form_right",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.show=!0}}},[n("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:""))]),n("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1):n("v-uni-view",{staticClass:"form_right"},[n("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:""))]),n("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():n("v-uni-view",{staticClass:"fllow_form"},[n("v-uni-view",[n("v-uni-text",{class:1==e.objInfo.config.required?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.objInfo.config.label))],1),n("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)}}},[n("v-uni-view",{staticClass:"form_right"},[n("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:""))]),n("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():n("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():n("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?n("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(),n("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)},o=[]},b9b9: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={uniPopup:n("cec5").default},a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",[n("uni-popup",{ref:"popup",attrs:{type:"bottom","background-color":"#fff"},on:{touchmove:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t)}}},[n("v-uni-view",{staticClass:"popup_title"},[e._v("选择客户")]),n("v-uni-view",{staticClass:"searbox"},[n("v-uni-image",{staticClass:"searimg",attrs:{src:e.BASE_IMG_URL+"ss.png",mode:"scaleToFill"}}),n("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),n("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,i){return n("v-uni-view",{key:i,staticClass:"liwarp",on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.selectItem(t,i)}}},[n("v-uni-view",{staticClass:"warpleft"},[n("v-uni-view",{staticClass:"name"},[e._v("名称:"+e._s(t.name))])],1),n("v-uni-label",{staticClass:"radio"},[n("v-uni-radio",{attrs:{value:"r1",color:"#008EFF",checked:e.preseCustomerObj.id==t.id}})],1)],1)})),0==e.customerlist.length?n("v-uni-view",{staticClass:"noData"},[e._v("暂无更多")]):e._e()],2),n("v-uni-view",{staticClass:"btnlist",on:{click:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t)}}},[n("v-uni-view",{staticClass:"btn secbtn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.hideSelect.apply(void 0,arguments)}}},[e._v("取消")]),n("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)},o=[]},bcc2:function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,"uni-radio[data-v-a1c848da]{-webkit-transform:scale(.7);transform:scale(.7)}",""]),e.exports=t},c02f:function(e,t,n){"use strict";n.r(t);var i=n("0e15"),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},c20d7:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{},[n("v-uni-view",{staticClass:"inp_warp"},[n("v-uni-view",{staticClass:"inp_title key"},[n("v-uni-text",{class:e.flag?"b_color":"bo_color"},[e._v("*")]),e._v(e._s(e.title)+":")],1),e.isEdit?n("v-uni-view",{staticClass:"form_right",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toUploadFile.apply(void 0,arguments)}}},[n("v-uni-view",[e._v("点击上传")]),n("v-uni-view",{staticClass:"iconfont icon-you"})],1):e._e()],1),e._l(e.fileList,(function(t,i){return n("v-uni-view",{key:i,staticClass:"doc_item"},[n("v-uni-image",{staticClass:"remarkimg",attrs:{src:e.BASE_IMG_URL+"/file-clip.png"}}),n("v-uni-view",{staticClass:"doc_name",on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.toLookFile(t)}}},[e._v(e._s(t.name))]),e.isEdit?n("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(i)}}}):e._e()],1)}))],2)},o=[]},c6d5:function(e,t,n){"use strict";var i=n("f1b5"),a=n.n(i);a.a},c75c:function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.b_color[data-v-780e565f]{color:red}.bo_color[data-v-780e565f]{color:#fff}.imglist[data-v-780e565f]{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-780e565f]{width:%?160?%;height:%?160?%;margin-right:%?14?%;position:relative;margin-bottom:%?24?%}.imglist .imgbox[data-v-780e565f]:nth-child(4n){margin-right:0}.imglist .imgbox .delimg[data-v-780e565f]{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-780e565f]{width:%?160?%;height:%?160?%}.imglist .imgbox_tow[data-v-780e565f]{width:%?75?%;height:%?75?%}.imglist .imgbox_tow .selfimg[data-v-780e565f]{width:%?75?%;height:%?75?%}.inp_warp[data-v-780e565f]{padding:%?30?%;background:#fff;display:flex;justify-content:space-between;align-items:center;border-bottom:%?1?% solid #ededed}.inp_warp .inp_title[data-v-780e565f]{font-size:%?32?%;color:#999}.inp_warp .form_right[data-v-780e565f]{display:flex;justify-content:flex-end;align-items:center;color:#999;min-width:%?450?%;text-align:right}',""]),e.exports=t},c91e:function(e,t,n){var i=n("24e3");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("4f06").default;a("cdb100fa",i,!0,{sourceMap:!1,shadowMode:!1})},cf9a:function(e,t,n){"use strict";var i=n("ae85"),a=n.n(i);a.a},d0ea:function(e,t,n){"use strict";var i=n("4ea4");n("4160"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("ffdc")),o=n("aa66"),r=(n("f668"),n("553d")),c=i(n("1da3")),s={data:function(){return{noClick:!0,name:"",relation_id:"",relationName:"",kehuIndex:"",kehuList:[],kehu:[],subname:"",role:"",roleList:[],roleIndex:"",post:"",birthday:"",mobile:"",telephone:"",wechat:"",email:"",qq:"",address:"",address_detail:"",remarks:"",create_staff_id:"",owner_staff_id:"",next_time:"",baseForm:[],listForm:[],countryType:1,checked:!1,isRequired:!1}},components:{formItem:a.default,selectCustomer:c.default},onLoad:function(e){e.id&&(this.relation_id=e.id),this.getKehulist(),this.getSelect(),this.listForm=[],this.getForm()},onShow:function(){},methods:{changeRequired:function(e){this.isRequired=e.detail.value},getForm:function(){var e=this;(0,o.netSetForm)({type:"contacts"}).then((function(t){t=t.data.data,t.forEach((function(e){e.value=e.value?e.value:""})),e.listForm=t,e.changeCountry(e.countryType)}))},changeCountry:function(e){this.countryType=e;var t=this.listForm;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.listForm=t},changeBaseData: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))}))},getSelect:function(){var e=this;(0,r.netSelect)().then((function(t){e.roleList=t.data["联系人角色"]}))},getKehulist:function(){var e=this;(0,r.netPrevCustomer)().then((function(t){e.kehu=t.data,e.handleKehu(t.data)}))},handleKehu:function(e){var t=[];e.forEach((function(e){t.push(e.name)})),this.kehuList=t,this.relation_id&&this.setDefaultKehu()},setDefaultKehu:function(){var e=this,t=this.relation_id;this.kehu.forEach((function(n,i){n.id==t&&(e.relationName=n.name,e.kehuIndex=i)}))},changeKehu:function(e){this.$refs.customerChild.init()},sureSelect:function(e){this.relation_id=e.id,this.relationName=e.name},toSave:function(){var e=this.checkCommonForm(this.listForm);if(e){var t=this.relation_id;if(t){e=Object.assign({},e,{customer_id:t});var n={};n.contacts=e,(0,r.netAddLianxiren)(n).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})}}}};t.default=s},d0f3:function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.valueActive[data-v-281a2182]{color:#333}.new_linkman[data-v-281a2182]{font-size:%?28?%}.new_linkman .linktab[data-v-281a2182]{padding:%?20?% %?24?% %?20?% 0;display:flex;justify-content:space-between;align-items:center;background:#fff;border-bottom:%?1?% solid #eaeaea}.new_linkman .linktab .link_right[data-v-281a2182]{display:flex;justify-content:flex-end;align-items:center;background:#fff}.new_linkman .linktab .link_right .linkbtn[data-v-281a2182]{margin-right:%?15?%;width:%?93?%;height:%?44?%;border-radius:%?20?%;font-size:%?24?%;color:#666;text-align:center;line-height:%?42?%;border:%?1?% solid #ddd;background:#fff}.new_linkman .linktab .link_right .linkbtnactive[data-v-281a2182]{background:#008eff;border:%?1?% solid #008eff;color:#fff}.new_linkman .mar_top[data-v-281a2182]{margin-top:%?30?%}.new_linkman .info_head[data-v-281a2182]{height:%?80?%;line-height:%?80?%;font-size:%?30?%;color:#999;padding-left:%?64?%}.new_linkman .fllow_form[data-v-281a2182]{display:flex;justify-content:space-between;background-color:#fff;border-bottom:%?1?% solid #eaeaea;padding:%?30?% %?20?%;color:#999;font-size:%?32?%}.new_linkman .fllow_form .form_right[data-v-281a2182]{display:flex;align-items:center;color:#999}.new_linkman .fllow_form .form_right[data-v-281a2182] :first-child{width:%?450?%;text-align:right}.new_linkman .fllow_form .form_right uni-image[data-v-281a2182]{width:%?40?%;height:%?40?%;margin:%?28?% %?5?% 0 0}.new_linkman .fllow_form .theme[data-v-281a2182]{color:#5ca9fe}.new_linkman .fllow_form uni-text[data-v-281a2182]{color:red;margin-left:%?10?%}.new_linkman .fllow_form .form_input uni-input[data-v-281a2182]{text-align:right;margin-right:%?10?%}.new_linkman .fllow_area[data-v-281a2182]{background-color:#fff;padding:0 %?30?%;margin-bottom:%?30?%}.new_linkman .fllow_area .area_head[data-v-281a2182]{height:%?100?%;line-height:%?100?%}.new_linkman .fllow_area .area_head uni-text[data-v-281a2182]{color:red}.new_linkman .fllow_area uni-textarea[data-v-281a2182]{width:100%;height:%?300?%}.new_linkman #btn[data-v-281a2182]{font-size:%?26?%;color:#fff;text-align:center;line-height:%?88?%;width:%?500?%;height:%?88?%;background:#008eff;border-radius:%?29?%}',""]),e.exports=t},e987:function(e,t,n){"use strict";n.r(t);var i=n("0a7a"),a=n("7577");for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("71f7");var r,c=n("f0c5"),s=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"281a2182",null,!1,i["a"],r);t["default"]=s.exports},f1b5:function(e,t,n){var i=n("bcc2");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("4f06").default;a("c0203a22",i,!0,{sourceMap:!1,shadowMode:!1})},f247:function(e,t,n){"use strict";n.r(t);var i=n("7f00"),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},f47b:function(e,t,n){var i=n("d0f3");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("4f06").default;a("d55dce98",i,!0,{sourceMap:!1,shadowMode:!1})},fc19:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("2345"),a=n("aa66"),o={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:i.BASE_IMG_URL}},methods:{toUploadFile:function(){var e=this;wx.chooseMessageFile({count:1,success:function(t){var n=t.tempFiles[0];e.Upload(n.path,n.name)}})},Upload:function(e,t){var n=this;uni.uploadFile({url:a.uploadUrl,name:"file",header:{token:uni.getStorageSync("token")},filePath:e,formData:{name:t},success:function(e){var i=JSON.parse(e.data);if(1==i.code){var a=i.data;a.name=t,a.file_path=a.url,console.log(a,"上传文件"),n.$emit("uploadFile",a)}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=o},fe8b:function(e,t,n){var i=n("5722");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("4f06").default;a("16ff63be",i,!0,{sourceMap:!1,shadowMode:!1})},ffdc:function(e,t,n){"use strict";n.r(t);var i=n("aec2"),a=n("f247");for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("cf9a"),n("9608");var r,c=n("f0c5"),s=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"34e30c15",null,!1,i["a"],r);t["default"]=s.exports}}]);
|