(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-021f8804","chunk-c28ad000","chunk-3f93175c","chunk-345dd7f2","chunk-79f50944","chunk-08486bce","chunk-07e0cbc6","chunk-d19c1a98","chunk-2d0a2db2","chunk-2d0f012d"],{"0062":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[a("el-form-item",{attrs:{label:"任务名称",prop:"jobName"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入任务名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.jobName,callback:function(t){e.$set(e.queryParams,"jobName",t)},expression:"queryParams.jobName"}})],1),a("el-form-item",{attrs:{label:"任务组名",prop:"jobGroup"}},[a("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"请任务组名",clearable:"",size:"small"},model:{value:e.queryParams.jobGroup,callback:function(t){e.$set(e.queryParams,"jobGroup",t)},expression:"queryParams.jobGroup"}},e._l(e.jobGroupOptions,(function(e){return a("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),a("el-form-item",{attrs:{label:"执行状态",prop:"status"}},[a("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"请选择执行状态",clearable:"",size:"small"},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.statusOptions,(function(e){return a("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),a("el-form-item",{attrs:{label:"执行时间"}},[a("el-date-picker",{staticStyle:{width:"240px"},attrs:{size:"small","value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"cyan",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),a("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),a("el-row",{staticClass:"mb8",attrs:{gutter:10}},[a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:remove"],expression:"['monitor:job:remove']"}],attrs:{type:"danger",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:remove"],expression:"['monitor:job:remove']"}],attrs:{type:"danger",icon:"el-icon-delete",size:"mini"},on:{click:e.handleClean}},[e._v("清空")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:export"],expression:"['monitor:job:export']"}],attrs:{type:"warning",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),a("right-toolbar",{attrs:{showSearch:e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.jobLogList},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),a("el-table-column",{attrs:{label:"日志编号",width:"80",align:"center",prop:"jobLogId"}}),a("el-table-column",{attrs:{label:"任务名称",align:"center",prop:"jobName","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"任务组名",align:"center",prop:"jobGroup",formatter:e.jobGroupFormat,"show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"调用目标字符串",align:"center",prop:"invokeTarget","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"日志信息",align:"center",prop:"jobMessage","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"执行状态",align:"center",prop:"status",formatter:e.statusFormat}}),a("el-table-column",{attrs:{label:"执行时间",align:"center",prop:"createTime",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.parseTime(t.row.createTime)))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:query"],expression:"['monitor:job:query']"}],attrs:{size:"mini",type:"text",icon:"el-icon-view"},on:{click:function(a){return e.handleView(t.row)}}},[e._v("详细")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),a("el-dialog",{attrs:{title:"调度日志详细",visible:e.open,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px",size:"mini"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"日志序号:"}},[e._v(e._s(e.form.jobLogId))]),a("el-form-item",{attrs:{label:"任务名称:"}},[e._v(e._s(e.form.jobName))])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"任务分组:"}},[e._v(e._s(e.form.jobGroup))]),a("el-form-item",{attrs:{label:"执行时间:"}},[e._v(e._s(e.form.createTime))])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"调用方法:"}},[e._v(e._s(e.form.invokeTarget))])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"日志信息:"}},[e._v(e._s(e.form.jobMessage))])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"执行状态:"}},[0==e.form.status?a("div",[e._v("正常")]):1==e.form.status?a("div",[e._v("失败")]):e._e()])],1),a("el-col",{attrs:{span:24}},[1==e.form.status?a("el-form-item",{attrs:{label:"异常信息:"}},[e._v(e._s(e.form.exceptionInfo))]):e._e()],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.open=!1}}},[e._v("关 闭")])],1)],1)],1)},r=[],i=(a("d81d"),a("b775"));function o(e){return Object(i["a"])({url:"/monitor/jobLog/list",method:"get",params:e})}function l(e){return Object(i["a"])({url:"/monitor/jobLog/"+e,method:"delete"})}function s(){return Object(i["a"])({url:"/monitor/jobLog/clean",method:"delete"})}function c(e){return Object(i["a"])({url:"/monitor/jobLog/export",method:"get",params:e})}var u={name:"JobLog",data:function(){return{loading:!0,ids:[],multiple:!0,showSearch:!0,total:0,jobLogList:[],open:!1,dateRange:[],form:{},statusOptions:[],jobGroupOptions:[],queryParams:{pageNum:1,pageSize:10,jobName:void 0,jobGroup:void 0,status:void 0}}},created:function(){var e=this;this.getList(),this.getDicts("sys_job_status").then((function(t){e.statusOptions=t.data})),this.getDicts("sys_job_group").then((function(t){e.jobGroupOptions=t.data}))},methods:{getList:function(){var e=this;this.loading=!0,o(this.addDateRange(this.queryParams,this.dateRange)).then((function(t){e.jobLogList=t.rows,e.total=t.total,e.loading=!1}))},statusFormat:function(e,t){return this.selectDictLabel(this.statusOptions,e.status)},jobGroupFormat:function(e,t){return this.selectDictLabel(this.jobGroupOptions,e.jobGroup)},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.jobLogId})),this.multiple=!e.length},handleView:function(e){this.open=!0,this.form=e},handleDelete:function(e){var t=this,a=this.ids;this.$confirm('是否确认删除调度日志编号为"'+a+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return l(a)})).then((function(){t.getList(),t.msgSuccess("删除成功")}))},handleClean:function(){var e=this;this.$confirm("是否确认清空所有调度日志数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return s()})).then((function(){e.getList(),e.msgSuccess("清空成功")}))},handleExport:function(){var e=this,t=this.queryParams;this.$confirm("是否确认导出所有调度日志数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return c(t)})).then((function(t){e.download(t.msg)}))}}},m=u,d=a("2877"),p=Object(d["a"])(m,n,r,!1,null,null,null);t["default"]=p.exports},"02f2":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[a("el-form-item",{attrs:{label:"系统模块",prop:"title"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入系统模块",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.title,callback:function(t){e.$set(e.queryParams,"title",t)},expression:"queryParams.title"}})],1),a("el-form-item",{attrs:{label:"操作人员",prop:"operName"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入操作人员",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.operName,callback:function(t){e.$set(e.queryParams,"operName",t)},expression:"queryParams.operName"}})],1),a("el-form-item",{attrs:{label:"类型",prop:"businessType"}},[a("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"操作类型",clearable:"",size:"small"},model:{value:e.queryParams.businessType,callback:function(t){e.$set(e.queryParams,"businessType",t)},expression:"queryParams.businessType"}},e._l(e.typeOptions,(function(e){return a("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"操作状态",clearable:"",size:"small"},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.statusOptions,(function(e){return a("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),a("el-form-item",{attrs:{label:"操作时间"}},[a("el-date-picker",{staticStyle:{width:"240px"},attrs:{size:"small","value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"cyan",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),a("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),a("el-row",{staticClass:"mb8",attrs:{gutter:10}},[a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:remove"],expression:"['monitor:operlog:remove']"}],attrs:{type:"danger",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:remove"],expression:"['monitor:operlog:remove']"}],attrs:{type:"danger",icon:"el-icon-delete",size:"mini"},on:{click:e.handleClean}},[e._v("清空")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:export"],expression:"['system:config:export']"}],attrs:{type:"warning",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),a("right-toolbar",{attrs:{showSearch:e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),a("el-table-column",{attrs:{label:"日志编号",align:"center",prop:"operId"}}),a("el-table-column",{attrs:{label:"系统模块",align:"center",prop:"title"}}),a("el-table-column",{attrs:{label:"操作类型",align:"center",prop:"businessType",formatter:e.typeFormat}}),a("el-table-column",{attrs:{label:"请求方式",align:"center",prop:"requestMethod"}}),a("el-table-column",{attrs:{label:"操作人员",align:"center",prop:"operName"}}),a("el-table-column",{attrs:{label:"主机",align:"center",prop:"operIp",width:"130","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"操作地点",align:"center",prop:"operLocation","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"操作状态",align:"center",prop:"status",formatter:e.statusFormat}}),a("el-table-column",{attrs:{label:"操作日期",align:"center",prop:"operTime",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.parseTime(t.row.operTime)))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:query"],expression:"['monitor:operlog:query']"}],attrs:{size:"mini",type:"text",icon:"el-icon-view"},on:{click:function(a){return e.handleView(t.row,t.index)}}},[e._v("详细")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),a("el-dialog",{attrs:{title:"操作日志详细",visible:e.open,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px",size:"mini"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"操作模块:"}},[e._v(e._s(e.form.title)+" / "+e._s(e.typeFormat(e.form)))]),a("el-form-item",{attrs:{label:"登录信息:"}},[e._v(e._s(e.form.operName)+" / "+e._s(e.form.operIp)+" / "+e._s(e.form.operLocation))])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"请求地址:"}},[e._v(e._s(e.form.operUrl))]),a("el-form-item",{attrs:{label:"请求方式:"}},[e._v(e._s(e.form.requestMethod))])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"操作方法:"}},[e._v(e._s(e.form.method))])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"请求参数:"}},[e._v(e._s(e.form.operParam))])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"返回参数:"}},[e._v(e._s(e.form.jsonResult))])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"操作状态:"}},[0===e.form.status?a("div",[e._v("正常")]):1===e.form.status?a("div",[e._v("失败")]):e._e()])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"操作时间:"}},[e._v(e._s(e.parseTime(e.form.operTime)))])],1),a("el-col",{attrs:{span:24}},[1===e.form.status?a("el-form-item",{attrs:{label:"异常信息:"}},[e._v(e._s(e.form.errorMsg))]):e._e()],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.open=!1}}},[e._v("关 闭")])],1)],1)],1)},r=[],i=(a("d81d"),a("b775"));function o(e){return Object(i["a"])({url:"/monitor/operlog/list",method:"get",params:e})}function l(e){return Object(i["a"])({url:"/monitor/operlog/"+e,method:"delete"})}function s(){return Object(i["a"])({url:"/monitor/operlog/clean",method:"delete"})}function c(e){return Object(i["a"])({url:"/monitor/operlog/export",method:"get",params:e})}var u={name:"Operlog",data:function(){return{loading:!0,ids:[],multiple:!0,showSearch:!0,total:0,list:[],open:!1,typeOptions:[],statusOptions:[],dateRange:[],form:{},queryParams:{pageNum:1,pageSize:10,title:void 0,operName:void 0,businessType:void 0,status:void 0}}},created:function(){var e=this;this.getList(),this.getDicts("sys_oper_type").then((function(t){e.typeOptions=t.data})),this.getDicts("sys_common_status").then((function(t){e.statusOptions=t.data}))},methods:{getList:function(){var e=this;this.loading=!0,o(this.addDateRange(this.queryParams,this.dateRange)).then((function(t){e.list=t.rows,e.total=t.total,e.loading=!1}))},statusFormat:function(e,t){return this.selectDictLabel(this.statusOptions,e.status)},typeFormat:function(e,t){return this.selectDictLabel(this.typeOptions,e.businessType)},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.operId})),this.multiple=!e.length},handleView:function(e){this.open=!0,this.form=e},handleDelete:function(e){var t=this,a=e.operId||this.ids;this.$confirm('是否确认删除日志编号为"'+a+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return l(a)})).then((function(){t.getList(),t.msgSuccess("删除成功")}))},handleClean:function(){var e=this;this.$confirm("是否确认清空所有操作日志数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return s()})).then((function(){e.getList(),e.msgSuccess("清空成功")}))},handleExport:function(){var e=this,t=this.queryParams;this.$confirm("是否确认导出所有操作日志数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return c(t)})).then((function(t){e.download(t.msg)}))}}},m=u,d=a("2877"),p=Object(d["a"])(m,n,r,!1,null,null,null);t["default"]=p.exports},"046a":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[a("el-form-item",{attrs:{label:"字典名称",prop:"dictName"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入字典名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.dictName,callback:function(t){e.$set(e.queryParams,"dictName",t)},expression:"queryParams.dictName"}})],1),a("el-form-item",{attrs:{label:"字典类型",prop:"dictType"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入字典类型",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.dictType,callback:function(t){e.$set(e.queryParams,"dictType",t)},expression:"queryParams.dictType"}})],1),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"字典状态",clearable:"",size:"small"},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.statusOptions,(function(e){return a("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),a("el-form-item",{attrs:{label:"创建时间"}},[a("el-date-picker",{staticStyle:{width:"240px"},attrs:{size:"small","value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"cyan",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),a("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),a("el-row",{staticClass:"mb8",attrs:{gutter:10}},[a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dict:add"],expression:"['system:dict:add']"}],attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dict:edit"],expression:"['system:dict:edit']"}],attrs:{type:"success",icon:"el-icon-edit",size:"mini",disabled:e.single},on:{click:e.handleUpdate}},[e._v("修改")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dict:remove"],expression:"['system:dict:remove']"}],attrs:{type:"danger",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dict:export"],expression:"['system:dict:export']"}],attrs:{type:"warning",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dict:remove"],expression:"['system:dict:remove']"}],attrs:{type:"danger",icon:"el-icon-refresh",size:"mini"},on:{click:e.handleClearCache}},[e._v("清理缓存")])],1),a("right-toolbar",{attrs:{showSearch:e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.typeList},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),a("el-table-column",{attrs:{label:"字典编号",align:"center",prop:"dictId"}}),a("el-table-column",{attrs:{label:"字典名称",align:"center",prop:"dictName","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"字典类型",align:"center","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){return[a("router-link",{staticClass:"link-type",attrs:{to:"/dict/type/data/"+t.row.dictId}},[a("span",[e._v(e._s(t.row.dictType))])])]}}])}),a("el-table-column",{attrs:{label:"状态",align:"center",prop:"status",formatter:e.statusFormat}}),a("el-table-column",{attrs:{label:"备注",align:"center",prop:"remark","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.parseTime(t.row.createTime)))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dict:edit"],expression:"['system:dict:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(a){return e.handleUpdate(t.row)}}},[e._v("修改")]),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dict:remove"],expression:"['system:dict:remove']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(a){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),a("el-dialog",{attrs:{title:e.title,visible:e.open,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"字典名称",prop:"dictName"}},[a("el-input",{attrs:{placeholder:"请输入字典名称"},model:{value:e.form.dictName,callback:function(t){e.$set(e.form,"dictName",t)},expression:"form.dictName"}})],1),a("el-form-item",{attrs:{label:"字典类型",prop:"dictType"}},[a("el-input",{attrs:{placeholder:"请输入字典类型"},model:{value:e.form.dictType,callback:function(t){e.$set(e.form,"dictType",t)},expression:"form.dictType"}})],1),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-radio-group",{model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.statusOptions,(function(t){return a("el-radio",{key:t.dictValue,attrs:{label:t.dictValue}},[e._v(e._s(t.dictLabel))])})),1)],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入内容"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),a("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},r=[],i=(a("d81d"),a("ed45")),o={name:"Dict",data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,typeList:[],title:"",open:!1,statusOptions:[],dateRange:[],queryParams:{pageNum:1,pageSize:10,dictName:void 0,dictType:void 0,status:void 0},form:{},rules:{dictName:[{required:!0,message:"字典名称不能为空",trigger:"blur"}],dictType:[{required:!0,message:"字典类型不能为空",trigger:"blur"}]}}},created:function(){var e=this;this.getList(),this.getDicts("sys_normal_disable").then((function(t){e.statusOptions=t.data}))},methods:{getList:function(){var e=this;this.loading=!0,Object(i["f"])(this.addDateRange(this.queryParams,this.dateRange)).then((function(t){e.typeList=t.rows,e.total=t.total,e.loading=!1}))},statusFormat:function(e,t){return this.selectDictLabel(this.statusOptions,e.status)},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={dictId:void 0,dictName:void 0,dictType:void 0,status:"0",remark:void 0},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.resetForm("queryForm"),this.handleQuery()},handleAdd:function(){this.reset(),this.open=!0,this.title="添加字典类型"},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.dictId})),this.single=1!=e.length,this.multiple=!e.length},handleUpdate:function(e){var t=this;this.reset();var a=e.dictId||this.ids;Object(i["e"])(a).then((function(e){t.form=e.data,t.open=!0,t.title="修改字典类型"}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(void 0!=e.form.dictId?Object(i["h"])(e.form).then((function(t){e.msgSuccess("修改成功"),e.open=!1,e.getList()})):Object(i["a"])(e.form).then((function(t){e.msgSuccess("新增成功"),e.open=!1,e.getList()})))}))},handleDelete:function(e){var t=this,a=e.dictId||this.ids;this.$confirm('是否确认删除字典编号为"'+a+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(i["c"])(a)})).then((function(){t.getList(),t.msgSuccess("删除成功")}))},handleExport:function(){var e=this,t=this.queryParams;this.$confirm("是否确认导出所有类型数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(i["d"])(t)})).then((function(t){e.download(t.msg)}))},handleClearCache:function(){var e=this;Object(i["b"])().then((function(t){e.msgSuccess("清理成功")}))}}},l=o,s=a("2877"),c=Object(s["a"])(l,n,r,!1,null,null,null);t["default"]=c.exports},"04a9":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("添加")])],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.personnelList},on:{"selection-change":e.handleSelectionChange}},[e._e(),a("el-table-column",{attrs:{label:"员工姓名",align:"center",prop:"personnelName"}}),a("el-table-column",{attrs:{label:"负责枪号",align:"center",prop:"gunNo"}}),e._e(),a("el-table-column",{attrs:{label:"加油站名称",align:"center",prop:"stationName"}}),a("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["station:personnel:edit"],expression:"['station:personnel:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(a){return e.handleUpdate(t.row)}}},[e._v("修改")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),a("el-dialog",{attrs:{title:e.title,visible:e.open,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"姓名",prop:"personnelName"}},[a("el-input",{attrs:{placeholder:"请输入员工姓名"},model:{value:e.form.personnelName,callback:function(t){e.$set(e.form,"personnelName",t)},expression:"form.personnelName"}})],1),a("el-form-item",{attrs:{label:"负责枪号",prop:"gunNo"}},[a("el-checkbox-group",{model:{value:e.gunNoList,callback:function(t){e.gunNoList=t},expression:"gunNoList"}},e._l(e.checkList,(function(t){return a("el-checkbox",{key:t.oilGunId,attrs:{label:t.oilGunNo,value:t.oilGunNo}},[e._v(" "+e._s(t.oilGunNo+"号枪/"+t.oilName)+" ")])})),1)],1),a("el-form-item",{attrs:{label:"手机号",prop:"personnelPhone"}},[a("el-input",{attrs:{placeholder:"请输入员工手机号"},model:{value:e.form.personnelPhone,callback:function(t){e.$set(e.form,"personnelPhone",t)},expression:"form.personnelPhone"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),a("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},r=[],i=(a("7db0"),a("d81d"),a("ac1f"),a("1276"),a("d3b7"),a("062d")),o=a("99bd"),l=a("fcb7"),s={name:"Personnel",data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,personnelList:[],stationOptions:[],checkList:[],gunNoList:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10,personnelName:null,gunNo:null,stationId:null,stationName:null,qrCode:null,personnelPhone:null},queryInfo:{stationId:null},query:{deptId:null},form:{},rules:{}}},created:function(){var e=this;this.getList(),this.query.deptId=this.$store.selectDeptId,null!=this.query.deptId&&""!=this.query.deptId||(this.query.deptId=this.$store.state.user.deptId),Object(o["f"])(this.query).then((function(t){e.stationOptions=t.rows}))},methods:{getList:function(){var e=this;this.loading=!0,this.queryParams.stationId=this.$store.selectDeptId,null!=this.queryParams.stationId&&""!=this.queryParams.stationId||(this.queryParams.stationId=this.$store.state.user.deptId),Object(i["e"])(this.queryParams).then((function(t){e.queryParams.stationId=null,e.personnelList=t.rows,e.total=t.total,e.loading=!1}))},onInstitutionChang:function(e){var t=this,a={};a=this.stationOptions.find((function(t){return t.deptId===e})),this.form.stationName=a.deptName,this.queryInfo.stationId=a.deptId,Object(o["e"])(this.queryInfo).then((function(e){t.checkList=e.rows}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={personnelId:null,personnelName:null,gunNo:null,stationId:null,stationName:null,qrCode:null,personnelPhone:null},this.resetForm("form"),this.gunNoList.length=0},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.personnelId})),this.single=1!==e.length,this.multiple=!e.length},handleAdd:function(){var e=this;this.reset(),this.deptId=this.$store.selectDeptId,null!=this.deptId&&""!=this.deptId||(this.deptId=this.$store.state.user.deptId),Object(l["c"])(this.deptId).then((function(t){e.deptInfo=t.data,2==e.deptInfo.jiBie?(e.open=!0,e.title="添加油站员工信息",e.form.stationId=e.deptInfo.deptId,e.form.stationName=e.deptInfo.deptName,e.queryInfo.stationId=e.deptInfo.deptId,Object(o["e"])(e.queryInfo).then((function(t){e.checkList=t.rows}))):e.msgSuccess("请选择油站")}))},handleUpdate:function(e){var t=this;this.reset();var a=e.personnelId||this.ids;Object(i["d"])(a).then((function(a){t.form=a.data,null!=t.form.gunNo&&""!=t.form.gunNo&&(t.gunNoList=t.form.gunNo.split(",")),t.queryInfo.stationId=e.stationId,Object(o["e"])(t.queryInfo).then((function(e){t.checkList=e.rows})),t.open=!0,t.title="修改油站员工信息"}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){if(t){if(null!=e.gunNoList&&e.gunNoList.length>0){for(var a=[],n=0;n0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),a("el-dialog",{attrs:{title:e.title,visible:e.open,"append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"90px"}},[a("el-form-item",{attrs:{label:"优惠劵ID",prop:"couponId"}},[a("el-input",{attrs:{placeholder:"请输入优惠劵ID"},model:{value:e.form.couponId,callback:function(t){e.$set(e.form,"couponId",t)},expression:"form.couponId"}})],1),a("el-form-item",{attrs:{label:"优惠劵名称",prop:"couponName"}},[a("el-input",{attrs:{placeholder:"请输入优惠劵名称"},model:{value:e.form.couponName,callback:function(t){e.$set(e.form,"couponName",t)},expression:"form.couponName"}})],1),a("el-form-item",{attrs:{label:"优惠劵类型",prop:"couponType"}},[a("el-select",{attrs:{placeholder:"请选择优惠劵类型 1现金劵,2折扣券,3兑换券"},model:{value:e.form.couponType,callback:function(t){e.$set(e.form,"couponType",t)},expression:"form.couponType"}},[a("el-option",{attrs:{label:"请选择字典生成",value:""}})],1)],1),a("el-form-item",{attrs:{label:"油品",prop:"oilName"}}),a("el-form-item",{attrs:{label:"使用门槛类型",prop:"useDiscountType"}},[a("el-select",{attrs:{placeholder:"请选择优惠劵使用门槛类型。 1.无门槛,2满减劵,3折扣"},model:{value:e.form.useDiscountType,callback:function(t){e.$set(e.form,"useDiscountType",t)},expression:"form.useDiscountType"}},[a("el-option",{attrs:{label:"请选择字典生成",value:""}})],1)],1),a("el-form-item",{attrs:{label:"优惠劵面值",prop:"couponAmt"}},[a("el-input",{attrs:{placeholder:"请输入优惠劵面值"},model:{value:e.form.couponAmt,callback:function(t){e.$set(e.form,"couponAmt",t)},expression:"form.couponAmt"}}),e._v("元 ")],1),a("el-form-item",{attrs:{label:"优惠劵数量",prop:"couponNum"}},[a("el-input",{attrs:{placeholder:"请输入优惠劵数量"},model:{value:e.form.couponNum,callback:function(t){e.$set(e.form,"couponNum",t)},expression:"form.couponNum"}}),e._v("张 ")],1),a("el-form-item",{attrs:{label:"有效时间类型",prop:"effectiveTimeType"}},[a("el-select",{attrs:{placeholder:"请选择有效时间类型 1固定时间,2领取后x天内有效"},model:{value:e.form.effectiveTimeType,callback:function(t){e.$set(e.form,"effectiveTimeType",t)},expression:"form.effectiveTimeType"}},[a("el-option",{attrs:{label:"请选择字典生成",value:""}})],1)],1),a("el-form-item",{attrs:{label:"固定时间"}},[a("el-date-picker",{staticStyle:{width:"200px"},attrs:{clearable:"",size:"small",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择固定时间-有效开始时间"},model:{value:e.form.effectiveTimeStart,callback:function(t){e.$set(e.form,"effectiveTimeStart",t)},expression:"form.effectiveTimeStart"}}),a("el-date-picker",{staticStyle:{width:"200px"},attrs:{clearable:"",size:"small",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择固定时间-有效结束时间"},model:{value:e.form.effectiveTimeEnd,callback:function(t){e.$set(e.form,"effectiveTimeEnd",t)},expression:"form.effectiveTimeEnd"}})],1),a("el-form-item",{attrs:{label:"有效天数",prop:"effectiveDayNum"}},[a("el-input",{attrs:{placeholder:"请输入有效天数"},model:{value:e.form.effectiveDayNum,callback:function(t){e.$set(e.form,"effectiveDayNum",t)},expression:"form.effectiveDayNum"}})],1),a("el-form-item",{attrs:{label:"每人限领取数量",prop:"couponReceiveNum"}},[a("el-input",{attrs:{placeholder:"请输入优惠劵领取数量"},model:{value:e.form.couponReceiveNum,callback:function(t){e.$set(e.form,"couponReceiveNum",t)},expression:"form.couponReceiveNum"}})],1),a("el-form-item",{attrs:{label:"发放平台,1.微信 2支付宝",prop:"openPlatform"}},[a("el-input",{attrs:{placeholder:"请输入发放平台,1.微信 2支付宝"},model:{value:e.form.openPlatform,callback:function(t){e.$set(e.form,"openPlatform",t)},expression:"form.openPlatform"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),a("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},r=[],i=(a("d81d"),a("b775"));function o(e){return Object(i["a"])({url:"/coupon/info/list",method:"get",params:e})}function l(e){return Object(i["a"])({url:"/coupon/info/"+e,method:"get"})}function s(e){return Object(i["a"])({url:"/coupon/info",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/coupon/info",method:"put",data:e})}function u(e){return Object(i["a"])({url:"/coupon/info/"+e,method:"delete"})}function m(e){return Object(i["a"])({url:"/coupon/info/export",method:"get",params:e})}var d={name:"Info",data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,infoList:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10,couponId:null,couponName:null,couponType:null,useDiscountType:null,oilName:null,oilType:null,couponAmt:null,couponNum:null,effectiveTimeType:null,effectiveTimeStart:null,effectiveTimeEnd:null,effectiveDayNum:null,couponReceiveNum:null,openPlatform:null,grantStatus:null,status:null},form:{},rules:{}}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,o(this.queryParams).then((function(t){e.infoList=t.rows,e.total=t.total,e.loading=!1}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={id:null,couponId:null,couponName:null,couponType:null,useDiscountType:null,oilName:null,oilType:null,couponAmt:null,couponNum:null,effectiveTimeType:null,effectiveTimeStart:null,effectiveTimeEnd:null,effectiveDayNum:null,couponReceiveNum:null,openPlatform:null,grantStatus:"0",status:"0",createBy:null,createTime:null,updateBy:null,updateTime:null},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.id})),this.single=1!==e.length,this.multiple=!e.length},handleAdd:function(){this.reset(),this.open=!0,this.title="添加优惠劵"},handleUpdate:function(e){var t=this;this.reset();var a=e.id||this.ids;l(a).then((function(e){t.form=e.data,t.open=!0,t.title="修改优惠劵"}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(null!=e.form.id?c(e.form).then((function(t){e.msgSuccess("修改成功"),e.open=!1,e.getList()})):s(e.form).then((function(t){e.msgSuccess("新增成功"),e.open=!1,e.getList()})))}))},handleDelete:function(e){var t=this,a=e.id||this.ids;this.$confirm('是否确认删除优惠劵编号为"'+a+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return u(a)})).then((function(){t.getList(),t.msgSuccess("删除成功")}))},handleExport:function(){var e=this,t=this.queryParams;this.$confirm("是否确认导出所有优惠劵数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return m(t)})).then((function(t){e.download(t.msg)}))}}},p=d,f=a("2877"),h=Object(f["a"])(p,n,r,!1,null,null,null);t["default"]=h.exports},"062d":function(e,t,a){"use strict";a.d(t,"e",(function(){return r})),a.d(t,"d",(function(){return i})),a.d(t,"a",(function(){return o})),a.d(t,"f",(function(){return l})),a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return c}));var n=a("b775");function r(e){return Object(n["a"])({url:"/station/personnel/list",method:"get",params:e})}function i(e){return Object(n["a"])({url:"/station/personnel/"+e,method:"get"})}function o(e){return Object(n["a"])({url:"/station/personnel",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/station/personnel",method:"put",data:e})}function s(e){return Object(n["a"])({url:"/station/personnel/"+e,method:"delete"})}function c(e){return Object(n["a"])({url:"/station/personnel/export",method:"get",params:e})}},"0693":function(e,t,a){"use strict";a("f850")},"072b":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"客户姓名",prop:"customerName"}},[a("el-input",{attrs:{placeholder:"请输入客户姓名",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.customerName,callback:function(t){e.$set(e.queryParams,"customerName",t)},expression:"queryParams.customerName"}})],1),a("el-form-item",{attrs:{label:"联系电话",prop:"phoneNumber"}},[a("el-input",{attrs:{placeholder:"请输入",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.phoneNumber,callback:function(t){e.$set(e.queryParams,"phoneNumber",t)},expression:"queryParams.phoneNumber"}})],1),a("el-form-item",{attrs:{label:"油品",prop:"oilName"}},[a("el-select",{attrs:{placeholder:"请选择油品",clearable:"",size:"small"},model:{value:e.queryParams.oilName,callback:function(t){e.$set(e.queryParams,"oilName",t)},expression:"queryParams.oilName"}},e._l(e.oilNameOptions,(function(e){return a("el-option",{key:e.oilPriceId,attrs:{label:e.oilName,value:e.oilName}})})),1)],1),a("el-form-item",[a("el-button",{attrs:{type:"cyan",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),a("el-button",{attrs:{type:"info",icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),a("el-table",{attrs:{data:e.manageList}},[a("af-table-column",{attrs:{label:"客户姓名",align:"center",prop:"customerName"}}),a("af-table-column",{attrs:{label:"手机号",align:"center",prop:"phoneNumber"}}),a("af-table-column",{attrs:{label:"购买过的油品",align:"center",prop:"oilName"}}),a("af-table-column",{attrs:{label:"汽油卡余额",align:"center",prop:"qyAmt"}}),a("af-table-column",{attrs:{label:"柴油卡余额",align:"center",prop:"cyAmt"}}),a("af-table-column",{attrs:{label:"剩余积分",align:"center",prop:"integral"}}),a("af-table-column",{attrs:{label:"操作",align:"center",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-search"},on:{click:function(a){return e.detail(t.row)}}},[e._v(" 订单查询 ")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),a("el-dialog",{attrs:{title:e.titleOrderInfo,visible:e.openOrderInfo,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.openOrderInfo=t}}},[a("el-table",{attrs:{data:e.orderList}},[e._e(),a("af-table-column",{attrs:{label:"订单号",width:"200",align:"center",prop:"orderNo"}}),a("af-table-column",{attrs:{label:"油品名称",align:"center",prop:"oilName"}}),a("af-table-column",{attrs:{label:"油品价格",align:"center",prop:"oilPirce"}}),a("af-table-column",{attrs:{label:"加油升数",align:"center",prop:"orderLiters"}}),a("af-table-column",{attrs:{label:"实付金额",align:"center",prop:"amt"}}),a("af-table-column",{attrs:{label:"消费者昵称",width:"120",align:"center",prop:"consumer"}}),a("af-table-column",{attrs:{label:"加油员",width:"120",align:"center",prop:"oilPersonnel"}}),a("af-table-column",{attrs:{label:"加油枪号",align:"center",prop:"oilGun"}}),a("af-table-column",{attrs:{label:"支付类型",align:"center",prop:"payType",formatter:e.payTypeFotmat}}),e._e(),e._e(),e._e(),a("af-table-column",{attrs:{label:"支付完成时间",align:"center",prop:"payDate",width:"160px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.parseTime(t.row.payDate,"{y}-{m}-{d} {h}:{i}:{s}")))])]}}])}),a("af-table-column",{attrs:{label:"订单创建时间",align:"center",prop:"createdDate",width:"160px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.parseTime(t.row.createdDate,"{y}-{m}-{d} {h}:{i}:{s}")))])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalOrder>0,expression:"totalOrder>0"}],attrs:{total:e.totalOrder,page:e.queryOrder.pageNum,limit:e.queryOrder.pageSize},on:{"update:page":function(t){return e.$set(e.queryOrder,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryOrder,"pageSize",t)},pagination:e.listPage}})],1)],1)},r=[],i=a("0f1d"),o=(a("99bd"),a("36ac")),l={name:"Customer_Info",data:function(){return{total:0,totalOrder:0,manageList:[],orderList:[],openOrderInfo:!1,titleOrderInfo:"",oilNameOptions:[],queryParams:{pageNum:1,pageSize:10,customerName:null,commendMan:null,memberGrade:null,phoneNumber:null,oilName:null},queryOrder:{pageNum:1,pageSize:10,oilName:null,stationId:null,consumerId:null}}},created:function(){var e=this;this.getList(),Object(o["e"])().then((function(t){e.oilNameOptions=t.rows,console.log("oilNameOptions",e.oilNameOptions)}))},methods:{payTypeFotmat:function(e,t){return"sxf"===e.payType?"随行付":"dzk"===e.payType?"电子卡":"wx"===e.payType?"微信":"zfb"===e.payType?"支付宝":"xj"===e.payType?"现金":void 0},statusFotmat:function(e,t){return"0"===e.status?"未支付":"1"===e.status?"已支付":void 0},getList:function(){var e=this;Object(i["b"])(this.queryParams).then((function(t){e.manageList=t.rows,e.total=t.total}))},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},detail:function(e){this.queryOrder.consumerId=e.minaUserId,this.listPage()},listPage:function(){var e=this;Object(i["a"])(this.queryOrder).then((function(t){e.orderList=t.rows,e.openOrderInfo=!0,e.totalOrder=t.total,e.titleOrderInfo="查看客户订单信息"}))}}},s=l,c=a("2877"),u=Object(c["a"])(s,n,r,!1,null,null,null);t["default"]=u.exports},"0986":function(e,t,a){},"0a5c":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},r=[],i=a("313e"),o=a.n(i),l=a("feb2");a("817d");var s=3e3,c={mixins:[l["default"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"}},data:function(){return{chart:null}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=o.a.init(this.$el,"macarons"),this.chart.setOption({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},radar:{radius:"66%",center:["50%","42%"],splitNumber:8,splitArea:{areaStyle:{color:"rgba(127,95,132,.3)",opacity:1,shadowBlur:45,shadowColor:"rgba(0,0,0,.5)",shadowOffsetX:0,shadowOffsetY:15}},indicator:[{name:"Sales",max:1e4},{name:"Administration",max:2e4},{name:"Information Techology",max:2e4},{name:"Customer Support",max:2e4},{name:"Development",max:2e4},{name:"Marketing",max:2e4}]},legend:{left:"center",bottom:"10",data:["Allocated Budget","Expected Spending","Actual Spending"]},series:[{type:"radar",symbolSize:0,areaStyle:{normal:{shadowBlur:13,shadowColor:"rgba(0,0,0,.2)",shadowOffsetX:0,shadowOffsetY:10,opacity:1}},data:[{value:[5e3,7e3,12e3,11e3,15e3,14e3],name:"Allocated Budget"},{value:[4e3,9e3,15e3,15e3,13e3,11e3],name:"Expected Spending"},{value:[5500,11e3,12e3,15e3,12e3,12e3],name:"Actual Spending"}],animationDuration:s}]})}}},u=c,m=a("2877"),d=Object(m["a"])(u,n,r,!1,null,null,null);t["default"]=d.exports},"0acf":function(e,t,a){},"0b16":function(e,t,a){},"0c41":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"88px"}},[a("el-form-item",{attrs:{label:"设备类型",prop:"deviceType"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.queryParams.deviceType,callback:function(t){e.$set(e.queryParams,"deviceType",t)},expression:"queryParams.deviceType"}},e._l(e.deviceTypeOptions,(function(e){return a("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),a("el-form-item",{attrs:{label:"设备序列号",prop:"deviceSerialNum"}},[a("el-input",{attrs:{placeholder:"请输入设备序列号",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.deviceSerialNum,callback:function(t){e.$set(e.queryParams,"deviceSerialNum",t)},expression:"queryParams.deviceSerialNum"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"cyan",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),a("el-button",{attrs:{type:"info",icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")]),a("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1)],1),a("el-table",{attrs:{data:e.manageList}},[e._e(),a("el-table-column",{attrs:{label:"油站名称",align:"center",prop:"stationName"}}),a("el-table-column",{attrs:{label:"设备序列号",align:"center",prop:"deviceSerialNum"}}),a("el-table-column",{attrs:{label:"设备厂家",align:"center",prop:"deviceFactory"}}),e._e(),a("el-table-column",{attrs:{label:"绑定油枪号",align:"center",prop:"gunNo"}}),a("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(a){return e.handleUpdate(t.row)}}},[e._v("修改")]),a("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(a){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),a("pagination",{attrs:{total:100,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),a("el-dialog",{attrs:{title:e.title,visible:e.open,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"设备编号",prop:"deviceNo"}},[a("el-input",{attrs:{placeholder:"请输入设备编号"},model:{value:e.form.deviceNo,callback:function(t){e.$set(e.form,"deviceNo",t)},expression:"form.deviceNo"}})],1),a("el-form-item",{attrs:{label:"设备名称",prop:"deviceName"}},[a("el-input",{attrs:{placeholder:"请输入设备名称"},model:{value:e.form.deviceName,callback:function(t){e.$set(e.form,"deviceName",t)},expression:"form.deviceName"}})],1),a("el-form-item",{attrs:{label:"设备序列号",prop:"deviceSerialNum"}},[a("el-input",{attrs:{placeholder:"请输入设备序列号"},model:{value:e.form.deviceSerialNum,callback:function(t){e.$set(e.form,"deviceSerialNum",t)},expression:"form.deviceSerialNum"}})],1),a("el-form-item",{attrs:{label:"设备类型"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:"",size:"small"},model:{value:e.form.deviceType,callback:function(t){e.$set(e.form,"deviceType",t)},expression:"form.deviceType"}},e._l(e.deviceTypeOptions,(function(e){return a("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),a("el-form-item",{attrs:{label:"绑定油枪号",prop:"gunNo"}},[a("el-checkbox-group",{model:{value:e.gunNoList,callback:function(t){e.gunNoList=t},expression:"gunNoList"}},e._l(e.checkList,(function(t){return a("el-checkbox",{key:t.oilGunId,attrs:{label:t.oilGunNo,value:t.oilGunNo}},[e._v(" "+e._s(t.oilGunNo+"号枪/"+t.oilName)+" ")])})),1)],1),a("el-form-item",{attrs:{label:"设备状态"}},[a("el-select",{attrs:{clearable:"",size:"small",placeholder:"请选择"},model:{value:e.form.deviceStatus,callback:function(t){e.$set(e.form,"deviceStatus",t)},expression:"form.deviceStatus"}},e._l(e.deviceStatusOptions,(function(e){return a("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),a("el-form-item",{attrs:{label:"设备厂家",prop:"deviceFactory"}},[a("el-input",{attrs:{placeholder:"请输入设备厂家"},model:{value:e.form.deviceFactory,callback:function(t){e.$set(e.form,"deviceFactory",t)},expression:"form.deviceFactory"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),a("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},r=[],i=(a("ac1f"),a("1276"),a("d3b7"),a("25f0"),a("7db0"),a("4a3b")),o=a("99bd"),l=(a("fcb7"),{name:"Manage",data:function(){return{single:!0,multiple:!0,total:0,manageList:[],checkList:[],gunNoList:[],deviceStatusOptions:[],deviceTypeOptions:[],stationOptions:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10,deviceNo:null,stationId:this.deptId,deviceType:null,deviceSerialNum:null},deptId:null,queryInfo:{stationId:null},deptInfo:{},query:{deptId:null},form:{},rules:{}}},created:function(){var e=this;this.getList(),this.getDicts("device_status").then((function(t){e.deviceStatusOptions=t.data})),this.getDicts("device_type").then((function(t){e.deviceTypeOptions=t.data}))},methods:{getList:function(){var e=this;Object(i["e"])(this.queryParams).then((function(t){e.manageList=t.rows,e.total=t.total}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={deviceId:null,deviceNo:null,deviceName:null,stationId:null,stationName:null,deviceType:null,deviceSerialNum:null,gunNo:null,deviceStatus:null,deviceFactory:null},this.resetForm("form"),this.gunNoList.length=0},deviceStatusFotmat:function(e,t){return"1"===e.deviceStatus?"在用":"2"===e.deviceStatus?"停用":void 0},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleAdd:function(){var e=this;2===this.jiBie?(this.open=!0,this.title="添加油站设备管理",this.form.stationId=this.deptInfo.deptId,this.form.stationName=this.deptInfo.deptName,this.queryInfo.stationId=this.deptInfo.deptId,Object(o["e"])(this.queryInfo).then((function(t){console.log(t),e.checkList=t.rows}))):this.msgSuccess("请登录对应的账号")},handleUpdate:function(e){var t=this;this.reset();var a=e.deviceId;Object(i["d"])(a).then((function(e){t.form=e.data,null!=t.form.gunNo&&""!=t.form.gunNo&&(t.gunNoList=t.form.gunNo.split(",")),t.queryInfo.stationId=t.form.stationId,Object(o["e"])(t.queryInfo).then((function(e){t.checkList=e.rows})),t.open=!0,t.title="修改油站设备管理"}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(null!=e.gunNoList&&e.gunNoList.length>0&&(e.form.gunNo=e.gunNoList.toString()),null!=e.form.deviceId?Object(i["f"])(e.form).then((function(t){e.msgSuccess("修改成功"),e.open=!1,e.getList()})):Object(i["a"])(e.form).then((function(t){e.msgSuccess("新增成功"),e.open=!1,e.getList()})))}))},handleDelete:function(e){var t=this,a=e.deviceId;this.$confirm("是否确认删除油站设备管理","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(i["b"])(a)})).then((function(){t.getList(),t.msgSuccess("删除成功")}))},onInstitutionChang:function(e){var t=this,a={};a=this.stationOptions.find((function(t){return t.deptId===e})),this.form.stationName=a.deptName,this.queryInfo.stationId=a.deptId,Object(o["e"])(this.queryInfo).then((function(e){t.checkList=e.rows}))},handleExport:function(){var e=this,t=this.queryParams;this.$confirm("是否确认导出所有油站设备管理数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(i["c"])(t)})).then((function(t){e.download(t.msg)}))}}}),s=l,c=a("2877"),u=Object(c["a"])(s,n,r,!1,null,null,null);t["default"]=u.exports},"0ed3":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return 0==e.pageStatus?a("div",[e._v("配置加载中...")]):1==e.pageStatus?a("div",[e._v("此页面不对此账号开放")]):2==e.pageStatus?a("div",[e._v("权限已下放到站点,请登录站点账号配置")]):3==e.pageStatus?a("div",[e._v("加载发生错误")]):4==e.pageStatus?a("div",{staticClass:"app-container"},[a("el-form",{attrs:{model:e.sumForm}},[a("el-form-item",{attrs:{label:"电子卡启动状态"}},[e._v(" "+e._s(0==e.sumForm.cardEnabledFlag?"未开启":"已开启")+" ")]),1==e.sumForm.cardEnabledFlag?a("el-form-item",{attrs:{label:"目前启动的电子卡"}},[e._v(" "+e._s(0==e.sumForm.cardOilsType.length?"你尚未选择要启动的电子卡":e.sumForm.cardOilsType.join(", "))+" ")]):e._e(),1==e.sumForm.cardEnabledFlag?a("el-form-item",{attrs:{label:"正在生效中的充值规则"}},[e._v(" "+e._s(0===e.sumForm.detailList.length?"你尚没有正在生效的规则":"")+" "),0!==e.sumForm.detailList.length?a("el-table",{attrs:{data:e.sumForm.detailList}},[a("af-table-column",{attrs:{label:"电子卡",align:"center",formatter:e.oilNameFormatter}}),a("af-table-column",{attrs:{label:"条件",align:"center",prop:"discountAmtTerm"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.discountAmtStart)+"≤充值金额(元)<"+e._s(t.row.discountAmtEnd)+" ")]}}],null,!1,3971755201)}),a("af-table-column",{attrs:{label:"赠送",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(1==t.row.settingRuleType?"按金额赠送":2==t.row.settingRuleType?"按比例赠送":"")+" --- 额度为 "+e._s(t.row.presentAmt)+" "+e._s("1"==t.row.settingRuleType?"元":"2"==t.row.settingRuleType?"%":"")+" ")]}}],null,!1,1297666071)})],1):e._e()],1):e._e(),1==e.sumForm.cardEnabledFlag?a("el-form-item",{attrs:{label:"电子卡会执行的优惠方案"}},[a("div",[e._v(" "+e._s(1==e.sumForm.isMarket?"营销方案 ":"")+" "+e._s(1==e.sumForm.isGradeSetting?"等级优惠 ":"")+" "+e._s(1==e.sumForm.isDiscountCoupon?"优惠券 ":"")+" "+e._s(1==e.sumForm.isMarket||1==e.sumForm.isGradeSetting||1==e.sumForm.isDiscountCoupon?"":"您未启动叠加,电子卡不会执行任何优惠方案")+" ")])]):e._e(),1==e.sumForm.cardEnabledFlag?a("el-form-item",{attrs:{label:"充值活动"}},[e._v(" "+e._s(0==e.sumForm.discountTimeSetting?"未开启":e.integralActivityDatePicker)+" ")]):e._e()],1)],1):e._e()},r=[],i=(a("159b"),a("d3b7"),a("25f0"),a("ac1f"),a("5319"),a("4de4"),a("1276"),a("caad"),a("2532"),a("d81d"),a("b775"));function o(e){return Object(i["a"])({url:"/customer/detail/listDetailInfo",method:"get",params:e})}var l=a("927d"),s={name:"Dzk_RuleList",data:function(){return{total:0,detailList:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10},form:{},rules:{},sumForm:{},timeSelect:[,["周天","周一","周二","周三","周四","周五","周六"],["1号","2号","3号","4号","5号","6号","7号","8号","9号","10号","11号","12号","13号","14号","15号","16号","17号","18号","19号","20号","21号","22号","23号","24号","25号","26号","27号","28号","29号","30号","31号"]],pageStatus:0}},created:function(){this.setPageStatus(),this.getList(),this.init()},computed:{integralActivityDatePicker:function(){var e=this;if(!this.sumForm.discountTime)return"";if(0==this.sumForm.integralActivity)return"";var t="",a=this.sumForm.discountTimeType;return console.log("time",this.sumForm.discountTime),1==a&&(t+="每周的"),2==a&&(t+="每月的"),3==a&&(t+="指定的日期 "),1==a||2==a?this.sumForm.discountTime.forEach((function(n){t+=e.timeSelect[a][n]+"、"})):3==a&&(console.log(this.sumForm.discountTime),t+=this.sumForm.discountTime.toString()),t=t.replace(/(、)$/g,"")+" 享受赠送比例是"+this.sumForm.presentScale+"%的活动优惠",t}},methods:{init:function(){var e=this;Object(l["b"])().then((function(t){e.sumForm=t.data,e.sumForm.cardOilsType=e.sumForm.cardOilsType.split(",").filter((function(e){return""!=e})),e.sumForm.detailList=e.sumForm.detailList.filter((function(t){return e.sumForm.cardOilsType.includes(t.cardType)}));var a=["","汽油卡","柴油卡","非油品卡","LNG卡","CNG卡"];e.sumForm.cardOilsType.map((function(t,n){e.sumForm.cardOilsType[n]=a[t]})),console.log(e.sumForm),"1"==e.sumForm.discountTimeType||"2"==e.sumForm.discountTimeType?e.sumForm.discountTime=e.sumForm.discountTime.split(",").map(parseFloat):"3"==e.sumForm.discountTimeType&&(0==e.sumForm.discountTime.length?e.sumForm.discountTime=[]:e.sumForm.discountTime=e.sumForm.discountTime.split(","))}))},setPageStatus:function(){var e=this;this.queryPageStatus([1,2],2).then((function(t){e.pageStatus=t}))},oilNameFormatter:function(e,t){return"1"===e.cardType?"汽油卡":"2"===e.cardType?"柴油卡":"3"===e.cardType?"非油品卡":"4"===e.cardType?"LNG卡":"5"===e.cardType?"CNG卡":e.cardType},getList:function(){var e=this;o(this.queryParams).then((function(t){e.detailList=t.rows,e.total=t.total}))}}},c=s,u=a("2877"),m=Object(u["a"])(c,n,r,!1,null,null,null);t["default"]=m.exports},"0ef5":function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return i}));var n=a("b775");function r(e){return Object(n["a"])({url:"/station/noorder/list",method:"get",params:e})}function i(e){return Object(n["a"])({url:"/station/noorder/export",method:"get",params:e})}},"0f1d":function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return i}));var n=a("b775");function r(e){return Object(n["a"])({url:"/customer/manage/list",method:"get",params:e})}function i(e){return Object(n["a"])({url:"/station/order/list",method:"get",params:e})}},1438:function(e,t,a){"use strict";a("48b9")},"1a06":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",[a("span",{staticStyle:{color:"#ff9955","font-size":"25px"}},[e._v("|")]),a("span",{staticStyle:{"font-size":"20px"}},[e._v("数据概览")]),a("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",staticStyle:{"margin-left":"20px"},attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[a("el-form-item",[a("el-button",{attrs:{size:"mini"},on:{click:e.dayDataSource}},[e._v("今天")]),a("el-button",{attrs:{size:"mini"},on:{click:e.yesDataSource}},[e._v("昨天")]),a("el-button",{attrs:{size:"mini"},on:{click:e.workDataSource}},[e._v("本周")]),a("el-button",{attrs:{size:"mini"},on:{click:e.monthDataSource}},[e._v("本月")]),a("el-date-picker",{staticStyle:{margin:"0px 10px"},attrs:{type:"datetimerange","value-format":"yyyy-MM-dd HH:mm:ss",size:"mini","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRangeCreatedDate,callback:function(t){e.dateRangeCreatedDate=t},expression:"dateRangeCreatedDate"}}),a("el-button",{attrs:{type:"cyan",size:"mini"},on:{click:e.queryDataSource}},[e._v("查询")])],1)],1),a("el-row",{staticClass:"panel-group",attrs:{gutter:10}},[a("el-col",{attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"flex xiaoliang"},[a("div",{staticStyle:{"line-height":"62px","font-size":"2vw"}},[e._v(" "+e._s(e.form.zongliters)+" ")]),a("div",{staticStyle:{"font-size":"2vw"}},[e._v(" 总销量(L) ")])])]),a("el-col",{attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"flex xiaoe"},[a("div",{staticStyle:{"line-height":"62px","font-size":"2vw"}},[e._v(" "+e._s(e.form.zongAmt)+" ")]),a("div",{staticStyle:{"font-size":"2vw"}},[e._v(" 总金额(元) ")])])]),a("el-col",{attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"flex qiyou"},[a("div",{staticStyle:{"font-size":"28px","margin-top":"-20px"}},[e._v(" 汽油 ")]),a("div",{staticClass:"flex-qy",staticStyle:{"margin-top":"30px"}},[a("div",{staticClass:"flex-qy-sx",staticStyle:{"margin-right":"10px"}},[a("div",{staticStyle:{"font-size":"1.5vw"}},[e._v(e._s(e.form.qyliters))]),a("div",{staticStyle:{"font-size":"1.5vw"}},[e._v("升数(L)")])]),a("div",{staticClass:"flex-qy-sx",staticStyle:{"margin-left":"10px"}},[a("div",{staticStyle:{"font-size":"1.5vw"}},[e._v(e._s(e.form.qyamt)+" ")]),a("div",{staticStyle:{"font-size":"1.5vw"}},[e._v("金额(元)")])])])])]),a("el-col",{attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"flex chaiyou"},[a("div",{staticStyle:{"font-size":"28px","margin-top":"-20px"}},[e._v(" 柴油 ")]),a("div",{staticClass:"flex-qy",staticStyle:{"margin-top":"30px"}},[a("div",{staticClass:"flex-qy-sx",staticStyle:{"margin-right":"10px"}},[a("div",{staticStyle:{"font-size":"1.5vw"}},[e._v(e._s(e.form.cyliters))]),a("div",{staticStyle:{"font-size":"1.5vw"}},[e._v("升数(L)")])]),a("div",{staticClass:"flex-qy-sx",staticStyle:{"margin-left":"10px"}},[a("div",{staticStyle:{"font-size":"1.5vw"}},[e._v(e._s(e.form.cyamt))]),a("div",{staticStyle:{"font-size":"1.5vw"}},[e._v("金额(元)")])])])])])],1)],1),a("div",{staticStyle:{width:"100%",height:"151px",background:"#FFFFFF"}},[a("span",{staticStyle:{color:"#ff9955","font-size":"25px"}},[e._v("|")]),a("span",{staticStyle:{"font-size":"20px"}},[e._v("收入概览")]),a("el-row",{staticStyle:{display:"flex","align-items":"center","justify-content":"center",width:"100%",height:"100%"}},[a("el-col",{attrs:{xs:12,sm:12,lg:3}},[a("div",{staticClass:"flex-sr"},[a("div",[a("span",{staticClass:"sr-font"},[e._v(e._s(e.form.wxAmt))])]),a("div",[e._v("微信(元)")])])]),a("el-col",{attrs:{xs:12,sm:12,lg:3}},[a("div",{staticClass:"flex-sr"},[a("div",[a("span",{staticClass:"sr-font"},[e._v(e._s(e.form.zfbAmt))])]),a("div",[e._v("支付宝(元)")])])]),a("el-col",{attrs:{xs:12,sm:12,lg:3}},[a("div",{staticClass:"flex-sr"},[a("div",[a("span",{staticClass:"sr-font"},[e._v(e._s(e.form.xjAmt))])]),a("div",[e._v("现金(元)")])])]),a("el-col",{attrs:{xs:12,sm:12,lg:3}},[a("div",{staticClass:"flex-sr"},[a("div",[a("span",{staticClass:"sr-font"},[e._v(e._s(e.form.posAmt))])]),a("div",[e._v("POS(元)")])])]),a("el-col",{attrs:{xs:12,sm:12,lg:3}},[a("div",{staticClass:"flex-sr"},[a("div",[a("span",{staticClass:"sr-font"},[e._v(e._s(e.form.didiAppAmt))])]),a("div",[e._v("滴滴APP(元)")])])]),a("el-col",{attrs:{xs:12,sm:12,lg:3}},[a("div",{staticClass:"flex-sr"},[a("div",[a("span",{staticClass:"sr-font"},[e._v(e._s(e.form.tyAppAmt))])]),a("div",[e._v("团油APP(元)")])])]),a("el-col",{attrs:{xs:12,sm:12,lg:3}},[a("div",{staticClass:"flex-sr"},[a("div",[a("span",{staticClass:"sr-font"},[e._v(e._s(e.form.otherAmt))])]),a("div",[e._v("其他(元)")])])])],1)],1),a("div",{staticStyle:{width:"100%",height:"151px"}},[a("span",{staticStyle:{color:"#ff9955","font-size":"25px"}},[e._v("|")]),a("span",{staticStyle:{"font-size":"20px"}},[e._v("今日数据")]),a("el-row",{staticStyle:{display:"flex","align-items":"center","justify-content":"center",width:"100%",height:"100%"}},[a("el-col",{attrs:{xs:12,sm:12,lg:3}},[a("div",{staticClass:"flex-sr"},[a("div",[a("span",{staticClass:"sr-font"},[e._v(e._s(e.infoFrom.czAmt))])]),a("div",[e._v("充值金额(元)")])])]),a("el-col",{attrs:{xs:12,sm:12,lg:3}},[a("div",{staticClass:"flex-sr"},[a("div",[a("span",{staticClass:"sr-font"},[e._v(e._s(e.infoFrom.xfAmt))])]),a("div",[e._v("消费金额(元)")])])]),a("el-col",{attrs:{xs:12,sm:12,lg:3}},[a("div",{staticClass:"flex-sr"},[a("div",[a("span",{staticClass:"sr-font"},[e._v(e._s(e.infoFrom.yeAmt))])]),a("div",[e._v("余额(元)")])])]),a("el-col",{attrs:{xs:12,sm:12,lg:3}},[a("div",{staticClass:"flex-sr"},[a("div",[a("span",{staticClass:"sr-font"},[e._v(e._s(e.infoFrom.jrhy))])]),a("div",[e._v("新增电子卡(个)")])])]),a("el-col",{attrs:{xs:12,sm:12,lg:3}},[a("div",{staticClass:"flex-sr"},[a("div",[a("span",{staticClass:"sr-font"},[e._v(e._s(e.infoFrom.zonghy))])]),a("div",[e._v("电子卡总数(个)")])])]),a("el-col",{attrs:{xs:12,sm:12,lg:3}},[a("div",{staticClass:"flex-sr"},[a("div",[a("span",[e._v("0")])]),a("div",[e._v("营销费用(元)")])])]),a("el-col",{attrs:{xs:12,sm:12,lg:3}},[a("div",{staticClass:"flex-sr"},[a("div",[a("span",[e._v("0")])]),a("div",[e._v("营销产出比(%)")])])])],1)],1)])},r=[],i=(a("ac1f"),a("5319"),a("7030")),o={name:"sourceI",data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,couponList:[],dateRangeCreatedDate:[],title:"",open:!1,queryParams:{createdDate:null,stationId:null,stationName:null,beginTime:null,endTime:null},queryInfo:{stationId:null},form:{zongAmt:0,zongliters:0,qyamt:0,cyamt:0,qyliters:0,cyliters:0,wxAmt:0,zfbAmt:0,xjAmt:0,didiAppAmt:0,tyAppAmt:0,otherAmt:0,memberAmt:0,posAmt:0},infoFrom:{czAmt:0,xfAmt:0,yeAmt:0,jrhy:0,zonghy:0},rules:{}}},created:function(){this.dayDataSource()},methods:{getList:function(){var e=this;null!=this.queryParams.stationId&&""!=this.queryParams.stationId||(this.queryParams.stationId=this.$store.state.user.deptId),Object(i["l"])(this.queryParams).then((function(t){t.hasOwnProperty("data")&&(e.form.zongAmt=t.data.amt,e.form.zongliters=t.data.orderLiters)})),Object(i["e"])(this.queryParams).then((function(t){if(t.hasOwnProperty("rows"))for(var a in t.rows)"2"===t.rows[a].oilType?(e.form.qyamt=t.rows[a].amt,e.form.qyliters=t.rows[a].orderLiters):"1"===t.rows[a].oilType&&(e.form.cyamt=t.rows[a].amt,e.form.cyliters=t.rows[a].orderLiters)})),Object(i["m"])(this.queryParams).then((function(t){t.hasOwnProperty("data")&&(t.data.wxAmt?e.form.wxAmt=t.data.wxAmt:e.form.wxAmt=0,t.data.zfbAmt?e.form.zfbAmt=t.data.zfbAmt:e.form.zfbAmt=0,t.data.xjAmt?e.form.xjAmt=t.data.xjAmt:e.form.xjAmt=0,t.data.didiAppAmt?e.form.didiAppAmt=t.data.didiAppAmt:e.form.didiAppAmt=0,t.data.tyAppAmt?e.form.tyAppAmt=t.data.tyAppAmt:e.form.tyAppAmt=0,t.data.otherAmt?e.form.otherAmt=t.data.otherAmt:e.form.otherAmt=0,t.data.memberAmt?e.form.memberAmt=t.data.memberAmt:e.form.memberAmt=0,t.data.posAmt?e.form.posAmt=t.data.posAmt:e.form.posAmt=0)}))},dayDataSource:function(){var e=this;this.reset(),this.queryParams.beginTime=this.getNowFormatDate(new Date),this.queryParams.endTime=this.getEndFormatDate(new Date),this.queryParams.stationId=this.$store.selectDeptId,this.getList(),console.log("this.queryParams",this.queryParams),Object(i["b"])(this.queryParams).then((function(t){t.hasOwnProperty("data")&&(t.data.czAmt?e.infoFrom.czAmt=t.data.czAmt:e.infoFrom.czAmt=0,t.data.xfAmt?e.infoFrom.xfAmt=t.data.xfAmt:e.infoFrom.xfAmt=0)})),this.queryInfo.stationId=this.queryParams.stationId,Object(i["c"])(this.queryInfo).then((function(t){t.hasOwnProperty("data")&&(t.data.amt?e.infoFrom.yeAmt=t.data.amt:e.infoFrom.yeAmt=0,t.data.num?e.infoFrom.zonghy=t.data.num:e.infoFrom.zonghy=0)})),Object(i["d"])(this.queryParams).then((function(t){t.hasOwnProperty("data")&&(t.data.num?e.infoFrom.jrhy=t.data.num:e.infoFrom.jrhy=0)}))},yesDataSource:function(){this.reset(),this.queryParams.beginTime=this.getFormatDate(new Date),this.queryParams.endTime=this.getNowFormatDate(new Date),this.queryParams.stationId=this.$store.selectDeptId,this.getList()},workDataSource:function(){this.reset(),this.queryParams.beginTime=this.getDates(),this.queryParams.endTime=this.getEndFormatDate(new Date),this.queryParams.stationId=this.$store.selectDeptId,this.getList()},monthDataSource:function(){this.reset(),this.queryParams.beginTime=this.getMonthDate(),this.queryParams.endTime=this.getEndFormatDate(new Date),this.queryParams.stationId=this.$store.selectDeptId,this.getList()},queryDataSource:function(){this.reset(),this.queryParams.beginTime=this.dateRangeCreatedDate[0],this.queryParams.endTime=this.dateRangeCreatedDate[1],this.queryParams.stationId=this.$store.selectDeptId,this.getList()},getNowFormatDate:function(e){var t="-",a=e.getMonth()+1,n=e.getDate();a>=1&&a<=9&&(a="0"+a),n>=0&&n<=9&&(n="0"+n);var r=e.getFullYear()+t+a+t+n;return r},getEndFormatDate:function(e){var t=e.getDate();t+=1,e.setDate(t);var a="-",n=e.getMonth()+1,r=e.getDate();n>=1&&n<=9&&(n="0"+n),r>=0&&r<=9&&(r="0"+r);var i=e.getFullYear()+a+n+a+r;return i},getFormatDate:function(e){var t=e.getDate();t-=1,e.setDate(t);var a="-",n=e.getMonth()+1,r=e.getDate();n>=1&&n<=9&&(n="0"+n),r>=0&&r<=9&&(r="0"+r);var i=e.getFullYear()+a+n+a+r;return i},getDates:function(){var e=new Date,t=e.getTime(),a=e.getDay(),n=new Date(t+864e5*(0-(a+6)%7)).toLocaleDateString().replace(/[年月]/g,"-").replace(/[日上下午]/g,""),r=n.replace(/-/g,"/"),i=new Date(r),o=i.getMonth()+1,l=i.getDate();return o=o<10?"0"+o:o,l=l<10?"0"+l:l,n=i.getFullYear()+"-"+o+"-"+l,n},getMonthDate:function(){var e=new Date,t="-",a=e.getMonth()+1;a>=1&&a<=9&&(a="0"+a);var n=e.getFullYear()+t+a+t+"01";return n},reset:function(){this.queryParams={createdDate:null,stationId:null,stationName:null,beginTime:null,endTime:null},this.form={zongAmt:0,zongliters:0,qyamt:0,cyamt:0,qyliters:0,cyliters:0,wxAmt:0,zfbAmt:0,xjAmt:0,didiAppAmt:0,tyAppAmt:0,otherAmt:0,memberAmt:0,posAmt:0}}}},l=o,s=(a("4113"),a("2877")),c=Object(s["a"])(l,n,r,!1,null,"0099e7e5",null);t["default"]=c.exports},"1a2c":function(e,t,a){"use strict";a("dfbc")},"1bb4":function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"c",(function(){return i})),a.d(t,"b",(function(){return o}));var n=a("b775");function r(e){return Object(n["a"])({url:"/station/pay",method:"post",data:e})}function i(e){return Object(n["a"])({url:"/station/pay",method:"put",data:e})}function o(e){return Object(n["a"])({url:"/station/pay/queryOne",method:"get",params:e})}},"1e4b":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dashboard-editor-container"},[a("panel-group",{on:{handleSetLineChartData:e.handleSetLineChartData}}),a("el-row",{staticStyle:{background:"#fff",padding:"16px 16px 0","margin-bottom":"32px"}},[a("line-chart",{attrs:{"chart-data":e.lineChartData}})],1),a("el-row",{attrs:{gutter:32}},[a("el-col",{attrs:{xs:24,sm:24,lg:8}},[a("div",{staticClass:"chart-wrapper"},[a("raddar-chart")],1)]),a("el-col",{attrs:{xs:24,sm:24,lg:8}},[a("div",{staticClass:"chart-wrapper"},[a("pie-chart")],1)]),a("el-col",{attrs:{xs:24,sm:24,lg:8}},[a("div",{staticClass:"chart-wrapper"},[a("bar-chart")],1)])],1)],1)},r=[],i=a("fbc4"),o=a("eab4"),l=a("0a5c"),s=a("d153"),c=a("9488"),u={newVisitis:{expectedData:[100,120,161,134,105,160,165],actualData:[120,82,91,154,162,140,145]},messages:{expectedData:[200,192,120,144,160,130,140],actualData:[180,160,151,106,145,150,130]},purchases:{expectedData:[80,100,121,104,105,90,100],actualData:[120,90,100,138,142,130,130]},shoppings:{expectedData:[130,140,141,142,145,150,160],actualData:[120,82,91,154,162,140,130]}},m={name:"Index",components:{PanelGroup:i["default"],LineChart:o["default"],RaddarChart:l["default"],PieChart:s["default"],BarChart:c["default"]},data:function(){return{lineChartData:u.newVisitis}},methods:{handleSetLineChartData:function(e){this.lineChartData=u[e]}}},d=m,p=(a("9570"),a("2877")),f=Object(p["a"])(d,n,r,!1,null,"0312a332",null);t["default"]=f.exports},"1e8b":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{model:e.user,rules:e.rules,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"用户昵称",prop:"nickName"}},[a("el-input",{model:{value:e.user.nickName,callback:function(t){e.$set(e.user,"nickName",t)},expression:"user.nickName"}})],1),a("el-form-item",{attrs:{label:"手机号码",prop:"phonenumber"}},[a("el-input",{attrs:{maxlength:"11"},model:{value:e.user.phonenumber,callback:function(t){e.$set(e.user,"phonenumber",t)},expression:"user.phonenumber"}})],1),a("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[a("el-input",{attrs:{maxlength:"50"},model:{value:e.user.email,callback:function(t){e.$set(e.user,"email",t)},expression:"user.email"}})],1),a("el-form-item",{attrs:{label:"性别"}},[a("el-radio-group",{model:{value:e.user.sex,callback:function(t){e.$set(e.user,"sex",t)},expression:"user.sex"}},[a("el-radio",{attrs:{label:"0"}},[e._v("男")]),a("el-radio",{attrs:{label:"1"}},[e._v("女")])],1)],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submit}},[e._v("保存")]),a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:e.close}},[e._v("关闭")])],1)],1)},r=[],i=a("c0c7"),o={props:{user:{type:Object}},data:function(){return{rules:{nickName:[{required:!0,message:"用户昵称不能为空",trigger:"blur"}],email:[{required:!0,message:"邮箱地址不能为空",trigger:"blur"},{type:"email",message:"'请输入正确的邮箱地址",trigger:["blur","change"]}],phonenumber:[{required:!0,message:"手机号码不能为空",trigger:"blur"},{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message:"请输入正确的手机号码",trigger:"blur"}]}}},methods:{submit:function(){var e=this;this.$refs["form"].validate((function(t){t&&Object(i["k"])(e.user).then((function(t){e.msgSuccess("修改成功")}))}))},close:function(){this.$store.dispatch("tagsView/delView",this.$route),this.$router.push({path:"/index"})}}},l=o,s=a("2877"),c=Object(s["a"])(l,n,r,!1,null,null,null);t["default"]=c.exports},"1f12":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.adjustList}},[e._e(),a("el-table-column",{attrs:{label:"油品名称",align:"center",prop:"oilName"}}),a("el-table-column",{attrs:{label:"调整价格",align:"center",prop:"oilAdjustPrice"}}),a("el-table-column",{attrs:{label:"生效状态",align:"center",prop:"takeEffectStatus",formatter:e.statusFormat}}),a("el-table-column",{attrs:{label:"生效时间",align:"center",prop:"takeEffectDate",width:"180"}}),a("el-table-column",{attrs:{label:"调价时间",align:"center",prop:"adjustDate",width:"180"}}),e._e(),a("el-table-column",{attrs:{label:"油站名称",align:"center",prop:"stationName"}}),a("el-table-column",{attrs:{label:"操作员",align:"center",prop:"operator"}})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}})],1)},r=[],i=a("9fa9"),o=(a("99bd"),{name:"Adjust",data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,adjustList:[],oilNameOptions:[],takeEffectStatusOptions:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10,oilName:null,oilAdjustPrice:null,takeEffectStatus:null,takeEffectDate:null,adjustDate:null,stationId:null,stationName:null,operator:null},form:{},rules:{}}},created:function(){var e=this;this.getList(),this.getDicts("take_effect_status").then((function(t){e.takeEffectStatusOptions=t.data}))},methods:{getList:function(){var e=this;this.loading=!0,this.queryParams.stationId=this.$store.selectDeptId,null!=this.queryParams.stationId&&""!=this.queryParams.stationId||(this.queryParams.stationId=this.$store.state.user.deptId),Object(i["b"])(this.queryParams).then((function(t){e.adjustList=t.rows,e.total=t.total,e.loading=!1}))},statusFormat:function(e,t){return this.selectDictLabel(this.takeEffectStatusOptions,e.takeEffectStatus)}}}),l=o,s=a("2877"),c=Object(s["a"])(l,n,r,!1,null,null,null);t["default"]=c.exports},"1f34":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4,xs:24}},[a("div",{staticClass:"head-container"},[a("el-input",{staticStyle:{"margin-bottom":"20px"},attrs:{placeholder:"请输入部门名称",clearable:"",size:"small","prefix-icon":"el-icon-search"},model:{value:e.deptName,callback:function(t){e.deptName=t},expression:"deptName"}})],1),a("div",{staticClass:"head-container"},[a("el-tree",{ref:"tree",attrs:{data:e.deptOptions,props:e.defaultProps,"expand-on-click-node":!1,"filter-node-method":e.filterNode,"default-expand-all":""},on:{"node-click":e.handleNodeClick}})],1)]),a("el-col",{attrs:{span:20,xs:24}},[a("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[a("el-form-item",{attrs:{label:"用户名称",prop:"userName"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入用户名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.userName,callback:function(t){e.$set(e.queryParams,"userName",t)},expression:"queryParams.userName"}})],1),a("el-form-item",{attrs:{label:"手机号码",prop:"phonenumber"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入手机号码",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.phonenumber,callback:function(t){e.$set(e.queryParams,"phonenumber",t)},expression:"queryParams.phonenumber"}})],1),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"用户状态",clearable:"",size:"small"},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.statusOptions,(function(e){return a("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),a("el-form-item",{attrs:{label:"创建时间"}},[a("el-date-picker",{staticStyle:{width:"240px"},attrs:{size:"small","value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"cyan",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),a("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),a("el-row",{staticClass:"mb8",attrs:{gutter:10}},[a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:add"],expression:"['system:user:add']"}],attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:edit"],expression:"['system:user:edit']"}],attrs:{type:"success",icon:"el-icon-edit",size:"mini",disabled:e.single},on:{click:e.handleUpdate}},[e._v("修改")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:remove"],expression:"['system:user:remove']"}],attrs:{type:"danger",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:import"],expression:"['system:user:import']"}],attrs:{type:"info",icon:"el-icon-upload2",size:"mini"},on:{click:e.handleImport}},[e._v("导入")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:export"],expression:"['system:user:export']"}],attrs:{type:"warning",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),a("right-toolbar",{attrs:{showSearch:e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.userList},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"50",align:"center"}}),a("el-table-column",{attrs:{label:"用户编号",align:"center",prop:"userId"}}),a("el-table-column",{attrs:{label:"用户名称",align:"center",prop:"userName","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"用户昵称",align:"center",prop:"nickName","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"部门",align:"center",prop:"dept.deptName","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"手机号码",align:"center",prop:"phonenumber",width:"120"}}),a("el-table-column",{attrs:{label:"状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-value":"0","inactive-value":"1"},on:{change:function(a){return e.handleStatusChange(t.row)}},model:{value:t.row.status,callback:function(a){e.$set(t.row,"status",a)},expression:"scope.row.status"}})]}}])}),a("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.parseTime(t.row.createTime)))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"160","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:edit"],expression:"['system:user:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(a){return e.handleUpdate(t.row)}}},[e._v("修改")]),1!==t.row.userId?a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:remove"],expression:"['system:user:remove']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(a){return e.handleDelete(t.row)}}},[e._v("删除")]):e._e(),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:resetPwd"],expression:"['system:user:resetPwd']"}],attrs:{size:"mini",type:"text",icon:"el-icon-key"},on:{click:function(a){return e.handleResetPwd(t.row)}}},[e._v("重置")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}})],1)],1),a("el-dialog",{attrs:{title:e.title,visible:e.open,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"用户昵称",prop:"nickName"}},[a("el-input",{attrs:{placeholder:"请输入用户昵称"},model:{value:e.form.nickName,callback:function(t){e.$set(e.form,"nickName",t)},expression:"form.nickName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"归属部门",prop:"deptId"}},[a("treeselect",{attrs:{options:e.deptOptions,"show-count":!0,placeholder:"请选择归属部门"},model:{value:e.form.deptId,callback:function(t){e.$set(e.form,"deptId",t)},expression:"form.deptId"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"手机号码",prop:"phonenumber"}},[a("el-input",{attrs:{placeholder:"请输入手机号码",maxlength:"11"},model:{value:e.form.phonenumber,callback:function(t){e.$set(e.form,"phonenumber",t)},expression:"form.phonenumber"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[a("el-input",{attrs:{placeholder:"请输入邮箱",maxlength:"50"},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[void 0==e.form.userId?a("el-form-item",{attrs:{label:"用户名称",prop:"userName"}},[a("el-input",{attrs:{placeholder:"请输入用户名称"},model:{value:e.form.userName,callback:function(t){e.$set(e.form,"userName",t)},expression:"form.userName"}})],1):e._e()],1),a("el-col",{attrs:{span:12}},[void 0==e.form.userId?a("el-form-item",{attrs:{label:"用户密码",prop:"password"}},[a("el-input",{attrs:{placeholder:"请输入用户密码",type:"password"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1):e._e()],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"用户性别"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.sex,callback:function(t){e.$set(e.form,"sex",t)},expression:"form.sex"}},e._l(e.sexOptions,(function(e){return a("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"状态"}},[a("el-radio-group",{model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.statusOptions,(function(t){return a("el-radio",{key:t.dictValue,attrs:{label:t.dictValue}},[e._v(e._s(t.dictLabel))])})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"岗位"}},[a("el-select",{attrs:{multiple:"",placeholder:"请选择"},model:{value:e.form.postIds,callback:function(t){e.$set(e.form,"postIds",t)},expression:"form.postIds"}},e._l(e.postOptions,(function(e){return a("el-option",{key:e.postId,attrs:{label:e.postName,value:e.postId,disabled:1==e.status}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"角色"}},[a("el-select",{attrs:{multiple:"",placeholder:"请选择"},model:{value:e.form.roleIds,callback:function(t){e.$set(e.form,"roleIds",t)},expression:"form.roleIds"}},e._l(e.roleOptions,(function(e){return a("el-option",{key:e.roleId,attrs:{label:e.roleName,value:e.roleId,disabled:1==e.status}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"备注"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入内容"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),a("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1),a("el-dialog",{attrs:{title:e.upload.title,visible:e.upload.open,width:"400px","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.upload,"open",t)}}},[a("el-upload",{ref:"upload",attrs:{limit:1,accept:".xlsx, .xls",headers:e.upload.headers,action:e.upload.url+"?updateSupport="+e.upload.updateSupport,disabled:e.upload.isUploading,"on-progress":e.handleFileUploadProgress,"on-success":e.handleFileSuccess,"auto-upload":!1,drag:""}},[a("i",{staticClass:"el-icon-upload"}),a("div",{staticClass:"el-upload__text"},[e._v(" 将文件拖到此处,或 "),a("em",[e._v("点击上传")])]),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[a("el-checkbox",{model:{value:e.upload.updateSupport,callback:function(t){e.$set(e.upload,"updateSupport",t)},expression:"upload.updateSupport"}}),e._v("是否更新已经存在的用户数据 "),a("el-link",{staticStyle:{"font-size":"12px"},attrs:{type:"info"},on:{click:e.importTemplate}},[e._v("下载模板")])],1),a("div",{staticClass:"el-upload__tip",staticStyle:{color:"red"},attrs:{slot:"tip"},slot:"tip"},[e._v("提示:仅允许导入“xls”或“xlsx”格式文件!")])]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.submitFileForm}},[e._v("确 定")]),a("el-button",{on:{click:function(t){e.upload.open=!1}}},[e._v("取 消")])],1)],1)],1)},r=[],i=(a("4de4"),a("d81d"),a("c0c7")),o=a("5f87"),l=a("fcb7"),s=a("ca17"),c=a.n(s),u=(a("542c"),{name:"User",components:{Treeselect:c.a},data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,userList:null,title:"",deptOptions:void 0,open:!1,deptName:void 0,initPassword:void 0,dateRange:[],statusOptions:[],sexOptions:[],postOptions:[],roleOptions:[],form:{},defaultProps:{children:"children",label:"label"},upload:{open:!1,title:"",isUploading:!1,updateSupport:0,headers:{Authorization:"Bearer "+Object(o["a"])()},url:"/prod-api/system/user/importData"},queryParams:{pageNum:1,pageSize:10,userName:void 0,phonenumber:void 0,status:void 0,deptId:void 0},rules:{userName:[{required:!0,message:"用户名称不能为空",trigger:"blur"}],nickName:[{required:!0,message:"用户昵称不能为空",trigger:"blur"}],deptId:[{required:!0,message:"归属部门不能为空",trigger:"blur"}],password:[{required:!0,message:"用户密码不能为空",trigger:"blur"}],email:[{required:!0,message:"邮箱地址不能为空",trigger:"blur"},{type:"email",message:"'请输入正确的邮箱地址",trigger:["blur","change"]}],phonenumber:[{required:!0,message:"手机号码不能为空",trigger:"blur"},{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message:"请输入正确的手机号码",trigger:"blur"}]}}},watch:{deptName:function(e){this.$refs.tree.filter(e)}},created:function(){var e=this;this.getList(),this.getTreeselect(),this.getDicts("sys_normal_disable").then((function(t){e.statusOptions=t.data})),this.getDicts("sys_user_sex").then((function(t){e.sexOptions=t.data})),this.getConfigKey("sys.user.initPassword").then((function(t){e.initPassword=t.msg}))},methods:{getList:function(){var e=this;this.loading=!0,Object(i["h"])(this.addDateRange(this.queryParams,this.dateRange)).then((function(t){e.userList=t.rows,e.total=t.total,e.loading=!1}))},getTreeselect:function(){var e=this;Object(l["h"])().then((function(t){e.deptOptions=t.data}))},filterNode:function(e,t){return!e||-1!==t.label.indexOf(e)},handleNodeClick:function(e){this.queryParams.deptId=e.id,this.getList()},handleStatusChange:function(e){var t=this,a="0"===e.status?"启用":"停用";this.$confirm('确认要"'+a+'""'+e.userName+'"用户吗?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(i["b"])(e.userId,e.status)})).then((function(){t.msgSuccess(a+"成功")})).catch((function(){e.status="0"===e.status?"1":"0"}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={userId:void 0,deptId:void 0,userName:void 0,nickName:void 0,password:void 0,phonenumber:void 0,email:void 0,sex:void 0,status:"0",remark:void 0,postIds:[],roleIds:[]},this.resetForm("form")},handleQuery:function(){this.queryParams.page=1,this.getList()},resetQuery:function(){this.dateRange=[],this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.userId})),this.single=1!=e.length,this.multiple=!e.length},handleAdd:function(){var e=this;this.reset(),this.getTreeselect(),Object(i["e"])().then((function(t){e.postOptions=t.posts,e.roleOptions=t.roles,e.open=!0,e.title="添加用户",e.form.password=e.initPassword}))},handleUpdate:function(e){var t=this;this.reset(),this.getTreeselect();var a=e.userId||this.ids;Object(i["e"])(a).then((function(e){t.form=e.data,t.postOptions=e.posts,t.roleOptions=e.roles,t.form.postIds=e.postIds,t.form.roleIds=e.roleIds,t.open=!0,t.title="修改用户",t.form.password=""}))},handleResetPwd:function(e){var t=this;this.$prompt('请输入"'+e.userName+'"的新密码',"提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then((function(a){var n=a.value;Object(i["i"])(e.userId,n).then((function(e){t.msgSuccess("修改成功,新密码是:"+n)}))})).catch((function(){}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(void 0!=e.form.userId?Object(i["j"])(e.form).then((function(t){e.msgSuccess("修改成功"),e.open=!1,e.getList()})):Object(i["a"])(e.form).then((function(t){e.msgSuccess("新增成功"),e.open=!1,e.getList()})))}))},handleDelete:function(e){var t=this,a=e.userId||this.ids;this.$confirm('是否确认删除用户编号为"'+a+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(i["c"])(a)})).then((function(){t.getList(),t.msgSuccess("删除成功")}))},handleExport:function(){var e=this,t=this.queryParams;this.$confirm("是否确认导出所有用户数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(i["d"])(t)})).then((function(t){e.download(t.msg)}))},handleImport:function(){this.upload.title="用户导入",this.upload.open=!0},importTemplate:function(){var e=this;Object(i["g"])().then((function(t){e.download(t.msg)}))},handleFileUploadProgress:function(e,t,a){this.upload.isUploading=!0},handleFileSuccess:function(e,t,a){this.upload.open=!1,this.upload.isUploading=!1,this.$refs.upload.clearFiles(),this.$alert(e.msg,"导入结果",{dangerouslyUseHTMLString:!0}),this.getList()},submitFileForm:function(){this.$refs.upload.submit()}}}),m=u,d=a("2877"),p=Object(d["a"])(m,n,r,!1,null,null,null);t["default"]=p.exports},"202d":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[a("el-form-item",{attrs:{label:"公告标题",prop:"noticeTitle"}},[a("el-input",{attrs:{placeholder:"请输入公告标题",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.noticeTitle,callback:function(t){e.$set(e.queryParams,"noticeTitle",t)},expression:"queryParams.noticeTitle"}})],1),a("el-form-item",{attrs:{label:"操作人员",prop:"createBy"}},[a("el-input",{attrs:{placeholder:"请输入操作人员",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.createBy,callback:function(t){e.$set(e.queryParams,"createBy",t)},expression:"queryParams.createBy"}})],1),a("el-form-item",{attrs:{label:"类型",prop:"noticeType"}},[a("el-select",{attrs:{placeholder:"公告类型",clearable:"",size:"small"},model:{value:e.queryParams.noticeType,callback:function(t){e.$set(e.queryParams,"noticeType",t)},expression:"queryParams.noticeType"}},e._l(e.typeOptions,(function(e){return a("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),a("el-form-item",[a("el-button",{attrs:{type:"cyan",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),a("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),a("el-row",{staticClass:"mb8",attrs:{gutter:10}},[a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:notice:add"],expression:"['system:notice:add']"}],attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:notice:edit"],expression:"['system:notice:edit']"}],attrs:{type:"success",icon:"el-icon-edit",size:"mini",disabled:e.single},on:{click:e.handleUpdate}},[e._v("修改")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:notice:remove"],expression:"['system:notice:remove']"}],attrs:{type:"danger",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),a("right-toolbar",{attrs:{showSearch:e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.noticeList},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),a("el-table-column",{attrs:{label:"序号",align:"center",prop:"noticeId",width:"100"}}),a("el-table-column",{attrs:{label:"公告标题",align:"center",prop:"noticeTitle","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"公告类型",align:"center",prop:"noticeType",formatter:e.typeFormat,width:"100"}}),a("el-table-column",{attrs:{label:"状态",align:"center",prop:"status",formatter:e.statusFormat,width:"100"}}),a("el-table-column",{attrs:{label:"创建者",align:"center",prop:"createBy",width:"100"}}),a("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.parseTime(t.row.createTime,"{y}-{m}-{d}")))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:notice:edit"],expression:"['system:notice:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(a){return e.handleUpdate(t.row)}}},[e._v("修改")]),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:notice:remove"],expression:"['system:notice:remove']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(a){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),a("el-dialog",{attrs:{title:e.title,visible:e.open,width:"780px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"公告标题",prop:"noticeTitle"}},[a("el-input",{attrs:{placeholder:"请输入公告标题"},model:{value:e.form.noticeTitle,callback:function(t){e.$set(e.form,"noticeTitle",t)},expression:"form.noticeTitle"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"公告类型",prop:"noticeType"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.noticeType,callback:function(t){e.$set(e.form,"noticeType",t)},expression:"form.noticeType"}},e._l(e.typeOptions,(function(e){return a("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"状态"}},[a("el-radio-group",{model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.statusOptions,(function(t){return a("el-radio",{key:t.dictValue,attrs:{label:t.dictValue}},[e._v(e._s(t.dictLabel))])})),1)],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"内容"}},[a("editor",{attrs:{"min-height":192},model:{value:e.form.noticeContent,callback:function(t){e.$set(e.form,"noticeContent",t)},expression:"form.noticeContent"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),a("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},r=[],i=(a("d81d"),a("b775"));function o(e){return Object(i["a"])({url:"/system/notice/list",method:"get",params:e})}function l(e){return Object(i["a"])({url:"/system/notice/"+e,method:"get"})}function s(e){return Object(i["a"])({url:"/system/notice",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/system/notice",method:"put",data:e})}function u(e){return Object(i["a"])({url:"/system/notice/"+e,method:"delete"})}var m=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"editor",staticClass:"editor",style:e.styles})},d=[],p=(a("a9e3"),a("99af"),a("9339")),f=a.n(p),h=(a("a7539"),a("8096"),a("14e1"),{name:"Editor",props:{value:{type:String,default:""},height:{type:Number,default:null},minHeight:{type:Number,default:null}},data:function(){return{Quill:null,currentValue:"",options:{theme:"snow",bounds:document.body,debug:"warn",modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"请输入内容",readOnly:!1}}},computed:{styles:function(){var e={};return this.minHeight&&(e.minHeight="".concat(this.minHeight,"px")),this.height&&(e.height="".concat(this.height,"px")),e}},watch:{value:{handler:function(e){e!==this.currentValue&&(this.currentValue=null===e?"":e,this.Quill&&this.Quill.pasteHTML(this.currentValue))},immediate:!0}},mounted:function(){this.init()},beforeDestroy:function(){this.Quill=null},methods:{init:function(){var e=this,t=this.$refs.editor;this.Quill=new f.a(t,this.options),this.Quill.pasteHTML(this.currentValue),this.Quill.on("text-change",(function(t,a,n){var r=e.$refs.editor.children[0].innerHTML,i=e.Quill.getText(),o=e.Quill;e.currentValue=r,e.$emit("input",r),e.$emit("on-change",{html:r,text:i,quill:o})})),this.Quill.on("text-change",(function(t,a,n){e.$emit("on-text-change",t,a,n)})),this.Quill.on("selection-change",(function(t,a,n){e.$emit("on-selection-change",t,a,n)})),this.Quill.on("editor-change",(function(t){for(var a=arguments.length,n=new Array(a>1?a-1:0),r=1;r0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),a("el-dialog",{attrs:{title:e.titleOrderInfo,visible:e.openOrderInfo,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.openOrderInfo=t}}},[a("el-table",{attrs:{data:e.orderList}},[e._e(),a("af-table-column",{attrs:{label:"订单号",width:"200",align:"center",prop:"orderNo"}}),a("af-table-column",{attrs:{label:"油品名称",align:"center",prop:"oilName"}}),a("af-table-column",{attrs:{label:"油品价格",align:"center",prop:"oilPirce"}}),a("af-table-column",{attrs:{label:"加油升数",align:"center",prop:"orderLiters"}}),a("af-table-column",{attrs:{label:"金额",align:"center",prop:"amt"}}),a("af-table-column",{attrs:{label:"消费者",width:"120",align:"center",prop:"consumer"}}),a("af-table-column",{attrs:{label:"加油员",width:"120",align:"center",prop:"oilPersonnel"}}),a("af-table-column",{attrs:{label:"加油枪号",align:"center",prop:"oilGun"}}),a("af-table-column",{attrs:{label:"支付类型",align:"center",prop:"payType",formatter:e.payTypeFotmat}}),e._e(),e._e(),e._e(),a("af-table-column",{attrs:{label:"状态",align:"center",prop:"status",formatter:e.statusFotmat}}),a("af-table-column",{attrs:{label:"支付时间",align:"center",prop:"payDate",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.parseTime(t.row.payDate,"{y}-{m}-{d} {h}:{i}:{s}")))])]}}])}),a("af-table-column",{attrs:{label:"创建时间",align:"center",prop:"createdDate",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.parseTime(t.row.createdDate,"{y}-{m}-{d} {h}:{i}:{s}")))])]}}])}),e._e()],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalOrder>0,expression:"totalOrder>0"}],attrs:{total:e.totalOrder,page:e.queryOrder.pageNum,limit:e.queryOrder.pageSize},on:{"update:page":function(t){return e.$set(e.queryOrder,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryOrder,"pageSize",t)},pagination:e.listPage}})],1)],1)},r=[],i=a("0f1d"),o=a("99bd"),l=a("36ac"),s={name:"Manage",data:function(){return{total:0,totalOrder:0,manageList:[],stationOptions:[],orderList:[],openOrderInfo:!1,titleOrderInfo:"",oilNameOptions:[],queryParams:{pageNum:1,pageSize:10,customerName:null,commendMan:null,memberGrade:null,phoneNumber:null,oilName:null},queryOrder:{pageNum:1,pageSize:10,oilName:null,stationId:null,consumerId:null}}},created:function(){var e=this;this.getList(),Object(o["f"])().then((function(t){e.stationOptions=t.rows})),Object(l["e"])().then((function(t){e.oilNameOptions=t.rows}))},methods:{payTypeFotmat:function(e,t){return"sxf"===e.payType?"随行付":"dzk"===e.payType?"电子卡":"wx"===e.payType?"微信":"zfb"===e.payType?"支付宝":"xj"===e.payType?"现金":void 0},statusFotmat:function(e,t){return"0"===e.status?"未支付":"1"===e.status?"已支付":void 0},getList:function(){var e=this;Object(i["b"])(this.queryParams).then((function(t){console.log("response",t),e.manageList=t.rows,e.total=t.total}))},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},lookinfo:function(e){e.page=this.queryOrder.pageNum,e.limit=this.queryOrder.pageSize,this.listPage(e)},listPage:function(e){var t=this;this.queryOrder.consumerId=e.minaUserId,this.queryOrder.pageNum=e.page,this.queryOrder.pageSize=e.limit,Object(i["a"])(this.queryOrder).then((function(e){t.orderList=e.rows,t.openOrderInfo=!0,t.totalOrder=e.total,t.titleOrderInfo="查看客户订单信息"}))}}},c=s,u=a("2877"),m=Object(u["a"])(c,n,r,!1,null,null,null);t["default"]=m.exports},2855:function(e,t,a){"use strict";a.r(t);var n,r,i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container"},[a("div",{staticClass:"left-board"},[a("div",{staticClass:"logo-wrapper"},[a("div",{staticClass:"logo"},[a("img",{attrs:{src:e.logo,alt:"logo"}}),e._v(" Form Generator ")])]),a("el-scrollbar",{staticClass:"left-scrollbar"},[a("div",{staticClass:"components-list"},[a("div",{staticClass:"components-title"},[a("svg-icon",{attrs:{"icon-class":"component"}}),e._v("输入型组件 ")],1),a("draggable",{staticClass:"components-draggable",attrs:{list:e.inputComponents,group:{name:"componentsGroup",pull:"clone",put:!1},clone:e.cloneComponent,draggable:".components-item",sort:!1},on:{end:e.onEnd}},e._l(e.inputComponents,(function(t,n){return a("div",{key:n,staticClass:"components-item",on:{click:function(a){return e.addComponent(t)}}},[a("div",{staticClass:"components-body"},[a("svg-icon",{attrs:{"icon-class":t.tagIcon}}),e._v(" "+e._s(t.label)+" ")],1)])})),0),a("div",{staticClass:"components-title"},[a("svg-icon",{attrs:{"icon-class":"component"}}),e._v("选择型组件 ")],1),a("draggable",{staticClass:"components-draggable",attrs:{list:e.selectComponents,group:{name:"componentsGroup",pull:"clone",put:!1},clone:e.cloneComponent,draggable:".components-item",sort:!1},on:{end:e.onEnd}},e._l(e.selectComponents,(function(t,n){return a("div",{key:n,staticClass:"components-item",on:{click:function(a){return e.addComponent(t)}}},[a("div",{staticClass:"components-body"},[a("svg-icon",{attrs:{"icon-class":t.tagIcon}}),e._v(" "+e._s(t.label)+" ")],1)])})),0),a("div",{staticClass:"components-title"},[a("svg-icon",{attrs:{"icon-class":"component"}}),e._v(" 布局型组件 ")],1),a("draggable",{staticClass:"components-draggable",attrs:{list:e.layoutComponents,group:{name:"componentsGroup",pull:"clone",put:!1},clone:e.cloneComponent,draggable:".components-item",sort:!1},on:{end:e.onEnd}},e._l(e.layoutComponents,(function(t,n){return a("div",{key:n,staticClass:"components-item",on:{click:function(a){return e.addComponent(t)}}},[a("div",{staticClass:"components-body"},[a("svg-icon",{attrs:{"icon-class":t.tagIcon}}),e._v(" "+e._s(t.label)+" ")],1)])})),0)],1)])],1),a("div",{staticClass:"center-board"},[a("div",{staticClass:"action-bar"},[a("el-button",{attrs:{icon:"el-icon-download",type:"text"},on:{click:e.download}},[e._v(" 导出vue文件 ")]),a("el-button",{staticClass:"copy-btn-main",attrs:{icon:"el-icon-document-copy",type:"text"},on:{click:e.copy}},[e._v(" 复制代码 ")]),a("el-button",{staticClass:"delete-btn",attrs:{icon:"el-icon-delete",type:"text"},on:{click:e.empty}},[e._v(" 清空 ")])],1),a("el-scrollbar",{staticClass:"center-scrollbar"},[a("el-row",{staticClass:"center-board-row",attrs:{gutter:e.formConf.gutter}},[a("el-form",{attrs:{size:e.formConf.size,"label-position":e.formConf.labelPosition,disabled:e.formConf.disabled,"label-width":e.formConf.labelWidth+"px"}},[a("draggable",{staticClass:"drawing-board",attrs:{list:e.drawingList,animation:340,group:"componentsGroup"}},e._l(e.drawingList,(function(t,n){return a("draggable-item",{key:t.renderKey,attrs:{"drawing-list":e.drawingList,element:t,index:n,"active-id":e.activeId,"form-conf":e.formConf},on:{activeItem:e.activeFormItem,copyItem:e.drawingItemCopy,deleteItem:e.drawingItemDelete}})})),1),a("div",{directives:[{name:"show",rawName:"v-show",value:!e.drawingList.length,expression:"!drawingList.length"}],staticClass:"empty-info"},[e._v(" 从左侧拖入或点选组件进行表单设计 ")])],1)],1)],1)],1),a("right-panel",{attrs:{"active-data":e.activeData,"form-conf":e.formConf,"show-field":!!e.drawingList.length},on:{"tag-change":e.tagChange}}),a("code-type-dialog",{attrs:{visible:e.dialogVisible,title:"选择生成类型","show-file-name":e.showFileName},on:{"update:visible":function(t){e.dialogVisible=t},confirm:e.generate}}),a("input",{attrs:{id:"copyNode",type:"hidden"}})],1)},o=[],l=a("53ca"),s=a("5530"),c=(a("ac1f"),a("5319"),a("d81d"),a("a434"),a("159b"),a("b64b"),a("c740"),a("1980")),u=a.n(c),m=a("21a6"),d=a("e552"),p=a.n(d),f=a("b311"),h=a.n(f),g=a("a85b"),b=a("766b"),v=a("2e2a"),y=a("ed08");a("99af"),a("a15b"),a("b0c0");function w(e){return'\n '.concat(e,'\n
\n 取消\n 确定\n
\n
')}function x(e){return"")}function _(e){return"