Commit e432293b by 无尘

fix: 修改不良评价设置

parent 5f05e504
......@@ -3,8 +3,8 @@
* @version: 1.0.0
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘
* @LastEditTime: 2019-12-13 09:47:27
* @LastEditors : 无尘
* @LastEditTime : 2020-01-03 13:53:23
*/
module.exports = {
proxyList: {
......@@ -50,11 +50,11 @@ module.exports = {
'^/haoban-app-tel-task-web': ''
}
},
'/api-mall/': {
target: 'http://gicdev.demogic.com/api-mall/',
'/haoban-app-daily-web/': {
target: 'http://gicdev.demogic.com/haoban-app-daily-web/',
changeOrigin: true,
pathRewrite: {
'^/api-mall': ''
'^/haoban-app-daily-web': ''
}
}
}
......
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.0b726f48f98d077be0bc7012ab2b54b0.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.793fd391dcd3db5b4223.js></script><script type=text/javascript src=./static/js/vendor.0000e68e65e4a9dc3840.js></script><script type=text/javascript src=./static/js/app.301b11dd6cac1bd17147.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.44bac5a18536a880a09916028b86c8db.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.ea6e2dfda071b1c84266.js></script><script type=text/javascript src=./static/js/vendor.0000e68e65e4a9dc3840.js></script><script type=text/javascript src=./static/js/app.5801a893c3a5e2e43f9e.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([34],{C57R:function(e,t){},Cw3p:function(e,t){},iG3v:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("2eFk"),l=a("Ie7z"),s=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"taskView",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"话务任务记录"}],activeId:"1",showDialog:!1,conditionObj:{tableType:"1",searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeTable:function(e){this.currentPage=1,this.getTableList()},handleCommand:function(e){this.selectRadio=e},setSelectTab:function(e){this.activeTab=e.tabId},toInput:Object(d.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!o()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this;t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var a={search:t.conditionObj.searchInput||"",ecmIds:t.multipleSelection.map(function(e){return e.ecmIds}).join(",")||"",brandId:t.activeBrand,delTaskStatus:e.delOptFlag,reason:e.reason,isAll:t.selectRadio};Object(c.e)("/haoban-app-tel-task-web/task/batch-del-task-view-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},exportExcel:function(){var e=this,t=[],a=[];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:a.join(",")||"",storeGroupIds:t.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange?e.conditionObj.dateRange[0]:"",endDate:e.conditionObj.dateRange?e.conditionObj.dateRange[1]:"",brandId:e.activeBrand};Object(c.b)("/haoban-app-tel-task-web/task/export-store-task-list",n).then(function(t){if(!t.data)return p.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),n=(e.tableData[0]?e.tableData[0].storeName:"")+"门店任务报表.csv",o=document.createElement("a");o.download=n,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},toDetail:function(e,t){this.$router.push("taskViewDetail?ecmId="+t.ecmId+"&appIcon="+this.$route.query.appIcon)},getTableList:function(e){var t=this,a={search:t.conditionObj.searchInput||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(c.a)("/haoban-app-tel-task-web/task/task-view-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},initDataRange:function(){var e=new Date,t=e.getTime()-7776e6,a=e.getFullYear(),n=e.getMonth()+1,o=e.getDate()<10?"0"+e.getDate():e.getDate(),i=n<10?"0"+n:n,l=new Date(t),s=l.getFullYear(),r=l.getMonth()+1,c=l.getDate()<10?"0"+l.getDate():l.getDate();return[s+"-"+(r<10?"0"+r:r)+"-"+c,a+"-"+i+"-"+o]}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.conditionObj.dateRange=e.initDataRange(),document.documentElement.style.backgroundColor="#f0f2f5",e.activeBrand=e.brandId,this.brandId&&e.$nextTick(function(){e.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:s.a,vueSelectStore:l.a,multipleDel:r.a}},b={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入话务任务名称"},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("span",{staticClass:"condition-tips font-12 color-909399 p-l-10"},[e._v("仅包含话务任务记录")])],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"任务名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ecmName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.competedTaskNum))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.competedTaskRate))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.toComplete))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.overTimeNum))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toDetail(t.$index,t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var g=a("VU/8")(h,b,!1,function(e){a("C57R")},"data-v-35b0f131",null).exports,f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"话务任务记录"}],activeId:"1",showDialog:!1,conditionObj:{tableType:"1",searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeTable:function(e){if(2==e.name)return!1;this.currentPage=1,this.getTableList()},handleCommand:function(e){this.selectRadio=e},setSelectTab:function(e){this.activeTab=e.tabId},toInput:Object(d.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!o()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a=[],n=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var o={search:t.conditionObj.searchInput||"",filterStoreIds:n.join(",")||"",storeGroupIds:a.join(",")||"",storeIds:t.multipleSelection.map(function(e){return e.storeId}).join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",brandId:t.activeBrand,delTaskStatus:e.delOptFlag,reason:e.reason,isAll:t.selectRadio};Object(c.e)("/haoban-app-tel-task-web/task/batch-del-store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},exportExcel:function(){var e=this,t=[],a=[];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:a.join(",")||"",storeGroupIds:t.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange?e.conditionObj.dateRange[0]:"",endDate:e.conditionObj.dateRange?e.conditionObj.dateRange[1]:"",brandId:e.activeBrand};Object(c.b)("/haoban-app-tel-task-web/task/export-store-task-list",n).then(function(t){if(!t.data)return p.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),n=(e.tableData[0]?e.tableData[0].storeName:"")+"门店任务报表.csv",o=document.createElement("a");o.download=n,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},toDetail:function(e,t){this.$router.push("taskDetail?storeId="+t.storeId+"&appIcon="+this.$route.query.appIcon)},getTableList:function(e){var t=this,a=[],n=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var o={search:t.conditionObj.searchInput||"",filterStoreIds:n.join(",")||"",storeGroupIds:a.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(c.a)("/haoban-app-tel-task-web/task/store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},initDataRange:function(){var e=new Date,t=e.getTime()-7776e6,a=e.getFullYear(),n=e.getMonth()+1,o=e.getDate()<10?"0"+e.getDate():e.getDate(),i=n<10?"0"+n:n,l=new Date(t),s=l.getFullYear(),r=l.getMonth()+1,c=l.getDate()<10?"0"+l.getDate():l.getDate();return[s+"-"+(r<10?"0"+r:r)+"-"+c,a+"-"+i+"-"+o]}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.conditionObj.dateRange=e.initDataRange(),document.documentElement.style.backgroundColor="#f0f2f5",e.activeBrand=e.brandId,this.brandId&&e.$nextTick(function(){e.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:s.a,vueSelectStore:l.a,multipleDel:r.a,taskView:g}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"common-detail-tab"},[a("el-tabs",{staticClass:"daily-set-tab",on:{"tab-click":e.changeTable},model:{value:e.conditionObj.tableType,callback:function(t){e.$set(e.conditionObj,"tableType",t)},expression:"conditionObj.tableType"}},[a("el-tab-pane",{attrs:{label:"门店视图",name:"1"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"话务任务视图",name:"2"}})],1)],1),e._v(" "),1==e.conditionObj.tableType?a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e.conditionObj.storeGroup.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc"},[e._v("请选择门店分组")]),e._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.conditionObj.storeGroup,function(t,n){return[a("span",{key:n,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(n,e.conditionObj.storeGroup)}}})])]})],2)])])])]),e._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeStoreType},model:{value:e.conditionObj.storeType,callback:function(t){e.$set(e.conditionObj,"storeType",t)},expression:"conditionObj.storeType"}},e._l(e.storeTypeOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导出")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.completedCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.completedRate))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.noCompletedCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.overdueCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toDetail(t.$index,t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1):e._e(),e._v(" "),2==e.conditionObj.tableType?a("taskView",{attrs:{brandId:e.brandId,activeGroupId:e.activeGroupId}}):e._e(),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1},on:{hideDialog:e.hideDialog}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var v=a("VU/8")(f,m,!1,function(e){a("Cw3p")},"data-v-8b3b982c",null);t.default=v.exports}});
\ No newline at end of file
webpackJsonp([34],{C57R:function(e,t){},VsMT:function(e,t){},iG3v:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("2eFk"),s=a("Ie7z"),l=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"taskView",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"话务任务记录"}],activeId:"1",showDialog:!1,conditionObj:{tableType:"1",searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeTable:function(e){this.currentPage=1,this.getTableList()},handleCommand:function(e){this.selectRadio=e},setSelectTab:function(e){this.activeTab=e.tabId},toInput:Object(d.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!o()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this;t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var a={search:t.conditionObj.searchInput||"",ecmIds:t.multipleSelection.map(function(e){return e.ecmIds}).join(",")||"",brandId:t.activeBrand,delTaskStatus:e.delOptFlag,reason:e.reason,isAll:t.selectRadio};Object(c.e)("/haoban-app-tel-task-web/task/batch-del-task-view-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},exportExcel:function(){var e=this,t=[],a=[];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:a.join(",")||"",storeGroupIds:t.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange?e.conditionObj.dateRange[0]:"",endDate:e.conditionObj.dateRange?e.conditionObj.dateRange[1]:"",brandId:e.activeBrand};Object(c.b)("/haoban-app-tel-task-web/task/export-store-task-list",n).then(function(t){if(!t.data)return p.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),n=(e.tableData[0]?e.tableData[0].storeName:"")+"门店任务报表.csv",o=document.createElement("a");o.download=n,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},toDetail:function(e,t){this.$router.push("taskViewDetail?ecmId="+t.ecmId+"&appIcon="+this.$route.query.appIcon)},getTableList:function(e){var t=this,a={search:t.conditionObj.searchInput||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(c.a)("/haoban-app-tel-task-web/task/task-view-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},initDataRange:function(){var e=new Date,t=e.getTime()-7776e6,a=e.getFullYear(),n=e.getMonth()+1,o=e.getDate()<10?"0"+e.getDate():e.getDate(),i=n<10?"0"+n:n,s=new Date(t),l=s.getFullYear(),r=s.getMonth()+1,c=s.getDate()<10?"0"+s.getDate():s.getDate();return[l+"-"+(r<10?"0"+r:r)+"-"+c,a+"-"+i+"-"+o]}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.conditionObj.dateRange=e.initDataRange(),document.documentElement.style.backgroundColor="#f0f2f5",e.activeBrand=e.brandId,this.brandId&&e.$nextTick(function(){e.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:l.a,vueSelectStore:s.a,multipleDel:r.a}},b={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入话务任务名称"},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("span",{staticClass:"condition-tips font-12 color-909399 p-l-10"},[e._v("仅包含话务任务记录")])],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"任务名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ecmName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.competedTaskNum))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.competedTaskRate))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.toComplete))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.overTimeNum))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toDetail(t.$index,t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var g=a("VU/8")(h,b,!1,function(e){a("C57R")},"data-v-35b0f131",null).exports,f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"话务任务记录"}],activeId:"1",showDialog:!1,conditionObj:{tableType:"1",searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeTable:function(e){if(2==e.name)return!1;this.currentPage=1,this.getTableList()},handleCommand:function(e){this.selectRadio=e},setSelectTab:function(e){this.activeTab=e.tabId},toInput:Object(d.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!o()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a=[],n=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var o={search:t.conditionObj.searchInput||"",filterStoreIds:n.join(",")||"",storeGroupIds:a.join(",")||"",storeIds:t.multipleSelection.map(function(e){return e.storeId}).join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",brandId:t.activeBrand,delTaskStatus:e.delOptFlag,reason:e.reason,isAll:t.selectRadio};Object(c.e)("/haoban-app-tel-task-web/task/batch-del-store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},exportExcel:function(){var e=this,t=[],a=[];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:a.join(",")||"",storeGroupIds:t.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange?e.conditionObj.dateRange[0]:"",endDate:e.conditionObj.dateRange?e.conditionObj.dateRange[1]:"",brandId:e.activeBrand};Object(c.b)("/haoban-app-tel-task-web/task/export-store-task-list",n).then(function(t){if(!t.data)return p.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),n=(e.tableData[0]?e.tableData[0].storeName:"")+"门店任务报表.csv",o=document.createElement("a");o.download=n,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},toDetail:function(e,t){this.$router.push("taskDetail?storeId="+t.storeId+"&appIcon="+this.$route.query.appIcon)},getTableList:function(e){var t=this,a=[],n=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var o={search:t.conditionObj.searchInput||"",filterStoreIds:n.join(",")||"",storeGroupIds:a.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(c.a)("/haoban-app-tel-task-web/task/store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},initDataRange:function(){var e=new Date,t=e.getTime()-7776e6,a=e.getFullYear(),n=e.getMonth()+1,o=e.getDate()<10?"0"+e.getDate():e.getDate(),i=n<10?"0"+n:n,s=new Date(t),l=s.getFullYear(),r=s.getMonth()+1,c=s.getDate()<10?"0"+s.getDate():s.getDate();return[l+"-"+(r<10?"0"+r:r)+"-"+c,a+"-"+i+"-"+o]}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.conditionObj.dateRange=e.initDataRange(),document.documentElement.style.backgroundColor="#f0f2f5",e.activeBrand=e.brandId,this.brandId&&e.$nextTick(function(){e.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:l.a,vueSelectStore:s.a,multipleDel:r.a,taskView:g}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"common-detail-tab"},[a("el-tabs",{staticClass:"daily-set-tab",on:{"tab-click":e.changeTable},model:{value:e.conditionObj.tableType,callback:function(t){e.$set(e.conditionObj,"tableType",t)},expression:"conditionObj.tableType"}},[a("el-tab-pane",{attrs:{label:"门店视图",name:"1"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"话务任务视图",name:"2"}})],1)],1),e._v(" "),1==e.conditionObj.tableType?a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e.conditionObj.storeGroup.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc"},[e._v("请选择门店分组")]),e._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.conditionObj.storeGroup,function(t,n){return[a("span",{key:n,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(n,e.conditionObj.storeGroup)}}})])]})],2)])])])]),e._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeStoreType},model:{value:e.conditionObj.storeType,callback:function(t){e.$set(e.conditionObj,"storeType",t)},expression:"conditionObj.storeType"}},e._l(e.storeTypeOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导出")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"td-ellipsis"}),e._v("\n "+e._s(t.row.storeName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.completedCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.completedRate))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.noCompletedCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.overdueCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toDetail(t.$index,t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1):e._e(),e._v(" "),2==e.conditionObj.tableType?a("taskView",{attrs:{brandId:e.brandId,activeGroupId:e.activeGroupId}}):e._e(),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1},on:{hideDialog:e.hideDialog}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var v=a("VU/8")(f,m,!1,function(e){a("VsMT")},"data-v-89d282a4",null);t.default=v.exports}});
\ No newline at end of file
webpackJsonp([5,54,62,72,81,96],{"1NWy":function(t,e){},"79Bk":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.startTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),i("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),i("div",{staticClass:"b-t-1 flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.endTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("Dy6z")},"data-v-05d718c8",null);e.default=l.exports},Dy6z:function(t,e){},EWqx:function(t,e){},FdYP:function(t,e){},H8Kg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var l=i("VU/8")(a,s,!1,function(t){i("FdYP")},"data-v-6c75d59f",null);e.default=l.exports},IA9l:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("//Fk"),s=i.n(a),l=i("Gu7T"),n=i.n(l),c=i("gBtx"),o=i.n(c),r=i("mvHQ"),d=i.n(r),m=i("DAYN"),p=i.n(m),u=i("Isrn"),v=i("l46T"),h=i("H8Kg"),f=i("t0b0"),_=i("79Bk"),g=i("s4D+"),y=i("PAYw"),C=i("fPyK"),b=i("3E4D"),I=i("Ch4/"),x=i("PI0u"),w=i("P9l9"),k={name:"customSetTemplate",data:function(){return{activeName:"first",rightName:"second",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},leftDefineOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},templateId:"",oparateType:"",counter:1,selectKey:"",tradeInfo:[],personInfo:[],goodsInfo:[],competeInfo:[],defineInfo:[],currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[],setList:[],templateObj:{title:"",description:"",storeType:"",momory:[]},storeList:[{id:"0",name:"自营门店",disabled:!1},{id:"1",name:"联营门店",disabled:!1},{id:"2",name:"代理门店",disabled:!1},{id:"3",name:"代销门店",disabled:!1},{id:"4",name:"托管门店",disabled:!1}]}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)},returnBack:function(){this.changeRoute("/customReport?brandId="+this.brandId+"&appIcon="+this.$route.query.appIcon)},cloneItem:function(t){var e=JSON.parse(d()(t));return e.cid="c"+this.counter,e.systemFlag||(e.name.includes("textc")&&(e.name="textc"+this.counter),e.name.includes("paragraphc")&&(e.name="paragraphc"+this.counter),e.name.includes("numberc")&&(e.name="numberc"+this.counter),e.name.includes("checkboxesOrRadioc")&&(e.name="checkboxesOrRadioc"+this.counter),e.name.includes("datec")&&(e.name="datec"+this.counter),e.name.includes("dateareac")&&(e.name="dateareac"+this.counter),e.name.includes("picc")&&(e.name="picc"+this.counter),e.name.includes("introductionc")&&(e.name="introductionc"+this.counter),e.name.includes("pricec")&&(e.name="pricec"+this.counter),e.name.includes("groupc")&&(e.name="groupc"+this.counter,e.title=""+e.title+this.counter)),e},onMove:function(t){var e=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(e.name)&&!e.fixed},onChildMove:function(t){var e=!0;return-1!=t.dragged.className.indexOf("block-class")&&-1!=t.to.className.indexOf("block-wrap")&&(e=!1),e},itemMoveEnd:function(t){var e=this;function i(t){e[t].forEach(function(t,i){t.name==e.selectKey&&(t.fixed=!0)})}e.isDragging=!1,e.selectKey="",e.selectKey=t.clone.dataset.name,e.tempaletDataList.forEach(function(t,a){t.name==e.selectKey&&i(t.parentCode),t.children&&t.children.forEach(function(t,a){t.name==e.selectKey&&i(t.parentCode)})}),e.selectKey="",e.tempaletDataList=JSON.parse(d()(e.tempaletDataList)),e.$forceUpdate(),e.counter=e.counter+1},selectItem:function(t,e){this.currentIndex=e,this.currentChildIndex=null},deleteItem:function(t,e,i,a){var s=this;if(s.tempaletDataList.splice(i,1),s.currentIndex--,s.currentIndex<=0&&(s.currentIndex=0),!a.systemFlag)return a.name.includes("groupc")&&a.children.length&&a.children.forEach(function(t){t.systemFlag&&s[t.parentCode].forEach(function(e){e.name==t.name&&(e.fixed=!1)})}),!1;s[e].forEach(function(e,i){e.name==t&&(e.fixed=!1)})},addDragItem:function(t){return!1},selectChildItem:function(t,e,i,a){this.currentIndex=null,this.currentChildKey=t,this.childIndex=e,this.currentChildIndex=i},deleteChildItem:function(t,e,i,a,s){if(this.childIndex=e,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[e].children[i].name,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(d()(this.tempaletDataList)),this.tempaletDataList[e].children.splice(i,1),!s.systemFlag)return!1;this[s.parentCode].forEach(function(e,i){e.name===t&&(e.fixed=!1)})},delChildItem:function(t,e,i){i.list.splice(e,1)},addChildItem:function(t,e,i){if(19!=e){i.list.push({value:"选项"+(e+2),key:e+2});var a=i.list.map(function(t){return t.value});this.isRepeat(a)&&(i.list.splice(i.list.length-1,1),a.splice(i.list.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},changeMust:function(t,e,i){e&&i.list.forEach(function(e){e.isMust=!!t})},isRepeat:function(t){var e={};for(var i in t){if(e[t[i]])return!0;e[t[i]]=!0}return!1},changeRoute:function(t){this.$router.push(t)},checkTag:function(t){var e={filedFlag:!0,filedRepeat:!1},i=[];return t.forEach(function(t){if(""==t.title)return e.filedFlag=!1,e.name=t.title||"",!1;i.push(t.title),t.hasOwnProperty("children")&&t.children.length&&t.children.forEach(function(t){if(t.systemFlag&&""==t.title)return e.filedFlag=!1,e.name=t.title||"",!1;i.push(t.title)})}),this.isRepeat(i)&&(e.filedRepeat=!0),e},checkTemplateObj:function(){var t=!0;return this.templateObj.title&&this.templateObj.description&&this.templateObj.storeType||(t=!1),t},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},saveAndBack:Object(x.a)(function(t){if(!this.checkTemplateObj())return this.$message.error({duration:1e3,message:"请完善模板设置内容"}),!1;var e=JSON.parse(d()(this.tempaletDataList)),i=this.checkTag(e);if(!i.filedFlag)return this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"}),!1;if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(e.forEach(function(t,e){t.sort=e,t.isMust=t.isMust?1:0,t.memory=t.memory?1:0,t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=t.openCapitalize?1:0),t.hasOwnProperty("list")&&t.list.forEach(function(t){t.isMust=t.isMust?1:0}),t.hasOwnProperty("children")&&(t.children.forEach(function(t,e){t.sort=e,t.isMust=t.isMust?1:0,t.memory=t.memory?1:0,t.hasOwnProperty("list")&&t.list.forEach(function(t){t.isMust=t.isMust?1:0}),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=t.openCapitalize?1:0)}),t.list=t.children)}),!e.length)return this.$message.error({duration:1e3,message:"请先配置字段"}),!1;"save"===t?this.saveAllData(e):this.postPreview(e)}},500),saveAllData:function(t){var e=this,i={status:1,brandId:e.brandId,templateContent:d()(t),title:e.templateObj.title,description:e.templateObj.description,storeType:e.templateObj.storeType,memory:[]};Object(w.e)("/haoban-app-daily-web/daily/save-define-template",i).then(function(t){var i=t.data;if(1==i.errorCode)return b.a.showmsg("保存成功","success"),void e.changeRoute("/customReport?brandId="+e.brandId+"&appIcon="+e.$route.query.appIcon);I.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var e=this,i={templateType:1,brandId:e.brandId,templateContent:d()(t)};Object(w.e)("/haoban-app-daily-web/daily/preview-template",i).then(function(t){var i=t.data;if(1==i.errorCode){var a=JSON.parse(localStorage.getItem("userInfo")).enterpriseId,s=window.location.origin+"/office-mobile/#/defineTemplate?enterpriseId="+a+"&templateId="+i.result+"&brandId="+e.brandId;return e.$refs.qrcodePreview.qrcode(s,"daily-preview"),void(e.dialogVisible=!0)}I.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getHasStores:function(){var t=this;Object(w.e)("/haoban-app-daily-web/daily/has-defined-template-store-type",{brandId:t.brandId}).then(function(e){var i=e.data;1!=i.errorCode?I.a.errorMsg(i):t.storeList.forEach(function(e){i.result&&i.result.length&&i.result.includes(o()(e.id))&&(e.disabled=!0),"edit"==t.oparateType&&t.storeType==e.id&&(e.disabled=!1)})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAllFields:function(t){var e=this;Object(w.e)("/haoban-app-daily-web/daily/get-template-items",{brandId:e.brandId,type:t}).then(function(i){var a=i.data;if(1==a.errorCode)return a.result.forEach(function(e){e.isMust=!!e.isMust,e.memory=!!e.memory,e.title=e.title.trim(),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=!!e.openCapitalize),e.hasOwnProperty("list")&&e.list&&e.list.length&&e.list.forEach(function(t){t.isMust=!!t.isMust}),e.systemFlag=3!=t,e.name.includes("groupc")&&(e.children=[])}),void(3==t?e.defineInfo=a.result:e.handleAllFields(a.result));I.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAllFields:function(t){var e=this;t.forEach(function(t){t.fixed=!1,1==t.classify&&(t.parentCode="tradeInfo",e.tradeInfo.push(t)),2==t.classify&&(t.parentCode="personInfo",e.personInfo.push(t)),3==t.classify&&(t.parentCode="goodsInfo",e.goodsInfo.push(t)),4==t.classify&&(t.parentCode="competeInfo",e.competeInfo.push(t))})},getInfo:function(){var t=this;Object(w.e)("/haoban-app-daily-web/daily/get-define-template",{templateId:t.templateId}).then(function(e){var i=e.data;if(1==i.errorCode)return t.setList=[],i.result&&(t.templateObj.title=i.result.title,t.templateObj.description=i.result.description,t.storeType="edit"==t.oparateType?String(i.result.storeType):"",t.templateObj.storeType="edit"==t.oparateType?String(i.result.storeType):"",i.result.templateContent&&i.result.templateContent.length&&t.handleGetInfo(i.result.templateContent)),void t.getHasStores();I.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},treeData:function(t){var e=t.filter(function(e){var i=t.filter(function(t){return e.fieldCode==t.parentCode});return i.length>0&&(e.children=i),0==e.parentCode});return e.sort(function(t,e){return t.sort-e.sort}),e.forEach(function(t,e){t.children.sort(function(t,e){return t.sort-e.sort})}),e},handleGetInfo:function(t){var e=this,i=JSON.parse(d()(t));e.cids=[],e.setParent=[],i.forEach(function(t,i){t.title=t.title.trim(),t.isMust=!!t.isMust,t.memory=!!t.memory,t.name.includes("textc")||t.name.includes("paragraphc")||t.name.includes("numberc")||t.name.includes("checkboxesOrRadioc")||t.name.includes("datec")||t.name.includes("dateareac")||t.name.includes("picc")||t.name.includes("introductionc")||t.name.includes("pricec")||t.name.includes("groupc")?(t.systemFlag=!1,t.parentCode="defineInfo"):(e.setParent.push(t.name),t.systemFlag=!0,1==t.classify&&(t.parentCode="tradeInfo"),2==t.classify&&(t.parentCode="personInfo"),3==t.classify&&(t.parentCode="goodsInfo"),4==t.classify&&(t.parentCode="competeInfo")),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=!!t.openCapitalize),t.hasOwnProperty("list")&&t.list&&t.list.length&&(t.list.forEach(function(i){(i.isMust=!!i.isMust,t.name.includes("groupc"))&&(i.isMust=!!i.isMust,i.memory=!!i.memory,i.name.includes("textc")||i.name.includes("paragraphc")||i.name.includes("numberc")||i.name.includes("checkboxesOrRadioc")||i.name.includes("datec")||i.name.includes("dateareac")||i.name.includes("picc")||i.name.includes("introductionc")||i.name.includes("pricec")||i.name.includes("groupc")?i.systemFlag=!1:(e.setParent.push(i.name),i.systemFlag=!0,1==i.classify&&(i.parentCode="tradeInfo"),2==i.classify&&(i.parentCode="personInfo"),3==i.classify&&(i.parentCode="goodsInfo"),4==i.classify&&(i.parentCode="competeInfo")))}),t.name.includes("groupc")&&(t.children=t.list)),e.cids.push(o()(t.cid.match(/\d+/g))),t.hasOwnProperty("children")&&t.children.forEach(function(t){t.isMust=!!t.isMust,t.memory=!!t.memory,e.cids.push(o()(t.cid.match(/\d+/g)))})}),e.counter=Math.max.apply(Math,n()(e.cids)),e.tempaletDataList=i,setTimeout(function(){e.setFixed()},500)},setFixed:function(){var t=this;["tradeInfo","personInfo","goodsInfo","competeInfo"].forEach(function(e){t[e].forEach(function(e){t.setParent.includes(e.name)&&(e.fixed=!0)})})}},watch:{isDragging:function(t){var e=this;t?e.delayedDragging=!0:e.$nextTick(function(){e.delayedDragging=!1})}},components:{draggable:p.a,AddInput:u.a,limitInput:v.a,imageCom:h.default,selectCom:f.default,dateRangeCom:_.default,inputCom:g.default,blockCom:y.default,qrcodeDialog:C.a},mounted:function(){var t=this,e=t.$route.query;t.brandId=t.$route.query.brandId,s.a.all([t.getAllFields(2)]).then(function(i){t.getAllFields(3),e.hasOwnProperty("templateId")?(t.templateId=e.templateId,t.oparateType=e.type,t.getInfo()):t.getHasStores()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}}},T={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"template-wrap",style:{height:t.bodyHeight}},[a("div",{staticClass:"template-contain"},[a("div",{staticClass:"template-head"},[t._m(0),t._v(" "),a("div",{staticClass:"template-btns flex-1 flex-r"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){t.saveAndBack("preview")}}},[t._v("预 览")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.returnBack}},[t._v("返 回")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.saveAndBack("save")}}},[t._v("保存并启用")])],1)]),t._v(" "),a("div",{staticClass:"template-body"},[a("div",{staticClass:"template-cell template-cell-l"},[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"系统字段",name:"first"}},[a("div",{staticClass:"filed-item-title"},[t._v("交易")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.tradeInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name,"aria-hidden":"true"}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("人员")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.personInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.personInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("商品")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.goodsInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.goodsInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("竞品")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.competeInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.competeInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1)]),t._v(" "),a("el-tab-pane",{attrs:{label:"自定义字段",name:"second"}},[a("div",{staticClass:"filed-item-title"}),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.defineInfo,options:t.leftDefineOption,clone:t.cloneItem,move:t.onChildMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.defineInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":"",11==e.type?"block-class":""],attrs:{"data-type":e.fieldCode}},[0==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),1==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),2==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),3==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),4==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),5==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),6==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),7==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),9==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),10==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),11==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),0==e.type?a("i",{staticClass:"bg-icon bg-icon-one"}):t._e(),t._v(" "),1==e.type?a("i",{staticClass:"bg-icon bg-icon-two"}):t._e(),t._v(" "),2==e.type?a("i",{staticClass:"bg-icon bg-icon-three"}):t._e(),t._v(" "),3==e.type?a("i",{staticClass:"bg-icon bg-icon-four"}):t._e(),t._v(" "),4==e.type?a("i",{staticClass:"bg-icon bg-icon-five"}):t._e(),t._v(" "),5==e.type?a("i",{staticClass:"bg-icon bg-icon-six"}):t._e(),t._v(" "),6==e.type?a("i",{staticClass:"bg-icon bg-icon-seven"}):t._e(),t._v(" "),7==e.type?a("i",{staticClass:"bg-icon bg-icon-eight"}):t._e(),t._v(" "),9==e.type?a("i",{staticClass:"bg-icon bg-icon-ten"}):t._e(),t._v(" "),10==e.type?a("i",{staticClass:"bg-icon bg-icon-eleven"}):t._e(),t._v(" "),11==e.type?a("i",{staticClass:"bg-icon bg-icon-twelve"}):t._e()])}))],1)])],1)],1),t._v(" "),a("div",{staticClass:"template-cell template-cell-m"},[a("div",{staticClass:"phone-view"},[a("div",{staticClass:"phone-show-content"},[a("div",{staticClass:"drag-show-content"},[a("div",{staticClass:"view-container"},[a("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[a("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:t._e(),t._v(" "),a("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:t.tempaletDataList,callback:function(e){t.tempaletDataList=e},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(e,i){return a("li",{key:"li1"+i,class:["filed-item",t.currentIndex==i?"active-item":"","li-block"],on:{click:function(a){t.selectItem(e.fieldCode,i)}}},["baseInfo"!=e.fieldCode?a("span",{staticClass:"item-close p-item-close",on:{click:function(a){a.stopPropagation(),t.deleteItem(e.name,e.parentCode,i,e)}}},[a("i",{staticClass:"el-icon-close"})]):t._e(),t._v(" "),e.systemFlag||!e.name.includes("groupc")?a("div",[1==e.type||2==e.type||3==e.type||10==e.type||9==e.type?a("input-com",{attrs:{childItem:e}}):t._e(),t._v(" "),4==e.type||5==e.type?a("select-com",{attrs:{childItem:e}}):t._e(),t._v(" "),6==e.type?a("date-range-com",{attrs:{childItem:e}}):t._e(),t._v(" "),7==e.type?a("image-com",{attrs:{childItem:e}}):t._e(),t._v(" "),"11"==e.type?a("block-com",{attrs:{childItem:e}}):t._e()],1):t._e(),t._v(" "),[e.name.includes("groupc")?a("div",{staticClass:"block"},[a("div",{staticClass:"block-head"},[a("div",{class:["opencard-item-title",t.getZhLen(e.title)>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))])]),t._v(" "),a("ul",{staticClass:"view-content"},[a("draggable",{class:["drag-wrap","block-wrap",e.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:t.addDragItem},model:{value:e.children,callback:function(i){t.$set(e,"children",i)},expression:"item.children"}},t._l(e.children,function(s,l){return a("li",{key:"li"+l,class:["filed-item","child-filed-item",t.currentChildKey==s.name&&t.currentChildIndex==l?"active-item":""],on:{click:function(a){a.stopPropagation(),t.selectChildItem(s.name,i,l,e.children)}}},[a("span",{staticClass:"item-close child-item-close",on:{click:function(a){a.stopPropagation(),t.deleteChildItem(s.name,i,l,e.children,s)}}},[a("i",{staticClass:"el-icon-close"})]),t._v(" "),4==s.type||5==s.type?a("select-com",{attrs:{childItem:s}}):t._e(),t._v(" "),6==s.type?a("date-range-com",{attrs:{childItem:s}}):t._e(),t._v(" "),7==s.type?a("image-com",{attrs:{childItem:s}}):t._e(),t._v(" "),1==s.type||2==s.type||3==s.type||10==s.type||9==s.type?a("input-com",{attrs:{childItem:s}}):t._e(),t._v(" "),"11"==s.type&&s.systemFlag?a("block-com",{attrs:{childItem:s}}):t._e()],1)}))],1)]):t._e()]],2)}))],2)])])])])]),t._v(" "),a("div",{staticClass:"template-cell template-cell-r define-template-tab"},[a("el-tabs",{model:{value:t.rightName,callback:function(e){t.rightName=e},expression:"rightName"}},[a("el-tab-pane",{attrs:{label:"控件设置",name:"first"}},[a("div",{attrs:{id:"edit-box"}},[a("div",{staticClass:"edit-view baby-info-flag baby-info"},[t._l(t.tempaletDataList,function(e,i){return[t.currentIndex!=i||e.systemFlag||6==e.type?t._e():[a("div",{key:"child"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.title,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"title",i)}}}),t._v(" "),7==e.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[t._v("\n 图片最多可添加9张\n ")]):t._e()],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||6!=e.type?t._e():[a("div",{key:"child62"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.startTitle,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"startTitle",i)}}})],1),t._v(" "),a("div",{key:"child64"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题2 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.endTitle,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"endTitle",i)}}})],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||11==e.type||5==e.type||7==e.type?t._e():[a("div",{key:"child1"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("提示文字最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),2==e.type||9==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入500个字")]):t._e(),t._v(" "),1==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入100个字")]):t._e()],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||3!=e.type?t._e():[a("div",{key:"child11"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("单位最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最大限制为12位数")])],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||"4"!=e.type?t._e():[a("div",{key:"child111"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("选项 "),e.systemFlag?t._e():a("span",[t._v("最多20项,每项最多10个字")])]),t._v(" "),t._l(e.list,function(s,l){return[a("div",{key:"child10"+l,staticClass:"margin-t-15 limit-w-340",style:0==l?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:s.value,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(e){t.$set(s,"value",e)}}}),t._v(" "),!e.systemFlag&&e.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){t.delChildItem(i,l,e)}}}):t._e(),t._v(" "),!e.systemFlag&&l<19?[l==e.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){t.addChildItem(i,l,e)}}}):t._e()]:t._e()],2)]})],2),t._v(" "),a("div",{key:"parent22"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("选择框类型")]),t._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"item.chooseType"}},[t._v("单选")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"item.chooseType"}},[t._v("多选")])],1)])],t._v(" "),t.currentIndex!=i||e.systemFlag||5!=e.type&&6!=e.type?t._e():[a("div",{key:"child117"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("日期类型")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"item.dateType"}},[t._v("\n 年-月-日 时 分\n ")]),t._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"item.dateType"}},[t._v("\n 年-月-日\n ")])],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||10!=e.type?t._e():[a("div",{key:"parent210"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("大写")]),t._v(" "),a("el-checkbox",{model:{value:e.openCapitalize,callback:function(i){t.$set(e,"openCapitalize",i)},expression:"item.openCapitalize"}},[t._v("显示大写")])],1)],t._v(" "),t.currentIndex!=i||e.name.includes("groupc")?t._e():[a("div",{key:"parent2"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证")]),t._v(" "),a("el-checkbox",{on:{change:function(i){t.changeMust(i,!!e.list,e)}},model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"item.isMust"}},[t._v("必填")])],1)],t._v(" "),t.currentIndex!=i||"performanceKing"!=e.name&&"competitorInfo"!=e.name?t._e():[a("div",{key:"parent21"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证 是否必填")]),t._v(" "),a("div",{staticClass:"must-list"},t._l(e.list,function(e,i){return a("div",{key:"list"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"listItem.isMust"}},[t._v(t._s(e.title))])],1)}))])],t._v(" "),t.currentIndex!=i||e.name.includes("groupc")?t._e():[a("div",{key:"parent3"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("记忆")]),t._v(" "),a("el-checkbox",{model:{value:e.memory,callback:function(i){t.$set(e,"memory",i)},expression:"item.memory"}},[t._v("是否记忆")])],1)],t._v(" "),t.childIndex==i&&e.children&&e.children.length?[t._l(e.children,function(e,s){return[t.currentChildIndex!=s||e.systemFlag||6==e.type?t._e():[a("div",{key:"child"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.title,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"title",i)}}}),t._v(" "),7==e.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[t._v("\n 图片最多可添加9张\n ")]):t._e()],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||6!=e.type?t._e():[a("div",{key:"child2"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.startTitle,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"startTitle",i)}}})],1),t._v(" "),a("div",{key:"child4"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题2 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.endTitle,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"endTitle",i)}}})],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||5==e.type||7==e.type?t._e():[a("div",{key:"child1"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("提示文字最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),2==e.type||9==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入500个字")]):t._e(),t._v(" "),1==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入100个字")]):t._e()],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||3!=e.type?t._e():[a("div",{key:"child6"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("单位最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"unit",i)}}}),t._v(" "),a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最大限制为12位数")])],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||5!=e.type&&6!=e.type?t._e():[a("div",{key:"child7"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("日期类型")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"childItem.dateType"}},[t._v("\n 年-月-日 时 分\n ")]),t._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"childItem.dateType"}},[t._v("\n 年-月-日\n ")])],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||"4"!=e.type?t._e():[a("div",{key:"child9"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("选项 "),e.systemFlag?t._e():a("span",[t._v("最多20项,每项最多10个字")])]),t._v(" "),t._l(e.list,function(s,l){return[a("div",{key:"child10"+l,staticClass:"margin-t-15 limit-w-340",style:0==l?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:s.value,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(e){t.$set(s,"value",e)}}}),t._v(" "),!e.systemFlag&&e.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){t.delChildItem(i,l,e)}}}):t._e(),t._v(" "),!e.systemFlag&&l<19?[l==e.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){t.addChildItem(i,l,e)}}}):t._e()]:t._e()],2)]})],2),t._v(" "),a("div",{key:"child922"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("选择框类型")]),t._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"childItem.chooseType"}},[t._v("单选")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"childItem.chooseType"}},[t._v("多选")])],1)])],t._v(" "),t.currentChildIndex!=s||e.systemFlag||10!=e.type?t._e():[a("div",{key:"child910"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("大写")]),t._v(" "),a("el-checkbox",{model:{value:e.openCapitalize,callback:function(i){t.$set(e,"openCapitalize",i)},expression:"childItem.openCapitalize"}},[t._v("显示大写")])],1)],t._v(" "),t.currentChildIndex==s?[a("div",{key:"child11"+s,staticClass:"edit-item"},[a("div",{staticClass:"edit-item-title"},[t._v("验证")]),t._v(" "),a("el-checkbox",{on:{change:function(i){t.changeMust(i,!!e.list,e)}},model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"childItem.isMust"}},[t._v("必填")])],1)]:t._e(),t._v(" "),t.currentChildIndex!=s||"performanceKing"!=e.name&&"competitorInfo"!=e.name?t._e():[a("div",{key:"child111"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证 是否必填")]),t._v(" "),a("div",{staticClass:"must-list"},t._l(e.list,function(e,i){return a("div",{key:"list111"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"listItem.isMust"}},[t._v(t._s(e.title))])],1)}))])],t._v(" "),t.currentChildIndex==s?[a("div",{key:"child12"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("记忆")]),t._v(" "),a("el-checkbox",{model:{value:e.memory,callback:function(i){t.$set(e,"memory",i)},expression:"childItem.memory"}},[t._v("是否记忆")])],1)]:t._e()]})]:t._e()]})],2)])]),t._v(" "),a("el-tab-pane",{attrs:{label:"模板设置",name:"second"}},[a("div",{staticClass:"template-item limit-w-340"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("模板名称 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.templateObj.title,holder:"",disflag:!1,getByType:"word",maxLength:10},on:{"update:inputValue":function(e){t.$set(t.templateObj,"title",e)}}})],1),t._v(" "),a("div",{staticClass:"template-item limit-w-340"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("模板描述 最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.templateObj.description,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(e){t.$set(t.templateObj,"description",e)}}})],1),t._v(" "),a("div",{staticClass:"template-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("门店类型")]),t._v(" "),a("div",{staticClass:"store-type-list"},t._l(t.storeList,function(e,i){return a("div",{key:e.name+i,staticClass:"store-type-cell m-b-20"},[a("el-radio",{attrs:{label:e.id,disabled:e.disabled},model:{value:t.templateObj.storeType,callback:function(e){t.$set(t.templateObj,"storeType",e)},expression:"templateObj.storeType"}},[t._v(t._s(e.name))])],1)}))])])],1)],1)])]),t._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"template-title flex-1"},[e("img",{attrs:{src:i("LbEI"),alt:"logo"}}),this._v(" "),e("span",{staticClass:"template-title-span"},[this._v("日报设置")])])}]};var M=i("VU/8")(k,T,!1,function(t){i("EWqx")},"data-v-fe6d56f6",null);e.default=M.exports},PAYw:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),i("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,a){return i("li",{key:"performance"+a,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])})),t._v(" "),"competitorInfo"==t.childItem.name?i("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("1NWy")},"data-v-97f6d394",null);e.default=l.exports},"fIe/":function(t,e){},lpYn:function(t,e){},"s4D+":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:[2==t.childItem.type?"h-66":""]},[9!=t.childItem.type?i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]):t._e(),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==t.childItem.type?"15px":"0"}},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":""))])]),t._v(" "),10==t.childItem.type&&t.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[t._v("大写:壹万元整(示例)")]):t._e()])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("lpYn")},"data-v-51432d8f",null);e.default=l.exports},t0b0:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("fIe/")},"data-v-3fd29910",null);e.default=l.exports}});
\ No newline at end of file
webpackJsonp([5,55,63,73,81,96],{"1NWy":function(t,e){},"79Bk":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.startTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),i("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),i("div",{staticClass:"b-t-1 flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.endTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("Dy6z")},"data-v-05d718c8",null);e.default=l.exports},Dy6z:function(t,e){},EWqx:function(t,e){},FdYP:function(t,e){},H8Kg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var l=i("VU/8")(a,s,!1,function(t){i("FdYP")},"data-v-6c75d59f",null);e.default=l.exports},IA9l:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("//Fk"),s=i.n(a),l=i("Gu7T"),n=i.n(l),c=i("gBtx"),o=i.n(c),r=i("mvHQ"),d=i.n(r),m=i("DAYN"),p=i.n(m),u=i("Isrn"),v=i("l46T"),h=i("H8Kg"),f=i("t0b0"),_=i("79Bk"),g=i("s4D+"),y=i("PAYw"),C=i("fPyK"),b=i("3E4D"),I=i("Ch4/"),x=i("PI0u"),w=i("P9l9"),k={name:"customSetTemplate",data:function(){return{activeName:"first",rightName:"second",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},leftDefineOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},templateId:"",oparateType:"",counter:1,selectKey:"",tradeInfo:[],personInfo:[],goodsInfo:[],competeInfo:[],defineInfo:[],currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[],setList:[],templateObj:{title:"",description:"",storeType:"",momory:[]},storeList:[{id:"0",name:"自营门店",disabled:!1},{id:"1",name:"联营门店",disabled:!1},{id:"2",name:"代理门店",disabled:!1},{id:"3",name:"代销门店",disabled:!1},{id:"4",name:"托管门店",disabled:!1}]}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)},returnBack:function(){this.changeRoute("/customReport?brandId="+this.brandId+"&appIcon="+this.$route.query.appIcon)},cloneItem:function(t){var e=JSON.parse(d()(t));return e.cid="c"+this.counter,e.systemFlag||(e.name.includes("textc")&&(e.name="textc"+this.counter),e.name.includes("paragraphc")&&(e.name="paragraphc"+this.counter),e.name.includes("numberc")&&(e.name="numberc"+this.counter),e.name.includes("checkboxesOrRadioc")&&(e.name="checkboxesOrRadioc"+this.counter),e.name.includes("datec")&&(e.name="datec"+this.counter),e.name.includes("dateareac")&&(e.name="dateareac"+this.counter),e.name.includes("picc")&&(e.name="picc"+this.counter),e.name.includes("introductionc")&&(e.name="introductionc"+this.counter),e.name.includes("pricec")&&(e.name="pricec"+this.counter),e.name.includes("groupc")&&(e.name="groupc"+this.counter,e.title=""+e.title+this.counter)),e},onMove:function(t){var e=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(e.name)&&!e.fixed},onChildMove:function(t){var e=!0;return-1!=t.dragged.className.indexOf("block-class")&&-1!=t.to.className.indexOf("block-wrap")&&(e=!1),e},itemMoveEnd:function(t){var e=this;function i(t){e[t].forEach(function(t,i){t.name==e.selectKey&&(t.fixed=!0)})}e.isDragging=!1,e.selectKey="",e.selectKey=t.clone.dataset.name,e.tempaletDataList.forEach(function(t,a){t.name==e.selectKey&&i(t.parentCode),t.children&&t.children.forEach(function(t,a){t.name==e.selectKey&&i(t.parentCode)})}),e.selectKey="",e.tempaletDataList=JSON.parse(d()(e.tempaletDataList)),e.$forceUpdate(),e.counter=e.counter+1},selectItem:function(t,e){this.currentIndex=e,this.currentChildIndex=null},deleteItem:function(t,e,i,a){var s=this;if(s.tempaletDataList.splice(i,1),s.currentIndex--,s.currentIndex<=0&&(s.currentIndex=0),!a.systemFlag)return a.name.includes("groupc")&&a.children.length&&a.children.forEach(function(t){t.systemFlag&&s[t.parentCode].forEach(function(e){e.name==t.name&&(e.fixed=!1)})}),!1;s[e].forEach(function(e,i){e.name==t&&(e.fixed=!1)})},addDragItem:function(t){return!1},selectChildItem:function(t,e,i,a){this.currentIndex=null,this.currentChildKey=t,this.childIndex=e,this.currentChildIndex=i},deleteChildItem:function(t,e,i,a,s){if(this.childIndex=e,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[e].children[i].name,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(d()(this.tempaletDataList)),this.tempaletDataList[e].children.splice(i,1),!s.systemFlag)return!1;this[s.parentCode].forEach(function(e,i){e.name===t&&(e.fixed=!1)})},delChildItem:function(t,e,i){i.list.splice(e,1)},addChildItem:function(t,e,i){if(19!=e){i.list.push({value:"选项"+(e+2),key:e+2});var a=i.list.map(function(t){return t.value});this.isRepeat(a)&&(i.list.splice(i.list.length-1,1),a.splice(i.list.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},changeMust:function(t,e,i){e&&i.list.forEach(function(e){e.isMust=!!t})},isRepeat:function(t){var e={};for(var i in t){if(e[t[i]])return!0;e[t[i]]=!0}return!1},changeRoute:function(t){this.$router.push(t)},checkTag:function(t){var e={filedFlag:!0,filedRepeat:!1},i=[];return t.forEach(function(t){if(""==t.title)return e.filedFlag=!1,e.name=t.title||"",!1;i.push(t.title),t.hasOwnProperty("children")&&t.children.length&&t.children.forEach(function(t){if(t.systemFlag&&""==t.title)return e.filedFlag=!1,e.name=t.title||"",!1;i.push(t.title)})}),this.isRepeat(i)&&(e.filedRepeat=!0),e},checkTemplateObj:function(){var t=!0;return this.templateObj.title&&this.templateObj.description&&this.templateObj.storeType||(t=!1),t},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},saveAndBack:Object(x.a)(function(t){if(!this.checkTemplateObj())return this.$message.error({duration:1e3,message:"请完善模板设置内容"}),!1;var e=JSON.parse(d()(this.tempaletDataList)),i=this.checkTag(e);if(!i.filedFlag)return this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"}),!1;if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(e.forEach(function(t,e){t.sort=e,t.isMust=t.isMust?1:0,t.memory=t.memory?1:0,t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=t.openCapitalize?1:0),t.hasOwnProperty("list")&&t.list.forEach(function(t){t.isMust=t.isMust?1:0}),t.hasOwnProperty("children")&&(t.children.forEach(function(t,e){t.sort=e,t.isMust=t.isMust?1:0,t.memory=t.memory?1:0,t.hasOwnProperty("list")&&t.list.forEach(function(t){t.isMust=t.isMust?1:0}),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=t.openCapitalize?1:0)}),t.list=t.children)}),!e.length)return this.$message.error({duration:1e3,message:"请先配置字段"}),!1;"save"===t?this.saveAllData(e):this.postPreview(e)}},500),saveAllData:function(t){var e=this,i={status:1,brandId:e.brandId,templateContent:d()(t),title:e.templateObj.title,description:e.templateObj.description,storeType:e.templateObj.storeType,memory:[]};Object(w.e)("/haoban-app-daily-web/daily/save-define-template",i).then(function(t){var i=t.data;if(1==i.errorCode)return b.a.showmsg("保存成功","success"),void e.changeRoute("/customReport?brandId="+e.brandId+"&appIcon="+e.$route.query.appIcon);I.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var e=this,i={templateType:1,brandId:e.brandId,templateContent:d()(t)};Object(w.e)("/haoban-app-daily-web/daily/preview-template",i).then(function(t){var i=t.data;if(1==i.errorCode){var a=JSON.parse(localStorage.getItem("userInfo")).enterpriseId,s=window.location.origin+"/office-mobile/#/defineTemplate?enterpriseId="+a+"&templateId="+i.result+"&brandId="+e.brandId;return e.$refs.qrcodePreview.qrcode(s,"daily-preview"),void(e.dialogVisible=!0)}I.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getHasStores:function(){var t=this;Object(w.e)("/haoban-app-daily-web/daily/has-defined-template-store-type",{brandId:t.brandId}).then(function(e){var i=e.data;1!=i.errorCode?I.a.errorMsg(i):t.storeList.forEach(function(e){i.result&&i.result.length&&i.result.includes(o()(e.id))&&(e.disabled=!0),"edit"==t.oparateType&&t.storeType==e.id&&(e.disabled=!1)})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAllFields:function(t){var e=this;Object(w.e)("/haoban-app-daily-web/daily/get-template-items",{brandId:e.brandId,type:t}).then(function(i){var a=i.data;if(1==a.errorCode)return a.result.forEach(function(e){e.isMust=!!e.isMust,e.memory=!!e.memory,e.title=e.title.trim(),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=!!e.openCapitalize),e.hasOwnProperty("list")&&e.list&&e.list.length&&e.list.forEach(function(t){t.isMust=!!t.isMust}),e.systemFlag=3!=t,e.name.includes("groupc")&&(e.children=[])}),void(3==t?e.defineInfo=a.result:e.handleAllFields(a.result));I.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAllFields:function(t){var e=this;t.forEach(function(t){t.fixed=!1,1==t.classify&&(t.parentCode="tradeInfo",e.tradeInfo.push(t)),2==t.classify&&(t.parentCode="personInfo",e.personInfo.push(t)),3==t.classify&&(t.parentCode="goodsInfo",e.goodsInfo.push(t)),4==t.classify&&(t.parentCode="competeInfo",e.competeInfo.push(t))})},getInfo:function(){var t=this;Object(w.e)("/haoban-app-daily-web/daily/get-define-template",{templateId:t.templateId}).then(function(e){var i=e.data;if(1==i.errorCode)return t.setList=[],i.result&&(t.templateObj.title=i.result.title,t.templateObj.description=i.result.description,t.storeType="edit"==t.oparateType?String(i.result.storeType):"",t.templateObj.storeType="edit"==t.oparateType?String(i.result.storeType):"",i.result.templateContent&&i.result.templateContent.length&&t.handleGetInfo(i.result.templateContent)),void t.getHasStores();I.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},treeData:function(t){var e=t.filter(function(e){var i=t.filter(function(t){return e.fieldCode==t.parentCode});return i.length>0&&(e.children=i),0==e.parentCode});return e.sort(function(t,e){return t.sort-e.sort}),e.forEach(function(t,e){t.children.sort(function(t,e){return t.sort-e.sort})}),e},handleGetInfo:function(t){var e=this,i=JSON.parse(d()(t));e.cids=[],e.setParent=[],i.forEach(function(t,i){t.title=t.title.trim(),t.isMust=!!t.isMust,t.memory=!!t.memory,t.name.includes("textc")||t.name.includes("paragraphc")||t.name.includes("numberc")||t.name.includes("checkboxesOrRadioc")||t.name.includes("datec")||t.name.includes("dateareac")||t.name.includes("picc")||t.name.includes("introductionc")||t.name.includes("pricec")||t.name.includes("groupc")?(t.systemFlag=!1,t.parentCode="defineInfo"):(e.setParent.push(t.name),t.systemFlag=!0,1==t.classify&&(t.parentCode="tradeInfo"),2==t.classify&&(t.parentCode="personInfo"),3==t.classify&&(t.parentCode="goodsInfo"),4==t.classify&&(t.parentCode="competeInfo")),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=!!t.openCapitalize),t.hasOwnProperty("list")&&t.list&&t.list.length&&(t.list.forEach(function(i){(i.isMust=!!i.isMust,t.name.includes("groupc"))&&(i.isMust=!!i.isMust,i.memory=!!i.memory,i.name.includes("textc")||i.name.includes("paragraphc")||i.name.includes("numberc")||i.name.includes("checkboxesOrRadioc")||i.name.includes("datec")||i.name.includes("dateareac")||i.name.includes("picc")||i.name.includes("introductionc")||i.name.includes("pricec")||i.name.includes("groupc")?i.systemFlag=!1:(e.setParent.push(i.name),i.systemFlag=!0,1==i.classify&&(i.parentCode="tradeInfo"),2==i.classify&&(i.parentCode="personInfo"),3==i.classify&&(i.parentCode="goodsInfo"),4==i.classify&&(i.parentCode="competeInfo")))}),t.name.includes("groupc")&&(t.children=t.list)),e.cids.push(o()(t.cid.match(/\d+/g))),t.hasOwnProperty("children")&&t.children.forEach(function(t){t.isMust=!!t.isMust,t.memory=!!t.memory,e.cids.push(o()(t.cid.match(/\d+/g)))})}),e.counter=Math.max.apply(Math,n()(e.cids)),e.tempaletDataList=i,setTimeout(function(){e.setFixed()},500)},setFixed:function(){var t=this;["tradeInfo","personInfo","goodsInfo","competeInfo"].forEach(function(e){t[e].forEach(function(e){t.setParent.includes(e.name)&&(e.fixed=!0)})})}},watch:{isDragging:function(t){var e=this;t?e.delayedDragging=!0:e.$nextTick(function(){e.delayedDragging=!1})}},components:{draggable:p.a,AddInput:u.a,limitInput:v.a,imageCom:h.default,selectCom:f.default,dateRangeCom:_.default,inputCom:g.default,blockCom:y.default,qrcodeDialog:C.a},mounted:function(){var t=this,e=t.$route.query;t.brandId=t.$route.query.brandId,s.a.all([t.getAllFields(2)]).then(function(i){t.getAllFields(3),e.hasOwnProperty("templateId")?(t.templateId=e.templateId,t.oparateType=e.type,t.getInfo()):t.getHasStores()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}}},T={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"template-wrap",style:{height:t.bodyHeight}},[a("div",{staticClass:"template-contain"},[a("div",{staticClass:"template-head"},[t._m(0),t._v(" "),a("div",{staticClass:"template-btns flex-1 flex-r"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){t.saveAndBack("preview")}}},[t._v("预 览")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.returnBack}},[t._v("返 回")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.saveAndBack("save")}}},[t._v("保存并启用")])],1)]),t._v(" "),a("div",{staticClass:"template-body"},[a("div",{staticClass:"template-cell template-cell-l"},[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"系统字段",name:"first"}},[a("div",{staticClass:"filed-item-title"},[t._v("交易")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.tradeInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name,"aria-hidden":"true"}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("人员")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.personInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.personInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("商品")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.goodsInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.goodsInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("竞品")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.competeInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.competeInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1)]),t._v(" "),a("el-tab-pane",{attrs:{label:"自定义字段",name:"second"}},[a("div",{staticClass:"filed-item-title"}),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.defineInfo,options:t.leftDefineOption,clone:t.cloneItem,move:t.onChildMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.defineInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":"",11==e.type?"block-class":""],attrs:{"data-type":e.fieldCode}},[0==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),1==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),2==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),3==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),4==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),5==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),6==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),7==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),9==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),10==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),11==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),0==e.type?a("i",{staticClass:"bg-icon bg-icon-one"}):t._e(),t._v(" "),1==e.type?a("i",{staticClass:"bg-icon bg-icon-two"}):t._e(),t._v(" "),2==e.type?a("i",{staticClass:"bg-icon bg-icon-three"}):t._e(),t._v(" "),3==e.type?a("i",{staticClass:"bg-icon bg-icon-four"}):t._e(),t._v(" "),4==e.type?a("i",{staticClass:"bg-icon bg-icon-five"}):t._e(),t._v(" "),5==e.type?a("i",{staticClass:"bg-icon bg-icon-six"}):t._e(),t._v(" "),6==e.type?a("i",{staticClass:"bg-icon bg-icon-seven"}):t._e(),t._v(" "),7==e.type?a("i",{staticClass:"bg-icon bg-icon-eight"}):t._e(),t._v(" "),9==e.type?a("i",{staticClass:"bg-icon bg-icon-ten"}):t._e(),t._v(" "),10==e.type?a("i",{staticClass:"bg-icon bg-icon-eleven"}):t._e(),t._v(" "),11==e.type?a("i",{staticClass:"bg-icon bg-icon-twelve"}):t._e()])}))],1)])],1)],1),t._v(" "),a("div",{staticClass:"template-cell template-cell-m"},[a("div",{staticClass:"phone-view"},[a("div",{staticClass:"phone-show-content"},[a("div",{staticClass:"drag-show-content"},[a("div",{staticClass:"view-container"},[a("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[a("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:t._e(),t._v(" "),a("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:t.tempaletDataList,callback:function(e){t.tempaletDataList=e},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(e,i){return a("li",{key:"li1"+i,class:["filed-item",t.currentIndex==i?"active-item":"","li-block"],on:{click:function(a){t.selectItem(e.fieldCode,i)}}},["baseInfo"!=e.fieldCode?a("span",{staticClass:"item-close p-item-close",on:{click:function(a){a.stopPropagation(),t.deleteItem(e.name,e.parentCode,i,e)}}},[a("i",{staticClass:"el-icon-close"})]):t._e(),t._v(" "),e.systemFlag||!e.name.includes("groupc")?a("div",[1==e.type||2==e.type||3==e.type||10==e.type||9==e.type?a("input-com",{attrs:{childItem:e}}):t._e(),t._v(" "),4==e.type||5==e.type?a("select-com",{attrs:{childItem:e}}):t._e(),t._v(" "),6==e.type?a("date-range-com",{attrs:{childItem:e}}):t._e(),t._v(" "),7==e.type?a("image-com",{attrs:{childItem:e}}):t._e(),t._v(" "),"11"==e.type?a("block-com",{attrs:{childItem:e}}):t._e()],1):t._e(),t._v(" "),[e.name.includes("groupc")?a("div",{staticClass:"block"},[a("div",{staticClass:"block-head"},[a("div",{class:["opencard-item-title",t.getZhLen(e.title)>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))])]),t._v(" "),a("ul",{staticClass:"view-content"},[a("draggable",{class:["drag-wrap","block-wrap",e.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:t.addDragItem},model:{value:e.children,callback:function(i){t.$set(e,"children",i)},expression:"item.children"}},t._l(e.children,function(s,l){return a("li",{key:"li"+l,class:["filed-item","child-filed-item",t.currentChildKey==s.name&&t.currentChildIndex==l?"active-item":""],on:{click:function(a){a.stopPropagation(),t.selectChildItem(s.name,i,l,e.children)}}},[a("span",{staticClass:"item-close child-item-close",on:{click:function(a){a.stopPropagation(),t.deleteChildItem(s.name,i,l,e.children,s)}}},[a("i",{staticClass:"el-icon-close"})]),t._v(" "),4==s.type||5==s.type?a("select-com",{attrs:{childItem:s}}):t._e(),t._v(" "),6==s.type?a("date-range-com",{attrs:{childItem:s}}):t._e(),t._v(" "),7==s.type?a("image-com",{attrs:{childItem:s}}):t._e(),t._v(" "),1==s.type||2==s.type||3==s.type||10==s.type||9==s.type?a("input-com",{attrs:{childItem:s}}):t._e(),t._v(" "),"11"==s.type&&s.systemFlag?a("block-com",{attrs:{childItem:s}}):t._e()],1)}))],1)]):t._e()]],2)}))],2)])])])])]),t._v(" "),a("div",{staticClass:"template-cell template-cell-r define-template-tab"},[a("el-tabs",{model:{value:t.rightName,callback:function(e){t.rightName=e},expression:"rightName"}},[a("el-tab-pane",{attrs:{label:"控件设置",name:"first"}},[a("div",{attrs:{id:"edit-box"}},[a("div",{staticClass:"edit-view baby-info-flag baby-info"},[t._l(t.tempaletDataList,function(e,i){return[t.currentIndex!=i||e.systemFlag||6==e.type?t._e():[a("div",{key:"child"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.title,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"title",i)}}}),t._v(" "),7==e.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[t._v("\n 图片最多可添加9张\n ")]):t._e()],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||6!=e.type?t._e():[a("div",{key:"child62"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.startTitle,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"startTitle",i)}}})],1),t._v(" "),a("div",{key:"child64"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题2 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.endTitle,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"endTitle",i)}}})],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||11==e.type||5==e.type||7==e.type?t._e():[a("div",{key:"child1"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("提示文字最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),2==e.type||9==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入500个字")]):t._e(),t._v(" "),1==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入100个字")]):t._e()],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||3!=e.type?t._e():[a("div",{key:"child11"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("单位最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最大限制为12位数")])],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||"4"!=e.type?t._e():[a("div",{key:"child111"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("选项 "),e.systemFlag?t._e():a("span",[t._v("最多20项,每项最多10个字")])]),t._v(" "),t._l(e.list,function(s,l){return[a("div",{key:"child10"+l,staticClass:"margin-t-15 limit-w-340",style:0==l?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:s.value,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(e){t.$set(s,"value",e)}}}),t._v(" "),!e.systemFlag&&e.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){t.delChildItem(i,l,e)}}}):t._e(),t._v(" "),!e.systemFlag&&l<19?[l==e.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){t.addChildItem(i,l,e)}}}):t._e()]:t._e()],2)]})],2),t._v(" "),a("div",{key:"parent22"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("选择框类型")]),t._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"item.chooseType"}},[t._v("单选")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"item.chooseType"}},[t._v("多选")])],1)])],t._v(" "),t.currentIndex!=i||e.systemFlag||5!=e.type&&6!=e.type?t._e():[a("div",{key:"child117"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("日期类型")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"item.dateType"}},[t._v("\n 年-月-日 时 分\n ")]),t._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"item.dateType"}},[t._v("\n 年-月-日\n ")])],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||10!=e.type?t._e():[a("div",{key:"parent210"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("大写")]),t._v(" "),a("el-checkbox",{model:{value:e.openCapitalize,callback:function(i){t.$set(e,"openCapitalize",i)},expression:"item.openCapitalize"}},[t._v("显示大写")])],1)],t._v(" "),t.currentIndex!=i||e.name.includes("groupc")?t._e():[a("div",{key:"parent2"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证")]),t._v(" "),a("el-checkbox",{on:{change:function(i){t.changeMust(i,!!e.list,e)}},model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"item.isMust"}},[t._v("必填")])],1)],t._v(" "),t.currentIndex!=i||"performanceKing"!=e.name&&"competitorInfo"!=e.name?t._e():[a("div",{key:"parent21"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证 是否必填")]),t._v(" "),a("div",{staticClass:"must-list"},t._l(e.list,function(e,i){return a("div",{key:"list"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"listItem.isMust"}},[t._v(t._s(e.title))])],1)}))])],t._v(" "),t.currentIndex!=i||e.name.includes("groupc")?t._e():[a("div",{key:"parent3"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("记忆")]),t._v(" "),a("el-checkbox",{model:{value:e.memory,callback:function(i){t.$set(e,"memory",i)},expression:"item.memory"}},[t._v("是否记忆")])],1)],t._v(" "),t.childIndex==i&&e.children&&e.children.length?[t._l(e.children,function(e,s){return[t.currentChildIndex!=s||e.systemFlag||6==e.type?t._e():[a("div",{key:"child"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.title,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"title",i)}}}),t._v(" "),7==e.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[t._v("\n 图片最多可添加9张\n ")]):t._e()],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||6!=e.type?t._e():[a("div",{key:"child2"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.startTitle,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"startTitle",i)}}})],1),t._v(" "),a("div",{key:"child4"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题2 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.endTitle,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"endTitle",i)}}})],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||5==e.type||7==e.type?t._e():[a("div",{key:"child1"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("提示文字最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),2==e.type||9==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入500个字")]):t._e(),t._v(" "),1==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入100个字")]):t._e()],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||3!=e.type?t._e():[a("div",{key:"child6"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("单位最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"unit",i)}}}),t._v(" "),a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最大限制为12位数")])],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||5!=e.type&&6!=e.type?t._e():[a("div",{key:"child7"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("日期类型")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"childItem.dateType"}},[t._v("\n 年-月-日 时 分\n ")]),t._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"childItem.dateType"}},[t._v("\n 年-月-日\n ")])],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||"4"!=e.type?t._e():[a("div",{key:"child9"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("选项 "),e.systemFlag?t._e():a("span",[t._v("最多20项,每项最多10个字")])]),t._v(" "),t._l(e.list,function(s,l){return[a("div",{key:"child10"+l,staticClass:"margin-t-15 limit-w-340",style:0==l?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:s.value,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(e){t.$set(s,"value",e)}}}),t._v(" "),!e.systemFlag&&e.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){t.delChildItem(i,l,e)}}}):t._e(),t._v(" "),!e.systemFlag&&l<19?[l==e.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){t.addChildItem(i,l,e)}}}):t._e()]:t._e()],2)]})],2),t._v(" "),a("div",{key:"child922"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("选择框类型")]),t._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"childItem.chooseType"}},[t._v("单选")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"childItem.chooseType"}},[t._v("多选")])],1)])],t._v(" "),t.currentChildIndex!=s||e.systemFlag||10!=e.type?t._e():[a("div",{key:"child910"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("大写")]),t._v(" "),a("el-checkbox",{model:{value:e.openCapitalize,callback:function(i){t.$set(e,"openCapitalize",i)},expression:"childItem.openCapitalize"}},[t._v("显示大写")])],1)],t._v(" "),t.currentChildIndex==s?[a("div",{key:"child11"+s,staticClass:"edit-item"},[a("div",{staticClass:"edit-item-title"},[t._v("验证")]),t._v(" "),a("el-checkbox",{on:{change:function(i){t.changeMust(i,!!e.list,e)}},model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"childItem.isMust"}},[t._v("必填")])],1)]:t._e(),t._v(" "),t.currentChildIndex!=s||"performanceKing"!=e.name&&"competitorInfo"!=e.name?t._e():[a("div",{key:"child111"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证 是否必填")]),t._v(" "),a("div",{staticClass:"must-list"},t._l(e.list,function(e,i){return a("div",{key:"list111"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"listItem.isMust"}},[t._v(t._s(e.title))])],1)}))])],t._v(" "),t.currentChildIndex==s?[a("div",{key:"child12"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("记忆")]),t._v(" "),a("el-checkbox",{model:{value:e.memory,callback:function(i){t.$set(e,"memory",i)},expression:"childItem.memory"}},[t._v("是否记忆")])],1)]:t._e()]})]:t._e()]})],2)])]),t._v(" "),a("el-tab-pane",{attrs:{label:"模板设置",name:"second"}},[a("div",{staticClass:"template-item limit-w-340"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("模板名称 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.templateObj.title,holder:"",disflag:!1,getByType:"word",maxLength:10},on:{"update:inputValue":function(e){t.$set(t.templateObj,"title",e)}}})],1),t._v(" "),a("div",{staticClass:"template-item limit-w-340"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("模板描述 最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.templateObj.description,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(e){t.$set(t.templateObj,"description",e)}}})],1),t._v(" "),a("div",{staticClass:"template-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("门店类型")]),t._v(" "),a("div",{staticClass:"store-type-list"},t._l(t.storeList,function(e,i){return a("div",{key:e.name+i,staticClass:"store-type-cell m-b-20"},[a("el-radio",{attrs:{label:e.id,disabled:e.disabled},model:{value:t.templateObj.storeType,callback:function(e){t.$set(t.templateObj,"storeType",e)},expression:"templateObj.storeType"}},[t._v(t._s(e.name))])],1)}))])])],1)],1)])]),t._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"template-title flex-1"},[e("img",{attrs:{src:i("LbEI"),alt:"logo"}}),this._v(" "),e("span",{staticClass:"template-title-span"},[this._v("日报设置")])])}]};var M=i("VU/8")(k,T,!1,function(t){i("EWqx")},"data-v-fe6d56f6",null);e.default=M.exports},PAYw:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),i("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,a){return i("li",{key:"performance"+a,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])})),t._v(" "),"competitorInfo"==t.childItem.name?i("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("1NWy")},"data-v-97f6d394",null);e.default=l.exports},"fIe/":function(t,e){},lpYn:function(t,e){},"s4D+":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:[2==t.childItem.type?"h-66":""]},[9!=t.childItem.type?i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]):t._e(),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==t.childItem.type?"15px":"0"}},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":""))])]),t._v(" "),10==t.childItem.type&&t.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[t._v("大写:壹万元整(示例)")]):t._e()])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("lpYn")},"data-v-51432d8f",null);e.default=l.exports},t0b0:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("fIe/")},"data-v-3fd29910",null);e.default=l.exports}});
\ No newline at end of file
webpackJsonp([50],{lFAe:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i("//Fk"),a=i.n(s),l=i("gBtx"),n=i.n(l),d=i("mvHQ"),o=i.n(d),r=i("DAYN"),f=i.n(r),c=i("Isrn"),p=i("l46T"),m=i("fPyK"),u=[{parentCode:"defineInfo",fieldCode:"-1",fieldName:"单行输入框",systemFlag:!1,fieldEdited:1,fieldType:"0",fixed:!1,fieldDescription:"请输入",fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"多行输入框",systemFlag:!1,fieldEdited:1,fieldType:"1",fixed:!1,fieldDescription:"请输入",fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"单选框",systemFlag:!1,fieldEdited:1,fieldType:"2",fixed:!1,fieldDescription:"请选择",fieldOperations:{ruleContent:[],fieldContent:[{type:"radio",name:"选项1"},{type:"radio",name:"选项2"},{type:"radio",name:"选项3"}]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"多选框",systemFlag:!1,fieldEdited:1,fieldType:"3",fixed:!1,fieldDescription:"请选择",fieldOperations:{ruleContent:[],fieldContent:[{type:"checkbox",name:"选项1"},{type:"checkbox",name:"选项2"},{type:"checkbox",name:"选项3"}]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"日期",systemFlag:!1,fieldEdited:1,fieldType:"4",fixed:!1,fieldDescription:"请选择",fieldOperations:{typeValue:"yyyy-MM-dd",ruleContent:[{type:"radio",name:"年-月-日",key:"yyyy-MM-dd",isEdit:1},{type:"radio",name:"年-月",key:"yyyy-MM",isEdit:1}],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"日期区间",systemFlag:!1,fieldEdited:1,fieldType:"5",fixed:!1,fieldOperations:{startName:"开始时间",endName:"结束时间",startDescription:"请选择开始时间",endDescription:"请选择结束时间",typeValue:"yyyy-MM-dd",ruleContent:[{type:"radio",name:"年-月-日",key:"yyyy-MM-dd",isEdit:1},{type:"radio",name:"年-月",key:"yyyy-MM",isEdit:1}],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"数字输入框",systemFlag:!1,fieldType:"6",fieldEdited:1,fixed:!1,fieldDescription:"请输入",fieldOperations:{ruleContent:[],fieldContent:[],unit:"元"},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"图片",systemFlag:!1,fieldType:"7",fieldEdited:1,fixed:!1,fieldDescription:"最多上传9张图片",fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}}],v=function(){return u},C=i("3E4D"),g=i("Ch4/"),h=i("PI0u"),y=i("P9l9"),_={name:"staffRecordsTemplate",data:function(){return{activeName:"first",rightName:"first",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},leftDefineOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},selectKey:"",baseInfo:[],jobInfo:[],selfInfo:[],eduInfo:[],contractInfo:[],contactInfo:[],personalInfo:[],defineInfo:v(),currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"baseInfo",fieldName:"基本信息",fieldEdited:!1,fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"jobInfo",fieldName:"工作信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"selfInfo",fieldName:"个人信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"eduInfo",fieldName:"学历信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"contractInfo",fieldName:"合同信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"contactInfo",fieldName:"紧急联系人",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"personalInfo",fieldName:"个人资料",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""}],fieldParent:{baseInfo:{},jobInfo:{},selfInfo:{},eduInfo:{},contractInfo:{},contactInfo:{},personalInfo:{}},setList:[]}},created:function(){},methods:{baseInfoClone:function(){},clickItem:function(e){this.tempaletDataList.map(function(e){return e.fieldCode}).includes(e.parentCode)||"defineInfo"===e.parentCode||(this.tempaletDataList.push(this.fieldParent[e.parentCode]),this.tempaletDataList=JSON.parse(o()(this.tempaletDataList)))},checkMove:function(e){var t=!0;return"baseInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("baseInfo")||(t=!1),"jobInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("jobInfo")||(t=!1),"selfInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("selfInfo")||(t=!1),"eduInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("eduInfo")||(t=!1),"contractInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("contractInfo")||(t=!1),"contactInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("contactInfo")||(t=!1),"personalInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("personalInfo")||(t=!1),t},onMove:function(e){return!!this.checkMove(e)&&!e.draggedContext.element.fixed},onChildMove:function(e){return-1!=e.dragged.className.indexOf("block-class")&&e.to.className.indexOf("block-wrap"),!0},itemMoveEnd:function(e){var t=this;t.isDragging=!1,t.selectKey="",t.selectKey=e.clone.dataset.type,t.tempaletDataList.forEach(function(e,i){e.children.forEach(function(e,i){var s;e.systemFlag&&e.fieldCode==t.selectKey&&(s=e.parentCode,t[s].forEach(function(e,i){e.fieldCode==t.selectKey&&(e.fixed=!0)}))})}),t.selectKey="",t.tempaletDataList=JSON.parse(o()(t.tempaletDataList)),t.$forceUpdate()},selectItem:function(e,t){this.currentIndex=t,this.currentChildIndex=null},deleteItem:function(e,t){this.tempaletDataList.splice(t,1),this.currentIndex--,this.currentIndex<=0&&(this.currentIndex=0),this[e].forEach(function(e,t){e.fixed=!1})},addDragItem:function(e){return!1},selectChildItem:function(e,t,i,s){this.currentIndex=null,this.currentChildKey=e,this.childIndex=t,this.currentChildIndex=i},deleteChildItem:function(e,t,i,s,a){this.childIndex=t,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[t].children[i].fieldCode,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(o()(this.tempaletDataList)),this.tempaletDataList[t].children.splice(i,1),this[a.parentCode].forEach(function(t,i){t.fieldCode===e&&(t.fixed=!1)})},delChildItem:function(e,t,i){i.fieldOperations.fieldContent.splice(t,1)},addChildItem:function(e,t,i){if(19!=t){var s="radio";i.systemFlag||3!==parseInt(i.fieldType)||(s="checkbox"),i.fieldOperations.fieldContent.push({type:s,name:"请输入选项"});var a=i.fieldOperations.fieldContent.map(function(e){return e.name});this.isRepeat(a)&&(i.fieldOperations.fieldContent.splice(i.fieldOperations.fieldContent.length-1,1),a.splice(i.fieldOperations.fieldContent.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},isRepeat:function(e){var t={};for(var i in e){if(t[e[i]])return!0;t[e[i]]=!0}return!1},changeRoute:function(e){this.$router.push(e)},checkTag:function(e){var t={filedFlag:!0,filedRepeat:!1},i=[];return e.forEach(function(e,s){if(""==e.fieldName)return t.filedFlag=!1,t.name=e.fieldName||"",!1;e.children.length&&e.children.forEach(function(e,s){if(e.systemFlag&&""==e.fieldName)return t.filedFlag=!1,t.name=e.fieldName||"",!1;i.push(e.fieldName)})}),this.isRepeat(i)&&(t.filedRepeat=!0),t},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},saveAndBack:Object(h.a)(function(e){var t=JSON.parse(o()(this.tempaletDataList)),i=this.checkTag(t),s=[];if(i.filedFlag)if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(t.forEach(function(e,t){e.sort=t,e.fixed=!0===e.fixed?1:0,e.isMust=!0===e.isMust?1:0,e.systemFlag=!0===e.systemFlag?1:0,e.parentFieldTemplateId=e.parentFieldTemplateId?e.parentFieldTemplateId:-1,e.fieldTemplateId=e.fieldTemplateId?e.fieldTemplateId:-1,e.children.forEach(function(t,i){s.push(t),t.sort=i,t.fixed=!0===t.fixed?1:0,t.isMust=!0===t.isMust?1:0,t.systemFlag=!0===t.systemFlag?1:0,e.systemFlag||(t.fieldEdited=1),2!==parseInt(t.fieldType)&&3!==parseInt(t.fieldType)||t.fieldOperations.fieldContent.forEach(function(e,i){e.key=String(e.key)?String(e.key):"",t.systemFlag||e.hasOwnProperty("key")&&""!=e.key&&"undefined"!=e.key||(e.key=e.name)}),t.systemFlag||(t.parentCode=e.fieldCode),t.fieldTemplateId=t.fieldTemplateId?t.fieldTemplateId:-1,t.parentFieldTemplateId=e.fieldTemplateId})}),s.length>40)return this.$message.error({duration:1e3,message:"最多设置 40 个字段"}),!1;"save"===e?this.saveAllData(t):this.postPreview(t)}else this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"})},500),saveAllData:function(e){var t=this,i={templateContent:o()(e)};Object(y.e)("/haoban-manage-web/record/record-template-save.json",i).then(function(e){var i=e.data;if(1==i.errorCode)return C.a.showmsg("保存成功","success"),void t.changeRoute("/fileSet");g.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},postPreview:function(e){var t=this,i={templateContent:o()(e)};Object(y.e)("/haoban-manage-web/record/record-template-preview.json",i).then(function(e){var i=e.data;if(1==i.errorCode){var s=window.location.origin+"/office-mobile/#/staffRecordsTemplate?enterpriseId="+i.result;return t.$refs.qrcodePreview.qrcode(s,"record"),void(t.dialogVisible=!0)}g.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},closeDialog:function(){this.dialogVisible=!1},getAllFields:function(){var e=this;Object(y.e)("/haoban-manage-web/record/employee-find-system-template.json",{}).then(function(t){var i=t.data;1!=i.errorCode?g.a.errorMsg(i):e.handleAllFields(i.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAllFields:function(e){var t=this;e.forEach(function(e,i){t.hasOwnProperty(e.parentCode)&&(e.fixed=1===parseInt(e.fixed),e.isMust=1===parseInt(e.isMust),e.systemFlag=!0,e.fieldOperations=e.fieldOperations?JSON.parse(e.fieldOperations):{},e.staffRecordsIds=e.staffRecordsIds?JSON.parse(e.staffRecordsIds):[],t[e.parentCode].push(e)),t.fieldParent.hasOwnProperty(e.fieldCode)&&(e.children=[],t.fieldParent[e.fieldCode]=e,e.systemFlag=!0)})},getInfo:function(){var e=this;Object(y.e)("/haoban-manage-web/record/employee-find-template.json",{}).then(function(t){var i=t.data;if(1==i.errorCode)return e.setList=[],void(i.result&&i.result.length&&e.handleGetInfo(i.result));g.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){var t=e.filter(function(t){var i=e.filter(function(e){return t.fieldCode==e.parentCode});return i.length>0?t.children=i:t.children=[],0==t.parentCode});return t.sort(function(e,t){return e.sort-t.sort}),t.forEach(function(e,t){e.children&&e.children.length&&e.children.sort(function(e,t){return e.sort-t.sort})}),t},handleGetInfo:function(e){var t=this,i=JSON.parse(o()(e));t.setParent=[],i.forEach(function(e,i){e.fixed=1===n()(e.fixed),e.isMust=1===n()(e.isMust),e.systemFlag=1===n()(e.systemFlag),e.fieldOperations=e.fieldOperations?JSON.parse(e.fieldOperations):{},e.staffRecordsIds=e.staffRecordsIds?JSON.parse(e.staffRecordsIds):[],e.systemFlag&&0==e.parentCode&&t.setParent.push(e.fieldCode),e.systemFlag&&0!=e.parentCode&&t.setList.push(e.fieldCode)}),t.tempaletDataList=t.treeData(i),setTimeout(function(){t.setFixed()},100)},setFixed:function(){var e=this;e.setParent.forEach(function(t,i){e[t].forEach(function(t,i){e.setList.includes(t.fieldCode)&&(t.fixed=!0)})})}},watch:{isDragging:function(e){var t=this;e?t.delayedDragging=!0:t.$nextTick(function(){t.delayedDragging=!1})}},components:{draggable:f.a,AddInput:c.a,limitInput:p.a,qrcodeDialog:m.a},mounted:function(){a.a.all([this.getAllFields(),this.getInfo()]),document.body.ondrop=function(e){e.preventDefault(),e.stopPropagation()}}},I={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"template-wrap",style:{height:e.bodyHeight}},[s("div",{staticClass:"template-contain"},[s("div",{staticClass:"template-head"},[e._m(0),e._v(" "),s("div",{staticClass:"template-btns flex-1 flex-r"},[s("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.saveAndBack("preview")}}},[e._v("预 览")]),e._v(" "),s("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.changeRoute("/fileSet")}}},[e._v("返 回")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveAndBack("save")}}},[e._v("保存并启用")])],1)]),e._v(" "),s("div",{staticClass:"template-body"},[s("div",{staticClass:"template-cell template-cell-l"},[s("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"系统字段",name:"first"}},[s("div",{staticClass:"filed-item-title"},[e._v("基本信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list1",list:e.baseInfo,options:e.leftOption,move:e.onMove},on:{clone:e.baseInfoClone,start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.baseInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode,"aria-hidden":"true"},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("工作信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list2",list:e.jobInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.jobInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("个人信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list3",list:e.selfInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.selfInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("学历信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list4",list:e.eduInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.eduInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("合同信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.contractInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.contractInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("紧急联系人")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.contactInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.contactInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("个人材料")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.personalInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.personalInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1)]),e._v(" "),s("el-tab-pane",{attrs:{label:"自定义字段",name:"second"}},[s("div",{staticClass:"filed-item-title"}),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.defineInfo,options:e.leftDefineOption,move:e.onChildMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.defineInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[t.systemFlag||0!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||1!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||2!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||3!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||4!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||5!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||6!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||7!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||0!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-one"}),e._v(" "),t.systemFlag||1!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-two"}),e._v(" "),t.systemFlag||2!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-three"}),e._v(" "),t.systemFlag||3!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-four"}),e._v(" "),t.systemFlag||4!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-five"}),e._v(" "),t.systemFlag||5!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-six"}),e._v(" "),t.systemFlag||6!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-seven"}),e._v(" "),t.systemFlag||7!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-eight"})])}))],1)])],1)],1),e._v(" "),s("div",{staticClass:"template-cell template-cell-m"},[s("div",{staticClass:"phone-view"},[s("div",{staticClass:"phone-show-content"},[s("div",{staticClass:"drag-show-content"},[s("div",{staticClass:"view-container"},[s("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==e.tempaletDataList.length?[s("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:e._e(),e._v(" "),s("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!1},sort:!0}},model:{value:e.tempaletDataList,callback:function(t){e.tempaletDataList=t},expression:"tempaletDataList"}},e._l(e.tempaletDataList,function(t,i){return s("li",{key:"li1"+i,class:["filed-item",e.currentIndex==i?"active-item":"","li-block"],on:{click:function(s){e.selectItem(t.fieldCode,i)}}},["baseInfo"!=t.fieldCode&&"jobInfo"!=t.fieldCode&&"selfInfo"!=t.fieldCode?s("span",{staticClass:"item-close p-item-close",on:{click:function(s){s.stopPropagation(),e.deleteItem(t.fieldCode,i)}}},[s("i",{staticClass:"el-icon-close"})]):e._e(),e._v(" "),[s("div",{staticClass:"block"},[s("div",{staticClass:"block-head"},[s("div",{class:["opencard-item-title",t.fieldName.length>6?"block-pre-wrap":""]},[e._v(e._s(t.fieldName))])]),e._v(" "),s("ul",{staticClass:"view-content"},[s("draggable",{class:["drag-wrap","block-wrap",t.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:e.addDragItem},model:{value:t.children,callback:function(i){e.$set(t,"children",i)},expression:"item.children"}},e._l(t.children,function(a,l){return s("li",{key:"li"+l,class:["filed-item","child-filed-item",e.currentChildKey==a.fieldCode&&e.currentChildIndex==l?"active-item":""],on:{click:function(s){s.stopPropagation(),e.selectChildItem(a.fieldCode,i,l,t.children)}}},["clerkPhone"!=a.fieldCode&&"clerkName"!=a.fieldCode&&"groupName"!=a.fieldCode&&"clerkCode"!=a.fieldCode&&"positionName"!=a.fieldCode&&"clerkType"!=a.fieldCode&&"clerkStatus"!=a.fieldCode&&"sex"!=a.fieldCode&&"hireDate"!=a.fieldCode&&"nation"!=a.fieldCode?s("span",{staticClass:"item-close child-item-close",on:{click:function(s){s.stopPropagation(),e.deleteChildItem(a.fieldCode,i,l,t.children,a)}}},[s("i",{staticClass:"el-icon-close"})]):e._e(),e._v(" "),2==a.fieldType||3==a.fieldType||4==a.fieldType?s("div",{staticClass:"flex"},[s("div",{class:["opencard-item-title",a.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(a.fieldDescription)+" "),s("i",{staticClass:"el-icon-arrow-right"})])])]):e._e(),e._v(" "),5==a.fieldType?s("div",{staticClass:"flex flex-column"},[s("div",[s("div",{class:["opencard-item-title",a.fieldOperations.startName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldOperations.startName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(a.fieldOperations.startDescription)),s("i",{staticClass:"el-icon-arrow-right"})])])]),e._v(" "),s("div",{staticClass:"b-t-1"},[s("div",{class:["opencard-item-title",a.fieldOperations.endName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldOperations.endName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(a.fieldOperations.endDescription)),s("i",{staticClass:"el-icon-arrow-right"})])])])]):e._e(),e._v(" "),7==a.fieldType?s("div",{staticClass:"flex"},[s("div",{class:["opencard-item-title",a.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[s("i",{staticClass:"iconfont icon-icon"})])])]):e._e(),e._v(" "),0==a.fieldType||1==a.fieldType||6==a.fieldType?s("div",[s("div",{class:["opencard-item-title",a.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag"},[e._v(e._s(a.fieldDescription))])])]):e._e()])}))],1)])]],2)}))],2)])])])])]),e._v(" "),s("div",{staticClass:"template-cell template-cell-r"},[s("el-tabs",{model:{value:e.rightName,callback:function(t){e.rightName=t},expression:"rightName"}},[s("el-tab-pane",{attrs:{label:"控件设置",name:"first"}},[s("div",{attrs:{id:"edit-box"}},[s("div",{staticClass:"edit-view baby-info-flag baby-info"},[e._l(e.tempaletDataList,function(t,i){return[e.currentIndex==i&&"0"==t.parentCode?[s("div",{key:"parent"+i,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("标题")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldName,holder:"",disflag:!0,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"fieldName",i)}}})],1)]:e._e(),e._v(" "),e.childIndex==i&&t.children&&t.children.length?[e._l(t.children,function(t,a){return[e.currentChildIndex==a?[s("div",{key:"child"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("标题")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldName,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"fieldName",i)}}}),e._v(" "),7==t.fieldType?s("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[e._v("\n "+e._s(t.fieldDescription)+"\n ")]):e._e()],1)]:e._e(),e._v(" "),e.currentChildIndex==a&&5!=t.fieldType&&7!=t.fieldType?[s("div",{key:"child1"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("提示文字")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldDescription,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t,"fieldDescription",i)}}})],1)]:e._e(),e._v(" "),e.currentChildIndex==a&&5==t.fieldType?[s("div",{key:"child2"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("开始时间")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.startName,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"startName",i)}}})],1),e._v(" "),s("div",{key:"child3"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("提示文字")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.startDescription,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"startDescription",i)}}})],1),e._v(" "),s("div",{key:"child4"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("结束时间")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.endName,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"endName",i)}}})],1),e._v(" "),s("div",{key:"child5"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("提示文字")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.endDescription,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"endDescription",i)}}})],1)]:e._e(),e._v(" "),e.currentChildIndex==a&&6==t.fieldType?[s("div",{key:"child6"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("单位")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"unit",i)}}})],1)]:e._e(),e._v(" "),e.currentChildIndex!=a||4!=t.fieldType&&5!=t.fieldType?e._e():[s("div",{key:"child7"+a,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title"},[e._v("日期类型")]),e._v(" "),e._l(t.fieldOperations.ruleContent,function(i,a){return[s("el-radio",{key:"child8"+a,attrs:{label:i.key},model:{value:t.fieldOperations.typeValue,callback:function(i){e.$set(t.fieldOperations,"typeValue",i)},expression:"childItem.fieldOperations.typeValue"}},[e._v("\n "+e._s(i.name)+"\n ")])]})],2)],e._v(" "),e.currentChildIndex!=a||"2"!=t.fieldType&&"3"!=t.fieldType?e._e():[s("div",{key:"child9"+a,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title"},[e._v("选项 "),t.systemFlag?e._e():s("span",[e._v("最多20项,每项最多10个字")])]),e._v(" "),e._l(t.fieldOperations.fieldContent,function(a,l){return[s("div",{key:"child10"+l,staticClass:"margin-t-15 limit-w-340",style:0==l?"margin-top: 0":""},[s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:a.name,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){e.$set(a,"name",t)}}}),e._v(" "),!t.systemFlag&&t.fieldOperations.fieldContent.length>1?s("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(s){e.delChildItem(i,l,t)}}}):e._e(),e._v(" "),!t.systemFlag&&l<19?[l==t.fieldOperations.fieldContent.length-1?s("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(s){e.addChildItem(i,l,t)}}}):e._e()]:e._e()],2)]})],2)],e._v(" "),e.currentChildIndex==a?[s("div",{key:"child11"+a,staticClass:"edit-item"},[s("div",{staticClass:"edit-item-title"},[e._v("验证")]),e._v(" "),s("el-checkbox",{model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"childItem.isMust"}},[e._v("必填")])],1)]:e._e(),e._v(" "),e.currentChildIndex==a?[s("div",{key:"parent2"+a,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title"},[e._v("员工档案中")]),e._v(" "),s("div",{staticClass:"staffRecords-limit"},[s("el-radio",{staticClass:"label-cell",attrs:{disabled:"clerkPhone"==t.fieldCode||"groupName"==t.fieldCode||"clerkCode"==t.fieldCode||"positionName"==t.fieldCode,label:"1"},model:{value:t.staffRecordsIds.staffVisible,callback:function(i){e.$set(t.staffRecordsIds,"staffVisible",i)},expression:"childItem.staffRecordsIds.staffVisible"}},[e._v("对员工可见")]),e._v(" "),s("el-radio",{staticClass:"label-cell",attrs:{disabled:"clerkPhone"==t.fieldCode||"groupName"==t.fieldCode||"clerkCode"==t.fieldCode||"positionName"==t.fieldCode,label:"0"},model:{value:t.staffRecordsIds.staffVisible,callback:function(i){e.$set(t.staffRecordsIds,"staffVisible",i)},expression:"childItem.staffRecordsIds.staffVisible"}},[e._v("对员工不可见")])],1),e._v(" "),s("div",{staticClass:"staffRecords-limit"},[s("el-radio",{staticClass:"label-cell",attrs:{disabled:"clerkPhone"==t.fieldCode||"groupName"==t.fieldCode||"clerkCode"==t.fieldCode||"positionName"==t.fieldCode,label:"1"},model:{value:t.staffRecordsIds.staffModify,callback:function(i){e.$set(t.staffRecordsIds,"staffModify",i)},expression:"childItem.staffRecordsIds.staffModify"}},[e._v("对员工可修改")]),e._v(" "),s("el-radio",{staticClass:"label-cell",attrs:{disabled:"clerkPhone"==t.fieldCode||"groupName"==t.fieldCode||"clerkCode"==t.fieldCode||"positionName"==t.fieldCode,label:"0"},model:{value:t.staffRecordsIds.staffModify,callback:function(i){e.$set(t.staffRecordsIds,"staffModify",i)},expression:"childItem.staffRecordsIds.staffModify"}},[e._v("对员工不可修改")])],1)])]:e._e()]})]:e._e()]})],2)])])],1)],1)])]),e._v(" "),s("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"template-title flex-1"},[t("img",{attrs:{src:i("LbEI"),alt:"logo"}}),this._v(" "),t("span",{staticClass:"template-title-span"},[this._v("员工档案设置")])])}]};var x=i("VU/8")(_,I,!1,function(e){i("q+3H")},"data-v-b963c3b8",null);t.default=x.exports},"q+3H":function(e,t){}});
\ No newline at end of file
webpackJsonp([50],{CqVe:function(t,e){},W0k8:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),i=a("fvdr"),c=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"不良评价",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"不良评价回访记录",icon:"icon-badreviewstatistics",onlyIconActive:!1}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("badEvaluateRecord");break;case"2":this.changeRoute("badEvaluateSet")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{height:t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157"},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("CqVe")},"data-v-b841b8f6",null);e.default=r.exports}});
\ No newline at end of file
webpackJsonp([51],{CqVe:function(t,e){},W0k8:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),i=a("fvdr"),c=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"不良评价",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"不良评价回访记录",icon:"icon-badreviewstatistics",onlyIconActive:!1}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("badEvaluateRecord");break;case"2":this.changeRoute("badEvaluateSet")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{height:t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157"},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("CqVe")},"data-v-b841b8f6",null);e.default=r.exports}});
\ No newline at end of file
webpackJsonp([51],{ISJj:function(t,e){},da9f:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("ISJj")},"data-v-b62832ae",null);e.default=o.exports}});
\ No newline at end of file
webpackJsonp([52],{ISJj:function(t,e){},da9f:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("ISJj")},"data-v-b62832ae",null);e.default=o.exports}});
\ No newline at end of file
webpackJsonp([52],{itwb:function(t,e){},"r//C":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("2eFk"),s=a("Ie7z"),l=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"不良评价回访记录"}],activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(d.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!n()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand,delTaskStatus:t.delOptFlag,reason:t.reason,isAll:e.selectRadio,taskType:0};Object(c.e)("/haoban-app-tel-task-web/task/batch-del-store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void e.getTableList();p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:function(){var t=[],e=[];this.conditionObj.storeGroup.forEach(function(a){2==a.type&&t.push(a.groupId),3==a.type&&e.push(a.storeId)});var a={search:this.conditionObj.searchInput||"",filterStoreIds:e.join(",")||"",storeGroupIds:t.join(",")||"",storeType:this.conditionObj.storeType||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",brandId:this.activeBrand,taskType:0},o="search="+a.search+"&taskType="+a.taskType+"&filterStoreIds="+a.filterStoreIds+"&storeGroupIds="+a.storeGroupIds+"&storeType="+a.storeType+"&startDate="+a.startDate+"&endDate="+a.endDate+"&brandId="+a.brandId+"&currentPage="+a.currentPage+"&pageSize="+a.pageSize;window.open(window.location.origin+"/haoban-app-tel-task-web/task/export-store-task-list?"+o)},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDialogLayer:function(t,e){this.selectType=t,this.changed=t,this.defaultStoreList=e,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(t){this.conditionObj.storeGroup=t,this.getTableList()},toDetail:function(t,e){this.$router.push("taskDetail?storeId="+e.storeId)},getTableList:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand,taskType:0};Object(c.a)("/haoban-app-tel-task-web/task/store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:l.a,vueSelectStore:s.a,multipleDel:r.a}},b={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(e){t.showDialogLayer("store",t.conditionObj.storeGroup)}}},[t.conditionObj.storeGroup.length?t._e():a("span",{staticClass:"font-14 color-c0c4cc"},[t._v("请选择门店分组")]),t._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.conditionObj.storeGroup,function(e,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(o,t.conditionObj.storeGroup)}}})])]})],2)])])])]),t._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeStoreType},model:{value:t.conditionObj.storeType,callback:function(e){t.$set(t.conditionObj,"storeType",e)},expression:"conditionObj.storeType"}},t._l(t.storeTypeOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),t._v("导出")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark",height:t.tableH},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==t.selectRadio?"#1890ff":"#606266"}},[t._v("选择当页")])]),t._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==t.selectRadio?"#1890ff":"#606266"}},[t._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(t){}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}}),t._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:t.activeGroup,appScene:t.appScene,treeSet:t.storeTreeSet,selectType:"group",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}})],1)},staticRenderFns:[]};var f=a("VU/8")(h,b,!1,function(t){a("itwb")},"data-v-b495cf98",null);e.default=f.exports}});
\ No newline at end of file
webpackJsonp([53],{itwb:function(t,e){},"r//C":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("2eFk"),s=a("Ie7z"),l=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"不良评价回访记录"}],activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(d.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!n()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand,delTaskStatus:t.delOptFlag,reason:t.reason,isAll:e.selectRadio,taskType:0};Object(c.e)("/haoban-app-tel-task-web/task/batch-del-store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void e.getTableList();p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:function(){var t=[],e=[];this.conditionObj.storeGroup.forEach(function(a){2==a.type&&t.push(a.groupId),3==a.type&&e.push(a.storeId)});var a={search:this.conditionObj.searchInput||"",filterStoreIds:e.join(",")||"",storeGroupIds:t.join(",")||"",storeType:this.conditionObj.storeType||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",brandId:this.activeBrand,taskType:0},o="search="+a.search+"&taskType="+a.taskType+"&filterStoreIds="+a.filterStoreIds+"&storeGroupIds="+a.storeGroupIds+"&storeType="+a.storeType+"&startDate="+a.startDate+"&endDate="+a.endDate+"&brandId="+a.brandId+"&currentPage="+a.currentPage+"&pageSize="+a.pageSize;window.open(window.location.origin+"/haoban-app-tel-task-web/task/export-store-task-list?"+o)},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDialogLayer:function(t,e){this.selectType=t,this.changed=t,this.defaultStoreList=e,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(t){this.conditionObj.storeGroup=t,this.getTableList()},toDetail:function(t,e){this.$router.push("taskDetail?storeId="+e.storeId)},getTableList:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand,taskType:0};Object(c.a)("/haoban-app-tel-task-web/task/store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:l.a,vueSelectStore:s.a,multipleDel:r.a}},b={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(e){t.showDialogLayer("store",t.conditionObj.storeGroup)}}},[t.conditionObj.storeGroup.length?t._e():a("span",{staticClass:"font-14 color-c0c4cc"},[t._v("请选择门店分组")]),t._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.conditionObj.storeGroup,function(e,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(o,t.conditionObj.storeGroup)}}})])]})],2)])])])]),t._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeStoreType},model:{value:t.conditionObj.storeType,callback:function(e){t.$set(t.conditionObj,"storeType",e)},expression:"conditionObj.storeType"}},t._l(t.storeTypeOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),t._v("导出")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark",height:t.tableH},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==t.selectRadio?"#1890ff":"#606266"}},[t._v("选择当页")])]),t._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==t.selectRadio?"#1890ff":"#606266"}},[t._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(t){}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}}),t._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:t.activeGroup,appScene:t.appScene,treeSet:t.storeTreeSet,selectType:"group",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}})],1)},staticRenderFns:[]};var f=a("VU/8")(h,b,!1,function(t){a("itwb")},"data-v-b495cf98",null);e.default=f.exports}});
\ No newline at end of file
webpackJsonp([53],{SKyE:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("3Xzz"),n=e("PI0u"),r={name:"companyAddress",data:function(){var t=this;return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"企业设置",path:"/companyAddress"},{name:"企业地址",path:""}],ruleForm:{switch:!1,name:""},rules:{name:[{validator:function(a,e,s){t.ruleForm.switch&&""==e.replace(/\s/g)?s(new Error("请输入地址")):s()},trigger:"blur"}]}}},computed:{},methods:{submitForm:Object(n.a)(function(t){this.$refs[t].validate(function(t){if(!t)return!1})},500),postSave:function(){this.ruleForm=[]}},components:{navCrumb:s.a}},i={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"companyAddress-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{height:this.$store.state.bgHeight}},[a("h2",{staticClass:"font-w-500"},[this._v("企业地址设置")]),this._v(" "),a("p",{staticClass:"m-t-24"},[this._v("暂时无法设置")])])]),this._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var o=e("VU/8")(r,i,!1,function(t){e("Xsa6")},"data-v-a6a97268",null);a.default=o.exports},Xsa6:function(t,a){}});
\ No newline at end of file
webpackJsonp([54],{SKyE:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("3Xzz"),n=e("PI0u"),r={name:"companyAddress",data:function(){var t=this;return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"企业设置",path:"/companyAddress"},{name:"企业地址",path:""}],ruleForm:{switch:!1,name:""},rules:{name:[{validator:function(a,e,s){t.ruleForm.switch&&""==e.replace(/\s/g)?s(new Error("请输入地址")):s()},trigger:"blur"}]}}},computed:{},methods:{submitForm:Object(n.a)(function(t){this.$refs[t].validate(function(t){if(!t)return!1})},500),postSave:function(){this.ruleForm=[]}},components:{navCrumb:s.a}},i={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"companyAddress-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{height:this.$store.state.bgHeight}},[a("h2",{staticClass:"font-w-500"},[this._v("企业地址设置")]),this._v(" "),a("p",{staticClass:"m-t-24"},[this._v("暂时无法设置")])])]),this._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var o=e("VU/8")(r,i,!1,function(t){e("Xsa6")},"data-v-a6a97268",null);a.default=o.exports},Xsa6:function(t,a){}});
\ No newline at end of file
webpackJsonp([54],{"1NWy":function(t,e){},PAYw:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),i("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,l){return i("li",{key:"performance"+l,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])})),t._v(" "),"competitorInfo"==t.childItem.name?i("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var a=i("VU/8")(l,s,!1,function(t){i("1NWy")},"data-v-97f6d394",null);e.default=a.exports}});
\ No newline at end of file
webpackJsonp([55],{"1NWy":function(t,e){},PAYw:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),i("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,l){return i("li",{key:"performance"+l,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])})),t._v(" "),"competitorInfo"==t.childItem.name?i("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var a=i("VU/8")(l,s,!1,function(t){i("1NWy")},"data-v-97f6d394",null);e.default=a.exports}});
\ No newline at end of file
webpackJsonp([55],{"19x+":function(e,t){},"rs/A":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),s=r.n(a),l=r("3Xzz"),o=r("c4uw"),i=r("Ie7z"),n=r("3E4D"),c=r("Ch4/"),u=r("PI0u"),d=r("P9l9"),m={name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"添加成员",path:""}],ruleForm:{brandId:"",roleId:"",roleCode:"admin",roleName:"企业管理员",peopleList:[],departList:[],brandValue:[],brandOptions:[]},rules:{},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},treeData:{},defaultSelection:[],changed:"",onlyPerson:!1,selectType:"",currentBrand:this.$route.query.brandId,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},submitForm:Object(u.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var r=[],a=t.ruleForm.peopleList.length;if(a&&(t.ruleForm.brandValue.length||t.ruleForm.departList.length)){a=null,t.ruleForm.departList.forEach(function(e){r.push({groupId:e.groupId})}),t.ruleForm.brandValue.forEach(function(e){"admin"===t.ruleForm.roleCode?r.push({groupId:e}):e.storeId?r.push({storeId:e.storeId}):r.push({groupId:e.groupId})});var s=t.ruleForm.peopleList.map(function(e){return e.employeeClerkId}).join(",");t.postSave(r,s)}else t.$message.error({message:"请完善信息"})})},500),postSave:function(e,t){var r=this,a={data:s()(e),roleId:r.ruleForm.roleId,brandId:r.ruleForm.brandId,clerkIds:t};Object(d.e)("/haoban-manage-web/save-clerk-role",a).then(function(e){var t=e.data;if(1==t.errorCode)return n.a.showmsg("添加成功","success"),void r.changeRoute("/setChildAdmin");c.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},delField:function(e,t,r){this.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(t){t.value;r.splice(e,1)}).catch(function(){})},delDepart:function(e,t){t.splice(e,1)},showDialogLayer:function(e,t){if(this.selectType=e,this.changed=e,"store"===e)return this.defaultStoreList=t,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1},"people"===e?(this.onlyPerson=!0,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}):this.onlyPerson=!1,this.defaultSelection=t,this.treeData.hasOwnProperty("treeData")},handleSelectedList:function(e){"people"===this.selectType?this.ruleForm.peopleList=e:"store"===this.selectType?this.ruleForm.brandValue=e:this.ruleForm.departList=e},getBrandData:function(){var e=this;Object(d.e)("/haoban-manage-web/brand/list",{}).then(function(t){var r=t.data;1!=r.errorCode?c.a.errorMsg(r):r.result&&r.result.length&&(e.ruleForm.brandOptions=r.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getUserData:function(){var e=this,t={roleId:e.ruleForm.roleId,userId:e.ruleForm.userId,brandId:e.ruleForm.brandId};Object(d.e)("/haoban-manage-web/find-clerk-role",t).then(function(t){var r=t.data;1!=r.errorCode?c.a.errorMsg(r):r.result&&(e.ruleForm.peopleList=[r.result.user],r.result.admList.forEach(function(e,t){e.id=e.groupId,e.label=e.name}),e.ruleForm.departList=r.result.admList||[],r.result.storeList.forEach(function(e,t){e.id=e.groupId?e.groupId:e.storeId,e.label=e.name}),e.ruleForm.brandValue="admin"===e.ruleForm.roleCode?r.result.storeList.map(function(e){return e.groupId}):r.result.storeList||[])}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getBrandData(),this.ruleForm.brandId=this.$route.query.brandId,this.$route.query.hasOwnProperty("roleId")&&(this.ruleForm.roleId=this.$route.query.roleId),this.$route.query.hasOwnProperty("roleCode")&&(this.ruleForm.roleCode=this.$route.query.roleCode,this.ruleForm.roleName="admin"===this.$route.query.roleCode?"企业管理员":"子管理员"),this.$route.query.hasOwnProperty("userId")&&(this.ruleForm.userId=this.$route.query.userId,this.navpath=[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"编辑成员",path:""}],this.getUserData())},components:{navCrumb:l.a,vueSelectEmployee:o.a,vueSelectStore:i.a}},p={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:e.$store.state.bgHeight}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"管理员角色",prop:"roleName"}},[r("el-input",{staticClass:"w-380",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.roleName,callback:function(t){e.$set(e.ruleForm,"roleName",t)},expression:"ruleForm.roleName"}})],1),e._v(" "),r("div",{staticClass:"el-form-item el-form-item--large"},[r("label",{staticClass:"el-form-item__label",staticStyle:{width:"100px",cursor:"pointer"},attrs:{for:"name"}},[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"仅限选择行政架构人员",placement:"top-start"}},[r("span",[e._v("选择人员"),r("span",{staticClass:"el-icon-info font-12 color-909399"})])])],1),e._v(" "),r("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"100px"}},[r("div",{staticClass:"flex w-380 flex-wrap"},[e._l(e.ruleForm.peopleList,function(t,a){return[r("div",{key:a+t.name,staticClass:"people-cell flex flex-align-center flex-pack-center flex-column"},[r("div",{class:["inline-block","img-wrap","flex","flex-align-center","flex-pack-center",t.headPic?"":"img-wrap-bg"]},[t.headPic?r("img",{attrs:{src:t.headPic,alt:"headPic"}}):r("i",{staticClass:"iconfont icon-yewuduanmorentouxian"}),e._v(" "),e.ruleForm.userId?e._e():r("i",{staticClass:"el-icon-circle-close",on:{click:function(r){r.stopPropagation(),e.delField(a,t,e.ruleForm.peopleList)}}})]),e._v(" "),r("p",[e._v(e._s(t.name))])])]}),e._v(" "),e.ruleForm.userId?e._e():r("div",{staticClass:"people-cell"},[r("span",{staticClass:"add-icon",on:{click:function(t){t.stopPropagation(),e.showDialogLayer("people",e.ruleForm.peopleList)}}},[r("i",{staticClass:"el-icon-plus"})])])],2)])]),e._v(" "),r("el-form-item",{staticClass:"m-b-0",attrs:{label:"选择管理范围",prop:"name"}}),e._v(" "),r("el-form-item",{staticClass:"m-b-0 m-t-10",attrs:{label:"行政架构",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-column item-cell-select"},[r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",on:{click:function(t){e.showDialogLayer("depart",e.ruleForm.departList)}}},[r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[r("span",[e._l(e.ruleForm.departList,function(t,a){return[r("span",{key:a,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(a,e.ruleForm.departList)}}})])]})],2)])])])])]),e._v(" "),r("el-form-item",{staticClass:"m-t-22",attrs:{label:"门店架构",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-column item-cell-select"},["admin"==e.ruleForm.roleCode?r("div",{staticClass:"store-item-wrap"},[r("el-select",{staticStyle:{width:"213px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.ruleForm.brandValue,callback:function(t){e.$set(e.ruleForm,"brandValue",t)},expression:"ruleForm.brandValue"}},e._l(e.ruleForm.brandOptions,function(e){return r("el-option",{key:e.groupId,attrs:{label:e.name,value:e.groupId}})}))],1):e._e(),e._v(" "),"child_admin"==e.ruleForm.roleCode?r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.ruleForm.brandValue)}}},[r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[r("span",[e._l(e.ruleForm.brandValue,function(t,a){return[r("span",{key:a,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(a,e.ruleForm.brandValue)}}})])]})],2)])])]):e._e()])]),e._v(" "),r("el-form-item",{staticClass:"m-t-24"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer"),e._v(" "),r("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,onlyPerson:e.onlyPerson,treeSet:e.treeSet,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.currentBrand,treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var h=r("VU/8")(m,p,!1,function(e){r("19x+")},"data-v-95665538",null);t.default=h.exports}});
\ No newline at end of file
webpackJsonp([56],{"19x+":function(e,t){},"rs/A":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),s=r.n(a),l=r("3Xzz"),o=r("c4uw"),i=r("Ie7z"),n=r("3E4D"),c=r("Ch4/"),u=r("PI0u"),d=r("P9l9"),m={name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"添加成员",path:""}],ruleForm:{brandId:"",roleId:"",roleCode:"admin",roleName:"企业管理员",peopleList:[],departList:[],brandValue:[],brandOptions:[]},rules:{},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},treeData:{},defaultSelection:[],changed:"",onlyPerson:!1,selectType:"",currentBrand:this.$route.query.brandId,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},submitForm:Object(u.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var r=[],a=t.ruleForm.peopleList.length;if(a&&(t.ruleForm.brandValue.length||t.ruleForm.departList.length)){a=null,t.ruleForm.departList.forEach(function(e){r.push({groupId:e.groupId})}),t.ruleForm.brandValue.forEach(function(e){"admin"===t.ruleForm.roleCode?r.push({groupId:e}):e.storeId?r.push({storeId:e.storeId}):r.push({groupId:e.groupId})});var s=t.ruleForm.peopleList.map(function(e){return e.employeeClerkId}).join(",");t.postSave(r,s)}else t.$message.error({message:"请完善信息"})})},500),postSave:function(e,t){var r=this,a={data:s()(e),roleId:r.ruleForm.roleId,brandId:r.ruleForm.brandId,clerkIds:t};Object(d.e)("/haoban-manage-web/save-clerk-role",a).then(function(e){var t=e.data;if(1==t.errorCode)return n.a.showmsg("添加成功","success"),void r.changeRoute("/setChildAdmin");c.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},delField:function(e,t,r){this.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(t){t.value;r.splice(e,1)}).catch(function(){})},delDepart:function(e,t){t.splice(e,1)},showDialogLayer:function(e,t){if(this.selectType=e,this.changed=e,"store"===e)return this.defaultStoreList=t,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1},"people"===e?(this.onlyPerson=!0,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}):this.onlyPerson=!1,this.defaultSelection=t,this.treeData.hasOwnProperty("treeData")},handleSelectedList:function(e){"people"===this.selectType?this.ruleForm.peopleList=e:"store"===this.selectType?this.ruleForm.brandValue=e:this.ruleForm.departList=e},getBrandData:function(){var e=this;Object(d.e)("/haoban-manage-web/brand/list",{}).then(function(t){var r=t.data;1!=r.errorCode?c.a.errorMsg(r):r.result&&r.result.length&&(e.ruleForm.brandOptions=r.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getUserData:function(){var e=this,t={roleId:e.ruleForm.roleId,userId:e.ruleForm.userId,brandId:e.ruleForm.brandId};Object(d.e)("/haoban-manage-web/find-clerk-role",t).then(function(t){var r=t.data;1!=r.errorCode?c.a.errorMsg(r):r.result&&(e.ruleForm.peopleList=[r.result.user],r.result.admList.forEach(function(e,t){e.id=e.groupId,e.label=e.name}),e.ruleForm.departList=r.result.admList||[],r.result.storeList.forEach(function(e,t){e.id=e.groupId?e.groupId:e.storeId,e.label=e.name}),e.ruleForm.brandValue="admin"===e.ruleForm.roleCode?r.result.storeList.map(function(e){return e.groupId}):r.result.storeList||[])}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getBrandData(),this.ruleForm.brandId=this.$route.query.brandId,this.$route.query.hasOwnProperty("roleId")&&(this.ruleForm.roleId=this.$route.query.roleId),this.$route.query.hasOwnProperty("roleCode")&&(this.ruleForm.roleCode=this.$route.query.roleCode,this.ruleForm.roleName="admin"===this.$route.query.roleCode?"企业管理员":"子管理员"),this.$route.query.hasOwnProperty("userId")&&(this.ruleForm.userId=this.$route.query.userId,this.navpath=[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"编辑成员",path:""}],this.getUserData())},components:{navCrumb:l.a,vueSelectEmployee:o.a,vueSelectStore:i.a}},p={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:e.$store.state.bgHeight}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"管理员角色",prop:"roleName"}},[r("el-input",{staticClass:"w-380",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.roleName,callback:function(t){e.$set(e.ruleForm,"roleName",t)},expression:"ruleForm.roleName"}})],1),e._v(" "),r("div",{staticClass:"el-form-item el-form-item--large"},[r("label",{staticClass:"el-form-item__label",staticStyle:{width:"100px",cursor:"pointer"},attrs:{for:"name"}},[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"仅限选择行政架构人员",placement:"top-start"}},[r("span",[e._v("选择人员"),r("span",{staticClass:"el-icon-info font-12 color-909399"})])])],1),e._v(" "),r("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"100px"}},[r("div",{staticClass:"flex w-380 flex-wrap"},[e._l(e.ruleForm.peopleList,function(t,a){return[r("div",{key:a+t.name,staticClass:"people-cell flex flex-align-center flex-pack-center flex-column"},[r("div",{class:["inline-block","img-wrap","flex","flex-align-center","flex-pack-center",t.headPic?"":"img-wrap-bg"]},[t.headPic?r("img",{attrs:{src:t.headPic,alt:"headPic"}}):r("i",{staticClass:"iconfont icon-yewuduanmorentouxian"}),e._v(" "),e.ruleForm.userId?e._e():r("i",{staticClass:"el-icon-circle-close",on:{click:function(r){r.stopPropagation(),e.delField(a,t,e.ruleForm.peopleList)}}})]),e._v(" "),r("p",[e._v(e._s(t.name))])])]}),e._v(" "),e.ruleForm.userId?e._e():r("div",{staticClass:"people-cell"},[r("span",{staticClass:"add-icon",on:{click:function(t){t.stopPropagation(),e.showDialogLayer("people",e.ruleForm.peopleList)}}},[r("i",{staticClass:"el-icon-plus"})])])],2)])]),e._v(" "),r("el-form-item",{staticClass:"m-b-0",attrs:{label:"选择管理范围",prop:"name"}}),e._v(" "),r("el-form-item",{staticClass:"m-b-0 m-t-10",attrs:{label:"行政架构",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-column item-cell-select"},[r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",on:{click:function(t){e.showDialogLayer("depart",e.ruleForm.departList)}}},[r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[r("span",[e._l(e.ruleForm.departList,function(t,a){return[r("span",{key:a,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(a,e.ruleForm.departList)}}})])]})],2)])])])])]),e._v(" "),r("el-form-item",{staticClass:"m-t-22",attrs:{label:"门店架构",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-column item-cell-select"},["admin"==e.ruleForm.roleCode?r("div",{staticClass:"store-item-wrap"},[r("el-select",{staticStyle:{width:"213px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.ruleForm.brandValue,callback:function(t){e.$set(e.ruleForm,"brandValue",t)},expression:"ruleForm.brandValue"}},e._l(e.ruleForm.brandOptions,function(e){return r("el-option",{key:e.groupId,attrs:{label:e.name,value:e.groupId}})}))],1):e._e(),e._v(" "),"child_admin"==e.ruleForm.roleCode?r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.ruleForm.brandValue)}}},[r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[r("span",[e._l(e.ruleForm.brandValue,function(t,a){return[r("span",{key:a,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(a,e.ruleForm.brandValue)}}})])]})],2)])])]):e._e()])]),e._v(" "),r("el-form-item",{staticClass:"m-t-24"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer"),e._v(" "),r("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,onlyPerson:e.onlyPerson,treeSet:e.treeSet,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.currentBrand,treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var h=r("VU/8")(m,p,!1,function(e){r("19x+")},"data-v-95665538",null);t.default=h.exports}});
\ No newline at end of file
webpackJsonp([56],{gjw3:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("mvHQ"),n=a.n(o),i=a("Ie7z"),s=a("Ke24"),r=a("b28S"),l=a("P9l9"),c=a("Ch4/"),u=a("PI0u"),d={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:s.a,vueSelectStore:i.a,chatLogList:r.a},data:function(){var e=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",topMenuData:[{id:"1",name:"聊天记录"}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}],onPick:function(t){var a=t.maxDate,o=t.minDate;e.choiceDateCopy=[o.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,o=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>o||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},currentPage:1,pageSize:20,total:0,showFlag:!1,itemRow:{}}},methods:{toInput:Object(u.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDetail:function(e,t){this.showFlag=!0;var a=JSON.parse(n()(t));a.userMessageId="",this.itemRow=a},hideDetail:function(){this.showFlag=!1,this.itemRow={},this.$nextTick(function(){document.body.style.overflow="auto"})},getTableList:function(e){var t=this,a=[],o=[],n=[];t.conditionObj.storeGroup.forEach(function(e){1==e.type&&n.push(e.employeeClerkId),2==e.type&&a.push(e.groupId),3==e.type&&o.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var i={keyWord:t.conditionObj.searchInput||"",type:t.conditionObj.searchType||"",groupIds:a.join(",")||"",storeIds:o.join(",")||"",clerkIds:n.join(",")||"",startTime:t.conditionObj.dateRange[0]||"",endTime:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(l.a)("/haoban-app-member-web/customer/find_message_list",i).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.total,!1;c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","3"),this.brandId&&this.getTableList()}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log border-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"chat-log-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-369",attrs:{placeholder:2==e.conditionObj.searchType?"请输入会员手机号/卡号 ":"请输入导购姓名/手机号/code",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("el-select",{staticClass:"w-103",attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.conditionObj.searchType,callback:function(t){e.$set(e.conditionObj,"searchType",t)},expression:"conditionObj.searchType"}},[a("el-option",{attrs:{label:"按导购",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"按会员",value:"2"}})],1)],1),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{disabled:2==e.conditionObj.searchType,type:"primary",plain:""},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e._v("门店架构选人")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"姓名","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"员工状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.status?a("span",[e._v("正式")]):e._e(),e._v(" "),2==t.row.status?a("span",[e._v("试用")]):e._e(),e._v(" "),-1==t.row.status?a("span",[e._v("无状态")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"导购手机号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.phoneNumber||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"门店名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"员工code","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.code||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"消息数","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.messageCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员姓名","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberName||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员手机号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberPhoneNumber||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.showDetail(t.$index,t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("chat-log-list",{attrs:{brandId:e.brandId,itemRow:e.itemRow,showFlag:e.showFlag},on:{hideDetail:e.hideDetail}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"all",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)])},staticRenderFns:[]};var h=a("VU/8")(d,p,!1,function(e){a("uVeP")},"data-v-81447b52",null);t.default=h.exports},uVeP:function(e,t){}});
\ No newline at end of file
webpackJsonp([57],{gjw3:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("mvHQ"),n=a.n(o),i=a("Ie7z"),s=a("Ke24"),r=a("b28S"),l=a("P9l9"),c=a("Ch4/"),u=a("PI0u"),d={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:s.a,vueSelectStore:i.a,chatLogList:r.a},data:function(){var e=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",topMenuData:[{id:"1",name:"聊天记录"}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}],onPick:function(t){var a=t.maxDate,o=t.minDate;e.choiceDateCopy=[o.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,o=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>o||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},currentPage:1,pageSize:20,total:0,showFlag:!1,itemRow:{}}},methods:{toInput:Object(u.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDetail:function(e,t){this.showFlag=!0;var a=JSON.parse(n()(t));a.userMessageId="",this.itemRow=a},hideDetail:function(){this.showFlag=!1,this.itemRow={},this.$nextTick(function(){document.body.style.overflow="auto"})},getTableList:function(e){var t=this,a=[],o=[],n=[];t.conditionObj.storeGroup.forEach(function(e){1==e.type&&n.push(e.employeeClerkId),2==e.type&&a.push(e.groupId),3==e.type&&o.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var i={keyWord:t.conditionObj.searchInput||"",type:t.conditionObj.searchType||"",groupIds:a.join(",")||"",storeIds:o.join(",")||"",clerkIds:n.join(",")||"",startTime:t.conditionObj.dateRange[0]||"",endTime:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(l.a)("/haoban-app-member-web/customer/find_message_list",i).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.total,!1;c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","3"),this.brandId&&this.getTableList()}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log border-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"chat-log-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-369",attrs:{placeholder:2==e.conditionObj.searchType?"请输入会员手机号/卡号 ":"请输入导购姓名/手机号/code",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("el-select",{staticClass:"w-103",attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.conditionObj.searchType,callback:function(t){e.$set(e.conditionObj,"searchType",t)},expression:"conditionObj.searchType"}},[a("el-option",{attrs:{label:"按导购",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"按会员",value:"2"}})],1)],1),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{disabled:2==e.conditionObj.searchType,type:"primary",plain:""},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e._v("门店架构选人")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"姓名","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"员工状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.status?a("span",[e._v("正式")]):e._e(),e._v(" "),2==t.row.status?a("span",[e._v("试用")]):e._e(),e._v(" "),-1==t.row.status?a("span",[e._v("无状态")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"导购手机号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.phoneNumber||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"门店名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"员工code","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.code||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"消息数","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.messageCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员姓名","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberName||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员手机号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberPhoneNumber||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.showDetail(t.$index,t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("chat-log-list",{attrs:{brandId:e.brandId,itemRow:e.itemRow,showFlag:e.showFlag},on:{hideDetail:e.hideDetail}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"all",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)])},staticRenderFns:[]};var h=a("VU/8")(d,p,!1,function(e){a("uVeP")},"data-v-81447b52",null);t.default=h.exports},uVeP:function(e,t){}});
\ No newline at end of file
webpackJsonp([57],{"h/6A":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("mvHQ"),a=r.n(o),n=r("Xxa5"),s=r.n(n),i=r("//Fk"),l=r.n(i),u=r("exGp"),m=r.n(u),d=r("3Xzz"),c=r("l46T"),f=r("Kkt8"),p=r("XDyb"),g=r("T+u5"),h=r.n(g),I=r("P9l9"),v=r("Ie7z"),b={name:"store-info",components:{navCrumb:d.a,vueSelectStore:v.a,limitInput:c.a,limitTextarea:f.a,countryMobile:p.a},data:function(){var e=this;return{gicFlag:!(!this.$route.query.gicFlag||"false"==this.$route.query.gicFlag),navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"添加门店",path:""}],editpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"编辑门店",path:""}],treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0,groupId:"",openNextBool:!0},currentBrand:this.$route.query.firstLevelId,disableFlag:!1,defaultList:[],storeInfo:{storeName:"",storeGroupId:"",departmentName:"",groupChainName:"",imageUrls:[],phoneNumber:"",openTime:"",closeTime:"",shopHours:"",storeType:0,countryId:"",provinceId:"",cityId:"",areaId:"",postAddress:"",longitude:"",latitude:"",location:"",storeArea:"",mangerName:"",storeManagerId:"",managerNationcode:"86",managerPhone:"",managerCode:"",maangerSex:"",storeCode:"",storeId:""},areaChainName:"",areaOptions:{},imgs:[],uploadUrl:"/haoban-manage-web/upload-img",rules:{storeName:[{required:!0,message:"请输入门店名称",trigger:"blur"}],departmentName:[{required:!0,message:"请选择所属分组",trigger:"blur"}],groupChainName:[{required:!0,message:"请选择部门",trigger:"change"}],imageUrls:[{type:"array",required:!0,message:"请选择门店图片",trigger:"change"}],areaId:[{required:!0,message:"请选择门店地址",trigger:"blur"}],storeType:[{required:!0,message:"请选择门店类型",trigger:"blur"}],openTime:[{required:!0,validator:function(t,r,o){return r&&e.storeInfo.closeTime?o():o(new Error("请选择营业时间"))},trigger:"blur"}],location:[{required:!0,message:"请选择经纬度",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(e,t,r){return t?r():r(new Error("请输入联系电话"))},trigger:"blur"}],storeCode:[{required:!0,validator:function(t,r,o){return r?/^[A-Za-z0-9_\u4e00-\u9fa5]+$/.test(r)?o():void(e.storeInfo.storeCode=r.replace(/[^A-Za-z0-9_\u4e00-\u9fa5]+/g,"")):o(new Error("请输入门店代码"))},trigger:"blur"}],managerName:[{required:!0,message:"请输入店长姓名",trigger:"blur"}],managerPhone:[{required:!0,validator:function(t,r,o){if(!r)return o(new Error("请输入手机号码"));var a=new h.a("+"+e.storeInfo.managerNationcode+r);a.isValid()&&a.isMobile()?o():o(new Error("手机号格式不正确"))},trigger:"blur"}],managerCode:[{required:!0,validator:function(t,r,o){return r?/^[A-Za-z0-9_\u4e00-\u9fa5]+$/.test(r)?o():void(e.storeInfo.managerCode=r.replace(/[^A-Za-z0-9_\u4e00-\u9fa5]+/g,"")):o(new Error("请输入店长代码"))},trigger:"blur"}],specialService:[{max:20,message:"长度在 20 个字符以内",trigger:"blur"}],personCost:[{validator:function(e,t,r){if(t)return/^\d+(\.\d+)?$/.test(1*t)?r():r(new Error("人均消费只能为非负整数或者小数"));return r()},trigger:"blur"}]}}},methods:{inputBlur:function(e){this.storeInfo.storeArea||(this.storeInfo.storeArea=""),this.storeInfo.storeArea=Number(this.storeInfo.storeArea.replace(/[^\d.]/g,""))?this.storeInfo.storeArea.replace(/[^\d+(.\d+)]/g,""):"",this.storeInfo.storeArea=Number(this.storeInfo.storeArea).toFixed(2),this.storeInfo.storeArea>=999999&&(this.storeInfo.storeArea=Number(999999).toFixed(2))},callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){console.log(e),this.storeInfo.groupChainName=e.length?e[0].chainName:"",this.storeInfo.departmentName=e.length?e[0].label:"",this.storeInfo.storeGroupId=e.length?e[0].id:"",this.storeInfo.departmentName&&this.$refs.storeInfo.clearValidate("departmentName"),console.log(this.storeInfo,this.storeInfo.groupChainName,e[0].chainName),this.$forceUpdate()},selected:function(e){this.storeInfo.provinceId=e.province,this.storeInfo.cityId=e.city||"",this.storeInfo.areaId=e.areaId||""},getStoreInfo:function(){var e=this,t={storeId:e.$route.query.storeId};Object(I.a)("/haoban-manage-web/store/findStoreById",t).then(function(t){1==t.data.errorCode?(e.showEmployee="store",e.defaultList=[{id:t.data.result.storeGroupId,label:t.data.result.departmentName}],e.formatStoreInfo(t.data.result)):e.$message.error({message:t.data.message})})},clickToSave:function(){var e=this;return m()(s.a.mark(function t(){var r,o,a,n;return s.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=e,o=new l.a(function(e,t){r.$refs.storeInfo.validate(function(t){t&&e()})}),a=new l.a(function(e,t){r.$refs.storeManager.validate(function(t){t&&e()})}),n=new l.a(function(e,t){r.$refs.storeOperate.validate(function(t){t&&e()})}),l.a.all([o,a,n]).then(function(){r.save()});case 5:case"end":return t.stop()}},t,e)}))()},formatStoreInfo:function(e){var t=this;return m()(s.a.mark(function r(){var o,a,n;return s.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:o=t,a=(e.areaChainName||"").split("/"),o.areaOptions={provinceName:a[0],provinceId:e.provinceId,cityName:a[1],cityId:e.cityId,countryName:a[2],countyId:e.countryId},o.imgs=e.imageUrl?e.imageUrl.split(","):[],n=[],o.imgs.forEach(function(e){n.push({url:e})}),e.managerNationcode=e.managerNationcode||"86",e.imageUrls=n,e.location=e.longitude?e.latitude+","+e.longitude:"",o.storeInfo=e,o.disableFlag=!o.isNew&&!!o.storeInfo.managerPhone;case 11:case"end":return r.stop()}},r,t)}))()},uploadOnSuccess:function(e,t){e.file.url=e.res.result[0].qcloudImageUrl,t.push(e.file)},sortImg:function(e){this.storeInfo.imageUrls=e},deleteImage:function(e){this.storeInfo.imageUrls.splice(e,1)},save:function(){var e=this,t=e.storeInfo.location.split(",");e.storeInfo.longitude=t[1],e.storeInfo.latitude=2!==t.length?"":t[0];var r=JSON.parse(a()(e.storeInfo)),o=[];e.storeInfo.imageUrls.forEach(function(e){o.push(e.url)}),r.imageUrls=o.join(",");var n=e.isNew?"/haoban-manage-web/store/insert":"/haoban-manage-web/store/update";Object(I.e)(n,r).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isNew:function(){return!this.$route.query.storeId}},beforeMount:function(){this.treeSet.groupId=this.$route.query.firstLevelId,this.isNew||this.getStoreInfo()},mounted:function(){this.$route.query.storeId&&(this.navpath=this.editpath)}},_={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("div",[r("div",{staticClass:"store-info"},[r("div",{staticClass:"info-cell"},[r("p",{staticClass:"title font-w-500"},[e._v("门店信息")]),e._v(" "),r("el-form",{ref:"storeInfo",staticClass:"store-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"门店名称",prop:"storeName"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.storeName,holder:"",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"storeName",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"所属分组",prop:"departmentName"}},[r("el-input",{staticClass:"w-500",attrs:{disabled:e.gicFlag},on:{focus:e.callSelector},model:{value:e.storeInfo.groupChainName,callback:function(t){e.$set(e.storeInfo,"groupChainName",t)},expression:"storeInfo.groupChainName"}},[r("i",{staticClass:"el-input__icon el-icon-arrow-down",attrs:{slot:"suffix"},slot:"suffix"})])],1),e._v(" "),r("el-form-item",{attrs:{label:"门店图片",prop:"imageUrls"}},[r("div",{staticClass:"member-upload-image"},[r("vue-office-upload-image",{attrs:{projectName:"haoban-manage-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.storeInfo.imageUrls,limitW:640,limitH:340,maxImageLength:10},on:{uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}})],1),e._v(" "),r("div",{staticClass:"tip font-12 color-909399 m-t-8 line-h-1"},[e._v("门店图片(640*340),支持.jpg,.jepg,.png类型文件,最多添加10张图片")])]),e._v(" "),r("el-form-item",{attrs:{label:"联系电话",prop:"phoneNumber"}},[r("el-input",{staticClass:"w-500",model:{value:e.storeInfo.phoneNumber,callback:function(t){e.$set(e.storeInfo,"phoneNumber",t)},expression:"storeInfo.phoneNumber"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"营业时间",prop:"openTime"}},[r("el-time-select",{attrs:{editable:!1,placeholder:"起始时间","picker-options":{start:"00:00",step:"00:05",end:"24:00"}},model:{value:e.storeInfo.openTime,callback:function(t){e.$set(e.storeInfo,"openTime",t)},expression:"storeInfo.openTime"}}),e._v("\n ~\n "),r("el-time-select",{attrs:{editable:!1,placeholder:"结束时间","picker-options":{start:"00:00",step:"00:05",end:"24:00",minTime:e.storeInfo.openTime}},model:{value:e.storeInfo.closeTime,callback:function(t){e.$set(e.storeInfo,"closeTime",t)},expression:"storeInfo.closeTime"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"门店类型",prop:"storeType"}},[r("el-radio-group",{model:{value:e.storeInfo.storeType,callback:function(t){e.$set(e.storeInfo,"storeType",t)},expression:"storeInfo.storeType"}},[r("el-radio",{attrs:{label:0}},[e._v("自营")]),e._v(" "),r("el-radio",{attrs:{label:1}},[e._v("联营")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("代理")]),e._v(" "),r("el-radio",{attrs:{label:3}},[e._v("代销")]),e._v(" "),r("el-radio",{attrs:{label:4}},[e._v("托管")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"门店地址",prop:"areaId"}},[r("vue-office-area",{attrs:{areaOptions:e.areaOptions,projectName:"haoban-web",postUrl:"/haoban-manage-web/dict-district-list"},on:{selected:e.selected}}),e._v(" "),r("div",{staticClass:"m-t-15"},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.postAddress,holder:"",maxLength:50},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"postAddress",t)}}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"GPS坐标",prop:"location"}},[r("el-input",{staticClass:"w-500 m-r-10",model:{value:e.storeInfo.location,callback:function(t){e.$set(e.storeInfo,"location",t)},expression:"storeInfo.location"}}),e._v(" "),r("a",{staticClass:"a-href",attrs:{href:"http://m.gpsspg.com/maps.htm",target:"_blank",rel:"nofollow noopener noreferrer"}},[e._v("经纬度测试工具")])],1),e._v(" "),r("el-form-item",{attrs:{prop:"storeCode"}},[r("template",{slot:"label"},[e._v("\n 门店代码\n ")]),e._v(" "),r("limitInput",{attrs:{inputWidth:500,disflag:e.gicFlag,inputValue:e.storeInfo.storeCode,holder:"",maxLength:20,getByType:"word"},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"storeCode",t)}}})],2),e._v(" "),r("el-form-item",{attrs:{label:"门店面积"}},[r("el-input",{staticClass:"w-500",on:{blur:function(t){return e.inputBlur(t)}},model:{value:e.storeInfo.storeArea,callback:function(t){e.$set(e.storeInfo,"storeArea",t)},expression:"storeInfo.storeArea"}}),r("span",{staticClass:"font-14 p-l-10"},[e._v("平方米")])],1)],1)],1),e._v(" "),r("div",{staticClass:"info-cell"},[r("p",{staticClass:"title font-w-500"},[e._v("店长信息")]),e._v(" "),r("el-form",{ref:"storeManager",staticClass:"store-manager-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"店长姓名",prop:"managerName"}},[r("limitInput",{attrs:{inputWidth:500,disflag:e.gicFlag,inputValue:e.storeInfo.managerName,holder:"",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"managerName",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号码",prop:"managerPhone"}},[r("countryMobile",{attrs:{inputWidth:500,nationCode:e.storeInfo.managerNationcode,holder:"请输入手机号",disflag:e.disableFlag||e.gicFlag},on:{"update:nationCode":function(t){e.$set(e.storeInfo,"managerNationcode",t)}},model:{value:e.storeInfo.managerPhone,callback:function(t){e.$set(e.storeInfo,"managerPhone",t)},expression:"storeInfo.managerPhone"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"店长性别"}},[r("el-radio-group",{attrs:{disabled:e.gicFlag},model:{value:e.storeInfo.managerSex,callback:function(t){e.$set(e.storeInfo,"managerSex",t)},expression:"storeInfo.managerSex"}},[r("el-radio",{attrs:{label:1}},[e._v("男")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("女")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"店长代码",prop:"managerCode"}},[r("limitInput",{attrs:{inputWidth:500,disflag:e.gicFlag,inputValue:e.storeInfo.managerCode,holder:"",maxLength:20,getByType:"word"},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"managerCode",t)}}})],1)],1)],1),e._v(" "),r("div",{staticClass:"info-cell"},[r("p",{staticClass:"title font-w-500"},[e._v("经营信息")]),e._v(" "),r("el-form",{ref:"storeOperate",staticClass:"operate-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"90px"}},[r("el-form-item",{attrs:{label:"特色服务",prop:"specialService"}},[r("limit-textarea",{attrs:{inputWidth:500,inputValue:e.storeInfo.specialService,holder:"请输入推荐商品",getByType:"word",maxLength:100},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"specialService",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"人均消费",prop:"personCost"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.personCost,holder:"请输入人均消费",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"personCost",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"推荐商品"}},[r("limit-textarea",{attrs:{inputWidth:500,inputValue:e.storeInfo.recommendGoods,holder:"请输入推荐商品",getByType:"word",maxLength:100},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"recommendGoods",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"品牌介绍"}},[r("limit-textarea",{attrs:{inputWidth:500,inputValue:e.storeInfo.brandDes,holder:"请输入品牌介绍",getByType:"word",maxLength:200},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"brandDes",t)}}})],1)],1)],1),e._v(" "),r("div",{staticClass:"handle-area"},[r("el-button",{attrs:{type:"primary"},on:{click:e.clickToSave}},[e._v("保 存")])],1)]),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.currentBrand,defaultList:e.defaultList,treeSet:e.treeSet,selectType:"group"},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var C=r("VU/8")(b,_,!1,function(e){r("zp0P")},null,null);t.default=C.exports},zp0P:function(e,t){}});
\ No newline at end of file
webpackJsonp([58],{"h/6A":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("mvHQ"),a=r.n(o),n=r("Xxa5"),s=r.n(n),i=r("//Fk"),l=r.n(i),u=r("exGp"),m=r.n(u),d=r("3Xzz"),c=r("l46T"),f=r("Kkt8"),p=r("XDyb"),g=r("T+u5"),h=r.n(g),I=r("P9l9"),v=r("Ie7z"),b={name:"store-info",components:{navCrumb:d.a,vueSelectStore:v.a,limitInput:c.a,limitTextarea:f.a,countryMobile:p.a},data:function(){var e=this;return{gicFlag:!(!this.$route.query.gicFlag||"false"==this.$route.query.gicFlag),navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"添加门店",path:""}],editpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"编辑门店",path:""}],treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0,groupId:"",openNextBool:!0},currentBrand:this.$route.query.firstLevelId,disableFlag:!1,defaultList:[],storeInfo:{storeName:"",storeGroupId:"",departmentName:"",groupChainName:"",imageUrls:[],phoneNumber:"",openTime:"",closeTime:"",shopHours:"",storeType:0,countryId:"",provinceId:"",cityId:"",areaId:"",postAddress:"",longitude:"",latitude:"",location:"",storeArea:"",mangerName:"",storeManagerId:"",managerNationcode:"86",managerPhone:"",managerCode:"",maangerSex:"",storeCode:"",storeId:""},areaChainName:"",areaOptions:{},imgs:[],uploadUrl:"/haoban-manage-web/upload-img",rules:{storeName:[{required:!0,message:"请输入门店名称",trigger:"blur"}],departmentName:[{required:!0,message:"请选择所属分组",trigger:"blur"}],groupChainName:[{required:!0,message:"请选择部门",trigger:"change"}],imageUrls:[{type:"array",required:!0,message:"请选择门店图片",trigger:"change"}],areaId:[{required:!0,message:"请选择门店地址",trigger:"blur"}],storeType:[{required:!0,message:"请选择门店类型",trigger:"blur"}],openTime:[{required:!0,validator:function(t,r,o){return r&&e.storeInfo.closeTime?o():o(new Error("请选择营业时间"))},trigger:"blur"}],location:[{required:!0,message:"请选择经纬度",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(e,t,r){return t?r():r(new Error("请输入联系电话"))},trigger:"blur"}],storeCode:[{required:!0,validator:function(t,r,o){return r?/^[A-Za-z0-9_\u4e00-\u9fa5]+$/.test(r)?o():void(e.storeInfo.storeCode=r.replace(/[^A-Za-z0-9_\u4e00-\u9fa5]+/g,"")):o(new Error("请输入门店代码"))},trigger:"blur"}],managerName:[{required:!0,message:"请输入店长姓名",trigger:"blur"}],managerPhone:[{required:!0,validator:function(t,r,o){if(!r)return o(new Error("请输入手机号码"));var a=new h.a("+"+e.storeInfo.managerNationcode+r);a.isValid()&&a.isMobile()?o():o(new Error("手机号格式不正确"))},trigger:"blur"}],managerCode:[{required:!0,validator:function(t,r,o){return r?/^[A-Za-z0-9_\u4e00-\u9fa5]+$/.test(r)?o():void(e.storeInfo.managerCode=r.replace(/[^A-Za-z0-9_\u4e00-\u9fa5]+/g,"")):o(new Error("请输入店长代码"))},trigger:"blur"}],specialService:[{max:20,message:"长度在 20 个字符以内",trigger:"blur"}],personCost:[{validator:function(e,t,r){if(t)return/^\d+(\.\d+)?$/.test(1*t)?r():r(new Error("人均消费只能为非负整数或者小数"));return r()},trigger:"blur"}]}}},methods:{inputBlur:function(e){this.storeInfo.storeArea||(this.storeInfo.storeArea=""),this.storeInfo.storeArea=Number(this.storeInfo.storeArea.replace(/[^\d.]/g,""))?this.storeInfo.storeArea.replace(/[^\d+(.\d+)]/g,""):"",this.storeInfo.storeArea=Number(this.storeInfo.storeArea).toFixed(2),this.storeInfo.storeArea>=999999&&(this.storeInfo.storeArea=Number(999999).toFixed(2))},callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){console.log(e),this.storeInfo.groupChainName=e.length?e[0].chainName:"",this.storeInfo.departmentName=e.length?e[0].label:"",this.storeInfo.storeGroupId=e.length?e[0].id:"",this.storeInfo.departmentName&&this.$refs.storeInfo.clearValidate("departmentName"),console.log(this.storeInfo,this.storeInfo.groupChainName,e[0].chainName),this.$forceUpdate()},selected:function(e){this.storeInfo.provinceId=e.province,this.storeInfo.cityId=e.city||"",this.storeInfo.areaId=e.areaId||""},getStoreInfo:function(){var e=this,t={storeId:e.$route.query.storeId};Object(I.a)("/haoban-manage-web/store/findStoreById",t).then(function(t){1==t.data.errorCode?(e.showEmployee="store",e.defaultList=[{id:t.data.result.storeGroupId,label:t.data.result.departmentName}],e.formatStoreInfo(t.data.result)):e.$message.error({message:t.data.message})})},clickToSave:function(){var e=this;return m()(s.a.mark(function t(){var r,o,a,n;return s.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=e,o=new l.a(function(e,t){r.$refs.storeInfo.validate(function(t){t&&e()})}),a=new l.a(function(e,t){r.$refs.storeManager.validate(function(t){t&&e()})}),n=new l.a(function(e,t){r.$refs.storeOperate.validate(function(t){t&&e()})}),l.a.all([o,a,n]).then(function(){r.save()});case 5:case"end":return t.stop()}},t,e)}))()},formatStoreInfo:function(e){var t=this;return m()(s.a.mark(function r(){var o,a,n;return s.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:o=t,a=(e.areaChainName||"").split("/"),o.areaOptions={provinceName:a[0],provinceId:e.provinceId,cityName:a[1],cityId:e.cityId,countryName:a[2],countyId:e.countryId},o.imgs=e.imageUrl?e.imageUrl.split(","):[],n=[],o.imgs.forEach(function(e){n.push({url:e})}),e.managerNationcode=e.managerNationcode||"86",e.imageUrls=n,e.location=e.longitude?e.latitude+","+e.longitude:"",o.storeInfo=e,o.disableFlag=!o.isNew&&!!o.storeInfo.managerPhone;case 11:case"end":return r.stop()}},r,t)}))()},uploadOnSuccess:function(e,t){e.file.url=e.res.result[0].qcloudImageUrl,t.push(e.file)},sortImg:function(e){this.storeInfo.imageUrls=e},deleteImage:function(e){this.storeInfo.imageUrls.splice(e,1)},save:function(){var e=this,t=e.storeInfo.location.split(",");e.storeInfo.longitude=t[1],e.storeInfo.latitude=2!==t.length?"":t[0];var r=JSON.parse(a()(e.storeInfo)),o=[];e.storeInfo.imageUrls.forEach(function(e){o.push(e.url)}),r.imageUrls=o.join(",");var n=e.isNew?"/haoban-manage-web/store/insert":"/haoban-manage-web/store/update";Object(I.e)(n,r).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isNew:function(){return!this.$route.query.storeId}},beforeMount:function(){this.treeSet.groupId=this.$route.query.firstLevelId,this.isNew||this.getStoreInfo()},mounted:function(){this.$route.query.storeId&&(this.navpath=this.editpath)}},_={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("div",[r("div",{staticClass:"store-info"},[r("div",{staticClass:"info-cell"},[r("p",{staticClass:"title font-w-500"},[e._v("门店信息")]),e._v(" "),r("el-form",{ref:"storeInfo",staticClass:"store-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"门店名称",prop:"storeName"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.storeName,holder:"",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"storeName",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"所属分组",prop:"departmentName"}},[r("el-input",{staticClass:"w-500",attrs:{disabled:e.gicFlag},on:{focus:e.callSelector},model:{value:e.storeInfo.groupChainName,callback:function(t){e.$set(e.storeInfo,"groupChainName",t)},expression:"storeInfo.groupChainName"}},[r("i",{staticClass:"el-input__icon el-icon-arrow-down",attrs:{slot:"suffix"},slot:"suffix"})])],1),e._v(" "),r("el-form-item",{attrs:{label:"门店图片",prop:"imageUrls"}},[r("div",{staticClass:"member-upload-image"},[r("vue-office-upload-image",{attrs:{projectName:"haoban-manage-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.storeInfo.imageUrls,limitW:640,limitH:340,maxImageLength:10},on:{uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}})],1),e._v(" "),r("div",{staticClass:"tip font-12 color-909399 m-t-8 line-h-1"},[e._v("门店图片(640*340),支持.jpg,.jepg,.png类型文件,最多添加10张图片")])]),e._v(" "),r("el-form-item",{attrs:{label:"联系电话",prop:"phoneNumber"}},[r("el-input",{staticClass:"w-500",model:{value:e.storeInfo.phoneNumber,callback:function(t){e.$set(e.storeInfo,"phoneNumber",t)},expression:"storeInfo.phoneNumber"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"营业时间",prop:"openTime"}},[r("el-time-select",{attrs:{editable:!1,placeholder:"起始时间","picker-options":{start:"00:00",step:"00:05",end:"24:00"}},model:{value:e.storeInfo.openTime,callback:function(t){e.$set(e.storeInfo,"openTime",t)},expression:"storeInfo.openTime"}}),e._v("\n ~\n "),r("el-time-select",{attrs:{editable:!1,placeholder:"结束时间","picker-options":{start:"00:00",step:"00:05",end:"24:00",minTime:e.storeInfo.openTime}},model:{value:e.storeInfo.closeTime,callback:function(t){e.$set(e.storeInfo,"closeTime",t)},expression:"storeInfo.closeTime"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"门店类型",prop:"storeType"}},[r("el-radio-group",{model:{value:e.storeInfo.storeType,callback:function(t){e.$set(e.storeInfo,"storeType",t)},expression:"storeInfo.storeType"}},[r("el-radio",{attrs:{label:0}},[e._v("自营")]),e._v(" "),r("el-radio",{attrs:{label:1}},[e._v("联营")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("代理")]),e._v(" "),r("el-radio",{attrs:{label:3}},[e._v("代销")]),e._v(" "),r("el-radio",{attrs:{label:4}},[e._v("托管")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"门店地址",prop:"areaId"}},[r("vue-office-area",{attrs:{areaOptions:e.areaOptions,projectName:"haoban-web",postUrl:"/haoban-manage-web/dict-district-list"},on:{selected:e.selected}}),e._v(" "),r("div",{staticClass:"m-t-15"},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.postAddress,holder:"",maxLength:50},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"postAddress",t)}}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"GPS坐标",prop:"location"}},[r("el-input",{staticClass:"w-500 m-r-10",model:{value:e.storeInfo.location,callback:function(t){e.$set(e.storeInfo,"location",t)},expression:"storeInfo.location"}}),e._v(" "),r("a",{staticClass:"a-href",attrs:{href:"http://m.gpsspg.com/maps.htm",target:"_blank",rel:"nofollow noopener noreferrer"}},[e._v("经纬度测试工具")])],1),e._v(" "),r("el-form-item",{attrs:{prop:"storeCode"}},[r("template",{slot:"label"},[e._v("\n 门店代码\n ")]),e._v(" "),r("limitInput",{attrs:{inputWidth:500,disflag:e.gicFlag,inputValue:e.storeInfo.storeCode,holder:"",maxLength:20,getByType:"word"},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"storeCode",t)}}})],2),e._v(" "),r("el-form-item",{attrs:{label:"门店面积"}},[r("el-input",{staticClass:"w-500",on:{blur:function(t){return e.inputBlur(t)}},model:{value:e.storeInfo.storeArea,callback:function(t){e.$set(e.storeInfo,"storeArea",t)},expression:"storeInfo.storeArea"}}),r("span",{staticClass:"font-14 p-l-10"},[e._v("平方米")])],1)],1)],1),e._v(" "),r("div",{staticClass:"info-cell"},[r("p",{staticClass:"title font-w-500"},[e._v("店长信息")]),e._v(" "),r("el-form",{ref:"storeManager",staticClass:"store-manager-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"店长姓名",prop:"managerName"}},[r("limitInput",{attrs:{inputWidth:500,disflag:e.gicFlag,inputValue:e.storeInfo.managerName,holder:"",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"managerName",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号码",prop:"managerPhone"}},[r("countryMobile",{attrs:{inputWidth:500,nationCode:e.storeInfo.managerNationcode,holder:"请输入手机号",disflag:e.disableFlag||e.gicFlag},on:{"update:nationCode":function(t){e.$set(e.storeInfo,"managerNationcode",t)}},model:{value:e.storeInfo.managerPhone,callback:function(t){e.$set(e.storeInfo,"managerPhone",t)},expression:"storeInfo.managerPhone"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"店长性别"}},[r("el-radio-group",{attrs:{disabled:e.gicFlag},model:{value:e.storeInfo.managerSex,callback:function(t){e.$set(e.storeInfo,"managerSex",t)},expression:"storeInfo.managerSex"}},[r("el-radio",{attrs:{label:1}},[e._v("男")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("女")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"店长代码",prop:"managerCode"}},[r("limitInput",{attrs:{inputWidth:500,disflag:e.gicFlag,inputValue:e.storeInfo.managerCode,holder:"",maxLength:20,getByType:"word"},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"managerCode",t)}}})],1)],1)],1),e._v(" "),r("div",{staticClass:"info-cell"},[r("p",{staticClass:"title font-w-500"},[e._v("经营信息")]),e._v(" "),r("el-form",{ref:"storeOperate",staticClass:"operate-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"90px"}},[r("el-form-item",{attrs:{label:"特色服务",prop:"specialService"}},[r("limit-textarea",{attrs:{inputWidth:500,inputValue:e.storeInfo.specialService,holder:"请输入推荐商品",getByType:"word",maxLength:100},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"specialService",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"人均消费",prop:"personCost"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.personCost,holder:"请输入人均消费",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"personCost",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"推荐商品"}},[r("limit-textarea",{attrs:{inputWidth:500,inputValue:e.storeInfo.recommendGoods,holder:"请输入推荐商品",getByType:"word",maxLength:100},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"recommendGoods",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"品牌介绍"}},[r("limit-textarea",{attrs:{inputWidth:500,inputValue:e.storeInfo.brandDes,holder:"请输入品牌介绍",getByType:"word",maxLength:200},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"brandDes",t)}}})],1)],1)],1),e._v(" "),r("div",{staticClass:"handle-area"},[r("el-button",{attrs:{type:"primary"},on:{click:e.clickToSave}},[e._v("保 存")])],1)]),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.currentBrand,defaultList:e.defaultList,treeSet:e.treeSet,selectType:"group"},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var C=r("VU/8")(b,_,!1,function(e){r("zp0P")},null,null);t.default=C.exports},zp0P:function(e,t){}});
\ No newline at end of file
webpackJsonp([58],{"4m/B":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),l=a("2eFk"),i=a("Ke24"),s=a("LRn8"),r=a("fPyK"),c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"2",activeBrand:this.brandId,topMenuData:[{id:"1",name:"不良评价回访记录",path:"/badEvaluateRecord"},{id:"2",name:"记录详情",path:""}],selectRadio:0,showDialog:!1,conditionObj:{completed:"",overdue:""},completedOptions:[{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={taskType:0,storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskIds})||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",reason:e.reason,brandId:t.activeBrand,isAll:t.selectRadio};Object(c.e)("/haoban-app-tel-task-web/task/batch-del-clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,o={taskId:t.taskId,brandId:a.activeBrand};Object(c.a)("/haoban-app-tel-task-web/task/del-one",o).then(function(t){var o=t.data;if(1==o.errorCode)return u.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);d.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=""+t.taskId;this.$refs.qrcodePreview.qrcode(a,"daily-detail"),this.dialogVisible=!0},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand,taskType:0};Object(c.a)("/haoban-app-tel-task-web/task/clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],void(t.total=a.result.pageInfo.total);d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","1"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:l.a,commonDetailTop:i.a,multipleDel:s.a,qrcodeDialog:r.a}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-105",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableH},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{class:["image-wrap flex flex-align-center flex-pack-center",t.row.headImgUrl?"bg-eceaeb":"bg-82c5ff"]},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:""}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16"},[a("p",{staticClass:"font-14 color-303133"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v(e._s(t.row.clerkPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"left"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("span",[e._v(e._s(t.row?"完成备注":"放弃备注"))])]}},{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:e.row.reason}},[a("i",{staticClass:"iconfont icon-beizhu"})])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["已完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?t.row.reason:""}},[a("i",{staticClass:"iconfont icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"放弃备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["未完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?"":t.row.reason}},[a("i",{staticClass:"iconfont icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handlePreview(t.$index,t.row)}}},[e._v("预览")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var m=a("VU/8")(f,p,!1,function(e){a("Dpp6")},"data-v-77cdecbc",null);t.default=m.exports},Dpp6:function(e,t){}});
\ No newline at end of file
webpackJsonp([59],{"4m/B":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),l=a("2eFk"),i=a("Ke24"),s=a("LRn8"),r=a("fPyK"),c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"2",activeBrand:this.brandId,topMenuData:[{id:"1",name:"不良评价回访记录",path:"/badEvaluateRecord"},{id:"2",name:"记录详情",path:""}],selectRadio:0,showDialog:!1,conditionObj:{completed:"",overdue:""},completedOptions:[{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={taskType:0,storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskIds})||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",reason:e.reason,brandId:t.activeBrand,isAll:t.selectRadio};Object(c.e)("/haoban-app-tel-task-web/task/batch-del-clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,o={taskId:t.taskId,brandId:a.activeBrand};Object(c.a)("/haoban-app-tel-task-web/task/del-one",o).then(function(t){var o=t.data;if(1==o.errorCode)return u.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);d.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=""+t.taskId;this.$refs.qrcodePreview.qrcode(a,"daily-detail"),this.dialogVisible=!0},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand,taskType:0};Object(c.a)("/haoban-app-tel-task-web/task/clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],void(t.total=a.result.pageInfo.total);d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","1"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:l.a,commonDetailTop:i.a,multipleDel:s.a,qrcodeDialog:r.a}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-105",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableH},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{class:["image-wrap flex flex-align-center flex-pack-center",t.row.headImgUrl?"bg-eceaeb":"bg-82c5ff"]},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:""}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16"},[a("p",{staticClass:"font-14 color-303133"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v(e._s(t.row.clerkPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"left"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("span",[e._v(e._s(t.row?"完成备注":"放弃备注"))])]}},{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:e.row.reason}},[a("i",{staticClass:"iconfont icon-beizhu"})])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["已完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?t.row.reason:""}},[a("i",{staticClass:"iconfont icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"放弃备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["未完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?"":t.row.reason}},[a("i",{staticClass:"iconfont icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handlePreview(t.$index,t.row)}}},[e._v("预览")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var m=a("VU/8")(f,p,!1,function(e){a("Dpp6")},"data-v-77cdecbc",null);t.default=m.exports},Dpp6:function(e,t){}});
\ No newline at end of file
webpackJsonp([59],{AdJp:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t("Xxa5"),o=t.n(n),r=t("exGp"),s=t.n(r),m=t("3Xzz"),i=t("WSbm"),c=t("P9l9"),d={name:"employeeDetail",components:{navCrumb:m.a,employeeInfo:i.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"/administrativeFrame"},{name:"添加员工",path:""}],navpathEdit:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"/administrativeFrame"},{name:"编辑员工",path:""}],managerMode:!1}},methods:{save:function(e){var a=this;return s()(o.a.mark(function t(){var n;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.$refs.emmployInfo.submitForm("employeeForm");case 2:t.sent&&(n=a.$refs.emmployInfo.info,a.isNew?a.addEmployee(n,e):a.saveEmployeeInfo(n));case 4:case"end":return t.stop()}},t,a)}))()},addEmployee:function(e,a){var t=this,n={name:e.name,isClerk:0,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,managerMode:1*e.managerMode,nationcode:e.nationcode};Object(c.a)("/haoban-manage-web/emp/add",n).then(function(e){1==e.data.errorCode?(t.$message.success({message:"操作成功"}),1==a?(t.$refs.emmployInfo.info={name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1,nationcode:"86"},t.$refs.emmployInfo.defaultSelection=[],t.$refs.emmployInfo.resetForm("employeeForm")):window.history.go(-1)):t.$message.error({message:e.data.message})}).catch(function(e){})},saveEmployeeInfo:function(e){var a=this,t={name:e.name,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,employeeClerkId:a.$route.query.employeeClerkId,managerMode:1*e.managerMode,nationcode:e.nationcode};Object(c.a)("/haoban-manage-web/emp/update",t).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),window.history.go(-1)):a.$message.error({message:e.data.message})}).catch(function(e){a.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})}},computed:{isNew:function(){return 1==!!this.$route.query.addnew}},mounted:function(){this.$route.query.addnew||(this.navpath=this.navpathEdit)}},p={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"common-set-wrap"},[t("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"employee-detail",style:{height:e.$store.state.bgHeight}},[t("employee-info",{ref:"emmployInfo",attrs:{isNew:e.isNew}}),e._v(" "),e.$route.query.readOnly?e._e():t("div",{staticClass:"btn-boxs"},[t("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")]),e._v(" "),e.isNew?t("el-button",{attrs:{type:"primary"},on:{click:function(a){e.save(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),t("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)])])],1)},staticRenderFns:[]};var u=t("VU/8")(d,p,!1,function(e){t("XqOc")},null,null);a.default=u.exports},XqOc:function(e,a){}});
\ No newline at end of file
webpackJsonp([60],{AdJp:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t("Xxa5"),o=t.n(n),r=t("exGp"),s=t.n(r),m=t("3Xzz"),i=t("WSbm"),c=t("P9l9"),d={name:"employeeDetail",components:{navCrumb:m.a,employeeInfo:i.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"/administrativeFrame"},{name:"添加员工",path:""}],navpathEdit:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"/administrativeFrame"},{name:"编辑员工",path:""}],managerMode:!1}},methods:{save:function(e){var a=this;return s()(o.a.mark(function t(){var n;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.$refs.emmployInfo.submitForm("employeeForm");case 2:t.sent&&(n=a.$refs.emmployInfo.info,a.isNew?a.addEmployee(n,e):a.saveEmployeeInfo(n));case 4:case"end":return t.stop()}},t,a)}))()},addEmployee:function(e,a){var t=this,n={name:e.name,isClerk:0,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,managerMode:1*e.managerMode,nationcode:e.nationcode};Object(c.a)("/haoban-manage-web/emp/add",n).then(function(e){1==e.data.errorCode?(t.$message.success({message:"操作成功"}),1==a?(t.$refs.emmployInfo.info={name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1,nationcode:"86"},t.$refs.emmployInfo.defaultSelection=[],t.$refs.emmployInfo.resetForm("employeeForm")):window.history.go(-1)):t.$message.error({message:e.data.message})}).catch(function(e){})},saveEmployeeInfo:function(e){var a=this,t={name:e.name,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,employeeClerkId:a.$route.query.employeeClerkId,managerMode:1*e.managerMode,nationcode:e.nationcode};Object(c.a)("/haoban-manage-web/emp/update",t).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),window.history.go(-1)):a.$message.error({message:e.data.message})}).catch(function(e){a.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})}},computed:{isNew:function(){return 1==!!this.$route.query.addnew}},mounted:function(){this.$route.query.addnew||(this.navpath=this.navpathEdit)}},p={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"common-set-wrap"},[t("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"employee-detail",style:{height:e.$store.state.bgHeight}},[t("employee-info",{ref:"emmployInfo",attrs:{isNew:e.isNew}}),e._v(" "),e.$route.query.readOnly?e._e():t("div",{staticClass:"btn-boxs"},[t("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")]),e._v(" "),e.isNew?t("el-button",{attrs:{type:"primary"},on:{click:function(a){e.save(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),t("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)])])],1)},staticRenderFns:[]};var u=t("VU/8")(d,p,!1,function(e){t("XqOc")},null,null);a.default=u.exports},XqOc:function(e,a){}});
\ No newline at end of file
webpackJsonp([60],{"00Sv":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var u=t("VU/8")({name:"add-employee"},r,!1,function(e){t("yw/n")},null,null);n.default=u.exports},"yw/n":function(e,n){}});
\ No newline at end of file
webpackJsonp([61],{"00Sv":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var u=t("VU/8")({name:"add-employee"},r,!1,function(e){t("yw/n")},null,null);n.default=u.exports},"yw/n":function(e,n){}});
\ No newline at end of file
webpackJsonp([61],{"4H54":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("2eFk"),i=s("Ke24"),n=s("PI0u"),o=s("Ch4/"),l=s("3E4D"),r=s("P9l9"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeId:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"话务任务设置"}],setObj:{taskType:1,overDayJudge:"",distributeTypeJudge:"",posDistributeJudge:"",giveUpJudge:""}}},computed:{},methods:{saveSet:Object(n.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={brandId:t.activeBrand,taskType:1,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge,posDistributeJudge:t.setObj.posDistributeJudge};Object(r.e)("/haoban-app-tel-task-web/setting/save-task-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):l.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={brandId:t.activeBrand,taskType:1};Object(r.e)("/haoban-app-tel-task-web/setting/find-task-setting",e).then(function(e){var s=e.data;1!=s.errorCode?o.a.errorMsg(s):t.setObj=s.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","2"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:a.a,commonDetailTop:i.a}},d={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"font-16 color-606266 m-b-20 font-w-500"},[t._v("话务任务逾期时间设置")]),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("话务任务下发")]),t._v(" "),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),s("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),t._m(0),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266"}),t._v(" "),s("el-radio",{attrs:{label:0},model:{value:t.setObj.distributeTypeJudge,callback:function(e){t.$set(t.setObj,"distributeTypeJudge",e)},expression:"setObj.distributeTypeJudge"}},[t._v("分配给主门店店长")]),t._v(" "),s("el-radio",{attrs:{label:1},model:{value:t.setObj.distributeTypeJudge,callback:function(e){t.$set(t.setObj,"distributeTypeJudge",e)},expression:"setObj.distributeTypeJudge"}},[t._v("分配给专属导购")])],1),t._v(" "),t._m(1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266"}),t._v(" "),s("el-radio",{attrs:{label:0},model:{value:t.setObj.posDistributeJudge,callback:function(e){t.$set(t.setObj,"posDistributeJudge",e)},expression:"setObj.posDistributeJudge"}},[t._v("分配给主门店店长")]),t._v(" "),s("el-radio",{attrs:{label:1},model:{value:t.setObj.posDistributeJudge,callback:function(e){t.$set(t.setObj,"posDistributeJudge",e)},expression:"setObj.posDistributeJudge"}},[t._v("分配给专属导购")])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("话务任务放弃前提")]),t._v(" "),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),s("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应")])],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"},[s("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"set-line-item"},[e("span",{staticClass:"set-line-item_title font-14 color-606266"},[this._v("话务任务下发")]),this._v(" "),e("span",{staticClass:"set-line-item_title font-14 color-606266"},[this._v("微信会员")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"set-line-item"},[e("span",{staticClass:"set-line-item_title font-14 color-606266"}),this._v(" "),e("span",{staticClass:"set-line-item_title font-14 color-606266 w-320"},[this._v("POS会员 "),e("i",{staticClass:"font-10 color-909399"},[this._v("注:若无pos会员,请忽略此项设置")])])])}]};var u=s("VU/8")(c,d,!1,function(t){s("KFm9")},"data-v-6ce6cbe1",null);e.default=u.exports},KFm9:function(t,e){}});
\ No newline at end of file
webpackJsonp([62],{"4H54":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("2eFk"),i=s("Ke24"),n=s("PI0u"),o=s("Ch4/"),l=s("3E4D"),r=s("P9l9"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeId:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"话务任务设置"}],setObj:{taskType:1,overDayJudge:"",distributeTypeJudge:"",posDistributeJudge:"",giveUpJudge:""}}},computed:{},methods:{saveSet:Object(n.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={brandId:t.activeBrand,taskType:1,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge,posDistributeJudge:t.setObj.posDistributeJudge};Object(r.e)("/haoban-app-tel-task-web/setting/save-task-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):l.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={brandId:t.activeBrand,taskType:1};Object(r.e)("/haoban-app-tel-task-web/setting/find-task-setting",e).then(function(e){var s=e.data;1!=s.errorCode?o.a.errorMsg(s):t.setObj=s.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","2"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:a.a,commonDetailTop:i.a}},d={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"font-16 color-606266 m-b-20 font-w-500"},[t._v("话务任务逾期时间设置")]),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("话务任务下发")]),t._v(" "),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),s("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),t._m(0),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266"}),t._v(" "),s("el-radio",{attrs:{label:0},model:{value:t.setObj.distributeTypeJudge,callback:function(e){t.$set(t.setObj,"distributeTypeJudge",e)},expression:"setObj.distributeTypeJudge"}},[t._v("分配给主门店店长")]),t._v(" "),s("el-radio",{attrs:{label:1},model:{value:t.setObj.distributeTypeJudge,callback:function(e){t.$set(t.setObj,"distributeTypeJudge",e)},expression:"setObj.distributeTypeJudge"}},[t._v("分配给专属导购")])],1),t._v(" "),t._m(1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266"}),t._v(" "),s("el-radio",{attrs:{label:0},model:{value:t.setObj.posDistributeJudge,callback:function(e){t.$set(t.setObj,"posDistributeJudge",e)},expression:"setObj.posDistributeJudge"}},[t._v("分配给主门店店长")]),t._v(" "),s("el-radio",{attrs:{label:1},model:{value:t.setObj.posDistributeJudge,callback:function(e){t.$set(t.setObj,"posDistributeJudge",e)},expression:"setObj.posDistributeJudge"}},[t._v("分配给专属导购")])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("话务任务放弃前提")]),t._v(" "),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),s("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应")])],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"},[s("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"set-line-item"},[e("span",{staticClass:"set-line-item_title font-14 color-606266"},[this._v("话务任务下发")]),this._v(" "),e("span",{staticClass:"set-line-item_title font-14 color-606266"},[this._v("微信会员")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"set-line-item"},[e("span",{staticClass:"set-line-item_title font-14 color-606266"}),this._v(" "),e("span",{staticClass:"set-line-item_title font-14 color-606266 w-320"},[this._v("POS会员 "),e("i",{staticClass:"font-10 color-909399"},[this._v("注:若无pos会员,请忽略此项设置")])])])}]};var u=s("VU/8")(c,d,!1,function(t){s("KFm9")},"data-v-6ce6cbe1",null);e.default=u.exports},KFm9:function(t,e){}});
\ No newline at end of file
webpackJsonp([62],{FdYP:function(t,e){},H8Kg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var c=i("VU/8")(s,a,!1,function(t){i("FdYP")},"data-v-6c75d59f",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([63],{FdYP:function(t,e){},H8Kg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var c=i("VU/8")(s,a,!1,function(t){i("FdYP")},"data-v-6c75d59f",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([63],{IKv2:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),o=r.n(a),n=r("2eFk"),s=r("Ke24"),c=r("PI0u"),l=r("Ch4/"),i=r("3E4D"),u=r("P9l9"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"指标管理",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"2",name:"月指标",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"3",name:"门店月指标",path:"storeMonthTask?yearMonth="+this.$route.query.yearMonth+"&appIcon="+this.$route.query.appIcon},{id:"4",name:"导购月指标详情",path:""}],activeId:"4",tableData:[],performanceSum:"",clerkObj:{storeId:"",storeName:"",yearMonth:"",settingAble:1,storePerformance:""},equalFlag:!0}},computed:{},methods:{inputPerformance:function(e,t,r){r.clerkPerformance=Number(r.clerkPerformance.replace(/[^\d.]/g,""))?r.clerkPerformance.replace(/[^\d+(.\d+)]/g,""):"",r.clerkPerformance=Number(r.clerkPerformance).toFixed(2);var a=0;this.tableData.forEach(function(e){a+=Number(e.clerkPerformance)}),this.performanceSum=Number(a).toFixed(2),this.diffData()},inputMonthPerformance:function(e){this.clerkObj.storePerformance=Number(this.clerkObj.storePerformance.replace(/[^\d.]/g,""))?this.clerkObj.storePerformance.replace(/[^\d+(.\d+)]/g,""):"",this.clerkObj.storePerformance=Number(this.clerkObj.storePerformance).toFixed(2),this.diffData()},diffData:function(){var e=Number(this.performanceSum)==Number(this.clerkObj.storePerformance);return this.equalFlag=!!e,e},saveSet:Object(c.a)(function(){if(!this.diffData())return!1;if(""==this.clerkObj.storePerformance)return this.$message.error({duration:1e3,message:"请输入门店月指标"}),!1;var e={clerkPerformanceList:this.tableData,storePerformance:this.clerkObj.storePerformance};this.postSave(e)},500),postSave:function(e){var t=this,r={brandId:t.activeBrand,storeId:t.clerkObj.storeId,yearMonth:t.clerkObj.yearMonth,performance:o()(e)};Object(u.e)("/haoban-app-performance-web/performance/save-clerk-month-performance",r).then(function(e){var t=e.data;1!=t.errorCode?l.a.errorMsg(t):i.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this,t={brandId:e.activeBrand,storeId:e.clerkObj.storeId,yearMonth:e.clerkObj.yearMonth};Object(u.e)("/haoban-app-performance-web/performance/query-clerk-month-performance",t).then(function(t){var r=t.data;if(1==r.errorCode){r.result.clerkPerformanceList&&r.result.clerkPerformanceList.length&&(r.result.clerkPerformanceList.forEach(function(e){e.clerkPerformance=Number(e.clerkPerformance).toFixed(2)}),e.tableData=r.result.clerkPerformanceList||[]),r.result.storePerformance=Number(r.result.storePerformance).toFixed(2),e.clerkObj=r.result;var a=0;return e.tableData.forEach(function(e){a+=Number(e.clerkPerformance)}),void(e.performanceSum=Number(a).toFixed(2))}l.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.clerkObj.yearMonth=this.$route.query.yearMonth,this.clerkObj.storeId=this.$route.query.storeId,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","11"),this.brandId&&(this.clerkObj.yearMonth=this.$route.query.yearMonth,this.clerkObj.storeId=this.$route.query.storeId,this.getData())},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonDetailTop:s.a}},m={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-detail-wrap common-right-wrap"},[r("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),r("div",{staticClass:"task-set-content boder-box"},[r("div",{staticClass:"saler-set-title flex flex-space-between m-b-15"},[r("div",{staticClass:"saler-set-title_left"},[r("span",[e._v(e._s(e.clerkObj.yearMonth))]),r("span",{staticClass:"p-l-18"},[e._v(e._s(e.clerkObj.storeName)+"门店导购月指标详情")])]),e._v(" "),r("div",{staticClass:"saler-set-title_right"},[r("span",[e._v("门店月指标:")]),r("el-input",{staticClass:"w-105 p-l-8",attrs:{placeholder:"请输入指标值",disabled:0==e.clerkObj.settingAble},on:{blur:function(t){return e.inputMonthPerformance(t)}},model:{value:e.clerkObj.storePerformance,callback:function(t){e.$set(e.clerkObj,"storePerformance",t)},expression:"clerkObj.storePerformance"}})],1)]),e._v(" "),r("div",{staticClass:"saler-set-table"},[r("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[r("el-table-column",{attrs:{label:"导购"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.clerkName))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"月指标"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("el-input",{staticClass:"w-105 p-l-8",attrs:{placeholder:"请输入指标值",disabled:0==e.clerkObj.settingAble},on:{blur:function(r){return e.inputPerformance(r,t.$index,t.row)}},model:{value:t.row.clerkPerformance,callback:function(r){e.$set(t.row,"clerkPerformance",r)},expression:"scope.row.clerkPerformance"}})],1)]}}])})],1)],1),e._v(" "),r("div",{staticClass:"task-set-save text-center m-t-30"},[r("span",{staticClass:"saler-set-sum"},[e._v("导购总计:"),r("span",{class:["font-20",e.equalFlag?"color-1890ff":"color-f5222d"]},[e._v(e._s(e.performanceSum))])]),e._v(" "),1==e.clerkObj.settingAble?r("el-button",{attrs:{disabled:!e.equalFlag,type:"primary"},on:{click:e.saveSet}},[e._v("确 认")]):e._e(),e._v(" "),e.equalFlag?e._e():r("span",{staticClass:"font-14 color-f5222d p-l-24"},[e._v("请确保导购月指标总计 = 门店月指标")])],1)])],1)},staticRenderFns:[]};var d=r("VU/8")(f,m,!1,function(e){r("Uf20")},"data-v-69b1dd14",null);t.default=d.exports},Uf20:function(e,t){}});
\ No newline at end of file
webpackJsonp([64],{IKv2:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),o=r.n(a),n=r("2eFk"),s=r("Ke24"),c=r("PI0u"),l=r("Ch4/"),i=r("3E4D"),u=r("P9l9"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"指标管理",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"2",name:"月指标",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"3",name:"门店月指标",path:"storeMonthTask?yearMonth="+this.$route.query.yearMonth+"&appIcon="+this.$route.query.appIcon},{id:"4",name:"导购月指标详情",path:""}],activeId:"4",tableData:[],performanceSum:"",clerkObj:{storeId:"",storeName:"",yearMonth:"",settingAble:1,storePerformance:""},equalFlag:!0}},computed:{},methods:{inputPerformance:function(e,t,r){r.clerkPerformance=Number(r.clerkPerformance.replace(/[^\d.]/g,""))?r.clerkPerformance.replace(/[^\d+(.\d+)]/g,""):"",r.clerkPerformance=Number(r.clerkPerformance).toFixed(2);var a=0;this.tableData.forEach(function(e){a+=Number(e.clerkPerformance)}),this.performanceSum=Number(a).toFixed(2),this.diffData()},inputMonthPerformance:function(e){this.clerkObj.storePerformance=Number(this.clerkObj.storePerformance.replace(/[^\d.]/g,""))?this.clerkObj.storePerformance.replace(/[^\d+(.\d+)]/g,""):"",this.clerkObj.storePerformance=Number(this.clerkObj.storePerformance).toFixed(2),this.diffData()},diffData:function(){var e=Number(this.performanceSum)==Number(this.clerkObj.storePerformance);return this.equalFlag=!!e,e},saveSet:Object(c.a)(function(){if(!this.diffData())return!1;if(""==this.clerkObj.storePerformance)return this.$message.error({duration:1e3,message:"请输入门店月指标"}),!1;var e={clerkPerformanceList:this.tableData,storePerformance:this.clerkObj.storePerformance};this.postSave(e)},500),postSave:function(e){var t=this,r={brandId:t.activeBrand,storeId:t.clerkObj.storeId,yearMonth:t.clerkObj.yearMonth,performance:o()(e)};Object(u.e)("/haoban-app-performance-web/performance/save-clerk-month-performance",r).then(function(e){var t=e.data;1!=t.errorCode?l.a.errorMsg(t):i.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this,t={brandId:e.activeBrand,storeId:e.clerkObj.storeId,yearMonth:e.clerkObj.yearMonth};Object(u.e)("/haoban-app-performance-web/performance/query-clerk-month-performance",t).then(function(t){var r=t.data;if(1==r.errorCode){r.result.clerkPerformanceList&&r.result.clerkPerformanceList.length&&(r.result.clerkPerformanceList.forEach(function(e){e.clerkPerformance=Number(e.clerkPerformance).toFixed(2)}),e.tableData=r.result.clerkPerformanceList||[]),r.result.storePerformance=Number(r.result.storePerformance).toFixed(2),e.clerkObj=r.result;var a=0;return e.tableData.forEach(function(e){a+=Number(e.clerkPerformance)}),void(e.performanceSum=Number(a).toFixed(2))}l.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.clerkObj.yearMonth=this.$route.query.yearMonth,this.clerkObj.storeId=this.$route.query.storeId,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","11"),this.brandId&&(this.clerkObj.yearMonth=this.$route.query.yearMonth,this.clerkObj.storeId=this.$route.query.storeId,this.getData())},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonDetailTop:s.a}},m={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-detail-wrap common-right-wrap"},[r("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),r("div",{staticClass:"task-set-content boder-box"},[r("div",{staticClass:"saler-set-title flex flex-space-between m-b-15"},[r("div",{staticClass:"saler-set-title_left"},[r("span",[e._v(e._s(e.clerkObj.yearMonth))]),r("span",{staticClass:"p-l-18"},[e._v(e._s(e.clerkObj.storeName)+"门店导购月指标详情")])]),e._v(" "),r("div",{staticClass:"saler-set-title_right"},[r("span",[e._v("门店月指标:")]),r("el-input",{staticClass:"w-105 p-l-8",attrs:{placeholder:"请输入指标值",disabled:0==e.clerkObj.settingAble},on:{blur:function(t){return e.inputMonthPerformance(t)}},model:{value:e.clerkObj.storePerformance,callback:function(t){e.$set(e.clerkObj,"storePerformance",t)},expression:"clerkObj.storePerformance"}})],1)]),e._v(" "),r("div",{staticClass:"saler-set-table"},[r("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[r("el-table-column",{attrs:{label:"导购"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.clerkName))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"月指标"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("el-input",{staticClass:"w-105 p-l-8",attrs:{placeholder:"请输入指标值",disabled:0==e.clerkObj.settingAble},on:{blur:function(r){return e.inputPerformance(r,t.$index,t.row)}},model:{value:t.row.clerkPerformance,callback:function(r){e.$set(t.row,"clerkPerformance",r)},expression:"scope.row.clerkPerformance"}})],1)]}}])})],1)],1),e._v(" "),r("div",{staticClass:"task-set-save text-center m-t-30"},[r("span",{staticClass:"saler-set-sum"},[e._v("导购总计:"),r("span",{class:["font-20",e.equalFlag?"color-1890ff":"color-f5222d"]},[e._v(e._s(e.performanceSum))])]),e._v(" "),1==e.clerkObj.settingAble?r("el-button",{attrs:{disabled:!e.equalFlag,type:"primary"},on:{click:e.saveSet}},[e._v("确 认")]):e._e(),e._v(" "),e.equalFlag?e._e():r("span",{staticClass:"font-14 color-f5222d p-l-24"},[e._v("请确保导购月指标总计 = 门店月指标")])],1)])],1)},staticRenderFns:[]};var d=r("VU/8")(f,m,!1,function(e){r("Uf20")},"data-v-69b1dd14",null);t.default=d.exports},Uf20:function(e,t){}});
\ No newline at end of file
webpackJsonp([64],{SxT2:function(e,t){},kCy7:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("Ke24"),n=a("Ie7z"),i=a("P9l9"),s=a("PI0u"),r=a("Ch4/"),c={name:"noticeList",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){var e=this;return{topMenuData:[{id:"1",name:"签到记录"}],activeId:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,conditionObj:{keyword:"",storeGroup:[],signStatus:"",choiceDate:[]},signStatusOptions:[{value:"",label:"所有状态"},{value:"0",label:"签到"},{value:"1",label:"签退"}],choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,o=t.minDate;e.choiceDateCopy=[o.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-2592e6,o=e.choiceDateCopy[0]+2592e6;return t.getTime()<a||t.getTime()>o||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},tableData:[],pageSize:20,currentPage:1,totalCount:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},filters:{formatTimeYMD:function(e){var t=new Date(e),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a;return t.getFullYear()+"-"+n+"-"+o},formatTimeHMS:function(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.activeBrand=this.brandId;var t=new Date,a=t.getTime()-2592e6,o=t.getFullYear(),n=t.getMonth()+1,i=t.getDate()<10?"0"+t.getDate():t.getDate(),s=n<10?"0"+n:n,r=new Date(a),c=r.getFullYear(),l=r.getMonth()+1,u=r.getDate()<10?"0"+r.getDate():r.getDate(),d=l<10?"0"+l:l;e.conditionObj.choiceDate=[c+"-"+d+"-"+u,o+"-"+s+"-"+i],e.brandId&&e.$nextTick(function(t){e.getTableList()})},methods:{showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},getTableList:function(){var e=this;e.loading=!0;var t=[],a=[],o=["星期天","星期一","星期二","星期三","星期四","星期五","星期六"];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)}),e.conditionObj.choiceDate||(e.conditionObj.choiceDate=[]);var n={haobanEnterpriseId:localStorage.getItem("userInfo")?JSON.parse(localStorage.getItem("userInfo")).enterpriseId:"",search:e.conditionObj.keyword||"",haobanBrandId:e.activeBrand,storeIds:a.join(",")||"",groupIds:t.join(",")||"",signType:e.conditionObj.signStatus||"",startDate:e.conditionObj&&e.conditionObj.choiceDate[0]?e.conditionObj.choiceDate[0]:"",endDate:e.conditionObj&&e.conditionObj.choiceDate[1]?e.conditionObj.choiceDate[1]:"",pageNum:e.currentPage,pageSize:e.pageSize};Object(i.a)("/haoban-app-sign-web/sign/sign-list",n).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return a.result.list.forEach(function(e){e.week=o[new Date(e.signDay).getDay()]}),e.tableData=a.result.list||[],e.totalCount=a.result.pageInfo.total,!1;r.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.choiceDate=[]),this.currentPage=1,this.getTableList()},searchPeople:Object(s.a)(function(e){this.currentPage,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},exportData:function(){if(!this.conditionObj.choiceDate||!this.conditionObj.choiceDate[0]||!this.conditionObj.choiceDate[1])return this.$message.error({duration:1e3,message:"请选择日期区间"}),!1;this.postExportData()},postExportData:function(){var e=this,t=[],a=[];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var o={haobanEnterpriseId:localStorage.getItem("userInfo")?JSON.parse(localStorage.getItem("userInfo")).enterpriseId:"",search:e.conditionObj.keyword||"",storeIds:a.join(",")||"",groupIds:t.join(",")||"",signType:e.conditionObj.signStatus||"",startDate:e.conditionObj.choiceDate[0]?e.conditionObj.choiceDate[0]:"",endDate:e.conditionObj.choiceDate[1]?e.conditionObj.choiceDate[1]:"",haobanBrandId:e.activeBrand};Object(i.b)("/haoban-app-sign-web/sign/export-sign-list",o).then(function(e){if(!e.data)return r.a.errorMsg("暂无数据"),!1;var t=new Blob([e.data],{type:"application/vnd.ms-excel"}),a=o.startDate.replace(/-/g,"")+"-"+o.endDate.replace(/-/g,"")+"签到报表.xlsx",n=document.createElement("a");n.download=a,n.style.display="none",n.href=URL.createObjectURL(t),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},components:{vueSelectStore:n.a,commonDetailTop:o.a}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"notice-list-wrap"},[a("div",{staticClass:"notice-list"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"notice-list-table"},[a("div",{staticClass:"search-wrap"},[a("el-input",{staticClass:"search-input",attrs:{clearable:"",placeholder:"请输入姓名/员工代码","prefix-icon":"el-icon-search"},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.searchPeople(a);var a}},model:{value:e.conditionObj.keyword,callback:function(t){e.$set(e.conditionObj,"keyword",t)},expression:"conditionObj.keyword"}}),e._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e.conditionObj.storeGroup.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc"},[e._v("请选择门店分组")]),e._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.conditionObj.storeGroup,function(t,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(o,e.conditionObj.storeGroup)}}})])]})],2)])])])]),e._v(" "),a("el-select",{staticClass:"w-112 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.signStatus,callback:function(t){e.$set(e.conditionObj,"signStatus",t)},expression:"conditionObj.signStatus"}},e._l(e.signStatusOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-date-picker",{staticClass:"search-date",attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",editable:!1,"picker-options":e.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.choiceDate,callback:function(t){e.$set(e.conditionObj,"choiceDate",t)},expression:"conditionObj.choiceDate"}}),e._v(" "),a("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:e.exportData}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"storeName",label:"门店名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"姓名","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.clerkName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"员工代码","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.clerkCode)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.signType?"签退":"签到")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.signDay?a("div",{staticClass:"time-wrap"},[a("p",{class:["星期六"==t.row.week||"星期天"==t.row.week?"color-f56c6c":""]},[e._v(e._s(e._f("formatTimeYMD")(t.row.signDay))+" "+e._s(t.row.week))]),e._v(" "),a("p",[e._v(e._s(e._f("formatTimeHMS")(t.row.signTime)))])]):a("div",[e._v("--")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"打卡坐标","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.signLongitude||"-")+" "),t.row.signLatitude?a("span",[e._v(",")]):e._e(),e._v(" "+e._s(t.row.signLatitude||"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店坐标","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.storeLongitude||"-")+" "),t.row.storeLatitude?a("span",[e._v(",")]):e._e(),e._v(" "+e._s(t.row.storeLatitude||"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"距离","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.distance||"--")+"\n ")]}}])})],1),e._v(" "),e.totalCount?a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.currentPage,layout:"total, sizes, prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var u=a("VU/8")(c,l,!1,function(e){a("SxT2")},"data-v-68394700",null);t.default=u.exports}});
\ No newline at end of file
webpackJsonp([65],{SxT2:function(e,t){},kCy7:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("Ke24"),n=a("Ie7z"),i=a("P9l9"),s=a("PI0u"),r=a("Ch4/"),c={name:"noticeList",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){var e=this;return{topMenuData:[{id:"1",name:"签到记录"}],activeId:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,conditionObj:{keyword:"",storeGroup:[],signStatus:"",choiceDate:[]},signStatusOptions:[{value:"",label:"所有状态"},{value:"0",label:"签到"},{value:"1",label:"签退"}],choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,o=t.minDate;e.choiceDateCopy=[o.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-2592e6,o=e.choiceDateCopy[0]+2592e6;return t.getTime()<a||t.getTime()>o||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},tableData:[],pageSize:20,currentPage:1,totalCount:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},filters:{formatTimeYMD:function(e){var t=new Date(e),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a;return t.getFullYear()+"-"+n+"-"+o},formatTimeHMS:function(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.activeBrand=this.brandId;var t=new Date,a=t.getTime()-2592e6,o=t.getFullYear(),n=t.getMonth()+1,i=t.getDate()<10?"0"+t.getDate():t.getDate(),s=n<10?"0"+n:n,r=new Date(a),c=r.getFullYear(),l=r.getMonth()+1,u=r.getDate()<10?"0"+r.getDate():r.getDate(),d=l<10?"0"+l:l;e.conditionObj.choiceDate=[c+"-"+d+"-"+u,o+"-"+s+"-"+i],e.brandId&&e.$nextTick(function(t){e.getTableList()})},methods:{showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},getTableList:function(){var e=this;e.loading=!0;var t=[],a=[],o=["星期天","星期一","星期二","星期三","星期四","星期五","星期六"];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)}),e.conditionObj.choiceDate||(e.conditionObj.choiceDate=[]);var n={haobanEnterpriseId:localStorage.getItem("userInfo")?JSON.parse(localStorage.getItem("userInfo")).enterpriseId:"",search:e.conditionObj.keyword||"",haobanBrandId:e.activeBrand,storeIds:a.join(",")||"",groupIds:t.join(",")||"",signType:e.conditionObj.signStatus||"",startDate:e.conditionObj&&e.conditionObj.choiceDate[0]?e.conditionObj.choiceDate[0]:"",endDate:e.conditionObj&&e.conditionObj.choiceDate[1]?e.conditionObj.choiceDate[1]:"",pageNum:e.currentPage,pageSize:e.pageSize};Object(i.a)("/haoban-app-sign-web/sign/sign-list",n).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return a.result.list.forEach(function(e){e.week=o[new Date(e.signDay).getDay()]}),e.tableData=a.result.list||[],e.totalCount=a.result.pageInfo.total,!1;r.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.choiceDate=[]),this.currentPage=1,this.getTableList()},searchPeople:Object(s.a)(function(e){this.currentPage,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},exportData:function(){if(!this.conditionObj.choiceDate||!this.conditionObj.choiceDate[0]||!this.conditionObj.choiceDate[1])return this.$message.error({duration:1e3,message:"请选择日期区间"}),!1;this.postExportData()},postExportData:function(){var e=this,t=[],a=[];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var o={haobanEnterpriseId:localStorage.getItem("userInfo")?JSON.parse(localStorage.getItem("userInfo")).enterpriseId:"",search:e.conditionObj.keyword||"",storeIds:a.join(",")||"",groupIds:t.join(",")||"",signType:e.conditionObj.signStatus||"",startDate:e.conditionObj.choiceDate[0]?e.conditionObj.choiceDate[0]:"",endDate:e.conditionObj.choiceDate[1]?e.conditionObj.choiceDate[1]:"",haobanBrandId:e.activeBrand};Object(i.b)("/haoban-app-sign-web/sign/export-sign-list",o).then(function(e){if(!e.data)return r.a.errorMsg("暂无数据"),!1;var t=new Blob([e.data],{type:"application/vnd.ms-excel"}),a=o.startDate.replace(/-/g,"")+"-"+o.endDate.replace(/-/g,"")+"签到报表.xlsx",n=document.createElement("a");n.download=a,n.style.display="none",n.href=URL.createObjectURL(t),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},components:{vueSelectStore:n.a,commonDetailTop:o.a}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"notice-list-wrap"},[a("div",{staticClass:"notice-list"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"notice-list-table"},[a("div",{staticClass:"search-wrap"},[a("el-input",{staticClass:"search-input",attrs:{clearable:"",placeholder:"请输入姓名/员工代码","prefix-icon":"el-icon-search"},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.searchPeople(a);var a}},model:{value:e.conditionObj.keyword,callback:function(t){e.$set(e.conditionObj,"keyword",t)},expression:"conditionObj.keyword"}}),e._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e.conditionObj.storeGroup.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc"},[e._v("请选择门店分组")]),e._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.conditionObj.storeGroup,function(t,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(o,e.conditionObj.storeGroup)}}})])]})],2)])])])]),e._v(" "),a("el-select",{staticClass:"w-112 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.signStatus,callback:function(t){e.$set(e.conditionObj,"signStatus",t)},expression:"conditionObj.signStatus"}},e._l(e.signStatusOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-date-picker",{staticClass:"search-date",attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",editable:!1,"picker-options":e.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.choiceDate,callback:function(t){e.$set(e.conditionObj,"choiceDate",t)},expression:"conditionObj.choiceDate"}}),e._v(" "),a("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:e.exportData}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"storeName",label:"门店名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"姓名","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.clerkName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"员工代码","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.clerkCode)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.signType?"签退":"签到")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.signDay?a("div",{staticClass:"time-wrap"},[a("p",{class:["星期六"==t.row.week||"星期天"==t.row.week?"color-f56c6c":""]},[e._v(e._s(e._f("formatTimeYMD")(t.row.signDay))+" "+e._s(t.row.week))]),e._v(" "),a("p",[e._v(e._s(e._f("formatTimeHMS")(t.row.signTime)))])]):a("div",[e._v("--")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"打卡坐标","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.signLongitude||"-")+" "),t.row.signLatitude?a("span",[e._v(",")]):e._e(),e._v(" "+e._s(t.row.signLatitude||"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店坐标","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.storeLongitude||"-")+" "),t.row.storeLatitude?a("span",[e._v(",")]):e._e(),e._v(" "+e._s(t.row.storeLatitude||"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"距离","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.distance||"--")+"\n ")]}}])})],1),e._v(" "),e.totalCount?a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.currentPage,layout:"total, sizes, prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var u=a("VU/8")(c,l,!1,function(e){a("SxT2")},"data-v-68394700",null);t.default=u.exports}});
\ No newline at end of file
webpackJsonp([65],{"5nNU":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),l=a("2eFk"),i=a("Ke24"),s=a("LRn8"),r=a("fPyK"),c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"2",activeBrand:this.brandId,topMenuData:[{id:"1",name:"云日报记录",path:"/dailyRecord?appIcon="+this.$route.query.appIcon},{id:"2",name:"日报详情",path:""}],selectRadio:0,showDialog:!1,conditionObj:{completed:"",overdue:""},completedOptions:[{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskId})||"",overdue:t.conditionObj.overdue||"",completed:t.conditionObj.completed||"",reason:e.reason,brandId:t.activeBrand,chooseAll:t.selectRadio};Object(c.e)("/haoban-app-daily-web/daily/batch-delete-store-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,o={taskId:t.taskId};Object(c.a)("/haoban-app-daily-web/daily/delete-task-items",o).then(function(t){var o=t.data;if(1==o.errorCode)return u.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);d.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=""+t.taskId;this.$refs.qrcodePreview.qrcode(a,"daily-detail"),this.dialogVisible=!0},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",overdue:t.conditionObj.overdue||"",completed:t.conditionObj.completed||"",currentPage:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(c.a)("/haoban-app-daily-web/daily/page-store-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","1"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:l.a,commonDetailTop:i.a,multipleDel:s.a,qrcodeDialog:r.a}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-105",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{class:["image-wrap flex flex-align-center flex-pack-center",t.row.headImgUrl?"bg-eceaeb":"bg-82c5ff"]},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:""}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16"},[a("p",{staticClass:"font-14 color-303133"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v(e._s(t.row.clerkPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handlePreview(t.$index,t.row)}}},[e._v("预览")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var p=a("VU/8")(f,m,!1,function(e){a("KPe4")},"data-v-656927f2",null);t.default=p.exports},KPe4:function(e,t){}});
\ No newline at end of file
webpackJsonp([66],{"5nNU":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),l=a("2eFk"),i=a("Ke24"),s=a("LRn8"),r=a("fPyK"),c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"2",activeBrand:this.brandId,topMenuData:[{id:"1",name:"云日报记录",path:"/dailyRecord?appIcon="+this.$route.query.appIcon},{id:"2",name:"日报详情",path:""}],selectRadio:0,showDialog:!1,conditionObj:{completed:"",overdue:""},completedOptions:[{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskId})||"",overdue:t.conditionObj.overdue||"",completed:t.conditionObj.completed||"",reason:e.reason,brandId:t.activeBrand,chooseAll:t.selectRadio};Object(c.e)("/haoban-app-daily-web/daily/batch-delete-store-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,o={taskId:t.taskId};Object(c.a)("/haoban-app-daily-web/daily/delete-task-items",o).then(function(t){var o=t.data;if(1==o.errorCode)return u.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);d.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=""+t.taskId;this.$refs.qrcodePreview.qrcode(a,"daily-detail"),this.dialogVisible=!0},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",overdue:t.conditionObj.overdue||"",completed:t.conditionObj.completed||"",currentPage:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(c.a)("/haoban-app-daily-web/daily/page-store-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","1"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:l.a,commonDetailTop:i.a,multipleDel:s.a,qrcodeDialog:r.a}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-105",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{class:["image-wrap flex flex-align-center flex-pack-center",t.row.headImgUrl?"bg-eceaeb":"bg-82c5ff"]},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:""}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16"},[a("p",{staticClass:"font-14 color-303133"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v(e._s(t.row.clerkPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handlePreview(t.$index,t.row)}}},[e._v("预览")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var p=a("VU/8")(f,m,!1,function(e){a("KPe4")},"data-v-656927f2",null);t.default=p.exports},KPe4:function(e,t){}});
\ No newline at end of file
webpackJsonp([66],{"53ku":function(t,e){},"av/3":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),o=a("fvdr"),i=a("Qie6"),c={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"企业公告",appIcon:"icon-gonggao",activeSelTab:"1",activeTab:"1",tabListData:[{id:"1",name:"企业公告列表",icon:"",onlyIconActive:!1},{id:"2",name:"新建公告",icon:"",onlyIconActive:!1}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:o.a,commonDetailLeft:i.a}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=a("VU/8")(c,r,!1,function(t){a("53ku")},"data-v-63612582",null);e.default=s.exports}});
\ No newline at end of file
webpackJsonp([67],{"53ku":function(t,e){},"av/3":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),o=a("fvdr"),i=a("Qie6"),c={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"企业公告",appIcon:"icon-gonggao",activeSelTab:"1",activeTab:"1",tabListData:[{id:"1",name:"企业公告列表",icon:"",onlyIconActive:!1},{id:"2",name:"新建公告",icon:"",onlyIconActive:!1}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:o.a,commonDetailLeft:i.a}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=a("VU/8")(c,r,!1,function(t){a("53ku")},"data-v-63612582",null);e.default=s.exports}});
\ No newline at end of file
webpackJsonp([67],{"41Rh":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={name:"contact",components:{topNav:a("3Xzz").a},data:function(){return{rightH:(document.documentElement.clientHeight||document.body.clientHeight)-64+"px",projectName:"haoban-manage-web",collapseFlag:!1,navpath:[{name:"首页",path:"/"},{name:"通讯录",path:""},{name:"企业通讯录"},{name:"行政架构"}]}},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},watch:{$route:{handler:function(t,e){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){},computed:{}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"contact-wrap"},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"contact-wrap__body",style:{height:t.rightH}},[a("vue-office-aside",{ref:"asideMenu",attrs:{projectName:t.projectName,collapseFlag:t.collapseFlag}}),t._v(" "),a("div",{staticClass:"contact-wrap__right",style:{height:t.rightH}},[a("div",{staticClass:"contact-wrap__right__body"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view")],1)],1)])],1)],1)},staticRenderFns:[]};var c=a("VU/8")(o,n,!1,function(t){a("P4oC")},null,null);e.default=c.exports},P4oC:function(t,e){}});
\ No newline at end of file
webpackJsonp([68],{"41Rh":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={name:"contact",components:{topNav:a("3Xzz").a},data:function(){return{rightH:(document.documentElement.clientHeight||document.body.clientHeight)-64+"px",projectName:"haoban-manage-web",collapseFlag:!1,navpath:[{name:"首页",path:"/"},{name:"通讯录",path:""},{name:"企业通讯录"},{name:"行政架构"}]}},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},watch:{$route:{handler:function(t,e){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){},computed:{}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"contact-wrap"},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"contact-wrap__body",style:{height:t.rightH}},[a("vue-office-aside",{ref:"asideMenu",attrs:{projectName:t.projectName,collapseFlag:t.collapseFlag}}),t._v(" "),a("div",{staticClass:"contact-wrap__right",style:{height:t.rightH}},[a("div",{staticClass:"contact-wrap__right__body"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view")],1)],1)])],1)],1)},staticRenderFns:[]};var c=a("VU/8")(o,n,!1,function(t){a("P4oC")},null,null);e.default=c.exports},P4oC:function(t,e){}});
\ No newline at end of file
webpackJsonp([68],{GqD7:function(t,e){},m0O4:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),i=a("fvdr"),c=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"营销素材",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"图文素材",icon:"icon-tuwen"},{tabId:"2",tabName:"纷享素材",icon:"icon-fenxiang"}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("imageText?appIcon="+this.$route.query.appIcon);break;case"2":this.changeRoute("enjoyMaterial?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("GqD7")},"data-v-62341f07",null);e.default=r.exports}});
\ No newline at end of file
webpackJsonp([69],{GqD7:function(t,e){},m0O4:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),i=a("fvdr"),c=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"营销素材",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"图文素材",icon:"icon-tuwen"},{tabId:"2",tabName:"纷享素材",icon:"icon-fenxiang"}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("imageText?appIcon="+this.$route.query.appIcon);break;case"2":this.changeRoute("enjoyMaterial?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("GqD7")},"data-v-62341f07",null);e.default=r.exports}});
\ No newline at end of file
webpackJsonp([7],{"24Tb":function(t,a){},"3NTs":function(t,a){},"5hEQ":function(t,a){},"N7H+":function(t,a){},Nr0j:function(t,a){},P8Dk:function(t,a){},VE2c:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("//Fk"),i=e.n(s),n=e("mvHQ"),r=e.n(n),l=e("DAYN"),o=e.n(l),d=e("Isrn"),c=e("l46T"),v={name:"time-progress",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},p={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"time-progress-contain"},[a("div",[a("p",{staticClass:"build-title title-flag"},[a("span",[this._v(this._s(this.fieldName))])])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"time-progress-item"},[a("div",{staticClass:"time-progress-title"},[a("p",{staticClass:"gic-pull-left"},[this._v("50.00%")]),this._v(" "),a("p",{staticClass:"gic-pull-right"},[a("span",[this._v("15")]),this._v("/"),a("span",[this._v("30")])])]),this._v(" "),a("div",{staticClass:"time-progress-bottom"},[a("div",{staticClass:"time-progress-top"})])])}]};var m=e("VU/8")(v,p,!1,function(t){e("P8Dk")},"data-v-94775b56",null).exports,f={name:"store-performance",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},u={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"data-number-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("table",{staticClass:"data-number-table"},[e("thead",[e("tr",[e("th",{staticClass:"w_22"}),t._v(" "),e("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),e("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("指标")]),t._v(" "),e("td",[t._v("473,960")]),t._v(" "),e("td",[t._v("473,960")])]),t._v(" "),e("tr",[e("td",[t._v("累计销售额")]),t._v(" "),e("td",[t._v("473,960")]),t._v(" "),e("td",[t._v("999,476,960")])]),t._v(" "),e("tr",[e("td",[t._v("达成率")]),t._v(" "),e("td",[t._v("100%")]),t._v(" "),e("td",[t._v("100%")])]),t._v(" "),e("tr",[e("td",[t._v("同比")]),t._v(" "),e("td",[t._v("100%")]),t._v(" "),e("td",[t._v("100%")])]),t._v(" "),e("tr",[e("td",[t._v("环比")]),t._v(" "),e("td",[t._v("100%")]),t._v(" "),e("td",[t._v("100%")])])])])}]};var _=e("VU/8")(f,u,!1,function(t){e("3NTs")},"data-v-05926415",null).exports,h={name:"membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},g={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"data-number-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("table",{staticClass:"data-number-table"},[e("thead",[e("tr",[e("th",{staticClass:"w_22"}),t._v(" "),e("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),e("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{attrs:{colspan:"1"}},[t._v("会员总数")]),t._v(" "),e("td",{attrs:{colspan:"2"}},[t._v("9,000,000")])]),t._v(" "),e("tr",[e("td",[t._v("新增会员")]),t._v(" "),e("td",[t._v("473,960")]),t._v(" "),e("td",[t._v("473,960")])]),t._v(" "),e("tr",[e("td",[t._v("同比")]),t._v(" "),e("td",[t._v("100%")]),t._v(" "),e("td",[t._v("100%")])]),t._v(" "),e("tr",[e("td",[t._v("环比")]),t._v(" "),e("td",[t._v("100%")]),t._v(" "),e("td",[t._v("100%")])])])])}]};var C=e("VU/8")(h,g,!1,function(t){e("24Tb")},"data-v-d11a1ee6",null).exports,b={name:"error-mointor",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},y={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"anomal-monitor-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[t._v(t._s(t.fieldName))])]),t._v(" "),e("div",{staticClass:"progress-contain"},[e("div",{staticClass:"progress-center"},[e("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress1"}},[e("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[e("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),e("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"72.2668",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#1890ff","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),e("div",{staticClass:"progressbar-text progressbar-text-left",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#1890ff","font-size":"16px","font-weight":"600"}},[t._v("75.00%")])]),t._v(" "),e("p",{staticClass:"progress-text"},[t._v("无导购率")])]),t._v(" "),e("div",{staticClass:"progress-center"},[e("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress2"}},[e("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[e("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),e("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"216.8",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#1890ff","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),e("div",{staticClass:"progressbar-text progressbar-text-mid",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#1890ff","font-size":"16px","font-weight":"600"}},[t._v("25.00%")])]),t._v(" "),e("p",{staticClass:"progress-text"},[t._v("退单率")])]),t._v(" "),e("div",{staticClass:"progress-center"},[e("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress3"}},[e("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[e("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),e("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"14.4534",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#1890ff","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),e("div",{staticClass:"progressbar-text progressbar-text-right",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#1890ff","font-size":"16px","font-weight":"600"}},[t._v("95.00%")])]),t._v(" "),e("p",{staticClass:"progress-text"},[t._v("凭空退单率")])])])])},staticRenderFns:[]};var x=e("VU/8")(b,y,!1,function(t){e("Yxui")},"data-v-45ef3720",null).exports,I={name:"old-customer-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},k={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"birth-number-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"data-list"},[e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var w=e("VU/8")(I,k,!1,function(t){e("5hEQ")},"data-v-b55cac32",null).exports,N={name:"birthday-membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},D={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"birth-number-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"data-list"},[e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var E=e("VU/8")(N,D,!1,function(t){e("Nr0j")},"data-v-d4f766de",null).exports,M=e("fPyK"),S=e("3E4D"),$=e("Ch4/"),P=e("PI0u"),R=e("P9l9"),O={name:"staffRecordsTemplate",data:function(){return{activeName:"first",rightName:"first",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},brandId:"",setting:"0",selectKey:"",cardInfo:[],tradeInfo:[],birthdayMemberInfo:[],memberInfo:[],powerInfo:[],currentIndex:0,tempaletDataList:[],setParent:[]}},created:function(){},methods:{returnBack:function(){this.changeRoute("/systemReport?brandId="+this.brandId+"&appIcon="+this.$route.query.appIcon)},clickItem:function(t){},onMove:function(t){var a=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(a.name)&&!a.fixed},itemMoveEnd:function(t){var a=this;a.isDragging=!1,a.selectKey="",a.selectKey=t.clone.dataset.name,a.tempaletDataList.forEach(function(t,e){var s;t.name==a.selectKey&&(s=t.parentCode,a[s].forEach(function(t,e){t.name==a.selectKey&&(t.fixed=!0)}))}),a.selectKey="",a.tempaletDataList=JSON.parse(r()(a.tempaletDataList)),a.$forceUpdate()},selectItem:function(t,a){this.currentIndex=a},deleteItem:function(t,a,e){this.tempaletDataList.splice(e,1),this.currentIndex--,this.currentIndex<=0&&(this.currentIndex=0),this[a].forEach(function(a,e){a.name==t&&(a.fixed=!1)})},changeRoute:function(t){this.$router.push(t)},isRepeat:function(t){var a={};for(var e in t){if(a[t[e]])return!0;a[t[e]]=!0}return!1},checkTag:function(t){var a={filedFlag:!0,filedRepeat:!1},e=[];return t.forEach(function(t,a){e.push(t.title)}),this.isRepeat(e)&&(a.filedRepeat=!0),a},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var a=16*Math.random()|0;return("x"==t?a:3&a|8).toString(16)})},saveAndBack:Object(P.a)(function(t){var a=JSON.parse(r()(this.tempaletDataList));return this.checkTag(a).filedRepeat?(this.$message.error({duration:1e3,message:"字段标题不能重复"}),!1):(a.forEach(function(t,a){t.sort=a}),a.length?void("save"===t?this.saveAllData(a):this.postPreview(a)):(this.$message.error({duration:1e3,message:"请先配置字段"}),!1))},500),saveAllData:function(t){var a=this,e={brandId:a.brandId,templateContent:r()({setting:a.setting,data:t})};Object(R.e)("/haoban-app-daily-web/daily/save-system-template",e).then(function(t){var e=t.data;if(1==e.errorCode)return S.a.showmsg("保存成功","success"),void a.changeRoute("/systemReport?brandId="+a.brandId+"&appIcon="+a.$route.query.appIcon);$.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var a=this,e={templateType:0,brandId:a.brandId,templateContent:r()(t)};Object(R.e)("/haoban-app-daily-web/daily/preview-template",e).then(function(t){var e=t.data,s=JSON.parse(localStorage.getItem("userInfo")).enterpriseId;if(1==e.errorCode){var i=window.location.origin+"/office-mobile/#/systemTemplate?enterpriseId="+s+"&templateId="+e.result+"&brandId="+a.brandId;return a.$refs.qrcodePreview.qrcode(i,"daily-preview"),void(a.dialogVisible=!0)}$.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getAllFields:function(){var t=this;Object(R.a)("/haoban-app-daily-web/daily/get-template-items",{brandId:t.brandId,type:1}).then(function(a){var e=a.data;if(1==e.errorCode){var s=setTimeout(function(){t.handleAllFields(e.result),clearTimeout(s)},200);return!1}$.a.errorMsg(e)}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},handleAllFields:function(t){var a=this;t.forEach(function(t,e){a.setParent.includes(t.name)?t.fixed=!0:t.fixed=!1,1==t.classify&&(t.parentCode="cardInfo",a.cardInfo.push(t)),2==t.classify&&(t.parentCode="tradeInfo",a.tradeInfo.push(t)),3==t.classify&&(t.parentCode="birthdayMemberInfo",a.birthdayMemberInfo.push(t)),4==t.classify&&(t.parentCode="memberInfo",a.memberInfo.push(t)),5==t.classify&&(t.parentCode="powerInfo",a.powerInfo.push(t))})},getInfo:function(){var t=this;Object(R.a)("/haoban-app-daily-web/daily/get-system-template-data",{brandId:t.brandId}).then(function(a){var e=a.data;1!=e.errorCode?$.a.errorMsg(e):e.result&&(t.setting=String(e.result.setting),e.result.data&&e.result.data.length&&t.handleGetInfo(e.result.data))}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},handleGetInfo:function(t){var a=this,e=JSON.parse(r()(t));a.setParent=[],e.forEach(function(t,e){t.fixed=!0,a.setParent.push(t.name)}),a.tempaletDataList=e}},watch:{isDragging:function(t){var a=this;t?a.delayedDragging=!0:a.$nextTick(function(){a.delayedDragging=!1})}},components:{draggable:o.a,AddInput:d.a,limitInput:c.a,timeProgress:m,storePerformance:_,errorMointor:x,membershipData:C,oldCustomerData:w,birthdayMembershipData:E,qrcodeDialog:M.a},mounted:function(){var t=this;t.brandId=t.$route.query.brandId,i.a.all([t.getInfo()]).then(function(a){t.getAllFields()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}}},V={render:function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"template-wrap",style:{height:t.bodyHeight}},[s("div",{staticClass:"template-contain"},[s("div",{staticClass:"template-head"},[t._m(0),t._v(" "),s("div",{staticClass:"template-btns flex-1 flex-r"},[s("el-button",{attrs:{type:"primary",plain:""},on:{click:function(a){t.saveAndBack("preview")}}},[t._v("预 览")]),t._v(" "),s("el-button",{attrs:{type:"primary",plain:""},on:{click:t.returnBack}},[t._v("返 回")]),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(a){t.saveAndBack("save")}}},[t._v("保存并启用")])],1)]),t._v(" "),s("div",{staticClass:"template-body"},[s("div",{staticClass:"template-cell template-cell-l system-template-tab"},[s("el-tabs",{model:{value:t.activeName,callback:function(a){t.activeName=a},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"系统字段",name:"first"}},[s("div",{staticClass:"filed-item-title"},[t._v("卡片")]),t._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.cardInfo,options:t.leftOption,move:t.onMove},on:{start:function(a){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.cardInfo,function(a,e){return s("li",{key:e,class:["compenent-item",1==a.fixed?"fixed-item":""],attrs:{"data-name":a.name,"aria-hidden":"true"},on:{mousedown:function(e){t.clickItem(a)}}},[s("span",[t._v(t._s(a.title))])])}))],1),t._v(" "),s("div",{staticClass:"filed-item-title"},[t._v("交易")]),t._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.tradeInfo,options:t.leftOption,move:t.onMove},on:{start:function(a){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(a,e){return s("li",{key:e,class:["compenent-item",1==a.fixed?"fixed-item":""],attrs:{"data-name":a.name},on:{mousedown:function(e){t.clickItem(a)}}},[s("span",[t._v(t._s(a.title))])])}))],1),t._v(" "),s("div",{staticClass:"filed-item-title"},[t._v("生日会员")]),t._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.birthdayMemberInfo,options:t.leftOption,move:t.onMove},on:{start:function(a){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.birthdayMemberInfo,function(a,e){return s("li",{key:e,class:["compenent-item",1==a.fixed?"fixed-item":""],attrs:{"data-name":a.name},on:{mousedown:function(e){t.clickItem(a)}}},[s("span",[t._v(t._s(a.title))])])}))],1),t._v(" "),s("div",{staticClass:"filed-item-title"},[t._v("会员")]),t._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.memberInfo,options:t.leftOption,move:t.onMove},on:{start:function(a){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.memberInfo,function(a,e){return s("li",{key:e,class:["compenent-item",1==a.fixed?"fixed-item":""],attrs:{"data-name":a.name},on:{mousedown:function(e){t.clickItem(a)}}},[s("span",[t._v(t._s(a.title))])])}))],1),t._v(" "),s("div",{staticClass:"filed-item-title"},[t._v("执行力")]),t._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.powerInfo,options:t.leftOption,move:t.onMove},on:{start:function(a){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.powerInfo,function(a,e){return s("li",{key:e,class:["compenent-item",1==a.fixed?"fixed-item":""],attrs:{"data-name":a.name},on:{mousedown:function(e){t.clickItem(a)}}},[s("span",[t._v(t._s(a.title))])])}))],1)])],1)],1),t._v(" "),s("div",{staticClass:"template-cell template-cell-m"},[s("div",{staticClass:"phone-view"},[s("div",{staticClass:"phone-show-content"},[s("div",{staticClass:"drag-show-content"},[s("div",{staticClass:"view-container"},[s("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[s("img",{staticClass:"templet-null-img",attrs:{src:e("Y7wY")}})]:t._e(),t._v(" "),s("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:t.tempaletDataList,callback:function(a){t.tempaletDataList=a},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(a,e){return s("li",{key:"li1"+e,class:["filed-item",t.currentIndex==e?"active-item":"","li-block"],on:{click:function(s){s.stopPropagation(),t.selectItem(a.fieldCode,e)}}},[s("span",{staticClass:"item-close p-item-close",on:{click:function(s){s.stopPropagation(),t.deleteItem(a.name,a.parentCode,e)}}},[s("i",{staticClass:"el-icon-close"})]),t._v(" "),"1"!=a.classify?s("div",{staticClass:"filed-item-name"},[s("div",{class:["opencard-item-title",a.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(a.title))])]):t._e(),t._v(" "),"timeProgress"==a.name?s("time-progress",{attrs:{fieldName:a.title}}):t._e(),t._v(" "),"dataShop"==a.name?s("store-performance",{attrs:{fieldName:a.title}}):t._e(),t._v(" "),"dataNumber"==a.name?s("membership-data",{attrs:{fieldName:a.title}}):t._e(),t._v(" "),"anomalMonitor"==a.name?s("error-mointor",{attrs:{fieldName:a.title}}):t._e(),t._v(" "),"oldNumber"==a.name?s("old-customer-data",{attrs:{fieldName:a.title}}):t._e(),t._v(" "),"birthNumber"==a.name?s("birthday-membership-data",{attrs:{fieldName:a.title}}):t._e()],1)}))],2)])])])])]),t._v(" "),s("div",{staticClass:"template-cell template-cell-r"},[s("el-tabs",{model:{value:t.rightName,callback:function(a){t.rightName=a},expression:"rightName"}},[s("el-tab-pane",{attrs:{label:"控件设置",name:"first"}},[s("div",{attrs:{id:"edit-box"}},[s("div",{staticClass:"edit-view baby-info-flag baby-info"},[s("div",[s("el-radio",{attrs:{label:"0"},model:{value:t.setting,callback:function(a){t.setting=a},expression:"setting"}},[t._v("定义在日报自定义上报模板上面")])],1),t._v(" "),s("div",{staticClass:"margin-t-15"},[s("el-radio",{attrs:{label:"1"},model:{value:t.setting,callback:function(a){t.setting=a},expression:"setting"}},[t._v("定义在日报自定义上报模板下面")])],1)])])])],1)],1)])]),t._v(" "),s("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(a){t.dialogVisible=a},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"template-title flex-1"},[a("img",{attrs:{src:e("LbEI"),alt:"logo"}}),this._v(" "),a("span",{staticClass:"template-title-span"},[this._v("系统报表设置")])])}]};var L=e("VU/8")(O,V,!1,function(t){e("N7H+")},"data-v-83a2ffc4",null);a.default=L.exports},Yxui:function(t,a){}});
\ No newline at end of file
webpackJsonp([7],{"24Tb":function(t,a){},"3NTs":function(t,a){},"5hEQ":function(t,a){},Nr0j:function(t,a){},P8Dk:function(t,a){},VE2c:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("//Fk"),i=e.n(s),n=e("mvHQ"),r=e.n(n),l=e("DAYN"),o=e.n(l),d=e("Isrn"),c=e("l46T"),v={name:"time-progress",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},p={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"time-progress-contain"},[a("div",[a("p",{staticClass:"build-title title-flag"},[a("span",[this._v(this._s(this.fieldName))])])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"time-progress-item"},[a("div",{staticClass:"time-progress-title"},[a("p",{staticClass:"gic-pull-left"},[this._v("50.00%")]),this._v(" "),a("p",{staticClass:"gic-pull-right"},[a("span",[this._v("15")]),this._v("/"),a("span",[this._v("30")])])]),this._v(" "),a("div",{staticClass:"time-progress-bottom"},[a("div",{staticClass:"time-progress-top"})])])}]};var m=e("VU/8")(v,p,!1,function(t){e("P8Dk")},"data-v-94775b56",null).exports,f={name:"store-performance",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},u={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"data-number-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("table",{staticClass:"data-number-table"},[e("thead",[e("tr",[e("th",{staticClass:"w_22"}),t._v(" "),e("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),e("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("指标")]),t._v(" "),e("td",[t._v("473,960")]),t._v(" "),e("td",[t._v("473,960")])]),t._v(" "),e("tr",[e("td",[t._v("累计销售额")]),t._v(" "),e("td",[t._v("473,960")]),t._v(" "),e("td",[t._v("999,476,960")])]),t._v(" "),e("tr",[e("td",[t._v("达成率")]),t._v(" "),e("td",[t._v("100%")]),t._v(" "),e("td",[t._v("100%")])]),t._v(" "),e("tr",[e("td",[t._v("同比")]),t._v(" "),e("td",[t._v("100%")]),t._v(" "),e("td",[t._v("100%")])]),t._v(" "),e("tr",[e("td",[t._v("环比")]),t._v(" "),e("td",[t._v("100%")]),t._v(" "),e("td",[t._v("100%")])])])])}]};var _=e("VU/8")(f,u,!1,function(t){e("3NTs")},"data-v-05926415",null).exports,h={name:"membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},g={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"data-number-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("table",{staticClass:"data-number-table"},[e("thead",[e("tr",[e("th",{staticClass:"w_22"}),t._v(" "),e("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),e("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{attrs:{colspan:"1"}},[t._v("会员总数")]),t._v(" "),e("td",{attrs:{colspan:"2"}},[t._v("9,000,000")])]),t._v(" "),e("tr",[e("td",[t._v("新增会员")]),t._v(" "),e("td",[t._v("473,960")]),t._v(" "),e("td",[t._v("473,960")])]),t._v(" "),e("tr",[e("td",[t._v("同比")]),t._v(" "),e("td",[t._v("100%")]),t._v(" "),e("td",[t._v("100%")])]),t._v(" "),e("tr",[e("td",[t._v("环比")]),t._v(" "),e("td",[t._v("100%")]),t._v(" "),e("td",[t._v("100%")])])])])}]};var C=e("VU/8")(h,g,!1,function(t){e("24Tb")},"data-v-d11a1ee6",null).exports,b={name:"error-mointor",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},y={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"anomal-monitor-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[t._v(t._s(t.fieldName))])]),t._v(" "),e("div",{staticClass:"progress-contain"},[e("div",{staticClass:"progress-center"},[e("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress1"}},[e("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[e("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),e("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"72.2668",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#1890ff","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),e("div",{staticClass:"progressbar-text progressbar-text-left",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#1890ff","font-size":"16px","font-weight":"600"}},[t._v("75.00%")])]),t._v(" "),e("p",{staticClass:"progress-text"},[t._v("无导购率")])]),t._v(" "),e("div",{staticClass:"progress-center"},[e("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress2"}},[e("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[e("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),e("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"216.8",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#1890ff","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),e("div",{staticClass:"progressbar-text progressbar-text-mid",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#1890ff","font-size":"16px","font-weight":"600"}},[t._v("25.00%")])]),t._v(" "),e("p",{staticClass:"progress-text"},[t._v("退单率")])]),t._v(" "),e("div",{staticClass:"progress-center"},[e("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress3"}},[e("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[e("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),e("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"14.4534",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#1890ff","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),e("div",{staticClass:"progressbar-text progressbar-text-right",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#1890ff","font-size":"16px","font-weight":"600"}},[t._v("95.00%")])]),t._v(" "),e("p",{staticClass:"progress-text"},[t._v("凭空退单率")])])])])},staticRenderFns:[]};var x=e("VU/8")(b,y,!1,function(t){e("Yxui")},"data-v-45ef3720",null).exports,I={name:"old-customer-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},k={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"birth-number-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"data-list"},[e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var w=e("VU/8")(I,k,!1,function(t){e("5hEQ")},"data-v-b55cac32",null).exports,N={name:"birthday-membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},D={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"birth-number-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"data-list"},[e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var E=e("VU/8")(N,D,!1,function(t){e("Nr0j")},"data-v-d4f766de",null).exports,M=e("fPyK"),S=e("3E4D"),$=e("Ch4/"),P=e("PI0u"),R=e("P9l9"),V={name:"staffRecordsTemplate",data:function(){return{activeName:"first",rightName:"first",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},brandId:"",setting:"0",selectKey:"",cardInfo:[],tradeInfo:[],birthdayMemberInfo:[],memberInfo:[],powerInfo:[],currentIndex:0,tempaletDataList:[],setParent:[]}},created:function(){},methods:{returnBack:function(){this.changeRoute("/systemReport?brandId="+this.brandId+"&appIcon="+this.$route.query.appIcon)},clickItem:function(t){},onMove:function(t){var a=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(a.name)&&!a.fixed},itemMoveEnd:function(t){var a=this;a.isDragging=!1,a.selectKey="",a.selectKey=t.clone.dataset.name,a.tempaletDataList.forEach(function(t,e){var s;t.name==a.selectKey&&(s=t.parentCode,a[s].forEach(function(t,e){t.name==a.selectKey&&(t.fixed=!0)}))}),a.selectKey="",a.tempaletDataList=JSON.parse(r()(a.tempaletDataList)),a.$forceUpdate()},selectItem:function(t,a){this.currentIndex=a},deleteItem:function(t,a,e){this.tempaletDataList.splice(e,1),this.currentIndex--,this.currentIndex<=0&&(this.currentIndex=0),this[a].forEach(function(a,e){a.name==t&&(a.fixed=!1)})},changeRoute:function(t){this.$router.push(t)},isRepeat:function(t){var a={};for(var e in t){if(a[t[e]])return!0;a[t[e]]=!0}return!1},checkTag:function(t){var a={filedFlag:!0,filedRepeat:!1},e=[];return t.forEach(function(t,a){e.push(t.title)}),this.isRepeat(e)&&(a.filedRepeat=!0),a},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var a=16*Math.random()|0;return("x"==t?a:3&a|8).toString(16)})},saveAndBack:Object(P.a)(function(t){var a=JSON.parse(r()(this.tempaletDataList));return this.checkTag(a).filedRepeat?(this.$message.error({duration:1e3,message:"字段标题不能重复"}),!1):(a.forEach(function(t,a){t.sort=a}),a.length?void("save"===t?this.saveAllData(a):this.postPreview(a)):(this.$message.error({duration:1e3,message:"请先配置字段"}),!1))},500),saveAllData:function(t){var a=this,e={brandId:a.brandId,templateContent:r()({setting:a.setting,data:t})};Object(R.e)("/haoban-app-daily-web/daily/save-system-template",e).then(function(t){var e=t.data;if(1==e.errorCode)return S.a.showmsg("保存成功","success"),void a.changeRoute("/systemReport?brandId="+a.brandId+"&appIcon="+a.$route.query.appIcon);$.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var a=this,e={templateType:0,brandId:a.brandId,templateContent:r()(t)};Object(R.e)("/haoban-app-daily-web/daily/preview-template",e).then(function(t){var e=t.data,s=JSON.parse(localStorage.getItem("userInfo")).enterpriseId;if(1==e.errorCode){var i=window.location.origin+"/office-mobile/#/systemTemplate?enterpriseId="+s+"&templateId="+e.result+"&brandId="+a.brandId;return a.$refs.qrcodePreview.qrcode(i,"daily-preview"),void(a.dialogVisible=!0)}$.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getAllFields:function(){var t=this;Object(R.a)("/haoban-app-daily-web/daily/get-template-items",{brandId:t.brandId,type:1}).then(function(a){var e=a.data;if(1==e.errorCode){var s=setTimeout(function(){t.handleAllFields(e.result),clearTimeout(s)},200);return!1}$.a.errorMsg(e)}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},handleAllFields:function(t){var a=this;t.forEach(function(t,e){a.setParent.includes(t.name)?t.fixed=!0:t.fixed=!1,1==t.classify&&(t.parentCode="cardInfo",a.cardInfo.push(t)),2==t.classify&&(t.parentCode="tradeInfo",a.tradeInfo.push(t)),3==t.classify&&(t.parentCode="birthdayMemberInfo",a.birthdayMemberInfo.push(t)),4==t.classify&&(t.parentCode="memberInfo",a.memberInfo.push(t)),5==t.classify&&(t.parentCode="powerInfo",a.powerInfo.push(t))})},getInfo:function(){var t=this;Object(R.a)("/haoban-app-daily-web/daily/get-system-template-data",{brandId:t.brandId}).then(function(a){var e=a.data;1!=e.errorCode?$.a.errorMsg(e):e.result&&(t.setting=String(e.result.setting),e.result.data&&e.result.data.length&&t.handleGetInfo(e.result.data))}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},handleGetInfo:function(t){var a=this,e=JSON.parse(r()(t));a.setParent=[],e.forEach(function(t,e){t.fixed=!0,a.setParent.push(t.name)}),a.tempaletDataList=e}},watch:{isDragging:function(t){var a=this;t?a.delayedDragging=!0:a.$nextTick(function(){a.delayedDragging=!1})}},components:{draggable:o.a,AddInput:d.a,limitInput:c.a,timeProgress:m,storePerformance:_,errorMointor:x,membershipData:C,oldCustomerData:w,birthdayMembershipData:E,qrcodeDialog:M.a},mounted:function(){var t=this;t.brandId=t.$route.query.brandId,i.a.all([t.getInfo()]).then(function(a){t.getAllFields()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}}},O={render:function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"template-wrap",style:{height:t.bodyHeight}},[s("div",{staticClass:"template-contain"},[s("div",{staticClass:"template-head"},[t._m(0),t._v(" "),s("div",{staticClass:"template-btns flex-1 flex-r"},[s("el-button",{attrs:{type:"primary",plain:""},on:{click:function(a){t.saveAndBack("preview")}}},[t._v("预 览")]),t._v(" "),s("el-button",{attrs:{type:"primary",plain:""},on:{click:t.returnBack}},[t._v("返 回")]),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(a){t.saveAndBack("save")}}},[t._v("保存并启用")])],1)]),t._v(" "),s("div",{staticClass:"template-body"},[s("div",{staticClass:"template-cell template-cell-l system-template-tab"},[s("el-tabs",{model:{value:t.activeName,callback:function(a){t.activeName=a},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"系统字段",name:"first"}},[s("div",{staticClass:"filed-item-title"},[t._v("卡片")]),t._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.cardInfo,options:t.leftOption,move:t.onMove},on:{start:function(a){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.cardInfo,function(a,e){return s("li",{key:e,class:["compenent-item",1==a.fixed?"fixed-item":""],attrs:{"data-name":a.name,"aria-hidden":"true"},on:{mousedown:function(e){t.clickItem(a)}}},[s("span",[t._v(t._s(a.title))])])}))],1),t._v(" "),s("div",{staticClass:"filed-item-title"},[t._v("交易")]),t._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.tradeInfo,options:t.leftOption,move:t.onMove},on:{start:function(a){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(a,e){return s("li",{key:e,class:["compenent-item",1==a.fixed?"fixed-item":""],attrs:{"data-name":a.name},on:{mousedown:function(e){t.clickItem(a)}}},[s("span",[t._v(t._s(a.title))])])}))],1),t._v(" "),s("div",{staticClass:"filed-item-title"},[t._v("生日会员")]),t._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.birthdayMemberInfo,options:t.leftOption,move:t.onMove},on:{start:function(a){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.birthdayMemberInfo,function(a,e){return s("li",{key:e,class:["compenent-item",1==a.fixed?"fixed-item":""],attrs:{"data-name":a.name},on:{mousedown:function(e){t.clickItem(a)}}},[s("span",[t._v(t._s(a.title))])])}))],1),t._v(" "),s("div",{staticClass:"filed-item-title"},[t._v("会员")]),t._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.memberInfo,options:t.leftOption,move:t.onMove},on:{start:function(a){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.memberInfo,function(a,e){return s("li",{key:e,class:["compenent-item",1==a.fixed?"fixed-item":""],attrs:{"data-name":a.name},on:{mousedown:function(e){t.clickItem(a)}}},[s("span",[t._v(t._s(a.title))])])}))],1),t._v(" "),s("div",{staticClass:"filed-item-title"},[t._v("执行力")]),t._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.powerInfo,options:t.leftOption,move:t.onMove},on:{start:function(a){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.powerInfo,function(a,e){return s("li",{key:e,class:["compenent-item",1==a.fixed?"fixed-item":""],attrs:{"data-name":a.name},on:{mousedown:function(e){t.clickItem(a)}}},[s("span",[t._v(t._s(a.title))])])}))],1)])],1)],1),t._v(" "),s("div",{staticClass:"template-cell template-cell-m"},[s("div",{staticClass:"phone-view"},[s("div",{staticClass:"phone-show-content"},[s("div",{staticClass:"drag-show-content"},[s("div",{staticClass:"view-container"},[s("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[s("img",{staticClass:"templet-null-img",attrs:{src:e("Y7wY")}})]:t._e(),t._v(" "),s("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:t.tempaletDataList,callback:function(a){t.tempaletDataList=a},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(a,e){return s("li",{key:"li1"+e,class:["filed-item",t.currentIndex==e?"active-item":"","li-block"],on:{click:function(s){s.stopPropagation(),t.selectItem(a.fieldCode,e)}}},[s("span",{staticClass:"item-close p-item-close",on:{click:function(s){s.stopPropagation(),t.deleteItem(a.name,a.parentCode,e)}}},[s("i",{staticClass:"el-icon-close"})]),t._v(" "),"1"!=a.classify?s("div",{staticClass:"filed-item-name"},[s("div",{class:["opencard-item-title",a.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(a.title))])]):t._e(),t._v(" "),"timeProgress"==a.name?s("time-progress",{attrs:{fieldName:a.title}}):t._e(),t._v(" "),"dataShop"==a.name?s("store-performance",{attrs:{fieldName:a.title}}):t._e(),t._v(" "),"dataNumber"==a.name?s("membership-data",{attrs:{fieldName:a.title}}):t._e(),t._v(" "),"anomalMonitor"==a.name?s("error-mointor",{attrs:{fieldName:a.title}}):t._e(),t._v(" "),"oldNumber"==a.name?s("old-customer-data",{attrs:{fieldName:a.title}}):t._e(),t._v(" "),"birthNumber"==a.name?s("birthday-membership-data",{attrs:{fieldName:a.title}}):t._e()],1)}))],2)])])])])]),t._v(" "),s("div",{staticClass:"template-cell template-cell-r"},[s("el-tabs",{model:{value:t.rightName,callback:function(a){t.rightName=a},expression:"rightName"}},[s("el-tab-pane",{attrs:{label:"控件设置",name:"first"}},[s("div",{attrs:{id:"edit-box"}},[s("div",{staticClass:"edit-view baby-info-flag baby-info"},[s("div",[s("el-radio",{attrs:{label:"0"},model:{value:t.setting,callback:function(a){t.setting=a},expression:"setting"}},[t._v("定义在日报自定义上报模板上面")])],1),t._v(" "),s("div",{staticClass:"margin-t-15"},[s("el-radio",{attrs:{label:"1"},model:{value:t.setting,callback:function(a){t.setting=a},expression:"setting"}},[t._v("定义在日报自定义上报模板下面")])],1)])])])],1)],1)])]),t._v(" "),s("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(a){t.dialogVisible=a},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"template-title flex-1"},[a("img",{attrs:{src:e("LbEI"),alt:"logo"}}),this._v(" "),a("span",{staticClass:"template-title-span"},[this._v("系统报表设置")])])}]};var L=e("VU/8")(V,O,!1,function(t){e("VmW0")},"data-v-c8f8c706",null);a.default=L.exports},VmW0:function(t,a){},Yxui:function(t,a){}});
\ No newline at end of file
webpackJsonp([69],{"5Os6":function(t,e){},e88N:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),i=a("fvdr"),c=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"话务任务",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"话务任务记录",icon:"icon-tonghuahuawuliang",onlyIconActive:!1},{tabId:"2",tabName:"话务任务设置",icon:"icon-huawujinengzupeizhi",onlyIconActive:!1},{tabId:"3",tabName:"不良评价回访设置",icon:"icon-ribaoshezhi",onlyIconActive:!1}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("taskRecord?appIcon="+this.$route.query.appIcon);break;case"2":this.changeRoute("trafficTaskSet?appIcon="+this.$route.query.appIcon);break;case"3":this.changeRoute("badEvaluateSet?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("5Os6")},"data-v-5d5dbd63",null);e.default=r.exports}});
\ No newline at end of file
webpackJsonp([70],{"5Os6":function(t,e){},e88N:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),i=a("fvdr"),c=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"话务任务",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"话务任务记录",icon:"icon-tonghuahuawuliang",onlyIconActive:!1},{tabId:"2",tabName:"话务任务设置",icon:"icon-huawujinengzupeizhi",onlyIconActive:!1},{tabId:"3",tabName:"不良评价回访设置",icon:"icon-ribaoshezhi",onlyIconActive:!1}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("taskRecord?appIcon="+this.$route.query.appIcon);break;case"2":this.changeRoute("trafficTaskSet?appIcon="+this.$route.query.appIcon);break;case"3":this.changeRoute("badEvaluateSet?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("5Os6")},"data-v-5d5dbd63",null);e.default=r.exports}});
\ No newline at end of file
webpackJsonp([70],{"7S4r":function(e,t){},mPjx:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("l46T"),n=a("3Xzz"),s=a("Ie7z"),i=a("P9l9"),o={name:"store-view-group-info",components:{navCrumb:n.a,limitInput:r.a,vueSelectStore:s.a},data:function(){return{departInfo:{name:"",parentName:"",parentId:""},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},disabled:!0,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0,groupId:""},currentBrand:this.$route.query.groupId,defaultList:[]}},methods:{delGroup:function(){var e=this;e.$confirm(" 是否确认删除分组 ?","提示",{type:"warning"}).then(function(){Object(i.a)("/haoban-manage-web/dept/del",{groupId:e.$route.query.groupId}).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}).catch(function(e){})},handleSelectedList:function(e){var t=e[0];this.departInfo.parentId=t?t.id:"",this.departInfo.parentName=t?t.chainName:""},callGroupSelector:function(){this.treeSet.dialogVisible=!0},saveEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$refs.departForm.validate(function(a){if(!a)return!1;var r=e,n={parentId:r.departInfo.parentId,name:r.departInfo.name},s="";r.isAddNew?s="/haoban-manage-web/dept/insert":(s="/haoban-manage-web/dept/update",n.groupId=r.$route.query.groupId,n.isStoreGroup=1),Object(i.a)(s,n).then(function(e){1==e.data.errorCode?(r.$message.success({duration:1e3,message:"操作成功!"}),"continue"==t?(r.departInfo={name:"",parentName:"",parentId:" "},r.defaultList=[]):window.history.go(-1)):r.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})},getGroupInfo:function(){var e=this,t={groupId:e.$route.query.groupId};Object(i.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){1==t.data.errorCode?(e.departInfo={name:t.data.result.name,parentName:t.data.result.chainName,parentId:t.data.result.parentId},e.defaultList=[{id:t.data.result.parentId,label:t.data.result.parentGroupName}]):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)},forbidenList:function(){return this.isAddNew?[]:[this.$route.query.groupId]},navpath:function(){return[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"group"==this.$route.query.type?"编辑分组":this.isAddNew?"添加子分组":"品牌编辑",path:""}]}},beforeMount:function(){this.treeSet.groupId=this.$route.query.firstLevelId,this.isAddNew||this.getGroupInfo()},mounted:function(){this.disabled=!1},watch:{treeData:function(){this.disabled=!1}}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell"},[a("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"brand"==e.$route.query.type?"品牌名称":"部门名称",prop:"name"}},["brand"==e.$route.query.type?a("limitInput",{attrs:{inputWidth:380,inputValue:e.departInfo.name,holder:"请输入品牌名称",maxLength:50},on:{"update:inputValue":function(t){e.$set(e.departInfo,"name",t)}}}):e._e(),e._v(" "),"brand"!=e.$route.query.type?a("limitInput",{attrs:{inputWidth:380,inputValue:e.departInfo.name,holder:"请输入部门名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.departInfo,"name",t)}}}):e._e()],1),e._v(" "),"group"==e.$route.query.type||e.isAddNew?a("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[a("el-input",{attrs:{disabled:e.disabled,readonly:"","suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.parentName,callback:function(t){e.$set(e.departInfo,"parentName",t)},expression:"departInfo.parentName"}})],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"setting-cell"},[a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),e.isAddNew?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]):a("el-button",{attrs:{type:"danger"},on:{click:e.delGroup}},[e._v("删除")]),e._v(" "),a("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)]),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{defaultList:e.defaultList,treeSet:e.treeSet,currentBrand:e.currentBrand,selectType:"group",forbidenList:e.forbidenList},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var u=a("VU/8")(o,d,!1,function(e){a("7S4r")},null,null);t.default=u.exports}});
\ No newline at end of file
webpackJsonp([71],{"7S4r":function(e,t){},mPjx:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("l46T"),n=a("3Xzz"),s=a("Ie7z"),i=a("P9l9"),o={name:"store-view-group-info",components:{navCrumb:n.a,limitInput:r.a,vueSelectStore:s.a},data:function(){return{departInfo:{name:"",parentName:"",parentId:""},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},disabled:!0,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0,groupId:""},currentBrand:this.$route.query.groupId,defaultList:[]}},methods:{delGroup:function(){var e=this;e.$confirm(" 是否确认删除分组 ?","提示",{type:"warning"}).then(function(){Object(i.a)("/haoban-manage-web/dept/del",{groupId:e.$route.query.groupId}).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}).catch(function(e){})},handleSelectedList:function(e){var t=e[0];this.departInfo.parentId=t?t.id:"",this.departInfo.parentName=t?t.chainName:""},callGroupSelector:function(){this.treeSet.dialogVisible=!0},saveEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$refs.departForm.validate(function(a){if(!a)return!1;var r=e,n={parentId:r.departInfo.parentId,name:r.departInfo.name},s="";r.isAddNew?s="/haoban-manage-web/dept/insert":(s="/haoban-manage-web/dept/update",n.groupId=r.$route.query.groupId,n.isStoreGroup=1),Object(i.a)(s,n).then(function(e){1==e.data.errorCode?(r.$message.success({duration:1e3,message:"操作成功!"}),"continue"==t?(r.departInfo={name:"",parentName:"",parentId:" "},r.defaultList=[]):window.history.go(-1)):r.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})},getGroupInfo:function(){var e=this,t={groupId:e.$route.query.groupId};Object(i.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){1==t.data.errorCode?(e.departInfo={name:t.data.result.name,parentName:t.data.result.chainName,parentId:t.data.result.parentId},e.defaultList=[{id:t.data.result.parentId,label:t.data.result.parentGroupName}]):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)},forbidenList:function(){return this.isAddNew?[]:[this.$route.query.groupId]},navpath:function(){return[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"group"==this.$route.query.type?"编辑分组":this.isAddNew?"添加子分组":"品牌编辑",path:""}]}},beforeMount:function(){this.treeSet.groupId=this.$route.query.firstLevelId,this.isAddNew||this.getGroupInfo()},mounted:function(){this.disabled=!1},watch:{treeData:function(){this.disabled=!1}}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell"},[a("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"brand"==e.$route.query.type?"品牌名称":"部门名称",prop:"name"}},["brand"==e.$route.query.type?a("limitInput",{attrs:{inputWidth:380,inputValue:e.departInfo.name,holder:"请输入品牌名称",maxLength:50},on:{"update:inputValue":function(t){e.$set(e.departInfo,"name",t)}}}):e._e(),e._v(" "),"brand"!=e.$route.query.type?a("limitInput",{attrs:{inputWidth:380,inputValue:e.departInfo.name,holder:"请输入部门名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.departInfo,"name",t)}}}):e._e()],1),e._v(" "),"group"==e.$route.query.type||e.isAddNew?a("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[a("el-input",{attrs:{disabled:e.disabled,readonly:"","suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.parentName,callback:function(t){e.$set(e.departInfo,"parentName",t)},expression:"departInfo.parentName"}})],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"setting-cell"},[a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),e.isAddNew?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]):a("el-button",{attrs:{type:"danger"},on:{click:e.delGroup}},[e._v("删除")]),e._v(" "),a("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)]),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{defaultList:e.defaultList,treeSet:e.treeSet,currentBrand:e.currentBrand,selectType:"group",forbidenList:e.forbidenList},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var u=a("VU/8")(o,d,!1,function(e){a("7S4r")},null,null);t.default=u.exports}});
\ No newline at end of file
webpackJsonp([71],{FT0U:function(t,e){},Gk4o:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),o=a("fvdr"),i=a("Qie6"),c={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"签到",appIcon:"",activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:o.a,commonDetailLeft:i.a}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=a("VU/8")(c,r,!1,function(t){a("FT0U")},"data-v-59c4a073",null);e.default=s.exports}});
\ No newline at end of file
webpackJsonp([72],{FT0U:function(t,e){},Gk4o:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),o=a("fvdr"),i=a("Qie6"),c={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"签到",appIcon:"",activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:o.a,commonDetailLeft:i.a}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=a("VU/8")(c,r,!1,function(t){a("FT0U")},"data-v-59c4a073",null);e.default=s.exports}});
\ No newline at end of file
webpackJsonp([72],{lpYn:function(t,e){},"s4D+":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:[2==t.childItem.type?"h-66":""]},[9!=t.childItem.type?i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]):t._e(),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==t.childItem.type?"15px":"0"}},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":""))])]),t._v(" "),10==t.childItem.type&&t.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[t._v("大写:壹万元整(示例)")]):t._e()])},staticRenderFns:[]};var c=i("VU/8")(l,a,!1,function(t){i("lpYn")},"data-v-51432d8f",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([73],{lpYn:function(t,e){},"s4D+":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:[2==t.childItem.type?"h-66":""]},[9!=t.childItem.type?i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]):t._e(),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==t.childItem.type?"15px":"0"}},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":""))])]),t._v(" "),10==t.childItem.type&&t.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[t._v("大写:壹万元整(示例)")]):t._e()])},staticRenderFns:[]};var c=i("VU/8")(l,a,!1,function(t){i("lpYn")},"data-v-51432d8f",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([73],{"6zFj":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("3Xzz"),c=e("3E4D"),s=e("Ch4/"),o=e("PI0u"),i=e("P9l9"),r={name:"contactPermission",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"通讯录信息",path:"/staffDetails"},{name:"通讯录控制",path:""}],contactHideFlag:!1}},methods:{saveSet:Object(o.a)(function(){var t=this,a={contactHideFlag:t.contactHideFlag?"1":"0"};Object(i.e)("/haoban-manage-web/contact/save-contact-setting",a).then(function(t){var a=t.data;1!=a.errorCode?s.a.errorMsg(a):c.a.showmsg("保存成功","success")}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},300),getSetData:function(){var t=this;Object(i.e)("/haoban-manage-web/contact/find-contact-setting",{}).then(function(a){var e=a.data;1!=e.errorCode?s.a.errorMsg(e):t.contactHideFlag=1==e.result.contactHideFlag}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})}},mounted:function(){this.getSetData()},components:{navCrumb:n.a}},d={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"storePermission-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box"},[e("div",{},[e("div",{staticClass:"check-box-wrap inline-block vertical-top"},[e("el-checkbox",{model:{value:t.contactHideFlag,callback:function(a){t.contactHideFlag=a},expression:"contactHideFlag"}},[t._v("隐藏通讯录模块")])],1),t._v(" "),e("div",{staticClass:"tip-text-wrap w-440 inline-block vertical-top"},[t._v("注:隐藏后,APP将不展示通讯录,通讯录仍可用,但无法进行通讯录及门店管理,以及添加员工操作。所有通讯录内容仅可在PC管理后台进行操作和管理。")])]),t._v(" "),e("div",[e("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])]),t._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var l=e("VU/8")(r,d,!1,function(t){e("R1ch")},"data-v-5090dca8",null);a.default=l.exports},R1ch:function(t,a){}});
\ No newline at end of file
webpackJsonp([74],{"6zFj":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("3Xzz"),c=e("3E4D"),s=e("Ch4/"),o=e("PI0u"),i=e("P9l9"),r={name:"contactPermission",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"通讯录信息",path:"/staffDetails"},{name:"通讯录控制",path:""}],contactHideFlag:!1}},methods:{saveSet:Object(o.a)(function(){var t=this,a={contactHideFlag:t.contactHideFlag?"1":"0"};Object(i.e)("/haoban-manage-web/contact/save-contact-setting",a).then(function(t){var a=t.data;1!=a.errorCode?s.a.errorMsg(a):c.a.showmsg("保存成功","success")}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},300),getSetData:function(){var t=this;Object(i.e)("/haoban-manage-web/contact/find-contact-setting",{}).then(function(a){var e=a.data;1!=e.errorCode?s.a.errorMsg(e):t.contactHideFlag=1==e.result.contactHideFlag}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})}},mounted:function(){this.getSetData()},components:{navCrumb:n.a}},d={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"storePermission-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box"},[e("div",{},[e("div",{staticClass:"check-box-wrap inline-block vertical-top"},[e("el-checkbox",{model:{value:t.contactHideFlag,callback:function(a){t.contactHideFlag=a},expression:"contactHideFlag"}},[t._v("隐藏通讯录模块")])],1),t._v(" "),e("div",{staticClass:"tip-text-wrap w-440 inline-block vertical-top"},[t._v("注:隐藏后,APP将不展示通讯录,通讯录仍可用,但无法进行通讯录及门店管理,以及添加员工操作。所有通讯录内容仅可在PC管理后台进行操作和管理。")])]),t._v(" "),e("div",[e("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])]),t._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var l=e("VU/8")(r,d,!1,function(t){e("R1ch")},"data-v-5090dca8",null);a.default=l.exports},R1ch:function(t,a){}});
\ No newline at end of file
webpackJsonp([74],{Akas:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("2eFk"),s=a("Ie7z"),l=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"话务任务记录",path:"/taskRecord?appIcon="+this.$route.query.appIcon},{id:"2",name:"任务详情",path:""}],activeId:"2",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeTable:function(e){this.currentPage=1,this.getTableList()},handleCommand:function(e){this.selectRadio=e},setSelectTab:function(e){this.activeTab=e.tabId},toInput:Object(d.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!o()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a=[],n=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var o={search:t.conditionObj.searchInput||"",filterStoreIds:n.join(",")||"",storeGroupIds:a.join(",")||"",storeIds:t.multipleSelection.map(function(e){return e.storeId}).join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",brandId:t.activeBrand,delTaskStatus:e.delOptFlag,reason:e.reason,isAll:t.selectRadio};Object(c.e)("/haoban-app-tel-task-web/task/batch-del-store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},exportExcel:function(){var e=this,t=[],a=[];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:a.join(",")||"",storeGroupIds:t.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange?e.conditionObj.dateRange[0]:"",endDate:e.conditionObj.dateRange?e.conditionObj.dateRange[1]:"",brandId:e.activeBrand};Object(c.b)("/haoban-app-tel-task-web/task/export-store-task-list",n).then(function(t){if(!t.data)return p.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),n=(e.tableData[0]?e.tableData[0].storeName:"")+"门店任务报表.csv",o=document.createElement("a");o.download=n,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},toDetail:function(e,t){this.$router.push("taskDetail?storeId="+t.storeId+"&ecmId="+this.$route.query.ecmId+"&appIcon="+this.$route.query.appIcon)},getTableList:function(e){var t=this,a=[],n=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var o={ecmId:t.$route.query.ecmId,search:t.conditionObj.searchInput||"",filterStoreIds:n.join(",")||"",storeGroupIds:a.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(c.a)("/haoban-app-tel-task-web/task/store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},initDataRange:function(){var e=new Date,t=e.getTime()-7776e6,a=e.getFullYear(),n=e.getMonth()+1,o=e.getDate()<10?"0"+e.getDate():e.getDate(),i=n<10?"0"+n:n,s=new Date(t),l=s.getFullYear(),r=s.getMonth()+1,c=s.getDate()<10?"0"+s.getDate():s.getDate();return[l+"-"+(r<10?"0"+r:r)+"-"+c,a+"-"+i+"-"+o]}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.conditionObj.dateRange=e.initDataRange(),document.documentElement.style.backgroundColor="#f0f2f5",e.activeBrand=e.brandId,e.brandId&&e.$nextTick(function(){e.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:l.a,vueSelectStore:s.a,multipleDel:r.a}},g={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap task-view-detail"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e.conditionObj.storeGroup.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc"},[e._v("请选择门店分组")]),e._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.conditionObj.storeGroup,function(t,n){return[a("span",{key:n,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(n,e.conditionObj.storeGroup)}}})])]})],2)])])])]),e._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeStoreType},model:{value:e.conditionObj.storeType,callback:function(t){e.$set(e.conditionObj,"storeType",t)},expression:"conditionObj.storeType"}},e._l(e.storeTypeOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.completedCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.completedRate))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.noCompletedCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.overdueCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toDetail(t.$index,t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1},on:{hideDialog:e.hideDialog}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var b=a("VU/8")(h,g,!1,function(e){a("m8tU")},"data-v-4b967a5a",null);t.default=b.exports},m8tU:function(e,t){}});
\ No newline at end of file
webpackJsonp([75],{Akas:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("2eFk"),s=a("Ie7z"),l=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"话务任务记录",path:"/taskRecord?appIcon="+this.$route.query.appIcon},{id:"2",name:"任务详情",path:""}],activeId:"2",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeTable:function(e){this.currentPage=1,this.getTableList()},handleCommand:function(e){this.selectRadio=e},setSelectTab:function(e){this.activeTab=e.tabId},toInput:Object(d.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!o()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a=[],n=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var o={search:t.conditionObj.searchInput||"",filterStoreIds:n.join(",")||"",storeGroupIds:a.join(",")||"",storeIds:t.multipleSelection.map(function(e){return e.storeId}).join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",brandId:t.activeBrand,delTaskStatus:e.delOptFlag,reason:e.reason,isAll:t.selectRadio};Object(c.e)("/haoban-app-tel-task-web/task/batch-del-store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},exportExcel:function(){var e=this,t=[],a=[];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:a.join(",")||"",storeGroupIds:t.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange?e.conditionObj.dateRange[0]:"",endDate:e.conditionObj.dateRange?e.conditionObj.dateRange[1]:"",brandId:e.activeBrand};Object(c.b)("/haoban-app-tel-task-web/task/export-store-task-list",n).then(function(t){if(!t.data)return p.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),n=(e.tableData[0]?e.tableData[0].storeName:"")+"门店任务报表.csv",o=document.createElement("a");o.download=n,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},toDetail:function(e,t){this.$router.push("taskDetail?storeId="+t.storeId+"&ecmId="+this.$route.query.ecmId+"&appIcon="+this.$route.query.appIcon)},getTableList:function(e){var t=this,a=[],n=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var o={ecmId:t.$route.query.ecmId,search:t.conditionObj.searchInput||"",filterStoreIds:n.join(",")||"",storeGroupIds:a.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(c.a)("/haoban-app-tel-task-web/task/store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},initDataRange:function(){var e=new Date,t=e.getTime()-7776e6,a=e.getFullYear(),n=e.getMonth()+1,o=e.getDate()<10?"0"+e.getDate():e.getDate(),i=n<10?"0"+n:n,s=new Date(t),l=s.getFullYear(),r=s.getMonth()+1,c=s.getDate()<10?"0"+s.getDate():s.getDate();return[l+"-"+(r<10?"0"+r:r)+"-"+c,a+"-"+i+"-"+o]}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.conditionObj.dateRange=e.initDataRange(),document.documentElement.style.backgroundColor="#f0f2f5",e.activeBrand=e.brandId,e.brandId&&e.$nextTick(function(){e.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:l.a,vueSelectStore:s.a,multipleDel:r.a}},g={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap task-view-detail"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e.conditionObj.storeGroup.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc"},[e._v("请选择门店分组")]),e._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.conditionObj.storeGroup,function(t,n){return[a("span",{key:n,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(n,e.conditionObj.storeGroup)}}})])]})],2)])])])]),e._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeStoreType},model:{value:e.conditionObj.storeType,callback:function(t){e.$set(e.conditionObj,"storeType",t)},expression:"conditionObj.storeType"}},e._l(e.storeTypeOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.completedCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.completedRate))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.noCompletedCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.overdueCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toDetail(t.$index,t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1},on:{hideDialog:e.hideDialog}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var b=a("VU/8")(h,g,!1,function(e){a("m8tU")},"data-v-4b967a5a",null);t.default=b.exports},m8tU:function(e,t){}});
\ No newline at end of file
webpackJsonp([75],{YqmZ:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("mvHQ"),o=a.n(i),n=a("Ie7z"),s=a("Ke24"),l=a("b28S"),r=a("P9l9"),c=a("Ch4/"),d=a("PI0u"),p={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:s.a,vueSelectStore:n.a,chatLogList:l.a},data:function(){var e=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"2",topMenuData:[{id:"1",name:"在线沟通设置",path:"/onlineChatSet?appIcon="+this.$route.query.appIcon+"&activeTab="+this.$route.query.activeTab},{id:"2",name:"卡券领取记录"}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}],onPick:function(t){var a=t.maxDate,i=t.minDate;e.choiceDateCopy=[i.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,i=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>i||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},currentPage:1,pageSize:20,total:0,showFlag:!1,itemRow:{}}},methods:{delSelectData:function(e){this.defaultStoreList.splice(e,1),this.currentPage=1,this.getTableList()},showSingleInfo:function(e){},exportExcel:function(){var e=this,t=[],a=[],i=[];e.conditionObj.storeGroup.forEach(function(e){1==e.type&&i.push(e.employeeClerkId),2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var o={relatedId:e.$route.query.relatedId,search:e.conditionObj.searchInput||"",groupIds:t.join(",")||"",storeIds:a.join(",")||"",clerkIds:i.join(",")||"",startTime:e.conditionObj.dateRange[0]||"",endTime:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand};Object(r.b)("/haoban-app-member-web/customer/export_message_log",o).then(function(t){if(!t.data)return c.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),i=(e.tableData[0]?e.tableData[0].storeName:"")+"发送记录报表.csv",o=document.createElement("a");o.download=i,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(d.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.defaultStoreList=e,this.conditionObj.storeGroup=e,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDetail:function(e,t){this.showFlag=!0;var a=JSON.parse(o()(t));a.userMessageId="",this.itemRow=a},hideDetail:function(){this.showFlag=!1,this.itemRow={},this.$nextTick(function(){document.body.style.overflow="auto"})},getTableList:function(e){var t=this,a=[],i=[],o=[];t.conditionObj.storeGroup.forEach(function(e){1==e.type&&o.push(e.employeeClerkId),2==e.type&&a.push(e.groupId),3==e.type&&i.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var n={coupCardId:t.$route.query.coupCardId,search:t.conditionObj.searchInput||"",groupIds:a.join(",")||"",storeIds:i.join(",")||"",clerkIds:o.join(",")||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(r.e)("/haoban-app-member-web/cardCoupon/find-receive-card-page",n).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log border-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"chat-log-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-369",attrs:{placeholder:"请输入导购姓名/手机号/code",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),a("el-date-picker",{staticClass:"m-l-10 m-r-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}}),a("el-button",{staticStyle:{"vertical-align":"middle"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e._v("门店架构选人")])],1),e._v(" "),a("div",{staticClass:"table-condition-right"})]),e._v(" "),e.defaultStoreList.length?a("div",{staticClass:"select-data-wrap m-b-20"},[a("ul",{staticClass:"selector-selected-list flex flex-wrap"},[e._l(e.defaultStoreList,function(t,i){return[a("li",{key:i+t.id+t.label,staticClass:"select-item"},[e._v(e._s(t.label)+" "),a("i",{staticClass:"el-icon-close",on:{click:function(t){e.delSelectData(i)}}})])]})],2)]):e._e(),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"导购信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.applyId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[t.row.clerkImage?a("img",{attrs:{src:t.row.clerkImage,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(t.row.clerkName)+"\n "),a("i",{class:[2==t.row.sex?"icon-xingbienv color-FF585C":"icon-xingbienan color-508CEE","iconfont"]})]),e._v(" "),a("div",{staticClass:"apply-info-code"},[a("span",{staticClass:"w-80"},[e._v("员工代码:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.clerkCode||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.clerkPhone||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-job"},[a("span",{staticClass:"w-80"},[e._v("职位:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.positionName||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属门店:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.storeName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.clerkImage?a("img",{attrs:{src:t.row.clerkImage,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"font-14 color-606266 text-ellipsis"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis"},[e._v(e._s(t.row.storeName))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"导购手机号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.clerkPhone||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.memberUrl?a("img",{attrs:{src:t.row.memberUrl,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"font-14 color-606266 text-ellipsis"},[e._v(e._s(t.row.memberName))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis"},[e._v(e._s(t.row.memberCardNo))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员手机号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberPhone||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"来源","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.receiveName||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领取时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.receiveTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.receiveTime)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("chat-log-list",{attrs:{brandId:e.brandId,itemRow:e.itemRow,showFlag:e.showFlag},on:{hideDetail:e.hideDetail}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"all",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)])},staticRenderFns:[]};var h=a("VU/8")(p,u,!1,function(e){a("ag8q")},"data-v-482d4abd",null);t.default=h.exports},ag8q:function(e,t){}});
\ No newline at end of file
webpackJsonp([76],{YqmZ:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("mvHQ"),o=a.n(i),n=a("Ie7z"),s=a("Ke24"),l=a("b28S"),r=a("P9l9"),c=a("Ch4/"),d=a("PI0u"),p={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:s.a,vueSelectStore:n.a,chatLogList:l.a},data:function(){var e=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"2",topMenuData:[{id:"1",name:"在线沟通设置",path:"/onlineChatSet?appIcon="+this.$route.query.appIcon+"&activeTab="+this.$route.query.activeTab},{id:"2",name:"卡券领取记录"}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}],onPick:function(t){var a=t.maxDate,i=t.minDate;e.choiceDateCopy=[i.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,i=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>i||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},currentPage:1,pageSize:20,total:0,showFlag:!1,itemRow:{}}},methods:{delSelectData:function(e){this.defaultStoreList.splice(e,1),this.currentPage=1,this.getTableList()},showSingleInfo:function(e){},exportExcel:function(){var e=this,t=[],a=[],i=[];e.conditionObj.storeGroup.forEach(function(e){1==e.type&&i.push(e.employeeClerkId),2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var o={relatedId:e.$route.query.relatedId,search:e.conditionObj.searchInput||"",groupIds:t.join(",")||"",storeIds:a.join(",")||"",clerkIds:i.join(",")||"",startTime:e.conditionObj.dateRange[0]||"",endTime:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand};Object(r.b)("/haoban-app-member-web/customer/export_message_log",o).then(function(t){if(!t.data)return c.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),i=(e.tableData[0]?e.tableData[0].storeName:"")+"发送记录报表.csv",o=document.createElement("a");o.download=i,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(d.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.defaultStoreList=e,this.conditionObj.storeGroup=e,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDetail:function(e,t){this.showFlag=!0;var a=JSON.parse(o()(t));a.userMessageId="",this.itemRow=a},hideDetail:function(){this.showFlag=!1,this.itemRow={},this.$nextTick(function(){document.body.style.overflow="auto"})},getTableList:function(e){var t=this,a=[],i=[],o=[];t.conditionObj.storeGroup.forEach(function(e){1==e.type&&o.push(e.employeeClerkId),2==e.type&&a.push(e.groupId),3==e.type&&i.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var n={coupCardId:t.$route.query.coupCardId,search:t.conditionObj.searchInput||"",groupIds:a.join(",")||"",storeIds:i.join(",")||"",clerkIds:o.join(",")||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(r.e)("/haoban-app-member-web/cardCoupon/find-receive-card-page",n).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log border-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"chat-log-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-369",attrs:{placeholder:"请输入导购姓名/手机号/code",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),a("el-date-picker",{staticClass:"m-l-10 m-r-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}}),a("el-button",{staticStyle:{"vertical-align":"middle"},on:{click:function(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e._v("门店架构选人")])],1),e._v(" "),a("div",{staticClass:"table-condition-right"})]),e._v(" "),e.defaultStoreList.length?a("div",{staticClass:"select-data-wrap m-b-20"},[a("ul",{staticClass:"selector-selected-list flex flex-wrap"},[e._l(e.defaultStoreList,function(t,i){return[a("li",{key:i+t.id+t.label,staticClass:"select-item"},[e._v(e._s(t.label)+" "),a("i",{staticClass:"el-icon-close",on:{click:function(t){e.delSelectData(i)}}})])]})],2)]):e._e(),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"导购信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.applyId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[t.row.clerkImage?a("img",{attrs:{src:t.row.clerkImage,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(t.row.clerkName)+"\n "),a("i",{class:[2==t.row.sex?"icon-xingbienv color-FF585C":"icon-xingbienan color-508CEE","iconfont"]})]),e._v(" "),a("div",{staticClass:"apply-info-code"},[a("span",{staticClass:"w-80"},[e._v("员工代码:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.clerkCode||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.clerkPhone||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-job"},[a("span",{staticClass:"w-80"},[e._v("职位:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.positionName||"--"))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属门店:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.storeName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.clerkImage?a("img",{attrs:{src:t.row.clerkImage,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"font-14 color-606266 text-ellipsis"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis"},[e._v(e._s(t.row.storeName))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"导购手机号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.clerkPhone||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.memberUrl?a("img",{attrs:{src:t.row.memberUrl,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"font-14 color-606266 text-ellipsis"},[e._v(e._s(t.row.memberName))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis"},[e._v(e._s(t.row.memberCardNo))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员手机号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberPhone||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"来源","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.receiveName||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领取时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.receiveTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.receiveTime)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("chat-log-list",{attrs:{brandId:e.brandId,itemRow:e.itemRow,showFlag:e.showFlag},on:{hideDetail:e.hideDetail}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"all",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)])},staticRenderFns:[]};var h=a("VU/8")(p,u,!1,function(e){a("ag8q")},"data-v-482d4abd",null);t.default=h.exports},ag8q:function(e,t){}});
\ No newline at end of file
webpackJsonp([76],{XzAK:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("2eFk"),i=s("Ke24"),n=s("PI0u"),o=s("Ch4/"),r=s("3E4D"),d=s("P9l9"),l={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"不良评价回访设置"}],activeId:"1",setObj:{taskType:0,overDayJudge:"",distributeTypeJudge:"",distributeCustomerJudge:1,giveUpJudge:""}}},computed:{},methods:{saveSet:Object(n.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={brandId:t.activeBrand,taskType:0,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge,distributeCustomerJudge:t.setObj.distributeCustomerJudge};Object(d.e)("/haoban-app-tel-task-web/setting/save-task-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):r.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={brandId:t.activeBrand,taskType:0};Object(d.e)("/haoban-app-tel-task-web/setting/find-task-setting",e).then(function(e){var s=e.data;1!=s.errorCode?o.a.errorMsg(s):t.setObj=s.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","3"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:a.a,commonDetailTop:i.a}},c={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-303211"},[t._v("任务分配")]),t._v(" "),s("el-radio",{attrs:{label:1},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v("分配给消费门店店长")]),t._v(" "),s("el-radio",{attrs:{label:2},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v("分配给专属导购")])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-303211"},[t._v("与逾期设置")]),t._v(" "),s("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("不良评价回访下发后")]),t._v(" "),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),s("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-303211"},[t._v("放弃任务条件")]),t._v(" "),s("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("不良评价放弃前提")]),t._v(" "),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),s("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应")])],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"},[s("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])],1)},staticRenderFns:[]};var u=s("VU/8")(l,c,!1,function(t){s("eGjR")},"data-v-47b2ad61",null);e.default=u.exports},eGjR:function(t,e){}});
\ No newline at end of file
webpackJsonp([77],{XzAK:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("2eFk"),i=s("Ke24"),n=s("PI0u"),o=s("Ch4/"),r=s("3E4D"),d=s("P9l9"),l={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"不良评价回访设置"}],activeId:"1",setObj:{taskType:0,overDayJudge:"",distributeTypeJudge:"",distributeCustomerJudge:1,giveUpJudge:""}}},computed:{},methods:{saveSet:Object(n.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={brandId:t.activeBrand,taskType:0,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge,distributeCustomerJudge:t.setObj.distributeCustomerJudge};Object(d.e)("/haoban-app-tel-task-web/setting/save-task-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):r.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={brandId:t.activeBrand,taskType:0};Object(d.e)("/haoban-app-tel-task-web/setting/find-task-setting",e).then(function(e){var s=e.data;1!=s.errorCode?o.a.errorMsg(s):t.setObj=s.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","3"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:a.a,commonDetailTop:i.a}},c={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-303211"},[t._v("任务分配")]),t._v(" "),s("el-radio",{attrs:{label:1},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v("分配给消费门店店长")]),t._v(" "),s("el-radio",{attrs:{label:2},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v("分配给专属导购")])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-303211"},[t._v("与逾期设置")]),t._v(" "),s("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("不良评价回访下发后")]),t._v(" "),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),s("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-303211"},[t._v("放弃任务条件")]),t._v(" "),s("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("不良评价放弃前提")]),t._v(" "),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),s("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应")])],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"},[s("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])],1)},staticRenderFns:[]};var u=s("VU/8")(l,c,!1,function(t){s("eGjR")},"data-v-47b2ad61",null);e.default=u.exports},eGjR:function(t,e){}});
\ No newline at end of file
webpackJsonp([77],{"5+o4":function(e,t){},jMbb:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("Ke24"),l=a("LRn8"),s=a("P9l9"),r=a("Ch4/"),c=a("3E4D"),d={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"3",activeBrand:this.brandId,topMenuData:[{id:"1",name:"指标管理",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"2",name:"月指标任务",path:"/monthTask?appIcon="+this.$route.query.appIcon},{id:"3",name:"月指标任务详情",path:""}],selectRadio:0,showDialog:!1,conditionObj:{isCompleted:"",isOverTime:"",dateRange:[]},completedOptions:[{label:"完成情况",value:""},{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"逾期情况",value:""},{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{init:function(){var e=this.$route.query.startDate,t=this.$route.query.endDate;document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","13"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.conditionObj.dateRange=t?[e,t]:[],this.brandId&&this.getTableList()},selectInit:function(e,t){return 0!=e.removeAble},handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!o()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskId}).join(",")||"",isOverTime:t.conditionObj.isOverTime||"",isCompleted:t.conditionObj.isCompleted||"",reason:e.reason,startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",brandId:t.activeBrand,isAll:t.selectRadio};Object(s.e)("/haoban-app-performance-web/performance/batch-remove-clerk-month-performance-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void t.getTableList();r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;this.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,n={taskId:t.taskId,brandId:this.activeBrand};Object(s.a)("/haoban-app-performance-web/performance/remove-clerk-month-performance-task",n).then(function(t){var n=t.data;if(1==n.errorCode)return a.total--,a.tableData.splice(e,1),0==a.tableData.length&&(a.currentPage>1?(a.currentPage--,a.getTableList()):a.total>0&&a.getTableList()),void a.$message.success("删除成功");r.a.errorMsg(n)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.isOverTime||"",isCompleted:t.conditionObj.isCompleted||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(s.a)("/haoban-app-performance-web/performance/query-clerk-month-performance-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],void(t.total=a.result.pageInfo.total);r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},activated:function(){this.init()},mounted:function(){this.init()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{commonDetailTop:i.a,multipleDel:l.a}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap common-right-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.isOverTime,callback:function(t){e.$set(e.conditionObj,"isOverTime",t)},expression:"conditionObj.isOverTime"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.isCompleted,callback:function(t){e.$set(e.conditionObj,"isCompleted",t)},expression:"conditionObj.isCompleted"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",staticStyle:{width:"310px"},attrs:{editable:!1,"value-format":"yyyy-MM",type:"monthrange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35",selectable:e.selectInit}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象",width:"260"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{class:["image-wrap flex flex-align-center flex-pack-center",t.row.headImgUrl?"bg-eceaeb":"bg-82c5ff"]},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:""}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16"},[a("p",{staticClass:"first-item font-14 color-303133"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v(e._s(t.row.clerkPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-909399"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",{staticClass:"color-909399"},[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",{staticClass:"color-909399"},[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.removeAble?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]):a("span",[e._v("--")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0,detailShowFlag:!0},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var m=a("VU/8")(d,u,!1,function(e){a("5+o4")},"data-v-47935b7a",null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([78],{"5+o4":function(e,t){},jMbb:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("Ke24"),l=a("LRn8"),s=a("P9l9"),r=a("Ch4/"),c=a("3E4D"),d={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"3",activeBrand:this.brandId,topMenuData:[{id:"1",name:"指标管理",path:"/monthList?appIcon="+this.$route.query.appIcon},{id:"2",name:"月指标任务",path:"/monthTask?appIcon="+this.$route.query.appIcon},{id:"3",name:"月指标任务详情",path:""}],selectRadio:0,showDialog:!1,conditionObj:{isCompleted:"",isOverTime:"",dateRange:[]},completedOptions:[{label:"完成情况",value:""},{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"逾期情况",value:""},{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{init:function(){var e=this.$route.query.startDate,t=this.$route.query.endDate;document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","13"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.conditionObj.dateRange=t?[e,t]:[],this.brandId&&this.getTableList()},selectInit:function(e,t){return 0!=e.removeAble},handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!o()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskId}).join(",")||"",isOverTime:t.conditionObj.isOverTime||"",isCompleted:t.conditionObj.isCompleted||"",reason:e.reason,startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",brandId:t.activeBrand,isAll:t.selectRadio};Object(s.e)("/haoban-app-performance-web/performance/batch-remove-clerk-month-performance-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void t.getTableList();r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;this.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,n={taskId:t.taskId,brandId:this.activeBrand};Object(s.a)("/haoban-app-performance-web/performance/remove-clerk-month-performance-task",n).then(function(t){var n=t.data;if(1==n.errorCode)return a.total--,a.tableData.splice(e,1),0==a.tableData.length&&(a.currentPage>1?(a.currentPage--,a.getTableList()):a.total>0&&a.getTableList()),void a.$message.success("删除成功");r.a.errorMsg(n)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.isOverTime||"",isCompleted:t.conditionObj.isCompleted||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(s.a)("/haoban-app-performance-web/performance/query-clerk-month-performance-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],void(t.total=a.result.pageInfo.total);r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},activated:function(){this.init()},mounted:function(){this.init()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{commonDetailTop:i.a,multipleDel:l.a}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap common-right-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.isOverTime,callback:function(t){e.$set(e.conditionObj,"isOverTime",t)},expression:"conditionObj.isOverTime"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.isCompleted,callback:function(t){e.$set(e.conditionObj,"isCompleted",t)},expression:"conditionObj.isCompleted"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",staticStyle:{width:"310px"},attrs:{editable:!1,"value-format":"yyyy-MM",type:"monthrange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35",selectable:e.selectInit}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象",width:"260"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{class:["image-wrap flex flex-align-center flex-pack-center",t.row.headImgUrl?"bg-eceaeb":"bg-82c5ff"]},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:""}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16"},[a("p",{staticClass:"first-item font-14 color-303133"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v(e._s(t.row.clerkPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-909399"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",{staticClass:"color-909399"},[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",{staticClass:"color-909399"},[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.removeAble?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]):a("span",[e._v("--")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0,detailShowFlag:!0},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var m=a("VU/8")(d,u,!1,function(e){a("5+o4")},"data-v-47935b7a",null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([78],{"8kVC":function(e,t){},ZxDn:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Xxa5"),n=a.n(r),o=a("exGp"),s=a.n(o),i=a("Ke24"),c=a("Ch4/"),l=a("PI0u"),u=a("P9l9"),p={components:{commonDetailTop:i.a},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",topMenuData:[{id:"1",name:"指标管理",path:"/quota?appIcon="+this.$route.query.appIcon},{id:"2",name:"月指标",path:""}],yearList:[],year:"",tableList:[],tabelHeader:[{prop:"yearMonth",label:"月份"},{prop:"totalPerformance",label:"月指标累计"},{prop:"totalStore",label:"门店总数"},{prop:"totalComplete",label:"门店指标完善数"}],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(e){e&&this.getYearList()}},methods:{handleSizeChange:function(e){this.pageSize=e,this.apiMonthPerformanceList()},handleCurrentChange:function(e){this.currentPage=e,this.apiMonthPerformanceList()},changeYear:function(){this.currentPage=1,this.apiMonthPerformanceList()},getYearList:function(){var e=this;return s()(n.a.mark(function t(){var a,r,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,n={brandId:a.brandId},Object(u.a)("/haoban-app-performance-web/performance/get-years",n);case 3:r=t.sent,1==(o=r.data).errorCode?(a.yearList=[],o.result&&o.result.length&&(o.result.forEach(function(e){a.yearList.push({id:e,label:e+"年"})}),a.year=o.result[0],a.apiMonthPerformanceList())):c.a.errorMsg(o);case 6:case"end":return t.stop()}var n},t,e)}))()},apiMonthPerformanceList:function(){var e=this;return s()(n.a.mark(function t(){var a,r,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,n={brandId:e.brandId,year:e.year},Object(u.a)("/haoban-app-performance-web/performance/query-month-performance",n);case 3:r=t.sent,1==(o=r.data).errorCode&&(o.result.length&&o.result.forEach(function(e){e.totalPerformance=Object(l.d)(Number(e.totalPerformance).toFixed(2))}),a.tableList=o.result||[]);case 6:case"end":return t.stop()}var n},t,e)}))()}},mounted:function(){this.$emit("showTab","11"),this.brandId&&this.getYearList()}},h={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"m-20"},[a("el-select",{staticClass:"m-b-23 w-123",on:{change:e.changeYear},model:{value:e.year,callback:function(t){e.year=t},expression:"year"}},[a("i",{staticClass:"el-input__icon el-icon-date",attrs:{slot:"prefix"},slot:"prefix"}),e._v(" "),e._l(e.yearList,function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.label}})})],2),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableList}},[e._l(e.tabelHeader,function(e,t){return a("el-table-column",{key:t,attrs:{label:e.label,prop:e.prop}})}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.settingStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.$router.push("/storeMonthTask?yearMonth="+t.row.yearMonth+"&appIcon="+e.$route.query.appIcon+" ")}}},[e._v("门店月指标")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.$router.push("/companyDaySet?yearMonth="+t.row.yearMonth+"&appIcon="+e.$route.query.appIcon)}}},[e._v("商户日权重")])]}}])})],2),e._v(" "),0!=e.tableList.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)],1)},staticRenderFns:[]};var d=a("VU/8")(p,h,!1,function(e){a("8kVC")},"data-v-46bca8a6",null);t.default=d.exports}});
\ No newline at end of file
webpackJsonp([79],{"8kVC":function(e,t){},ZxDn:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Xxa5"),n=a.n(r),o=a("exGp"),s=a.n(o),i=a("Ke24"),c=a("Ch4/"),l=a("PI0u"),u=a("P9l9"),p={components:{commonDetailTop:i.a},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",topMenuData:[{id:"1",name:"指标管理",path:"/quota?appIcon="+this.$route.query.appIcon},{id:"2",name:"月指标",path:""}],yearList:[],year:"",tableList:[],tabelHeader:[{prop:"yearMonth",label:"月份"},{prop:"totalPerformance",label:"月指标累计"},{prop:"totalStore",label:"门店总数"},{prop:"totalComplete",label:"门店指标完善数"}],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(e){e&&this.getYearList()}},methods:{handleSizeChange:function(e){this.pageSize=e,this.apiMonthPerformanceList()},handleCurrentChange:function(e){this.currentPage=e,this.apiMonthPerformanceList()},changeYear:function(){this.currentPage=1,this.apiMonthPerformanceList()},getYearList:function(){var e=this;return s()(n.a.mark(function t(){var a,r,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,n={brandId:a.brandId},Object(u.a)("/haoban-app-performance-web/performance/get-years",n);case 3:r=t.sent,1==(o=r.data).errorCode?(a.yearList=[],o.result&&o.result.length&&(o.result.forEach(function(e){a.yearList.push({id:e,label:e+"年"})}),a.year=o.result[0],a.apiMonthPerformanceList())):c.a.errorMsg(o);case 6:case"end":return t.stop()}var n},t,e)}))()},apiMonthPerformanceList:function(){var e=this;return s()(n.a.mark(function t(){var a,r,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,n={brandId:e.brandId,year:e.year},Object(u.a)("/haoban-app-performance-web/performance/query-month-performance",n);case 3:r=t.sent,1==(o=r.data).errorCode&&(o.result.length&&o.result.forEach(function(e){e.totalPerformance=Object(l.d)(Number(e.totalPerformance).toFixed(2))}),a.tableList=o.result||[]);case 6:case"end":return t.stop()}var n},t,e)}))()}},mounted:function(){this.$emit("showTab","11"),this.brandId&&this.getYearList()}},h={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"m-20"},[a("el-select",{staticClass:"m-b-23 w-123",on:{change:e.changeYear},model:{value:e.year,callback:function(t){e.year=t},expression:"year"}},[a("i",{staticClass:"el-input__icon el-icon-date",attrs:{slot:"prefix"},slot:"prefix"}),e._v(" "),e._l(e.yearList,function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.label}})})],2),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableList}},[e._l(e.tabelHeader,function(e,t){return a("el-table-column",{key:t,attrs:{label:e.label,prop:e.prop}})}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.settingStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.$router.push("/storeMonthTask?yearMonth="+t.row.yearMonth+"&appIcon="+e.$route.query.appIcon+" ")}}},[e._v("门店月指标")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.$router.push("/companyDaySet?yearMonth="+t.row.yearMonth+"&appIcon="+e.$route.query.appIcon)}}},[e._v("商户日权重")])]}}])})],2),e._v(" "),0!=e.tableList.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)],1)},staticRenderFns:[]};var d=a("VU/8")(p,h,!1,function(e){a("8kVC")},"data-v-46bca8a6",null);t.default=d.exports}});
\ No newline at end of file
webpackJsonp([79],{"WUA+":function(e,t){},lFAe:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i("//Fk"),a=i.n(s),l=i("gBtx"),n=i.n(l),d=i("mvHQ"),o=i.n(d),r=i("DAYN"),f=i.n(r),c=i("Isrn"),p=i("l46T"),m=i("fPyK"),u=[{parentCode:"defineInfo",fieldCode:"-1",fieldName:"单行输入框",systemFlag:!1,fieldEdited:1,fieldType:"0",fixed:!1,fieldDescription:"请输入",fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"多行输入框",systemFlag:!1,fieldEdited:1,fieldType:"1",fixed:!1,fieldDescription:"请输入",fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"单选框",systemFlag:!1,fieldEdited:1,fieldType:"2",fixed:!1,fieldDescription:"请选择",fieldOperations:{ruleContent:[],fieldContent:[{type:"radio",name:"选项1"},{type:"radio",name:"选项2"},{type:"radio",name:"选项3"}]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"多选框",systemFlag:!1,fieldEdited:1,fieldType:"3",fixed:!1,fieldDescription:"请选择",fieldOperations:{ruleContent:[],fieldContent:[{type:"checkbox",name:"选项1"},{type:"checkbox",name:"选项2"},{type:"checkbox",name:"选项3"}]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"日期",systemFlag:!1,fieldEdited:1,fieldType:"4",fixed:!1,fieldDescription:"请选择",fieldOperations:{typeValue:"yyyy-MM-dd",ruleContent:[{type:"radio",name:"年-月-日",key:"yyyy-MM-dd",isEdit:1},{type:"radio",name:"年-月",key:"yyyy-MM",isEdit:1}],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"日期区间",systemFlag:!1,fieldEdited:1,fieldType:"5",fixed:!1,fieldOperations:{startName:"开始时间",endName:"结束时间",startDescription:"请选择开始时间",endDescription:"请选择结束时间",typeValue:"yyyy-MM-dd",ruleContent:[{type:"radio",name:"年-月-日",key:"yyyy-MM-dd",isEdit:1},{type:"radio",name:"年-月",key:"yyyy-MM",isEdit:1}],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"数字输入框",systemFlag:!1,fieldType:"6",fieldEdited:1,fixed:!1,fieldDescription:"请输入",fieldOperations:{ruleContent:[],fieldContent:[],unit:"元"},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"图片",systemFlag:!1,fieldType:"7",fieldEdited:1,fixed:!1,fieldDescription:"最多上传9张图片",fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}}],v=function(){return u},C=i("3E4D"),g=i("Ch4/"),h=i("PI0u"),y=i("P9l9"),_={name:"staffRecordsTemplate",data:function(){return{activeName:"first",rightName:"first",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},leftDefineOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},selectKey:"",baseInfo:[],jobInfo:[],selfInfo:[],eduInfo:[],contractInfo:[],contactInfo:[],personalInfo:[],defineInfo:v(),currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"baseInfo",fieldName:"基本信息",fieldEdited:!1,fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"jobInfo",fieldName:"工作信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"selfInfo",fieldName:"个人信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"eduInfo",fieldName:"学历信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"contractInfo",fieldName:"合同信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"contactInfo",fieldName:"紧急联系人",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"personalInfo",fieldName:"个人资料",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""}],fieldParent:{baseInfo:{},jobInfo:{},selfInfo:{},eduInfo:{},contractInfo:{},contactInfo:{},personalInfo:{}},setList:[]}},created:function(){},methods:{baseInfoClone:function(){},clickItem:function(e){this.tempaletDataList.map(function(e){return e.fieldCode}).includes(e.parentCode)||"defineInfo"===e.parentCode||(this.tempaletDataList.push(this.fieldParent[e.parentCode]),this.tempaletDataList=JSON.parse(o()(this.tempaletDataList)))},checkMove:function(e){var t=!0;return"baseInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("baseInfo")||(t=!1),"jobInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("jobInfo")||(t=!1),"selfInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("selfInfo")||(t=!1),"eduInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("eduInfo")||(t=!1),"contractInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("contractInfo")||(t=!1),"contactInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("contactInfo")||(t=!1),"personalInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("personalInfo")||(t=!1),t},onMove:function(e){return!!this.checkMove(e)&&!e.draggedContext.element.fixed},onChildMove:function(e){return-1!=e.dragged.className.indexOf("block-class")&&e.to.className.indexOf("block-wrap"),!0},itemMoveEnd:function(e){var t=this;t.isDragging=!1,t.selectKey="",t.selectKey=e.clone.dataset.type,t.tempaletDataList.forEach(function(e,i){e.children.forEach(function(e,i){var s;e.systemFlag&&e.fieldCode==t.selectKey&&(s=e.parentCode,t[s].forEach(function(e,i){e.fieldCode==t.selectKey&&(e.fixed=!0)}))})}),t.selectKey="",t.tempaletDataList=JSON.parse(o()(t.tempaletDataList)),t.$forceUpdate()},selectItem:function(e,t){this.currentIndex=t,this.currentChildIndex=null},deleteItem:function(e,t){this.tempaletDataList.splice(t,1),this.currentIndex--,this.currentIndex<=0&&(this.currentIndex=0),this[e].forEach(function(e,t){e.fixed=!1})},addDragItem:function(e){return!1},selectChildItem:function(e,t,i,s){this.currentIndex=null,this.currentChildKey=e,this.childIndex=t,this.currentChildIndex=i},deleteChildItem:function(e,t,i,s,a){this.childIndex=t,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[t].children[i].fieldCode,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(o()(this.tempaletDataList)),this.tempaletDataList[t].children.splice(i,1),this[a.parentCode].forEach(function(t,i){t.fieldCode===e&&(t.fixed=!1)})},delChildItem:function(e,t,i){i.fieldOperations.fieldContent.splice(t,1)},addChildItem:function(e,t,i){if(19!=t){var s="radio";i.systemFlag||3!==parseInt(i.fieldType)||(s="checkbox"),i.fieldOperations.fieldContent.push({type:s,name:"请输入选项"});var a=i.fieldOperations.fieldContent.map(function(e){return e.name});this.isRepeat(a)&&(i.fieldOperations.fieldContent.splice(i.fieldOperations.fieldContent.length-1,1),a.splice(i.fieldOperations.fieldContent.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},isRepeat:function(e){var t={};for(var i in e){if(t[e[i]])return!0;t[e[i]]=!0}return!1},changeRoute:function(e){this.$router.push(e)},checkTag:function(e){var t={filedFlag:!0,filedRepeat:!1},i=[];return e.forEach(function(e,s){if(""==e.fieldName)return t.filedFlag=!1,t.name=e.fieldName||"",!1;e.children.length&&e.children.forEach(function(e,s){if(e.systemFlag&&""==e.fieldName)return t.filedFlag=!1,t.name=e.fieldName||"",!1;i.push(e.fieldName)})}),this.isRepeat(i)&&(t.filedRepeat=!0),t},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},saveAndBack:Object(h.a)(function(e){var t=JSON.parse(o()(this.tempaletDataList)),i=this.checkTag(t),s=[];if(i.filedFlag)if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(t.forEach(function(e,t){e.sort=t,e.fixed=!0===e.fixed?1:0,e.isMust=!0===e.isMust?1:0,e.systemFlag=!0===e.systemFlag?1:0,e.parentFieldTemplateId=e.parentFieldTemplateId?e.parentFieldTemplateId:-1,e.fieldTemplateId=e.fieldTemplateId?e.fieldTemplateId:-1,e.children.forEach(function(t,i){s.push(t),t.sort=i,t.fixed=!0===t.fixed?1:0,t.isMust=!0===t.isMust?1:0,t.systemFlag=!0===t.systemFlag?1:0,e.systemFlag||(t.fieldEdited=1),2!==parseInt(t.fieldType)&&3!==parseInt(t.fieldType)||t.fieldOperations.fieldContent.forEach(function(e,i){e.key=String(e.key)?String(e.key):"",t.systemFlag||e.hasOwnProperty("key")&&""!=e.key&&"undefined"!=e.key||(e.key=e.name)}),t.systemFlag||(t.parentCode=e.fieldCode),t.fieldTemplateId=t.fieldTemplateId?t.fieldTemplateId:-1,t.parentFieldTemplateId=e.fieldTemplateId})}),s.length>40)return this.$message.error({duration:1e3,message:"最多设置 40 个字段"}),!1;"save"===e?this.saveAllData(t):this.postPreview(t)}else this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"})},500),saveAllData:function(e){var t=this,i={templateContent:o()(e)};Object(y.e)("/haoban-manage-web/record/record-template-save.json",i).then(function(e){var i=e.data;if(1==i.errorCode)return C.a.showmsg("保存成功","success"),void t.changeRoute("/fileSet");g.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},postPreview:function(e){var t=this,i={templateContent:o()(e)};Object(y.e)("/haoban-manage-web/record/record-template-preview.json",i).then(function(e){var i=e.data;if(1==i.errorCode){var s=window.location.origin+"/office-mobile/#/staffRecordsTemplate?enterpriseId="+i.result;return t.$refs.qrcodePreview.qrcode(s,"record"),void(t.dialogVisible=!0)}g.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},closeDialog:function(){this.dialogVisible=!1},getAllFields:function(){var e=this;Object(y.e)("/haoban-manage-web/record/employee-find-system-template.json",{}).then(function(t){var i=t.data;1!=i.errorCode?g.a.errorMsg(i):e.handleAllFields(i.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAllFields:function(e){var t=this;e.forEach(function(e,i){t.hasOwnProperty(e.parentCode)&&(e.fixed=1===parseInt(e.fixed),e.isMust=1===parseInt(e.isMust),e.systemFlag=!0,e.fieldOperations=e.fieldOperations?JSON.parse(e.fieldOperations):{},e.staffRecordsIds=e.staffRecordsIds?JSON.parse(e.staffRecordsIds):[],t[e.parentCode].push(e)),t.fieldParent.hasOwnProperty(e.fieldCode)&&(e.children=[],t.fieldParent[e.fieldCode]=e,e.systemFlag=!0)})},getInfo:function(){var e=this;Object(y.e)("/haoban-manage-web/record/employee-find-template.json",{}).then(function(t){var i=t.data;if(1==i.errorCode)return e.setList=[],void(i.result&&i.result.length&&e.handleGetInfo(i.result));g.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){var t=e.filter(function(t){var i=e.filter(function(e){return t.fieldCode==e.parentCode});return i.length>0?t.children=i:t.children=[],0==t.parentCode});return t.sort(function(e,t){return e.sort-t.sort}),t.forEach(function(e,t){e.children&&e.children.length&&e.children.sort(function(e,t){return e.sort-t.sort})}),t},handleGetInfo:function(e){var t=this,i=JSON.parse(o()(e));t.setParent=[],i.forEach(function(e,i){e.fixed=1===n()(e.fixed),e.isMust=1===n()(e.isMust),e.systemFlag=1===n()(e.systemFlag),e.fieldOperations=e.fieldOperations?JSON.parse(e.fieldOperations):{},e.staffRecordsIds=e.staffRecordsIds?JSON.parse(e.staffRecordsIds):[],e.systemFlag&&0==e.parentCode&&t.setParent.push(e.fieldCode),e.systemFlag&&0!=e.parentCode&&t.setList.push(e.fieldCode)}),t.tempaletDataList=t.treeData(i),setTimeout(function(){t.setFixed()},100)},setFixed:function(){var e=this;e.setParent.forEach(function(t,i){e[t].forEach(function(t,i){e.setList.includes(t.fieldCode)&&(t.fixed=!0)})})}},watch:{isDragging:function(e){var t=this;e?t.delayedDragging=!0:t.$nextTick(function(){t.delayedDragging=!1})}},components:{draggable:f.a,AddInput:c.a,limitInput:p.a,qrcodeDialog:m.a},mounted:function(){a.a.all([this.getAllFields(),this.getInfo()]),document.body.ondrop=function(e){e.preventDefault(),e.stopPropagation()}}},I={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"template-wrap",style:{height:e.bodyHeight}},[s("div",{staticClass:"template-contain"},[s("div",{staticClass:"template-head"},[e._m(0),e._v(" "),s("div",{staticClass:"template-btns flex-1 flex-r"},[s("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.saveAndBack("preview")}}},[e._v("预 览")]),e._v(" "),s("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.changeRoute("/fileSet")}}},[e._v("返 回")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveAndBack("save")}}},[e._v("保存并启用")])],1)]),e._v(" "),s("div",{staticClass:"template-body"},[s("div",{staticClass:"template-cell template-cell-l"},[s("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"系统字段",name:"first"}},[s("div",{staticClass:"filed-item-title"},[e._v("基本信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list1",list:e.baseInfo,options:e.leftOption,move:e.onMove},on:{clone:e.baseInfoClone,start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.baseInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode,"aria-hidden":"true"},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("工作信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list2",list:e.jobInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.jobInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("个人信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list3",list:e.selfInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.selfInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("学历信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list4",list:e.eduInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.eduInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("合同信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.contractInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.contractInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("紧急联系人")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.contactInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.contactInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("个人材料")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.personalInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.personalInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1)]),e._v(" "),s("el-tab-pane",{attrs:{label:"自定义字段",name:"second"}},[s("div",{staticClass:"filed-item-title"}),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.defineInfo,options:e.leftDefineOption,move:e.onChildMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.defineInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[t.systemFlag||0!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||1!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||2!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||3!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||4!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||5!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||6!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||7!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||0!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-one"}),e._v(" "),t.systemFlag||1!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-two"}),e._v(" "),t.systemFlag||2!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-three"}),e._v(" "),t.systemFlag||3!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-four"}),e._v(" "),t.systemFlag||4!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-five"}),e._v(" "),t.systemFlag||5!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-six"}),e._v(" "),t.systemFlag||6!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-seven"}),e._v(" "),t.systemFlag||7!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-eight"})])}))],1)])],1)],1),e._v(" "),s("div",{staticClass:"template-cell template-cell-m"},[s("div",{staticClass:"phone-view"},[s("div",{staticClass:"phone-show-content"},[s("div",{staticClass:"drag-show-content"},[s("div",{staticClass:"view-container"},[s("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==e.tempaletDataList.length?[s("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:e._e(),e._v(" "),s("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!1},sort:!0}},model:{value:e.tempaletDataList,callback:function(t){e.tempaletDataList=t},expression:"tempaletDataList"}},e._l(e.tempaletDataList,function(t,i){return s("li",{key:"li1"+i,class:["filed-item",e.currentIndex==i?"active-item":"","li-block"],on:{click:function(s){e.selectItem(t.fieldCode,i)}}},["baseInfo"!=t.fieldCode&&"jobInfo"!=t.fieldCode&&"selfInfo"!=t.fieldCode?s("span",{staticClass:"item-close p-item-close",on:{click:function(s){s.stopPropagation(),e.deleteItem(t.fieldCode,i)}}},[s("i",{staticClass:"el-icon-close"})]):e._e(),e._v(" "),[s("div",{staticClass:"block"},[s("div",{staticClass:"block-head"},[s("div",{class:["opencard-item-title",t.fieldName.length>6?"block-pre-wrap":""]},[e._v(e._s(t.fieldName))])]),e._v(" "),s("ul",{staticClass:"view-content"},[s("draggable",{class:["drag-wrap","block-wrap",t.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:e.addDragItem},model:{value:t.children,callback:function(i){e.$set(t,"children",i)},expression:"item.children"}},e._l(t.children,function(a,l){return s("li",{key:"li"+l,class:["filed-item","child-filed-item",e.currentChildKey==a.fieldCode&&e.currentChildIndex==l?"active-item":""],on:{click:function(s){s.stopPropagation(),e.selectChildItem(a.fieldCode,i,l,t.children)}}},["clerkPhone"!=a.fieldCode&&"clerkName"!=a.fieldCode&&"groupName"!=a.fieldCode&&"clerkCode"!=a.fieldCode&&"positionName"!=a.fieldCode&&"clerkType"!=a.fieldCode&&"clerkStatus"!=a.fieldCode&&"sex"!=a.fieldCode&&"hireDate"!=a.fieldCode&&"nation"!=a.fieldCode?s("span",{staticClass:"item-close child-item-close",on:{click:function(s){s.stopPropagation(),e.deleteChildItem(a.fieldCode,i,l,t.children,a)}}},[s("i",{staticClass:"el-icon-close"})]):e._e(),e._v(" "),2==a.fieldType||3==a.fieldType||4==a.fieldType?s("div",{staticClass:"flex"},[s("div",{class:["opencard-item-title",a.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(a.fieldDescription)+" "),s("i",{staticClass:"el-icon-arrow-right"})])])]):e._e(),e._v(" "),5==a.fieldType?s("div",{staticClass:"flex flex-column"},[s("div",[s("div",{class:["opencard-item-title",a.fieldOperations.startName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldOperations.startName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(a.fieldOperations.startDescription)),s("i",{staticClass:"el-icon-arrow-right"})])])]),e._v(" "),s("div",{staticClass:"b-t-1"},[s("div",{class:["opencard-item-title",a.fieldOperations.endName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldOperations.endName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(a.fieldOperations.endDescription)),s("i",{staticClass:"el-icon-arrow-right"})])])])]):e._e(),e._v(" "),7==a.fieldType?s("div",{staticClass:"flex"},[s("div",{class:["opencard-item-title",a.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[s("i",{staticClass:"iconfont icon-icon"})])])]):e._e(),e._v(" "),0==a.fieldType||1==a.fieldType||6==a.fieldType?s("div",[s("div",{class:["opencard-item-title",a.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag"},[e._v(e._s(a.fieldDescription))])])]):e._e()])}))],1)])]],2)}))],2)])])])])]),e._v(" "),s("div",{staticClass:"template-cell template-cell-r"},[s("el-tabs",{model:{value:e.rightName,callback:function(t){e.rightName=t},expression:"rightName"}},[s("el-tab-pane",{attrs:{label:"控件设置",name:"first"}},[s("div",{attrs:{id:"edit-box"}},[s("div",{staticClass:"edit-view baby-info-flag baby-info"},[e._l(e.tempaletDataList,function(t,i){return[e.currentIndex==i&&"0"==t.parentCode?[s("div",{key:"parent"+i,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("标题")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldName,holder:"",disflag:!0,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"fieldName",i)}}})],1)]:e._e(),e._v(" "),e.childIndex==i&&t.children&&t.children.length?[e._l(t.children,function(t,a){return[e.currentChildIndex==a?[s("div",{key:"child"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("标题")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldName,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"fieldName",i)}}}),e._v(" "),7==t.fieldType?s("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[e._v("\n "+e._s(t.fieldDescription)+"\n ")]):e._e()],1)]:e._e(),e._v(" "),e.currentChildIndex==a&&5!=t.fieldType&&7!=t.fieldType?[s("div",{key:"child1"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("提示文字")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldDescription,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t,"fieldDescription",i)}}})],1)]:e._e(),e._v(" "),e.currentChildIndex==a&&5==t.fieldType?[s("div",{key:"child2"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("开始时间")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.startName,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"startName",i)}}})],1),e._v(" "),s("div",{key:"child3"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("提示文字")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.startDescription,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"startDescription",i)}}})],1),e._v(" "),s("div",{key:"child4"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("结束时间")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.endName,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"endName",i)}}})],1),e._v(" "),s("div",{key:"child5"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("提示文字")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.endDescription,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"endDescription",i)}}})],1)]:e._e(),e._v(" "),e.currentChildIndex==a&&6==t.fieldType?[s("div",{key:"child6"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("单位")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"unit",i)}}})],1)]:e._e(),e._v(" "),e.currentChildIndex!=a||4!=t.fieldType&&5!=t.fieldType?e._e():[s("div",{key:"child7"+a,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title"},[e._v("日期类型")]),e._v(" "),e._l(t.fieldOperations.ruleContent,function(i,a){return[s("el-radio",{key:"child8"+a,attrs:{label:i.key},model:{value:t.fieldOperations.typeValue,callback:function(i){e.$set(t.fieldOperations,"typeValue",i)},expression:"childItem.fieldOperations.typeValue"}},[e._v("\n "+e._s(i.name)+"\n ")])]})],2)],e._v(" "),e.currentChildIndex!=a||"2"!=t.fieldType&&"3"!=t.fieldType?e._e():[s("div",{key:"child9"+a,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title"},[e._v("选项 "),t.systemFlag?e._e():s("span",[e._v("最多20项,每项最多10个字")])]),e._v(" "),e._l(t.fieldOperations.fieldContent,function(a,l){return[s("div",{key:"child10"+l,staticClass:"margin-t-15 limit-w-340",style:0==l?"margin-top: 0":""},[s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:a.name,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){e.$set(a,"name",t)}}}),e._v(" "),!t.systemFlag&&t.fieldOperations.fieldContent.length>1?s("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(s){e.delChildItem(i,l,t)}}}):e._e(),e._v(" "),!t.systemFlag&&l<19?[l==t.fieldOperations.fieldContent.length-1?s("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(s){e.addChildItem(i,l,t)}}}):e._e()]:e._e()],2)]})],2)],e._v(" "),e.currentChildIndex==a?[s("div",{key:"child11"+a,staticClass:"edit-item"},[s("div",{staticClass:"edit-item-title"},[e._v("验证")]),e._v(" "),s("el-checkbox",{model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"childItem.isMust"}},[e._v("必填")])],1)]:e._e(),e._v(" "),e.currentChildIndex==a?[s("div",{key:"parent2"+a,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title"},[e._v("员工档案中")]),e._v(" "),s("div",{staticClass:"staffRecords-limit"},[s("el-radio",{staticClass:"label-cell",attrs:{disabled:"clerkPhone"==t.fieldCode||"groupName"==t.fieldCode||"clerkCode"==t.fieldCode||"positionName"==t.fieldCode,label:"1"},model:{value:t.staffRecordsIds.staffVisible,callback:function(i){e.$set(t.staffRecordsIds,"staffVisible",i)},expression:"childItem.staffRecordsIds.staffVisible"}},[e._v("对员工可见")]),e._v(" "),s("el-radio",{staticClass:"label-cell",attrs:{disabled:"clerkPhone"==t.fieldCode||"groupName"==t.fieldCode||"clerkCode"==t.fieldCode||"positionName"==t.fieldCode,label:"0"},model:{value:t.staffRecordsIds.staffVisible,callback:function(i){e.$set(t.staffRecordsIds,"staffVisible",i)},expression:"childItem.staffRecordsIds.staffVisible"}},[e._v("对员工不可见")])],1),e._v(" "),s("div",{staticClass:"staffRecords-limit"},[s("el-radio",{staticClass:"label-cell",attrs:{disabled:"clerkPhone"==t.fieldCode||"groupName"==t.fieldCode||"clerkCode"==t.fieldCode||"positionName"==t.fieldCode,label:"1"},model:{value:t.staffRecordsIds.staffModify,callback:function(i){e.$set(t.staffRecordsIds,"staffModify",i)},expression:"childItem.staffRecordsIds.staffModify"}},[e._v("对员工可修改")]),e._v(" "),s("el-radio",{staticClass:"label-cell",attrs:{disabled:"clerkPhone"==t.fieldCode||"groupName"==t.fieldCode||"clerkCode"==t.fieldCode||"positionName"==t.fieldCode,label:"0"},model:{value:t.staffRecordsIds.staffModify,callback:function(i){e.$set(t.staffRecordsIds,"staffModify",i)},expression:"childItem.staffRecordsIds.staffModify"}},[e._v("对员工不可修改")])],1)])]:e._e()]})]:e._e()]})],2)])])],1)],1)])]),e._v(" "),s("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"template-title flex-1"},[t("img",{attrs:{src:i("LbEI"),alt:"logo"}}),this._v(" "),t("span",{staticClass:"template-title-span"},[this._v("员工档案设置")])])}]};var x=i("VU/8")(_,I,!1,function(e){i("WUA+")},"data-v-435fce66",null);t.default=x.exports}});
\ No newline at end of file
webpackJsonp([101],{"/NA0":function(e,t){},0:function(e,t,n){n("j1ja"),e.exports=n("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(a){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){a(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("mvHQ"),r=n.n(a),o=n("fZjL"),p=n.n(o),i=(n("j1ja"),n("hKoQ")),s=n.n(i),c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var m=n("VU/8")({name:"App",data:function(){return{}}},c,!1,function(e){n("/NA0")},null,null).exports,d=n("lRwf"),u=n.n(d),l=n("pRNm"),h=n.n(l),v=n("5tgt"),g=n.n(v);u.a.use(h.a);var A=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var f,y=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:g()("login","index")},{path:"/download",name:"下载",component:g()("download","index")},{path:"/index",name:"index",component:g()("index","index")},{path:"/sign",name:"index",component:g()("sign","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:g()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:g()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:g()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:g()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:g()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:g()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:g()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:g()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:g()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:g()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:g()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:g()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:g()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:g()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:g()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:g()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:g()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:g()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",redirect:"appcenter",component:g()("enterpriseApp","index"),children:[{path:"/appcenter",name:"企业应用中心",component:g()("enterpriseApp","appcenter")},{path:"/mycustomer",name:"我的顾客的",redirect:"/memeberBaseSet",component:g()("enterpriseApp/myCustomer","index"),children:[{path:"/memeberBaseSet",name:"会员基础设置",component:g()("enterpriseApp/myCustomer","memeberBaseSet")},{path:"/onlineChatSet",name:"在线沟通设置",component:g()("enterpriseApp/myCustomer","onlineChatSet")},{path:"/chatRecord",name:"聊天记录",component:g()("enterpriseApp/myCustomer","chatRecord")},{path:"/sendRecord",name:"发送记录",component:g()("enterpriseApp/myCustomer","sendRecord")},{path:"/newCard",name:"新建卡券",component:g()("enterpriseApp/myCustomer","newCard")},{path:"/cardSendRecord",name:"卡券发送记录",component:g()("enterpriseApp/myCustomer","cardSendRecord")},{path:"/cardGetRecord",name:"卡券领取卡券",component:g()("enterpriseApp/myCustomer","cardGetRecord")}]},{path:"/marketing",name:"营销素材",redirect:"/imageText",component:g()("enterpriseApp/marketingMaterial","index"),children:[{path:"/imageText",name:"图文素材",component:g()("enterpriseApp/marketingMaterial","imageText")},{path:"/newImageText",name:"选择图文",component:g()("enterpriseApp/marketingMaterial","newImageText")},{path:"/enjoyMaterial",name:"纷享素材",component:g()("enterpriseApp/marketingMaterial","enjoyMaterial")},{path:"/newEnjoy",name:"新建素材",component:g()("enterpriseApp/marketingMaterial","newEnjoy")}]},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:g()("enterpriseApp/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:g()("enterpriseApp/cloudDaily","dailyRecord")},{path:"/dailyDetail",name:"日报详情",component:g()("enterpriseApp/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:g()("enterpriseApp/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:g()("enterpriseApp/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:g()("enterpriseApp/cloudDaily","customReport")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:g()("enterpriseApp/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:g()("enterpriseApp/trafficTask","taskRecord")},{path:"/taskDetail",name:"话务任务详情",component:g()("enterpriseApp/trafficTask","taskDetail")},{path:"/taskViewDetail",name:"话务任务详情",component:g()("enterpriseApp/trafficTask","taskViewDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:g()("enterpriseApp/trafficTask","trafficTaskSet")},{path:"/badEvaluateSet",name:"不良评价设置",component:g()("enterpriseApp/badEvaluate","badEvaluateSet")}]},{path:"/noticeList",name:"企业公告",redirect:"/noticeList",component:g()("enterpriseApp/notice","index"),children:[{path:"/noticeList",name:"企业公告列表",component:g()("enterpriseApp/notice","noticeList")},{path:"/addNotice",name:"新建公告",component:g()("enterpriseApp/notice","addNotice")}]},{path:"/badEvaluate",name:"不良评价",redirect:"/badEvaluateRecord",component:g()("enterpriseApp/badEvaluate","index"),children:[{path:"/badEvaluateRecord",name:"不良评价记录",component:g()("enterpriseApp/badEvaluate","badEvaluateRecord")},{path:"/badEvaluateDetail",name:"不良评价详情",component:g()("enterpriseApp/badEvaluate","badEvaluateDetail")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:g()("enterpriseApp/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:g()("enterpriseApp/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:g()("enterpriseApp/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:g()("enterpriseApp/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:g()("enterpriseApp/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:g()("enterpriseApp/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:g()("enterpriseApp/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/signList",name:"企业公告",redirect:"/signList",component:g()("enterpriseApp/signApp","index"),children:[{path:"/signList",name:"企业公告列表",component:g()("enterpriseApp/signApp","signList")}]},{path:"/clockin",name:"考勤打卡",redirect:"/dayStatistics",component:g()("enterpriseApp/dailyAttendance","index"),children:[{path:"/dayStatistics",name:"日统计",component:g()("enterpriseApp/dailyAttendance","dayStatistics")},{path:"/workSet",name:"考勤设置",component:g()("enterpriseApp/dailyAttendance","workSet")},{path:"/workGroupSet",name:"考勤设置",component:g()("enterpriseApp/dailyAttendance","workGroupSet")},{path:"/workTimeManage",name:"排班管理",component:g()("enterpriseApp/dailyAttendance","workTimeManage")}]}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:g()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:g()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:g()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:g()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:g()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:g()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:g()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:g()("setting","storePermission")},{path:"/contactPermission",name:"通讯录控制",component:g()("setting","contactPermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:g()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:g()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:g()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:g()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:g()("contacts","staffRecordsTemplate")},{path:"/systemReportSet",name:"系统报表设置",component:g()("enterpriseApp/cloudDaily","systemReportSet")},{path:"/template",name:"模板设置",component:g()("enterpriseApp/cloudDaily","template")},{path:"/gic-error",name:"gic跳转失败页",component:g()("errorPage","gic-error")},{path:"/403",name:"无权访问",component:A},{path:"/404",name:"error404",component:A},{path:"/500",name:"error500",component:A},{path:"*",redirect:"/404",hidden:!0}],k=new h.a({routes:y,scrollBehavior:function(){return{y:0}}}),w=n("zL8q"),D=n.n(w),x=n("Rf8U"),S=n.n(x),R=n("mtWM"),C=n.n(R),T=n("bOdI"),M=n.n(T),E=n("SJI6"),b=n.n(E);u.a.use(b.a);var I=new b.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(f={},M()(f,"login",function(e,t){sessionStorage.token=t,e.token=t}),M()(f,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),M()(f,"title",function(e,t){e.title=t}),M()(f,"show",function(e,t){e.show=t}),f)}),j=(n("4qCZ"),n("uKUT"),n("Xcu2"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var n=new Date(e),a={"M+":n.getMonth()+1,"D+":n.getDate(),W:"日一二三四五六".charAt(n.getDay()),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var r in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),a)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?a[r]:("00"+a[r]).substr((""+a[r]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,o=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+r+"-"+a+" "+o+":"+p+":"+i}},timeStampToYmd:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n;return t.getFullYear()+"-"+r+"-"+a}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,o=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+r+"."+a+" "+o+":"+p+":"+i}}}),V=n("TUaa"),q=n.n(V),P=n("tyqE"),G=n.n(P),H=n("pRVe"),L=n.n(H),F=n("SE7k"),O=n.n(F),N=n("XsK6"),z=n.n(N),Y=n("QRL9"),J=n.n(Y),K=n("2Pnh"),B=n.n(K),U=n("l9mu"),X=n.n(U),Q={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;B()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,a=t.height,r=n/592.28*841.89,o=a,p=0,i=592.28/n*a,s=t.toDataURL("image/jpeg",1),c=new X.a("","pt","a4");if(o<r)c.addImage(s,"JPEG",0,0,595.28,i);else for(;o>0;)c.addImage(s,"JPEG",0,p,595.28,i),p-=841.89,(o-=r)>0&&c.addPage();c.save(e+".pdf")})}}},Z=n("/IwO"),W=n.n(Z);s.a.polyfill(),Vue.use(W.a),W.a.initAMapApiLoader({key:"d53a58848be368a7398dc56d5670fe9c",plugin:["Autocomplete","PlaceSearch","Scale","OverView","Geocoder","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"}),Vue.use(Q),Vue.use(z.a),Vue.use(J.a),Vue.use(O.a),Vue.use(L.a),Vue.use(G.a),Vue.use(q.a),Vue.config.productionTip=!1,Vue.use(D.a,{size:"large"}),Vue.use(S.a,C.a),Vue.axios.defaults.withCredentials=!0,p()(j).forEach(function(e){Vue.filter(e,j[e])}),k.beforeEach(function(e,t,n){var a=void 0,o=window.location.origin;a=-1!=o.indexOf("localhost")?"http://www.gicdev.com":o,localStorage.getItem("userInfo")||C.a.get(a+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode||localStorage.setItem("userInfo",r()(t.result))}).catch(function(e){w.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:k,store:I,components:{App:m},template:"<App/>"})},Opzk:function(e,t,n){var a={"./contacts/addClerk.vue":["27o1",0,23],"./contacts/addDepartment.vue":["HHRu",0,21],"./contacts/addEmployee.vue":["00Sv",60],"./contacts/addGroup.vue":["mPjx",0,70],"./contacts/administrativeFrame.vue":["kLcy",0,4],"./contacts/employee.vue":["AdJp",0,59],"./contacts/employeeIo.vue":["Rwbg",0,82],"./contacts/employeeRecord.vue":["zGJY",0,9],"./contacts/fileSet.vue":["CSjr",0,11],"./contacts/index.vue":["41Rh",0,67],"./contacts/recordInfo.vue":["67iC",0,17],"./contacts/recordIo.vue":["738z",0,25],"./contacts/recycle.vue":["HkK0",0,37],"./contacts/shareAddDepartment.vue":["q5Ri",0,20],"./contacts/shareCode.vue":["JsWW",0,43],"./contacts/shareContact.vue":["Gfms",0,3],"./contacts/staffRecordsTemplate.vue":["lFAe",0,79],"./contacts/storeFrame.vue":["7SJI",0,6],"./contacts/storeInfo.vue":["h/6A",0,57],"./contacts/storeIo.vue":["RHxA",0,88],"./contacts/unemployee.vue":["TGrv",0,19],"./download/index.vue":["ASGJ",0,8],"./enterpriseApp/appcenter.vue":["yuVF",0,39],"./enterpriseApp/badEvaluate/badEvaluateDetail.vue":["4m/B",0,58],"./enterpriseApp/badEvaluate/badEvaluateRecord.vue":["r//C",0,52],"./enterpriseApp/badEvaluate/badEvaluateSet.vue":["XzAK",0,76],"./enterpriseApp/badEvaluate/index.vue":["W0k8",0,50],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",0,86],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",0,65],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",0,41],"./enterpriseApp/cloudDaily/index.vue":["Knd1",0,98],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",0,42],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",0,7],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",0,83],"./enterpriseApp/cloudDaily/template.vue":["IA9l",0,5],"./enterpriseApp/cloudDaily/template/block.vue":["PAYw",54],"./enterpriseApp/cloudDaily/template/date-range.vue":["79Bk",96],"./enterpriseApp/cloudDaily/template/image.vue":["H8Kg",62],"./enterpriseApp/cloudDaily/template/input.vue":["s4D+",72],"./enterpriseApp/cloudDaily/template/select.vue":["t0b0",81],"./enterpriseApp/dailyAttendance/dayStatistics.vue":["gncU",0,40],"./enterpriseApp/dailyAttendance/index.vue":["vgwM",0,89],"./enterpriseApp/dailyAttendance/monthStatistics.vue":["z8Gq",99],"./enterpriseApp/dailyAttendance/workGroupSet.vue":["estW",0,14],"./enterpriseApp/dailyAttendance/workSet.vue":["A/XQ",0,31],"./enterpriseApp/dailyAttendance/workTimeManage.vue":["/n/x",0,33],"./enterpriseApp/index.vue":["da9f",51],"./enterpriseApp/marketingMaterial/enjoyMaterial.vue":["SB6x",0,26],"./enterpriseApp/marketingMaterial/imageText.vue":["0qiV",0,24],"./enterpriseApp/marketingMaterial/index.vue":["m0O4",0,68],"./enterpriseApp/marketingMaterial/newEnjoy.vue":["7fkC",0,18],"./enterpriseApp/marketingMaterial/newImageText.vue":["NajC",0,15],"./enterpriseApp/myCustomer/cardGetRecord.vue":["YqmZ",0,75],"./enterpriseApp/myCustomer/cardSendRecord.vue":["+Q5U",0,95],"./enterpriseApp/myCustomer/chatRecord.vue":["gjw3",0,56],"./enterpriseApp/myCustomer/index.vue":["/rje",0,97],"./enterpriseApp/myCustomer/memeberBaseSet.vue":["N+Or",0,47],"./enterpriseApp/myCustomer/newCard.vue":["G/J9",0,94],"./enterpriseApp/myCustomer/onlineChatSet.vue":["ahzF",0,28],"./enterpriseApp/myCustomer/sendRecord.vue":["8msp",0,85],"./enterpriseApp/mycustomer.vue":["cuIN",0,48],"./enterpriseApp/notice/addNotice.vue":["G5PL",0,2],"./enterpriseApp/notice/index.vue":["av/3",0,66],"./enterpriseApp/notice/noticeList.vue":["OVYO",0,13],"./enterpriseApp/quota/companyDaySet.vue":["xk7v",0,46],"./enterpriseApp/quota/index.vue":["FB5x",0,87],"./enterpriseApp/quota/monthList.vue":["ZxDn",0,78],"./enterpriseApp/quota/monthTask.vue":["cK0D",0,84],"./enterpriseApp/quota/monthTaskDetail.vue":["jMbb",0,77],"./enterpriseApp/quota/salerMonthDetail.vue":["IKv2",0,63],"./enterpriseApp/quota/storeMonthTask.vue":["kF1j",0,45],"./enterpriseApp/signApp/index.vue":["Gk4o",0,71],"./enterpriseApp/signApp/signList.vue":["kCy7",0,64],"./enterpriseApp/trafficTask/index.vue":["e88N",0,69],"./enterpriseApp/trafficTask/taskDetail.vue":["A33E",0,49],"./enterpriseApp/trafficTask/taskRecord.vue":["iG3v",0,34],"./enterpriseApp/trafficTask/taskViewDetail.vue":["Akas",0,74],"./enterpriseApp/trafficTask/trafficTaskSet.vue":["4H54",0,61],"./errorPage/403.vue":["6XGN",35],"./errorPage/404.vue":["AejC",38],"./errorPage/500.vue":["FskK",29],"./errorPage/gic-error.vue":["Q3j/",32],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,36],"./login/index.vue":["T+/8",0,10],"./reviewCenter/index.vue":["+lem",91],"./reviewCenter/reviewed.vue":["CLYF",0,22],"./reviewCenter/unreview.vue":["xCEU",0,12],"./setting/addAdmin.vue":["rs/A",0,55],"./setting/addAdminRole.vue":["fZsz",0,80],"./setting/companyAddress.vue":["SKyE",0,53],"./setting/companyCertify.vue":["3zYh",0,16],"./setting/contactPermission.vue":["6zFj",0,73],"./setting/index.vue":["VlR1",44],"./setting/replaceAdmin.vue":["ys9I",0,90],"./setting/setChildAdmin.vue":["VqB7",0,92],"./setting/staffDetails.vue":["Zyzf",0,30],"./setting/storePermission.vue":["Xwfy",0,27],"./sign/index.vue":["RQuk",0,93]};function r(e){var t=a[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}r.keys=function(){return Object.keys(a)},r.id="Opzk",e.exports=r},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file
webpackJsonp([101],{"/NA0":function(e,t){},0:function(e,t,n){n("j1ja"),e.exports=n("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(a){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){a(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("mvHQ"),r=n.n(a),o=n("fZjL"),p=n.n(o),i=(n("j1ja"),n("hKoQ")),s=n.n(i),c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var m=n("VU/8")({name:"App",data:function(){return{}}},c,!1,function(e){n("/NA0")},null,null).exports,d=n("lRwf"),u=n.n(d),l=n("pRNm"),h=n.n(l),v=n("5tgt"),g=n.n(v);u.a.use(h.a);var A=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var f,y=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:g()("login","index")},{path:"/download",name:"下载",component:g()("download","index")},{path:"/index",name:"index",component:g()("index","index")},{path:"/sign",name:"index",component:g()("sign","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:g()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:g()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:g()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:g()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:g()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:g()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:g()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:g()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:g()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:g()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:g()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:g()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:g()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:g()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:g()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:g()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:g()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:g()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",redirect:"appcenter",component:g()("enterpriseApp","index"),children:[{path:"/appcenter",name:"企业应用中心",component:g()("enterpriseApp","appcenter")},{path:"/mycustomer",name:"我的顾客的",redirect:"/memeberBaseSet",component:g()("enterpriseApp/myCustomer","index"),children:[{path:"/memeberBaseSet",name:"会员基础设置",component:g()("enterpriseApp/myCustomer","memeberBaseSet")},{path:"/onlineChatSet",name:"在线沟通设置",component:g()("enterpriseApp/myCustomer","onlineChatSet")},{path:"/chatRecord",name:"聊天记录",component:g()("enterpriseApp/myCustomer","chatRecord")},{path:"/sendRecord",name:"发送记录",component:g()("enterpriseApp/myCustomer","sendRecord")},{path:"/newCard",name:"新建卡券",component:g()("enterpriseApp/myCustomer","newCard")},{path:"/cardSendRecord",name:"卡券发送记录",component:g()("enterpriseApp/myCustomer","cardSendRecord")},{path:"/cardGetRecord",name:"卡券领取卡券",component:g()("enterpriseApp/myCustomer","cardGetRecord")}]},{path:"/marketing",name:"营销素材",redirect:"/imageText",component:g()("enterpriseApp/marketingMaterial","index"),children:[{path:"/imageText",name:"图文素材",component:g()("enterpriseApp/marketingMaterial","imageText")},{path:"/newImageText",name:"选择图文",component:g()("enterpriseApp/marketingMaterial","newImageText")},{path:"/enjoyMaterial",name:"纷享素材",component:g()("enterpriseApp/marketingMaterial","enjoyMaterial")},{path:"/newEnjoy",name:"新建素材",component:g()("enterpriseApp/marketingMaterial","newEnjoy")}]},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:g()("enterpriseApp/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:g()("enterpriseApp/cloudDaily","dailyRecord")},{path:"/dailyDetail",name:"日报详情",component:g()("enterpriseApp/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:g()("enterpriseApp/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:g()("enterpriseApp/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:g()("enterpriseApp/cloudDaily","customReport")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:g()("enterpriseApp/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:g()("enterpriseApp/trafficTask","taskRecord")},{path:"/taskDetail",name:"话务任务详情",component:g()("enterpriseApp/trafficTask","taskDetail")},{path:"/taskViewDetail",name:"话务任务详情",component:g()("enterpriseApp/trafficTask","taskViewDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:g()("enterpriseApp/trafficTask","trafficTaskSet")},{path:"/badEvaluateSet",name:"不良评价设置",component:g()("enterpriseApp/badEvaluate","badEvaluateSet")}]},{path:"/noticeList",name:"企业公告",redirect:"/noticeList",component:g()("enterpriseApp/notice","index"),children:[{path:"/noticeList",name:"企业公告列表",component:g()("enterpriseApp/notice","noticeList")},{path:"/addNotice",name:"新建公告",component:g()("enterpriseApp/notice","addNotice")}]},{path:"/badEvaluate",name:"不良评价",redirect:"/badEvaluateRecord",component:g()("enterpriseApp/badEvaluate","index"),children:[{path:"/badEvaluateRecord",name:"不良评价记录",component:g()("enterpriseApp/badEvaluate","badEvaluateRecord")},{path:"/badEvaluateDetail",name:"不良评价详情",component:g()("enterpriseApp/badEvaluate","badEvaluateDetail")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:g()("enterpriseApp/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:g()("enterpriseApp/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:g()("enterpriseApp/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:g()("enterpriseApp/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:g()("enterpriseApp/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:g()("enterpriseApp/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:g()("enterpriseApp/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/signList",name:"企业公告",redirect:"/signList",component:g()("enterpriseApp/signApp","index"),children:[{path:"/signList",name:"企业公告列表",component:g()("enterpriseApp/signApp","signList")}]},{path:"/clockin",name:"考勤打卡",redirect:"/dayStatistics",component:g()("enterpriseApp/dailyAttendance","index"),children:[{path:"/dayStatistics",name:"日统计",component:g()("enterpriseApp/dailyAttendance","dayStatistics")},{path:"/workSet",name:"考勤设置",component:g()("enterpriseApp/dailyAttendance","workSet")},{path:"/workGroupSet",name:"考勤设置",component:g()("enterpriseApp/dailyAttendance","workGroupSet")},{path:"/workTimeManage",name:"排班管理",component:g()("enterpriseApp/dailyAttendance","workTimeManage")}]}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:g()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:g()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:g()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:g()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:g()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:g()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:g()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:g()("setting","storePermission")},{path:"/contactPermission",name:"通讯录控制",component:g()("setting","contactPermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:g()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:g()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:g()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:g()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:g()("contacts","staffRecordsTemplate")},{path:"/systemReportSet",name:"系统报表设置",component:g()("enterpriseApp/cloudDaily","systemReportSet")},{path:"/template",name:"模板设置",component:g()("enterpriseApp/cloudDaily","template")},{path:"/gic-error",name:"gic跳转失败页",component:g()("errorPage","gic-error")},{path:"/403",name:"无权访问",component:A},{path:"/404",name:"error404",component:A},{path:"/500",name:"error500",component:A},{path:"*",redirect:"/404",hidden:!0}],k=new h.a({routes:y,scrollBehavior:function(){return{y:0}}}),w=n("zL8q"),D=n.n(w),x=n("Rf8U"),S=n.n(x),R=n("mtWM"),C=n.n(R),T=n("bOdI"),M=n.n(T),E=n("SJI6"),b=n.n(E);u.a.use(b.a);var I=new b.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(f={},M()(f,"login",function(e,t){sessionStorage.token=t,e.token=t}),M()(f,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),M()(f,"title",function(e,t){e.title=t}),M()(f,"show",function(e,t){e.show=t}),f)}),j=(n("4qCZ"),n("uKUT"),n("Xcu2"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var n=new Date(e),a={"M+":n.getMonth()+1,"D+":n.getDate(),W:"日一二三四五六".charAt(n.getDay()),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var r in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),a)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?a[r]:("00"+a[r]).substr((""+a[r]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,o=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+r+"-"+a+" "+o+":"+p+":"+i}},timeStampToYmd:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n;return t.getFullYear()+"-"+r+"-"+a}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,o=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+r+"."+a+" "+o+":"+p+":"+i}}}),V=n("TUaa"),q=n.n(V),P=n("tyqE"),G=n.n(P),H=n("pRVe"),L=n.n(H),F=n("SE7k"),O=n.n(F),N=n("XsK6"),z=n.n(N),Y=n("QRL9"),J=n.n(Y),K=n("2Pnh"),B=n.n(K),U=n("l9mu"),X=n.n(U),Q={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;B()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,a=t.height,r=n/592.28*841.89,o=a,p=0,i=592.28/n*a,s=t.toDataURL("image/jpeg",1),c=new X.a("","pt","a4");if(o<r)c.addImage(s,"JPEG",0,0,595.28,i);else for(;o>0;)c.addImage(s,"JPEG",0,p,595.28,i),p-=841.89,(o-=r)>0&&c.addPage();c.save(e+".pdf")})}}},Z=n("/IwO"),W=n.n(Z);s.a.polyfill(),Vue.use(W.a),W.a.initAMapApiLoader({key:"d53a58848be368a7398dc56d5670fe9c",plugin:["Autocomplete","PlaceSearch","Scale","OverView","Geocoder","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"}),Vue.use(Q),Vue.use(z.a),Vue.use(J.a),Vue.use(O.a),Vue.use(L.a),Vue.use(G.a),Vue.use(q.a),Vue.config.productionTip=!1,Vue.use(D.a,{size:"large"}),Vue.use(S.a,C.a),Vue.axios.defaults.withCredentials=!0,p()(j).forEach(function(e){Vue.filter(e,j[e])}),k.beforeEach(function(e,t,n){var a=void 0,o=window.location.origin;a=-1!=o.indexOf("localhost")?"http://www.gicdev.com":o,localStorage.getItem("userInfo")||C.a.get(a+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode||localStorage.setItem("userInfo",r()(t.result))}).catch(function(e){w.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:k,store:I,components:{App:m},template:"<App/>"})},Opzk:function(e,t,n){var a={"./contacts/addClerk.vue":["27o1",0,23],"./contacts/addDepartment.vue":["HHRu",0,21],"./contacts/addEmployee.vue":["00Sv",61],"./contacts/addGroup.vue":["mPjx",0,71],"./contacts/administrativeFrame.vue":["kLcy",0,4],"./contacts/employee.vue":["AdJp",0,60],"./contacts/employeeIo.vue":["Rwbg",0,82],"./contacts/employeeRecord.vue":["zGJY",0,9],"./contacts/fileSet.vue":["CSjr",0,11],"./contacts/index.vue":["41Rh",0,68],"./contacts/recordInfo.vue":["67iC",0,17],"./contacts/recordIo.vue":["738z",0,25],"./contacts/recycle.vue":["HkK0",0,37],"./contacts/shareAddDepartment.vue":["q5Ri",0,20],"./contacts/shareCode.vue":["JsWW",0,43],"./contacts/shareContact.vue":["Gfms",0,3],"./contacts/staffRecordsTemplate.vue":["lFAe",0,50],"./contacts/storeFrame.vue":["7SJI",0,6],"./contacts/storeInfo.vue":["h/6A",0,58],"./contacts/storeIo.vue":["RHxA",0,88],"./contacts/unemployee.vue":["TGrv",0,19],"./download/index.vue":["ASGJ",0,8],"./enterpriseApp/appcenter.vue":["yuVF",0,39],"./enterpriseApp/badEvaluate/badEvaluateDetail.vue":["4m/B",0,59],"./enterpriseApp/badEvaluate/badEvaluateRecord.vue":["r//C",0,53],"./enterpriseApp/badEvaluate/badEvaluateSet.vue":["XzAK",0,77],"./enterpriseApp/badEvaluate/index.vue":["W0k8",0,51],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",0,86],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",0,66],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",0,41],"./enterpriseApp/cloudDaily/index.vue":["Knd1",0,98],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",0,42],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",0,7],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",0,83],"./enterpriseApp/cloudDaily/template.vue":["IA9l",0,5],"./enterpriseApp/cloudDaily/template/block.vue":["PAYw",55],"./enterpriseApp/cloudDaily/template/date-range.vue":["79Bk",96],"./enterpriseApp/cloudDaily/template/image.vue":["H8Kg",63],"./enterpriseApp/cloudDaily/template/input.vue":["s4D+",73],"./enterpriseApp/cloudDaily/template/select.vue":["t0b0",81],"./enterpriseApp/dailyAttendance/dayStatistics.vue":["gncU",0,40],"./enterpriseApp/dailyAttendance/index.vue":["vgwM",0,89],"./enterpriseApp/dailyAttendance/monthStatistics.vue":["z8Gq",99],"./enterpriseApp/dailyAttendance/workGroupSet.vue":["estW",0,14],"./enterpriseApp/dailyAttendance/workSet.vue":["A/XQ",0,31],"./enterpriseApp/dailyAttendance/workTimeManage.vue":["/n/x",0,33],"./enterpriseApp/index.vue":["da9f",52],"./enterpriseApp/marketingMaterial/enjoyMaterial.vue":["SB6x",0,26],"./enterpriseApp/marketingMaterial/imageText.vue":["0qiV",0,24],"./enterpriseApp/marketingMaterial/index.vue":["m0O4",0,69],"./enterpriseApp/marketingMaterial/newEnjoy.vue":["7fkC",0,18],"./enterpriseApp/marketingMaterial/newImageText.vue":["NajC",0,15],"./enterpriseApp/myCustomer/cardGetRecord.vue":["YqmZ",0,76],"./enterpriseApp/myCustomer/cardSendRecord.vue":["+Q5U",0,95],"./enterpriseApp/myCustomer/chatRecord.vue":["gjw3",0,57],"./enterpriseApp/myCustomer/index.vue":["/rje",0,97],"./enterpriseApp/myCustomer/memeberBaseSet.vue":["N+Or",0,47],"./enterpriseApp/myCustomer/newCard.vue":["G/J9",0,94],"./enterpriseApp/myCustomer/onlineChatSet.vue":["ahzF",0,28],"./enterpriseApp/myCustomer/sendRecord.vue":["8msp",0,85],"./enterpriseApp/mycustomer.vue":["cuIN",0,48],"./enterpriseApp/notice/addNotice.vue":["G5PL",0,2],"./enterpriseApp/notice/index.vue":["av/3",0,67],"./enterpriseApp/notice/noticeList.vue":["OVYO",0,13],"./enterpriseApp/quota/companyDaySet.vue":["xk7v",0,46],"./enterpriseApp/quota/index.vue":["FB5x",0,87],"./enterpriseApp/quota/monthList.vue":["ZxDn",0,79],"./enterpriseApp/quota/monthTask.vue":["cK0D",0,84],"./enterpriseApp/quota/monthTaskDetail.vue":["jMbb",0,78],"./enterpriseApp/quota/salerMonthDetail.vue":["IKv2",0,64],"./enterpriseApp/quota/storeMonthTask.vue":["kF1j",0,45],"./enterpriseApp/signApp/index.vue":["Gk4o",0,72],"./enterpriseApp/signApp/signList.vue":["kCy7",0,65],"./enterpriseApp/trafficTask/index.vue":["e88N",0,70],"./enterpriseApp/trafficTask/taskDetail.vue":["A33E",0,49],"./enterpriseApp/trafficTask/taskRecord.vue":["iG3v",0,34],"./enterpriseApp/trafficTask/taskViewDetail.vue":["Akas",0,75],"./enterpriseApp/trafficTask/trafficTaskSet.vue":["4H54",0,62],"./errorPage/403.vue":["6XGN",35],"./errorPage/404.vue":["AejC",38],"./errorPage/500.vue":["FskK",29],"./errorPage/gic-error.vue":["Q3j/",32],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,36],"./login/index.vue":["T+/8",0,10],"./reviewCenter/index.vue":["+lem",91],"./reviewCenter/reviewed.vue":["CLYF",0,22],"./reviewCenter/unreview.vue":["xCEU",0,12],"./setting/addAdmin.vue":["rs/A",0,56],"./setting/addAdminRole.vue":["fZsz",0,80],"./setting/companyAddress.vue":["SKyE",0,54],"./setting/companyCertify.vue":["3zYh",0,16],"./setting/contactPermission.vue":["6zFj",0,74],"./setting/index.vue":["VlR1",44],"./setting/replaceAdmin.vue":["ys9I",0,90],"./setting/setChildAdmin.vue":["VqB7",0,92],"./setting/staffDetails.vue":["Zyzf",0,30],"./setting/storePermission.vue":["Xwfy",0,27],"./sign/index.vue":["RQuk",0,93]};function r(e){var t=a[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}r.keys=function(){return Object.keys(a)},r.id="Opzk",e.exports=r},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file
!function(e){var d=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(d&&d(c,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=a(a.s=n[i]);return o};var c={},f={103:0};function a(d){if(c[d])return c[d].exports;var f=c[d]={i:d,l:!1,exports:{}};return e[d].call(f.exports,f,f.exports,a),f.l=!0,f.exports}a.e=function(e){var d=f[e];if(0===d)return new Promise(function(e){e()});if(d)return d[2];var c=new Promise(function(c,a){d=f[e]=[c,a]});d[2]=c;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,a.nc&&n.setAttribute("nonce",a.nc),n.src=a.p+"static/js/"+e+"."+{0:"89a0af2de362747a65a8",1:"fe9dec1f31b04053fd7e",2:"b4cd547e4cd1c85c02dd",3:"b7e6d57d97174b75b050",4:"11254d7e3a102121b8ec",5:"999e4fe27acd46040f1d",6:"124ad8222f7b043b44ae",7:"ebad93a8c5bffffd9e98",8:"f1c9fb5c9212483138d8",9:"b5aae16b3951516573ad",10:"ebbed2d956a1376f014a",11:"59c7813cc972f62b1d18",12:"879536ae7ce46f0c54ec",13:"e3b5c7d90654fe83689e",14:"4fca81a28867daa95602",15:"d251e8a6c8d22c33bf8f",16:"f483f95dbac654c7de5a",17:"ff6edf624b982c354977",18:"d2d67b4f5729ae6df7c6",19:"d7d09ae4564d64842009",20:"455fd80bd8af15457c57",21:"c1b5e15e28768af52654",22:"2a873e819c6c369d5cd1",23:"d2380bf3c276e741313b",24:"76cb3025ebe21689d252",25:"d3508ee6e53c11c834a8",26:"a4696a3d8f883d26cbba",27:"80efeaa8fe902850d85c",28:"c418f78a231016fa441b",29:"c5bb15e8e1bd17cdc0f7",30:"ea05d43b99177823fbdc",31:"3c60579eb96d87cceb08",32:"0c7863fa05e5c75053c3",33:"fe239972086d90fd74ac",34:"e5ba3c1688f3038d3d09",35:"d8abf87eeb477b4bc1f3",36:"2cadbd4ded3457625f52",37:"8dc3e1f0f3e416135406",38:"9f4a46d2ce3c9477a06b",39:"b33ea830129fb895dd77",40:"ad473a8b167e7f71e8af",41:"17121c9227dddf24b37d",42:"54f2f4850c109391114a",43:"fb46c0bad10552e7ef89",44:"3d32c7e1954754671303",45:"c0accd45711184d0044d",46:"785c8076b8d217da747e",47:"b477848570e876912bdb",48:"32a6d29de6b93cd9201c",49:"1a7182d9cdf2e08ff7f0",50:"4235ecfe09e1fc4e1ca4",51:"2f363aaad04264e9f159",52:"d56e883ddcbef7c6b221",53:"ec91f2b143d0b1e708b5",54:"31eed9c38748896262d1",55:"4f96191ae2c44c6f18f7",56:"99063bd3b07926595af4",57:"ba6530916d934b70d218",58:"2241679269f18e7f14c3",59:"5c336f6f4d119300c1d8",60:"d43c13d5c29feb45e864",61:"bebed63e2d09d7820a5e",62:"844f4d746e73269c3e01",63:"ebf207f42f599d397900",64:"9f7af7316d365bf3f4b0",65:"a789b3846ce9b14a7f7b",66:"575024a96ee11b14b5f5",67:"d8cec2d6cdac19783a11",68:"59df79386d042b418ed4",69:"e7f06849f7dd1d412823",70:"4b0dbdfdfcee7fa79f1c",71:"af9e515c9585a5bf2ef7",72:"dffbfdc50edee0a37b74",73:"2cfa3df2a4d9908af690",74:"33a011eb8ce2cede3356",75:"182e2fec82acc1a01fe6",76:"6fc6ac8894ec9ccb8306",77:"26c81eaa1d85e1cb86a0",78:"7df6b2d7df465d3a8e84",79:"78d0d62d9dab44a70c07",80:"d63547dbc4122065934a",81:"dc300d9df998b44e6232",82:"be820ef68d65d11ee980",83:"9c061ef108f27313f796",84:"119881f6b7483db33d93",85:"1e346ae76f5cdce0fd2d",86:"d5611b89d03b76faf9fd",87:"0dee82cf7126afdad735",88:"e56bf73962fcfb7ea453",89:"b288af4e29070537abe4",90:"f965c0ab799d944946de",91:"432e6232fb6d5ad3498c",92:"40e90149e575b118d77b",93:"96b6ac9b6398b7d7360f",94:"c50da77d4e1d5a44b971",95:"04507f6fadd31b01a746",96:"d4a4beef007fa347bd93",97:"8b0f08b3974b32d7bc2a",98:"69c8efc82743796dc255",99:"58cc1884c4f80303999a",102:"2c7e1d628bd2f4ac709c"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var d=f[e];0!==d&&(d&&d[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),c},a.m=e,a.c=c,a.d=function(e,d,c){a.o(e,d)||Object.defineProperty(e,d,{configurable:!1,enumerable:!0,get:c})},a.n=function(e){var d=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(d,"a",d),d},a.o=function(e,d){return Object.prototype.hasOwnProperty.call(e,d)},a.p="./",a.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,b,n){for(var r,t,o,i=0,u=[];i<f.length;i++)t=f[i],d[t]&&u.push(d[t][0]),d[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(f,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=a(a.s=n[i]);return o};var f={},d={103:0};function a(c){if(f[c])return f[c].exports;var d=f[c]={i:c,l:!1,exports:{}};return e[c].call(d.exports,d,d.exports,a),d.l=!0,d.exports}a.e=function(e){var c=d[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var f=new Promise(function(f,a){c=d[e]=[f,a]});c[2]=f;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,a.nc&&n.setAttribute("nonce",a.nc),n.src=a.p+"static/js/"+e+"."+{0:"89a0af2de362747a65a8",1:"fe9dec1f31b04053fd7e",2:"b4cd547e4cd1c85c02dd",3:"b7e6d57d97174b75b050",4:"11254d7e3a102121b8ec",5:"9df205008b028a1d3882",6:"124ad8222f7b043b44ae",7:"b17e44a2a1c8f1dcb9c1",8:"f1c9fb5c9212483138d8",9:"b5aae16b3951516573ad",10:"ebbed2d956a1376f014a",11:"59c7813cc972f62b1d18",12:"879536ae7ce46f0c54ec",13:"e3b5c7d90654fe83689e",14:"4fca81a28867daa95602",15:"d251e8a6c8d22c33bf8f",16:"f483f95dbac654c7de5a",17:"ff6edf624b982c354977",18:"d2d67b4f5729ae6df7c6",19:"d7d09ae4564d64842009",20:"455fd80bd8af15457c57",21:"c1b5e15e28768af52654",22:"2a873e819c6c369d5cd1",23:"d2380bf3c276e741313b",24:"76cb3025ebe21689d252",25:"d3508ee6e53c11c834a8",26:"a4696a3d8f883d26cbba",27:"80efeaa8fe902850d85c",28:"c418f78a231016fa441b",29:"c5bb15e8e1bd17cdc0f7",30:"ea05d43b99177823fbdc",31:"3c60579eb96d87cceb08",32:"0c7863fa05e5c75053c3",33:"fe239972086d90fd74ac",34:"1caa0ccb68b3c0286d52",35:"d8abf87eeb477b4bc1f3",36:"2cadbd4ded3457625f52",37:"8dc3e1f0f3e416135406",38:"9f4a46d2ce3c9477a06b",39:"b33ea830129fb895dd77",40:"ad473a8b167e7f71e8af",41:"17121c9227dddf24b37d",42:"54f2f4850c109391114a",43:"fb46c0bad10552e7ef89",44:"3d32c7e1954754671303",45:"c0accd45711184d0044d",46:"785c8076b8d217da747e",47:"b477848570e876912bdb",48:"32a6d29de6b93cd9201c",49:"1a7182d9cdf2e08ff7f0",50:"0f12fe9dfc2d329f1ccf",51:"aa5454e0664f02f5f5f6",52:"906057051eeca0acab78",53:"ad34897b3043dc2ba8c4",54:"6d6fb15946a63d0c8b8a",55:"b43dde027408aa464eec",56:"6832c3f53087f9be96f5",57:"0e15966d5a390b261531",58:"9d64b688cd4ccf358ba1",59:"3a5e3fab3df52e312ac9",60:"a76324bf81b5e72213cf",61:"9244e5c8bffff2e67676",62:"20f4f5884344d41cb9fe",63:"6c1f03cb432817a338a6",64:"af001ffecc93c0bb611c",65:"48fb2a195f8c04ac699e",66:"5e7b1f926b0edd36ff5b",67:"64a0dc353a337c89eea0",68:"4130e2935387253cff2c",69:"93c31fd74be77895e5ad",70:"e311b478545d9034b5a7",71:"f1355cfe02f70ada1080",72:"9ec713a99b5255a058ef",73:"0461e6b8cebcf0ee1e37",74:"218ec0f596df5df27511",75:"66abb731eb6d9fec416b",76:"b9fb3cc56a4bece88518",77:"afa6cdef6309d9b49396",78:"89dd494ce396d2028237",79:"222db95b65cc45af172a",80:"d63547dbc4122065934a",81:"dc300d9df998b44e6232",82:"be820ef68d65d11ee980",83:"9c061ef108f27313f796",84:"119881f6b7483db33d93",85:"1e346ae76f5cdce0fd2d",86:"d5611b89d03b76faf9fd",87:"0dee82cf7126afdad735",88:"e56bf73962fcfb7ea453",89:"b288af4e29070537abe4",90:"f965c0ab799d944946de",91:"432e6232fb6d5ad3498c",92:"40e90149e575b118d77b",93:"96b6ac9b6398b7d7360f",94:"c50da77d4e1d5a44b971",95:"04507f6fadd31b01a746",96:"d4a4beef007fa347bd93",97:"8b0f08b3974b32d7bc2a",98:"69c8efc82743796dc255",99:"58cc1884c4f80303999a",102:"2c7e1d628bd2f4ac709c"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=d[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),d[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),f},a.m=e,a.c=f,a.d=function(e,c,f){a.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},a.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(c,"a",c),c},a.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},a.p="./",a.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -3,8 +3,8 @@
* @version: 1.0.0
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘
* @LastEditTime: 2019-12-18 12:27:54
* @LastEditors : 无尘
* @LastEditTime : 2020-01-03 14:03:31
-->
<template>
<div class="template-wrap" :style="{ height: bodyHeight }">
......@@ -1604,6 +1604,7 @@ export default {
word-break: break-all;
white-space: pre-wrap;
padding-top: 9px;
height: 40px;
}
/*&.block-pre-wrap{
line-height: 12px;
......
......@@ -3,8 +3,8 @@
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2019-09-25 17:06:08
* @LastEditors : 无尘
* @LastEditTime : 2020-01-03 13:52:09
-->
<template>
<div class="template-wrap" :style="{ height: bodyHeight }">
......@@ -963,6 +963,7 @@ export default {
word-break: break-all;
white-space: pre-wrap;
padding-top: 9px;
height: 40px;
}
/*&.block-pre-wrap{
line-height: 12px;
......
......@@ -3,8 +3,8 @@
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2019-09-25 17:07:15
* @LastEditors : 无尘
* @LastEditTime : 2020-01-03 14:00:01
*/
.template-wrap {
width: 100%;
......@@ -584,6 +584,7 @@
word-break: break-all;
white-space: pre-wrap;
padding-top: 9px;
height: 40px;
}
/*&.block-pre-wrap{
......
......@@ -3,8 +3,8 @@
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2019-11-07 10:50:07
* @LastEditors : 无尘
* @LastEditTime : 2020-01-03 14:13:42
-->
<template>
<div class="daily-set-wrap ">
......@@ -67,7 +67,10 @@
<template slot-scope="scope"> </template>
</el-table-column>
<el-table-column label="门店名称" width="120" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.storeName }}</template>
<template slot-scope="scope"
><div class="td-ellipsis"></div>
{{ scope.row.storeName }}</template
>
</el-table-column>
<el-table-column prop="" label="任务总数">
<template slot-scope="scope">{{ scope.row.taskCount }}</template>
......@@ -578,6 +581,16 @@ export default {
.table-condition-left {
font-size: 0;
}
.el-table {
/deep/ td > .cell {
&.el-tooltip {
text-overflow: ellipsis;
}
.td-ellipsis {
text-overflow: ellipsis;
}
}
}
}
.depart-item-content {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment