(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pagesB-contract-addContractPayment"],{"0f80":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.valueActive[data-v-a8d6251c]{color:#333}.new_fllow[data-v-a8d6251c]{margin-top:%?40?%;font-size:%?28?%}.new_fllow .fllow_form[data-v-a8d6251c]{display:flex;justify-content:space-between;align-items:center;height:%?100?%;line-height:%?100?%;background-color:#fff;border-bottom:%?1?% solid #eaeaea;padding-left:%?47?%;color:#999;font-size:%?32?%}.new_fllow .fllow_form .form_right[data-v-a8d6251c]{display:flex;color:#999;padding-right:%?40?%}.new_fllow .fllow_form .form_right uni-image[data-v-a8d6251c]{width:%?40?%;height:%?40?%;margin:%?28?% %?5?% 0 0}.new_fllow .fllow_form uni-text[data-v-a8d6251c]{color:red;margin-left:%?10?%}.new_fllow .fllow_form .form_input uni-input[data-v-a8d6251c]{text-align:right;margin-right:%?40?%}.new_fllow .fllow_form .fllow_button[data-v-a8d6251c]{margin-top:%?15?%}.new_fllow .imglist[data-v-a8d6251c]{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-a8d6251c]{width:%?160?%;height:%?160?%;margin-right:%?14?%;position:relative;margin-bottom:%?24?%;border:%?1?% solid #eaeaea}.new_fllow .imglist .imgbox .delimg[data-v-a8d6251c]{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-a8d6251c]{width:%?160?%;height:%?160?%}.new_fllow .fllow_area[data-v-a8d6251c]{background-color:#fff;padding:0 %?30?%;margin-bottom:%?30?%}.new_fllow .fllow_area .area_head[data-v-a8d6251c]{height:%?100?%;line-height:%?100?%}.new_fllow .fllow_area .area_head uni-text[data-v-a8d6251c]{color:red}.new_fllow .fllow_area uni-textarea[data-v-a8d6251c]{width:100%;height:%?300?%;background:#f8f8f8}.new_fllow .info_head[data-v-a8d6251c]{height:%?80?%;line-height:%?80?%;font-size:%?30?%;color:#999;padding-left:%?70?%}.new_fllow .affiliation[data-v-a8d6251c]{background-color:#fff;margin-bottom:%?20?%;padding-bottom:%?40?%}.new_fllow .affiliation .aff_head[data-v-a8d6251c]{height:%?100?%;line-height:%?100?%;padding-left:%?47?%;font-size:%?32?%;color:#999}.new_fllow .affiliation .aff_con[data-v-a8d6251c]{display:flex;text-align:center;padding:0 %?40?%;flex-wrap:wrap}.new_fllow .affiliation .aff_con .aff_item[data-v-a8d6251c]{width:%?100?%;margin-bottom:%?15?%;margin-right:%?15?%}.new_fllow .affiliation .aff_con .aff_item uni-image[data-v-a8d6251c]{margin-bottom:%?15?%;width:%?50?%;height:%?50?%}.new_fllow .affiliation .aff_con .aff_item .peopleimg[data-v-a8d6251c]{border-radius:50%}.new_fllow .affiliation .aff_con .affbox[data-v-a8d6251c]{position:relative}.new_fllow .affiliation .aff_con .affbox .delremind[data-v-a8d6251c]{width:%?32?%;height:%?32?%;border-radius:50%;position:absolute;right:%?-16?%;top:%?-16?%;background:rgba(0,0,0,.5);z-index:2}.new_fllow .affiliation .aff_con .aff_last[data-v-a8d6251c]{width:%?48?%;height:%?48?%;border-radius:50%}.new_fllow .affiliation .aff_con .aff_last uni-image[data-v-a8d6251c]{width:%?48?%;height:%?48?%}.new_fllow .follow_task[data-v-a8d6251c]{height:%?80?%;line-height:%?80?%}.new_fllow #btn[data-v-a8d6251c]{font-size:%?26?%;color:#fff;text-align:center;line-height:%?88?%;width:%?500?%;height:%?88?%;background:#008eff;border-radius:%?29?%;margin:%?30?% auto}',""]),t.exports=e},"17c8":function(t,e,n){var i=n("0f80");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("e1e8171c",i,!0,{sourceMap:!1,shadowMode:!1})},"1fc0":function(t,e,n){"use strict";var i=n("4ea4");n("99af"),n("4160"),n("c975"),n("a434"),n("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("2909")),o=n("553d"),r=n("aa66"),u=i(n("ffdc")),c=n("2345"),s={components:{formItem:u.default},data:function(){return{type:[],typeIndex:null,numList:[],numIndex:null,info:null,customerObj:null,BASE_IMG_URL:c.BASE_IMG_URL,contractList:[],contractIndex:null,contractNum:"",id:"",kehuid:"",plannum:"",plan_id:"",number:"",money:"",return_time:"",return_type:"",remarks:"",flow_staff_id:"",remindPeople:[],DefaultRemind:[],otherForm:[]}},onLoad:function(t){this.kehuid=t.kehuid,this.getNumber(),this.getKehuInfo(),this.otherForm=[],this.getForm(),this.getInfo(),this.getType()},onShow:function(){this.getDefaultRemind()},onUnload:function(){uni.removeStorageSync("remindlist")},methods:{getKehuInfo:function(){var t=this;(0,o.netKehuDetail)({id:this.kehuid}).then((function(e){t.customerObj=e.data}))},getDefaultRemind:function(){var t=this;(0,r.netStaffDefaultReviewer)({type:"contract"}).then((function(e){e=e.data,e.forEach((function(t,e){t.isDel=!1})),t.DefaultRemind=e,t.remindPeople=t.$deWeight([].concat((0,a.default)(e),(0,a.default)(uni.getStorageSync("remindlist"))))}))},getForm:function(){var t=this;(0,r.netSetForm)({type:"examine"}).then((function(e){e=e.data.data,e.forEach((function(e){e.value=e.value?e.value:"",-1!=e.id.indexOf("other")&&t.otherForm.push(e)}))}))},changeOtherData:function(t,e,n){var i=this,a=this.otherForm;a.forEach((function(t,a){t.id==n.id&&(t.value=e,i.$set(i.otherForm,a,t))}))},getType:function(){var t=this;(0,o.netSelect)().then((function(e){t.type=e.data["回款方式"]}))},delRemind:function(t){this.remindPeople.splice(t,1),uni.setStorageSync("remindlist",this.remindPeople)},getInfo:function(){var t=this;(0,o.netContractList)({customer_id:this.kehuid}).then((function(e){t.contractList=e.data}))},changeContractnum:function(t){this.contractNum=this.contractList[t.detail.value].num,this.id=this.contractList[t.detail.value].id,this.getContractinfo(),this.getNum()},getContractinfo:function(){var t=this;(0,o.netContractDetail)({id:this.id}).then((function(e){t.info=e.data}))},getNum:function(){var t=this;(0,o.netPaymentNum)({contract_id:this.id}).then((function(e){t.numList=e.data}))},changeNum:function(t){this.plan_id=this.numList[t.detail.value].id,this.plannum=this.numList[t.detail.value].num},changeType:function(t){this.return_type=this.type[t.detail.value]},changeTime:function(t){this.return_time=t.detail.value},getNumber:function(){var t=this;(0,o.netPaymentNumber)().then((function(e){t.number=e.data.number}))},moreClick:function(){uni.navigateTo({url:"/pagesA/crm/selectMember/selectMember"})},saveFollow:function(){var t=this.number,e=this.money,n=this.return_time,i=this.return_type,a=this.remarks,r=this.info,u=this.plan_id,c=this.remindPeople;if(this.contractNum)if(t)if(e)if(n)if(i)if(c&&0!=c.length){var s=[];c.forEach((function(t){s.push(t.id)}));var l=s.join(","),f={customer_id:r.customer.id,contract_id:r.id,number:t,money:e,return_time:n,return_type:i,plan_id:u,remarks:a,flow_staff_ids:l},d=[];this.otherForm.forEach((function(t){d.push({name:t.id,required:t.config.required,msg:t.config.placeholder,value:t.value})}));for(var m=0;m