1 line
9.4 KiB
JavaScript
1 line
9.4 KiB
JavaScript
|
require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/crm/contract/contract"],{"0d83":function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uniNumberBox:function(){return i.e("uni_modules/uni-number-box/components/uni-number-box/uni-number-box").then(i.bind(null,"2e8f"))}},s=function(){var t=this.$createElement,e=(this._self._c,this.productList.length),i=1!=this.customerTeam.length&&0!=this.customerTeam.length&&0!=this.methodArr.length&&!this.isRequired,n=this.distributionArr.length;this.$mp.data=Object.assign({},{$root:{g0:e,g1:i,g2:n}})},o=[]},"16cd":function(t,e,i){"use strict";(function(t,e){var n=i("4ea4");i("8886");n(i("66fd"));var s=n(i("ce7b"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(s.default)}).call(this,i("bc2e")["default"],i("543d")["createPage"])},"2d8e":function(t,e,i){},"9fe1":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("0c59"),s=i("dc92"),o=i("76dd"),r=(i("c7eb"),i("8683")),c={mixins:[r.commonF],components:{formItem:function(){Promise.all([i.e("common/vendor"),i.e("components/form/formitem")]).then(function(){return resolve(i("d7bf"))}.bind(null,i)).catch(i.oe)},popupList:function(){Promise.all([i.e("common/vendor"),i.e("components/selectProduct/index")]).then(function(){return resolve(i("a99f"))}.bind(null,i)).catch(i.oe)},popupProductConfig:function(){i.e("components/selectProductConfig/index").then(function(){return resolve(i("55ad"))}.bind(null,i)).catch(i.oe)},fixedApproval:function(){i.e("components/fixedApproval").then(function(){return resolve(i("d3f7"))}.bind(null,i)).catch(i.oe)},selectCustomer:function(){Promise.all([i.e("common/vendor"),i.e("components/selectCustomer")]).then(function(){return resolve(i("5bcd"))}.bind(null,i)).catch(i.oe)},selectLink:function(){i.e("components/selectLink").then(function(){return resolve(i("4c35"))}.bind(null,i)).catch(i.oe)},selectStaff:function(){Promise.all([i.e("common/vendor"),i.e("components/selectStaff")]).then(function(){return resolve(i("16c8"))}.bind(null,i)).catch(i.oe)},selectTeamMembers:function(){i.e("components/selectTeammembers").then(function(){return resolve(i("7398"))}.bind(null,i)).catch(i.oe)},selectBusiness:function(){Promise.all([i.e("common/vendor"),i.e("components/selectBusiness")]).then(function(){return resolve(i("be33"))}.bind(null,i)).catch(i.oe)}},data:function(){return{noClick:!0,name:"",num:"",order_date:"",money:"",start_time:"",end_time:"",order_staff_id:"",staffName:"",customerlist:[],customer_id:"",customerName:"",contacts_id:"",contactName:"",dateTime:null,dateTimeArray:null,dateArr:null,startYear:2e3,BASE_IMG_URL:n.BASE_IMG_URL,DefaultRemind:[],remindPeople:[],remindType:"contract",listForm:[],productList:[],total_price:0,configIndex:null,approvalPro:{},methodArr:["五五","三六一","三七"],methodIndex:null,distributionArr:[],distributionIndex:null,customerTeam:[],businessObj:{},business_id:"",isRequired:!1}},onLoad:function(t){this.customer_id=t.id,t.businessid&&(this.business_id=t.businessid,this.getDefaultBusiness(),this.getBusinessProduct()),this.getNumber(),this.getCustomerList(),this.getProcess(),this.getdisType()},methods:{changeRequired:function(t){this.isRequired=t.detail.value},getDefaultBusiness:function(){var t=this;(0,s.netRelationBusiness)({customer_id:this.customer_id}).then((function(e){var i=e.data;i.forEach((function(e){e.id==t.business_id&&(t.businessObj=e)}))}))},getBusinessProduct:function(){var t=this;(0,s.netBusinessDetail)({id:this.business_id}).then((function(e){var i=e.data.product;i.forEach((function(t){t.id=t.product_id})),t.productList=i}))},changeBusiness:function(){this.customer_id?this.$refs.businessChild.init(this.customer_id):t.showToast({title:"请先选择客户",icon:"none"})},sureBusiness:function(t){this.businessObj=t},getdisType:function(){var t=this;(0,s.netDistributionType)().then((function(e){t.methodArr=e.data}))},changeMethod:function(t){var e=this;this.methodIndex=t.detail.v
|