硕顺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
16 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pagesB-contract-editPayment"],{"0743":function(t,e,n){var i=n("bec2");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("2c97794d",i,!0,{sourceMap:!1,shadowMode:!1})},"553d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.netKehuList=o,e.netAddkehu=r,e.netSelect=a,e.netSearchStaffList=u,e.netPrevCustomer=c,e.netLianxiren=s,e.netSelectContract=l,e.netCheckName=f,e.netAddFollowRecords=m,e.netContinueIsFollow=d,e.netFollowRecordDetail=v,e.netAddComment=h,e.netGetCommentList=g,e.netStaffList=w,e.netKehuDetail=_,e.netKehuFollow=y,e.daibanKehuFollow=p,e.netAddLianxiren=b,e.netCreateContract=R,e.netContractNum=q,e.netRemoveSeas=C,e.netReceiveKehu=L,e.netTransKehu=x,e.netKeyCollect=k,e.netRemoveColect=P,e.netEditKehu=S,e.netContactList=D,e.netContact=T,e.netContractList=E,e.netKehuFileList=A,e.netConcatDetailInfo=G,e.netContactFileList=F,e.netOperationList=N,e.netEditContactInfo=M,e.netDelContact=I,e.netEditFileName=K,e.netContractDetail=z,e.netPlanListf=j,e.netAddPlan=B,e.netPaymentNum=O,e.netAddPayment=$,e.netPaymentList=U,e.netPaymentNumber=J,e.netPaymentDetail=Q,e.netPaymentApproval=H,e.netContractFileList=V,e.netExamine=W,e.netCancelExamine=X,e.netEditContract=Y,e.netPaymentCancel=Z,e.netEditPaymentInfo=tt,e.netCrmContractList=et,e.netContractProduct=nt,e.netProductClass=it,e.netProductDetail=ot,e.netAddCost=rt,e.netCostList=at,e.netCostDetail=ut,e.netEditCost=ct,e.netSubordList=st,e.netGetBriefdata=lt,e.netTurnoverList=ft,e.netGetreceivableStaff=mt,e.netGetOthersReceivable=dt,e.netGetTargetSelect=vt,e.netGetDepTargetlist=ht,e.netGetDefaultSelfDetail=gt,e.netSetMymubiao=wt,e.netGetRecordList=_t,e.netGetRecordDetail=yt,e.netGetBumenList=pt,e.netGetTealList=bt,e.netGetGongsiList=Rt,e.netSetTargetMoney=qt,e.netGetDefaultMoney=Ct,e.netQueryData=Lt;var i=n("2345");function o(t){return(0,i.myRequest)("customer/getList",t)}function r(t){return(0,i.myRequest)("customer/addCustomer",t)}function a(){return(0,i.myRequest)("common/selectOption")}function u(t){return(0,i.myRequest)("customer/getSearchStaffList",t)}function c(t){return(0,i.myRequest)("customer/getSelectList",t)}function s(t){return(0,i.myRequest)("contacts/getSelectList",t)}function l(t){return(0,i.myRequest)("contract/getSelectList",t)}function f(t){return(0,i.myRequest)("customer/selectName",t)}function m(t){return(0,i.myRequest)("record/createRecord",t)}function d(t){return(0,i.myRequest)("record/record_add",t)}function v(t){return(0,i.myRequest)("record/getRecordDetail",t)}function h(t){return(0,i.myRequest)("record/addComment",t)}function g(t){return(0,i.myRequest)("record/commentList",t)}function w(t){return(0,i.myRequest)("common/getSelectStaff",t)}function _(t){return(0,i.myRequest)("customer/customerDetail",t)}function y(t){return(0,i.myRequest)("record/getList",t)}function p(t){return(0,i.myRequest)("record/getcustomerList",t)}function b(t){return(0,i.myRequest)("contacts/addContacts",t)}function R(t){return(0,i.myRequest)("contract/addContract",t)}function q(){return(0,i.myRequest)("contract/getContractNumber")}function C(t){return(0,i.myRequest)("customer/moveSeas",t)}function L(t){return(0,i.myRequest)("customer/receive",t)}function x(t){return(0,i.myRequest)("customer/transfer",t)}function k(t){return(0,i.myRequest)("customer/collect",t)}function P(t){return(0,i.myRequest)("customer/cancelCollect",t)}function S(t){return(0,i.myRequest)("customer/editCustomer",t)}function D(t){return(0,i.myRequest)("contacts/getList",t)}function T(t){return(0,i.myRequest)("contacts/getSelectList",t)}function E(t){return(0,i.myRequest)("contract/getCustomerContacts",t)}function A(t){return(0,i.myRequest)("customer/getFilesList",t)}function G(t){return(0,i.myRequest)("contacts/getDetail",t)}function F(t){return(0,i.myRequest)("contacts/getFilesList",t)}function N(t){return(0,i.myRequest)("operation/getList",t)}function M(t){return(0,i.myRequest)("contacts/editContacts",t)}function I(t){return(0,i.myRequest)("contacts/delContacts",t)}function K(t){return(0,i.myRequest)("file/editName",t)}function z(t){return(0,i.myRequest)("contract/getDetail",t)}function j(t){return(0,i.myRequest)("receivables_plan/getList",t)}function B(t){return(0,i.myRequest)("receivables_plan/addPlan",t)}function O(t){return(0,i.myRequest)("receivables_plan/getSelectList",t)}function $(t){return(0,i.myRequest)("receivables/addReceivables",t)}function U(t){return(0,i.myRequest)("receivables/getList",t)}function J(){return(0,i.myRequest)("receivables/getReceivablesNumber")}function Q(t){return(0,i.myRequest)("receivables/getDetail",t)}function H(t){return(0,i.myRequest)("examine_record/getList",t)}function V(t){return(0,i.myRequest)("contract/getFilesList",t)}function W(t){return(0,i.myRequest)("examine_record/examine",t)}function X(t){return(0,i.myRequest)("contract/cancel",t)}function Y(t){return(0,i.myRequest)("contract/editContract",t)}function Z(t){return(0,i.myRequest)("receivables/cancel",t)}function tt(t){return(0,i.myRequest)("receivables/editReceivables",t)}function et(t){return(0,i.myRequest)("contract/getList",t)}function nt(t){return(0,i.myRequest)("product/getSelectList",t)}function it(t){return(0,i.myRequest)("product/getProducttypeList",t)}function ot(t){return(0,i.myRequest)("product/getProductDetail",t)}function rt(t){return(0,i.myRequest)("consume/addConsume",t)}function at(t){return(0,i.myRequest)("consume/getList",t)}function ut(t){return(0,i.myRequest)("consume/getDetail",t)}function ct(t){return(0,i.myRequest)("consume/editConsume",t)}function st(t){return(0,i.myRequest)("customer/getLowerCustomer",t)}function lt(t){return(0,i.myRequest)("index/briefing",t)}function ft(t){return(0,i.myRequest)("index/contractRanding",t)}function mt(){return(0,i.myRequest)("statistics/receivablesStatistics")}function dt(){return(0,i.myRequest)("statistics/staffReceivablesStatistics")}function vt(){return(0,i.myRequest)("achievement/getDepartment")}function ht(t){return(0,i.myRequest)("achievement/getStaffList",t)}function gt(t){return(0,i.myRequest)("achievement/getMyAchievementDetail",t)}function wt(t){return(0,i.myRequest)("achievement/staffEditAchievement",t)}function _t(t){return(0,i.myRequest)("achievement/editRecords",t)}function yt(t){return(0,i.myRequest)("achievement/getRecordsDetail",t)}function pt(t){return(0,i.myRequest)("achievement/getDepartmentList",t)}function bt(t){return(0,i.myRequest)("achievement/getTeamList",t)}function Rt(t){return(0,i.myRequest)("achievement/getCompanyAchievement",t)}function qt(t){return(0,i.myRequest)("achievement/addAchievement",t)}function Ct(t){return(0,i.myRequest)("achievement/getAchievementDetail",t)}function Lt(t){return(0,i.myRequest)("index/search",t)}},"5d8c":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"new_fllow"},[n("v-uni-view",{staticClass:"fllow_form"},[n("v-uni-view",[n("v-uni-text",[t._v("*")]),t._v("回款编号")],1),n("v-uni-view",{staticClass:"form_input"},[n("v-uni-input",{attrs:{type:"text","placeholder-style":"font-size:30rpx;color: #999;",placeholder:"请输入回款编号"},model:{value:t.number,callback:function(e){t.number=e},expression:"number"}})],1)],1),n("v-uni-view",{staticClass:"fllow_form"},[n("v-uni-view",[n("v-uni-text",[t._v("*")]),t._v("客户名称")],1),n("v-uni-view",{staticClass:"form_right"},[n("v-uni-view",[t._v(t._s(t.info.customer.name))]),n("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1)],1),n("v-uni-view",{staticClass:"fllow_form"},[n("v-uni-view",[n("v-uni-text",[t._v("*")]),t._v("合同编号")],1),n("v-uni-view",{staticClass:"form_right"},[n("v-uni-view",[t._v(t._s(t.info.contract.num))]),n("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1)],1),n("v-uni-view",{staticClass:"fllow_form"},[n("v-uni-view",[n("v-uni-text",[t._v("*")]),t._v("回款期数")],1),n("v-uni-picker",{attrs:{range:t.numList,disabled:!0,value:t.index,"range-key":"num"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeNum.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"form_right"},[n("v-uni-view",[t._v(t._s(t.plannum?t.plannum:"点击选择"))]),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",[t._v("*")]),t._v("回款日期")],1),n("v-uni-picker",{attrs:{mode:"date"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTime.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"form_right"},[n("v-uni-view",[t._v(t._s(t.return_time?t.return_time:"点击选择"))]),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",[t._v("*")]),t._v("回款金额")],1),n("v-uni-view",{staticClass:"form_input"},[n("v-uni-input",{attrs:{type:"text","placeholder-style":"font-size:30rpx;color: #999;",placeholder:"请输入计划回款金额"},model:{value:t.money,callback:function(e){t.money=e},expression:"money"}})],1)],1),n("v-uni-view",{staticClass:"fllow_form"},[n("v-uni-view",[n("v-uni-text",[t._v("*")]),t._v("计划回款方式")],1),n("v-uni-picker",{attrs:{value:t.index,range:t.type},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeType.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"form_right"},[n("v-uni-view",[t._v(t._s(t.return_type?t.return_type:"点击选择"))]),n("v-uni-view",{staticClass:"iconfont icon-arrows_right"})],1)],1)],1),n("v-uni-view",{staticClass:"fllow_area"},[n("v-uni-view",{staticClass:"area_head"},[t._v("备注")]),n("v-uni-textarea",{attrs:{placeholder:"请输入备注","placeholder-style":"color:#999"},model:{value:t.remarks,callback:function(e){t.remarks=e},expression:"remarks"}})],1),n("examine-template",{attrs:{remindPeople:t.remindPeople},on:{delExamine:function(e){arguments[0]=e=t.$handleEvent(e),t.delRemind.apply(void 0,arguments)}}}),n("v-uni-view",{staticClass:"btn_g bg-blue button-hover round",attrs:{id:"btn"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.saveFollow.apply(void 0,arguments)}}},[t._v("保存")])],1)},r=[]},bec2:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 基本颜色 */.new_fllow[data-v-194710bc]{margin-top:%?40?%;font-size:%?28?%}.new_fllow .fllow_form[data-v-194710bc]{display:flex;justify-content:space-between;height:%?100?%;line-height:%?100?%;background-color:#fff;border-bottom:%?1?% solid #eaeaea;padding:0 %?24?%}.new_fllow .fllow_form .form_right[data-v-194710bc]{display:flex;color:#999}.new_fllow .fllow_form .form_right uni-image[data-v-194710bc]{width:%?40?%;height:%?40?%;margin:%?28?% %?5?% 0 0}.new_fllow .fllow_form uni-text[data-v-194710bc]{color:red;margin-left:%?10?%}.new_fllow .fllow_form .form_input uni-input[data-v-194710bc]{height:92%;text-align:right;margin-right:%?10?%}.new_fllow .fllow_form .fllow_button[data-v-194710bc]{margin-top:%?15?%}.new_fllow .imglist[data-v-194710bc]{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-194710bc]{width:%?160?%;height:%?160?%;margin-right:%?14?%;position:relative;margin-bottom:%?24?%;border:%?1?% solid #eaeaea}.new_fllow .imglist .imgbox .delimg[data-v-194710bc]{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-194710bc]{width:%?160?%;height:%?160?%}.new_fllow .fllow_area[data-v-194710bc]{background-color:#fff;margin-bottom:%?30?%;padding-bottom:%?30?%;color:#999}.new_fllow .fllow_area .area_head[data-v-194710bc]{height:%?100?%;line-height:%?100?%;font-size:%?32?%;padding:0 %?70?%}.new_fllow .fllow_area .area_head uni-text[data-v-194710bc]{color:red}.new_fllow .fllow_area uni-textarea[data-v-194710bc]{width:80%;height:%?300?%;padding:%?30?%;background:#f8f8f8;margin:0 auto}.new_fllow .info_head[data-v-194710bc]{height:%?80?%;line-height:%?80?%;font-size:%?24?%;color:#999;padding-left:%?24?%}.new_fllow .affiliation[data-v-194710bc]{background-color:#fff;margin-bottom:%?20?%;padding-bottom:%?40?%}.new_fllow .affiliation .aff_head[data-v-194710bc]{height:%?100?%;line-height:%?100?%;padding-left:%?30?%}.new_fllow .affiliation .aff_head uni-text[data-v-194710bc]{color:red;margin-left:%?10?%}.new_fllow .affiliation .aff_con[data-v-194710bc]{display:flex;text-align:center;flex-wrap:wrap}.new_fllow .affiliation .aff_con .aff_item[data-v-194710bc]{width:%?100?%;margin-right:%?15?%;border-radius:50%;margin-bottom:%?15?%}.new_fllow .affiliation .aff_con .aff_item uni-image[data-v-194710bc]{margin-bottom:%?15?%;width:%?60?%;height:%?60?%}.new_fllow .affiliation .aff_con .affbox[data-v-194710bc]{position:relative}.new_fllow .affiliation .aff_con .affbox .delremind[data-v-194710bc]{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 uni-image[data-v-194710bc]{margin-bottom:%?15?%;width:%?48?%;height:%?48?%}.new_fllow .follow_task[data-v-194710bc]{height:%?80?%;line-height:%?80?%}#btn[data-v-194710bc]{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},c4e9:function(t,e,n){"use strict";var i=n("0743"),o=n.n(i);o.a},c9c4:function(t,e,n){"use strict";n.r(e);var i=n("f892"),o=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=o.a},d921:function(t,e,n){"use strict";n.r(e);var i=n("5d8c"),o=n("c9c4");for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("c4e9");var a,u=n("f0c5"),c=Object(u["a"])(o["default"],i["b"],i["c"],!1,null,"194710bc",null,!1,i["a"],a);e["default"]=c.exports},f892:function(t,e,n){"use strict";n("4160"),n("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("553d"),o=n("2345"),r={data:function(){return{type:[],numList:[],info:null,id:"",contractid:"",plannum:"",plan_id:"",number:"",money:"",return_time:"",return_type:"",remarks:"",flow_staff_id:"",BASE_IMG_URL:o.BASE_IMG_URL,remindPeople:[],remindType:"contract"}},onLoad:function(t){this.id=t.id,this.contractid=t.contractid,this.getType(),this.getNum(),this.getPaymentInfo()},methods:{getPaymentInfo:function(){var t=this;(0,i.netPaymentDetail)({id:this.id}).then((function(e){e=e.data,t.info=e,t.number=e.number,t.plannum=e.plan.num,t.return_time=e.return_time,t.money=e.money,t.return_type=e.return_type,t.remarks=e.remarks}))},getType:function(){var t=this;(0,i.netSelect)().then((function(e){t.type=e.data["回款方式"]}))},getNum:function(){var t=this;(0,i.netPaymentNum)({contract_id:this.contractid}).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},moreClick:function(){uni.navigateTo({url:"/pagesA/crm/selectMember/selectMember"})},saveFollow:function(){var t=this.id,e=this.number,n=this.money,o=this.return_time,r=this.return_type,a=this.remarks,u=(this.info,this.remindPeople);if(e)if(n)if(o)if(r)if(u&&0!=u.length){var c=[];u.forEach((function(t){c.push(t.id)}));var s=c.join(","),l={id:t,number:e,money:n,return_time:o,return_type:r,remarks:a,flow_staff_ids:s,customer_id:this.info.customer.id,contract_id:this.info.contract.id};(0,i.netEditPaymentInfo)(l).then((function(t){uni.showToast({title:t.msg,icon:"none"}),setTimeout((function(){uni.navigateBack({delta:1})}),2e3)}))}else uni.showToast({title:"请选择回款审批人",icon:"none"});else uni.showToast({title:"请选择回款方式",icon:"none"});else uni.showToast({title:"请选择回款日期",icon:"none"});else uni.showToast({title:"请输入回款金额",icon:"none"});else uni.showToast({title:"请输入回款编号",icon:"none"})}}};e.default=r}}]);