1 line
6.8 KiB
JavaScript
1 line
6.8 KiB
JavaScript
|
require('../../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/crm/customerManagement/newFllow/newFllow"],{"33c9":function(e,t,i){"use strict";i.r(t);var n=i("ee38"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(a);t["default"]=o.a},a396:function(e,t,i){"use strict";var n=i("fac2"),o=i.n(n);o.a},a5be:function(e,t,i){"use strict";(function(e,t){var n=i("4ea4");i("8886");n(i("66fd"));var o=n(i("d2a8"));e.__webpack_require_UNI_MP_PLUGIN__=i,t(o.default)}).call(this,i("bc2e")["default"],i("543d")["createPage"])},be21:function(e,t,i){"use strict";i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){return n}));var n={uActionSheet:function(){return i.e("uview-ui/components/u-action-sheet/u-action-sheet").then(i.bind(null,"b13b"))}},o=function(){var e=this.$createElement,t=(this._self._c,this.imgList.length),i=this.fileList.length;this.$mp.data=Object.assign({},{$root:{g0:t,g1:i}})},a=[]},d2a8:function(e,t,i){"use strict";i.r(t);var n=i("be21"),o=i("33c9");for(var a in o)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return o[e]}))}(a);i("a396");var l=i("f0c5"),s=Object(l["a"])(o["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);t["default"]=s.exports},ee38:function(e,t,i){"use strict";(function(e,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i("6924"),a=i("dc92"),l=i("76dd"),s=i("0c59"),c=i("c7eb"),u=i("8683"),r={mixins:[o.pageJumps,u.commonF],components:{selectCustomer:function(){Promise.all([i.e("common/vendor"),i.e("components/selectCustomer")]).then(function(){return resolve(i("5bcd"))}.bind(null,i)).catch(i.oe)}},data:function(){return{BASE_IMG_URL:s.BASE_IMG_URL,noClick:!0,checked:!0,uploadShow:!1,uploadActions:[{id:1,text:"拍照",color:"#03aa96"},{id:2,text:"从相册中选择",color:"#03aa96"},{id:3,text:"上传文件",color:"#03aa96"}],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,c.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]],o=this.dateArr[3][e[3]],a=this.dateArr[4][e[4]],l=t+"-"+i+"-"+n+" "+o+":"+a;return l},change:function(){this.checked=!this.checked},uploadClick:function(){this.uploadShow=!0},onCancel:function(){this.uploadShow=!1},changeContent:function(e){this.
|