1 line
4.1 KiB
JavaScript
1 line
4.1 KiB
JavaScript
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/business/detail"],{"4c448":function(t,n,e){"use strict";var i=e("9462"),o=e.n(i);o.a},"6e2b":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("0c59"),o=e("dc92"),s={created:function(){},data:function(){return{id:"",info:{},BASE_IMG_URL:i.BASE_IMG_URL,current:0,lists:[{name:"跟进记录",status:0},{name:"基本信息",status:1},{name:"合同",status:2},{name:"推进历史",status:3}],options:[{title:"初期沟通"},{title:"立项跟踪"},{title:"方案/报价"},{title:"谈判审核"},{title:"赢单"}],options_active:0}},onLoad:function(t){this.id=t.id},onHide:function(){this.$refs.popup.close()},onShow:function(){this.info={},this.getInfo()},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("pagesA/business/baseInfo").then(function(){return resolve(e("fbea"))}.bind(null,e)).catch(e.oe)},relatedContract:function(){e.e("pagesA/business/relatedContract").then(function(){return resolve(e("2dd7"))}.bind(null,e)).catch(e.oe)},advanceHistory:function(){e.e("pagesA/business/advanceHistory").then(function(){return resolve(e("7dcc"))}.bind(null,e)).catch(e.oe)}},methods:{change:function(t){this.current=t},tabs_change:function(t){this.current=t,this.mescroll.resetUpScroll()},moreClick:function(){this.$refs.popup.open()},getInfo:function(){var t=this;(0,o.netBusinessDetail)({id:this.id}).then((function(n){t.info=n.data;var e=n.data.type;5==e?(t.options=[{title:"初期沟通"},{title:"立项跟踪"},{title:"方案/报价"},{title:"谈判审核"},{title:"输单"}],t.options_active=4):6==e?(t.options=[{title:"初期沟通"},{title:"立项跟踪"},{title:"方案/报价"},{title:"谈判审核"},{title:"无效"}],t.options_active=4):t.options_active=e}))},followClick:function(n,e){t.navigateTo({url:"/pagesA/crm/customerManagement/newFllow/newFllow?id="+n+"&type="+e})},toTrans:function(n){t.navigateTo({url:"/pagesA/business/trans?id="+n})},toEditcontract:function(n){t.navigateTo({url:"/pagesA/business/editBusiness?id="+this.id})},toDelBusiness:function(n){t.showModal({title:"提示",content:"请确认是否删除?",success:function(e){e.confirm&&(0,o.netDelBusiness)({id:n}).then((function(n){t.showToast({title:n.msg,icon:"none"}),setTimeout((function(){t.navigateBack({delta:1})}),2e3)}))}})},toAddContract:function(){t.navigateTo({url:"/pagesA/crm/contract/contract?id="+this.info.customer.id+"&businessid="+this.id})},advanceBusiness:function(){t.navigateTo({url:"/pagesA/business/advance?id="+this.id+"&status="+this.info.type})}}};n.default=s}).call(this,e("543d")["default"])},"7fb1":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return s})),e.d(n,"a",(function(){return i}));var i={uTabs:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-tabs/u-tabs")]).then(e.bind(null,"5924"))},uniPopup:function(){return e.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(e.bind(null,"6f9d"))}},o=function(){var t=this,n=t.$createElement,e=(t._self._c,t.info?t.__map(t.options,(function(n,e){var i=t.__get_orig(n),o=t.options.length;return{$orig:i,g0:o}})):null);t.$mp.data=Object.assign({},{$root:{l0:e}})},s=[]},9462:function(t,n,e){},a1bc:function(t,n,e){"use strict";e.r(n);var i=e("6e2b"),o=e.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(s);n["default"]=o.a},d847:function(t,n,e){"use strict";e.r(n);var i=e("7fb1"),o=e("a1bc");for(var s in o)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(s);e("4c448");var u=e("f0c5"),c=Object(u["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=c.exports},f880:function(t,n,e){"use strict";(function(t,n){var i=e("4ea4");e("8886");i(e("66fd"));var o=i(e("d847"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])}},[["f880","common/runtime","common/vendor"]]]); |