1 line
5.4 KiB
JavaScript
1 line
5.4 KiB
JavaScript
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/groupCompany/contract/contractDetail"],{"0875":function(t,n,e){"use strict";e.r(n);var i=e("8a6f"),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},"0e79":function(t,n,e){"use strict";var i=e("b1eb"),o=e.n(i);o.a},"7a9b":function(t,n,e){"use strict";(function(t,n){var i=e("4ea4");e("8886");i(e("66fd"));var o=i(e("f553"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"8a6f":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("0c59"),o=e("c0a8"),a=e("76dd"),c=e("dc92"),s={mixins:[o.pageJumps],created:function(){},data:function(){return{id:"",contract_id:"",relation_id:"",relation_type:3,info:{},srollLeft:0,taskShow:!1,show:!1,fileList:[],opera_list:[],plan_list:[],payment_list:[],type:3,types:3,BASE_IMG_URL:i.BASE_IMG_URL,list:[{num:"123",name:"回款记录"},{num:"321",name:"回款计划"},{num:"222",name:"操作记录"}],current:0,lists:[{name:"跟进记录",status:0},{name:"基本信息",status:1}],payment_approval:{}}},onLoad:function(t){this.id=t.id},onHide:function(){this.show=!1},onShow:function(){this.info=null,this.getInfo(),this.getOperalist(),this.getPlanlist(),this.getPaymentlist(),this.getFile(),this.getApprovalList()},components:{customerDynamic:function(){Promise.all([e.e("common/vendor"),e.e("components/content/customerDynamic/customerDynamic")]).then(function(){return resolve(e("dd11"))}.bind(null,e)).catch(e.oe)},baseInfo:function(){e.e("pages/index/groupCompany/contract/baseInfo").then(function(){return resolve(e("ccbc"))}.bind(null,e)).catch(e.oe)}},methods:{getApprovalList:function(){var t=this,n={type:"contract",relation_id:this.id};(0,c.netApprovalDetail)(n).then((function(n){t.payment_approval=n.data}))},change:function(t){this.current=t},tabs_change:function(t){this.current=t,this.mescroll.resetUpScroll()},moreClick:function(){this.show=!0},onClose:function(){this.show=!1},accessory:function(n){t.navigateTo({url:"/pages/index/groupCompany/attachment/attachment?id="+n+"&types="+this.types})},lookDetail:function(n){-1!=n.types.indexOf("image")?t.previewImage({urls:[n.file_path]}):t.downloadFile({url:n.file_path,success:function(n){t.openDocument({filePath:n.tempFilePath,success:function(t){return console.log("成功打开文档")}})},fail:function(t){console.log(t,"shibai")}})},getFile:function(){var t=this,n={contract_id:this.id};(0,a.netContractFileList)(n).then((function(n){t.fileList=n.data}))},getPlanlist:function(){var t=this;(0,a.netPlanListf)({contract_id:this.id}).then((function(n){t.plan_list=n.data.data}))},getPaymentlist:function(){var t=this;(0,a.netPaymentList)({contract_id:this.id}).then((function(n){t.payment_list=n.data.data}))},getOperalist:function(){var t=this,n={relation_type:3,relation_id:this.id};(0,a.netOperationList)(n).then((function(n){t.opera_list=n.data}))},payment:function(n){t.navigateTo({url:"/pages/index/groupCompany/contract/returned?id="+n+"&kehuid="+this.info.customer.id})},plan:function(n){t.navigateTo({url:"/pages/index/groupCompany/contract/plan?id="+n+"&kehuid="+this.info.customer.id})},opera:function(n){t.navigateTo({url:"/pages/index/groupCompany/contract/operation?id="+n+"&relation_type="+this.type})},addContract:function(n){t.navigateTo({url:"/pagesA/crm/contract/contract?id="+n})},getInfo:function(){var t=this;(0,a.netContractDetail)({id:this.id}).then((function(n){t.info=n.data}))},toKehuInfo:function(){t.navigateTo({url:"/pages/index/groupCompany/groupCompany?id="+this.info.customer.id})},toAddPlan:function(n){t.navigateTo({url:"/pages/index/groupCompany/contract/addPaymentPlan?id="+n+"&kehuid="+this.info.customer.id})},toAddPayment:function(n){t.navigateTo({url:"/pages/index/groupCompany/contract/addPayment?id="+n+"&kehuid="+this.info.customer.id})},toEditcontract:function(n){t.navigateTo({url:"/pages/index/groupCompany/contract/editContract?id="+n+"&kehuid="+this.info.customer.id})},rem
|