record.js 5.6 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/trade/record"],{1999:function(t,e,n){"use strict";var c=n("706a"),a=n.n(c);a.a},"21e3":function(t,e,n){"use strict";(function(t,e){var c=n("4ea4");n("2ab2");c(n("66fd"));var a=c(n("bbfb"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"2a21":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return c}));var c={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"))},uTimeLine:function(){return n.e("uni_modules/vk-uview-ui/components/u-time-line/u-time-line").then(n.bind(null,"16ba"))},uTimeLineItem:function(){return n.e("uni_modules/vk-uview-ui/components/u-time-line-item/u-time-line-item").then(n.bind(null,"8321"))},uIcon:function(){return n.e("uni_modules/vk-uview-ui/components/u-icon/u-icon").then(n.bind(null,"ccaa"))},uButton:function(){return n.e("uni_modules/vk-uview-ui/components/u-button/u-button").then(n.bind(null,"51b1b"))}},a=function(){var t=this.$createElement,e=(this._self._c,(Number(this.dtlObj.price)/this.dtlObj.area).toFixed(2)),n=this.stepsLogList.length;this.$mp.data=Object.assign({},{$root:{g0:e,g1:n}})},o=[]},"706a":function(t,e,n){},bbfb:function(t,e,n){"use strict";n.r(e);var c=n("2a21"),a=n("fad6");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("1999");var r=n("f0c5"),i=Object(r["a"])(a["default"],c["b"],c["c"],!1,null,null,null,!1,c["a"],void 0);e["default"]=i.exports},df23:function(t,e,n){"use strict";(function(t){var c=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=c(n("448a")),o=c(n("9523")),r=n("66f6"),i=c(n("1bf8"));function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);e&&(c=c.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,c)}return n}var s={components:{wmWatermark:function(){n.e("components/wm-watermark/wm-watermark").then(function(){return resolve(n("e144"))}.bind(null,n)).catch(n.oe)}},data:function(){return{userInfo2:{},rsObj:{},curId:"",custTips:"",dtlObj:{},thtObj:{},tdtObj:{},checkStateObj:{},checkStateArr:[],curStepId:"",stepsLogList:[]}},onLoad:function(e){this.curId=e.id;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.checkStateArr=n.check_state},onShow:function(){this.getData()},created:function(){this.userInfo2=t.getStorageSync("MD_userInfo2")},methods:{submitCheck:function(){var e=this;t.$msgConfirm("是否确定提交佣金审核?",(function(){t.api.cust.apitradesubmit({id:e.curId}).then((function(n){t.$msg("提交成功!"),e.getData()}))}))},checkHandle:function(){var e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.dtlObj);t.navigateTo({url:"/pages/trade/check?id=".concat(e.id,"&name=").concat(e.deal_at,"|").concat(e.deal_clerk,"的客户").concat(e.customer_name,"(").concat(e.customer_phone,")【佣金:").concat(e.brokerage||0,"返佣:").concat(e.rebate||0,"】")})},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(c){(0,i.default)({content:"【洪楼News】".concat(e.deal_at,"喜报\n恭喜").concat(e.deal_clerk,"小伙伴今日成交").concat(n.thtObj[e.house_type],"第1套\n本月(").concat(c.month,"月)喜报总计:").concat(c.month_total,"套,个人总计:").concat(c.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})}})}))},callHandle:function(){t.makePhoneCall({phoneNumber:this.dtlObj.customer_phone||""})},getData:function(){var e=this;t.api.cust.apitraderecordlist({trade_id:this.curId,page_size:100}).then((function(t){var n=t.list||[];e.stepsLogList=(0,a.default)(n)})),t.api.cust.apitradedetail({id:this.curId}).then((function(t){e.dtlObj=t||{},e.checkStateArr.forEach((function(t){t.dict_value===e.dtlObj.check_state&&(e.curStepId=t.option1)}))}))},previewImgHandle:function(e,n){t.previewImage({current:e,urls:n})},addHandle:function(){t.navigateTo({url:"/pages/trade/recordedit?id=".concat(this.curId)})},tradeHandle:function(){t.navigateTo({url:"/pages/trade/recordTrade1?id=".concat(this.curId)})}}};e.default=s}).call(this,n("543d")["default"])},fad6:function(t,e,n){"use strict";n.r(e);var c=n("df23"),a=n.n(c);for(var o in c)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return c[t]}))}(o);e["default"]=a.a}},[["21e3","common/runtime","common/vendor"]]]);