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 line
88 KiB
1 line
88 KiB
4 years ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7122"],{"+YG/":function(t,e,i){"use strict";var a=i("eI0G");i.n(a).a},"+uuU":function(t,e,i){},"/akV":function(t,e,i){"use strict";var a=i("8OTK"),n=i("7Dod"),s=i("d9x6"),l=i("1DpC"),o=i("7Qib"),c=i("dAOq"),r=i("jHPx"),d={name:"RelativeReturnMoney",components:{CRMAllCreate:a.default,CRMFullScreenDetail:function(){return Promise.all([i.e("chunk-9e99"),i.e("chunk-7a7a"),i.e("chunk-1409"),i.e("chunk-4ee5")]).then(i.bind(null,"3z7q"))}},mixins:[c.a],props:{id:[String,Number],crmType:{type:String,default:""},isSeas:{type:Boolean,default:!1},detail:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1,list:[],fieldList:[],tableHeight:"250px",showFullDetail:!1,showFullCrmType:"receivables",showFullId:"",createCrmType:"receivables_plan",isCreate:!1,palnList:[],planFieldList:[],createActionInfo:{}}},inject:["rootTabs"],computed:{},watch:{id:function(t){this.list=[],this.palnList=[],this.getList(),this.getPlanList()},"rootTabs.currentName":function(t){"RelativeReturnMoney"===t&&(this.getList(!1),this.getPlanList(!1))}},mounted:function(){this.planFieldList=[{prop:"num",width:"200",label:"期数"},{prop:"customer_name",width:"200",label:"客户名称"},{prop:"contract_name",width:"200",label:"合同编号"},{prop:"money",width:"200",label:"计划回款金额"},{prop:"return_date",width:"200",label:"计划回款日期"},{prop:"return_type",width:"200",label:"计划回款方式"},{prop:"remind",width:"200",label:"提前几日提醒"},{prop:"remark",width:"200",label:"备注"}],this.getPlanList(),this.fieldList=[{prop:"number",width:"200",label:"回款编号"},{prop:"contract_name",width:"200",label:"合同名称"},{prop:"contract_money",width:"200",label:"合同金额"},{prop:"money",width:"200",label:"回款金额"},{prop:"plan_id_info",width:"200",label:"期数"},{prop:"owner_user_name",width:"200",label:"负责人"},{prop:"check_status",width:"200",label:"状态"},{prop:"return_time",width:"200",label:"回款日期"}],this.getList()},methods:{getPlanList:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.loading=e,(0,{customer:n.B,contract:s.k}[this.crmType])(this.getParams()).then(function(e){t.loading=!1;var i=e.data.list||[];i.forEach(function(t){t.returnDate=Object(o.r)(t.returnDate)}),t.palnList=i}).catch(function(){t.loading=!1})},getList:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.loading=e,(0,{customer:n.A,contract:s.j}[this.crmType])(this.getParams()).then(function(e){t.loading=!1,t.list=e.data.list}).catch(function(){t.loading=!1})},getParams:function(){return"customer"===this.crmType?{customer_id:this.id,pageType:"all"}:"contract"===this.crmType?{contract_id:this.id,pageType:"all"}:{}},handleRowClick:function(t,e,i){"number"==e.property&&(this.showFullId=t.receivables_id,this.showFullCrmType="receivables",this.showFullDetail=!0)},createClick:function(t){this.createActionInfo={type:"relative",crmType:this.crmType,data:{}},"money"==t?("contract"===this.crmType?(this.createActionInfo.data.customer=Object(o.t)(this.detail),this.createActionInfo.data.contract=Object(o.t)(this.detail)):"customer"===this.crmType&&(this.createActionInfo.data.customer=this.detail),this.createCrmType="receivables",this.isCreate=!0):"plan"==t&&("contract"===this.crmType?(this.createActionInfo.data.customer=Object(o.t)(this.detail),this.createActionInfo.data.contract=Object(o.t)(this.detail)):"customer"===this.crmType&&(this.createActionInfo.data.customer=this.detail),this.createCrmType="receivables_plan",this.isCreate=!0)},saveSuccess:function(){"receivables"==this.createCrmType?(this.$bus.emit("crm-tab-num-update"),this.getList()):this.getPlanList()},handleFile:function(t,e){var i=this;"edit"==t?(this.createActionInfo={type:"update",id:e.row.plan_id},this.createCrmType="receivables_plan",this.isCreate=!0):"delete"==t&&this.$confirm("您确定要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(l.g)({id:e.row.plan_id}).t
|