list.js 6.2 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"])},6968:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),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"))},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"))},uDivider:function(){return n.e("uni_modules/vk-uview-ui/components/u-divider/u-divider").then(n.bind(null,"9569"))},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}})},r=[]},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,r=o(n("448a")),u=o(n("9523")),c=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 l(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,u.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 d,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:""},customerList:[],loadmore:{status:"loadmore",loadingText:"努力加载中",defaultText:"轻轻上拉 查看更多",nomoreText:"实在没有了",currnetPage:1}}},onLoad:function(e){d=this,void 0!==e.filterStepStatus&&(d.filterStepStatus=parseInt(e.filterStepStatus),this.filterDropdownValue=[[],[],[],[d.filterStepStatus],[]]);var n=t.getStorageSync("MD_dict");this.thtObj=(0,c.arrToObj)(n.trade_house_type),this.tdtObj=(0,c.arrToObj)(n.trade_deal_type),this.checkStateObj=(0,c.arrToObj)(n.check_state),this.tradeStateObj=(0,c.arrToObj)(n.trade_state),this.getDataList()},created:function(){},onReachBottom:function(){"nomore"!=d.loadmore.status&&(d.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){var n=this;t.api.cust.apitradesubtotal({user_id:e.create_by,deal_at:e.deal_at}).then((function(o){(0,i.default)({content:"【洪楼News】".concat(e.deal_at,"喜报\n恭喜").concat(e.deal_clerk,"小伙伴今日成交").concat(n.thtObj[e.house_type],"第1套\n本月(").concat(o.month,"月)喜报总计:").concat(o.month_total,"套,本月个人总计:").concat(o.user_total,"套\n(1)客户姓名: ").concat(e.customer_name,"\n(2)报备电话:").concat(e.customer_phone,"\n(3)报备渠道:").concat(e.report_dept,"(").concat(n.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齐心协力向前冲,洪楼业绩显峥嵘!"),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=l({},this.searchFormData);t.api.cust.apitradelist(l({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,r.default)(a)):n.customerList=n.customerList.concat(a),e&&e()}))},customBack:function(){t.navigateBack()}},(0,u.default)(a,"pageTo",(function(e,n){t.navigateTo({url:e,events:{update:function(t){}},success:function(t){t.eventChannel.emit("data",n)}})})),(0,u.default)(a,"searchHandle",(function(){var t=this;d.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("6968"),a=n("b5b7");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("9966");var u=n("f0c5"),c=Object(u["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=c.exports},b5b7:function(t,e,n){"use strict";n.r(e);var o=n("a2e0"),a=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=a.a},c49b:function(t,e,n){}},[["1603","common/runtime","common/vendor"]]]);