(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2bc5ad1c"],{"49d3":function(t,e,i){},6539:function(t,e,i){"use strict";i("49d3")},"71f6":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));i("ac6a"),i("456d");var u=i("b775");function a(t,e){t=t||{};var i=Object.keys(t);return i.forEach((function(i){var a=t[i];"string"===typeof a&&(a={url:a}),a.url="".concat(e).concat(a.url),t[i]=function(t,e){return Object(u["a"])(a,t,e)}})),t}},"727c":function(t,e,i){"use strict";i.r(e);var u=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"audit-item-list"},[i("div",{staticClass:"audit-item-header"},[i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.toCreateItem()}}},[t._v("新建事项")])],1),i("el-table",{attrs:{data:t.auditItemList}},[i("el-table-column",{attrs:{label:"审核组",prop:"auditGroupName",formatter:function(t,e,i){return i||"--"},"show-overflow-tooltip":""}}),i("el-table-column",{attrs:{label:"审核事项",prop:"auditTypes","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[t._v(t._s(t._f("formatAuditTypes")(i.auditTypes,t.auditTypes)))]}}])}),i("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){var u=e.row;return[i("el-button",{attrs:{type:"text"},on:{click:function(e){return t.toCreateItem(u)}}},[t._v("编辑")]),i("el-button",{attrs:{type:"text"},on:{click:function(e){return t.onDelItem(u)}}},[t._v("删除")])]}}])})],1)],1)},a=[],r=(i("28a5"),i("8175")),n=i("96b6"),o=n["a"].auditItemList,d=n["a"].delAuditItem,s={name:"AuditItemList",data:function(){return{wxEnterpriseId:"",auditTypes:r["a"],auditItemList:[]}},created:function(){var t=JSON.parse(localStorage.getItem("haoBanUser")||"{}");this.wxEnterpriseId=t.wxEnterpriseId,this.$emit("showTab","/audit-item-list"),this.getAuditItemList()},methods:{getAuditItemList:function(){var t=this;o({wxEnterpriseId:this.wxEnterpriseId}).then((function(e){t.auditItemList=e.result||[]}))},toCreateItem:function(t){var e=t||{},i=e.auditItemId,u="/create-audit-item";this.$router.push(i?"".concat(u,"?auditItemId=").concat(i):u)},onDelItem:function(t){var e=this,i=t.auditGroupName,u=t.auditItemId;this.$confirm("确定删除【 ".concat(i," 】吗？"),"提示",{type:"warning"}).then((function(){d({auditItemId:u}).then((function(t){e.$message.success("删除成功！"),e.getAuditItemList()}))}))}},filters:{formatAuditTypes:function(t,e){if(!t)return"--";t=t.split(",");var i=e.filter((function(e){return t.some((function(t){return t==e.type}))}));return i.length>0?i.map((function(t){return t.title})).join("、"):"--"}}},c=s,l=(i("6539"),i("2877")),p=Object(l["a"])(c,u,a,!1,null,"c7a960d6",null);e["default"]=p.exports},8175:function(t,e,i){"use strict";e["a"]=[{type:"3",title:"导购账号新增",desc:"能看到管辖范围内导购添加的审核事项"},{type:"1",title:"导购账号绑定",desc:"能看到管辖范围内导购账号绑定申请"}]},"96b6":function(t,e,i){"use strict";var u=i("71f6"),a={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};a=Object(u["a"])(a,"/hb-manage-web"),e["a"]=a}}]);