crm_second_opening_mini/pages/index/groupCompany/contract/editPayment.js

1 line
3.2 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/groupCompany/contract/editPayment"],{"0da0":function(t,n,e){"use strict";e.r(n);var i=e("76ea"),a=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=a.a},"1b61":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){}));var i=function(){var t=this.$createElement;this._self._c},a=[]},"3c33":function(t,n,e){"use strict";e.r(n);var i=e("1b61"),a=e("0da0");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("c2a5");var r=e("f0c5"),u=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=u.exports},"76ea":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("76dd"),a=e("0c59"),o={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:a.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(n){n=n.data,t.info=n,t.number=n.number,t.plannum=n.plan.num,t.return_time=n.return_time,t.money=n.money,t.return_type=n.return_type,t.remarks=n.remarks}))},getType:function(){var t=this;(0,i.netSelect)().then((function(n){t.type=n.data["回款方式"]}))},getNum:function(){var t=this;(0,i.netPaymentNum)({contract_id:this.contractid}).then((function(n){t.numList=n.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(){t.navigateTo({url:"/pagesA/crm/selectMember/selectMember"})},saveFollow:function(){var n=this.id,e=this.number,a=this.money,o=this.return_time,r=this.return_type,u=this.remarks,c=(this.info,this.remindPeople);if(e)if(a)if(o)if(r)if(c&&0!=c.length){var s=[];c.forEach((function(t){s.push(t.id)}));var d=s.join(","),f={id:n,number:e,money:a,return_time:o,return_type:r,remarks:u,flow_staff_ids:d,customer_id:this.info.customer.id,contract_id:this.info.contract.id};(0,i.netEditPaymentInfo)(f).then((function(n){t.showToast({title:n.msg,icon:"none"}),setTimeout((function(){t.navigateBack({delta:1})}),2e3)}))}else t.showToast({title:"请选择回款审批人",icon:"none"});else t.showToast({title:"请选择回款方式",icon:"none"});else t.showToast({title:"请选择回款日期",icon:"none"});else t.showToast({title:"请输入回款金额",icon:"none"});else t.showToast({title:"请输入回款编号",icon:"none"})}}};n.default=o}).call(this,e("543d")["default"])},"872b":function(t,n,e){},bd4d:function(t,n,e){"use strict";(function(t,n){var i=e("4ea4");e("8886");i(e("66fd"));var a=i(e("3c33"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(a.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},c2a5:function(t,n,e){"use strict";var i=e("872b"),a=e.n(i);a.a}},[["bd4d","common/runtime","common/vendor"]]]);