list.js 7.5 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/trade/list"],{1603:function(t,e,n){"use strict";(function(t,e){var o=n("4ea4");n("2ab2");o(n("66fd"));var a=o(n("b355"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},9966:function(t,e,n){"use strict";var o=n("c49b"),a=n.n(o);a.a},a2e0:function(t,e,n){"use strict";(function(t){var o=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a,u=o(n("448a")),c=o(n("9523")),r=n("66f6"),i=o(n("1bf8"));function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){(0,c.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l,f={components:{wmWatermark:function(){n.e("components/wm-watermark/wm-watermark").then(function(){return resolve(n("e144"))}.bind(null,n)).catch(n.oe)}},data:function(){var e=t.getStorageSync("MD_userInfo2");return{userInfo2:e,thtObj:{},tdtObj:{},checkStateObj:{},tradeStateObj:{},searchKeyword:null,searchPopupShow:!1,searchFormData:{deal_item:"",deal_clerk:7==e.roles?e.nickname:"",customer_name:"",customer_phone:"",house_type:""},customerList:[],loadmore:{status:"loadmore",loadingText:"努力加载中",defaultText:"轻轻上拉 查看更多",nomoreText:"实在没有了",currnetPage:1}}},onLoad:function(e){l=this,void 0!==e.filterStepStatus&&(l.filterStepStatus=parseInt(e.filterStepStatus),this.filterDropdownValue=[[],[],[],[l.filterStepStatus],[]]);var n=t.getStorageSync("MD_dict");this.thtObj=(0,r.arrToObj)(n.trade_house_type),this.tdtObj=(0,r.arrToObj)(n.trade_deal_type),this.checkStateObj=(0,r.arrToObj)(n.check_state),this.tradeStateObj=(0,r.arrToObj)(n.trade_state),this.getDataList()},created:function(){},onReachBottom:function(){"nomore"!=l.loadmore.status&&(l.loadmore.currnetPage++,this.getDataList())},onPullDownRefresh:function(){},methods:(a={pageTo:function(e,n){t.navigateTo({url:e,events:{update:function(t){}},success:function(t){t.eventChannel.emit("data",n)}})},copyTextHandle:function(e,n){var o=this;t.api.cust.apitradesubtotal({user_id:e.create_by,deal_at:e.deal_at}).then((function(a){if(3==e.deal_type){var c=o.customerList;return c[n]=d(d({},c[n]),a),void(o.customerList=(0,u.default)(c))}var r="【洪楼News】".concat(e.deal_at,"喜报\n恭喜").concat(e.deal_clerk,"小伙伴今日成交").concat(o.thtObj[e.house_type],"第1套\n本月(").concat(a.month,"月)喜报总计:").concat(a.month_total,"套,本月个人总计:").concat(a.user_total,"套\n(1)客户姓名: ").concat(e.customer_name,"\n(2)报备电话:").concat(e.customer_phone.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2"),"\n(3)报备渠道:").concat(e.report_dept,"(").concat(o.tdtObj[e.deal_type],")\n(4)成交项目:").concat(e.deal_item,"\n(5)具体房号:").concat(e.house_no,"\n(6)面积:").concat(e.area,"㎡\n(7)总价:").concat(e.price,"元\n(8)单价:").concat((Number(e.price)/e.area).toFixed(2),"元\n(9)折扣:").concat(e.discount||"未知","\n齐心协力向前冲,洪楼业绩显峥嵘!");2==e.house_type&&(r="【洪楼News】".concat(e.deal_at,"喜报\n恭喜").concat(e.deal_clerk,"小伙伴今日成交").concat(o.thtObj[e.house_type],"第1套\n本月(").concat(a.month,"月)喜报总计:").concat(a.month_total,"套,本月个人总计:").concat(a.user_total,"套\n(1)客户姓名: ").concat(e.customer_name,"\n(2)报备电话:").concat(e.customer_phone.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2"),"\n(3)报备渠道:").concat(e.report_dept,"(").concat(o.tdtObj[e.deal_type],")\n(4)成交项目:").concat(e.deal_item,"\n(5)具体房号:").concat(e.house_no,"\n(6)面积:").concat(e.area,"㎡\n(7)总价:").concat(e.price,"元\n(8)单价:").concat((Number(e.price)/e.area).toFixed(2),"元\n(9)折扣:").concat(e.discount||"未知","\n房源录入:").concat(e.house_create||"未填","[").concat(e.house_id||0,"]\n齐心协力向前冲,洪楼业绩显峥嵘!")),(0,i.default)({content:r,success:function(e){t.showToast({title:e,icon:"none"})},error:function(e){t.showToast({title:e,icon:"none",duration:3e3})}})}))},delHandle:function(e){var n=this;t.$msgConfirm("确定删除吗?",(function(){t.api.cust.apiprivatecustomerdel({id:e.id}).then((function(e){t.$msg("删除成功~"),n.loadmore.currnetPage=1,n.getDataList()}))}))},getDataList:function(e){var n=this,o=d({},this.searchFormData);t.api.cust.apitradelist(d({page:n.loadmore.currnetPage},o)).then((function(o){var a=o.list||[];a.length<10&&(n.loadmore.status="nomore"),1===o.current_page?(0==a.length&&t.$msg("无搜索结果","none"),n.customerList=(0,u.default)(a)):n.customerList=n.customerList.concat(a),e&&e()}))},customBack:function(){t.navigateBack()}},(0,c.default)(a,"pageTo",(function(e,n){t.navigateTo({url:e,events:{update:function(t){}},success:function(t){t.eventChannel.emit("data",n)}})})),(0,c.default)(a,"searchHandle",(function(){var t=this;l.loadmore.currnetPage=1,this.getDataList((function(){t.searchPopupShow=!1}))})),a)};e.default=f}).call(this,n("543d")["default"])},b355:function(t,e,n){"use strict";n.r(e);var o=n("cff3"),a=n("b5b7");for(var u in a)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(u);n("9966");var c=n("f0c5"),r=Object(c["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=r.exports},b5b7:function(t,e,n){"use strict";n.r(e);var o=n("a2e0"),a=n.n(o);for(var u in o)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(u);e["default"]=a.a},c49b:function(t,e,n){},cff3:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return o}));var o={wmWatermark:function(){return n.e("components/wm-watermark/wm-watermark").then(n.bind(null,"e144"))},uEmpty:function(){return n.e("uni_modules/vk-uview-ui/components/u-empty/u-empty").then(n.bind(null,"078a"))},uIcon:function(){return n.e("uni_modules/vk-uview-ui/components/u-icon/u-icon").then(n.bind(null,"ccaa"))},uPopup:function(){return n.e("uni_modules/vk-uview-ui/components/u-popup/u-popup").then(n.bind(null,"7401"))},uRadioGroup:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/vk-uview-ui/components/u-radio-group/u-radio-group")]).then(n.bind(null,"f0c0"))},uRadio:function(){return n.e("uni_modules/vk-uview-ui/components/u-radio/u-radio").then(n.bind(null,"79d4"))},uDivider:function(){return n.e("uni_modules/vk-uview-ui/components/u-divider/u-divider").then(n.bind(null,"9569"))},uInput:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/vk-uview-ui/components/u-input/u-input")]).then(n.bind(null,"830c"))},uButton:function(){return n.e("uni_modules/vk-uview-ui/components/u-button/u-button").then(n.bind(null,"51b1b"))},uLoadmore:function(){return n.e("uni_modules/vk-uview-ui/components/u-loadmore/u-loadmore").then(n.bind(null,"8b52"))}},a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.customerList.length),o=t.__map(t.customerList,(function(e,n){var o=t.__get_orig(e),a=(Number(e.price)/e.area).toFixed(2);return{$orig:o,g1:a}})),a=t.customerList.length;t._isMounted||(t.e0=function(e){t.searchPopupShow=!0},t.e1=function(e){t.searchPopupShow=!1}),t.$mp.data=Object.assign({},{$root:{g0:n,l0:o,g2:a}})},u=[]}},[["1603","common/runtime","common/vendor"]]]);