crm_second_opening_mini/pagesA/business/screen.js

11 lines
3.1 KiB
JavaScript

require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/business/screen"],{"173c":function(t,e,n){"use strict";var s=n("cf47"),i=n.n(s);i.a},9958:function(t,e,n){"use strict";n.r(e);var s=n("f47e"),i=n("d4e3");for(var u in i)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(u);n("173c");var r=n("f0c5"),o=Object(r["a"])(i["default"],s["b"],s["c"],!1,null,"2e05b504",null,!1,s["a"],void 0);e["default"]=o.exports},b37b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s={components:{selectCustomer:function(){Promise.all([n.e("common/vendor"),n.e("components/selectCustomer")]).then(function(){return resolve(n("5bcd"))}.bind(null,n)).catch(n.oe)},selectStaff:function(){Promise.all([n.e("common/vendor"),n.e("components/selectStaff")]).then(function(){return resolve(n("16c8"))}.bind(null,n)).catch(n.oe)}},data:function(){return{times:"",staffObj:{},customerObj:{},start_time:"",end_time:"",showIndex:1,contract_status:null,statusArr:[{id:1,name:"未成交"},{id:2,name:"已成交"}],statusIndex:null}},methods:{init:function(t){this.$refs.popup.open(),t.timeArr&&0!=t.timeArr.length&&1==this.showIndex&&(this.start_time=t.timeArr[0],this.end_time=t.timeArr[1]),this.statusIndex=t.statusIndex},close:function(){this.$refs.popup.close()},changeStatus:function(t){this.statusIndex=t.detail.value},toSelectCustomer:function(){this.$refs.customerChild.init()},getCustomerinfo:function(t){this.customerObj=t},toSelectStaff:function(){this.$refs.staffChild.init()},sureStaff:function(t){this.staffObj=t},changeStartTime:function(t){this.showIndex=2,this.start_time=t.detail.value,this.end_time||(this.end_time=t.detail.value)},changeEndTime:function(t){this.showIndex=2,this.end_time=t.detail.value,this.start_time||(this.start_time=t.detail.value)},reset:function(){this.customerObj={},this.staffObj={},this.start_time="",this.end_time="",this.statusIndex=null},sureQuery:function(){var t={createtime:this.start_time&&this.end_time?this.start_time+","+this.end_time:"",customer_id:this.customerObj.id?this.customerObj.id:"",staff_id:this.staffObj.id?this.staffObj.id:"",contract_status:this.statusArr[this.statusIndex]?this.statusArr[this.statusIndex].id:""};this.close(),this.$emit("sureParams",t)}}};e.default=s},cf47:function(t,e,n){},d4e3:function(t,e,n){"use strict";n.r(e);var s=n("b37b"),i=n.n(s);for(var u in s)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return s[t]}))}(u);e["default"]=i.a},f47e:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return s}));var s={uniPopup:function(){return n.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(n.bind(null,"6f9d"))}},i=function(){var t=this.$createElement;this._self._c},u=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'pagesA/business/screen-create-component',
{
'pagesA/business/screen-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("9958"))
})
},
[['pagesA/business/screen-create-component']]
]);