| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pagesA-crm-customerManagement-newFllow-newFllow"],{"01a3":function(e,t,i){var n=i("c86c");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.valueActive[data-v-321d20a6]{color:#333}.new_fllow[data-v-321d20a6]{font-size:%?28?%}.new_fllow .fllow_form[data-v-321d20a6]{display:flex;justify-content:space-between;background-color:#fff;border-bottom:%?1?% solid #eaeaea;padding:%?30?% %?40?% %?30?% %?47?%;font-size:%?32?%;color:#999}.new_fllow .fllow_form .form_right[data-v-321d20a6]{display:flex;align-items:center;color:#999}.new_fllow .fllow_form .form_right[data-v-321d20a6] :first-child{width:%?350?%;text-align:right}.new_fllow .fllow_form .form_right uni-image[data-v-321d20a6]{width:%?40?%;height:%?40?%;margin:%?28?% %?5?% 0 0}.new_fllow .fllow_form uni-text[data-v-321d20a6]{color:red;margin-left:%?10?%}.new_fllow .fllow_form .form_input uni-input[data-v-321d20a6]{height:%?100?%;line-height:%?100?%;text-align:right;margin-right:%?10?%}.new_fllow .fllow_form .fllow_button[data-v-321d20a6]{margin-top:%?15?%}.new_fllow .fllow_file_li[data-v-321d20a6]{padding:%?24?% %?34?%;background:#fff;border-bottom:%?1?% solid #eaeaea}.new_fllow .fllow_file_li .fil_li[data-v-321d20a6]{display:flex;justify-content:space-between;align-items:center;margin-bottom:%?14?%}.new_fllow .fllow_file_li .fil_li .fileimg[data-v-321d20a6]{width:%?20?%;height:%?20?%}.new_fllow .fllow_file_li .fil_li .filename[data-v-321d20a6]{font-size:%?24?%;color:#999}.new_fllow .fllow_file_li .fil_li .closeimg[data-v-321d20a6]{width:%?32?%;height:%?32?%}.new_fllow .imglist[data-v-321d20a6]{padding:%?24?% %?34?%;background:#fff;border-bottom:%?1?% solid #eaeaea;display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap}.new_fllow .imglist .imgbox[data-v-321d20a6]{width:%?160?%;height:%?160?%;margin-right:%?14?%;position:relative;margin-bottom:%?24?%;border:%?1?% solid #eaeaea}.new_fllow .imglist .imgbox .delimg[data-v-321d20a6]{width:%?32?%;height:%?32?%;border-radius:50%;position:absolute;right:%?-16?%;top:%?-16?%;background:rgba(0,0,0,.5);z-index:2}.new_fllow .imglist .imgbox .selfimg[data-v-321d20a6]{width:%?160?%;height:%?160?%}.new_fllow .fllow_area[data-v-321d20a6]{background-color:#fff;padding:0 %?55?%;margin-bottom:%?30?%;font-size:%?32?%;color:#999;padding-bottom:%?30?%}.new_fllow .fllow_area .area_head[data-v-321d20a6]{height:%?100?%;line-height:%?100?%}.new_fllow .fllow_area .area_head uni-text[data-v-321d20a6]{color:red}.new_fllow .fllow_area uni-textarea[data-v-321d20a6]{height:%?300?%;padding:%?30?%;background:#f8f8f8;border-radius:%?15?%;margin:0 auto}.new_fllow .follow_task[data-v-321d20a6]{height:%?80?%;line-height:%?80?%}.new_fllow #btn[data-v-321d20a6]{width:%?500?%;height:%?88?%;background:#008eff;border-radius:%?29?%;font-size:%?34?%;color:#fff;line-height:%?88?%}',""]),e.exports=t},"0446":function(e,t,i){var n=i("5c6a");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("967d").default;a("57a030ba",n,!0,{sourceMap:!1,shadowMode:!1})},2434:function(e,t,i){var n=i("01a3");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("967d").default;a("200a3a94",n,!0,{sourceMap:!1,shadowMode:!1})},2632:function(e,t,i){var n=i("d189").default;function a(e){return e<10?"0"+e:""+e}function o(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return function(e,t){e=e||0,t=t||1;for(var n=[],o=e;o<=t;o++)n.push(a(o)+i);return n}(e,t)}function l(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=e%400==0||e%4==0&&e%100!=0,l=null;switch(t){case"01":case"03":case"05":case"07":case"08":case"10":case"12":l=o(1,i||31,n);break;case"04":case"06":case"09":case"11":l=o(1,i||30,n);break;case"02":l=o(1,a?i||29:i||28,n);break;default:l="月份格式不正确,请重新输入!"}return l}i("aa9c"),i("c223"),i("64aa"),i("bf0f"),i("5ef2"),e.exports={dateTimePicker:function(e,t,i,s){var r=[],c=[[],[],[],[],[],[]],u=[[],[],[],[],[],[]],d=t||2e3,f=i||2100,v=s?[].concat(n(s.split(" ")[0].split("-")),n(s.split(" ")[1].split(":"))):function(){var e=new Date,t=a(e.getFullYear()),i=a(e.getMonth()+1),n=a(e.getDate()),o=a(e.getHours()),l=a(e.getMinutes()),s=a(e.getSeconds());return[t,i,n,o,l,s]}();if(u[0]=o(d,f),u[1]=o(1,12),u[2]=l(v[0],v[1]),u[3]=o(0,23),u[4]=o(0,59),u[5]=o(0,59),e){var h=new Date,m=h.getTime(),p=(e=m+24*Number(e)*60*60*1e3,i=f,new Date(e).getMonth()+1),g=new Date(e).getDate(),w=new Date(e).getHours(),_=new Date(e).getMinutes(),b=new Date(e).getSeconds();console.log(i,p,g,w,_,b),c[0]=o(d,i,"年"),c[1]=o(1,p,"月"),c[2]=l(v[0],v[1],v[1]<p?null:g,"日")}else c[0]=o(d,f,"年"),c[1]=o(1,12,"月"),c[2]=l(v[0],v[1],null,"日");return c[3]=o(0,23,"时"),c[4]=o(0,59,"分"),c[5]=o(0,59,"秒"),u.forEach((function(e,t){r.push(e.indexOf(v[t]))})),{dateTimeArray:c,dateTime:r,dateArray:u}},getMonthDay:l}},2774:function(e,t,i){i("01a2"),i("e39c"),i("bf0f"),i("844d"),i("18f7"),i("de6c"),i("08eb"),e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},3221:function(e,t,i){"use strict";var n=i("0446"),a=i.n(n);a.a},"3fc3":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return n}));var n={uPopup:i("de5b").default},a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("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?i("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,n){return[i("v-uni-view",{key:n+"_0",staticClass:"u-action-sheet-item u-line-1",class:[n<e.list.length-1?"u-border-bottom":""],style:[e.itemStyle(n)],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(n)}}},[i("v-uni-text",[e._v(e._s(t.text))]),t.subText?i("v-uni-text",{staticClass:"u-action-sheet-item__subtext u-line-1"},[e._v(e._s(t.subText))]):e._e()],1)]})),e.cancelBtn?i("v-uni-view",{staticClass:"u-gab"}):e._e(),e.cancelBtn?i("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=[]},"4ad5":function(e,t,i){"use strict";i.r(t);var n=i("774c"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=a.a},"4fac":function(e,t,i){"use strict";i.r(t);var n=i("6004"),a=i("4ad5");for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("61a2");var l=i("828b"),s=Object(l["a"])(a["default"],n["b"],n["c"],!1,null,"321d20a6",null,!1,n["a"],void 0);t["default"]=s.exports},"57d3":function(e,t,i){"use strict";i("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("64aa");var n={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 i={};return e.list[t].color&&(i.color=e.list[t].color),e.list[t].fontSize&&(i.fontSize=e.list[t].fontSize+"rpx"),e.list[t].disabled&&(i.color="#c0c4cc"),i}},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=n},"5c6a":function(e,t,i){var n=i("c86c");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.u-tips[data-v-921eb322]{font-size:%?26?%;text-align:center;padding:%?34?% 0;line-height:1;color:#909399}.u-action-sheet-item[data-v-921eb322]{display:flex;flex-direction:row;line-height:1;justify-content:center;align-items:center;font-size:%?32?%;padding:%?34?% 0;flex-direction:column}.u-action-sheet-item__subtext[data-v-921eb322]{font-size:%?24?%;color:#909399;margin-top:%?20?%}.u-gab[data-v-921eb322]{height:%?12?%;background-color:#eaeaec}.u-actionsheet-cancel[data-v-921eb322]{color:#303133}',""]),e.exports=t},6004:function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return n}));var n={uActionSheet:i("d8f3").default},a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"new_fllow"},[i("v-uni-view",{staticClass:"top_required"},[e._v("只展示"),i("span",{staticStyle:{color:"#f00"}},[e._v("必填")]),e._v("字段"),i("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),i("v-uni-view",{staticClass:"fllow_form"},[i("v-uni-view",[i("v-uni-text",[e._v("*")]),e._v("跟进类型")],1),i("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)}}},[i("v-uni-view",{staticClass:"form_right"},[i("v-uni-view",{class:e.follow_type?"valueActive":""},[e._v(e._s(e.follow_type?e.follow_type:"点击选择"))]),i("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1)],1)],1),i("v-uni-view",{staticClass:"fllow_form"},[i("v-uni-view",{staticStyle:{width:"50%"}},[i("v-uni-text",[e._v("*")]),e._v("下次跟进时间")],1),i("v-uni-picker",{staticStyle:{width:"50%"},attrs:{mode:"multiSelector",range:e.dateTimeArray,value:e.dateTime},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeTime.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"form_right"},[i("v-uni-view",{class:e.next_time?"valueActive":""},[e._v(e._s(e.next_time?e.next_time:"点击选择"))]),i("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1)],1)],1),e.isRequired?e._e():i("v-uni-view",{staticClass:"fllow_form"},[i("v-uni-view",{staticStyle:{"padding-left":"27rpx"}},[e._v("上传附件")]),i("v-uni-view",{staticClass:"form_right",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.uploadClick.apply(void 0,arguments)}}},[i("v-uni-view",[e._v("选择附件")]),i("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1)],1),i("u-action-sheet",{attrs:{list:e.uploadActions},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.uploadType.apply(void 0,arguments)}},model:{value:e.uploadShow,callback:function(t){e.uploadShow=t},expression:"uploadShow"}}),0!=e.imgList.length?i("v-uni-view",{staticClass:"imglist"},e._l(e.imgList,(function(t,n){return i("v-uni-view",{key:n,staticClass:"imgbox"},[i("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(n)}}}),i("v-uni-image",{staticClass:"selfimg",attrs:{src:t.file_path,mode:"scaleToFill"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.openCommonImg(e.imgList,n)}}})],1)})),1):e._e(),0!=e.fileList.length?i("v-uni-view",{staticClass:"fllow_file_li"},e._l(e.fileList,(function(t,n){return i("v-uni-view",{key:n,staticClass:"fil_li"},[i("v-uni-image",{staticClass:"fileimg",attrs:{src:e.BASE_IMG_URL+"fujian.png",mode:"scaleToFill"}}),i("v-uni-view",{staticClass:"filename",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.openCommonFile(t)}}},[e._v(e._s(t.name))]),i("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(n)}}})],1)})),1):e._e(),i("v-uni-view",{staticClass:"fllow_area"},[i("v-uni-view",{staticClass:"area_head"},[i("v-uni-text",[e._v("*")]),e._v("跟进内容")],1),i("v-uni-textarea",{class:e.content?"valueActive":"",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),1!=e.relation_type||e.isRequired?e._e():i("v-uni-view",{staticClass:"fllow_form"},[i("v-uni-view",{staticStyle:{"padding-left":"20rpx"}},[e._v("客户名称")]),i("v-uni-view",{staticClass:"form_right",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.changeKehu.apply(void 0,arguments)}}},[i("v-uni-view",{class:e.relationName?"valueActive":""},[e._v(e._s(e.relationName?e.relationName:"点击选择"))]),i("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1)],1),1==e.relation_type?i("v-uni-view",{staticClass:"fllow_form"},[i("v-uni-view",[i("v-uni-text",[e._v("*")]),e._v("客户状态")],1),i("v-uni-picker",{attrs:{value:e.statusIndex,range:e.statusList},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeStatus.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"form_right"},[i("v-uni-view",{class:e.follow?"valueActive":""},[e._v(e._s(e.follow?e.follow:"点击选择"))]),i("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1)],1)],1):e._e(),i("examine-template",{attrs:{flag:!1,remindPeople:e.remindPeople,title:"提醒谁看"},on:{delExamine:function(t){arguments[0]=t=e.$handleEvent(t),e.delRemind.apply(void 0,arguments)}}}),i("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.saveFollow)}}},[e._v("保存")]),i("v-uni-view",{staticClass:"botsec"}),i("select-customer",{ref:"customerChild",on:{getCustomerinfo:function(t){arguments[0]=t=e.$handleEvent(t),e.sureSelect.apply(void 0,arguments)}}})],1)},o=[]},"61a2":function(e,t,i){"use strict";var n=i("2434"),a=i.n(n);a.a},"6a85":function(e,t,i){"use strict";i("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.pageJumps=void 0;var n={methods:{followTypeClick:function(){uni.navigateTo({url:"/pagesA/crm/customerManagement/newFllow/followType/followType"})},followTimeClick:function(){uni.navigateTo({url:"/pagesA/crm/customerManagement/newFllow/selectTime/selectTime"})},taskRemindClick:function(){uni.navigateTo({url:"/pagesA/crm/customerManagement/newFllow/taskManager/taskManager"})},remindWayClick:function(){uni.navigateTo({url:"/pagesA/crm/customerManagement/newFllow/remindWay/remindWay"})},selectLinkmanClick:function(){uni.navigateTo({url:"/pagesA/crm/customerManagement/newFllow/selectLinkman/selectLinkman"})},moreClick: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"})}}};t.pageJumps=n},"774c":function(e,t,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("bf0f"),i("2797"),i("aa9c"),i("dd2b");var a=i("6a85"),o=i("af8c"),l=i("391e"),s=i("3a07"),r=i("2632"),c=i("8d8b"),u=n(i("5c92")),d={mixins:[a.pageJumps,c.commonF],components:{selectCustomer:u.default},data:function(){return{BASE_IMG_URL:s.BASE_IMG_URL,noClick:!0,checked:!0,uploadShow:!1,uploadActions:[{id:1,text:"拍照",color:"#008EFF"},{id:2,text:"从相册中选择",color:"#008EFF"}],followList:[123,465],followIndex:null,kehuList:[],kehu:[],kehuIndex:null,contactList:[],concatIndex:null,statusList:[],statusIndex:null,remindList:["准时提醒","5分钟前","15分钟前","30分钟前","一个小时前","两个小时前","一天前","两天前","一周前"],remindIndex:null,imgList:[],fileList:[],follow_type:"",dateTime:null,dateTimeArray:null,dateArr:null,follow_time:"",next_time:"",content:"",relation_id:"",relationName:"",relation_type:"",follow:"",DefaultRemind:[],remindPeople:[],remindType:"record",is_event:!1,start_time:"",title:"",isRequired:!1}},onLoad:function(e){this.relation_id=e.id,this.relation_type=e.type,this.getKehulist(),this.initTime(),this.getSelectList()},methods:{changeRequired:function(e){this.isRequired=e.detail.value},sureSelect:function(e){this.relation_id=e.id,this.relationName=e.name},getSelectList:function(){var e=this;(0,l.netSelect)().then((function(t){e.followList=t.data["跟进类型"],e.statusList=t.data["客户状态"]}))},initTime:function(){var e=(0,r.dateTimePicker)();e.dateTimeArray.pop(),e.dateTime.pop(),e.dateArray.pop();this.dateTimeArray=e.dateTimeArray,this.dateTime=e.dateTime,this.dateArr=e.dateArray},getKehulist:function(){var e=this;(0,l.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.setDefaultKehu()},setDefaultKehu:function(){var e=this,t=this.relation_id;this.kehu.forEach((function(i,n){i.id==t&&(e.relationName=i.name,e.kehuIndex=n)}))},changeFollow:function(e){this.followIndex=e.detail.value,this.follow_type=this.followList[e.detail.value]},changeTime:function(e){var t=e.detail.value,i=this.handleTime(t);this.next_time=i},changeAlipayTime:function(e){this.next_time=e.detail.value},handleTime:function(e){var t=this.dateArr[0][e[0]],i=this.dateArr[1][e[1]],n=this.dateArr[2][e[2]],a=this.dateArr[3][e[3]],o=this.dateArr[4][e[4]],l=t+"-"+i+"-"+n+" "+a+":"+o;return l},change:function(){this.checked=!this.checked},uploadClick:function(){this.uploadShow=!0},onCancel:function(){this.uploadShow=!1},changeContent:function(e){this.content=e.detail.value},uploadType:function(e){var t=this;0==e?uni.chooseImage({sourceType:["camera"],sizeType:["compressed"],success:function(e){var i=e.tempFilePaths;i.forEach((function(e){t.uploadFile(e,1)}))}}):1==e?uni.chooseImage({sourceType:["album"],sizeType:["compressed"],success:function(e){var i=e.tempFilePaths;i.forEach((function(e){t.uploadFile(e,1)}))}}):wx.chooseMessageFile({count:1,type:"file",success:function(e){var i=e.tempFiles[0];t.uploadFile(i,2)},fail:function(e){console.log(e)}})},uploadFile:function(e,t){var i=this;console.log(e,"和王菲那英"),uni.uploadFile({url:o.uploadUrl,name:"file",header:{token:uni.getStorageSync("token")},filePath:1==t?e:e.path,formData:{name:2==t?e.name:""},success:function(n){var a=JSON.parse(n.data);if(i.uploadShow=!1,1==a.code)if(1==t){var o={id:a.data.id,file_path:a.data.url};i.imgList.push(o)}else{var l={id:a.data.id,file_path:a.data.url};e=Object.assign({},e,l),i.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)},changeKehu:function(){this.$refs.customerChild.init()},changeStatus:function(e){this.statusIndex=e.detail.value,this.follow=this.statusList[e.detail.value]},changeEvent:function(){this.is_event=!this.is_event},changeFollowTime:function(e){this.start_time=e.detail.value[0]+"/"+e.detail.value[1]+"/"+e.detail.value[2]},saveFollow:function(){console.log("保存");var e=this.imgList,t=this.fileList,i=this.follow_type,n=this.next_time,a=this.content,o=this.relation_id,s=(this.relationName,this.relation_type),r=this.follow,c=this.remindPeople;if(i)if(n)if(a)if(o)if(1!=s||r){var u,d=[];e.forEach((function(e){d.push(e.id)})),t.forEach((function(e){d.push(e.id)})),console.log(e,t,"文件"),u=d.join(",");var f,v=[];c.forEach((function(e){v.push(e.id)})),f=v.join(",");var h={};console.log(s,"类型"),h=1==s||3==s?{files:u,follow_type:i,next_time:n,content:a,relation_id:o,relation_type:s,follow:r,reminds_id:f}:{files:u,follow_type:i,next_time:n,content:a,relation_id:o,relation_type:s,reminds_id:f},(0,l.netAddFollowRecords)(h).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})}}};t.default=d},"79b7":function(e,t,i){i("f7a5"),i("bf0f"),i("08eb"),i("18f7"),i("5c47"),i("0506");var n=i("e476");e.exports=function(e,t){if(e){if("string"===typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports["default"]=e.exports},"8d8b":function(e,t,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.commonF=void 0;var a=n(i("b7c7"));i("bf0f"),i("2797"),i("c223"),i("dd2b");var o=i("af8c"),l={onShow:function(){this.remindPeople=[],this.getDefaultRemind()},onUnload:function(){uni.removeStorageSync("remindlist")},methods:{getDefaultRemind:function(){var e=this;(0,o.netStaffDefaultReviewer)({type:this.remindType}).then((function(t){t=t.data,t.forEach((function(e,t){e.isDel=!1})),e.remindPeople=e.$deWeight([].concat((0,a.default)(t),(0,a.default)(uni.getStorageSync("remindlist"))))}))},delRemind:function(e){this.remindPeople.splice(e,1),uni.setStorageSync("remindlist",this.remindPeople)}}};t.commonF=l},9376:function(e,t,i){i("7a76"),i("c9b5"),e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports["default"]=e.exports},d189:function(e,t,i){var n=i("e2db"),a=i("2774"),o=i("79b7"),l=i("9376");e.exports=function(e){return n(e)||a(e)||o(e)||l()},e.exports.__esModule=!0,e.exports["default"]=e.exports},d8f3:function(e,t,i){"use strict";i.r(t);var n=i("3fc3"),a=i("dbf6");for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("3221");var l=i("828b"),s=Object(l["a"])(a["default"],n["b"],n["c"],!1,null,"921eb322",null,!1,n["a"],void 0);t["default"]=s.exports},dbf6:function(e,t,i){"use strict";i.r(t);var n=i("57d3"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=a.a},e2db:function(e,t,i){var n=i("e476");e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},e476:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n},e.exports.__esModule=!0,e.exports["default"]=e.exports}}]);
|