王总上门按摩后台代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
shangmenanmo/public/h6/static/js/technician-pages-income-com...

1 lines
14 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["technician-pages-income-commission-detail"],{"3c93":function(t,a,i){var e=i("503c");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var s=i("967d").default;s("3c21ffcc",e,!0,{sourceMap:!1,shadowMode:!1})},"3db5":function(t,a,i){"use strict";var e=i("3c93"),s=i.n(e);s.a},"4f4c":function(t,a,i){"use strict";i.d(a,"b",(function(){return e})),i.d(a,"c",(function(){return s})),i.d(a,"a",(function(){}));var e=function(){var t=this,a=t.$createElement,i=t._self._c||a;return t.detail.id?i("v-uni-view",{staticClass:"technician-commission-detail"},[i("v-uni-view",{staticClass:"mt-md pd-lg fill-base"},[i("v-uni-view",{staticClass:"flex-y-center f-mini-title c-title"},[i("v-uni-view",{staticClass:"dot mr-sm radius",style:{background:t.primaryColor}}),t._v("订单号"),i("v-uni-view",{staticClass:"ml-sm"},[t._v(t._s(t.detail.order_code))])],1),i("v-uni-view",{staticClass:"f-mini-title c-title text-bold mt-lg"},[t._v("项目明细")]),t._l(t.detail.order_goods,(function(a,e){return i("v-uni-view",{key:e,staticClass:"flex-between f-paragraph",class:[{"mt-lg":0==e},{"mt-md":0!=e}]},[i("span",{staticClass:"c-paragraph max-500"},[t._v(t._s(a.goods_name)),i("span",{staticClass:"ml-lg"},[t._v("x"+t._s(a.true_num))])]),i("v-uni-view",{staticClass:"c-title"},[t._v("¥"+t._s(a.true_total_price))])],1)})),i("v-uni-view",{staticClass:"flex-between f-paragraph mt-lg"},[i("v-uni-view",{staticClass:"c-paragraph"},[t._v("服务时间")]),i("v-uni-view",{staticClass:"c-caption"},[t._v(t._s(t.detail.time_text))])],1),i("v-uni-view",{staticClass:"flex-between f-paragraph mt-lg"},[i("v-uni-view",{staticClass:"c-paragraph"},[t._v("项目总金额")]),i("v-uni-view",{staticClass:"c-title"},[t._v("¥"+t._s(t.detail.init_service_price))])],1),1===t.detail.material_type?i("v-uni-view",{staticClass:"flex-between f-paragraph mt-lg"},[i("v-uni-view",{staticClass:"c-paragraph"},[t._v("物料费")]),i("v-uni-view",{staticClass:"c-title flex-y-center"},[t._v("¥"+t._s(t.detail.material_price)),1*t.detail.init_material_price>1*t.detail.material_price?i("v-uni-view",{staticClass:"ml-sm c-caption text-delete"},[t._v("¥"+t._s(t.detail.init_material_price))]):t._e()],1)],1):t._e(),i("v-uni-view",{staticClass:"flex-between f-paragraph mt-lg"},[i("v-uni-view",{staticClass:"c-paragraph"},[t._v("卡券优惠")]),i("v-uni-view",{staticClass:"c-title"},[t._v("-¥"+t._s(t.detail.discount))])],1),i("v-uni-view",{staticClass:"flex-between f-paragraph mt-lg mb-lg"},[i("v-uni-view",{staticClass:"c-paragraph"},[t._v("分成比例")]),i("v-uni-view",{staticClass:"c-title"},[t._v(t._s(t.detail.coach_balance)+"%")])],1),i("v-uni-view",{staticClass:"flex-between pt-lg b-1px-t"},[i("v-uni-view",{staticClass:"f-paragraph c-paragraph flex-y-center",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.$refs.show_rule_item.open()}}},[t._v("应得收益"),i("i",{staticClass:"iconfont iconshuyi_shuoming ml-sm"})]),i("span",{staticClass:"max-500"},[t._v(t._s(t.detail.coach_text+" =")),i("span",{staticClass:"f-caption ml-sm",style:{color:t.primaryColor}},[t._v("¥"),i("span",{staticClass:"f-mini-title"},[t._v(t._s(t.detail.coach_cash))])])])],1)],2),t.detail.add_order&&t.detail.add_order.length>0?i("v-uni-view",{staticClass:"mt-md pd-lg fill-base"},[i("v-uni-view",{staticClass:"f-mini-title c-title text-bold"},[t._v("加钟明细")]),t._l(t.detail.add_order,(function(a,e){return[t._l(a.order_goods,(function(a,s){return i("v-uni-view",{key:e+"_0",staticClass:"flex-between f-paragraph",class:[{"mt-lg":0==s},{"mt-md":0!=s}]},[i("span",{staticClass:"c-paragraph max-500"},[t._v(t._s(a.goods_name)+t._s(0==s?" (第"+(1*e+1)+"次加钟)":"")),i("span",{staticClass:"ml-lg"},[t._v("x"+t._s(a.num))])]),i("v-uni-view",{staticClass:"c-title"},[t._v("¥"+t._s(a.price))])],1)})),i("v-uni-view",{key:e+"_1",staticClass:"flex-between f-paragraph mt-lg mb-lg"},[i("v-uni-view",{staticClass:"c-paragraph"},[t._v("项目总金额")]),i("v-uni-view",{staticClass:"c-title"},[t._v("¥"+t._s(a.true_service_price))])],1),1===t.detail.material_type?i("v-uni-view",{key:e+"_2",staticClass:"flex-between f-paragraph mt-lg mb-lg"},[i("v-uni-view",{staticClass:"c-paragraph"},[t._v("物料费")]),i("v-uni-view",{staticClass:"c-title"},[t._v("¥"+t._s(a.material_price))])],1):t._e(),i("v-uni-view",{key:e+"_3",staticClass:"flex-between f-paragraph mt-lg mb-lg"},[i("v-uni-view",{staticClass:"c-paragraph"},[t._v("分成比例")]),i("v-uni-view",{staticClass:"c-title"},[t._v(t._s(a.coach_balance)+"%")])],1),i("v-uni-view",{key:e+"_4",staticClass:"flex-between f-paragraph mt-lg mb-lg"},[i("v-uni-view",{staticClass:"c-paragraph"},[t._v("分摊扣费")]),i("v-uni-view",{staticClass:"c-title"},[t._v("-¥"+t._s(a.total_share_cash))])],1),i("v-uni-view",{key:e+"_5",staticClass:"flex-between f-paragraph mt-lg mb-lg"},[i("v-uni-view",{staticClass:"f-paragraph c-paragraph flex-y-center",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.$refs.show_add_rule_item.open()}}},[t._v("应得收益"),i("i",{staticClass:"iconfont iconshuyi_shuoming ml-sm"})]),i("span",{staticClass:"max-500"},[t._v(t._s(a.add_coach_text+" =")),i("span",{staticClass:"f-caption ml-sm",style:{color:t.primaryColor}},[t._v("¥"),i("span",{staticClass:"f-mini-title"},[t._v(t._s(a.coach_cash))])])])],1)]})),i("v-uni-view",{staticClass:"flex-between pt-lg b-1px-t"},[i("v-uni-view",{staticClass:"f-paragraph c-paragraph flex-y-center"},[t._v("加钟收益")]),i("span",{staticClass:"max-500"},[t._v(t._s(t.detail.add_coach_text+" =")),i("span",{staticClass:"f-caption ml-sm",style:{color:t.primaryColor}},[t._v("¥"),i("span",{staticClass:"f-mini-title"},[t._v(t._s(t.detail.add_coach_cash))])])])],1)],2):t._e(),i("v-uni-view",{staticClass:"mt-md pd-lg fill-base"},[i("v-uni-view",{staticClass:"f-mini-title c-title text-bold"},[t._v("扣费明细")]),i("v-uni-view",{staticClass:"flex-between f-paragraph mt-lg"},[i("v-uni-view",{staticClass:"c-paragraph"},[t._v("经纪人扣费")]),i("v-uni-view",{staticClass:"c-title"},[t._v("-¥"+t._s(t.detail.partner_share_cash))])],1),i("v-uni-view",{staticClass:"flex-between f-paragraph mt-lg"},[i("v-uni-view",{staticClass:"c-paragraph"},[t._v("渠道商扣费")]),i("v-uni-view",{staticClass:"c-title"},[t._v("-¥"+t._s(t.detail.channel_share_cash))])],1),i("v-uni-view",{staticClass:"flex-between f-paragraph mt-lg"},[i("v-uni-view",{staticClass:"c-paragraph"},[t._v("业务员扣费")]),i("v-uni-view",{staticClass:"c-title"},[t._v("-¥"+t._s(t.detail.salesman_share_cash))])],1),i("v-uni-view",{staticClass:"flex-between mt-lg pt-lg b-1px-t"},[i("v-uni-view",{staticClass:"f-paragraph c-paragraph"},[t._v("合计扣费")]),i("v-uni-view",{staticClass:"flex-y-center f-caption c-warning"},[t._v("¥"),i("v-uni-view",{staticClass:"f-mini-title"},[t._v(t._s(t.detail.total_share_cash))])],1)],1)],1),i("v-uni-view",{staticClass:"mt-md pd-lg fill-base"},[i("v-uni-view",{staticClass:"f-mini-title c-title text-bold"},[t._v("车费明细")]),i("v-uni-view",{staticClass:"flex-between f-paragraph mt-lg"},[i("v-uni-view",{staticClass:"c-paragraph"},[t._v("车费收益")]),i("v-uni-view",{staticClass:"c-title text-bold",style:{color:t.primaryColor}},[t._v("¥"+t._s(t.detail.true_car_price))])],1)],1),i("v-uni-view",{staticClass:"space-max-footer"}),i("fixed",{attrs:{position:"bottom"}},[i("v-uni-view",{staticClass:"pd-lg fill-base flex-between f-paragraph",staticStyle:{width:"100%"}},[i("v-uni-view",{staticClass:"f-mini-title c-title text-bold"},[t._v("实际收益")]),i("span",{staticClass:"max-500 c-warning"},[t._v(t._s(t.detail.total_order_text+" =")),i("span",{staticClass:"f-caption text-bold ml-sm"},[t._v("¥"),i("span",{staticClass:"f-mini-title"},[t._v(t._s(t.detail.total_order_cash))])])])],1),i("v-uni-view",{staticClass:"space-safe fill-base"})],1),i("uni-popup",{ref:"show_rule_item",attrs:{type:"center",maskClick:!1,zIndex:1e3}},[i("v-uni-view",{staticClass:"common-popup-content fill-base pd-lg radius-34"},[i("v-uni-view",{staticClass:"title"},[t._v("应得收益计算规则")]),i("v-uni-view",{staticClass:"f-desc c-title mt-lg"},[0===t.detail.material_type?[t._v("应得收益 = (项目总金额 - 卡券优惠) * 分成比例")]:[t._v("应得收益 = (项目总金额 + 物料费 - 卡券优惠) * 分成比例 - 物料费")]],2),i("v-uni-view",{staticClass:"button"},[i("v-uni-view",{staticClass:"item-child c-base",style:{background:t.primaryColor,color:"#fff"},on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.$refs.show_rule_item.close()}}},[t._v("知道了")])],1)],1)],1),i("uni-popup",{ref:"show_add_rule_item",attrs:{type:"center",maskClick:!1,zIndex:1e3}},[i("v-uni-view",{staticClass:"common-popup-content fill-base pd-lg radius-34"},[i("v-uni-view",{staticClass:"title"},[t._v("加钟收益计算规则")]),i("v-uni-view",{staticClass:"f-desc c-title mt-lg"},[0===t.detail.material_type?[t._v("应得收益 = 项目总金额 * 分成比例 - 分摊扣费")]:[t._v("应得收益 = (项目总金额 + 物料费) * 分成比例 - 物料费 - 分摊扣费")]],2),i("v-uni-view",{staticClass:"button"},[i("v-uni-view",{staticClass:"item-child c-base",style:{background:t.primaryColor,color:"#fff"},on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.$refs.show_add_rule_item.close()}}},[t._v("知道了")])],1)],1)],1)],1):t._e()},s=[]},"503c":function(t,a,i){var e=i("c86c");a=e(!1),a.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.technician-commission-detail .dot[data-v-581f6fac]{width:%?14?%;height:%?14?%}',""]),t.exports=a},"6c89":function(t,a,i){"use strict";i.r(a);var e=i("4f4c"),s=i("dbfa");for(var c in s)["default"].indexOf(c)<0&&function(t){i.d(a,t,(function(){return s[t]}))}(c);i("3db5");var n=i("828b"),l=Object(n["a"])(s["default"],e["b"],e["c"],!1,null,"581f6fac",null,!1,e["a"],void 0);a["default"]=l.exports},dbfa:function(t,a,i){"use strict";i.r(a);var e=i("f1f3"),s=i.n(e);for(var c in e)["default"].indexOf(c)<0&&function(t){i.d(a,t,(function(){return e[t]}))}(c);a["default"]=s.a},f1f3:function(t,a,i){"use strict";i("6a54");var e=i("f5bd").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,i("fd3c"),i("c223");var s=e(i("9b1b")),c=e(i("2634")),n=e(i("2fdc")),l=i("8f59"),r={components:{},data:function(){return{isLoad:!1,options:{},detail:{}}},computed:(0,l.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor}}),onLoad:function(t){var a=this;return(0,n.default)((0,c.default)().mark((function i(){return(0,c.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a.options=t,i.next=3,a.initIndex();case 3:case"end":return i.stop()}}),i)})))()},methods:(0,s.default)((0,s.default)({},(0,l.mapMutations)([])),{},{initIndex:function(){var t=arguments,a=this;return(0,n.default)((0,c.default)().mark((function i(){var e;return(0,c.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(e=t.length>0&&void 0!==t[0]&&t[0],e||!a.$jweixin.isWechat()){i.next=5;break}return i.next=4,a.$jweixin.initJssdk();case 4:a.$jweixin.wxReady((function(){a.$jweixin.hideOptionMenu()}));case 5:return a.$util.setNavigationBarColor({bg:a.primaryColor}),i.next=8,a.getDetail();case 8:a.isLoad=!0;case 9:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.initIndex(!0)},getDetail:function(){var t=this;return(0,n.default)((0,c.default)().mark((function a(){var i,e,s,n,l,r,o,v,_,u,p,d,f;return(0,c.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i=t.options.id,a.next=3,t.$api.technician.coachCommissionInfo({id:i});case 3:e=a.sent,s=e.coach_cash,n=e.true_car_price,l=e.total_share_cash,r=e.init_material_price,o=e.material_price,v=e.material_type,_=void 0===v?0:v,u=e.discount,1*u>0&&1*r>1*o&&(e.discount=(1*u-(1*r-1*o)).toFixed(2)),e.order_goods.map((function(t){t.true_num=t.num-t.refund_num,t.true_total_price=t.price*t.true_num})),e.coach_text=0===_?"(".concat(e.init_service_price,"-").concat(e.discount,")*").concat(e.coach_balance,"%"):"(".concat(e.init_service_price,"+").concat(e.material_price,"-").concat(e.discount,")*").concat(e.coach_balance,"%-").concat(e.material_price),p=0,d="",e.add_order.map((function(t,a){p+=1*t.coach_cash,t.add_coach_text=0===_?"".concat(t.true_service_price,"*").concat(t.coach_balance,"%-").concat(t.total_share_cash):"(".concat(t.true_service_price,"+").concat(t.material_price,")*").concat(t.coach_balance,"%-").concat(t.material_price,"-").concat(t.total_share_cash),d+="".concat(0==a?"":" + ").concat(t.coach_cash)})),e.add_coach_cash=p.toFixed(2),e.add_coach_text=d,e.total_order_text=e.add_order&&e.add_order.length>0?"".concat(s," + ").concat(p," - ").concat(l," + ").concat(n):"".concat(s," - ").concat(l," + ").concat(n," "),f=1*s+1*p+1*n-1*l,e.total_order_cash=f.toFixed(2),t.detail=e;case 17:case"end":return a.stop()}}),a)})))()}})};a.default=r}}]);