| 1 |
- System.register(["./vendor-legacy-2701520b.js","./index-legacy-a877a6a1.js","./LJPagiNation-legacy-25027cf5.js","./constant-legacy-53715063.js","./LJWWData-legacy-6e4c2a87.js","./LJPagiNation.vue_vue_type_style_index_0_scoped_6913d797_lang-legacy-137b9b7c.js","./LJWWData.vue_vue_type_style_index_0_scoped_1870765c_lang-legacy-38258497.js"],(function(e,t){"use strict";var a,n,i,l,s,o,r,c,u,d,p,m,f=document.createElement("style");return f.textContent=".clue-times[data-v-4ff34eeb]{background-color:#fff;height:calc(100vh - var(--main-nav-height) - var(--main-tabs-height) - var(--main-footer-height) - 72px);padding:10px;border-radius:8px}.table-list[data-v-4ff34eeb]{margin-top:20px}.table-list .guide[data-v-4ff34eeb]{width:100%;display:flex;flex-direction:column;align-items:center;margin:150px auto 0}[data-v-4ff34eeb] .el-dialog__body{padding:0 20px}[data-v-4ff34eeb] .el-table__body tr:hover>td{background-color:#f6faff!important}\n",document.head.appendChild(f),{setters:[function(e){a=e.u,n=e.i,i=e.r,l=e.h,s=e.o,o=e.e},function(e){r=e.n,c=e.$,u=e.L},function(e){d=e.L},function(e){p=e.I},function(e){m=e.L},function(){},function(){}],execute:function(){var t={__name:"commissionPlanListView",setup:function(e){var t=a(),r=n({company:c.getters.company,"fields!":"commission_rule",limit:10,offset:0,del_flag:0,ordering:"-id"}),f=i(0),g=i(1),_=i([]),v=i(l((function(){return c.getters.appMainHeight-32-52-87-45-35}))),h=i(!0),b=i(!0),y=p;function x(){h.value=!0,HTTP.get("get_commission_salary_files",r).then((function(e){f.value=e.data.count,_.value=e.data.results,_.value.length>0?b.value=!0:b.value=!1})).finally((function(){setTimeout((function(){return h.value=!1}),500)}))}return s((function(){h.value=!0,x()})),{__sfc:!0,router:t,filter:r,total:f,currentPage:g,tableData:_,tabelHeigth:v,loading:h,showTip:b,planType:y,getList:x,handleSizeChange:function(e){r.limit=e,x()},handleCurrentChange:function(e){g.value=e,r.offset=(e-1)*r.limit,x()},addTemplate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"add";t.push({path:"/finances/financesHome/commissionPlanCEViews",query:{id:e?e.id:"",type:a}})},deleteTemplate:function(e){o.exports.MessageBox.confirm("确定要删除该模板吗,删除后不可恢复!","提示",{type:"warning"}).then((function(){HTTP.patch("commission",{id:e.id,del_flag:1}).then((function(e){0===e.code?(o.exports.Message({type:"success",message:"删除成功"}),x()):o.exports.Message({type:"error",message:e.msg})}))})).catch((function(e){console.log(e)}))},LJTableHeader:u,LJPagiNation:d,LJWWData:m}}};e("default",r(t,(function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:a.loading,expression:"loading"}],staticClass:"clue-times"},[t(a.LJTableHeader,{attrs:{search:!1,dropdown:!1}},[t("template",{slot:"right"},[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:62403,expression:"62403"}],attrs:{type:"primary"},on:{click:a.addTemplate}},[e._v("新增提成方案")])],1)],2),t("div",{staticClass:"table-list"},[a.showTip?t("el-table",{staticStyle:{width:"100%"},attrs:{data:a.tableData,height:a.tabelHeigth,"header-cell-style":{background:"#F6FAFF"}}},[t("el-table-column",{attrs:{prop:"id",label:"ID",width:"80"}}),t("el-table-column",{attrs:{prop:"name",label:"方案名称",width:"150"}}),t("el-table-column",{attrs:{prop:"name",label:"提成范围"},scopedSlots:e._u([{key:"default",fn:function(n){var i=n.row;return[i.is_self?t("span",[e._v("本人")]):i.member_name_list.length>0?t("span",[t(a.LJWWData,{staticStyle:{display:"inline-block"},attrs:{type:2,openid:i.member_name_list[0]}}),i.member_name_list.length>1?t("span",[e._v(" 等"+e._s(i.member_name_list.length)+"人 ")]):e._e()],1):e._e()]}}],null,!1,1958956752)}),t("el-table-column",{attrs:{prop:"name",label:"业绩指标",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(a.planType[t.row.achievement_rule])+" ")]}}],null,!1,3559073510)}),t("el-table-column",{attrs:{prop:"name",label:"提成比例",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(1===t.row.commission_type?"阶梯提成":"统一提成")+" ")]}}],null,!1,804128152)}),t("el-table-column",{attrs:{prop:"address",label:"操作",align:"center",width:"160"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:62402,expression:"62402"}],attrs:{type:"text"},on:{click:function(e){return a.addTemplate(n.row,"detail")}}},[e._v("查看 ")]),t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:62404,expression:"62404"}],attrs:{type:"text"},on:{click:function(e){return a.addTemplate(n.row,"edit")}}},[e._v("编辑 ")]),t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:62405,expression:"62405"}],attrs:{type:"text"},on:{click:function(e){return a.deleteTemplate(n.row)}}},[e._v("删除 ")])]}}],null,!1,485394785)})],1):t("div",{staticClass:"guide"},[t("img",{attrs:{src:"/png/img_xinzgl-3-9dc57d6a.png",alt:""}}),t("div",{staticStyle:{"margin-top":"15px","font-size":"16px",color:"#919398"}},[e._v(" 公司所有的提成方案都在这里 ")])])],1),a.showTip?t(a.LJPagiNation,{attrs:{"current-page":a.currentPage,"page-size":a.filter.limit,total:a.total},on:{"size-change":a.handleSizeChange,"current-change":a.handleCurrentChange}}):e._e()],1)}),[],!1,null,"4ff34eeb",null,null).exports)}}}));
|