chunk-4bac5fc7.a6d48729.js 399 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4bac5fc7","chunk-26b6e194","chunk-386edb44","chunk-09413a44","chunk-7f60e04e","chunk-13ecbbc2","chunk-95806aaa","chunk-6ea62014","chunk-98a2441c"],{"000f":function(e,t,a){},"02c3":function(e,t,a){"use strict";a("36cb")},"03a5":function(e,t,a){"use strict";a("e4b3")},"03d7":function(e,t,a){"use strict";a("ffef")},"05e1":function(e,t,a){"use strict";a("5ca8")},"0765":function(e,t,a){"use strict";a("73d0")},"0880":function(e,t,a){"use strict";a.r(t);var s=a("72c0"),i={name:"report",props:["showModel","id","isDetail"],mixins:[a("9f53").a],data(){return{ruleForm:{name:"账龄",start:"",end:""},rules:{name:[{required:!0,message:"请输入报表名称",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}]},activeName:"first",tabsList:[{tabs:"账龄",key:1},{tabs:"部门",key:2},{tabs:"业务员",key:3},{tabs:"合计",key:4},{tabs:"总公司",key:5},{tabs:"分公司",key:6},{tabs:"确认单的数量",key:7},{tabs:"平台",key:8},{tabs:"开票类型",key:9},{tabs:"产品品类",key:10},{tabs:"月",key:11},{tabs:"日",key:12}],loading:!1,title:"设置报表格式",showModelThis:this.showModel}},methods:{async timeReturned(e){""!==e.startTime?this.ruleForm.start=e.startTime:this.ruleForm.start="",""!==e.endTime?this.ruleForm.end=e.endTime:this.ruleForm.end="",""!==this.ruleForm.start&&this.ruleForm.end},handleClick(e,t){},closeModel(){},async initForm(){"add"===this.id?(this.title="设置报表格式",this.loading=!1):(this.isDetail,this.title="设置报表格式",await this.initData())},async initData(){this.loading=!0;var e=await s.a.detail({id:this.id});this.loading=!1,e&&0===e.code||(e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message))},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.loading=!0;let t=JSON.parse(JSON.stringify(this.ruleForm)),a={};a="add"===this.id?(t.passport=t.password,await s.a.add(t)):await s.a.update(t),this.loading=!1,a&&0===a.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}})}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}}};a("47e6"),a=a("2877"),i=Object(a.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-row",{staticStyle:{height:"500px"},attrs:{gutter:10}},[t("el-col",{attrs:{span:18}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,size:"mini","label-width":"85px","label-position":"top"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"报表名称",prop:"name"}},[t("el-input",{attrs:{placeholder:"请输入报表名称"},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"报表数据时间区间",required:""}},[t("period-date-picker",{attrs:{start:e.ruleForm.start,end:e.ruleForm.end,type:1,size:"mini",width:"165px"},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1)],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"报表预览",required:""}})],1),t("el-col",{attrs:{span:24}},[t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("立即创建")]),t("el-button",{on:{click:function(t){return e.resetForm("ruleForm")}}},[e._v("重置")])],1)],1)],1)],1),t("el-col",{attrs:{span:6}},[t("div",[e._v("报表参数")]),t("div")])],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"31ce6514",null);t.default=i.exports},"0d1b":function(e,t,a){},"0ea1":function(e,t,a){},"0ee5":function(e,t,a){"use strict";t.a=[{name:"启用",code:"1"},{name:"禁用",code:"0"}]},"0ef8":function(e,t,a){"use strict";var s=a("1b69");const i="admin/";t.a={add:(e,t)=>Object(s.a)(i+"add",e,"post",t),delete:(e,t)=>Object(s.a)(i+"delete",e,"post",t),list:(e,t)=>Object(s.a)(i+"list",e,"post",t),detail:(e,t)=>Object(s.a)(i+"detail",e,"post",t),update:(e,t)=>Object(s.a)(i+"update",e,"post",t),status:(e,t)=>Object(s.a)(i+"accountstatus",e,"post",t)}},"11f6":function(e,t,a){},1357:function(e,t,a){"use strict";a.r(t);var s=a("1b69");const i="admin/";var l={add:(e,t)=>Object(s.a)(i+"groupadd",e,"post",t),delete:(e,t)=>Object(s.a)(i+"delete",e,"post",t),list:(e,t)=>Object(s.a)(i+"grouplist",e,"post",t),detail:(e,t)=>Object(s.a)(i+"groupinfo",e,"post",t),update:(e,t)=>Object(s.a)(i+"groupsave",e,"post",t),status:(e,t)=>Object(s.a)(i+"groupstatus",e,"post",t),accountall:(e,t)=>Object(s.a)(i+"getuserall",e,"post",t)},o={name:"oing",props:["showModel","id","isDetail"],mixins:[a("9f53").a],data(){return{loading:!1,title:"添加共享规则",showModelThis:this.showModel,select:"1",activeOptions:[],actionList:[],ruleForm:{collect:[],userid:[],touserid:[],togroupid:[],action:"0"},rulesThis:this.rules,rules:{collect:[{required:!0,message:"请选择共享的菜单",trigger:"change"}],userid:[{required:!0,message:"请选择数据源用户",trigger:"change"}],touserid:[{required:!1,message:"请选择数据共享用户",trigger:"change"}],togroupid:[{required:!1,message:"请选择数据共享用户组",trigger:"change"}],action:[{required:!0,message:"请选择数据权限",trigger:"change"}]},dataForm:{name:"",status:""},activeOptions:[],groupallList:[]}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.loading=!0,await this.initActionList(),await this.getAllActive(),await this.groupAllActive(),"add"===this.id?(this.title="添加共享规则",this.rulesThis=this.rules,await this.resetForm()):(this.isDetail?(this.title="共享规则",this.rulesThis={}):(this.title="修改共享规则",this.rulesThis=this.rules),await this.resetForm(),await this.initData()),this.loading=!1},async initData(){var e=await l.detail({id:this.id});if(e&&0===e.code){const{action_collect:t,share_user:a,to_user:s,to_group:i,action:l}=e.data;this.ruleForm.collect=t.split(","),this.ruleForm.userid=a.split(","),this.ruleForm.touserid=""===s?[]:s.split(","),this.ruleForm.togroupid=""===i?[]:i.split(","),this.ruleForm.action=l,0!==this.ruleForm.touserid.length?this.select="1":e&&100<=e.code&&e.code<=104?await this.logout():(this.select="2",this.$message.warning(e.message))}},async initActionList(){var e=await l.actionList({});if(e&&0===e.code){const a=e.data;var t=a.filter(e=>e.child&&0<e.child.length);this.actionList=t}else e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async getAllActive(){var e=await l.accountall(this.dataForm);e&&0===e.code&&e.data?this.activeOptions=e.data:e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async groupAllActive(){var e=await l.groupall(this.dataForm);e&&0===e.code&&e.data?this.groupallList=e.data:e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async resetForm(){await this.$nextTick(()=>{this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),this.ruleForm={collect:[],userid:[],touserid:[],togroupid:[],action:"0"})})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;if(0!==this.ruleForm.touserid.length||"1"!==this.select)if(0!==this.ruleForm.togroupid.length||"1"===this.select)if("1"!==this.select||this.ruleForm.userid[0]!==this.ruleForm.touserid[0]){this.loading=!0;const{collect:t,userid:a,touserid:s,togroupid:i,action:o}=JSON.parse(JSON.stringify(this.ruleForm)),r={id:this.id,collect:t.join(),userid:a.join(),touserid:"1"===this.select?s.join():"",togroupid:"1"===this.select?"":i.join(),action:o};let n={};n="add"===this.id?(delete r.id,await l.add(r)):await l.update(r),this.loading=!1,n&&0===n.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):n&&100<=n.code&&n.code<=104?await this.logout():this.$message.warning(n.message)}else this.$message.warning("源用户不能与分享用户一致!");else this.$message.warning("请选择数据共享用户组");else this.$message.warning("请选择数据共享用户")})}}};a("8abd"),a=a("2877"),o=Object(a.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"18vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"130px"}},[a("el-form-item",{attrs:{label:"共享的菜单数据",prop:"collect"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",clearable:"",disabled:e.isDetail,placeholder:"请选择菜单数据"},model:{value:e.ruleForm.collect,callback:function(t){e.$set(e.ruleForm,"collect",t)},expression:"ruleForm.collect"}},e._l(e.actionList,(function(t,s){return a("el-option-group",{key:t.menu_name+s,attrs:{label:t.menu_name}},e._l(t.child,(function(e,t){return a("el-option",{key:"item"+e.menu_name+t,attrs:{label:e.menu_name,value:e.id}})})),1)})),1)],1),a("el-form-item",{attrs:{label:"数据源用户",prop:"userid"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",clearable:"","multiple-limit":1,placeholder:"请选择数据源用户",disabled:e.isDetail},model:{value:e.ruleForm.userid,callback:function(t){e.$set(e.ruleForm,"userid",t)},expression:"ruleForm.userid"}},e._l(e.activeOptions,(function(t){return a("el-option",{key:"userid"+t.id,attrs:{label:t.nickname,value:t.id,disabled:"1"!==t.status}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.nickname))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px",padding:"0 25px 0 0"}},[e._v(e._s(t.role_name))])])})),1)],1),a("el-divider"),a("el-form-item",{attrs:{label:"数据共享对象",required:""}},[a("ul",{staticClass:"oing-edit"},[a("li",[a("el-select",{attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[a("el-option",{attrs:{label:"用户",value:"1"}}),a("el-option",{attrs:{label:"用户组",value:"2"}})],1)],1),a("li",["1"===e.select?a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"","multiple-limit":1,clearable:"",placeholder:"请选择用户",disabled:e.isDetail},model:{value:e.ruleForm.touserid,callback:function(t){e.$set(e.ruleForm,"touserid",t)},expression:"ruleForm.touserid"}},e._l(e.activeOptions,(function(t){return a("el-option",{key:"touserid"+t.id,attrs:{label:t.nickname,value:t.id,disabled:"1"!==t.status}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.nickname))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px",padding:"0 25px 0 0"}},[e._v(e._s(t.role_name))])])})),1):a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"","multiple-limit":1,clearable:"",placeholder:"请选择用户组",disabled:e.isDetail},model:{value:e.ruleForm.togroupid,callback:function(t){e.$set(e.ruleForm,"togroupid",t)},expression:"ruleForm.togroupid"}},e._l(e.groupallList,(function(e){return a("el-option",{key:"togroupid"+e.id,attrs:{label:e.group_name,value:e.id,disabled:"1"!==e.status}})})),1)],1)])]),a("el-form-item",{attrs:{label:"共享的数据权限",prop:"action"}},[a("el-radio",{attrs:{label:"0"},model:{value:e.ruleForm.action,callback:function(t){e.$set(e.ruleForm,"action",t)},expression:"ruleForm.action"}},[e._v("只读")]),a("el-radio",{attrs:{label:"1"},model:{value:e.ruleForm.action,callback:function(t){e.$set(e.ruleForm,"action",t)},expression:"ruleForm.action"}},[e._v("读写")])],1)],1)],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),a("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"9862f25e",null);t.default=o.exports},1420:function(e,t,a){"use strict";a.r(t);var s=a("1b69"),i=(e,t)=>Object(s.a)("Stats/departtj",e,"post",t),l=a("2f62");l={name:"table",mixins:[a("9f53").a],computed:{...Object(l.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"table"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{loading:!0,date:"",pickerOptions:{disabledDate(e){return e.getTime()>Date.now()}},tableData:[]}},mounted(){this.restSearch()},methods:{tableRowClassName({row:e,rowIndex:t}){return e&&e.child&&0<e.child.length||0===t?"warning-row":""},transformTime(){let e=new Date;var t=e.getFullYear(),a=e.getMonth()+1,s=e.getDate();return t+"-"+(a<10?"0"+a:a)+"-"+(s<10?"0"+s:s)},restSearch(){this.date=this.transformTime(),this.searchList()},async searchList(){this.loading=!0;var e=await i({date:this.date||""});e&&0===e.code&&e.data&&0<e.data.length?(this.tableData=e.data,this.tableData.map((e,t)=>(e.id=t+"",e.p=e.p||e.depart,e.child&&0<e.child.length&&e.child.map((t,a)=>(t.id=""+e+a,t)),e))):e&&100<=e.code&&e.code<=104?await this.logout():(this.tableData=[],this.pageInfo.total=0),this.loading=!1}}},a=a("2877"),l=Object(a.a)(l,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"table pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("div",{staticClass:"clear",staticStyle:{padding:"10px 0 12px 0"}},[a("el-date-picker",{staticClass:"fl",staticStyle:{width:"200px"},attrs:{size:"small",align:"right",type:"date",editable:!1,clearable:!1,placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions},on:{change:e.searchList},model:{value:e.date,callback:function(t){e.date=t},expression:"date"}}),a("el-col",{staticStyle:{width:"66px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),a("el-col",{staticClass:"fr",staticStyle:{width:"66px"},attrs:{span:4}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"","max-height":e.maxHeight,size:"mini","row-key":"id","default-expand-all":"","row-class-name":e.tableRowClassName,"tree-props":{children:"child",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{prop:"p",label:"业绩类型",fixed:"left",width:"120"}}),a("el-table-column",{attrs:{label:"本日金额",width:"120",align:"center"}},[a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"销售",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("toThousandFilter")(t.row.dtotal)))])]}}],null,!1,2174592860)}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"退款",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("toThousandFilter")(t.row.thfee)))])]}}],null,!1,2252153184)})],1),a("el-table-column",{attrs:{label:"本周金额",width:"120",align:"center"}},[a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"销售",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("toThousandFilter")(t.row.wtotal)))])]}}],null,!1,375533455)}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"退款",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("toThousandFilter")(t.row.wthfee)))])]}}],null,!1,2331001335)})],1),a("el-table-column",{attrs:{label:"本月金额",width:"120",align:"center"}},[a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"销售指标",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("toThousandFilter")(t.row.tips)))])]}}],null,!1,3266069252)}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"销售",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("toThousandFilter")(t.row.total)))])]}}],null,!1,4205706584)}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"销售完成率",width:"95"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.rate?t.row.rate+"%":""))])]}}],null,!1,3474681101)}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"退款",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("toThousandFilter")(t.row.mthfee)))])]}}],null,!1,2432827885)}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"净销售",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("toThousandFilter")(t.row.thtotal)))])]}}],null,!1,4005198660)}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"净销售完成率",width:"95"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.thrate?t.row.thrate+"%":""))])]}}],null,!1,289410189)})],1)],1)],1):a("no-auth")],1)}),[],!1,null,"6cb1ea2c",null);t.default=l.exports},1687:function(e,t,a){"use strict";a("e692")},1702:function(e,t,a){"use strict";var s=a("1b69");const i="admin/";t.a={add:(e,t)=>Object(s.a)(i+"resultcreate",e,"post",t),delete:(e,t)=>Object(s.a)(i+"resultdel",e,"post",t),list:(e,t)=>Object(s.a)(i+"resultlist",e,"post",t),detail:(e,t)=>Object(s.a)(i+"resultselect",e,"post",t),update:(e,t)=>Object(s.a)(i+"resultedit",e,"post",t),status:(e,t)=>Object(s.a)(i+"resultstatu",e,"post",t)}},1842:function(e,t,a){"use strict";a.r(t);var s=a("1fd2"),i=a("61f7"),l={name:"Account",props:["showModel","id","isDetail"],mixins:[a("9f53").a],data(){return{roleList:[],loading:!1,title:"重置密码",showModelThis:this.showModel,ruleForm:{id:this.id,password:"",confirmPassword:""},rulesThis:this.rules,rules:{password:[{required:!0,trigger:"blur",validator:(e,t,a)=>{""===t?a(new Error("新密码不能为空!")):!Object(i.b)(t)||t.length<6||16<t.length?a(new Error("新密码为6-16位数字字母组合!")):Object(i.h)(t)?a(new Error("新密码不能为纯数字!")):Object(i.i)(t)?a(new Error("新密码不能为纯字母!")):a()}}],confirmPassword:[{required:!0,trigger:"blur",validator:(e,t,a)=>{""===t?a(new Error("确认密码不能为空!")):this.ruleForm.password!==t?a(new Error("确认密码与新密码不一致!")):a()}}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.rulesThis=this.rules,await this.resetForm()},async resetForm(){await this.$nextTick(()=>{this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),this.ruleForm={id:this.id,password:"",confirmPassword:""})})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;this.loading=!0,e=JSON.parse(JSON.stringify(this.ruleForm)),e=await s.a.setpwd(e),this.loading=!1,e&&0===e.code?(this.$notify.success({title:"密码修改成功!",message:""}),this.showModelThis=!1,this.$emit("refresh")):e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)})}}};a("8924"),a=a("2877"),l=Object(a.a)(l,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},[t("el-form-item",{attrs:{prop:"password",label:"新密码:"}},[t("el-input",{ref:"password",attrs:{placeholder:"新密码",name:"password",type:"password",tabindex:"1",autocomplete:"on"},model:{value:e.ruleForm.password,callback:function(t){e.$set(e.ruleForm,"password",t)},expression:"ruleForm.password"}})],1),t("el-form-item",{attrs:{prop:"confirmPassword",label:"确认密码:"}},[t("el-input",{ref:"confirmPassword",attrs:{placeholder:"确认密码",name:"confirmPassword",type:"password",tabindex:"1",autocomplete:"on"},model:{value:e.ruleForm.confirmPassword,callback:function(t){e.$set(e.ruleForm,"confirmPassword",t)},expression:"ruleForm.confirmPassword"}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"309c39e1",null);t.default=l.exports},1878:function(e,t,a){},"18c5":function(e,t,a){"use strict";a.r(t);var s=a("1357"),i=a("4af7"),l={list:(e,t)=>Object(i.a)("process/oingList",e,"post",t)},o=a("0ee5"),r=a("e66a"),n=a("f5ed"),c=a("2f62"),d=a("9f53");c={name:"role",mixins:[n.a,d.a],components:{addEdit:s.default},computed:{...Object(c.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"oing"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{statusList:o.a,roleLevel:r.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{page:1,size:15},statusOptions:[{id:0,label:"禁用"},{id:1,label:"启用"}],authOptions:[{id:"1",label:"管理员"},{id:"2",label:"非管理员"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"id",label:"待办编号"},{prop:"title",label:"流程名称"},{prop:"orderNo",label:"单据号"},{prop:"type",label:"当前节点"},{prop:"timestamp",label:"停留时间"},{prop:"author",label:"发起人"},{prop:"reviewer",label:"发起人部门"},{prop:"addTime",label:"申请时间"}]}},mounted(){this.searchList()},methods:{restSearch(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15},this.searchList()},openModal(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},async changeStatus(e,t){await this.$confirm(`确定要改为${"1"===t?"禁用":"启用"}?`,{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{this.loading=!0;var a=await l.status({id:e,status:"1"===t?"0":"1"});a&&0===a.code?(this.loading=!1,this.$notify.success({title:"状态修改成功!",message:""}),await this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():(this.loading=!1,this.$message.warning(a.message))}).catch(()=>{})},async searchList(){this.loading=!0;var e=await l.list(this.parmValue);e&&0===e.code&&e.data?(this.tableData=e.data.list,this.pageInfo.total=Number(e.data.count)):e&&100<=e.code&&e.code<=104?await this.logout():(this.tableData=[],this.pageInfo.total=0),this.loading=!1}}},a=a("2877"),c=Object(a.a)(c,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"oing pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%",height:"30px"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),e.powers.some((function(e){return"003"==e}))?a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 添加 ")])],1):e._e()],1)],1)],1)]}},{key:"status",fn:function(t){var s=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==s.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==s.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(s.row.id,!0)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(s.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.changeStatus(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.changeStatus(s.row.id,s.row.status)}}})]):e._e()]}}],null,!1,2801144623)}):a("no-auth"),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"6516f1ea",null);t.default=c.exports},1969:function(e,t,a){"use strict";a("d54e")},"1a20":function(e,t,a){},"1a80":function(e,t,a){},"1b4e":function(e,t,a){},"1c81":function(e,t,a){"use strict";var s=a("1b69");const i="admin/";t.a={add:(e,t)=>Object(s.a)(i+"companyadd",e,"post",t),detail:(e,t)=>Object(s.a)(i+"companyinfo",e,"post",t),status:(e,t)=>Object(s.a)(i+"companystatus",e,"post",t),list:(e,t)=>Object(s.a)(i+"companylist",e,"post",t),update:(e,t)=>Object(s.a)(i+"companysave",e,"post",t)}},"1db4":function(e,t,a){"use strict";a.r(t);var s=[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"pic-404"},[e("img",{staticClass:"pic-404__parent",attrs:{src:a("a36b"),alt:"404"}}),e("img",{staticClass:"pic-404__child left",attrs:{src:a("26fc"),alt:"404"}}),e("img",{staticClass:"pic-404__child mid",attrs:{src:a("26fc"),alt:"404"}}),e("img",{staticClass:"pic-404__child right",attrs:{src:a("26fc"),alt:"404"}})])}],i={name:"Page404",computed:{message(){return"访问的页面不存在..."}},methods:{goto(){window.vm.$router.push({path:"/welcome/dashboard"})}}},l=(a("e894"),a("2877"));s=Object(l.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"wscn-http404-container"},[t("div",{staticClass:"wscn-http404"},[e._m(0),t("div",{staticClass:"bullshit"},[t("div",{staticClass:"bullshit__oops"},[e._v("哎呀!")]),t("div",{staticClass:"bullshit__headline"},[e._v(e._s(e.message))]),t("div",{staticClass:"bullshit__info"},[e._v(" 请检查您输入的网址是否正确,或单击下面的按钮返回主页. ")]),t("el-button",{attrs:{type:"primary",round:""},on:{click:function(t){return e.goto()}}},[e._v("回到首页")])],1)])])}),s,!1,null,"82eac96e",null);t.default=s.exports},"1ded":function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("9f53"),l=a("0ee5"),o=a("4cba"),r=a("4f59"),n=a("2f62");n={name:"storeGoods",mixins:[s.a,i.a],components:{addEdit:r.default},computed:{...Object(n.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"storeGoods"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{gys_code:"",product_code:"",product_name:"",product:"",sitem:null,statusOptions:[{id:"0",label:"使用中"},{id:"1",label:"已下架"}],statusList:l.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{wsmcode:"",type_code:"",good_code:"",good_name:"",supplierNo:"",page:1,size:15},tableData:[],tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1,table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"good_code",label:"商品编码",width:"150"},{prop:"gys_code",label:"供应商编码",width:"150"},{prop:"brand",label:"品牌","min-width":"80"},{prop:"good_name",label:"商品名称","min-width":"120"},{prop:"classArr",label:"商品类别"},{prop:"color",label:"商品颜色"},{prop:"material",label:"商品材质"},{prop:"unit",label:"单位",width:"50"},{prop:"good_type",label:"商品类型"},{prop:"cg_saler",label:"采购员",width:"60"},{prop:"usable_stock",label:"商品库存"},{prop:"bstatus",label:"当前状态",_slot_:"status",width:"80px"},{prop:"supplier_name",label:"供货商","min-width":"160"},{prop:"",label:"操作",width:"80px",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted(){this.searchList()},methods:{restSearch(){this.parmValue={wsmcode:"",type_code:"",good_code:"",good_name:"",supplierNo:"",page:1,size:15},this.searchList()},openModal(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},async deleteById(e,t){},async searchList(){this.loading=!0;const e=await o.a.list(this.parmValue);e&&0===e.code&&e.data?(e.data.list.forEach(e=>{e.classArr=`${e.sort_f}/${e.sort_s}${e.sort_t}`}),e.data.list.forEach(e=>{}),this.tableData=e.data.list,this.pageInfo.total=Number(e.data.count)):e&&100<=e.code&&e.code<=104?await this.logout():(this.tableData=[],this.pageInfo.total=0),this.loading=!1},async statusConfirm(e,t){await this.$confirm("确定要改为"+("1"===t?"下架":"上架")+"?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{this.loading=!0;var a=await o.a.status({id:e,status:"1"===t?"0":"1"});a&&0===a.code?(this.loading=!1,this.$notify.success({title:"状态修改成功!",message:""}),await this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}).catch(()=>{})},handleValue(e){this.parmValue.supplierNo=e.code},handleStock(e){this.parmValue.wsmcode=e.code}}},a=a("2877"),n=Object(a.a)(n,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"storeGoods pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 0 80px"}},[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"200px"},attrs:{span:8}},[a("search-supplier",{attrs:{placeholder:"供应商编号",size:e.searchSize,value:e.parmValue.gys_code},on:{searchChange:e.handleValue}})],1),a("el-col",{staticStyle:{width:"200px","padding-left":"10px"},attrs:{span:4}},[a("search-stock",{attrs:{placeholder:"仓库编码",size:e.searchSize},on:{searchChange:e.handleStock}})],1),a("el-col",{staticStyle:{width:"54px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"primary",icon:"el-icon-search"},on:{click:e.searchList}})],1),a("el-col",{staticStyle:{width:"66px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1),a("el-col",{staticStyle:{"padding-top":"10px"},attrs:{span:24}},[a("el-col",{staticStyle:{width:"200px"},attrs:{span:4}},[a("el-input",{attrs:{size:e.searchSize,placeholder:"商品名称",clearable:""},model:{value:e.parmValue.good_name,callback:function(t){e.$set(e.parmValue,"good_name",t)},expression:"parmValue.good_name"}})],1),a("el-col",{staticStyle:{width:"200px","padding-left":"10px"},attrs:{span:4}},[a("el-input",{attrs:{size:e.searchSize,placeholder:"商品编码",clearable:""},model:{value:e.parmValue.good_code,callback:function(t){e.$set(e.parmValue,"good_code",t)},expression:"parmValue.good_code"}})],1)],1)],1)],1)]}},{key:"status",fn:function(t){var s=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==s.row.bstatus?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==s.row.bstatus}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"004"==e}))&&"1"===s.row.bstatus?a("el-tooltip",{attrs:{effect:"dark",content:"下架",placement:"top"}},[a("i",{staticClass:"el-icon-upload2 tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.bstatus)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===s.row.bstatus?a("el-tooltip",{attrs:{effect:"dark",content:"上架",placement:"top"}},[a("i",{staticClass:"el-icon-download tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.bstatus)}}})]):e._e()]}}],null,!1,2473700834)}),a("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1),a("add-edit",{attrs:{showModel:e.showModel,id:e.modelId,isDetail:e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"1dfd25ce",null);t.default=n.exports},"1e63":function(e,t,a){"use strict";a.r(t);var s=a("1c81"),i=a("f5ed"),l=a("ebe4"),o=a("2f62"),r=a("9f53");o={name:"finance",components:{addEdit:l.default},mixins:[i.a,r.a],computed:{...Object(o.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"finance"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{isDetail:!1,statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],pickerOptions:{disabledDate(e){var t=(new Date).valueOf();t=864e5*parseInt(t/864e5);return e.getTime()<=t}},showModel:!1,loading:!1,modelId:0,parmValue:{page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"companyNo",label:"信息编号",width:"190px"},{prop:"company_name",label:"单位名称"},{prop:"company_license",label:"纳税人识别号",width:"190px"},{prop:"bank_name",label:"银行名称"},{prop:"bankNo",label:"银行卡号"},{prop:"status",label:"状态",width:"90px",_slot_:"status"},{prop:"addtime",label:"创建时间",width:"160px",sortable:!0},{prop:"",label:"操作",width:"120px",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted(){this.searchList()},methods:{async searchList(){this.loading=!0;var e=await s.a.list(this.parmValue);e&&0===e.code&&e.data?(this.tableData=e.data.list,this.pageInfo.total=Number(e.data.count)):e&&100<=e.code&&e.code<=104?await this.logout():(this.tableData=[],this.pageInfo.total=0),this.loading=!1},openModal(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},async statusConfirm(e,t){await this.$confirm(`确定要改为${"1"===t?"禁用":"启用"}?`,{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{this.loading=!0;var a=await s.a.status({companyNo:e,status:"1"===t?"0":"1"});a&&0===a.code?(this.loading=!1,this.$notify.success({title:"状态修改成功!",message:""}),await this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():(this.loading=!1,this.$message.warning(a.message))}).catch(()=>{})}}},a("9364"),a=a("2877"),o=Object(a.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"finance pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"195px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")]),e.powers.some((function(e){return"003"==e}))?a("el-button",{staticStyle:{float:"right",margin:"0"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 添加 ")]):e._e()],1)],1)],1)],1)]}},{key:"status",fn:function(t){var s=t.scope;return[a("el-tag",{attrs:{type:"0"==s.row.status?"warning":"",size:e.size},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==s.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(s.row.companyNo,!0)}}})]):e._e(),e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(s.row.companyNo,!1)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(s.row.companyNo,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(s.row.companyNo,s.row.status)}}})]):e._e()]}}],null,!1,901864319)}):a("no-auth"),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail,contector:e.contector,name:e.name},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"5095e071",null);t.default=o.exports},"1f50":function(e,t,a){"use strict";a("2e6a")},"1fb6":function(e,t,a){"use strict";a("ae36")},"1fd2":function(e,t,a){"use strict";var s=a("1b69");const i="admin/";t.a={list:(e,t)=>Object(s.a)(i+"userlist",e,"post",t),detail:(e,t)=>Object(s.a)(i+"userinfo",e,"post",t),update:(e,t)=>Object(s.a)(i+"usersave",e,"post",t),getClist:(e,t)=>Object(s.a)(i+"query",e,"post",t),add:(e,t)=>Object(s.a)(i+"accountadd",e,"post",t),delete:(e,t)=>Object(s.a)(i+"delete",e,"post",t),setpwd:(e,t)=>Object(s.a)(i+"passset",e,"post",t),status:(e,t)=>Object(s.a)(i+"userstatus",e,"post",t),getRole:(e,t)=>Object(s.a)(i+"roleall",e,"post",t)}},2017:function(e,t,a){"use strict";a("ffa6")},"214b":function(e,t,a){"use strict";a("2cdb")},"21fa":function(e,t,a){"use strict";var s=a("1b69");const i="admin/";t.a={list:(e,t)=>Object(s.a)(i+"menulist",e,"post",t),update:(e,t)=>Object(s.a)(i+"menusave",e,"post",t),menustatus:(e,t)=>Object(s.a)(i+"menustatus",e,"post",t),menudel:(e,t)=>Object(s.a)(i+"menudel",e,"post",t),actionList:(e,t)=>Object(s.a)(i+"menuaction",e,"post",t),actionadd:(e,t)=>Object(s.a)(i+"menuactionadd",e,"post",t),actionedit:(e,t)=>Object(s.a)(i+"menuactionsave",e,"post",t),actionstatus:(e,t)=>Object(s.a)(i+"menuactionstatus",e,"post",t),actiondel:(e,t)=>Object(s.a)(i+"menuactiondel",e,"post",t)}},"257e":function(e,t,a){"use strict";a("93ae")},2623:function(e,t,a){"use strict";var s=a("1b69");const i="admin/";t.a={list:(e,t)=>Object(s.a)(i+"ulist",e,"post",t),detail:(e,t)=>Object(s.a)(i+"query",e,"post",t),update:(e,t)=>Object(s.a)(i+"refresh",e,"post",t),add:(e,t)=>Object(s.a)(i+"add",e,"post",t),delete:(e,t)=>Object(s.a)(i+"itemdel",e,"post",t),status:(e,t)=>Object(s.a)(i+"stat",e,"post",t),getRole:(e,t)=>Object(s.a)(i+"roleall",e,"post",t),userp:(e,t)=>Object(s.a)(i+"userp",e,"post",t)}},"26d7":function(e,t,a){"use strict";var s=a("1b69");const i="admin/";t.a={add:(e,t)=>Object(s.a)(i+"add",e,"post",t),delete:(e,t)=>Object(s.a)(i+"delete",e,"post",t),list:(e,t)=>Object(s.a)(i+"list",e,"post",t),detail:(e,t)=>Object(s.a)(i+"detail",e,"post",t),update:(e,t)=>Object(s.a)(i+"update",e,"post",t),status:(e,t)=>Object(s.a)(i+"accountstatus",e,"post",t)}},"26fc":function(e,t,a){e.exports=a.p+"static/img/404_cloud.0f4bc32b.png"},"27ac":function(e,t,a){},"2c20":function(e,t,a){"use strict";a.r(t);var s=a("1b69");const i="admin/";var l=(e,t)=>Object(s.a)(i+"shareadd",e,"post",t),o=(e,t)=>Object(s.a)(i+"shareinfo",e,"post",t),r=(e,t)=>Object(s.a)(i+"sharesave",e,"post",t),n=(e,t)=>Object(s.a)(i+"getuserall",e,"post",t),c={name:"done",props:["showModel","id","isDetail"],mixins:[a("9f53").a],data(){return{loading:!1,title:"添加用户组",showModelThis:this.showModel,ruleForm:{id:this.id,name:"",done_user:[],done_remark:""},rulesThis:this.rules,rules:{name:[{required:!0,message:"请输入组名称",trigger:"blur"},{min:2,max:30,message:"长度在 2 到 30 个字符",trigger:"blur"}],done_user:[{required:!0,message:"请选择数据共享用户",trigger:"change"}],done_remark:[{required:!0,message:"请输入备注",trigger:"blur"},{min:2,max:300,message:"长度在 2 到 300 个字符",trigger:"blur"}]},dataForm:{name:"",status:""},activeOptions:[]}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){await this.getAllActive(),this.loading=!0,"add"===this.id?(this.title="添加用户组",this.rulesThis=this.rules,await this.resetForm()):(this.isDetail?(this.title="用户组详情",this.rulesThis={}):(this.title="修改用户组",this.rulesThis=this.rules),await this.resetForm(),await this.initData()),this.loading=!1},async initData(){var e=await o({id:this.id});if(e&&0===e.code){const{done_name:a,done_user:s,done_remark:i}=e.data;var t=s.split(",");this.ruleForm={id:this.id,name:a,done_user:t,done_remark:i}}else e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async resetForm(){await this.$nextTick(()=>{this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),this.ruleForm={id:this.id,name:"",done_user:[],done_remark:""})})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.loading=!0;const t=JSON.parse(JSON.stringify(this.ruleForm));e=t.done_user.join(),t.done_user=e;let a={};a="add"===this.id?(delete t.id,await l(t)):await r(t),this.loading=!1,a&&0===a.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}})},async getAllActive(){var e=await n(this.dataForm);e&&0===e.code&&e.data?this.activeOptions=e.data:e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)}}};a("bf52"),a=a("2877"),c=Object(a.a)(c,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"组名称",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入组名称",disabled:e.isDetail},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),a("el-form-item",{attrs:{label:"组成员",prop:"done_user"}},[a("el-select",{staticClass:"setWidth",attrs:{multiple:"",filterable:"",clearable:"",disabled:e.isDetail},model:{value:e.ruleForm.done_user,callback:function(t){e.$set(e.ruleForm,"done_user",t)},expression:"ruleForm.done_user"}},e._l(e.activeOptions,(function(t){return a("el-option",{key:"done_user"+t.id,attrs:{label:t.nickname,value:t.id,disabled:"1"!==t.status}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.nickname))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px",padding:"0 25px 0 0"}},[e._v(e._s(t.role_name))])])})),1)],1),a("el-form-item",{attrs:{label:"备注",prop:"done_remark"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入备注",rows:5,maxlength:"300","show-word-limit":"",disabled:e.isDetail},model:{value:e.ruleForm.done_remark,callback:function(t){e.$set(e.ruleForm,"done_remark",t)},expression:"ruleForm.done_remark"}})],1)],1)],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),a("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"125323e4",null);t.default=c.exports},"2cc2":function(e,t,a){"use strict";a.r(t);var s=a("6a1e"),i=a("61f7"),l={name:"myMessage",mixins:[a("9f53").a],data(){return{infor:{},isDetail:!0,loading:!1,ruleForm:{username:"",nickname:"",mobile:"",email:"",role_name:"",addtime:""},rules:{username:[{required:!0,message:"请输入账号",trigger:"blur"}],nickname:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("真实姓名不能为空!")):t.lenght<2||12<t.lenght||!Object(i.c)(t)||Object(i.d)(t)?a(new Error("真实姓名规则为2~12位汉字!")):a()},trigger:"blur"}],mobile:[{required:!0,message:"请输入手机号",trigger:"blur"}],email:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("邮箱不能为空!")):Object(i.j)(t)?a():a(new Error("邮箱格式不正确!"))},trigger:"blur"}],role_name:[{required:!0,message:"请输入角色",trigger:"blur"}],addtime:[{required:!0,message:"请输入加入时间",trigger:"blur"}]}}},created(){},async mounted(){await this.resetForm(),await this.initData()},destroyed(){},methods:{async resetForm(){await this.$nextTick(()=>{this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),this.ruleForm={username:"",nickname:"",mobile:"",email:"",role_name:"",addtime:""})})},async initData(){var e,t=await s.a.detail({});t&&0===t.code&&t.data?(e=t.data,this.ruleForm={username:e.username,nickname:e.nickname,mobile:e.mobile,email:e.email,addtime:e.addtime,role_name:e.role_name}):t&&100<=t.code&&t.code<=104?await this.logout():this.$message.warning(t.message)},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e||this.loading)return!1;{this.loading=!0;const t=JSON.parse(JSON.stringify(this.ruleForm));delete t.role_name,delete t.addtime,delete t.username,e=await s.a.prefect(t),this.loading=!1,e&&0===e.code?this.$notify.success({title:"个人信息修改成功!",message:""}):e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)}})}}};a("90a6"),a("03a5"),a=a("2877"),l=Object(a.a)(l,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"my-messagge-page pagePadding"},[t("div",{staticClass:"change"},[t("div",{staticClass:"title"},[e._v("我的信息")]),t("div",{staticClass:"change-main"},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rules,"label-width":"110px"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"账户",prop:"username"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.username,callback:function(t){e.$set(e.ruleForm,"username",t)},expression:"ruleForm.username"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"姓名",prop:"nickname"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.nickname,callback:function(t){e.$set(e.ruleForm,"nickname",t)},expression:"ruleForm.nickname"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile",t)},expression:"ruleForm.mobile"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[t("el-input",{model:{value:e.ruleForm.email,callback:function(t){e.$set(e.ruleForm,"email",t)},expression:"ruleForm.email"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"角色",prop:"role_name"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.role_name,callback:function(t){e.$set(e.ruleForm,"role_name",t)},expression:"ruleForm.role_name"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"加入时间",prop:"addtime"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.addtime,callback:function(t){e.$set(e.ruleForm,"addtime",t)},expression:"ruleForm.addtime"}})],1)],1)],1)],1),t("el-col",{staticClass:"tc",attrs:{span:24}},[t("el-button",{attrs:{type:"primary",disabled:e.loading},on:{click:e.submitForm}},[e.loading?t("i",{staticClass:"el-icon-loading"}):e._e(),t("span",[e._v("提 交 信 息")])])],1)],1)])])}),[],!1,null,"705cd365",null);t.default=l.exports},"2cdb":function(e,t,a){},"2dc2":function(e,t,a){},"2e6a":function(e,t,a){},"2e7d":function(e,t,a){},"2ee3":function(e,t,a){"use strict";a.r(t);var s=a("d79e"),i=a("4022"),l=a("f5ed"),o=a("2f62"),r=a("9f53");o={name:"group",mixins:[l.a,r.a],components:{addEdit:s.default},computed:{...Object(o.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"group"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{loginName:"",fullName:"",type:2,page:1,size:15},statusOptions:[{id:0,label:"禁用"},{id:1,label:"启用"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"group_name",label:"组名"},{prop:"userGroupList",label:"组员"},{prop:"group_remark",label:"备注"},{prop:"status",label:"状态",_slot_:"status"},{prop:"addtime",label:"创建时间",sortable:!0},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted(){this.searchList()},methods:{restSearch(){this.pageInfo={size:10,curr:1,total:0},this.parmValue={status:"",level:"",role_name:"",page:1,size:10},this.searchList()},openModal(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},async changeStatus(e,t){await this.$confirm(`确定要改为${"1"===t?"禁用":"启用"}?`,{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{var a=await i.a.status({id:e,status:"1"===t?"0":"1"});a&&0===a.code?(this.$notify.success({title:"状态修改成功",message:""}),this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}).catch(()=>{})},async searchList(){this.loading=!0;var e=await i.a.list(this.parmValue);e&&0===e.code&&e.data?(this.tableData=e.data.list,this.tableData.map(e=>(e.userGroupList=e.userlist.join(","),e)),this.pageInfo.total=Number(e.data.count)):e&&100<=e.code&&e.code<=104?await this.logout():(this.tableData=[],this.pageInfo.total=0),this.loading=!1}}},a=a("2877"),o=Object(a.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"group pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),e.powers.some((function(e){return"003"==e}))?a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 添加 ")])],1):e._e()],1)],1)],1)]}},{key:"status",fn:function(t){var s=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==s.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==s.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(s.row.id,!0)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(s.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.changeStatus(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.changeStatus(s.row.id,s.row.status)}}})]):e._e()]}}],null,!1,1983715813)}):a("no-auth"),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"270810f2",null);t.default=o.exports},"30ca":function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("2623"),l=a("9cd7"),o=a("0ee5"),r=a("2f62"),n=a("9f53");r={name:"organize",components:{addEdit:l.default},mixins:[s.a,n.a],computed:{...Object(r.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"organize"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{sitem:null,statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],statusList:o.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{name:"",username:"",status:"",page:1,size:15},tableData:[],tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1}},mounted(){this.searchList()},methods:{restSearch(){this.parmValue={name:"",username:"",status:"",page:1,size:10},this.searchList()},openModal(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},openPasswordModal(e,t){this.passwordModel=!0,this.passwordModelId=e,this.isPasswordDetail=t},addEditFn(e,t,a,s,i,l){this.showModel=!0,this.modelId=e,this.level=a,this.parentIds=t,this.isDetail=s,this.isAdd=i,this.formData=l},submitRefresh(e,t,a){a<3?this.restSearch():this.getchildList(t)},async remove(e,t,a,s){await this.$confirm(`确定要${"0"===s?"启用":"禁用"}?`,{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{var l={id:e,status:"1"===s?"0":"1"};let o={};o=3===a?await i.a.actionstatus(l):await i.a.menustatus(l),o&&0===o.code?(this.$notify.success({title:"修改成功!",message:""}),3===a?this.getchildList(t):this.restSearch()):o&&100<=o.code&&o.code<=104?await this.logout():this.$message.warning(o.message)}).catch(()=>{})},async del(e,t,a,s){await this.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{var s={id:e};let l={};l=3===a?await i.a.actiondel(s):await i.a.menudel(s),l&&0===l.code?(this.$notify.success({title:"删除成功!",message:""}),3===a?this.getchildList(t):this.restSearch()):l&&100<=l.code&&l.code<=104&&await this.logout()}).catch(()=>{})},openChildren(e,t,a,s){s?this.tableData=1===a?this.tableData.map(t=>(t.id===e&&(t.child=[]),t)):this.tableData.map(a=>(a.id===t&&(a.child=a.child.map(t=>(t.id===e&&(t.child=[]),t))),a)):1===a?this.concatData(e,"0",a):this.getchildList(e)},async getchildList(e){this.loading=!0;var t=await i.a.actionList({id:e});let a=[];t&&0===t.code&&t.data?a=t.data:t&&100<=t.code&&t.code<=104?await this.logout():this.$message.warning(t.message);let s=JSON.parse(JSON.stringify(this.tableData));s=s.map((t,s)=>(t&&t.child&&0<t.child.length&&t.child.forEach((t,s)=>(e===t.id&&(t.child=a),t)),t)),this.tableData=s,this.loading=!1},async concatData(e,t,a){this.loading=!0;var s=await i.a.list({});let l=[];s&&0===s.code&&s.data?l=s.data:s&&100<=s.code&&s.code<=104?await this.logout():this.$message.warning(s.message);let o=JSON.parse(JSON.stringify(this.tableData));o=o.map((s,i)=>((1===a?e:t===s.id)&&(s.child=l[i].child),s)),this.tableData=o,this.loading=!1},async deleteById(e,t){await this.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{var a=await i.a.status({id:e,status:"1"===t?"0":"1"});a&&0===a.code?(this.$notify.success({title:"删除成功",message:""}),this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}).catch(()=>{})},async searchList(){this.loading=!0;var e=await i.a.list(this.parmValue);e&&0===e.code&&e.data?(this.tableData=e.data.list,this.pageInfo.total=Number(e.data.count)):e&&100<=e.code&&e.code<=104?await this.logout():(this.tableData=[],this.pageInfo.total=0),this.loading=!1},async statusConfirm(e,t){await this.$confirm(`确定要改为${"1"===t?"禁用":"启用"}?`,{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{this.loading=!0;var a=await i.a.status({id:e,status:"1"===t?"0":"1"});a&&0===a.code?(this.loading=!1,this.$notify.success({title:"状态修改成功!",message:""}),await this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}).catch(()=>{})}}},a("dbe0"),a=a("2877"),r=Object(a.a)(r,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"organize pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",[t("el-row",{attrs:{gutter:10}},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("el-col",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{span:24}},[t("shy-tree",{attrs:{value:e.tableData,level:1},on:{addEdit:e.addEditFn,openChildren:e.openChildren,editInterface:e.editInterface,remove:e.remove,del:e.del}})],1):e._e()],1),t("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):t("div",[t("no-auth")],1)])}),[],!1,null,"1a99a28a",null);t.default=r.exports},3191:function(e,t,a){},"31c0":function(e,t,a){"use strict";a.r(t);var s=a("fa1b"),i=a("9f53"),l=a("61f7");i={name:"check",props:["showModel","id","isDetail","sitem"],mixins:[i.a],data(){return{loading:!1,title:"添加账号",showModelThis:this.showModel,ruleForm:{username:"",name:"",mobile:"",email:"",role_id:"",status:"1",item:[]},rulesThis:this.rules,rules:{name:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("真实姓名不能为空!")):t.length<2||12<t.length||!Object(l.c)(t)||Object(l.d)(t)?a(new Error("真实姓名规则为2~12位汉字!")):a()},trigger:"blur"}],username:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("账号不能为空!")):t.length<6||18<t.length||Object(l.h)(t)||Object(l.i)(t)||!Object(l.b)(t)?a(new Error("账号规则为6~18位数字与字母组合!")):a()},trigger:"blur"}],mobile:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("手机号不能为空!")):Object(l.f)(t)?a():a(new Error("手机号格式不正确!"))},trigger:"blur"}],email:[{required:!1,validator:(e,t,a)=>{""===t||Object(l.j)(t)?a():a(new Error("邮箱格式不正确!"))},trigger:"blur"}],role_id:[{required:!0,message:"请选择角色",trigger:"change"}],item:[{type:"array",required:!0,message:"请选择所在部门",trigger:"change"}],status:[{required:!0,message:"请选择状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.loading=!0,"add"===this.id?(this.title="添加账号",this.rulesThis=this.rules,await this.resetForm()):(this.isDetail?(this.title="账号详情",this.rulesThis={}):(this.title="修改账号",this.rulesThis=this.rules),await this.resetForm(this.sitem)),this.loading=!1},async initData(){var e=await s.a.detail({id:this.id});e&&0===e.code&&e.data?(this.ruleForm=e.data,this.ruleForm.role_id=this.ruleForm.role):e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async resetForm(e){await this.$nextTick(()=>{var t,a,s,i,l,o,r;this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),({username:t,nickname:a,mobile:s,email:i,roleid:l,status:o,item:r}=e),this.ruleForm={username:t||"",name:a||"",mobile:s||"",email:i||"",role_id:l||"",status:o||"",item:r||[]},"add"!==this.id&&!this.isDetail||(this.rules.username[0].required=!1))})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.loading=!0;var{username:t,name:a,mobile:i,email:l,role_id:o,status:e}=JSON.parse(JSON.stringify(this.ruleForm));const r={id:this.id,username:t||"",nickname:a||"",mobile:i||"",email:l||"",role:o||"",status:e||""};let n={};n="add"===this.id?(delete r.id,await s.a.add(r)):await s.a.update(r),this.loading=!1,n&&0===n.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):n&&100<=n.code&&n.code<=104?await this.logout():this.$message.warning(n.message)}})}}},a("ec9c"),a=a("2877"),i=Object(a.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},["add"===e.id||e.isDetail?t("el-form-item",{attrs:{label:"登录名",prop:"loginName"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.loginName,callback:function(t){e.$set(e.ruleForm,"loginName",t)},expression:"ruleForm.loginName"}})],1):e._e(),t("el-form-item",{attrs:{label:"姓名",prop:"fullName"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.fullName,callback:function(t){e.$set(e.ruleForm,"fullName",t)},expression:"ruleForm.fullName"}})],1),t("el-form-item",{attrs:{label:"手机号",prop:"tel"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.tel,callback:function(t){e.$set(e.ruleForm,"tel",t)},expression:"ruleForm.tel"}})],1),"add"===e.id?t("el-form-item",{attrs:{label:"密码",prop:"password"}},[t("el-input",{attrs:{type:"password",placeholder:"密码",maxlength:20},model:{value:e.ruleForm.password,callback:function(t){e.$set(e.ruleForm,"password",t)},expression:"ruleForm.password"}})],1):e._e(),"add"===e.id?t("el-form-item",{attrs:{label:"确认密码",prop:"password2"}},[t("el-input",{attrs:{type:"password",placeholder:"再次输入密码",maxlength:20},model:{value:e.ruleForm.password2,callback:function(t){e.$set(e.ruleForm,"password2",t)},expression:"ruleForm.password2"}})],1):e._e()],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"06e1d4be",null);t.default=i.exports},3320:function(e,t,a){"use strict";a("0d1b")},"345e":function(e,t,a){"use strict";var s=a("4af7");const i="stock/";t.a={list:(e,t)=>Object(s.a)(i+"orderWarnList",e,"post",t),listAll:(e,t)=>Object(s.a)(i+"stockListAll",e,"post",t),goodsList:(e,t)=>Object(s.a)(i+"stockGoodsList",e,"post",t)}},3487:function(e,t,a){},"34e4":function(e,t,a){"use strict";a("3487")},"355b":function(e,t,a){"use strict";a.r(t);var s=a("2f62");s={data(){return{options:[],value:[],list:[],states:[],children:[]}},mounted(){this.list=this.states.map(e=>({value:"value:"+e,label:"label:"+e}))},computed:{...Object(s.b)(["searchSize"])},props:["options"],methods:{a(){this.$emit("searchCard",this.value),this.options.forEach(e=>{e.value===this.value&&(this.children=e.children,this.$emit("stock",this.children))})},remoteMethod(e){""!==e?(this.loading=!0,setTimeout(()=>{this.loading=!1,this.options=this.list.filter(t=>-1<t.label.toLowerCase().indexOf(e.toLowerCase()))},200)):this.options=[]}}},a=a("2877"),s=Object(a.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"companySearch",staticStyle:{width:"200px",display:"inline-block"}},[a("div",{staticClass:"block",staticStyle:{width:"100%"}},[a("el-select",{attrs:{size:e.searchSize,multiple:!1,filterable:"",remote:"","reserve-keyword":"",placeholder:"请选择公司","remote-method":e.remoteMethod,loading:e.loading},on:{change:e.a},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)])}),[],!1,null,null,null);t.default=s.exports},"355f":function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("9f53"),l=(a("0ee5"),a("d8a8"),a("3b36")),o=a("2f62");o={name:"allotFlow",mixins:[s.a,i.a],props:["myType"],components:{addEdit:l.default},computed:{...Object(o.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"allotFlow"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{options:[{value:"选项1",label:"顺丰"},{value:"选项2",label:"韵达"},{value:"选项3",label:"中通"}],value:"",ruleForm:{},rules:{expressage_company:[{required:!0,message:"请选择发货公司",trigger:"blur"}],expressage_sn:[{required:!0,message:"请输入物流单号",trigger:"blur"}],expressage_cost:[{required:!0,message:"请输入物流费用",trigger:"blur"}]},expressage:"",expressage_cost:0,loading:!0,showModel:!1,isDetail:!1,modelId:0,tableData:[],tableData:[],table:{stripe:!0,border:!0},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"nickname",label:"商品编号"},{prop:"role_name",label:"商品名称"},{prop:"mobile",label:"数量"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}],parmValue:{}}},mounted(){this.searchList()},methods:{restSearch(){this.parmValue={},this.searchList()},openModal(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},async deleteById(e,t){},async searchList(){},async statusConfirm(e,t){},compareStock(){this.stock_go===this.stock_in&&""!==this.stock_go&&""!=this.stock_go&&this.$message({message:"出库仓库不能和入库仓库相同",type:"error"})}}},a("9411"),a=a("2877"),o=Object(a.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"newApply pagePadding"},[e._v(" 出库方发货"+e._s(e.myType)+" "),e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("el-form",{ref:"ruleForm",attrs:{disabled:3!==e.myType,model:e.ruleForm,rules:e.rules,"label-width":"150px"}},[a("el-form-item",{attrs:{label:"发货物流公司",prop:"expressage_company"}},[a("el-select",{attrs:{placeholder:"请选择发货公司",size:e.searchSize},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"发货物流编号",prop:"expressage_sn"}},[a("el-input",{staticStyle:{width:"30%"},attrs:{type:"number",rows:2,placeholder:"请输入物流单号",size:e.searchSize,clearable:""},model:{value:e.expressage,callback:function(t){e.expressage=t},expression:"expressage"}})],1),a("el-form-item",{attrs:{label:"发货物流费用",prop:"expressage_cost"}},[a("el-input",{staticStyle:{width:"20%"},attrs:{type:"number",placeholder:"请输入物流费用",size:e.searchSize,clearable:""},model:{value:e.expressage_cost,callback:function(t){e.expressage_cost=t},expression:"expressage_cost"}})],1),a("el-form-item",[a("el-col",{staticStyle:{"text-align":"right","margin-top":"10px"},attrs:{span:24}},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:3===e.myType,expression:"myType === 3"}],attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存 ")])],1)],1)],1),a("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1)])}),[],!1,null,null,null);t.default=o.exports},"36a5":function(e,t,a){"use strict";a("f5b9")},"36cb":function(e,t,a){},"38a1":function(e,t,a){"use strict";a("e2c8")},"396b":function(e,t,a){"use strict";a("42f4")},"3a1a":function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("9f53"),l=a("0ee5"),o=a("4af7"),r=(e,t)=>Object(o.a)("stock/orderWarnList",e,"post",t),n=(e,t)=>Object(o.a)("stock/stockListAll",e,"post",t),c=a("9d45"),d=a("2f62");d={name:"survey",mixins:[s.a,i.a],components:{addEdit:c.default},computed:{...Object(d.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"stockWarning"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{options:[],statusList:l.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,row:"",parmValue:{stock_sn:"",stock_start:0,stock_end:0,stockWarn_start:0,stockWarn_end:0,status:"",page:1,size:15},tableData:[],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"orderNo",label:"商品编码"},{prop:"goods",label:"商品名称"},{prop:"attribute",label:"属性名称"},{prop:"type",label:"分类"},{prop:"unit",label:"单位"},{prop:"number",label:"可用库存"},{prop:"warnNumber",label:"预警库存"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted(){this.searchList(),this.stockName()},methods:{restSearch(){this.parmValue={},this.searchList()},openModal(e,t,a){this.showModel=!0,this.row=e,this.isDetail=t,this.sitem=a},async deleteById(e,t){},async searchList(){this.loading=!0;var e=await r(this.parmValue);e&&0===e.code&&e.data?(this.tableData=e.data.list,this.pageInfo.total=Number(e.data.count)):e&&100<=e.code&&e.code<=104?await this.logout():(this.tableData=[],this.pageInfo.total=0),this.loading=!1},async statusConfirm(e,t){},async stockName(){let e=(await n(this.parmValue)).data;e.forEach(e=>{let t={value:e.id,label:e.name,children:[]};e.child.forEach(e=>{e={value:e.id,label:e.name},t.children.push(e)}),this.options.push(t)})}}},a("1687"),a=a("2877"),d=Object(a.a)(d,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"survey pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticClass:"min",staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 0 80px"}},[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"500px"},attrs:{span:8}},[a("el-input",{staticClass:"input-with-select",attrs:{size:e.searchSize,placeholder:"请输入内容"},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}},[a("el-select",{staticStyle:{width:"100px"},attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[a("el-option",{attrs:{label:"库存量",value:"product"}}),a("el-option",{attrs:{label:"仓库",value:"stock"}})],1),a("el-button",{attrs:{slot:"append",icon:"el-icon-search",type:"primary"},slot:"append"})],1)],1),a("el-col",{staticStyle:{width:"273px",padding:"0 0 0 10px"},attrs:{span:6}},[a("number-range",{attrs:{start:e.parmValue.total_low,end:e.parmValue.total_up,type:1,width:"120px",title:"库存量",size:e.searchSize},on:{numReturned:function(t){return e.numReturned(t,0)}}})],1),a("el-col",{staticClass:"mr10",staticStyle:{width:"303px"},attrs:{span:6}},[a("number-range",{attrs:{start:e.parmValue.total_low,end:e.parmValue.total_up,type:1,width:"135px",title:"预警量",size:e.searchSize},on:{numReturned:function(t){return e.numReturned(t,0)}}})],1),a("el-col",{staticClass:"mr5",staticStyle:{width:"54px","margin-left":"10px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"warning"},on:{click:e.searchList}},[e._v("重置")])],1)],1)],1)],1)]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(s.row,!1,s.row)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e()]}}],null,!1,1700736941)}),a("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1),a("add-edit",{attrs:{showModel:e.showModel,row:e.row,isDetail:e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"dce70ea2",null);t.default=d.exports},"3b36":function(e,t,a){"use strict";a.r(t),a("c21b");var s=a("9f53");a("61f7"),s={name:"newApply",props:["showModel","id","isDetail","sitem"],mixins:[s.a],data(){return{loading:!0,loading:!1,showModel:!1,isDetail:!1,modelId:0,tableData:[],tableData:[],table:{stripe:!0,border:!0},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"nickname",label:"商品编号"},{prop:"role_name",label:"商品名称"},{prop:"mobile",label:"数量"}],title:"添加账号",showModelThis:this.showModel,ruleForm:{username:"",name:"",mobile:"",email:"",role_id:"",status:"1",item:[]},rulesThis:this.rules,rules:{name:[{required:!0,validator:(e,t,a)=>{},trigger:"blur"}],username:[{required:!0,validator:(e,t,a)=>{},trigger:"blur"}],mobile:[{required:!0,validator:(e,t,a)=>{},trigger:"blur"}],email:[{required:!1,validator:(e,t,a)=>{},trigger:"blur"}],role_id:[{required:!0,message:"请选择角色",trigger:"change"}],item:[{type:"array",required:!0,message:"请选择所在部门",trigger:"change"}],status:[{required:!0,message:"请选择状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.loading=!0,this.title="可调拨的商品",this.loading=!1},async initData(){},async resetForm(e){await this.$nextTick(()=>{})},save(){this.showModel=!1},async submitForm(){}}},a("5144"),a=a("2877"),s=Object(a.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[a("el-card",[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(e){return[a("div",{staticStyle:{width:"100%",height:"40px"}})]}}])})],1),a("el-col",{staticStyle:{"text-align":"right","margin-top":"10px"},attrs:{span:24}},[a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存 ")])],1)],1)],1)],1)}),[],!1,null,"31a4e26e",null);t.default=s.exports},"3b60":function(e,t,a){},"3c60":function(e,t,a){},"3d0f":function(e,t,a){"use strict";a.r(t);var s=a("1b69");const i="admin/";var l=(e,t)=>Object(s.a)(i+"add",e,"post",t),o=(e,t)=>Object(s.a)(i+"detail",e,"post",t),r=(e,t)=>Object(s.a)(i+"update",e,"post",t),n=a("9f53"),c=a("61f7");n={name:"spaceCount",props:["showModel","id","isDetail","sitem"],mixins:[n.a],data(){return{loading:!1,title:"添加账号",showModelThis:this.showModel,ruleForm:{username:"",name:"",mobile:"",email:"",role_id:"",status:"1",item:[]},rulesThis:this.rules,rules:{name:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("真实姓名不能为空!")):t.length<2||12<t.length||!Object(c.c)(t)||Object(c.d)(t)?a(new Error("真实姓名规则为2~12位汉字!")):a()},trigger:"blur"}],username:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("账号不能为空!")):t.length<6||18<t.length||Object(c.h)(t)||Object(c.i)(t)||!Object(c.b)(t)?a(new Error("账号规则为6~18位数字与字母组合!")):a()},trigger:"blur"}],mobile:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("手机号不能为空!")):Object(c.f)(t)?a():a(new Error("手机号格式不正确!"))},trigger:"blur"}],email:[{required:!1,validator:(e,t,a)=>{""===t||Object(c.j)(t)?a():a(new Error("邮箱格式不正确!"))},trigger:"blur"}],role_id:[{required:!0,message:"请选择角色",trigger:"change"}],item:[{type:"array",required:!0,message:"请选择所在部门",trigger:"change"}],status:[{required:!0,message:"请选择状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.loading=!0,"add"===this.id?(this.title="添加账号",this.rulesThis=this.rules,await this.resetForm()):(this.isDetail?(this.title="账号详情",this.rulesThis={}):(this.title="修改账号",this.rulesThis=this.rules),await this.resetForm(this.sitem)),this.loading=!1},async initData(){var e=await o({id:this.id});e&&0===e.code&&e.data?(this.ruleForm=e.data,this.ruleForm.role_id=this.ruleForm.role):e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async resetForm(e){await this.$nextTick(()=>{var t,a,s,i,l,o,r;this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),({username:t,nickname:a,mobile:s,email:i,roleid:l,status:o,item:r}=e),this.ruleForm={username:t||"",name:a||"",mobile:s||"",email:i||"",role_id:l||"",status:o||"",item:r||[]},"add"!==this.id&&!this.isDetail||(this.rules.username[0].required=!1))})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.loading=!0;var{username:t,name:a,mobile:s,email:i,role_id:o,status:e}=JSON.parse(JSON.stringify(this.ruleForm));const n={id:this.id,username:t||"",nickname:a||"",mobile:s||"",email:i||"",role:o||"",status:e||""};let c={};c="add"===this.id?(delete n.id,await l(n)):await r(n),this.loading=!1,c&&0===c.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):c&&100<=c.code&&c.code<=104?await this.logout():this.$message.warning(c.message)}})}}},a("e85a"),a=a("2877"),n=Object(a.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},["add"===e.id||e.isDetail?t("el-form-item",{attrs:{label:"登录名",prop:"loginName"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.loginName,callback:function(t){e.$set(e.ruleForm,"loginName",t)},expression:"ruleForm.loginName"}})],1):e._e(),t("el-form-item",{attrs:{label:"姓名",prop:"fullName"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.fullName,callback:function(t){e.$set(e.ruleForm,"fullName",t)},expression:"ruleForm.fullName"}})],1),t("el-form-item",{attrs:{label:"手机号",prop:"tel"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.tel,callback:function(t){e.$set(e.ruleForm,"tel",t)},expression:"ruleForm.tel"}})],1),"add"===e.id?t("el-form-item",{attrs:{label:"密码",prop:"password"}},[t("el-input",{attrs:{type:"password",placeholder:"密码",maxlength:20},model:{value:e.ruleForm.password,callback:function(t){e.$set(e.ruleForm,"password",t)},expression:"ruleForm.password"}})],1):e._e(),"add"===e.id?t("el-form-item",{attrs:{label:"确认密码",prop:"password2"}},[t("el-input",{attrs:{type:"password",placeholder:"再次输入密码",maxlength:20},model:{value:e.ruleForm.password2,callback:function(t){e.$set(e.ruleForm,"password2",t)},expression:"ruleForm.password2"}})],1):e._e()],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"a0f57020",null);t.default=n.exports},"3d4c":function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("9f53"),l=a("4af7"),o=(e,t)=>Object(l.a)("stock/stockListAll",e,"post",t),r=a("3d0f"),n=a("2f62");n={name:"spaceCount",mixins:[s.a,i.a],components:{addEdit:r.default},computed:{...Object(n.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"stockCount"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{select:"",product:"",stock:"",content:"",options:[],loading:!0,showModel:!1,isDetail:!1,modelId:0,tableData:[],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"nickname",label:"仓库编码"},{prop:"role_name",label:"仓库"},{prop:"mobile",label:"商品编码"},{prop:"email",label:"商品名称"},{prop:"status",label:"分类"},{prop:"addtime",label:"单位"},{prop:"addtime",label:"已入库"},{prop:"addtime",label:"已出库"},{prop:"addtime",label:"待入库"},{prop:"addtime",label:"待出库"}],parmValue:{}}},mounted(){this.searchList(),this.stockName()},methods:{restSearch(){this.parmValue={},this.searchList()},openModal(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},async deleteById(e,t){},async searchList(){},async statusConfirm(e,t){},async stockName(){let e=(await o(this.parmValue)).data;e.forEach(e=>{let t={value:e.id,label:e.name,children:[]};e.child.forEach(e=>{e={value:e.id,label:e.name},t.children.push(e)}),this.options.push(t)})}}},a("f973"),a=a("2877"),n=Object(a.a)(n,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"spaceCount pagePadding",staticStyle:{padding:"0"}},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticClass:"min",staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 0 80px"}},[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"500px"},attrs:{span:8}},[a("el-input",{staticClass:"input-with-select",attrs:{size:e.searchSize,placeholder:"请输入内容"},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}},[a("el-select",{staticStyle:{width:"100px"},attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[a("el-option",{attrs:{label:"商品",value:"product"}}),a("el-option",{attrs:{label:"仓库",value:"stock"}})],1),a("el-button",{attrs:{slot:"append",icon:"el-icon-search",type:"primary"},slot:"append"})],1)],1),a("el-col",{staticStyle:{width:"303px",padding:"0 0 0 10px"},attrs:{span:6}},[a("PeriodDatePicker",{attrs:{start:e.parmValue.total_low,end:e.parmValue.total_up,type:1,width:"135px",title:"开始时间",size:e.searchSize},on:{numReturned:function(t){return e.numReturned(t,0)}}})],1),a("el-col",{staticClass:"mr5",staticStyle:{width:"74px","margin-left":"10px"},attrs:{span:4}},[a("el-button",{staticClass:"fl",attrs:{size:e.searchSize,type:"warning"},on:{click:e.searchList}},[e._v("重置")])],1)],1)],1)],1),a("el-col",{staticStyle:{width:"74px","margin-left":"10px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"primary",label:""},on:{click:e.searchList}},[e._v("刷新")])],1)]}},{key:"status",fn:function(t){var s=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==s.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==s.row.status}))||{}).label||"--")}})]}}],null,!1,3730560512)}),a("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1),a("add-edit",{attrs:{showModel:e.showModel,id:e.modelId,isDetail:e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"58dcf030",null);t.default=n.exports},"3d88":function(e,t,a){},"3df7":function(e,t,a){"use strict";a.r(t);var s=a("4568"),i=a("9f53");a("61f7"),i={name:"goodsAnomaly",props:["showModel","id","isDetail","sitem"],mixins:[i.a],data(){return{loading:!1,title:"添加账号",showModelThis:this.showModel,ruleForm:{result:"",result_desc:""},rulesThis:this.rules,rules:{result:[{required:!0,trigger:"blur",message:"入库异常原因不能为空"}],result_desc:[{required:!0,trigger:"blur",message:"入库异常备注不能为空"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.loading=!0,"add"===this.id?(this.title="添加异常原因",this.rulesThis=this.rules,await this.resetForm()):(this.isDetail?(this.title="异常原因详情",this.rulesThis={}):(this.title="修改异常原因",this.rulesThis=this.rules),await this.resetForm(),await this.initData()),this.loading=!1},async initData(){var e=await s.a.detail({id:this.id});e&&0===e.code&&e.data?this.ruleForm=e.data:e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async resetForm(){await this.$nextTick(()=>{this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),this.ruleForm={result:"",result_desc:""})})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.loading=!0;var{result:t,result_desc:e}=JSON.parse(JSON.stringify(this.ruleForm));const a={result:t||"",result_desc:e||"",id:this.id};let i={};i="add"===this.id?(delete a.id,await s.a.add(a)):await s.a.update(a),this.loading=!1,i&&0===i.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):i&&100<=i.code&&i.code<=104?await this.logout():this.$message.warning(i.message)}})}}},a("9688"),a=a("2877"),i=Object(a.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"700px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},["add"===e.id||(e.isDetail,1)?t("el-form-item",{attrs:{label:"异常原因",prop:"result"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.result,callback:function(t){e.$set(e.ruleForm,"result",t)},expression:"ruleForm.result"}})],1):e._e(),"add"===e.id||(e.isDetail,1)?t("el-form-item",{attrs:{label:"异常备注",prop:"result_desc"}},[t("el-input",{attrs:{autosize:{minRows:4,maxRows:10},type:"textarea",disabled:e.isDetail},model:{value:e.ruleForm.result_desc,callback:function(t){e.$set(e.ruleForm,"result_desc",t)},expression:"ruleForm.result_desc"}})],1):e._e()],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"563048e7",null);t.default=i.exports},"3e5a":function(e,t,a){"use strict";a.r(t);var s=a("1b69");const i="admin/";var l=(e,t)=>Object(s.a)(i+"add",e,"post",t),o=(e,t)=>Object(s.a)(i+"detail",e,"post",t),r=(e,t)=>Object(s.a)(i+"update",e,"post",t),n=a("9f53"),c=a("61f7");n={name:"survey",props:["showModel","id","isDetail","sitem"],mixins:[n.a],data(){return{loading:!1,title:"添加账号",showModelThis:this.showModel,ruleForm:{username:"",name:"",mobile:"",email:"",role_id:"",status:"1",item:[]},rulesThis:this.rules,rules:{name:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("真实姓名不能为空!")):t.length<2||12<t.length||!Object(c.c)(t)||Object(c.d)(t)?a(new Error("真实姓名规则为2~12位汉字!")):a()},trigger:"blur"}],username:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("账号不能为空!")):t.length<6||18<t.length||Object(c.h)(t)||Object(c.i)(t)||!Object(c.b)(t)?a(new Error("账号规则为6~18位数字与字母组合!")):a()},trigger:"blur"}],mobile:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("手机号不能为空!")):Object(c.f)(t)?a():a(new Error("手机号格式不正确!"))},trigger:"blur"}],email:[{required:!1,validator:(e,t,a)=>{""===t||Object(c.j)(t)?a():a(new Error("邮箱格式不正确!"))},trigger:"blur"}],role_id:[{required:!0,message:"请选择角色",trigger:"change"}],item:[{type:"array",required:!0,message:"请选择所在部门",trigger:"change"}],status:[{required:!0,message:"请选择状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.loading=!0,"add"===this.id?(this.title="添加账号",this.rulesThis=this.rules,await this.resetForm()):(this.isDetail?(this.title="账号详情",this.rulesThis={}):(this.title="修改账号",this.rulesThis=this.rules),await this.resetForm(this.sitem)),this.loading=!1},async initData(){var e=await o({id:this.id});e&&0===e.code&&e.data?(this.ruleForm=e.data,this.ruleForm.role_id=this.ruleForm.role):e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async resetForm(e){await this.$nextTick(()=>{var t,a,s,i,l,o,r;this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),({username:t,nickname:a,mobile:s,email:i,roleid:l,status:o,item:r}=e),this.ruleForm={username:t||"",name:a||"",mobile:s||"",email:i||"",role_id:l||"",status:o||"",item:r||[]},"add"!==this.id&&!this.isDetail||(this.rules.username[0].required=!1))})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.loading=!0;var{username:t,name:a,mobile:s,email:i,role_id:o,status:e}=JSON.parse(JSON.stringify(this.ruleForm));const n={id:this.id,username:t||"",nickname:a||"",mobile:s||"",email:i||"",role:o||"",status:e||""};let c={};c="add"===this.id?(delete n.id,await l(n)):await r(n),this.loading=!1,c&&0===c.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):c&&100<=c.code&&c.code<=104?await this.logout():this.$message.warning(c.message)}})}}},a("fb55"),a=a("2877"),n=Object(a.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},["add"===e.id||e.isDetail?t("el-form-item",{attrs:{label:"登录名",prop:"loginName"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.loginName,callback:function(t){e.$set(e.ruleForm,"loginName",t)},expression:"ruleForm.loginName"}})],1):e._e(),t("el-form-item",{attrs:{label:"姓名",prop:"fullName"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.fullName,callback:function(t){e.$set(e.ruleForm,"fullName",t)},expression:"ruleForm.fullName"}})],1),t("el-form-item",{attrs:{label:"手机号",prop:"tel"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.tel,callback:function(t){e.$set(e.ruleForm,"tel",t)},expression:"ruleForm.tel"}})],1),"add"===e.id?t("el-form-item",{attrs:{label:"密码",prop:"password"}},[t("el-input",{attrs:{type:"password",placeholder:"密码",maxlength:20},model:{value:e.ruleForm.password,callback:function(t){e.$set(e.ruleForm,"password",t)},expression:"ruleForm.password"}})],1):e._e(),"add"===e.id?t("el-form-item",{attrs:{label:"确认密码",prop:"password2"}},[t("el-input",{attrs:{type:"password",placeholder:"再次输入密码",maxlength:20},model:{value:e.ruleForm.password2,callback:function(t){e.$set(e.ruleForm,"password2",t)},expression:"ruleForm.password2"}})],1):e._e()],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"19ca1970",null);t.default=n.exports},"3f17":function(e,t,a){"use strict";a.r(t);var s=a("0ef8"),i=a("9f53"),l=a("61f7");i={name:"nowCount",props:["showModel","id","isDetail","sitem"],mixins:[i.a],data(){return{loading:!1,title:"添加账号",showModelThis:this.showModel,ruleForm:{username:"",name:"",mobile:"",email:"",role_id:"",status:"1",item:[]},rulesThis:this.rules,rules:{name:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("真实姓名不能为空!")):t.length<2||12<t.length||!Object(l.c)(t)||Object(l.d)(t)?a(new Error("真实姓名规则为2~12位汉字!")):a()},trigger:"blur"}],username:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("账号不能为空!")):t.length<6||18<t.length||Object(l.h)(t)||Object(l.i)(t)||!Object(l.b)(t)?a(new Error("账号规则为6~18位数字与字母组合!")):a()},trigger:"blur"}],mobile:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("手机号不能为空!")):Object(l.f)(t)?a():a(new Error("手机号格式不正确!"))},trigger:"blur"}],email:[{required:!1,validator:(e,t,a)=>{""===t||Object(l.j)(t)?a():a(new Error("邮箱格式不正确!"))},trigger:"blur"}],role_id:[{required:!0,message:"请选择角色",trigger:"change"}],item:[{type:"array",required:!0,message:"请选择所在部门",trigger:"change"}],status:[{required:!0,message:"请选择状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.loading=!0,"add"===this.id?(this.title="添加账号",this.rulesThis=this.rules,await this.resetForm()):(this.isDetail?(this.title="账号详情",this.rulesThis={}):(this.title="修改账号",this.rulesThis=this.rules),await this.resetForm(this.sitem)),this.loading=!1},async initData(){var e=await s.a.detail({id:this.id});e&&0===e.code&&e.data?(this.ruleForm=e.data,this.ruleForm.role_id=this.ruleForm.role):e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async resetForm(e){await this.$nextTick(()=>{var t,a,s,i,l,o,r;this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),({username:t,nickname:a,mobile:s,email:i,roleid:l,status:o,item:r}=e),this.ruleForm={username:t||"",name:a||"",mobile:s||"",email:i||"",role_id:l||"",status:o||"",item:r||[]},"add"!==this.id&&!this.isDetail||(this.rules.username[0].required=!1))})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.loading=!0;var{username:t,name:a,mobile:i,email:l,role_id:o,status:e}=JSON.parse(JSON.stringify(this.ruleForm));const r={id:this.id,username:t||"",nickname:a||"",mobile:i||"",email:l||"",role:o||"",status:e||""};let n={};n="add"===this.id?(delete r.id,await s.a.add(r)):await s.a.update(r),this.loading=!1,n&&0===n.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):n&&100<=n.code&&n.code<=104?await this.logout():this.$message.warning(n.message)}})}}},a("5506"),a=a("2877"),i=Object(a.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},["add"===e.id||e.isDetail?t("el-form-item",{attrs:{label:"登录名",prop:"loginName"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.loginName,callback:function(t){e.$set(e.ruleForm,"loginName",t)},expression:"ruleForm.loginName"}})],1):e._e(),t("el-form-item",{attrs:{label:"姓名",prop:"fullName"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.fullName,callback:function(t){e.$set(e.ruleForm,"fullName",t)},expression:"ruleForm.fullName"}})],1),t("el-form-item",{attrs:{label:"手机号",prop:"tel"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.tel,callback:function(t){e.$set(e.ruleForm,"tel",t)},expression:"ruleForm.tel"}})],1),"add"===e.id?t("el-form-item",{attrs:{label:"密码",prop:"password"}},[t("el-input",{attrs:{type:"password",placeholder:"密码",maxlength:20},model:{value:e.ruleForm.password,callback:function(t){e.$set(e.ruleForm,"password",t)},expression:"ruleForm.password"}})],1):e._e(),"add"===e.id?t("el-form-item",{attrs:{label:"确认密码",prop:"password2"}},[t("el-input",{attrs:{type:"password",placeholder:"再次输入密码",maxlength:20},model:{value:e.ruleForm.password2,callback:function(t){e.$set(e.ruleForm,"password2",t)},expression:"ruleForm.password2"}})],1):e._e()],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"4ead0d57",null);t.default=i.exports},4022:function(e,t,a){"use strict";var s=a("1b69");const i="admin/";t.a={add:(e,t)=>Object(s.a)(i+"groupadd",e,"post",t),delete:(e,t)=>Object(s.a)(i+"delete",e,"post",t),list:(e,t)=>Object(s.a)(i+"grouplist",e,"post",t),detail:(e,t)=>Object(s.a)(i+"groupinfo",e,"post",t),update:(e,t)=>Object(s.a)(i+"groupsave",e,"post",t),status:(e,t)=>Object(s.a)(i+"groupstatus",e,"post",t),accountall:(e,t)=>Object(s.a)(i+"userall",e,"post",t)}},4029:function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("b5d3"),l=a("d2f9"),o=a("0ee5"),r=a("2f62"),n=a("9f53");r={name:"handover",components:{addEdit:l.default},mixins:[s.a,n.a],computed:{...Object(r.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"handover"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],type:"",status_options:[{value:"状态1",label:"状态1"},{value:"状态2",label:"状态2"},{value:"状态3",label:"状态3"},{value:"状态4",label:"状态4"},{value:"状态5",label:"状态5"}],statusList:o.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{startTime:"",endTime:"",type:"",resign_part:[],resign_name:"",handover_part:[],handover_name:"",status:"",page:1,size:15},tableData:[],tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1,table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"resign_name",label:"离职人"},{prop:"role_name",label:"离职人所在部门","min-width":"150"},{prop:"hand_name",label:"接收人"},{prop:"email",label:"接收人所在部门","min-width":"150"},{prop:"status",label:"状态",_slot_:"status",width:"80px"},{prop:"addtime",label:"创建时间",sortable:!0,width:"140"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation",width:"150px"}]}},mounted(){this.searchList()},methods:{restSearch(){this.parmValue={startTime:"",endTime:"",type:"",resign_part:[],resign_name:"",handover_part:[],handover_name:"",status:"",page:1,size:10},this.searchList()},openModal(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},openPasswordModal(e,t){this.passwordModel=!0,this.passwordModelId=e,this.isPasswordDetail=t},async deleteById(e,t){await this.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{var a=await i.a.status({id:e,status:"1"===t?"0":"1"});a&&0===a.code?(this.$notify.success({title:"删除成功",message:""}),this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}).catch(()=>{})},async searchList(){this.loading=!0;var e=await i.a.list(this.parmValue);e&&0===e.code&&e.data?(this.tableData=e.data.list,this.pageInfo.total=Number(e.data.count)):e&&100<=e.code&&e.code<=104?await this.logout():(this.tableData=[],this.pageInfo.total=0),this.loading=!1},async statusConfirm(e,t){await this.$confirm(`确定要改为${"1"===t?"禁用":"启用"}?`,{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{var a=await i.a.status({id:e,status:"1"===t?"0":"1"});a&&0===a.code?(this.loading=!1,this.$notify.success({title:"状态修改成功!",message:""}),await this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}).catch(()=>{})},handleResignPart(e){this.parmValue.resign_part=e},handleResignName(e){this.parmValue.resign_name=e.id},handleHandoverPart(e){this.parmValue.handover_part=e},handleHandoverName(e){this.parmValue.handover_name=e.id},handleTime(e){}}},a("e00d"),a=a("2877"),r=Object(a.a)(r,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"account pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 0 80px"}},[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"180px"},attrs:{span:4}},[a("all-organize",{attrs:{size:e.searchSize,placeholder:"离职人部门名称"},on:{searchChange:e.handleResignPart}})],1),a("el-col",{staticStyle:{width:"140px","padding-left":"10px"},attrs:{span:4}},[a("search-account",{attrs:{size:e.searchSize,placeholder:"离职人姓名"},on:{searchChange:e.handleResignName}})],1),a("el-col",{staticStyle:{width:"125px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-select",{attrs:{filterable:"",placeholder:"审核状态",size:e.searchSize},model:{value:e.type,callback:function(t){e.type=t},expression:"type"}},e._l(e.status_options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-col",{staticStyle:{width:"305px",padding:"0px 0 0 10px"},attrs:{span:5}},[a("period-date-picker",{attrs:{width:"135px",size:e.searchSize},on:{timeReturned:e.handleTime}})],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),e.powers.some((function(e){return"003"==e}))?a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 新建 ")])],1):e._e()],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"220px","padding-top":"10px"},attrs:{span:4}},[a("all-organize",{attrs:{size:e.searchSize,placeholder:"接受人部门名称"},on:{searchChange:e.handleHandoverPart}})],1),a("el-col",{staticStyle:{width:"140px",padding:"10px 0 0 10px"},attrs:{span:4}},[a("search-account",{attrs:{size:e.searchSize,placeholder:"接受人姓名"},on:{searchChange:e.handleHandoverName}})],1),a("el-col",{staticStyle:{width:"54px",padding:"10px 0 0 0"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"primary",icon:"el-icon-search"},on:{click:e.searchList}})],1),a("el-col",{staticStyle:{width:"66px",padding:"10px 0 0 0"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1)],1)],1)]}},{key:"status",fn:function(t){var s=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==s.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==s.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(s.row.id,!0)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(s.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[a("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteItem(s.row.id)}}})]):e._e()]}}],null,!1,2937748605)}):e._e(),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1)])}),[],!1,null,"063b62b1",null);t.default=r.exports},"42d5":function(e,t,a){"use strict";a("f9373")},"42f4":function(e,t,a){},"43b9":function(e,t,a){"use strict";a.r(t);var s=a("61f7"),i=a("6a1e"),l={name:"Login",mixins:[a("9f53").a],data(){return{stepList:["验证身份","重设密码","设置成功"],timer:null,num:3,step:0,loginFormX:{username:"",mobile:"",code:""},loginRulesX:{username:[{required:!0,trigger:"blur",validator:(e,t,a)=>{""===t?a(new Error("请输入账号")):a()}}],mobile:[{required:!0,trigger:"blur",validator:(e,t,a)=>{""===t?a(new Error("手机号不能为空!")):Object(s.f)(t)?a():a(new Error("手机号不正确!"))}}],code:[{required:!0,trigger:"blur",validator:(e,t,a)=>{""===t?a(new Error("验证码不能为空!")):Object(s.h)(t)&&6===t.length?a():a(new Error("验证码应为6位数字!"))}}]},loginFormY:{newPassword:"",confirmPassword:""},loginRulesY:{newPassword:[{required:!0,trigger:"blur",validator:(e,t,a)=>{""===t?a(new Error("新密码不能为空!")):!Object(s.b)(t)||t.length<6||16<t.length?a(new Error("新密码为6-16位数字字母组合!")):Object(s.h)(t)?a(new Error("新密码不能为纯数字!")):Object(s.i)(t)?a(new Error("新密码不能为纯字母!")):a()}}],confirmPassword:[{required:!0,trigger:"blur",validator:(e,t,a)=>{""===t?a(new Error("确认密码不能为空!")):this.loginFormY.newPassword!==t?a(new Error("确认密码与新密码不一致!")):a()}}]},codeType:"code",capsTooltip:!1,loading:!1,showDialog:!1,redirect:void 0,otherQuery:{}}},created(){},mounted(){""===this.loginFormX.mobile&&this.$refs.mobile.focus(),""===this.loginFormX.code&&this.$refs.code.focus()},destroyed(){},methods:{modifyPostLevel(e){this.step=e},phoneErr(e){e||this.$refs.loginFormX.validateField("mobile")},checkCapslock(e){var{key:e}=e;this.capsTooltip=e&&1===e.length&&"A"<=e&&e<="Z"},handleLoginX(){this.$refs.loginFormX.validate(e=>!!e&&void this.step++)},handleLoginY(){this.$refs.loginFormY.validate(e=>!!e&&void(this.loading||(this.loading=!0,e={username:this.loginFormX.username,mobile:this.loginFormX.mobile,code:this.loginFormX.code,password:this.loginFormY.newPassword},i.a.resetpwd(e).then(async e=>{e&&0===e.code?(this.loading=!1,this.step++,this.setTime()):e&&100<=e.code&&e.code<=104?await this.logout():(this.$message.warning(e.message),this.loading=!1)}))))},setTime(){this.timer=setInterval(()=>{0!==this.num?this.num--:this.timer&&(clearInterval(this.timer),this.num=3,this.gotoLogin())},1e3)},gotoLogin(){window.vm.$router.replace("/login")}}};a("ebdd"),a("3320"),a=a("2877"),l=Object(a.a)(l,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"forget-password"},[a("div",{staticClass:"forget-main"},[a("div",{staticClass:"my-card"},[e._m(0),a("div",{staticStyle:{margin:"8px 0 35px 0"}},[a("el-steps",{attrs:{active:e.step,simple:"","process-status":"finish","finish-status":"success"}},e._l(e.stepList,(function(e,t){return a("el-step",{key:t,attrs:{title:e}})})),1)],1),0===e.step?a("div",[a("el-form",{ref:"loginFormX",staticClass:"login-form",attrs:{model:e.loginFormX,rules:e.loginRulesX,autocomplete:"on","label-position":"left","label-width":"95px"}},[a("el-form-item",{attrs:{prop:"username",label:"账号:"}},[a("el-input",{ref:"username",attrs:{placeholder:"账号",name:"username",type:"text",tabindex:"1",autocomplete:"on"},model:{value:e.loginFormX.username,callback:function(t){e.$set(e.loginFormX,"username",t)},expression:"loginFormX.username"}})],1),a("el-form-item",{attrs:{prop:"mobile",label:"手机号:"}},[a("el-input",{ref:"mobile",attrs:{placeholder:"手机号",name:"mobile",type:"text",tabindex:"1",autocomplete:"on"},model:{value:e.loginFormX.mobile,callback:function(t){e.$set(e.loginFormX,"mobile",t)},expression:"loginFormX.mobile"}})],1),a("el-form-item",{staticClass:"code-sign",attrs:{prop:"code",label:"验证码:"}},[a("ul",{staticClass:"code-main"},[a("li",[a("el-input",{ref:"code",attrs:{placeholder:"验证码",name:"code",type:"text",tabindex:"1",autocomplete:"on"},model:{value:e.loginFormX.code,callback:function(t){e.$set(e.loginFormX,"code",t)},expression:"loginFormX.code"}})],1),a("li",[a("send-verification-code",{attrs:{mobile:e.loginFormX.mobile},on:{phoneErr:e.phoneErr}})],1)])]),a("el-button",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLoginX(t)}}},[e._v("下一步")])],1)],1):1===e.step?a("div",[a("el-form",{ref:"loginFormY",staticClass:"login-form",attrs:{model:e.loginFormY,rules:e.loginRulesY,autocomplete:"on","label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{prop:"newPassword",label:"新密码:"}},[a("el-input",{ref:"newPassword",attrs:{placeholder:"6-16位数字字母组合",name:"newPassword",type:"password",tabindex:"1",autocomplete:"on"},model:{value:e.loginFormY.newPassword,callback:function(t){e.$set(e.loginFormY,"newPassword",t)},expression:"loginFormY.newPassword"}})],1),a("el-form-item",{attrs:{prop:"confirmPassword",label:"确认密码:"}},[a("el-input",{ref:"confirmPassword",attrs:{placeholder:"6-16位数字字母组合",name:"confirmPassword",type:"password",tabindex:"1",autocomplete:"on"},model:{value:e.loginFormY.confirmPassword,callback:function(t){e.$set(e.loginFormY,"confirmPassword",t)},expression:"loginFormY.confirmPassword"}})],1),a("el-button-group",{staticStyle:{"margin-top":"10px"}},[a("el-button",{staticStyle:{width:"140px"},attrs:{type:"primary",disabled:e.loading,icon:"el-icon-arrow-left"},nativeOn:{click:function(t){t.preventDefault(),e.step=0}}},[e._v("上一步")]),a("el-button",{staticStyle:{width:"140px"},attrs:{type:"primary",loading:e.loading},nativeOn:{click:function(t){return t.preventDefault(),e.handleLoginY(t)}}},[e._v("下一步"),a("i",{staticClass:"el-icon-arrow-right el-icon--right"})])],1)],1)],1):a("div",{staticClass:"success-card"},[e._m(1),a("div",{staticClass:"teps-title"},[e._v("恭喜你,新密码设置成功!")]),a("div",{staticClass:"teps-time"},[a("span",[e._v(e._s(e.num))]),e._v("秒后自动返回 ")])])])])])}),[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"title-container"},[e("h3",{staticClass:"title"},[this._v("设置新登录密码")])])},function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"success-icon"},[e("i",{staticClass:"el-icon-success"})])}],!1,null,"1c730dec",null);t.default=l.exports},4504:function(e,t,a){"use strict";a.r(t);var s=a("1b69");const i="admin/";var l=(e,t)=>Object(s.a)(i+"add",e,"post",t),o=(e,t)=>Object(s.a)(i+"detail",e,"post",t),r=(e,t)=>Object(s.a)(i+"update",e,"post",t),n=a("9f53"),c=a("61f7");n={name:"allot",props:["showModel","id","isDetail","sitem"],mixins:[n.a],data(){return{loading:!1,title:"添加账号",showModelThis:this.showModel,ruleForm:{username:"",name:"",mobile:"",email:"",role_id:"",status:"1",item:[]},rulesThis:this.rules,rules:{name:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("真实姓名不能为空!")):t.length<2||12<t.length||!Object(c.c)(t)||Object(c.d)(t)?a(new Error("真实姓名规则为2~12位汉字!")):a()},trigger:"blur"}],username:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("账号不能为空!")):t.length<6||18<t.length||Object(c.h)(t)||Object(c.i)(t)||!Object(c.b)(t)?a(new Error("账号规则为6~18位数字与字母组合!")):a()},trigger:"blur"}],mobile:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("手机号不能为空!")):Object(c.f)(t)?a():a(new Error("手机号格式不正确!"))},trigger:"blur"}],email:[{required:!1,validator:(e,t,a)=>{""===t||Object(c.j)(t)?a():a(new Error("邮箱格式不正确!"))},trigger:"blur"}],role_id:[{required:!0,message:"请选择角色",trigger:"change"}],item:[{type:"array",required:!0,message:"请选择所在部门",trigger:"change"}],status:[{required:!0,message:"请选择状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.loading=!0,"add"===this.id?(this.title="添加账号",this.rulesThis=this.rules,await this.resetForm()):(this.isDetail?(this.title="账号详情",this.rulesThis={}):(this.title="修改账号",this.rulesThis=this.rules),await this.resetForm(this.sitem)),this.loading=!1},async initData(){var e=await o({id:this.id});e&&0===e.code&&e.data?(this.ruleForm=e.data,this.ruleForm.role_id=this.ruleForm.role):e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async resetForm(e){await this.$nextTick(()=>{var t,a,s,i,l,o,r;this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),({username:t,nickname:a,mobile:s,email:i,roleid:l,status:o,item:r}=e),this.ruleForm={username:t||"",name:a||"",mobile:s||"",email:i||"",role_id:l||"",status:o||"",item:r||[]},"add"!==this.id&&!this.isDetail||(this.rules.username[0].required=!1))})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.loading=!0;var{username:t,name:a,mobile:s,email:i,role_id:o,status:e}=JSON.parse(JSON.stringify(this.ruleForm));const n={id:this.id,username:t||"",nickname:a||"",mobile:s||"",email:i||"",role:o||"",status:e||""};let c={};c="add"===this.id?(delete n.id,await l(n)):await r(n),this.loading=!1,c&&0===c.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):c&&100<=c.code&&c.code<=104?await this.logout():this.$message.warning(c.message)}})}}},a("850c"),a=a("2877"),n=Object(a.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},["add"===e.id||e.isDetail?t("el-form-item",{attrs:{label:"登录名",prop:"loginName"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.loginName,callback:function(t){e.$set(e.ruleForm,"loginName",t)},expression:"ruleForm.loginName"}})],1):e._e(),t("el-form-item",{attrs:{label:"姓名",prop:"fullName"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.fullName,callback:function(t){e.$set(e.ruleForm,"fullName",t)},expression:"ruleForm.fullName"}})],1),t("el-form-item",{attrs:{label:"手机号",prop:"tel"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.tel,callback:function(t){e.$set(e.ruleForm,"tel",t)},expression:"ruleForm.tel"}})],1),"add"===e.id?t("el-form-item",{attrs:{label:"密码",prop:"password"}},[t("el-input",{attrs:{type:"password",placeholder:"密码",maxlength:20},model:{value:e.ruleForm.password,callback:function(t){e.$set(e.ruleForm,"password",t)},expression:"ruleForm.password"}})],1):e._e(),"add"===e.id?t("el-form-item",{attrs:{label:"确认密码",prop:"password2"}},[t("el-input",{attrs:{type:"password",placeholder:"再次输入密码",maxlength:20},model:{value:e.ruleForm.password2,callback:function(t){e.$set(e.ruleForm,"password2",t)},expression:"ruleForm.password2"}})],1):e._e()],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"0b20cbf6",null);t.default=n.exports},4543:function(e,t,a){"use strict";a("2e7d")},4568:function(e,t,a){"use strict";var s=a("1b69");const i="admin/";t.a={add:(e,t)=>Object(s.a)(i+"resultcreate",e,"post",t),delete:(e,t)=>Object(s.a)(i+"resultdel",e,"post",t),list:(e,t)=>Object(s.a)(i+"resultlist",e,"post",t),detail:(e,t)=>Object(s.a)(i+"resultselect",e,"post",t),update:(e,t)=>Object(s.a)(i+"resultedit",e,"post",t),status:(e,t)=>Object(s.a)(i+"resultstatu",e,"post",t)}},"4568c":function(e,t,a){"use strict";a.r(t),a=a("2877"),a=Object(a.a)({},void 0,void 0,!1,null,null,null),t.default=a.exports},"47e6":function(e,t,a){"use strict";a("5a15")},"4af7":function(e,t,a){"use strict";const s={};window.ajaxTimeout=2e4,t.a=async(e="",t,a,i,l=s)=>new Promise((t,a)=>{axios.post("/"+(e.url||e),{}).then(e=>{t(e.data)}).catch(e=>{a(e)})})},"4c1f":function(e,t,a){"use strict";var s=a("1b69");t.a={list:(e,t)=>Object(s.a)("admin/versionlist",e,"post",t)}},"4cba":function(e,t,a){"use strict";var s=a("1b69");const i="admin/";t.a={add:(e,t)=>Object(s.a)(i+"add",e,"post",t),delete:(e,t)=>Object(s.a)(i+"delete",e,"post",t),list:(e,t)=>Object(s.a)(i+"goodlist",e,"post",t),detail:(e,t)=>Object(s.a)(i+"detail",e,"post",t),update:(e,t)=>Object(s.a)(i+"update",e,"post",t),status:(e,t)=>Object(s.a)(i+"goodstatus",e,"post",t),supplierlist:(e,t)=>Object(s.a)(i+"supplierlist",e,"post",t)}},"4ebf":function(e,t,a){"use strict";a("a891")},"4f59":function(e,t,a){"use strict";a.r(t);var s=a("4cba"),i=a("9f53"),l=a("61f7");i={name:"storeGoods",props:["showModel","id","isDetail","sitem"],mixins:[i.a],data(){return{loading:!1,title:"添加账号",showModelThis:this.showModel,ruleForm:{username:"",name:"",mobile:"",email:"",role_id:"",status:"1",item:[]},rulesThis:this.rules,rules:{name:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("真实姓名不能为空!")):t.length<2||12<t.length||!Object(l.c)(t)||Object(l.d)(t)?a(new Error("真实姓名规则为2~12位汉字!")):a()},trigger:"blur"}],username:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("账号不能为空!")):t.length<6||18<t.length||Object(l.h)(t)||Object(l.i)(t)||!Object(l.b)(t)?a(new Error("账号规则为6~18位数字与字母组合!")):a()},trigger:"blur"}],mobile:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("手机号不能为空!")):Object(l.f)(t)?a():a(new Error("手机号格式不正确!"))},trigger:"blur"}],email:[{required:!1,validator:(e,t,a)=>{""===t||Object(l.j)(t)?a():a(new Error("邮箱格式不正确!"))},trigger:"blur"}],role_id:[{required:!0,message:"请选择角色",trigger:"change"}],item:[{type:"array",required:!0,message:"请选择所在部门",trigger:"change"}],status:[{required:!0,message:"请选择状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.loading=!0,"add"===this.id?(this.title="添加账号",this.rulesThis=this.rules,await this.resetForm()):(this.isDetail?(this.title="账号详情",this.rulesThis={}):(this.title="修改账号",this.rulesThis=this.rules),await this.resetForm(this.sitem)),this.loading=!1},async initData(){var e=await s.a.detail({id:this.id});e&&0===e.code&&e.data?(this.ruleForm=e.data,this.ruleForm.role_id=this.ruleForm.role):e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async resetForm(e){await this.$nextTick(()=>{var t,a,s,i,l,o,r;this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),({username:t,nickname:a,mobile:s,email:i,roleid:l,status:o,item:r}=e),this.ruleForm={username:t||"",name:a||"",mobile:s||"",email:i||"",role_id:l||"",status:o||"",item:r||[]},"add"!==this.id&&!this.isDetail||(this.rules.username[0].required=!1))})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.loading=!0;var{username:t,name:a,mobile:i,email:l,role_id:o,status:e}=JSON.parse(JSON.stringify(this.ruleForm));const r={id:this.id,username:t||"",nickname:a||"",mobile:i||"",email:l||"",role:o||"",status:e||""};let n={};n="add"===this.id?(delete r.id,await s.a.add(r)):await s.a.update(r),this.loading=!1,n&&0===n.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):n&&100<=n.code&&n.code<=104?await this.logout():this.$message.warning(n.message)}})}}},a("bc5e"),a=a("2877"),i=Object(a.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},["add"===e.id||e.isDetail?t("el-form-item",{attrs:{label:"登录名",prop:"loginName"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.loginName,callback:function(t){e.$set(e.ruleForm,"loginName",t)},expression:"ruleForm.loginName"}})],1):e._e(),t("el-form-item",{attrs:{label:"姓名",prop:"fullName"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.fullName,callback:function(t){e.$set(e.ruleForm,"fullName",t)},expression:"ruleForm.fullName"}})],1),t("el-form-item",{attrs:{label:"手机号",prop:"tel"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.tel,callback:function(t){e.$set(e.ruleForm,"tel",t)},expression:"ruleForm.tel"}})],1),"add"===e.id?t("el-form-item",{attrs:{label:"密码",prop:"password"}},[t("el-input",{attrs:{type:"password",placeholder:"密码",maxlength:20},model:{value:e.ruleForm.password,callback:function(t){e.$set(e.ruleForm,"password",t)},expression:"ruleForm.password"}})],1):e._e(),"add"===e.id?t("el-form-item",{attrs:{label:"确认密码",prop:"password2"}},[t("el-input",{attrs:{type:"password",placeholder:"再次输入密码",maxlength:20},model:{value:e.ruleForm.password2,callback:function(t){e.$set(e.ruleForm,"password2",t)},expression:"ruleForm.password2"}})],1):e._e()],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"63f5bb8c",null);t.default=i.exports},5144:function(e,t,a){"use strict";a("0ea1")},"54d6":function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("9f53"),l=a("0ee5"),o=(a("345e"),a("4504")),r=a("2f62"),n=a("6572");r={name:"allot",mixins:[s.a,i.a],components:{addEdit:o.default},computed:{...Object(r.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"allot"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{sitem:null,statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],statusList:l.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{total_low:"",total_up:"",allot_sn:"",stayStock_name:"",stayOutStock_name:""},tableData:[],tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1,table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"allot_sn",label:"调拨编号"},{prop:"applicant",label:"申请人"},{prop:"stayStock_name",label:"入库仓库名称"},{prop:"stayOutStock_name",label:"出库仓库名称"},{prop:"express_cost",label:"物流总费用"},{prop:"status",label:"当前状态"},{prop:"apply_time",label:"申请时间"},{prop:"",label:"操作",_noset_:!0,_slot_:"operation"}]}},mounted(){this.searchList()},methods:{addSearch(){this.$router.push({path:"allotFlow",component:n.default})},restSearch(){this.parmValue={name:"",username:"",status:"",page:1,size:10},this.searchList()},openModal(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},async deleteById(e,t){},async searchList(){},async statusConfirm(e,t){}}},a("396b"),a=a("2877"),r=Object(a.a)(r,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allot pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 0 80px"}},[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"292px"},attrs:{span:6}},[a("PeriodDatePicker",{attrs:{start:e.parmValue.total_low,end:e.parmValue.total_up,type:1,width:"135px",title:"预警量",size:e.searchSize},on:{numReturned:function(t){return e.numReturned(t,0)}}})],1),a("el-col",{staticStyle:{width:"120px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"调拨编号"},model:{value:e.parmValue.allot_sn,callback:function(t){e.$set(e.parmValue,"allot_sn",t)},expression:"parmValue.allot_sn"}})],1),a("el-col",{staticStyle:{width:"160px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"入库仓库名称"},model:{value:e.parmValue.stayStock_name,callback:function(t){e.$set(e.parmValue,"stayStock_name",t)},expression:"parmValue.stayStock_name"}})],1),a("el-col",{staticStyle:{width:"160px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"出库仓库名称"},model:{value:e.parmValue.stayOutStock_name,callback:function(t){e.$set(e.parmValue,"stayOutStock_name",t)},expression:"parmValue.stayOutStock_name"}})],1),a("el-col",{staticStyle:{width:"76px","margin-left":"10px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",staticStyle:{width:"100%"},attrs:{type:"primary",size:e.searchSize},on:{click:e.addSearch}},[e._v(" 新建 ")])],1),a("el-col",{staticStyle:{width:"76px","margin-left":"10px"},attrs:{span:4}},[a("el-button",{staticClass:"fr mr10",staticStyle:{width:"100%"},attrs:{type:"primary",icon:"el-icon-search",size:e.searchSize},on:{click:e.searchList}},[e._v(" 搜索 ")])],1),a("el-col",{staticStyle:{width:"76px","margin-left":"10px"},attrs:{span:4}},[a("el-button",{staticClass:"fr mr5",staticStyle:{width:"100%"},attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1)],1)],1)]}},{key:"status",fn:function(t){var s=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==s.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==s.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(s.row.id,!0,s.row)}}})]):e._e()]}}],null,!1,2951396104)}),a("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1),a("add-edit",{attrs:{showModel:e.showModel,id:e.modelId,isDetail:e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"65358117",null);t.default=r.exports},5506:function(e,t,a){"use strict";a("3191")},"56e8":function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("9f53"),l=a("0ee5"),o=a("26d7"),r=a("dc5f"),n=a("2f62");n={name:"my-test",mixins:[s.a,i.a],components:{addEdit:r.default},computed:{...Object(n.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"my-test"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{sitem:null,statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],statusList:l.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{name:"",username:"",status:"",page:1,size:15},tableData:[],tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1,table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"nickname",label:"真实姓名"},{prop:"role_name",label:"角色名称"},{prop:"mobile",label:"联系电话"},{prop:"email",label:"邮箱"},{prop:"status",label:"状态",_slot_:"status",width:"80px"},{prop:"addtime",label:"创建时间",sortable:!0},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted(){this.searchList()},methods:{restSearch(){this.parmValue={name:"",username:"",status:"",page:1,size:10},this.searchList()},openModal(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},async deleteById(e,t){await this.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{var a=await o.a.status({id:e,status:"1"===t?"0":"1"});a&&0===a.code?(this.$notify.success({title:"删除成功",message:""}),this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}).catch(()=>{})},async searchList(){this.loading=!0;var e=await o.a.list(this.parmValue);e&&0===e.code&&e.data?(this.tableData=e.data.list,this.pageInfo.total=Number(e.data.count)):e&&100<=e.code&&e.code<=104?await this.logout():(this.tableData=[],this.pageInfo.total=0),this.loading=!1},async statusConfirm(e,t){await this.$confirm("确定要改为"+("1"===t?"禁用":"启用")+"?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{this.loading=!0;var a=await o.a.status({id:e,status:"1"===t?"0":"1"});a&&0===a.code?(this.loading=!1,this.$notify.success({title:"状态修改成功!",message:""}),await this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}).catch(()=>{})}}},a("d6f6"),a=a("2877"),n=Object(a.a)(n,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-test pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 0 80px"}},[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"120px"},attrs:{span:4}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"账号状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return a("el-option",{key:"status"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"150px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"业务员姓名"},model:{value:e.parmValue.name,callback:function(t){e.$set(e.parmValue,"name",t)},expression:"parmValue.name"}})],1),a("el-col",{staticStyle:{width:"160px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"手机号"},model:{value:e.parmValue.username,callback:function(t){e.$set(e.parmValue,"username",t)},expression:"parmValue.username"}})],1),a("el-col",{staticStyle:{width:"54px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"primary",icon:"el-icon-search"},on:{click:e.searchList}})],1),a("el-col",{staticStyle:{width:"66px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1)],1)],1)]}},{key:"status",fn:function(t){var s=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==s.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==s.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"002"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"重置密码",placement:"top"}},[a("i",{staticClass:"el-icon-refresh-left tb-icon",on:{click:function(t){return e.openPasswordModal(s.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(s.row.id,!0,s.row)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(s.row.id,!1,s.row)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e()]}}],null,!1,343762658)}),a("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1),a("add-edit",{attrs:{showModel:e.showModel,id:e.modelId,isDetail:e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"3fa287f3",null);t.default=n.exports},5895:function(e,t,a){},"59e1":function(e,t,a){"use strict";a.r(t);var s=a("1702"),i=a("9f53");a("61f7"),i={name:"storeAnomaly",props:["showModel","id","isDetail","sitem"],mixins:[i.a],data(){return{loading:!1,title:"添加账号",showModelThis:this.showModel,ruleForm:{result:"",result_desc:""},rulesThis:this.rules,rules:{result:[{required:!0,trigger:"blur",message:"入库异常原因不能为空"}],result_desc:[{required:!0,trigger:"blur",message:"入库异常备注不能为空"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.loading=!0,"add"===this.id?(this.title="添加异常原因",this.rulesThis=this.rules,await this.resetForm()):(this.isDetail?(this.title="异常原因详情",this.rulesThis={}):(this.title="修改异常原因",this.rulesThis=this.rules),await this.resetForm(),await this.initData()),this.loading=!1},async initData(){var e=await s.a.detail({id:this.id});e&&0===e.code&&e.data?this.ruleForm=e.data:e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async resetForm(){await this.$nextTick(()=>{this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),this.ruleForm={result:"",result_desc:""})})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.loading=!0;var{result:t,result_desc:e}=JSON.parse(JSON.stringify(this.ruleForm));const a={result:t||"",result_desc:e||"",id:this.id};let i={};i="add"===this.id?(delete a.id,await s.a.add(a)):await s.a.update(a),this.loading=!1,i&&0===i.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):i&&100<=i.code&&i.code<=104?await this.logout():this.$message.warning(i.message)}})}}},a("72c7"),a=a("2877"),i=Object(a.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"700px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},["add"===e.id||(e.isDetail,1)?t("el-form-item",{attrs:{label:"异常原因",prop:"result"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.result,callback:function(t){e.$set(e.ruleForm,"result",t)},expression:"ruleForm.result"}})],1):e._e(),"add"===e.id||(e.isDetail,1)?t("el-form-item",{attrs:{label:"异常备注",prop:"result_desc"}},[t("el-input",{attrs:{autosize:{minRows:4,maxRows:10},type:"textarea",disabled:e.isDetail},model:{value:e.ruleForm.result_desc,callback:function(t){e.$set(e.ruleForm,"result_desc",t)},expression:"ruleForm.result_desc"}})],1):e._e()],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"eeebc314",null);t.default=i.exports},"5a15":function(e,t,a){},"5b49":function(e,t,a){"use strict";a("d88e")},"5ca8":function(e,t,a){},"5de4":function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("21fa"),l=a("b36d"),o=a("2f62"),r=a("9f53");o={name:"MenuOperator",components:{addEdit:l.default},mixins:[s.a,r.a],computed:{...Object(o.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"menuOperator"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{loading:!0,showModel:!1,showInterface:!1,isDetail:!1,isAdd:!0,level:1,modelId:0,formData:{},parentIds:"",parmValue:{parentId:0,code:"",status:"",type:1,menuCategory:"",current:1,size:10},tableData:[]}},created(){this.searchList()},methods:{addEditFn(e,t,a,s,i,l){this.showModel=!0,this.modelId=e,this.level=a,this.parentIds=t,this.isDetail=s,this.isAdd=i,this.formData=l},async submitRefresh(e,t,a){a<3?await this.searchList():this.getchildList(t)},async remove(e,t,a,s){await this.$confirm(`确定要${"0"===s?"启用":"禁用"}?`,{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{var l={id:e,status:"1"===s?"0":"1"};let o={};o=3===a?await i.a.actionstatus(l):await i.a.menustatus(l),o&&0===o.code?(this.$notify.success({title:"修改成功!",message:""}),3===a?this.getchildList(t):await this.searchList()):o&&100<=o.code&&o.code<=104?await this.logout():this.$message.warning(o.message)}).catch(()=>{})},async deleteMenu(e,t,a,s){await this.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{var s={id:e};let l={};l=3===a?await i.a.actiondel(s):await i.a.menudel(s),l&&0===l.code?(this.$notify.success({title:"删除成功!",message:""}),3===a?this.getchildList(t):await this.searchList()):l&&100<=l.code&&l.code<=104&&await this.logout()}).catch(()=>{})},openChildren(e,t,a,s){s?this.tableData=1===a?this.tableData.map(t=>(t.id===e&&(t.child=[]),t)):this.tableData.map(a=>(a.id===t&&(a.child=a.child.map(t=>(t.id===e&&(t.child=[]),t))),a)):1===a?this.concatData(e,"0",a):this.getchildList(e)},async getchildList(e){this.loading=!0;var t=await i.a.actionList({id:e});let a=[];t&&0===t.code&&t.data?a=t.data:t&&100<=t.code&&t.code<=104?await this.logout():this.$message.warning(t.message);let s=JSON.parse(JSON.stringify(this.tableData));s=s.map((t,s)=>(t&&t.child&&0<t.child.length&&t.child.forEach((t,s)=>(e===t.id&&(t.child=a),t)),t)),this.tableData=s,this.loading=!1},async concatData(e,t,a){this.loading=!0;var s=await i.a.list({});let l=[];s&&0===s.code&&s.data?l=s.data:s&&100<=s.code&&s.code<=104?await this.logout():this.$message.warning(s.message);let o=JSON.parse(JSON.stringify(this.tableData));o=o.map((s,i)=>((1===a?e:t===s.id)&&(s.child=l[i].child),s)),this.tableData=o,this.loading=!1},async searchList(){this.loading=!0;var e=await i.a.list({});this.tableData=[],e&&0===e.code&&e.data?this.tableData=e.data:e&&100<=e.code&&e.code<=104?await this.logout():this.tableData=[],this.loading=!1}}},a=a("2877"),o=Object(a.a)(o,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"box pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",[t("el-row",{attrs:{gutter:10}},[t("el-col",{staticStyle:{padding:"5px"},attrs:{span:24}},[t("el-col",{staticStyle:{width:"195px",float:"right"},attrs:{span:3}},[t("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")]),e.powers.some((function(e){return"003"==e}))?t("el-button",{staticStyle:{float:"right"},attrs:{type:"success",size:e.searchSize},on:{click:function(t){return e.addEditFn(0,"0",1,!1,!0,{})}}},[e._v(" 添加 ")]):e._e()],1)],1)],1),t("el-row",{attrs:{gutter:10}},[t("el-col",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{span:24}},[t("shy-tree",{attrs:{value:e.tableData,level:1},on:{addEdit:e.addEditFn,openChildren:e.openChildren,remove:e.remove,deleteMenu:e.deleteMenu}})],1)],1),t("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,level:e.level,"parent-ids":e.parentIds,"is-add":e.isAdd,"form-data":e.formData,type:e.parmValue.type,"is-detail":e.isDetail},on:{refresh:e.submitRefresh,cancel:function(t){e.showModel=!1}}})],1):t("div",[t("no-auth")],1)])}),[],!1,null,null,null);t.default=o.exports},"5e53":function(e,t,a){"use strict";a.r(t);var s=a("4c1f"),i=a("f5ed"),l=a("2f62"),o=a("9f53");l={name:"updates",mixins:[i.a,o.a],computed:{...Object(l.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"updates"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{type:"VER",page:1,size:15},count:0,tableData:[]}},mounted(){this.searchList()},methods:{restSearch(){this.parmValue={type:"VER",page:1,size:15},this.count=0,this.searchList()},async searchList(){this.loading=!0;var e=await s.a.list(this.parmValue);e&&0===e.code&&e.data?(this.tableData=e.data.list,this.count=Number(e.data.count)):e&&100<=e.code&&e.code<=104?await this.logout():(this.tableData=[],this.count=0),this.loading=!1}}},a=a("2877"),l=Object(a.a)(l,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"updates pagePadding",staticStyle:{"padding-top":"25px"}},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",size:e.size,stripe:""}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{staticClass:"demo-table-expand",attrs:{size:e.size,"label-position":"top",inline:""}},[a("el-form-item",{attrs:{label:"更新内容"}},[a("p",{domProps:{innerHTML:e._s(t.row.system)}})])],1)]}}],null,!1,1054835690)}),a("el-table-column",{attrs:{label:"版本号",prop:"version"}}),a("el-table-column",{attrs:{label:"更新模块",prop:"module"}}),a("el-table-column",{attrs:{label:"更新时间",prop:"addtime"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:0<e.count,expression:"count > 0"}],staticClass:"Pagination",staticStyle:{"text-align":"right","margin-top":"10px"}},[a("el-pagination",{attrs:{size:e.searchSize,"current-page":e.parmValue.page,"page-sizes":[15,50,100],"page-size":e.parmValue.size,layout:"total, sizes, prev, pager, next, jumper",total:e.count},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})],1)],1):a("no-auth")],1)}),[],!1,null,"740210d0",null);t.default=l.exports},"5f10":function(e,t,a){"use strict";a.r(t);var s=a("7caa"),i={name:"specs",props:["showModel","id"],mixins:[a("9f53").a],data(){return{loading:!1,title:"业务参数详情",showModelThis:this.showModel,dataInfo:{}}},methods:{closeModel(){},async initForm(){await this.initData()},async initData(){this.loading=!0;var e,t=await s.a.detail({id:this.id});this.loading=!1,t&&0===t.code?(e=t.data,this.dataInfo=e):t&&100<=t.code&&t.code<=104?await this.logout():this.$message.warning(t.message)}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}}};a("1fb6"),a=a("2877"),i=Object(a.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"700px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}}),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v("关 闭")])],1)],1)],1)],1)}),[],!1,null,"77d131a7",null);t.default=i.exports},"62f7":function(e,t,a){"use strict";a("c571")},6572:function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("9f53"),l=(a("0ee5"),a("d8a8")),o=a("fe48"),r=a("2f62"),n=a("e7e7"),c=a("b6cd"),d=a("355f"),u=a("eb56"),h=a("d7be");r={name:"newApply",mixins:[s.a,i.a],components:{addEdit:o.default,NewApply:n.default,InStock:c.default,GoStock:d.default,InStockCheck:u.default,CheckStock:h.default},computed:{...Object(r.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"allotFlow"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{company:"",type:1,selectStock_in:"",selectStock_go:"",stock_go:"",stock_in:"",options:[],ruleForm:{},rules:{stock_go_rule:[{required:!0,message:"请选择出库仓库",trigger:"blur"}],stock_in_rule:[{required:!0,message:"请选择入库仓库",trigger:"blur"}]},loading:!0,showModel:!1,isDetail:!1,modelId:0,tableData:[],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"nickname",label:"商品编号"},{prop:"role_name",label:"商品名称"},{prop:"mobile",label:"数量"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}],parmValue:{}}},mounted(){this.searchList(),this.stockName()},methods:{handClick(e){this.company=e},restSearch(){this.parmValue={},this.searchList()},openModal(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},async deleteById(e,t){},async searchList(){},async statusConfirm(e,t){},async stockName(){let e=(await l.a.listAll(this.parmValue)).data;e.forEach(e=>{let t={value:e.id,label:e.name,children:[]};e.child.forEach(e=>{e={value:e.id,label:e.name},t.children.push(e)}),this.options.push(t)}),this.options.forEach(e=>{e.value===this.selectStock_go[0]&&e.children.forEach(t=>{t.value===this.selectStock_go[1]&&(this.stock_go=e.label+"/"+t.label)}),e.value===this.selectStock_in[0]&&e.children.forEach(t=>{t.value===this.selectStock_in[1]&&(this.stock_in=e.label+"/"+t.label)})}),""==this.selectStock_in&&""==this.selectStock_go||this.openModal("005",!0),this.compareStock()},compareStock(){}}},a=a("2877"),r=Object(a.a)(r,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"newApply pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",[t("div",{staticClass:"box"}),t("NewApply",{attrs:{myType:e.type}}),1!=e.type?t("InStock",{attrs:{myType:e.type}}):e._e(),1!=e.type&&2!=e.type?t("GoStock",{attrs:{myType:e.type}}):e._e(),1!=e.type&&2!=e.type&&3!=e.type?t("InStockCheck",{attrs:{myType:e.type}}):e._e(),5===e.type?t("CheckStock",{attrs:{myType:e.type}}):e._e(),t("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):t("div",[t("no-auth")],1)])}),[],!1,null,null,null);t.default=r.exports},6695:function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("9f53"),l=a("0ee5"),o=(a("0ef8"),a("dc7a")),r=a("c863"),n=a("3d4c"),c=a("3f17"),d=a("2f62");d={name:"stockCount",mixins:[s.a,i.a],components:{addEdit:c.default,DataWeido:o.default,ProductWeido:r.default,SpaceCount:n.default},computed:{...Object(d.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"stockCount"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{activeName:"productWeido",sitem:null,statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],isShowProduct:!0,isShowStock:!1,isShowSpace:!1,statusList:l.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{name:"",username:"",status:"",page:1,size:15},tableData:[],tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1,table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"nickname",label:"商品编码"},{prop:"role_name",label:"商品名称"},{prop:"mobile",label:"单位"},{prop:"email",label:"当前库存"},{prop:"status",label:"待入库"},{prop:"addtime",label:"待出库"},{prop:"addtime",label:"可用库存"},{prop:"addtime",label:"在途库存"}]}},mounted(){this.searchList()},methods:{handleClick(e,t){e=e.index,"0"===e||("1"===e?(this.isShowSpace=!1,this.isShowProduct=!1,this.isShowStock=!0):"2"===e&&(this.isShowSpace=!0,this.isShowStock=!1,this.isShowProduct=!1))},restSearch(){this.parmValue={name:"",username:"",status:"",page:1,size:10},this.searchList()},openModal(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},async searchList(){},async statusConfirm(e,t){}}},a=a("2877"),d=Object(a.a)(d,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"nowCount pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",[t("div",{staticStyle:{width:"100%"}},[t("el-row",[t("el-col",[t("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"商品维度",name:"productWeido"}}),t("el-tab-pane",{attrs:{label:"数据维度",name:"dataWeido"}}),t("el-tab-pane",{attrs:{label:"区间统计",name:"count"}})],1)],1)],1)],1),"productWeido"===e.activeName?t("ProductWeido"):"dataWeido"===e.activeName?t("DataWeido"):t("SpaceCount"),t("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):t("div",[t("no-auth")],1),t("add-edit",{attrs:{showModel:e.showModel,id:e.modelId,isDetail:e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"c525e5ba",null);t.default=d.exports},6747:function(e,t,a){},"6bd2":function(e,t,a){"use strict";t.a=[{code:"001",name:"列表"},{code:"002",name:"重置密码"},{code:"003",name:"添加"},{code:"004",name:"启/禁用"},{code:"005",name:"修改"},{code:"006",name:"删除"},{code:"007",name:"详情"},{code:"008",name:"提交"},{code:"009",name:"上/下架"},{code:"010",name:"复制"},{code:"011",name:"设为/取消负责人"},{code:"012",name:"发起流程"},{code:"013",name:"模板下载"}]},"6d88":function(e,t,a){"use strict";a.r(t);var s=a("1fd2"),i=a("9f53"),l=a("61f7");i={name:"Account",props:["showModel","id","isDetail","sitem"],mixins:[i.a],data(){return{roleList:[],loading:!1,title:"添加账号",organizeList:[],showModelThis:this.showModel,ruleForm:{username:"",name:"",mobile:"",email:"",role_id:"",status:"1",itemid:[]},rulesThis:this.rules,rules:{name:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("真实姓名不能为空!")):t.length<2||12<t.length||!Object(l.c)(t)||Object(l.d)(t)?a(new Error("真实姓名规则为2~12位汉字!")):a()},trigger:"blur"}],username:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("账号不能为空!")):t.length<6||18<t.length||Object(l.h)(t)||Object(l.i)(t)||!Object(l.b)(t)?a(new Error("账号规则为6~18位数字与字母组合!")):a()},trigger:"blur"}],mobile:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("手机号不能为空!")):Object(l.f)(t)?a():a(new Error("手机号格式不正确!"))},trigger:"blur"}],email:[{required:!1,validator:(e,t,a)=>{""===t||Object(l.j)(t)?a():a(new Error("邮箱格式不正确!"))},trigger:"blur"}],role_id:[{required:!0,message:"请选择角色",trigger:"change"}],itemid:[{type:"array",required:!0,message:"请选择所在部门",trigger:"change"}],status:[{required:!0,message:"请选择状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},itemidChange(e){this.ruleForm.itemid=e,this.$refs.ruleForm.validateField("itemid")},async initForm(){this.loading=!0,await this.getClist(),await this.getRole(),"add"===this.id?(this.title="添加账号",this.rulesThis=this.rules,await this.resetForm()):(this.isDetail?(this.title="账号详情",this.rulesThis={}):(this.title="修改账号",this.rulesThis=this.rules),await this.resetForm(this.sitem)),this.loading=!1},async getClist(){this.organizeList=[];var e=await s.a.getClist({});e&&0===e.code&&e.data&&(this.organizeList=e.data,this.recursion(this.organizeList))},recursion(e){e.map(e=>(e&&Array.isArray(e.child)&&(e.value=e.id+"",e.label=e.name,0===e.child.length?delete e.child:this.recursion(e.child)),e))},async getRole(){var e=await s.a.getRole({status:"",level:"",role_name:""});e&&0===e.code&&e.data&&(this.roleList=e.data,this.roleList.map(e=>(e.id+="",e.status+="",e)))},async initData(){var e=await s.a.detail({id:this.id});e&&0===e.code&&e.data?(this.ruleForm=e.data,this.ruleForm.role_id=this.ruleForm.role):e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async resetForm(e){await this.$nextTick(()=>{var t,a,s,i,l,o,r;this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),({username:t,nickname:a,mobile:s,email:i,roleid:l,status:o,depart_code:r}=e),this.ruleForm={username:t||"",name:a||"",mobile:s||"",email:i||"",role_id:l||"",status:o||"",itemid:r||[]})})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.loading=!0;var{username:t,name:a,mobile:i,email:l,role_id:o,status:r,itemid:e}=JSON.parse(JSON.stringify(this.ruleForm));const n={id:this.id,username:t||"",nickname:a||"",mobile:i||"",email:l||"",role:o||"",status:r||"",itemid:e||[]};let c={};c="add"===this.id?(delete n.id,await s.a.add(n)):await s.a.update(n),this.loading=!1,c&&0===c.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):c&&100<=c.code&&c.code<=104?await this.logout():this.$message.warning(c.message)}})}}},a("a909"),a=a("2877"),i=Object(a.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"10vh",width:"750px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",{staticStyle:{"margin-top":"-20px"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},["add"===e.id||e.isDetail?a("el-form-item",{attrs:{label:"账号",prop:"username"}},[a("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.username,callback:function(t){e.$set(e.ruleForm,"username",t)},expression:"ruleForm.username"}})],1):e._e(),a("el-form-item",{attrs:{label:"真实姓名",prop:"name"}},[a("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),a("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[a("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile",t)},expression:"ruleForm.mobile"}})],1),a("el-form-item",{attrs:{label:"所在部门",prop:"itemid"}},[a("all-organize",{attrs:{value:e.ruleForm.itemid,"is-detail":e.isDetail,disabled:e.isDetail,multiple:!0,checkStrictly:!0,placeholder:"请选择所在部门"},on:{searchChange:e.itemidChange}})],1),a("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[a("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.email,callback:function(t){e.$set(e.ruleForm,"email",t)},expression:"ruleForm.email"}})],1),a("el-form-item",{attrs:{label:"角色",prop:"role_id"}},[a("el-radio-group",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.role_id,callback:function(t){e.$set(e.ruleForm,"role_id",t)},expression:"ruleForm.role_id"}},e._l(e.roleList,(function(t){return a("el-radio",{key:t.id,attrs:{label:t.id,disabled:"1"!==t.status}},[e._v(e._s(t.role_name))])})),1)],1),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-switch",{attrs:{"active-value":"1","inactive-value":"0",disabled:e.isDetail},model:{value:e.ruleForm.status,callback:function(t){e.$set(e.ruleForm,"status",t)},expression:"ruleForm.status"}})],1)],1)],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),a("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"467f99d6",null);t.default=i.exports},"6df3":function(e,t,a){"use strict";var s=a("1b69");const i="admin/";t.a={add:(e,t)=>Object(s.a)(i+"resultcreate",e,"post",t),delete:(e,t)=>Object(s.a)(i+"resultdel",e,"post",t),list:(e,t)=>Object(s.a)(i+"resultlist",e,"post",t),detail:(e,t)=>Object(s.a)(i+"resultselect",e,"post",t),update:(e,t)=>Object(s.a)(i+"resultedit",e,"post",t),status:(e,t)=>Object(s.a)(i+"resultstatu",e,"post",t)}},"6e4a":function(e,t,a){"use strict";a("d93a")},"701e":function(e,t,a){"use strict";a.r(t);var s=a("6df3"),i=a("9f53");a("61f7"),i={name:"goodsBack",props:["showModel","id","isDetail","sitem"],mixins:[i.a],data(){return{loading:!1,title:"添加账号",showModelThis:this.showModel,ruleForm:{result:"",result_desc:""},rulesThis:this.rules,rules:{result:[{required:!0,trigger:"blur",message:"入库异常原因不能为空"}],result_desc:[{required:!0,trigger:"blur",message:"入库异常备注不能为空"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.loading=!0,"add"===this.id?(this.title="添加异常原因",this.rulesThis=this.rules,await this.resetForm()):(this.isDetail?(this.title="异常原因详情",this.rulesThis={}):(this.title="修改异常原因",this.rulesThis=this.rules),await this.resetForm(),await this.initData()),this.loading=!1},async initData(){var e=await s.a.detail({id:this.id});e&&0===e.code&&e.data?this.ruleForm=e.data:e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async resetForm(){await this.$nextTick(()=>{this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),this.ruleForm={result:"",result_desc:""})})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.loading=!0;var{result:t,result_desc:e}=JSON.parse(JSON.stringify(this.ruleForm));const a={result:t||"",result_desc:e||"",id:this.id};let i={};i="add"===this.id?(delete a.id,await s.a.add(a)):await s.a.update(a),this.loading=!1,i&&0===i.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):i&&100<=i.code&&i.code<=104?await this.logout():this.$message.warning(i.message)}})}}},a("257e"),a=a("2877"),i=Object(a.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"700px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},["add"===e.id||(e.isDetail,1)?t("el-form-item",{attrs:{label:"异常原因",prop:"result"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.result,callback:function(t){e.$set(e.ruleForm,"result",t)},expression:"ruleForm.result"}})],1):e._e(),"add"===e.id||(e.isDetail,1)?t("el-form-item",{attrs:{label:"异常备注",prop:"result_desc"}},[t("el-input",{attrs:{autosize:{minRows:4,maxRows:10},type:"textarea",disabled:e.isDetail},model:{value:e.ruleForm.result_desc,callback:function(t){e.$set(e.ruleForm,"result_desc",t)},expression:"ruleForm.result_desc"}})],1):e._e()],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"b0d42c7a",null);t.default=i.exports},"71ff":function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("72c0"),l=a("0880"),o=a("2f62"),r=a("9f53");l={name:"report",computed:{...Object(o.b)(["tablebtnSize","searchSize","size"])},mixins:[r.a,s.a],data(){return{loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{loginName:"",fullName:"",type:2,page:1,size:10},count:0,statusOptions:[{id:0,label:"禁用"},{id:1,label:"启用"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:[]},columns:[{prop:"role",label:"role","min-width":"100"},{prop:"role_name",label:"角色名称","min-width":"120"},{prop:"id",label:"id","min-width":"80"},{prop:"username",label:"账号","min-width":"120"},{prop:"name",label:"业务员姓名","min-width":"120"},{prop:"addtime",label:"添加时间","min-width":"160"}]}},mounted(){this.searchList()},components:{addEdit:l.default},methods:{restSearch(){this.parmValue={loginName:"",fullName:"",type:2,page:1,size:10},this.searchList()},openModal(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},async deleteById(e){await this.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{var t=await i.a.delete({id:e});t&&0===t.code?(this.$notify.success({title:"删除成功",message:""}),this.searchList()):t&&100<=t.code&&t.code<=104?await this.logout():this.$message.warning(t.message)}).catch(()=>{})},async searchList(){this.loading=!0;var e=await i.a.list(this.parmValue);e&&0===e.code&&e.data?(this.tableData=e.data.list,this.count=Number(e.data.count)):e&&100<=e.code&&e.code<=104?await this.logout():(this.tableData=[],this.count=0),this.loading=!1},async statusConfirm(e,t){await this.$confirm("确定要改为"+("1"===t?"禁用":"启用"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{this.loading=!0;var a=await i.a.status({id:e,status:"1"===t?"0":"1"});a&&0===a.code?(this.loading=!1,this.$notify.success({title:"状态修改成功!",message:""}),await this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():(this.loading=!1,this.$message.warning(a.message))}).catch(()=>{})}}},a("a686"),a=a("2877"),l=Object(a.a)(l,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"report pagePadding"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{padding:"0 0 18px 0"},attrs:{span:24}},[a("el-col",{attrs:{span:3}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"账户"},model:{value:e.parmValue.loginName,callback:function(t){e.$set(e.parmValue,"loginName",t)},expression:"parmValue.loginName"}})],1),a("el-col",{attrs:{span:3}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"姓名"},model:{value:e.parmValue.fullName,callback:function(t){e.$set(e.parmValue,"fullName",t)},expression:"parmValue.fullName"}})],1),a("el-col",{staticStyle:{width:"152px"},attrs:{span:3}},[a("el-button",{attrs:{type:"primary",size:e.searchSize,icon:"el-icon-search"},on:{click:e.searchList}}),a("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),a("el-col",{staticStyle:{width:"195px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")]),a("el-button",{staticStyle:{float:"right"},attrs:{type:"success",size:e.searchSize},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 添加 ")])],1)],1)],1),a("ex-table-new",{attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,isRowDrop:!1,isColDrop:!0},scopedSlots:e._u([{key:"status",fn:function(t){var s=t.scope;return[a("el-tag",{attrs:{type:1==s.row.status?"success":0==s.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==s.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(e){return e=e.scope,[a("el-tooltip",{attrs:{effect:"dark",content:0==e.row.status?"启用":1==e.row.status?"禁用":"--",placement:"top"}},[a("i",{staticClass:"tb-icon",class:0==e.row.status?"el-icon-circle-check":1==e.row.status?"el-icon-circle-close":""})]),a("el-tooltip",{attrs:{effect:"dark",content:"编辑",placement:"top"}},[a("i",{staticClass:"tb-icon el-icon-edit"})])]}}])}),a("div",{directives:[{name:"show",rawName:"v-show",value:0<e.count,expression:"count > 0"}],staticClass:"Pagination",staticStyle:{"text-align":"right","margin-top":"10px"}},[a("el-pagination",{attrs:{size:e.searchSize,"current-page":e.parmValue.page,"page-sizes":[10,15,20,30,40],"page-size":e.parmValue.size,layout:"total, sizes, prev, pager, next, jumper",total:e.count},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})],1),a("add-edit",{attrs:{showModel:e.showModel,id:e.modelId,isDetail:e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"d6028fc6",null);t.default=l.exports},7285:function(e,t,a){"use strict";a.r(t);var s=a("1b69");const i="admin/";var l=(e,t)=>Object(s.a)(i+"add",e,"post",t),o=(e,t)=>Object(s.a)(i+"detail",e,"post",t),r=(e,t)=>Object(s.a)(i+"update",e,"post",t),n=a("9f53"),c=a("61f7");n={name:"productWeido",props:["showModel","id","isDetail","sitem"],mixins:[n.a],data(){return{loading:!1,title:"添加账号",showModelThis:this.showModel,ruleForm:{username:"",name:"",mobile:"",email:"",role_id:"",status:"1",item:[]},rulesThis:this.rules,rules:{name:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("真实姓名不能为空!")):t.length<2||12<t.length||!Object(c.c)(t)||Object(c.d)(t)?a(new Error("真实姓名规则为2~12位汉字!")):a()},trigger:"blur"}],username:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("账号不能为空!")):t.length<6||18<t.length||Object(c.h)(t)||Object(c.i)(t)||!Object(c.b)(t)?a(new Error("账号规则为6~18位数字与字母组合!")):a()},trigger:"blur"}],mobile:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("手机号不能为空!")):Object(c.f)(t)?a():a(new Error("手机号格式不正确!"))},trigger:"blur"}],email:[{required:!1,validator:(e,t,a)=>{""===t||Object(c.j)(t)?a():a(new Error("邮箱格式不正确!"))},trigger:"blur"}],role_id:[{required:!0,message:"请选择角色",trigger:"change"}],item:[{type:"array",required:!0,message:"请选择所在部门",trigger:"change"}],status:[{required:!0,message:"请选择状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.loading=!0,"add"===this.id?(this.title="添加账号",this.rulesThis=this.rules,await this.resetForm()):(this.isDetail?(this.title="账号详情",this.rulesThis={}):(this.title="修改账号",this.rulesThis=this.rules),await this.resetForm(this.sitem)),this.loading=!1},async initData(){var e=await o({id:this.id});e&&0===e.code&&e.data?(this.ruleForm=e.data,this.ruleForm.role_id=this.ruleForm.role):e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async resetForm(e){await this.$nextTick(()=>{var t,a,s,i,l,o,r;this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),({username:t,nickname:a,mobile:s,email:i,roleid:l,status:o,item:r}=e),this.ruleForm={username:t||"",name:a||"",mobile:s||"",email:i||"",role_id:l||"",status:o||"",item:r||[]},"add"!==this.id&&!this.isDetail||(this.rules.username[0].required=!1))})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.loading=!0;var{username:t,name:a,mobile:s,email:i,role_id:o,status:e}=JSON.parse(JSON.stringify(this.ruleForm));const n={id:this.id,username:t||"",nickname:a||"",mobile:s||"",email:i||"",role:o||"",status:e||""};let c={};c="add"===this.id?(delete n.id,await l(n)):await r(n),this.loading=!1,c&&0===c.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):c&&100<=c.code&&c.code<=104?await this.logout():this.$message.warning(c.message)}})}}},a("dd7f"),a=a("2877"),n=Object(a.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},["add"===e.id||e.isDetail?t("el-form-item",{attrs:{label:"登录名",prop:"loginName"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.loginName,callback:function(t){e.$set(e.ruleForm,"loginName",t)},expression:"ruleForm.loginName"}})],1):e._e(),t("el-form-item",{attrs:{label:"姓名",prop:"fullName"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.fullName,callback:function(t){e.$set(e.ruleForm,"fullName",t)},expression:"ruleForm.fullName"}})],1),t("el-form-item",{attrs:{label:"手机号",prop:"tel"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.tel,callback:function(t){e.$set(e.ruleForm,"tel",t)},expression:"ruleForm.tel"}})],1),"add"===e.id?t("el-form-item",{attrs:{label:"密码",prop:"password"}},[t("el-input",{attrs:{type:"password",placeholder:"密码",maxlength:20},model:{value:e.ruleForm.password,callback:function(t){e.$set(e.ruleForm,"password",t)},expression:"ruleForm.password"}})],1):e._e(),"add"===e.id?t("el-form-item",{attrs:{label:"确认密码",prop:"password2"}},[t("el-input",{attrs:{type:"password",placeholder:"再次输入密码",maxlength:20},model:{value:e.ruleForm.password2,callback:function(t){e.$set(e.ruleForm,"password2",t)},expression:"ruleForm.password2"}})],1):e._e()],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"2eecd6b0",null);t.default=n.exports},"72c0":function(e,t,a){"use strict";var s=a("1b69");const i="admin/";t.a={add:(e,t)=>Object(s.a)(i+"add",e,"post",t),delete:(e,t)=>Object(s.a)(i+"delete",e,"post",t),list:(e,t)=>Object(s.a)(i+"accountlist",e,"post",t),detail:(e,t)=>Object(s.a)(i+"detail",e,"post",t),update:(e,t)=>Object(s.a)(i+"update",e,"post",t),status:(e,t)=>Object(s.a)(i+"accountstatus",e,"post",t)}},"72c7":function(e,t,a){"use strict";a("92ad")},"73d0":function(e,t,a){},7569:function(e,t,a){},7611:function(e,t,a){"use strict";a.r(t);var s=a("b5d3"),i={name:"Account",props:["showModel","id","isDetail"],mixins:[a("9f53").a],data(){return{roleList:[],loading:!1,title:"添加离职交接",showModelThis:this.showModel,hand_uid:"",resign_uid:"",ruleForm:{resign_name:"",leaves_part:[],hand_name:"",Handover_part:[]},rulesThis:this.rules,rules:{leaves_part:[{type:"array",required:!0,message:"请选择离职人部门",trigger:"change"}],resign_name:[{required:!0,message:"请选择离职人",trigger:"blur"}],Handover_part:[{type:"array",message:"请选择接受人部门",required:!0,trigger:"change"}],hand_name:[{required:!0,message:"请选择接受人",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.loading=!0,"add"===this.id?(this.title="添加离职交接",this.rulesThis=this.rules,await this.resetForm()):(this.isDetail?(this.title="离职交接详情",this.rulesThis={}):(this.title="修改离职交接",this.rulesThis=this.rules),await this.resetForm(),await this.initData()),this.loading=!1},async initData(){var e,t,a,i,l,o,r=await s.a.detail({id:this.id});r&&0===r.code&&r.data?(({resign_name:e,leaves_part:t,hand_name:a,Handover_part:i,hand_uid:l,resign_uid:o}=r.data),this.ruleForm={resign_name:e,leaves_part:t||[],hand_name:a,Handover_part:i||[]},this.hand_uid=l,this.resign_uid=o):r&&100<=r.code&&r.code<=104?await this.logout():this.$message.warning(r.message)},async resetForm(){await this.$nextTick(()=>{this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),this.ruleForm={resign_name:"",leaves_part:[],hand_name:"",Handover_part:[]})})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.loading=!0;var{}=JSON.parse(JSON.stringify(this.ruleForm));const t={id:this.id,resign_uid:this.ruleForm.resign_name,hand_uid:this.ruleForm.hand_name,leaves_part:this.ruleForm.leaves_part,Handover_part:this.ruleForm.Handover_part};let a={};a="add"===this.id?(delete t.id,await s.a.add(t)):await s.a.update(t),this.loading=!1,a&&0===a.code?(e="add"===this.id?"添加成功!":"修改成功!",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}})},handleleaves(e){this.ruleForm.leaves_part=e},handleHandover(e){this.ruleForm.Handover_part=e},handleResignName(e){this.ruleForm.resign_name=e.code},handleHandoverName(e){this.ruleForm.hand_name=e.code}}};a("1969"),a=a("2877"),i=Object(a.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"22vh",width:"700px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",{staticStyle:{"margin-top":"-20px"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"100px"}},[t("el-form-item",{attrs:{label:"离职人",prop:"resign_name"}},[t("search-account",{attrs:{value:e.ruleForm.resign_name,size:e.searchSize,disabled:e.isDetail,placeholder:"请输入用户名账号"},on:{searchChange:e.handleResignName}})],1),t("el-form-item",{attrs:{label:"接受人",prop:"hand_name"}},[t("search-account",{attrs:{value:e.ruleForm.hand_name,size:e.searchSize,disabled:e.isDetail,placeholder:"请输入用户名账号"},on:{searchChange:e.handleHandoverName}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"19dbb726",null);t.default=i.exports},7693:function(e,t,a){},7914:function(e,t,a){"use strict";a.r(t);var s=a("1b69");const i="admin/";var l=(e,t)=>Object(s.a)(i+"roleinfo",e,"post",t),o=(e,t)=>Object(s.a)(i+"rolesave",e,"post",t),r=(e,t)=>Object(s.a)(i+"roleall",e,"post",t),n=(e,t)=>Object(s.a)(i+"menuactionlist",e,"post",t),c={name:"Action",mixins:[a("9f53").a],data(){return{ruleForm:{},isBtnDisabled:!0,roleActive:{},actionChange:[],roleList:[],rules:[],actionList:[],action_data:[],action:[],private_data:[]}},computed:{powers(){var e=this.$store.getters.btnList.find(e=>"action"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]},indeterminateCheck(){return e=>{var t=e.action.filter(t=>-1<e.checkList.findIndex(e=>e===t.id)).length,a=e.action.filter(t=>-1==e.checkList.findIndex(e=>e===t.id)).length;return 0<t&&0<a}},indeterminateField(){return e=>{var t=e.action_data.filter(t=>-1<e.fieldList.findIndex(e=>e===t.id)).length,a=e.action_data.filter(t=>-1==e.fieldList.findIndex(e=>e===t.id)).length;return 0<t&&0<a}}},mounted(){this.initactionList()},methods:{handleCheckAllChange(e,t,a,s){this.actionList[t].child[s].checkAll=e,this.$set(this.actionList,t,a),this.actionList[t].child[s].action.forEach(a=>{var i=this.actionList[t].child[s].checkList.findIndex(e=>e===a.id);e&&-1==i?this.actionList[t].child[s].checkList.push(a.id):!e&&-1<i&&this.actionList[t].child[s].checkList.splice(i,1)})},handleFieldAllChange(e,t,a,s){this.actionList[t].child[s].fieldAll=e,this.$set(this.actionList,t,a),this.actionList[t].child[s].action_data.forEach(a=>{var i=this.actionList[t].child[s].fieldList.findIndex(e=>e===a.id);e&&-1==i?this.actionList[t].child[s].fieldList.push(a.id):!e&&-1<i&&this.actionList[t].child[s].fieldList.splice(i,1)})},handleCheckedGroupChange(e,t,a,s){this.actionList[t].child[s].checkAll=this.actionList[t].child[s].action.every(e=>-1<this.actionList[t].child[s].checkList.findIndex(t=>t===e.id)),this.$set(this.actionList,t,a)},handleFieldGroupChange(e,t,a,s){this.actionList[t].child[s].fieldAll=this.actionList[t].child[s].action_data.every(e=>-1<this.actionList[t].child[s].fieldList.findIndex(t=>t===e.id)),this.$set(this.actionList,t,a)},handleCheckedChange(e,t,a,s,i){e?-1==this.actionList[a].child[s].checkList.indexOf(t)&&this.actionList[a].child[s].checkList.push(t):(-1<(e=this.actionList[a].child[s].checkList.findIndex(e=>e==t))&&this.actionList[a].child[s].checkList.splice(e,1),this.actionList[a].child[s].checkAll=!1),this.$set(this.actionList,a,i)},handleFieldChange(e,t,a,s,i){e?-1==this.actionList[a].child[s].fieldList.indexOf(t)&&this.actionList[a].child[s].fieldList.push(t):(-1<(e=this.actionList[a].child[s].fieldList.findIndex(e=>e==t))&&this.actionList[a].child[s].fieldList.splice(e,1),this.actionList[a].child[s].fieldAll=!1),this.$set(this.actionList,a,i)},switchRoleHandle(e){this.roleActive=Object.assign({},e),this.$nextTick(async()=>{await this.refreshRoleDetail(e.id)})},async save(){this.action_data=[],this.action=[];let e=[];if(this.actionList.forEach(t=>{t.child.forEach(t=>{this.action_data.push(...t.fieldList),this.action.push(...t.checkList),"1"===t.is_private_change&&e.push(t.id)})}),0===this.action.length)this.$message.warning("请选择功能!");else{var t={roleid:this.roleActive.id,role_name:this.ruleForm.role_name,level:this.ruleForm.level,action:this.action,action_data:this.action_data,private_data:e};const a=this.$loading();t=await o(t),t&&0===t.code&&t.data?this.$notify.success({title:"保存成功!",message:""}):t&&100<=t.code&&t.code<=104?await this.logout():this.$message.warning(t.message),a.close()}},async refreshRoleDetail(e){if(this.isBtnDisabled=!0,e=await l({roleid:e}),e&&0===e.code&&e.data){let t=e.data;this.ruleForm=t,t.action&&0<t.action.length?this.action=t.action:this.action=[],t.action_data&&0<t.action_data.length?this.action_data=t.action_data:this.action_data=[],""===t.private_data&&(t.private_data=[]),t.private_data&&0<t.private_data.length?this.private_data=t.private_data:this.private_data=[],this.refreshRoleCheckAllStatus()}else e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message);this.isBtnDisabled=!1},async initactionList(){var e=await n({});e&&0===e.code&&e.data?(this.rules=e.data,await this.initRoleList()):e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async initRoleList(){var e=await r({});e&&0===e.code&&e.data&&(this.roleList=[].concat(e.data),0<this.roleList.length?await this.switchRoleHandle(this.roleList[0]):e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message))},refreshRoleCheckAllStatus(){const e=JSON.parse(JSON.stringify(this.rules));let t=e.filter(e=>e.child&&0<e.child.length);t=t.map(e=>(e.child.map(e=>(e.checkAll=!1,e.checkList=[],e.fieldAll=!1,e.fieldList=[],(e.is_private_change="0")===e.is_private?e.private=[]:e.private=[{id:"0",label:"公有数据"},{id:"1",label:"私有数据"}],e)),e)),this.actionList=t,this.actionList.forEach((e,t)=>{e.child&&0<e.child.length&&e.child.forEach((e,t)=>{var a;e.id,e.action&&0<e.action.length&&e.action.forEach(t=>{var a=this.action.findIndex(e=>e===t.id);-1!==a&&e.checkList.push(this.action[a]),e.action.length===e.checkList.length&&(e.checkAll=!0)}),e.action_data&&0<e.action_data.length&&(e.action_data.map(t=>{var a=this.action_data.findIndex(e=>e===t.id);-1!==a&&e.fieldList.push(this.action_data[a])}),e.action_data.length===e.fieldList.length&&(e.fieldAll=!0)),e.private&&2===e.private.length?(a=this.private_data.findIndex(t=>t===e.id),e.is_private_change=-1!==a?"1":"0"):e.is_private_change="0"}),this.$set(this.actionList,t,e)})}}};a("5b49"),a=a("2877"),c=Object(a.a)(c,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"action pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",{staticClass:"action_show"},[a("div",{staticClass:"action_show_box"},[a("ul",{staticClass:"role-list"},[a("p",{staticClass:"role-list__title"},[e._v("角色列表")]),0==e.roleList.length?a("p",{staticStyle:{"line-height":"60px","text-align":"center",color:"#909399"}},[e._v(" 暂无数据 ")]):e._e(),e._l(e.roleList,(function(t,s){return a("li",{key:"role"+s,staticClass:"role-list__item",class:{active:t.id==e.roleActive.id},on:{click:function(a){e.isBtnDisabled||e.switchRoleHandle(t)}}},[e._v(" "+e._s(t.role_name)+" "),e.isBtnDisabled&&t.id==e.roleActive.id?a("i",{staticClass:"el-icon-loading"}):e._e()])}))],2),a("div",{staticClass:"rule-view"},[a("div",{staticClass:"rule-list"},e._l(e.actionList,(function(t,s){return a("el-row",{key:"menu"+t.id+s},[t.child&&0<t.child.length?a("el-col",{staticClass:"ffff",attrs:{span:24}},[a("div",{staticClass:"ftitle"},[a("span",[e._v(e._s(t.menu_name))])]),a("div",{staticClass:"fbody"},e._l(t.child,(function(i,l){return a("div",{key:"yemian"+i.id+l,staticClass:"fbody-item"},[i.action&&0===i.action.length&&i.action_data&&0===i.action_data.length?e._e():[a("div",{staticClass:"stitle"},[a("span",{staticClass:"_h2"},[e._v(e._s(i.menu_name))]),i&&i.private&&2===i.private.length?a("el-radio-group",{staticStyle:{margin:"0 0 0 20px"},attrs:{size:"mini"},model:{value:i.is_private_change,callback:function(t){e.$set(i,"is_private_change",t)},expression:"subItem.is_private_change"}},e._l(i.private,(function(t,s){return a("el-radio-button",{key:t.label+s,attrs:{label:t.id}},[e._v(e._s(t.label))])})),1):e._e()],1),i.action&&0<i.action.length?a("div",{staticClass:"scheck"},[a("div",{staticClass:"checkAll"},[a("el-checkbox",{attrs:{disabled:!e.powers.some((function(e){return"008"==e})),indeterminate:e.indeterminateCheck(i)},on:{change:function(a){return e.handleCheckAllChange(a,s,t,l)}},model:{value:i.checkAll,callback:function(t){e.$set(i,"checkAll",t)},expression:"subItem.checkAll"}},[e._v("功能全选")])],1),a("div",{staticClass:"checkItem"},[a("el-checkbox-group",{attrs:{disabled:!e.powers.some((function(e){return"008"==e}))},on:{change:function(a){return e.handleCheckedGroupChange(a,s,t,l)}},model:{value:i.checkList,callback:function(t){e.$set(i,"checkList",t)},expression:"subItem.checkList"}},[e._l(i.action,(function(i){return[a("el-checkbox",{key:"checkItem"+i.id,attrs:{disabled:!e.powers.some((function(e){return"008"==e})),label:i.id},on:{change:function(a){return e.handleCheckedChange(a,i.id,s,l,t)}}},[e._v(e._s(i.action_name))])]}))],2)],1)]):e._e(),i.action_data&&0<i.action_data.length?a("div",{staticClass:"sfield"},[a("div",{staticClass:"checkAll"},[a("el-checkbox",{attrs:{disabled:!e.powers.some((function(e){return"008"==e})),indeterminate:e.indeterminateField(i)},on:{change:function(a){return e.handleFieldAllChange(a,s,t,l)}},model:{value:i.fieldAll,callback:function(t){e.$set(i,"fieldAll",t)},expression:"subItem.fieldAll"}},[e._v("字段全选")])],1),a("div",{staticClass:"checkItem"},[a("el-checkbox-group",{attrs:{disabled:!e.powers.some((function(e){return"008"==e}))},on:{change:function(a){return e.handleFieldGroupChange(a,s,t,l)}},model:{value:i.fieldList,callback:function(t){e.$set(i,"fieldList",t)},expression:"subItem.fieldList"}},[e._l(i.action_data,(function(i){return[a("el-checkbox",{key:"FieldItem"+i.id,attrs:{label:i.id,disabled:!e.powers.some((function(e){return"008"==e}))},on:{change:function(a){return e.handleFieldChange(a,i.id,s,l,t)}}},[e._v(e._s(i.field_name))])]}))],2)],1)]):e._e()]],2)})),0)]):e._e()],1)})),1)])]),a("div",{staticClass:"rule-bottom"},[e.powers.some((function(e){return"008"==e}))?a("el-button",{attrs:{size:"small",type:"primary",disabled:e.isBtnDisabled},on:{click:function(t){return e.save()}}},[e._v("提 交")]):e._e()],1)]):a("div",[a("no-auth")],1)])}),[],!1,null,"640d4838",null);t.default=c.exports},"7caa":function(e,t,a){"use strict";var s=a("1b69");const i="admin/";t.a={detail:(e,t)=>Object(s.a)(i+"system",e,"post",t),list:(e,t)=>Object(s.a)(i+"system",e,"post",t),update:(e,t)=>Object(s.a)(i+"setconf",e,"post",t)}},"7e10":function(e,t,a){"use strict";a.r(t);var s=[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"dingLoading"},[e("img",{attrs:{src:a("f8b2"),alt:""}})])}],i={name:"loadingPage",data(){return{}},created(){}},l=(a("42d5"),a("2877"));s=Object(l.a)(i,(function(){this.$createElement;return this._self._c,this._m(0)}),s,!1,null,"3427ed7c",null);t.default=s.exports},"850c":function(e,t,a){"use strict";a("b84f")},8582:function(e,t,a){"use strict";a.r(t);var s=a("1b69");const i="admin/";var l=(e,t)=>Object(s.a)(i+"add",e,"post",t),o=(e,t)=>Object(s.a)(i+"detail",e,"post",t),r=(e,t)=>Object(s.a)(i+"update",e,"post",t),n=a("9f53"),c=a("61f7");n={name:"dataWeido",props:["showModel","id","isDetail","sitem"],mixins:[n.a],data(){return{loading:!1,title:"添加账号",showModelThis:this.showModel,ruleForm:{username:"",name:"",mobile:"",email:"",role_id:"",status:"1",item:[]},rulesThis:this.rules,rules:{name:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("真实姓名不能为空!")):t.length<2||12<t.length||!Object(c.c)(t)||Object(c.d)(t)?a(new Error("真实姓名规则为2~12位汉字!")):a()},trigger:"blur"}],username:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("账号不能为空!")):t.length<6||18<t.length||Object(c.h)(t)||Object(c.i)(t)||!Object(c.b)(t)?a(new Error("账号规则为6~18位数字与字母组合!")):a()},trigger:"blur"}],mobile:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("手机号不能为空!")):Object(c.f)(t)?a():a(new Error("手机号格式不正确!"))},trigger:"blur"}],email:[{required:!1,validator:(e,t,a)=>{""===t||Object(c.j)(t)?a():a(new Error("邮箱格式不正确!"))},trigger:"blur"}],role_id:[{required:!0,message:"请选择角色",trigger:"change"}],item:[{type:"array",required:!0,message:"请选择所在部门",trigger:"change"}],status:[{required:!0,message:"请选择状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.loading=!0,"add"===this.id?(this.title="添加账号",this.rulesThis=this.rules,await this.resetForm()):(this.isDetail?(this.title="账号详情",this.rulesThis={}):(this.title="修改账号",this.rulesThis=this.rules),await this.resetForm(this.sitem)),this.loading=!1},async initData(){var e=await o({id:this.id});e&&0===e.code&&e.data?(this.ruleForm=e.data,this.ruleForm.role_id=this.ruleForm.role):e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async resetForm(e){await this.$nextTick(()=>{var t,a,s,i,l,o,r;this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),({username:t,nickname:a,mobile:s,email:i,roleid:l,status:o,item:r}=e),this.ruleForm={username:t||"",name:a||"",mobile:s||"",email:i||"",role_id:l||"",status:o||"",item:r||[]},"add"!==this.id&&!this.isDetail||(this.rules.username[0].required=!1))})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.loading=!0;var{username:t,name:a,mobile:s,email:i,role_id:o,status:e}=JSON.parse(JSON.stringify(this.ruleForm));const n={id:this.id,username:t||"",nickname:a||"",mobile:s||"",email:i||"",role:o||"",status:e||""};let c={};c="add"===this.id?(delete n.id,await l(n)):await r(n),this.loading=!1,c&&0===c.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):c&&100<=c.code&&c.code<=104?await this.logout():this.$message.warning(c.message)}})}}},a("b5fe"),a=a("2877"),n=Object(a.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},["add"===e.id||e.isDetail?t("el-form-item",{attrs:{label:"登录名",prop:"loginName"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.loginName,callback:function(t){e.$set(e.ruleForm,"loginName",t)},expression:"ruleForm.loginName"}})],1):e._e(),t("el-form-item",{attrs:{label:"姓名",prop:"fullName"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.fullName,callback:function(t){e.$set(e.ruleForm,"fullName",t)},expression:"ruleForm.fullName"}})],1),t("el-form-item",{attrs:{label:"手机号",prop:"tel"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.tel,callback:function(t){e.$set(e.ruleForm,"tel",t)},expression:"ruleForm.tel"}})],1),"add"===e.id?t("el-form-item",{attrs:{label:"密码",prop:"password"}},[t("el-input",{attrs:{type:"password",placeholder:"密码",maxlength:20},model:{value:e.ruleForm.password,callback:function(t){e.$set(e.ruleForm,"password",t)},expression:"ruleForm.password"}})],1):e._e(),"add"===e.id?t("el-form-item",{attrs:{label:"确认密码",prop:"password2"}},[t("el-input",{attrs:{type:"password",placeholder:"再次输入密码",maxlength:20},model:{value:e.ruleForm.password2,callback:function(t){e.$set(e.ruleForm,"password2",t)},expression:"ruleForm.password2"}})],1):e._e()],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"3f7efbf6",null);t.default=n.exports},"85db":function(e,t,a){"use strict";a("3d88")},"88ec":function(e,t,a){"use strict";var s=a("1b69");const i="admin/";t.a={add:(e,t)=>Object(s.a)(i+"roleadd",e,"post",t),list:(e,t)=>Object(s.a)(i+"rolelist",e,"post",t),detail:(e,t)=>Object(s.a)(i+"roleinfo",e,"post",t),update:(e,t)=>Object(s.a)(i+"rolesave",e,"post",t),status:(e,t)=>Object(s.a)(i+"rolestatus",e,"post",t),actionList:(e,t)=>Object(s.a)(i+"menuactionlist",e,"post",t)}},8924:function(e,t,a){"use strict";a("a522")},"8abd":function(e,t,a){"use strict";a("9d2a")},"8bd2":function(e,t,a){},"8c52":function(e,t,a){},"8dc1":function(e,t,a){},"8ea3":function(e,t,a){"use strict";a("27ac")},"90a6":function(e,t,a){"use strict";a("5895")},9210:function(e,t,a){},"92ad":function(e,t,a){},9364:function(e,t,a){"use strict";a("c60c")},"93ae":function(e,t,a){},9406:function(e,t,a){"use strict";a.r(t);var s=a("2f62"),i={name:"dashboard",data(){return{emptyGif:a("ff1f")}},computed:{...Object(s.b)(["avatar"])},created(){}};a("05e1"),s=a("2877"),i=Object(s.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"dashboard-container"},[t("div",{staticClass:"dashboard-editor-container"},[t("div",{staticClass:"info-container clearfix"},[t("pan-thumb",{attrs:{image:e.avatar,width:"130px",height:"130px"}}),t("span",{staticClass:"welcome-title"},[e._v("欢迎登录采销平台订单系统")])],1),t("img",{staticStyle:{width:"60%",margin:"-30px auto 0 auto"},attrs:{src:e.emptyGif}})])])}),[],!1,null,"abf8e364",null);t.default=i.exports},9411:function(e,t,a){"use strict";a("11f6")},9486:function(e,t,a){"use strict";var s=a("1b69");const i="admin/";t.a={add:(e,t)=>Object(s.a)(i+"shareadd",e,"post",t),delete:(e,t)=>Object(s.a)(i+"sharedel",e,"post",t),list:(e,t)=>Object(s.a)(i+"sharelist",e,"post",t),detail:(e,t)=>Object(s.a)(i+"shareinfo",e,"post",t),update:(e,t)=>Object(s.a)(i+"sharesave",e,"post",t),status:(e,t)=>Object(s.a)(i+"sharestatus",e,"post",t),accountall:(e,t)=>Object(s.a)(i+"getuserall",e,"post",t),groupall:(e,t)=>Object(s.a)(i+"GroupAll",e,"post",t),actionList:(e,t)=>Object(s.a)(i+"menuactionlist",e,"post",t)}},9688:function(e,t,a){"use strict";a("a319")},"96d7":function(e,t,a){"use strict";a("a25e")},"9b20":function(e,t,a){"use strict";a("f52e")},"9cd7":function(e,t,a){"use strict";a.r(t);var s=a("2623"),i=a("6bd2"),l={mixins:[a("9f53").a],props:["showModel","id","isDetail","pid","level","isAdd","type","formData"],data(){return{loading:!1,showIconModel:!1,title:"",btnList:i.a,showModelThis:this.showModel,ruleForm:{},rulesThis:this.rules,rules:{name:[{required:!0,message:"请输入组织名称",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.isAdd?(this.title="添加组织",this.loading=!1,this.rulesThis=this.rules):this.isDetail?(this.title="组织详情",this.rulesThis={}):(this.title="修改组织",this.rulesThis=this.rules),await this.resetForm()},async resetForm(){this.ruleForm={id:this.id,pid:this.pid,name:this.formData&&this.formData.name?this.formData.name:""},await this.$nextTick(()=>{this.$refs.ruleForm&&this.$refs.ruleForm.clearValidate()})},async submitForm(){if(this.loading)return!1;this.loading=!0,await this.$refs.ruleForm.validate(async e=>{if(!e)return this.loading=!1;{let t={},a={};var{name:e}=this.ruleForm;if(t={id:this.id,pid:this.pid,name:e},1===this.level||(2===this.level?(delete t.menuid,delete t.action_code,delete t.status):(delete t.pid,delete t.img,delete t.is_show,delete t.weight,delete t.route,delete t.is_display,delete t.url)),this.isAdd&&delete t.id,a=this.isAdd?await s.a.add(t):await s.a.update(t),this.loading=!1,a&&0===a.code){this.ruleForm={},e=this.isAdd?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1;let t=this.pid;0===this.id&&(t="0"),this.$emit("refresh",this.id,t,this.level)}else a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}})}}};a("02c3"),a=a("2877"),l=Object(a.a)(l,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"25vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",{staticStyle:{"margin-top":"-20px"}},[t("el-row",[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"is_show-icon":"",rules:e.rulesThis,"label-width":"100px"}},[t("el-form-item",{attrs:{label:"组织名称:",prop:"name"}},[t("el-input",{attrs:{disabled:e.isDetail,placeholder:"请输入组织名称"},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" 保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"ec6afd62",null);t.default=l.exports},"9d2a":function(e,t,a){},"9d45":function(e,t,a){"use strict";a.r(t);var s=a("1b69");const i="admin/";var l=(e,t)=>Object(s.a)(i+"add",e,"post",t),o=(e,t)=>Object(s.a)(i+"detail",e,"post",t),r=(e,t)=>Object(s.a)(i+"update",e,"post",t),n=a("9f53"),c=a("61f7");n={name:"stockWarning",props:["showModel","row","isDetail","sitem"],mixins:[n.a],data(){return{goods:"",loading:!1,title:"添加账号",showModelThis:this.showModel,ruleForm:{username:"",name:"",mobile:"",email:"",role_id:"",status:"1",item:[],stock:"",product_name:"",product_attr:"",warning_number:this.row,isDisabled:!0,options:[]},rulesThis:this.rules,rules:{name:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("真实姓名不能为空!")):t.length<2||12<t.length||!Object(c.c)(t)||Object(c.d)(t)?a(new Error("真实姓名规则为2~12位汉字!")):a()},trigger:"blur"}],username:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("账号不能为空!")):t.length<6||18<t.length||Object(c.h)(t)||Object(c.i)(t)||!Object(c.b)(t)?a(new Error("账号规则为6~18位数字与字母组合!")):a()},trigger:"blur"}],mobile:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("手机号不能为空!")):Object(c.f)(t)?a():a(new Error("手机号格式不正确!"))},trigger:"blur"}],email:[{required:!1,validator:(e,t,a)=>{""===t||Object(c.j)(t)?a():a(new Error("邮箱格式不正确!"))},trigger:"blur"}],role_id:[{required:!0,message:"请选择角色",trigger:"change"}],item:[{type:"array",required:!0,message:"请选择所在部门",trigger:"change"}],status:[{required:!0,message:"请选择状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.loading=!0,this.title="库存预警修改",this.rulesThis=this.rules,this.loading=!1},async initData(){var e=await o({id:this.id});e&&0===e.code&&e.data?(this.ruleForm=e.data,this.ruleForm.role_id=this.ruleForm.role):e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async resetForm(e){await this.$nextTick(()=>{this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),this.ruleForm={item:item||[]},"add"===this.id||this.isDetail)})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.loading=!0;const t={id:this.id};let a={};a="add"===this.id?(delete t.id,await l(t)):await r(t),this.loading=!1,a&&0===a.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}})}}},a("f653"),a=a("2877"),n=Object(a.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},[t("el-form-item",{attrs:{label:"仓库",prop:"row"}},[t("el-cascader",{staticStyle:{width:"70%"},attrs:{options:e.options,disabled:!0,placeholder:"请输入仓库名称",clearable:"",filterable:""},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1),t("el-form-item",{attrs:{label:"商品名称",prop:"row"}},[t("el-cascader",{staticStyle:{width:"70%"},attrs:{options:e.options,disabled:"true",placeholder:e.row.goods,clearable:"",filterable:""},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1),t("el-form-item",{attrs:{label:"商品属性",prop:"row"}},[t("el-cascader",{staticStyle:{width:"70%"},attrs:{options:e.options,disabled:"true",placeholder:e.row.attribute,clearable:"",filterable:""},model:{value:e.row.attribute,callback:function(t){e.$set(e.row,"attribute",t)},expression:"row.attribute"}})],1),t("el-form-item",{attrs:{label:"预警数量",prop:"row"}},[t("el-input",{staticStyle:{width:"70%"},model:{value:e.row.warnNumber,callback:function(t){e.$set(e.row,"warnNumber",t)},expression:"row.warnNumber"}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"18264e5f",null);t.default=n.exports},"9dd5":function(e,t,a){"use strict";a.r(t);var s=a("1b69"),i=(e,t)=>Object(s.a)("admin/cwlist",e,"post",t),l=a("f5ed"),o=a("2f62"),r=a("9f53"),n=a("5daa");o={name:"commission",mixins:[l.a,r.a],computed:{...Object(o.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"commission"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{name:"",contector:"",loading:!1,showModel:!1,isDetail:!1,modelId:0,parmValue:{qrd_start:"",qrd_end:"",hk_start:"",hk_end:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"supperinfo",label:"公司名称",fixed:"left","min-width":"150"},{prop:"sale_name",label:"销售人员",width:"70"},{prop:"depart",label:"部门",width:"65"},{prop:"qrd_type",label:"订单类型",width:"85"},{prop:"qrdNo",label:"广源订单号码",width:"138"},{prop:"cgdNo",label:"采购单编号",width:"138"},{prop:"khzzxz",label:"客户属性","min-width":"90"},{prop:"khcomp",label:"所属分公司","min-width":"90"},{prop:"companyName",label:"客户名称","min-width":"150"},{prop:"product_name",label:"产品名称","min-width":"140"},{prop:"cat_f",label:"一级分类","min-width":"90"},{prop:"sale_price",label:"销售单价","min-width":"90"},{prop:"order_num",label:"销售数量","min-width":"90"},{prop:"sale_total",label:"销售总额","min-width":"90"},{prop:"ordertime",label:"确认单下单时间",width:"145"},{prop:"addtime",label:"回款日期",width:"145"},{prop:"fund_fee",label:"回款金额","min-width":"140"},{prop:"pay_day",label:"账期","min-width":"90"}]}},mounted(){this.searchList()},methods:{async timeReturned1(e){""!==e.startTime?this.parmValue.qrd_start=e.startTime:this.parmValue.qrd_start="",""!==e.endTime?this.parmValue.qrd_end=e.endTime:this.parmValue.qrd_end=""},async timeReturned2(e){""!==e.startTime?this.parmValue.hk_start=e.startTime:this.parmValue.hk_start="",""!==e.endTime?this.parmValue.hk_end=e.endTime:this.parmValue.hk_end=""},restSearch(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={qrd_start:"",qrd_end:"",hk_start:"",hk_end:"",page:1,size:15},this.searchList()},async timeVerification(){return new Promise(async(e,t)=>{""===this.parmValue.qrd_start&&""===this.parmValue.qrd_end&&""===this.parmValue.hk_start&&""===this.parmValue.hk_end?e({ok:!1,msg:"请选择时间区间!"}):""===this.parmValue.qrd_start&&""!==this.parmValue.qrd_end||""!==this.parmValue.qrd_start&&""===this.parmValue.qrd_end||""===this.parmValue.hk_start&&""!==this.parmValue.hk_end||""!==this.parmValue.hk_start&&""===this.parmValue.hk_end?e({ok:!1,msg:"确认单下单时间区间不完整!"}):e({ok:!0,msg:"ok"})})},async searchList(){this.loading||this.timeVerification().then(async e=>{var t;e.ok?(this.loading=!0,(t=await i(this.parmValue))&&0===t.code&&t.data?(this.tableData=t.data.list,this.pageInfo.total=Number(t.data.count)):t&&100<=t.code&&t.code<=104?await this.logout():(this.tableData=[],this.pageInfo.total=0),this.loading=!1):this.$message.warning(e.msg)}).catch(e=>{this.loading=!1})},async Export(){this.loading||this.timeVerification().then(async e=>{if(e.ok){this.loading=!0;let e="aplication/zip",t=""!==this.parmValue.qrd_start?`确认单下单时间${this.parmValue.qrd_start}至${this.parmValue.qrd_end}`:"",a=""!==this.parmValue.hk_start?`回款时间${this.parmValue.hk_start}至${this.parmValue.hk_end}`:"";axios({method:"post",url:n.a.baseURL+"admin/downreportcw",responseType:"blob",data:this.parmValue,headers:{Accept:e}}).then(s=>{if(s&&200==s.status&&s.data){var i=new Blob([s.data],{type:e});i=window.URL.createObjectURL(i);let l=document.createElement("a");l.style.display="none",l.href=i,l.setAttribute("download",`提成数据报表${""!==this.parmValue.qrd_start&&""!==this.parmValue.hk_start?t+"&&"+a:""!==this.parmValue.qrd_start?t:a}.zip`),document.body.appendChild(l),l.click(),document.body.removeChild(l),window.URL.revokeObjectURL(i),this.$message.success(title+"信息导出成功!"),setTimeout(()=>{this.loading=!1},500)}else this.$message.error(s.data.message),setTimeout(()=>{this.loading=!1},500)}).catch(e=>{this.loading=!1})}else this.$message.warning(e.msg)})}}},a("ed9c"),a=a("2877"),o=Object(a.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"commission pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",[a("el-col",{staticStyle:{padding:"0 0 0 80px"},attrs:{span:24}},[a("el-col",{staticStyle:{width:"600px"},attrs:{span:8}},[a("el-form",{staticClass:"demo-form-inline-search",attrs:{inline:!0,size:e.searchSize,"label-position":"top"}},[a("el-form-item",{attrs:{label:"确认单下单时间区间"}},[a("period-date-picker",{attrs:{start:e.parmValue.qrd_start,end:e.parmValue.qrd_end,type:1,width:"135px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned1(t)}}})],1),a("el-form-item",{attrs:{label:"回款时间区间"}},[a("period-date-picker",{attrs:{start:e.parmValue.start,end:e.parmValue.end,type:1,width:"135px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned2(t)}}})],1)],1)],1),a("el-col",{staticStyle:{width:"44px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"primary",icon:"el-icon-search"},on:{click:e.searchList}})],1),a("el-col",{staticStyle:{width:"66px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),e.powers.some((function(e){return"049"==e}))?a("el-col",{staticClass:"fr",staticStyle:{width:"83px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"primary",icon:"el-icon-download",size:e.searchSize},on:{click:function(t){return e.Export()}}},[e._v("导出")])],1):e._e(),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1)],1)],1)]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(s.row.companyNo,s.row.companyName,!0)}}})]):e._e()]}}],null,!1,2943416906)}):a("no-auth")],1)}),[],!1,null,"00e6b0a0",null);t.default=o.exports},"9e7a":function(e,t,a){"use strict";a.r(t);var s=a("b32b"),i=a("9486"),l=a("0ee5"),o=a("e66a"),r=a("f5ed"),n=a("2f62"),c=a("9f53");n={name:"role",mixins:[r.a,c.a],components:{addEdit:s.default},computed:{...Object(n.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"dataShare"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{statusList:l.a,roleLevel:o.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{page:1,size:15},statusOptions:[{id:0,label:"禁用"},{id:1,label:"启用"}],authOptions:[{id:"1",label:"管理员"},{id:"2",label:"非管理员"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"actionlist",label:"菜单数据"},{prop:"share_user",label:"数据源用户"},{prop:"to_user",label:"数据共享用户"},{prop:"to_group",label:"数据共享用户组"},{prop:"status",label:"状态",sortable:!0,_slot_:"status"},{prop:"addtime",label:"创建时间",sortable:!0},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted(){this.searchList()},methods:{restSearch(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15},this.searchList()},openModal(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},async changeStatus(e,t){await this.$confirm(`确定要改为${"1"===t?"禁用":"启用"}?`,{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{this.loading=!0;var a=await i.a.status({id:e,status:"1"===t?"0":"1"});a&&0===a.code?(this.loading=!1,this.$notify.success({title:"状态修改成功!",message:""}),await this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():(this.loading=!1,this.$message.warning(a.message))}).catch(()=>{})},async searchList(){this.loading=!0;var e=await i.a.list(this.parmValue);e&&0===e.code&&e.data?(this.tableData=e.data.list,this.pageInfo.total=Number(e.data.count)):e&&100<=e.code&&e.code<=104?await this.logout():(this.tableData=[],this.pageInfo.total=0),this.loading=!1}}},a=a("2877"),n=Object(a.a)(n,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dataShare pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),e.powers.some((function(e){return"003"==e}))?a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 添加 ")])],1):e._e()],1)],1)],1)]}},{key:"status",fn:function(t){var s=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==s.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==s.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(s.row.id,!0)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(s.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.changeStatus(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.changeStatus(s.row.id,s.row.status)}}})]):e._e()]}}],null,!1,1049064717)}):a("no-auth"),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"4b607c44",null);t.default=n.exports},"9ed6":function(e,t,a){"use strict";a.r(t);var s=a("6a1e"),i=a("9f53"),l=a("61f7"),o={name:"Login",mixins:[i.a],data(){return{ver:"",show:!1,loginForm:{password:"dingding123",username:"18617668688"},loginRules:{username:[{required:!0,trigger:"blur",validator:(e,t,a)=>{""===t?a(new Error("手机号不能为空!")):Object(l.f)(t)?a():a(new Error("请输入正确的手机号"))}}],password:[{required:!0,trigger:"blur",validator:(e,t,a)=>{""===t?a(new Error("密码不能为空!")):!Object(l.b)(t)||t.length<6||18<t.length?a(new Error("密码为6-18位数字字母组合!")):Object(l.h)(t)?a(new Error("密码不能为纯数字!")):Object(l.i)(t)?a(new Error("密码不能为纯字母!")):a()}}]},passwordType:"password",capsTooltip:!1,loading:!1,showDialog:!1,redirect:void 0,otherQuery:{}}},watch:{$route:{handler:function(e){e=e.query,e&&(this.redirect=e.redirect,this.otherQuery=this.getOtherQuery(e))},immediate:!0}},created(){},mounted(){""===this.loginForm.username?this.$refs.username.focus():""===this.loginForm.password&&this.$refs.password.focus()},methods:{async getversion(){var e,t=await s.a.version({});t&&0===t.code?(e=t.data,this.ver=e.version):t&&100<=t.code&&t.code<=104?await this.logout():this.$message.warning(t.message)},setVisible(e){this.show=e},handleClick(){this.show=!0},handleSuccess(){this.show=!1,this.handleLogin()},checkCapslock(e){var{key:e}=e;this.capsTooltip=e&&1===e.length&&"A"<=e&&e<="Z"},showPwd(){"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick(()=>{this.$refs.password.focus()})},handleLogin(){this.$refs.loginForm.validate(e=>!!e&&(this.loading=!0,void this.$store.dispatch("user/login",this.loginForm).then(e=>{0===e.code?this.getMenu():(this.$message.warning(e.message),this.loading=!1)}).catch(e=>{this.loading=!1})))},getMenu(){this.$store.dispatch("user/getMenuList",this).then(e=>{window.vm.$router.push({path:"/welcome",query:this.otherQuery}),this.loading=!1}).catch(e=>{this.loading=!1})},getOtherQuery(e){return Object.keys(e).reduce((t,a)=>("redirect"!==a&&(t[a]=e[a]),t),{})}}};a("2017"),a("214b"),i=a("2877"),o=Object(i.a)(o,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"login-container"},[t("div",{staticClass:"login-form-main"},[t("img",{attrs:{src:a("a56b"),alt:""}}),e._m(0),t("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"left"}},[t("div",{staticClass:"title-container"},[t("h3",{staticClass:"title"},[e._v(" 采销平台订单系统"),t("span",[e._v(e._s(e.ver))])])]),t("el-form-item",{attrs:{prop:"username"}},[t("span",{staticClass:"svg-container"},[t("i",{staticClass:"el-icon-user"})]),t("el-input",{ref:"username",attrs:{placeholder:"手机号",name:"username",type:"text",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}})],1),t("el-tooltip",{attrs:{content:"Caps lock is On",placement:"right",manual:""},model:{value:e.capsTooltip,callback:function(t){e.capsTooltip=t},expression:"capsTooltip"}},[t("el-form-item",{attrs:{prop:"password"}},[t("span",{staticClass:"svg-container"},[t("i",{staticClass:"el-icon-unlock"})]),t("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"密码",name:"password",tabindex:"2",autocomplete:"on"},on:{blur:function(t){e.capsTooltip=!1}},nativeOn:{keyup:[function(t){return e.checkCapslock(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}]},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),t("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[t("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1)],1),t("el-button",{staticStyle:{width:"100%","margin-top":"5px"},attrs:{loading:e.loading,disabled:e.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin()}}},[e._v("登 录")]),t("div",{staticStyle:{position:"relative",padding:"12px 0 0 0"}},[t("div",{staticClass:"tips",staticStyle:{float:"left"}},[t("el-popover",{attrs:{placement:"top",title:"初始密码:",width:"200",trigger:"click",content:"dingding123"}},[t("i",{staticClass:"el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1),t("router-link",{attrs:{to:"/forget-password"}},[t("div",{staticClass:"tips",staticStyle:{float:"right"}},[t("span",[e._v("忘记密码")])])])],1)],1)],1),e._m(1)])}),[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"main-title"},[e("h1",[this._v("欢迎登录")]),e("h3",[this._v("采销平台订单系统")])])},function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"beian"},[e("span",[this._v("万宇恒通")]),e("a",{attrs:{target:"_blank",href:"https://beian.miit.gov.cn/"}},[this._v("京ICP备2020033956号")]),e("span")])}],!1,null,"485ac4be",null);t.default=o.exports},"9fde":function(e,t,a){},a165:function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("9f53"),l=a("0ee5"),o=a("4568"),r=a("3df7"),n=a("2f62");n={name:"goodsAnomaly",mixins:[s.a,i.a],components:{addEdit:r.default},computed:{...Object(n.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"goodsAnomaly"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],statusList:l.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{status:"",page:1,size:15},tableData:[],tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1,table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"id",label:"序列号",width:"80px"},{prop:"result",label:"入库验收异常原因"},{prop:"result_desc",label:"异常描述"},{prop:"status",label:"状态",_slot_:"status",width:"80px"},{prop:"addtime",label:"创建时间",sortable:!0,width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation",width:"150px"}]}},mounted(){this.searchList()},methods:{async deleteItem(e){await this.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{var t=await o.a.delete({id:e});t&&0===t.code?(this.$notify.success({title:"删除成功",message:""}),this.searchList()):t&&100<=t.code&&t.code<=104?await this.logout():this.$message.warning(t.message)}).catch(()=>{})},restSearch(){this.parmValue={status:"",page:1,size:10},this.searchList()},openModal(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},async searchList(){this.loading=!0;var e=await o.a.list(this.parmValue);e&&0===e.code&&e.data?(this.tableData=e.data.list,this.pageInfo.total=Number(e.data.count)):e&&100<=e.code&&e.code<=104?await this.logout():(this.tableData=[],this.pageInfo.total=0),this.loading=!1},async statusConfirm(e,t){await this.$confirm("确定要改为"+("1"===t?"禁用":"启用")+"?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{this.loading=!0;var a=await o.a.status({id:e,status:"1"===t?"0":"1"});a&&0===a.code?(this.loading=!1,this.$notify.success({title:"状态修改成功!",message:""}),await this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}).catch(()=>{})}}},a=a("2877"),n=Object(a.a)(n,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"storeAnomaly pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 0 80px"}},[a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 新建 ")])],1)],1)],1)]}},{key:"status",fn:function(t){var s=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==s.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==s.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(s.row.id,!0,s.row)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(s.row.id,!1,s.row)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[a("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteItem(s.row.id)}}})]):e._e()]}}],null,!1,439828420)}),a("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1),a("add-edit",{attrs:{showModel:e.showModel,id:e.modelId,isDetail:e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"17cba6b2",null);t.default=n.exports},a17d:function(e,t,a){"use strict";a.r(t);var s=a("d819"),i=a("9f53"),l=a("61f7");i={name:"storeSet",props:["showModel","id","isDetail"],mixins:[i.a],data(){return{supplier_name:"",loading:!1,title:"添加仓库",showModelThis:this.showModel,ruleForm:{name:"",supplierNo:[],addr_code:[],addr:"",contactor:[],mobile:"",wsm_name:"",wsm_mobile:"",wsm_addr:"",addrs_code:[]},rulesThis:this.rules,rules:{name:[{required:!0,message:"请输入仓库名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],supplierNo:[{type:"array",required:!0,message:"请选择供应商公司",trigger:"change"}],addr_code:[{type:"array",required:!0,message:"请选择仓库所在省/市/区",trigger:"change"}],addr:[{required:!0,message:"请输入仓库详细地址",trigger:"blur"},{min:1,max:100,message:"长度在 1 到 100 个字符",trigger:"blur"}],contactor:[{required:!0,type:"array",message:"请选择仓库负责人",trigger:"change"}],mobile:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("联系方式不能为空!")):Object(l.f)(t)?a():a(new Error("联系方式格式不正确!"))},trigger:"blur"}],wsm_name:[{required:!0,message:"请输入收发货联系人",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],wsm_mobile:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("联系方式不能为空!")):Object(l.f)(t)?a():a(new Error("联系方式格式不正确!"))},trigger:"blur"}],addrs_code:[{type:"array",required:!0,message:"请选择收发货所在省/市/区",trigger:"change"}],wsm_addr:[{required:!0,message:"请输入收发货详细地址",trigger:"blur"},{min:1,max:100,message:"长度在 1 到 100 个字符",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},supplierChange(e){e&&e.id?this.ruleForm.supplierNo=[e.code]:this.ruleForm.supplierNo=[],this.$refs.ruleForm.validateField("supplierNo")},selectAreaAddr_code(e){this.ruleForm.addr_code=e,this.$refs.ruleForm.validateField("addr_code")},selectAreaAddrs_code(e){this.ruleForm.addrs_code=e,this.$refs.ruleForm.validateField("addrs_code")},accountChange(e){e&&e.id?this.ruleForm.contactor=[e.id]:this.ruleForm.contactor=[],this.$refs.ruleForm.validateField("contactor")},async initForm(){this.supplier_name="",this.loading=!0,"add"===this.id?(this.title="新建仓库",this.rulesThis=this.rules,await this.resetForm()):(this.isDetail?(this.title="账号详情",this.rulesThis={}):(this.title="修改账号",this.rulesThis=this.rules),await this.resetForm(),await this.initData()),this.loading=!1},async initData(){var e,t,a,i,l,o,r,n,c,d,u,h,m=await s.a.detail({id:this.id});m&&0===m.code&&m.data?(({addr:e,addr_code:t,addrs_code:a,contactor:i,mobile:l,name:o,supplierNo:r,supplier_name:n,wsm_addr:c,wsm_code:d,wsm_mobile:u,wsm_name:h}=m.data),this.supplier_name=r,this.ruleForm={name:o,supplierNo:[r],addr_code:[],addr:e,contactor:[],mobile:l,wsm_name:h,wsm_mobile:u,wsm_addr:c,addrs_code:[]}):m&&100<=m.code&&m.code<=104?await this.logout():this.$message.warning(m.message)},async resetForm(){await this.$nextTick(()=>{this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),this.ruleForm={name:"测试测试",supplierNo:[],addr_code:[],addr:"测试地址测试地址",contactor:[],mobile:"1989898977",wsm_name:"张三",wsm_mobile:"19888888888",wsm_addr:"测试1",addrs_code:[]})})},setCode(e){return{provice_code:e[0],city_code:e[2],area_code:e[2]}},getId(e){let t=JSON.parse(JSON.stringify(e));return t.join(",")},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.loading=!0;var{name:t,supplierNo:a,addr_code:i,addr:l,contactor:o,mobile:r,wsm_name:n,wsm_mobile:c,wsm_addr:d,addrs_code:e}=JSON.parse(JSON.stringify(this.ruleForm));const u={id:this.id,name:t,supplierNo:this.getId(a),addr_code:this.setCode(i),addr:l,contactor:this.getId(o),mobile:r,wsm_name:n,wsm_mobile:c,wsm_addr:d,addrs_code:this.setCode(e),position:"1",wsm_type:"1",wsmtype:"1"};let h={};h="add"===this.id?(delete u.id,await s.a.add(u)):await s.a.update(u),this.loading=!1,h&&0===h.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):h&&100<=h.code&&h.code<=104?await this.logout():this.$message.warning(h.message)}})}}},a("0765"),a=a("2877"),i=Object(a.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"8vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[t("el-card",{staticStyle:{"margin-top":"-20px"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"100px"}},[t("div",{staticStyle:{padding:"8px 0 12px 0"}},[t("el-divider",{attrs:{"content-position":"center"}},[e._v("仓库信息")])],1),t("el-row",[t("el-col",{attrs:{span:12}},[t("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"所属公司",prop:"supplierNo"}},[t("search-supplier",{attrs:{value:e.supplierNo,names:e.supplier_name,disabled:e.isDetail,placeholder:"请输入公司名称"},on:{searchChange:e.supplierChange}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"仓库名称",prop:"name"}},[t("el-input",{attrs:{placeholder:"请输入仓库名称",filterable:"",disabled:e.isDetail,maxlength:"20",clearable:""},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1)],1)],1),t("el-row",[t("el-col",{attrs:{span:12}},[t("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"负责人",prop:"contactor"}},[t("search-account",{attrs:{size:e.searchSize,value:e.ruleForm.contactor,placeholder:"请输入负责人","is-detail":e.isDetail,disabled:e.isDetail,names:e.accountNames},on:{searchChange:e.accountChange}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"负责人电话",prop:"mobile"}},[t("el-input",{attrs:{placeholder:"请输入联系人电话",maxlength:"11",clearable:""},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile",t)},expression:"ruleForm.mobile"}})],1)],1)],1),t("el-row",[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"省/市/区",prop:"addr_code"}},[t("select-area",{attrs:{placeholder:"请选择省/市/区",value:e.ruleForm.addr_code},on:{selectChange:e.selectAreaAddr_code}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"详细地址",prop:"addr"}},[t("el-input",{attrs:{placeholder:"请输入详细地址",maxlength:"100",clearable:""},model:{value:e.ruleForm.addr,callback:function(t){e.$set(e.ruleForm,"addr",t)},expression:"ruleForm.addr"}})],1)],1)],1),t("div",{staticStyle:{padding:"0 0 12px 0"}},[t("el-divider",{attrs:{"content-position":"center"}},[e._v("收发货信息")])],1),t("el-row",[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"联系人",prop:"wsm_name"}},[t("el-input",{attrs:{placeholder:"请填写联系人",maxlength:"20",disabled:e.isDetail,clearable:""},model:{value:e.ruleForm.wsm_name,callback:function(t){e.$set(e.ruleForm,"wsm_name",t)},expression:"ruleForm.wsm_name"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"电话",prop:"wsm_mobile"}},[t("el-input",{attrs:{placeholder:"请输入联系人电话",maxlength:"11",clearable:""},model:{value:e.ruleForm.wsm_mobile,callback:function(t){e.$set(e.ruleForm,"wsm_mobile",t)},expression:"ruleForm.wsm_mobile"}})],1)],1)],1),t("el-row",[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"省/市/区",prop:"addrs_code"}},[t("select-area",{attrs:{disabled:e.isDetail,value:e.ruleForm.addrs_code,placeholder:"请选择省/市/区"},on:{selectChange:e.selectAreaAddrs_code}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"详细地址",prop:"wsm_addr"}},[t("el-input",{attrs:{placeholder:"请输入详细地址",maxlength:"100",clearable:""},model:{value:e.ruleForm.wsm_addr,callback:function(t){e.$set(e.ruleForm,"wsm_addr",t)},expression:"ruleForm.wsm_addr"}})],1)],1)],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"6dfc0bda",null);t.default=i.exports},a247:function(e,t,a){},a25e:function(e,t,a){},a2c9:function(e,t,a){},a319:function(e,t,a){},a36b:function(e,t,a){e.exports=a.p+"static/img/404.a57b6f31.png"},a4dd:function(e,t,a){"use strict";a.r(t);var s=a("2c20"),i=a("4af7"),l={list:(e,t)=>Object(i.a)("process/doneList",e,"post",t)},o=a("f5ed"),r=a("2f62"),n=a("9f53");r={name:"done",mixins:[o.a,n.a],components:{addEdit:s.default},computed:{...Object(r.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"done"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{loginName:"",fullName:"",type:2,page:1,size:15},statusOptions:[{id:0,label:"禁用"},{id:1,label:"启用"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"id",label:"待办编号"},{prop:"title",label:"流程名称"},{prop:"orderNo",label:"单据号"},{prop:"type",label:"当前节点"},{prop:"timestamp",label:"停留时间"},{prop:"author",label:"发起人"},{prop:"reviewer",label:"发起人部门"},{prop:"addTime",label:"申请时间"}]}},mounted(){this.searchList()},methods:{restSearch(){this.pageInfo={size:10,curr:1,total:0},this.parmValue={status:"",level:"",role_name:"",page:1,size:10},this.searchList()},openModal(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},async changeStatus(e,t){await this.$confirm(`确定要改为${"1"===t?"禁用":"启用"}?`,{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{var a=await l.status({roleid:e,status:"1"===t?"0":"1"});a&&0===a.code?(this.$notify.success({title:"状态修改成功",message:""}),this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}).catch(()=>{})},async searchList(){this.loading=!0;var e=await l.list(this.parmValue);e&&0===e.code&&e.data?(this.tableData=e.data.list,this.pageInfo.total=Number(e.data.count)):e&&100<=e.code&&e.code<=104?await this.logout():(this.tableData=[],this.pageInfo.total=0),this.loading=!1}}},a=a("2877"),r=Object(a.a)(r,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"done pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%",height:"30px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),e.powers.some((function(e){return"003"==e}))?a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 添加 ")])],1):e._e()],1)],1)],1)]}},{key:"status",fn:function(t){var s=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==s.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==s.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(s.row.id,!0)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(s.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.changeStatus(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.changeStatus(s.row.id,s.row.status)}}})]):e._e()]}}],null,!1,4251090183)}):a("no-auth"),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"d42156cc",null);t.default=r.exports},a522:function(e,t,a){},a56b:function(e,t,a){e.exports=a.p+"static/img/loginlan.1ecbd4ab.png"},a686:function(e,t,a){"use strict";a("000f")},a891:function(e,t,a){},a909:function(e,t,a){"use strict";a("1b4e")},a9ad:function(e,t,a){"use strict";a.r(t);var s=a("61f7"),i=a("6a1e"),l={name:"Login",mixins:[a("9f53").a],data(){return{loginForm:{oldPassword:"",newPassword:"",confirmPassword:""},loginRules:{oldPassword:[{required:!0,trigger:"blur",validator:(e,t,a)=>{""===t?a(new Error("旧密码不能为空!")):!Object(s.b)(t)||t.length<6||18<t.length?a(new Error("旧密码为6-18位数字字母组合!")):Object(s.h)(t)?a(new Error("旧密码不能为纯数字!")):Object(s.i)(t)?a(new Error("旧密码不能为纯字母!")):a()}}],newPassword:[{required:!0,trigger:"blur",validator:(e,t,a)=>{""===t?a(new Error("新密码不能为空!")):this.loginForm.oldPassword===t?a(new Error("新密码不能与旧密码一致!")):!Object(s.b)(t)||t.length<6||18<t.length?a(new Error("新密码为6-18位数字字母组合!")):Object(s.h)(t)?a(new Error("新密码不能为纯数字!")):Object(s.i)(t)?a(new Error("新密码不能为纯字母!")):a()}}],confirmPassword:[{required:!0,trigger:"blur",validator:(e,t,a)=>{""===t?a(new Error("确认密码不能为空!")):this.loginForm.newPassword!==t?a(new Error("确认密码与新密码不一致!")):a()}}]},loading:!1,otherQuery:{}}},methods:{async handleLogin(){this.$refs.loginForm.validate(async e=>!!e&&void(this.loading||(this.loading=!0,e={oldpwd:this.loginForm.oldPassword,newpwd:this.loginForm.newPassword},i.a.setpwd(e).then(async e=>{e&&0===e.code?(this.loading=!1,this.$message.success(e.message),await this.logout()):e&&100<=e.code&&e.code<=104?await this.logout():(this.$message.warning(e.message),this.loading=!1)}))))}}};a("62f7"),a("85db"),a=a("2877"),l=Object(a.a)(l,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"change-password pagePadding"},[t("div",{staticClass:"change"},[t("div",{staticClass:"title"},[e._v(" 设置新登录密码 "),t("el-popover",{attrs:{placement:"top",title:"初始密码:",width:"200",trigger:"click",content:"dingding123"}},[t("i",{staticClass:"el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1),t("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"right","label-width":"100px"}},[t("el-form-item",{attrs:{prop:"oldPassword",label:"旧密码:"}},[t("el-input",{ref:"oldPassword",attrs:{placeholder:"旧密码",name:"oldPassword",type:"password",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.oldPassword,callback:function(t){e.$set(e.loginForm,"oldPassword",t)},expression:"loginForm.oldPassword"}})],1),t("el-form-item",{attrs:{prop:"newPassword",label:"新密码:"}},[t("el-input",{ref:"newPassword",attrs:{placeholder:"新密码",name:"newPassword",type:"password",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.newPassword,callback:function(t){e.$set(e.loginForm,"newPassword",t)},expression:"loginForm.newPassword"}})],1),t("el-form-item",{attrs:{prop:"confirmPassword",label:"确认密码:"}},[t("el-input",{ref:"confirmPassword",attrs:{placeholder:"确认密码",name:"confirmPassword",type:"password",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.confirmPassword,callback:function(t){e.$set(e.loginForm,"confirmPassword",t)},expression:"loginForm.confirmPassword"}})],1),t("el-button",{staticStyle:{width:"98%",margin:"15px 0 0 5%"},attrs:{loading:e.loading,type:"primary",round:""},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("确认修改")])],1)],1)])}),[],!1,null,"47333433",null);t.default=l.exports},aabe:function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("9f53"),l=a("0ee5"),o=a("1702"),r=a("59e1"),n=a("2f62");n={name:"storeAnomaly",mixins:[s.a,i.a],components:{addEdit:r.default},computed:{...Object(n.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"storeAnomaly"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],statusList:l.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{status:"",page:1,size:15},tableData:[],tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1,table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"id",label:"序列号",width:"80px"},{prop:"result",label:"入库验收异常原因"},{prop:"result_desc",label:"异常描述"},{prop:"status",label:"状态",_slot_:"status",width:"80px"},{prop:"addtime",label:"创建时间",sortable:!0,width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation",width:"150px"}]}},mounted(){this.searchList()},methods:{async deleteItem(e){await this.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{var t=await o.a.delete({id:e});t&&0===t.code?(this.$notify.success({title:"删除成功",message:""}),this.searchList()):t&&100<=t.code&&t.code<=104?await this.logout():this.$message.warning(t.message)}).catch(()=>{})},restSearch(){this.parmValue={status:"",page:1,size:10},this.searchList()},openModal(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},async searchList(){this.loading=!0;var e=await o.a.list(this.parmValue);e&&0===e.code&&e.data?(this.tableData=e.data.list,this.pageInfo.total=Number(e.data.count)):e&&100<=e.code&&e.code<=104?await this.logout():(this.tableData=[],this.pageInfo.total=0),this.loading=!1},async statusConfirm(e,t){await this.$confirm("确定要改为"+("1"===t?"禁用":"启用")+"?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{this.loading=!0;var a=await o.a.status({id:e,status:"1"===t?"0":"1"});a&&0===a.code?(this.loading=!1,this.$notify.success({title:"状态修改成功!",message:""}),await this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}).catch(()=>{})}}},a=a("2877"),n=Object(a.a)(n,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"storeAnomaly pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 0 80px"}},[a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 新建 ")])],1)],1)],1)]}},{key:"status",fn:function(t){var s=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==s.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==s.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(s.row.id,!0,s.row)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(s.row.id,!1,s.row)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[a("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteItem(s.row.id)}}})]):e._e()]}}],null,!1,439828420)}),a("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1),a("add-edit",{attrs:{showModel:e.showModel,id:e.modelId,isDetail:e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"717b63b4",null);t.default=n.exports},ab24:function(e,t,a){"use strict";a("8dc1")},ae36:function(e,t,a){},b234:function(e,t,a){"use strict";a("1878")},b32b:function(e,t,a){"use strict";a.r(t);var s=a("9486"),i={name:"DataShare",props:["showModel","id","isDetail"],mixins:[a("9f53").a],data(){return{loading:!1,title:"添加共享规则",showModelThis:this.showModel,select:"1",activeOptions:[],actionList:[],ruleForm:{collect:[],userid:[],touserid:[],togroupid:[],action:"0"},rulesThis:this.rules,rules:{collect:[{required:!0,message:"请选择共享的菜单",trigger:"change"}],userid:[{required:!0,message:"请选择数据源用户",trigger:"change"}],touserid:[{required:!1,message:"请选择数据共享用户",trigger:"change"}],togroupid:[{required:!1,message:"请选择数据共享用户组",trigger:"change"}],action:[{required:!0,message:"请选择数据权限",trigger:"change"}]},dataForm:{name:"",status:""},activeOptions:[],groupallList:[]}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.loading=!0,await this.initActionList(),await this.getAllActive(),await this.groupAllActive(),"add"===this.id?(this.title="添加共享规则",this.rulesThis=this.rules,await this.resetForm()):(this.isDetail?(this.title="共享规则",this.rulesThis={}):(this.title="修改共享规则",this.rulesThis=this.rules),await this.resetForm(),await this.initData()),this.loading=!1},async initData(){var e=await s.a.detail({id:this.id});if(e&&0===e.code){const{action_collect:t,share_user:a,to_user:s,to_group:i,action:l}=e.data;this.ruleForm.collect=t.split(","),this.ruleForm.userid=a.split(","),this.ruleForm.touserid=""===s?[]:s.split(","),this.ruleForm.togroupid=""===i?[]:i.split(","),this.ruleForm.action=l,0!==this.ruleForm.touserid.length?this.select="1":e&&100<=e.code&&e.code<=104?await this.logout():(this.select="2",this.$message.warning(e.message))}},async initActionList(){var e=await s.a.actionList({});if(e&&0===e.code){const a=e.data;var t=a.filter(e=>e.child&&0<e.child.length);this.actionList=t}else e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async getAllActive(){var e=await s.a.accountall(this.dataForm);e&&0===e.code&&e.data?this.activeOptions=e.data:e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async groupAllActive(){var e=await s.a.groupall(this.dataForm);e&&0===e.code&&e.data?this.groupallList=e.data:e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async resetForm(){await this.$nextTick(()=>{this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),this.ruleForm={collect:[],userid:[],touserid:[],togroupid:[],action:"0"})})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;if(0!==this.ruleForm.touserid.length||"1"!==this.select)if(0!==this.ruleForm.togroupid.length||"1"===this.select)if("1"!==this.select||this.ruleForm.userid[0]!==this.ruleForm.touserid[0]){this.loading=!0;const{collect:t,userid:a,touserid:i,togroupid:l,action:o}=JSON.parse(JSON.stringify(this.ruleForm)),r={id:this.id,collect:t.join(),userid:a.join(),touserid:"1"===this.select?i.join():"",togroupid:"1"===this.select?"":l.join(),action:o};let n={};n="add"===this.id?(delete r.id,await s.a.add(r)):await s.a.update(r),this.loading=!1,n&&0===n.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):n&&100<=n.code&&n.code<=104?await this.logout():this.$message.warning(n.message)}else this.$message.warning("源用户不能与分享用户一致!");else this.$message.warning("请选择数据共享用户组");else this.$message.warning("请选择数据共享用户")})}}};a("9b20"),a=a("2877"),i=Object(a.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"18vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"130px"}},[a("el-form-item",{attrs:{label:"共享的菜单数据",prop:"collect"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",clearable:"",disabled:e.isDetail,placeholder:"请选择菜单数据"},model:{value:e.ruleForm.collect,callback:function(t){e.$set(e.ruleForm,"collect",t)},expression:"ruleForm.collect"}},e._l(e.actionList,(function(t,s){return a("el-option-group",{key:t.menu_name+s,attrs:{label:t.menu_name}},e._l(t.child,(function(e,t){return a("el-option",{key:"item"+e.menu_name+t,attrs:{label:e.menu_name,value:e.id}})})),1)})),1)],1),a("el-form-item",{attrs:{label:"数据源用户",prop:"userid"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",clearable:"","multiple-limit":1,placeholder:"请选择数据源用户",disabled:e.isDetail},model:{value:e.ruleForm.userid,callback:function(t){e.$set(e.ruleForm,"userid",t)},expression:"ruleForm.userid"}},e._l(e.activeOptions,(function(t){return a("el-option",{key:"userid"+t.id,attrs:{label:t.nickname,value:t.id,disabled:"1"!==t.status}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.nickname))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px",padding:"0 25px 0 0"}},[e._v(e._s(t.role_name))])])})),1)],1),a("el-divider"),a("el-form-item",{attrs:{label:"数据共享对象",required:""}},[a("ul",{staticClass:"dataShare-edit"},[a("li",[a("el-select",{attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[a("el-option",{attrs:{label:"用户",value:"1"}}),a("el-option",{attrs:{label:"用户组",value:"2"}})],1)],1),a("li",["1"===e.select?a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"","multiple-limit":1,clearable:"",placeholder:"请选择用户",disabled:e.isDetail},model:{value:e.ruleForm.touserid,callback:function(t){e.$set(e.ruleForm,"touserid",t)},expression:"ruleForm.touserid"}},e._l(e.activeOptions,(function(t){return a("el-option",{key:"touserid"+t.id,attrs:{label:t.nickname,value:t.id,disabled:"1"!==t.status}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.nickname))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px",padding:"0 25px 0 0"}},[e._v(e._s(t.role_name))])])})),1):a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"","multiple-limit":1,clearable:"",placeholder:"请选择用户组",disabled:e.isDetail},model:{value:e.ruleForm.togroupid,callback:function(t){e.$set(e.ruleForm,"togroupid",t)},expression:"ruleForm.togroupid"}},e._l(e.groupallList,(function(e){return a("el-option",{key:"togroupid"+e.id,attrs:{label:e.group_name,value:e.id,disabled:"1"!==e.status}})})),1)],1)])]),a("el-form-item",{attrs:{label:"共享的数据权限",prop:"action"}},[a("el-radio",{attrs:{label:"0"},model:{value:e.ruleForm.action,callback:function(t){e.$set(e.ruleForm,"action",t)},expression:"ruleForm.action"}},[e._v("只读")]),a("el-radio",{attrs:{label:"1"},model:{value:e.ruleForm.action,callback:function(t){e.$set(e.ruleForm,"action",t)},expression:"ruleForm.action"}},[e._v("读写")])],1)],1)],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),a("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"635b7fb9",null);t.default=i.exports},b346:function(e,t,a){"use strict";a.r(t);var s=a("1b69"),i={list:(e,t)=>Object(s.a)("admin/loglist",e,"post",t)},l=a("f5ed"),o=a("2f62"),r=a("9f53");o={name:"oplog",mixins:[l.a,r.a],computed:{...Object(o.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"oplog"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{role:"",action:"",event:"",startTime:"",endTime:"",name:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"name",label:"账号"},{prop:"rolename",label:"角色"},{prop:"info",label:"模块"},{prop:"url",label:"事件"},{prop:"addtime",label:"操作时间",sortable:!0}]}},mounted(){this.searchList()},methods:{restSearch(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={role:"",action:"",event:"",startTime:"",endTime:"",name:"",page:1,size:15},this.searchList()},async timeReturned(e){""!==e.startTime?this.parmValue.startTime=e.startTime:this.parmValue.startTime="",""!==e.endTime?this.parmValue.endTime=e.endTime:this.parmValue.endTime="",""!==this.parmValue.startTime&&""!==this.parmValue.endTime&&(this.parmValue.page=1,await this.searchList())},openModal(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},async changeStatus(e,t){await this.$confirm(`确定要改为${"1"===t?"禁用":"启用"}?`,{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{var a=await i.delete({roleid:e,status:"1"===t?"0":"1"});0===a.code?(this.$notify.success({title:"状态修改成功",message:""}),this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}).catch(()=>{})},async searchList(){this.loading=!0;var e=await i.list(this.parmValue);e&&0===e.code&&e.data?(this.tableData=e.data.list,this.pageInfo.total=Number(e.data.count)):e&&100<=e.code&&e.code<=104?await this.logout():(this.tableData=[],this.pageInfo.total=0),this.loading=!1}}},a=a("2877"),o=Object(a.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"oplog pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",[a("el-col",{staticStyle:{padding:"0 0 10px 80px"},attrs:{span:24}},[a("el-col",{staticStyle:{width:"160px"},attrs:{span:3}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"用户角色"},model:{value:e.parmValue.role,callback:function(t){e.$set(e.parmValue,"role",t)},expression:"parmValue.role"}})],1),a("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:3}},[a("el-input",{attrs:{maxlength:40,size:e.searchSize,placeholder:"模块名称"},model:{value:e.parmValue.action,callback:function(t){e.$set(e.parmValue,"action",t)},expression:"parmValue.action"}})],1),a("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:3}},[a("el-input",{attrs:{maxlength:40,size:e.searchSize,placeholder:"操作事件"},model:{value:e.parmValue.event,callback:function(t){e.$set(e.parmValue,"event",t)},expression:"parmValue.event"}})],1),a("el-col",{staticClass:"fr",staticStyle:{width:"54px"},attrs:{span:3}},[a("el-button",{staticClass:"fr",attrs:{type:"primary",size:e.searchSize,icon:"el-icon-search"},on:{click:e.searchList}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"322px","padding-right":"0"},attrs:{span:6}},[a("period-date-picker",{attrs:{start:e.parmValue.startTime,end:e.parmValue.endTime,type:1,width:"145px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),a("el-col",{staticStyle:{width:"66px"},attrs:{span:3}},[a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1)],1)],1)]}}],null,!1,502036115)}):a("no-auth")],1)}),[],!1,null,"44f5de22",null);t.default=o.exports},b36d:function(e,t,a){"use strict";a.r(t);var s=a("21fa"),i=a("6bd2"),l=a("cdf1"),o=a("9f53");o={components:{iconDialog:l.default},mixins:[o.a],props:["showModel","id","isDetail","parentIds","level","isAdd","type","formData"],data(){return{loading:!1,showIconModel:!1,title:"",btnList:i.a,showModelThis:this.showModel,ruleForm:{},rulesThis:this.rules,rules:{name:[{required:!0,message:"请输入名称",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],code:[{required:!0,message:"请输入按钮标识编码(用于判断按钮是否显示)",trigger:"change"}],img:[{required:!0,message:"请选择图标",trigger:"blur"}],route:[{required:!0,message:"请输入路由",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],component:[{required:!0,message:"请输入页面组件路径",trigger:"blur"},{min:1,max:100,message:"长度在 1 到 100 个字符",trigger:"blur"}],weight:[{required:!0,message:"请输入权重,数值越大排名越靠前",trigger:"blur"}],is_show:[{required:!0,message:"请选择状态",trigger:"change"}],is_display:[{required:!0,message:"请选择页面状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},codeChange(e){for(let t=0;t<this.btnList.length;t++)if(this.btnList[t].code===e){this.ruleForm.name=this.btnList[t].name;break}},setVal(e){this.ruleForm.img=e,this.$refs.ruleForm.validateField("img")},async initForm(){this.isAdd?(1===this.level?this.title="添加一级菜单":2===this.level?this.title="添加二级菜单":this.title="添加按钮",this.loading=!1,this.rulesThis=this.rules,await this.resetForm()):(this.isDetail?(1===this.level?this.title="一级菜单详情":2===this.level?this.title="二级菜单详情":this.title="按钮详情",this.rulesThis={}):(1===this.level?this.title="修改一级菜单":2===this.level?this.title="修改二级菜单":this.title="修改按钮",this.rulesThis=this.rules),await this.initData())},async initData(){this.loading=!0;let e="";e=this.isAdd&&0===this.id?"0":this.parentIds;var{menu_name:t,menu_img:a,menu_route:s,is_show:i,weight:l,status:o,menu_url:r,menuid:n,action_name:c,action_code:d,is_display:u}=this.formData;3!==this.level?(this.ruleForm={parentId:this.id+"",parentIds:e+"",name:t+"",code:"",img:a+"",route:s+"",component:1===this.level?"":r+"",menuCategory:"1",type:this.type+"",is_show:i+"",is_display:u+"",weight:parseInt(l+"")},1===this.level&&delete this.ruleForm.parentIds):this.ruleForm={parentId:this.id+"",parentIds:n+"",name:c+"",code:d+"",img:"",route:"",component:"",menuCategory:"2",type:this.type+"",is_show:o+"",weight:"1"},this.loading=!1,await this.$nextTick(()=>{this.$refs.ruleForm&&this.$refs.ruleForm.clearValidate()})},async resetForm(){let e="";e=this.isAdd&&0===this.id?"0":this.parentIds,this.ruleForm={parentId:this.id,parentIds:e,name:"",code:"",img:"",route:"",component:"",menuCategory:this.level<3?1:2,type:this.type+"",is_show:"1",is_display:"1",weight:1},await this.$nextTick(()=>{this.$refs.ruleForm&&this.$refs.ruleForm.clearValidate()})},async submitForm(){if(this.loading)return!1;this.loading=!0,await this.$refs.ruleForm.validate(async e=>{if(!e)return this.loading=!1;{let c={},d={};var{name:t,img:a,route:i,is_show:l,is_display:o,weight:r,component:n,code:e}=this.ruleForm;if(c={id:this.id,pid:this.parentIds,menuid:this.parentIds,name:t,img:a,is_show:l,weight:r,route:i,is_display:o,url:n,action_code:e,status:l},1===this.level?(delete c.pid,delete c.menuid,delete c.url,delete c.action_code,delete c.status):2===this.level?(delete c.menuid,delete c.action_code,delete c.status):(delete c.pid,delete c.img,delete c.is_show,delete c.weight,delete c.route,delete c.is_display,delete c.url),this.isAdd&&delete c.id,d=this.level<3?await s.a.update(c):this.isAdd?await s.a.actionadd(c):await s.a.actionedit(c),this.loading=!1,d&&0===d.code){this.ruleForm={},l=this.isAdd?"添加成功":"修改成功",this.$notify.success({title:l,message:""}),this.showModelThis=!1;let e=this.parentIds;0===this.id&&(e="0"),this.$emit("refresh",this.id,e,this.level)}else d&&100<=d.code&&d.code<=104?await this.logout():this.$message.warning(d.message)}})}}},a("03d7"),a=a("2877"),o=Object(a.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"10vh",width:"750px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",{staticStyle:{"margin-top":"-20px"}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"is_show-icon":"",rules:e.rulesThis,"label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[e.level<3?a("el-form-item",{attrs:{label:"名称:",prop:"name"}},[a("el-input",{attrs:{disabled:e.isDetail,placeholder:"例如:用户管理"},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1):e._e(),3===e.level?a("el-form-item",{attrs:{label:"按钮标识:",prop:"code"}},[a("el-select",{attrs:{placeholder:"请选择按钮标识",clearable:"",filterable:"",disabled:e.isDetail},on:{change:e.codeChange},model:{value:e.ruleForm.code,callback:function(t){e.$set(e.ruleForm,"code",t)},expression:"ruleForm.code"}},e._l(e.btnList,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1):e._e(),a("el-row",[e.level<3?a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"路由:",prop:"route"}},[a("el-input",{attrs:{disabled:e.isDetail,placeholder:"例如:user"},model:{value:e.ruleForm.route,callback:function(t){e.$set(e.ruleForm,"route",t)},expression:"ruleForm.route"}})],1)],1):e._e(),e.level<3?a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"图标:",prop:"img"}},[a("el-row",{attrs:{gutter:10}},[e.ruleForm.img?a("el-col",{staticStyle:{width:"45px"},attrs:{span:3}},[a("div",{staticClass:"g-block",on:{click:function(t){e.showIconModel=!0}}},[a("i",{class:e.ruleForm.img})])]):e._e(),e.ruleForm.img?e._e():a("el-col",{attrs:{span:7}},[a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(t){e.showIconModel=!0}}},[e._v(" 选择图标 ")])],1)],1),a("iconDialog",{attrs:{"show-model":e.showIconModel},on:{setVal:e.setVal,cancel:function(t){e.showIconModel=!1}}})],1)],1):e._e()],1),2===e.level?a("el-form-item",{attrs:{label:"页面路径:",prop:"component"}},[a("el-input",{attrs:{disabled:e.isDetail,placeholder:"例如:park/user"},model:{value:e.ruleForm.component,callback:function(t){e.$set(e.ruleForm,"component",t)},expression:"ruleForm.component"}},[a("template",{slot:"prepend"},[e._v("views/")])],2)],1):e._e(),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"状态:",prop:"is_show"}},[a("el-radio",{attrs:{label:"1",disabled:e.isDetail},model:{value:e.ruleForm.is_show,callback:function(t){e.$set(e.ruleForm,"is_show",t)},expression:"ruleForm.is_show"}},[e._v(" 启用 ")]),a("el-radio",{attrs:{label:"0",disabled:e.isDetail},model:{value:e.ruleForm.is_show,callback:function(t){e.$set(e.ruleForm,"is_show",t)},expression:"ruleForm.is_show"}},[e._v(" 禁用 ")])],1)],1),a("el-col",{attrs:{span:12}},[e.level<3?a("el-form-item",{attrs:{label:"页面状态:",prop:"is_display"}},[a("el-radio",{attrs:{label:"1",disabled:e.isDetail},model:{value:e.ruleForm.is_display,callback:function(t){e.$set(e.ruleForm,"is_display",t)},expression:"ruleForm.is_display"}},[e._v(" 显示 ")]),a("el-radio",{attrs:{label:"0",disabled:e.isDetail},model:{value:e.ruleForm.is_display,callback:function(t){e.$set(e.ruleForm,"is_display",t)},expression:"ruleForm.is_display"}},[e._v(" 隐藏 ")])],1):e._e()],1)],1),e.level<3?a("el-form-item",{attrs:{label:"排序权重:",prop:"weight"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{padding:"0"},attrs:{span:16}},[a("el-input",{attrs:{type:"number",disabled:e.isDetail},model:{value:e.ruleForm.weight,callback:function(t){e.$set(e.ruleForm,"weight",e._n(t))},expression:"ruleForm.weight"}})],1),a("el-col",{attrs:{span:7}},[a("el-tag",{attrs:{type:"danger"}},[e._v("数值越大排名越靠前")])],1)],1)],1):e._e()],1)],1)],1),a("el-col",{staticStyle:{"text-align":"right",padding:"0 0 10px 0"},attrs:{span:24}},[e.isDetail?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" 保 存 ")]),a("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)}),[],!1,null,"3d6d9e5a",null);t.default=o.exports},b399:function(e,t,a){},b5d3:function(e,t,a){"use strict";var s=a("1b69");const i="admin/";t.a={list:(e,t)=>Object(s.a)(i+"Resigninfolist",e,"post",t),detail:(e,t)=>Object(s.a)(i+"Resigninfoselect",e,"post",t),update:(e,t)=>Object(s.a)(i+"Resigninfoedit",e,"post",t),add:(e,t)=>Object(s.a)(i+"Resigninfocreate",e,"post",t),delete:(e,t)=>Object(s.a)(i+"Resigninfodel",e,"post",t),status:(e,t)=>Object(s.a)(i+"Resigninfostatu",e,"post",t),getRole:(e,t)=>Object(s.a)(i+"roleall",e,"post",t)}},b5fe:function(e,t,a){"use strict";a("d6a0")},b6cd:function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("9f53"),l=(a("0ee5"),a("d8a8"),a("3b36")),o=a("2f62");o={name:"allotFlow",mixins:[s.a,i.a],props:["myType"],components:{addEdit:l.default},computed:{...Object(o.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"allotFlow"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{options:[{value:"选项1",label:"请选择入库方审核状态"},{value:"选项2",label:"通过"},{value:"选项3",label:"驳回"}],value:"",ruleForm:{},rules:{stock_go_rule:[{required:!0,message:"请选择审核状态",trigger:"blur"}],stock_remark:[{required:!0,message:"请输入审核备注",trigger:"change"}]},remark:"a",loading:!0,showModel:!1,isDetail:!1,modelId:0,tableData:[],tableData:[],table:{stripe:!0,border:!0},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"nickname",label:"商品编号"},{prop:"role_name",label:"商品名称"},{prop:"mobile",label:"数量"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}],parmValue:{}}},mounted(){this.searchList()},methods:{restSearch(){this.parmValue={},this.searchList()},openModal(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},async deleteById(e,t){},async searchList(){},async statusConfirm(e,t){},compareStock(){this.stock_go===this.stock_in&&""!==this.stock_go&&""!=this.stock_go&&this.$message({message:"出库仓库不能和入库仓库相同",type:"error"})}}},a("b234"),a=a("2877"),o=Object(a.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"newApply pagePadding"},[e._v(" 入库方审核 "+e._s(e.myType)+" "),e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("el-form",{ref:"ruleForm",attrs:{disabled:2!==e.myType,model:e.ruleForm,rules:e.rules,"label-width":"165px"}},[a("el-form-item",{attrs:{label:"入库方审核状态",prop:"stock_go_rule"}},[a("el-select",{attrs:{placeholder:"入库方审核",size:e.searchSize},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"入库方审核备注",prop:"stock_remark"}},[a("el-input",{staticStyle:{width:"30%"},attrs:{type:"textarea",rows:2,placeholder:"请输入审核备注",size:e.searchSize,clearable:""},model:{value:e.remark,callback:function(t){e.remark=t},expression:"remark"}})],1),a("el-form-item",[a("el-col",{staticStyle:{"text-align":"right","margin-top":"10px"},attrs:{span:24}},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.myType,expression:"myType === 2"}],attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存 ")])],1)],1)],1),a("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1)])}),[],!1,null,null,null);t.default=o.exports},b84f:function(e,t,a){},baa6:function(e,t,a){e.exports=a.p+"static/img/developing.750f7ed1.jpg"},bc5e:function(e,t,a){"use strict";a("7693")},bf52:function(e,t,a){"use strict";a("6747")},c21b:function(e,t,a){"use strict";a("1b69")},c420:function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("1fd2"),l=a("6d88"),o=a("1842"),r=a("0ee5"),n=a("2f62"),c=a("9f53");n={name:"Account",components:{addEdit:l.default,resetPassword:o.default},mixins:[s.a,c.a],computed:{...Object(n.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"account"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{sitem:null,statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],statusList:r.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{name:"",username:"",status:"",page:1,size:15},tableData:[],tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1,table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"nickname",label:"真实姓名",width:"110px"},{prop:"role_name",label:"角色名称",width:"110px"},{prop:"mobile",label:"联系电话",width:"110px"},{prop:"depart_info",label:"所在部门",_slot_:"depart_info"},{prop:"email",label:"邮箱"},{prop:"status",label:"状态",_slot_:"status",width:"70px"},{prop:"addtime",label:"创建时间",sortable:!0,width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"140px",_slot_:"operation"}]}},mounted(){this.searchList()},methods:{restSearch(){this.parmValue={name:"",username:"",status:"",page:1,size:10},this.searchList()},openModal(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},openPasswordModal(e,t){this.passwordModel=!0,this.passwordModelId=e,this.isPasswordDetail=t},async deleteById(e,t){await this.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{var a=await i.a.status({id:e,status:"1"===t?"0":"1"});a&&0===a.code?(this.$notify.success({title:"删除成功",message:""}),this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}).catch(()=>{})},async searchList(){this.loading=!0;var e=await i.a.list(this.parmValue);e&&0===e.code&&e.data?(this.tableData=e.data.list,this.pageInfo.total=Number(e.data.count)):e&&100<=e.code&&e.code<=104?await this.logout():(this.tableData=[],this.pageInfo.total=0),this.loading=!1},async statusConfirm(e,t){await this.$confirm(`确定要改为${"1"===t?"禁用":"启用"}?`,{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{this.loading=!0;var a=await i.a.status({id:e,status:"1"===t?"0":"1"});a&&0===a.code?(this.loading=!1,this.$notify.success({title:"状态修改成功!",message:""}),await this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}).catch(()=>{})}}},a("dbad"),a=a("2877"),n=Object(a.a)(n,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"account pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 0 80px"}},[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"120px"},attrs:{span:4}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"账号状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return a("el-option",{key:"status"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"150px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"业务员姓名"},model:{value:e.parmValue.name,callback:function(t){e.$set(e.parmValue,"name",t)},expression:"parmValue.name"}})],1),a("el-col",{staticStyle:{width:"160px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"手机号"},model:{value:e.parmValue.username,callback:function(t){e.$set(e.parmValue,"username",t)},expression:"parmValue.username"}})],1),a("el-col",{staticStyle:{width:"54px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"primary",icon:"el-icon-search"},on:{click:e.searchList}})],1),a("el-col",{staticStyle:{width:"66px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1)],1)],1)]}},{key:"depart_info",fn:function(t){return t=t.scope,e._l(t.row.depart_info,(function(t,s){return a("el-tag",{key:t+s,staticStyle:{margin:"0 3px 0 0"},attrs:{size:e.tablebtnSize,type:"''"}},[e._l(t,(function(t,i){return a("span",{key:t+s+i},[a("span",{directives:[{name:"show",rawName:"v-show",value:0<i,expression:"cindex > 0"}]},[e._v("/")]),a("span",[e._v(e._s(t))])])})),e._v(" "+e._s(t.name))],2)}))}},{key:"status",fn:function(t){var s=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==s.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==s.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"002"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"重置密码",placement:"top"}},[a("i",{staticClass:"el-icon-refresh-left tb-icon",on:{click:function(t){return e.openPasswordModal(s.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(s.row.id,!0,s.row)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(s.row.id,!1,s.row)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e()]}}],null,!1,2288877523)}):e._e(),a("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}}),a("reset-password",{attrs:{id:e.passwordModelId,"show-model":e.passwordModel,"is-detail":e.isPasswordDetail},on:{refresh:e.searchList,cancel:function(t){e.passwordModel=!1}}})],1):a("div",[a("no-auth")],1)])}),[],!1,null,"9948c13c",null);t.default=n.exports},c571:function(e,t,a){},c60c:function(e,t,a){},c863:function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("9f53"),l=a("0ee5"),o=a("345e"),r=a("7285"),n=a("2f62");n={name:"productWeido",mixins:[s.a,i.a],components:{addEdit:r.default},computed:{...Object(n.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"stockCount"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{options:[],sitem:null,statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],statusList:l.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{name:"",username:"",status:"",page:1,size:15},tableData:[],tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1,table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"nickname",label:"商品编码"},{prop:"role_name",label:"商品名称"},{prop:"mobile",label:"分类"},{prop:"email",label:"单位"},{prop:"status",label:"当前库存",_slot_:"status",width:"80px"},{prop:"addtime",label:"待入库"},{prop:"addtime",label:"待出库"},{prop:"addtime",label:"可用库存"},{prop:"addtime",label:"在途库存"}]}},mounted(){this.searchList()},methods:{restSearch(){this.parmValue={},this.searchList()},openModal(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},async deleteById(e,t){},async searchList(){const e=await o.a.goodsList(this.parmValue);e.data.list.forEach(e=>{e={value:e.orderNo,label:e.goods},this.options.push(e)})},async statusConfirm(e,t){}}},a=a("2877"),n=Object(a.a)(n,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"productWeido pagePadding",staticStyle:{padding:"0"}},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 0 80px"}},[a("el-col",{attrs:{span:24}},[a("el-col",{attrs:{span:5}},[a("el-select",{attrs:{size:e.searchSize,filterable:"",placeholder:"请选择商品"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-col",{staticStyle:{width:"74px","margin-left":"10px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"primary",icon:"el-icon-search",label:""},on:{click:e.searchList}},[e._v("搜索")])],1),a("el-col",{staticClass:"mr5",staticStyle:{width:"74px","margin-left":"10px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{size:e.searchSize,icon:"el-icon-refresh-right"},on:{click:e.searchList}},[e._v("重置")])],1)],1)],1)],1)]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"002"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"重置密码",placement:"top"}},[a("i",{staticClass:"el-icon-refresh-left tb-icon",on:{click:function(t){return e.openPasswordModal(s.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(s.row.id,!0,s.row)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(s.row.id,!1,s.row)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e()]}}],null,!1,2828932283)}),a("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1),a("add-edit",{attrs:{showModel:e.showModel,id:e.modelId,isDetail:e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"11ac092f",null);t.default=n.exports},c980:function(e,t,a){},ccb2:function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("9f53"),l=a("4af7");const o="stock/";var r=(e,t)=>Object(l.a)(o+"statistics",e,"post",t),n=(e,t)=>Object(l.a)(o+"stockLog",e,"post",t),c=a("ec1b"),d=a.n(c),u=a("3e5a");c=a("2f62"),c={name:"survey",mixins:[s.a,i.a],components:{addEdit:u.default,countTo:d.a},computed:{...Object(c.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"survey"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{isSize:!0,isDesabled:"",options:[],startVal:0,stock:[],stock_list:[{id:"1",icon:"el-icon-box",label:"当前库存",num:0,endVal:0},{id:"2",icon:"el-icon-download",label:"待入库",endVal:0,num:0},{id:"3",icon:"el-icon-upload2",label:"待出库",endVal:0,num:0},{id:"4",icon:"el-icon-shopping-cart-full",label:"可用库存",endVal:0,num:0},{id:"5",icon:"el-icon-truck",label:"在途库存",num:0,endVal:0}],arr1:[],loading:!0,showModel:!1,isDetail:!1,modelId:0,tableData:[],table:{stripe:!0,border:!0},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"id",label:"记录编号"},{prop:"author",label:"操作人"},{prop:"reviewer",label:"部门"},{prop:"type",label:"库存类型"},{prop:"number",label:"操作数量"},{prop:"typeo",label:"库存来源"},{prop:"addTime",label:"操作时间"}],parmValue:{}}},mounted(){this.searchList()},methods:{wchange(e){},restSearch(){},openModal(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},async deleteById(e,t){},getCompany(e){this.isDesabled=e,this.stockList()},async stockList(){var{value1:e,value2:t,value3:a,value4:s,value5:i}=(await r(this.parmValue)).data;this.stock.push(e,t,a,s,i);for(let l=0;l<=this.stock_list.length-1;l++)this.stock_list[l].endVal=this.stock[l]},async searchList(){this.loading=!0;var e=await n(this.parmValue);e&&0===e.code&&e.data?(this.tableData=e.data.list,this.pageInfo.total=Number(e.data.count)):e&&100<=e.code&&e.code<=104?await this.logout():(this.tableData=[],this.pageInfo.total=0),this.loading=!1},async statusConfirm(e,t){}}},a("ce6a"),a=a("2877"),c=Object(a.a)(c,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"stockWarning pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"20px 0 0 30px"}},[a("el-col",{attrs:{span:8}},[a("CompanySearch",{staticStyle:{dispaly:"inline-block","padding-left":"10px"},attrs:{isSize:e.isSize},on:{searchCard:e.getCompany}})],1),a("el-col",{attrs:{span:8}},[a("StockSearch",{attrs:{isDisabled:e.isDesabled,isSize:e.isSize}})],1)],1)],1),a("div",{staticClass:"stock-survey clear"},e._l(e.stock_list,(function(t){return a("el-row",{key:t.id,staticStyle:{float:"left"}},[a("el-col",{staticClass:"card",attrs:{span:24}},[a("el-card",{attrs:{shadow:"always"}},[a("i",{staticClass:"icon",class:t.icon}),a("countTo",{staticStyle:{display:"block"},attrs:{startVal:e.startVal,endVal:t.endVal,duration:3e3}}),a("p",{staticStyle:{"margin-top":"5px"}},[e._v(e._s(t.label))])],1)],1)],1)})),1),a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"row-click":e.handClick,"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%",height:"30px","line-height":"30px"}},[a("i",{staticClass:"el-icon-s-unfold",staticStyle:{height:"10px"}}),e._v("库存操作记录 ")])]}}],null,!1,3470008529)}),a("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1),a("add-edit",{attrs:{showModel:e.showModel,id:e.modelId,isDetail:e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"2a44b859",null);t.default=c.exports},cdf1:function(e,t,a){"use strict";a.r(t);var s={props:["showModel"],data(){return{loading:!1,icon:"",showModelThis:this.showModel}},watch:{icon(e){e&&(this.showModelThis=!1,this.$emit("setVal",e))},showModel:function(e){this.showModelThis=e},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){}}};a=a("2877"),s=Object(a.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"选择图标",center:!0,align:"left",top:"7vh",width:"840px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("icon-list",{model:{value:e.icon,callback:function(t){e.icon=t},expression:"icon"}})],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v("取 消")])],1)],1)],1)],1)}),[],!1,null,null,null);t.default=s.exports},ce6a:function(e,t,a){"use strict";a("9fde")},d160:function(e,t,a){"use strict";a.r(t);var s=a("9f53"),i=a("5daa"),l=a("2f62");l={name:"standBook",mixins:[s.a],computed:{...Object(l.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"standBook"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{options:[{value:"1",label:"确认单台账"},{value:"2",label:"确认单明细"},{value:"3",label:"采购单台账"},{value:"4",label:"采购单明细"},{value:"5",label:"退货台账"}],value:"1",loading:!1,fileUrl:i.a.baseURL+"admin/",parmValue:{start:"",end:""},tableData:[]}},mounted(){},methods:{restSearch(){this.value="1",this.parmValue={starttime:"",endtime:""}},async timeReturned(e){""!==e.startTime?this.parmValue.start=e.startTime:this.parmValue.start="",""!==e.endTime?this.parmValue.end=e.endTime:this.parmValue.end=""},async batchExport(){if(!this.loading)if(""!==this.parmValue.start&&""!==this.parmValue.end){this.loading=!0;let e="";e="1"===this.value?"downreportqrdtz":"2"===this.value?"downreportqrd":"3"===this.value?"downreportcgdtz":"4"===this.value?"downreportcgd":"downreportthtz",this.loading=!0;let t="aplication/zip";axios({method:"post",url:i.a.baseURL+e,responseType:"blob",data:this.parmValue,headers:{Accept:t}}).then(e=>{if(e&&200==e.status&&e.data){var a=(this.options.find(e=>e.value==this.value)||{}).label||"--",s=new Blob([e.data],{type:t});s=window.URL.createObjectURL(s);let i=document.createElement("a");i.style.display="none",i.href=s,i.setAttribute("download",`${this.parmValue.start}至${this.parmValue.end}${a}.zip`),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(s),this.$message.success(a+"信息导出成功!"),setTimeout(()=>{this.loading=!1},500)}else this.$message.error(e.data.message),setTimeout(()=>{this.loading=!1},500)}).catch(e=>{this.loading=!1})}else this.$message.warning("请选择时间区间!")}}},a=a("2877"),l=Object(a.a)(l,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"standBook pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("el-row",{staticStyle:{padding:"10px 0 0 0"}},[a("el-col",{staticClass:"fl",staticStyle:{width:"200px",padding:"0 10px 0 0"},attrs:{span:4}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,placeholder:"请选择类型"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-col",{staticStyle:{width:"292px"},attrs:{span:6}},[a("period-date-picker",{attrs:{start:e.parmValue.start,end:e.parmValue.end,type:2,width:"135px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1),e.powers.some((function(e){return"049"==e}))?a("el-col",{staticClass:"fr",staticStyle:{width:"83px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"primary",icon:"el-icon-download",size:e.searchSize},on:{click:function(t){return e.batchExport(e.selection)}}},[e._v("导出")])],1):e._e(),a("el-col",{staticClass:"fr",staticStyle:{width:"66px",margin:"0 0 0 10px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1)],1):a("no-auth")],1)}),[],!1,null,"d607e656",null);t.default=l.exports},d2f9:function(e,t,a){"use strict";a.r(t);var s={name:"handover",props:["showModel","id","isDetail"],components:{addEditForm:a("d513").default},data(){return{title:"添加离职交接",showModelThis:this.showModel}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.loading=!0,"add"===this.id?(this.title="添加离职交接",this.rulesThis=this.rules):this.isDetail?(this.title="离职交接详情",this.rulesThis={}):(this.title="修改离职交接",this.rulesThis=this.rules),this.loading=!1},handClick(e){this.showModelThis=e},refresh(e){this.showModelThis=e,this.$emit("refresh",!0)}}};a=a("2877"),s=Object(a.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"22vh",width:"700px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",{staticStyle:{"margin-top":"-20px"}},[e.showModel?t("add-edit-form",{attrs:{id:e.id,"show-model":e.showModel,"is-detail":e.isDetail},on:{closeModel:e.handClick,refresh:e.refresh}}):e._e()],1)],1)}),[],!1,null,"1eaef16c",null);t.default=s.exports},d4aa:function(e,t,a){"use strict";a.r(t);var s=a("f291"),i=a("88ec"),l=a("0ee5"),o=a("e66a"),r=a("f5ed"),n=a("9f53"),c=a("2f62");c={name:"role",mixins:[r.a,n.a],components:{addEdit:s.default},computed:{...Object(c.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"role"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{statusList:l.a,roleLevel:o.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{loginName:"",fullName:"",type:2,page:1,size:15},statusOptions:[{id:0,label:"禁用"},{id:1,label:"启用"}],authOptions:[{id:"1",label:"管理员"},{id:"2",label:"非管理员"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"role_name",label:"角色名称"},{prop:"level",label:"角色等级",_format_:e=>(this.authOptions.find(t=>t.id==e.level)||{}).label},{prop:"addtime",label:"创建时间",sortable:!0},{prop:"status",label:"状态",sortable:!0,_slot_:"status"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted(){this.searchList()},methods:{restSearch(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={status:"",level:"",role_name:"",page:1,size:15},this.searchList()},openModal(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},async changeStatus(e,t){await this.$confirm(`确定要改为${"1"===t?"禁用":"启用"}?`,{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{var a=await i.a.status({roleid:e,status:"1"===t?"0":"1"});a&&0===a.code?(this.$notify.success({title:"状态修改成功",message:""}),this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}).catch(()=>{})},async searchList(){this.loading=!0;var e=await i.a.list(this.parmValue);e&&0===e.code&&e.data?(this.tableData=e.data.list,this.pageInfo.total=Number(e.data.count)):e&&100<=e.code&&e.code<=104?await this.logout():(this.tableData=[],this.pageInfo.total=0),this.loading=!1}}},a=a("2877"),c=Object(a.a)(c,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"role pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",[a("el-col",{staticStyle:{padding:"0 0 0 80px"},attrs:{span:24}},[a("el-col",{staticStyle:{width:"120px"},attrs:{span:3}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"角色状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return a("el-option",{key:"status"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"130px",padding:"0 0 0 10px"},attrs:{span:3}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",placeholder:"角色等级"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.level,callback:function(t){e.$set(e.parmValue,"level",t)},expression:"parmValue.level"}},e._l(e.roleLevel,(function(e){return a("el-option",{key:"ruleid"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"150px",padding:"0 0 0 10px"},attrs:{span:3}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"角色名称"},model:{value:e.parmValue.role_name,callback:function(t){e.$set(e.parmValue,"role_name",t)},expression:"parmValue.role_name"}})],1),a("el-col",{staticStyle:{width:"54px"},attrs:{span:3}},[a("el-button",{staticClass:"fr",attrs:{type:"primary",size:e.searchSize,icon:"el-icon-search"},on:{click:e.searchList}})],1),a("el-col",{staticStyle:{width:"66px"},attrs:{span:3}},[a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),e.powers.some((function(e){return"003"==e}))?a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 添加 ")])],1):e._e()],1)],1)],1)]}},{key:"status",fn:function(t){var s=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==s.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==s.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(s.row.id,!0)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(s.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.changeStatus(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.changeStatus(s.row.id,s.row.status)}}})]):e._e()]}}],null,!1,2871923126)}):a("no-auth"),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"50042cfe",null);t.default=c.exports},d513:function(e,t,a){"use strict";a.r(t);var s=a("b5d3"),i={name:"Account",props:["id","isDetail","showModelThis"],mixins:[a("9f53").a],data(){return{isShowForm:!0,roleList:[],loading:!1,showModelThis:this.showModel,ruleForm:{resign_name:[],hand_name:[]},rulesThis:this.rules,rules:{resign_name:[{type:"array",required:!0,message:"请选择离职人",trigger:"change"}],hand_name:[{type:"array",required:!0,message:"请选择接受人",trigger:"change"}]}}},mounted(){this.initForm()},methods:{closeAddEdit(){this.isShowForm=!1,this.$emit("closeModel",!1)},async initForm(){this.loading=!0,"add"===this.id?(this.title="添加离职交接",this.rulesThis=this.rules,await this.resetForm()):(this.isDetail&&(this.rulesThis={}),await this.resetForm(),await this.initData()),this.loading=!1},async initData(){var e=await s.a.detail({id:this.id});if(e&&0===e.code&&e.data){let{hand_name:t,resign_name:a}=e.data;this.ruleForm.resign_name=t.split(","),this.ruleForm.hand_name=a.split(",")}else e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async resetForm(){await this.$nextTick(()=>{this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),this.ruleForm={resign_name:[],hand_name:[]})})},async submitForm(){var e=this.ruleForm.resign_name,t=this.ruleForm.hand_name;""!=e&&e!==t?await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.loading=!0;const t={id:this.id,resign_uid:this.ruleForm.resign_name.toString(),hand_uid:this.ruleForm.hand_name.toString()};let a={};a="add"===this.id?(delete t.id,await s.a.add(t)):await s.a.update(t),this.loading=!1,a&&0===a.code?(e="add"===this.id?"添加成功!":"修改成功!",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh",!1)):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}}):this.$message.error("离职人和接收人不能相同")},handleResignName(e){this.ruleForm.resign_name.push(e.code)},handleHandoverName(e){this.ruleForm.hand_name.push(e.code)}}};a("e169"),a=a("2877"),i=Object(a.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rules,"label-width":"100px"}},[t("el-form-item",{attrs:{label:"离职人",prop:"resign_name"}},[t("search-account",{attrs:{value:e.ruleForm.resign_name,size:e.searchSize,disabled:e.isDetail,placeholder:"离职人名称"},on:{searchChange:e.handleResignName}})],1),t("el-form-item",{attrs:{label:"接受人",prop:"hand_name"}},[t("search-account",{attrs:{value:e.ruleForm.hand_name,size:e.searchSize,disabled:e.isDetail,placeholder:"接受人名称"},on:{searchChange:e.handleHandoverName}})],1)],1),e._v(" 123 showModel:"+e._s(e.showModel)+" + id:"+e._s(e.id)+" + isDetail:"+e._s(e.isDetail)+" showModelThis:"+e._s(e.showModelThis)+" ")],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:e.closeAddEdit}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)}),[],!1,null,"3615b828",null);t.default=i.exports},d54e:function(e,t,a){},d668:function(e,t,a){"use strict";a.r(t);var s=[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"developing"},[e("img",{attrs:{src:a("baa6"),alt:""}})])}],i={name:"developing"},l=(a("df37"),a("2877"));s=Object(l.a)(i,(function(){this.$createElement;return this._self._c,this._m(0)}),s,!1,null,"71020079",null);t.default=s.exports},d6a0:function(e,t,a){},d6f6:function(e,t,a){"use strict";a("8bd2")},d75c:function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("9f53"),l=a("0ee5"),o=a("6df3"),r=a("701e"),n=a("2f62");n={name:"goodsBack",mixins:[s.a,i.a],components:{addEdit:r.default},computed:{...Object(n.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"goodsBack"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],statusList:l.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{status:"",page:1,size:15},tableData:[],tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1,table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"id",label:"序列号",width:"80px"},{prop:"result",label:"入库验收异常原因"},{prop:"result_desc",label:"异常描述"},{prop:"status",label:"状态",_slot_:"status",width:"80px"},{prop:"addtime",label:"创建时间",sortable:!0,width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation",width:"150px"}]}},mounted(){this.searchList()},methods:{async deleteItem(e){await this.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{var t=await o.a.delete({id:e});t&&0===t.code?(this.$notify.success({title:"删除成功",message:""}),this.searchList()):t&&100<=t.code&&t.code<=104?await this.logout():this.$message.warning(t.message)}).catch(()=>{})},restSearch(){this.parmValue={status:"",page:1,size:10},this.searchList()},openModal(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},async searchList(){this.loading=!0;var e=await o.a.list(this.parmValue);e&&0===e.code&&e.data?(this.tableData=e.data.list,this.pageInfo.total=Number(e.data.count)):e&&100<=e.code&&e.code<=104?await this.logout():(this.tableData=[],this.pageInfo.total=0),this.loading=!1},async statusConfirm(e,t){await this.$confirm("确定要改为"+("1"===t?"禁用":"启用")+"?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{this.loading=!0;var a=await o.a.status({id:e,status:"1"===t?"0":"1"});a&&0===a.code?(this.loading=!1,this.$notify.success({title:"状态修改成功!",message:""}),await this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}).catch(()=>{})}}},a=a("2877"),n=Object(a.a)(n,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"storeAnomaly pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 0 80px"}},[a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 新建 ")])],1)],1)],1)]}},{key:"status",fn:function(t){var s=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==s.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==s.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(s.row.id,!0,s.row)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(s.row.id,!1,s.row)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[a("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteItem(s.row.id)}}})]):e._e()]}}],null,!1,439828420)}),a("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1),a("add-edit",{attrs:{showModel:e.showModel,id:e.modelId,isDetail:e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"01dd74bc",null);t.default=n.exports},d79e:function(e,t,a){"use strict";a.r(t);var s=a("4022"),i={name:"Group",props:["showModel","id","isDetail"],mixins:[a("9f53").a],data(){return{loading:!1,title:"添加用户组",showModelThis:this.showModel,ruleForm:{id:this.id,name:"",group_user:[],group_remark:""},rulesThis:this.rules,rules:{name:[{required:!0,message:"请输入组名称",trigger:"blur"},{min:2,max:30,message:"长度在 2 到 30 个字符",trigger:"blur"}],group_user:[{required:!0,message:"请选择数据共享用户",trigger:"change"}],group_remark:[{required:!0,message:"请输入备注",trigger:"blur"},{min:2,max:300,message:"长度在 2 到 300 个字符",trigger:"blur"}]},dataForm:{name:"",status:""},activeOptions:[]}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){await this.getAllActive(),this.loading=!0,"add"===this.id?(this.title="添加用户组",this.rulesThis=this.rules,await this.resetForm()):(this.isDetail?(this.title="用户组详情",this.rulesThis={}):(this.title="修改用户组",this.rulesThis=this.rules),await this.resetForm(),await this.initData()),this.loading=!1},async initData(){var e=await s.a.detail({id:this.id});if(e&&0===e.code){const{group_name:a,group_user:s,group_remark:i}=e.data;var t=s.split(",");this.ruleForm={id:this.id,name:a,group_user:t,group_remark:i}}else e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async resetForm(){await this.$nextTick(()=>{this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),this.ruleForm={id:this.id,name:"",group_user:[],group_remark:""})})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.loading=!0;const t=JSON.parse(JSON.stringify(this.ruleForm));e=t.group_user.join(),t.group_user=e;let a={};a="add"===this.id?(delete t.id,await s.a.add(t)):await s.a.update(t),this.loading=!1,a&&0===a.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}})},async getAllActive(){var e=await s.a.accountall(this.dataForm);e&&0===e.code&&e.data?this.activeOptions=e.data:e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)}}};a("6e4a"),a=a("2877"),i=Object(a.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"10vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",{staticStyle:{"margin-top":"-20px"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"组名称",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入组名称",disabled:e.isDetail},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),a("el-form-item",{attrs:{label:"组成员",prop:"group_user"}},[a("el-select",{staticClass:"setWidth",attrs:{multiple:"",filterable:"",clearable:"",disabled:e.isDetail},model:{value:e.ruleForm.group_user,callback:function(t){e.$set(e.ruleForm,"group_user",t)},expression:"ruleForm.group_user"}},e._l(e.activeOptions,(function(t){return a("el-option",{key:"group_user"+t.id,attrs:{label:t.nickname,value:t.id,disabled:"1"!==t.status}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.nickname))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px",padding:"0 25px 0 0"}},[e._v(e._s(t.role_name))])])})),1)],1),a("el-form-item",{attrs:{label:"备注",prop:"group_remark"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入备注",rows:5,maxlength:"300","show-word-limit":"",disabled:e.isDetail},model:{value:e.ruleForm.group_remark,callback:function(t){e.$set(e.ruleForm,"group_remark",t)},expression:"ruleForm.group_remark"}})],1)],1)],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),a("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"61704ec6",null);t.default=i.exports},d7be:function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("9f53"),l=(a("0ee5"),a("d8a8"),a("3b36")),o=a("2f62");o={name:"allotFlow",mixins:[s.a,i.a],components:{addEdit:l.default},computed:{...Object(o.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"allotFlow"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{options:[{value:"选项1",label:"顺丰"},{value:"选项2",label:"韵达"},{value:"选项3",label:"中通"}],value:"",ruleForm:{},rules:{check_audit:[{required:!0}]},expressage:"",expressage_cost:0,loading:!0,showModel:!1,isDetail:!1,modelId:0,tableData:[],tableData:[],table:{stripe:!0,border:!0},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"nickname",label:"商品编号"},{prop:"role_name",label:"商品名称"},{prop:"mobile",label:"总数量"},{prop:"mobile",label:"异常数量"},{prop:"mobile",label:"异常备注"},{prop:"mobile",label:"入库数量"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}],parmValue:{}}},mounted(){this.searchList()},methods:{restSearch(){this.parmValue={},this.searchList()},openModal(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},async deleteById(e,t){},async searchList(){},async statusConfirm(e,t){},compareStock(){this.stock_go===this.stock_in&&""!==this.stock_go&&""!=this.stock_go&&this.$message({message:"出库仓库不能和入库仓库相同",type:"error"})}}},a("d914"),a=a("2877"),o=Object(a.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"newApply pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("el-form",{ref:"ruleForm",attrs:{disabled:2!==e.myType,model:e.ruleForm,rules:e.rules,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"验货审核",prop:"check_audit"}},[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(e){return[a("div",{staticStyle:{width:"100%",height:"40px"}})]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"002"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"重置密码",placement:"top"}},[a("i",{staticClass:"el-icon-refresh-left tb-icon",on:{click:function(t){return e.openPasswordModal(s.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(s.row.id,!0,s.row)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(s.row.id,!1,s.row)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e()]}}],null,!1,1096419487)})],1),a("el-form-item",[a("el-col",{staticStyle:{"text-align":"right","margin-top":"10px"},attrs:{span:24}},[a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存 ")])],1)],1)],1),a("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1)])}),[],!1,null,null,null);t.default=o.exports},d819:function(e,t,a){"use strict";var s=a("1b69");const i="admin/";t.a={add:(e,t)=>Object(s.a)(i+"WareHouse/add",e,"post",t),list:(e,t)=>Object(s.a)(i+"warelist",e,"post",t),detail:(e,t)=>Object(s.a)(i+"wareinfo",e,"post",t),update:(e,t)=>Object(s.a)(i+"update",e,"post",t),status:(e,t)=>Object(s.a)(i+"accountstatus",e,"post",t),delete:(e,t)=>Object(s.a)(i+"delete",e,"post",t)}},d88e:function(e,t,a){},d8a8:function(e,t,a){"use strict";var s=a("4af7");t.a={list:(e,t)=>Object(s.a)("stock/orderWarnList",e,"post",t),listAll:(e,t)=>Object(s.a)("stock/stockListAll",e,"post",t)}},d914:function(e,t,a){"use strict";a("eb0c")},d93a:function(e,t,a){},db7a:function(e,t,a){"use strict";a.r(t),a=a("2877"),a=Object(a.a)({},void 0,void 0,!1,null,null,null),t.default=a.exports},dbad:function(e,t,a){"use strict";a("a247")},dbe0:function(e,t,a){"use strict";a("ef19")},dc5f:function(e,t,a){"use strict";a.r(t);var s=a("26d7"),i=a("9f53"),l=a("61f7");i={name:"my-test",props:["showModel","id","isDetail","sitem"],mixins:[i.a],data(){return{loading:!1,title:"添加账号",showModelThis:this.showModel,ruleForm:{username:"",name:"",mobile:"",email:"",role_id:"",status:"1",item:[]},rulesThis:this.rules,rules:{name:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("真实姓名不能为空!")):t.length<2||12<t.length||!Object(l.c)(t)||Object(l.d)(t)?a(new Error("真实姓名规则为2~12位汉字!")):a()},trigger:"blur"}],username:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("账号不能为空!")):t.length<6||18<t.length||Object(l.h)(t)||Object(l.i)(t)||!Object(l.b)(t)?a(new Error("账号规则为6~18位数字与字母组合!")):a()},trigger:"blur"}],mobile:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("手机号不能为空!")):Object(l.f)(t)?a():a(new Error("手机号格式不正确!"))},trigger:"blur"}],email:[{required:!1,validator:(e,t,a)=>{""===t||Object(l.j)(t)?a():a(new Error("邮箱格式不正确!"))},trigger:"blur"}],role_id:[{required:!0,message:"请选择角色",trigger:"change"}],item:[{type:"array",required:!0,message:"请选择所在部门",trigger:"change"}],status:[{required:!0,message:"请选择状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.loading=!0,"add"===this.id?(this.title="添加账号",this.rulesThis=this.rules,await this.resetForm()):(this.isDetail?(this.title="账号详情",this.rulesThis={}):(this.title="修改账号",this.rulesThis=this.rules),await this.resetForm(this.sitem)),this.loading=!1},async initData(){var e=await s.a.detail({id:this.id});e&&0===e.code&&e.data?(this.ruleForm=e.data,this.ruleForm.role_id=this.ruleForm.role):e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async resetForm(e){await this.$nextTick(()=>{var t,a,s,i,l,o,r;this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),({username:t,nickname:a,mobile:s,email:i,roleid:l,status:o,item:r}=e),this.ruleForm={username:t||"",name:a||"",mobile:s||"",email:i||"",role_id:l||"",status:o||"",item:r||[]},"add"!==this.id&&!this.isDetail||(this.rules.username[0].required=!1))})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.loading=!0;var{username:t,name:a,mobile:i,email:l,role_id:o,status:e}=JSON.parse(JSON.stringify(this.ruleForm));const r={id:this.id,username:t||"",nickname:a||"",mobile:i||"",email:l||"",role:o||"",status:e||""};let n={};n="add"===this.id?(delete r.id,await s.a.add(r)):await s.a.update(r),this.loading=!1,n&&0===n.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):n&&100<=n.code&&n.code<=104?await this.logout():this.$message.warning(n.message)}})}}},a("36a5"),a=a("2877"),i=Object(a.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},["add"===e.id||e.isDetail?t("el-form-item",{attrs:{label:"登录名",prop:"loginName"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.loginName,callback:function(t){e.$set(e.ruleForm,"loginName",t)},expression:"ruleForm.loginName"}})],1):e._e(),t("el-form-item",{attrs:{label:"姓名",prop:"fullName"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.fullName,callback:function(t){e.$set(e.ruleForm,"fullName",t)},expression:"ruleForm.fullName"}})],1),t("el-form-item",{attrs:{label:"手机号",prop:"tel"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.tel,callback:function(t){e.$set(e.ruleForm,"tel",t)},expression:"ruleForm.tel"}})],1),"add"===e.id?t("el-form-item",{attrs:{label:"密码",prop:"password"}},[t("el-input",{attrs:{type:"password",placeholder:"密码",maxlength:20},model:{value:e.ruleForm.password,callback:function(t){e.$set(e.ruleForm,"password",t)},expression:"ruleForm.password"}})],1):e._e(),"add"===e.id?t("el-form-item",{attrs:{label:"确认密码",prop:"password2"}},[t("el-input",{attrs:{type:"password",placeholder:"再次输入密码",maxlength:20},model:{value:e.ruleForm.password2,callback:function(t){e.$set(e.ruleForm,"password2",t)},expression:"ruleForm.password2"}})],1):e._e()],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"35403c61",null);t.default=i.exports},dc7a:function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("9f53"),l=a("0ee5"),o=a("4af7"),r=(e,t)=>Object(o.a)("stock/stockListAll",e,"post",t),n=a("8582"),c=a("2f62");c={name:"dataWeido",mixins:[s.a,i.a],components:{addEdit:n.default},computed:{...Object(c.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"stockCount"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{options:[],statusList:l.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,tableData:[],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"nickname",label:"仓库编号"},{prop:"role_name",label:"仓库名称"},{prop:"mobile",label:"当前库存"},{prop:"email",label:"待入库"},{prop:"status",label:"待出库",_slot_:"status",width:"80px"},{prop:"addtime",label:"可用库存"},{prop:"addtime",label:"在途库存"}],sitem:null,parmValue:{}}},mounted(){this.searchList(),this.stockName()},methods:{restSearch(){this.parmValue={name:"",username:"",status:"",page:1,size:10},this.searchList()},openModal(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},async deleteById(e,t){},async searchList(){},async statusConfirm(e,t){},async stockName(){let e=(await r(this.parmValue)).data;e.forEach(e=>{let t={value:e.id,label:e.name,children:[]};e.child.forEach(e=>{e={value:e.id,label:e.name},t.children.push(e)}),this.options.push(t)})}}},a=a("2877"),c=Object(a.a)(c,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dataWeido pagePadding",staticStyle:{padding:"0"}},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 0 80px"}},[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"250px"},attrs:{span:5}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择仓库",filterable:"",clearable:"",size:e.searchSize,options:e.options},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1),a("el-col",{staticStyle:{width:"74px","margin-left":"10px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"primary",icon:"el-icon-search",label:""},on:{click:e.searchList}},[e._v("搜索")])],1),a("el-col",{staticClass:"mr5",staticStyle:{width:"74px","margin-left":"10px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{size:e.searchSize,icon:"el-icon-refresh-right"},on:{click:e.searchList}},[e._v("重置")])],1)],1)],1)],1)]}}],null,!1,3611050892)}),a("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1),a("add-edit",{attrs:{showModel:e.showModel,id:e.modelId,isDetail:e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"3caae392",null);t.default=c.exports},dced:function(e,t,a){"use strict";a("f835")},dd7f:function(e,t,a){"use strict";a("2dc2")},df37:function(e,t,a){"use strict";a("9210")},e00d:function(e,t,a){"use strict";a("7569")},e169:function(e,t,a){"use strict";a("fffc")},e2c8:function(e,t,a){},e4b3:function(e,t,a){},e5db:function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("9f53"),l=a("0ee5"),o=(a("fa1b"),a("31c0")),r=a("2f62");r={name:"check",mixins:[s.a,i.a],components:{addEdit:o.default},computed:{...Object(r.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"check"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{sitem:null,statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],statusList:l.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{name:"",username:"",status:"",page:1,size:15},tableData:[],tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1,table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"nickname",label:"真实姓名"},{prop:"role_name",label:"角色名称"},{prop:"mobile",label:"联系电话"},{prop:"email",label:"邮箱"},{prop:"status",label:"状态",_slot_:"status",width:"80px"},{prop:"addtime",label:"创建时间",sortable:!0},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted(){this.searchList()},methods:{restSearch(){this.parmValue={name:"",username:"",status:"",page:1,size:10},this.searchList()},openModal(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},async deleteById(e,t){},async searchList(){},async statusConfirm(e,t){}}},a=a("2877"),r=Object(a.a)(r,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"check pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 0 80px"}},[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"120px"},attrs:{span:4}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"账号状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return a("el-option",{key:"status"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"150px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"业务员姓名"},model:{value:e.parmValue.name,callback:function(t){e.$set(e.parmValue,"name",t)},expression:"parmValue.name"}})],1),a("el-col",{staticStyle:{width:"160px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"手机号"},model:{value:e.parmValue.username,callback:function(t){e.$set(e.parmValue,"username",t)},expression:"parmValue.username"}})],1),a("el-col",{staticStyle:{width:"54px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"primary",icon:"el-icon-search"},on:{click:e.searchList}})],1),a("el-col",{staticStyle:{width:"66px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1)],1)],1)]}},{key:"status",fn:function(t){var s=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==s.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==s.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"002"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"重置密码",placement:"top"}},[a("i",{staticClass:"el-icon-refresh-left tb-icon",on:{click:function(t){return e.openPasswordModal(s.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(s.row.id,!0,s.row)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(s.row.id,!1,s.row)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e()]}}],null,!1,343762658)}),a("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1),a("add-edit",{attrs:{showModel:e.showModel,id:e.modelId,isDetail:e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"7e149118",null);t.default=r.exports},e601:function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("9f53"),l=a("d819"),o=a("a17d"),r=a("2f62");r={name:"storeSet",mixins:[s.a,i.a],components:{addEdit:o.default},computed:{...Object(r.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"storeSet"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{select:"1",input:"",supplierNo:[],stock_sn:"",stock_name:"",link:"",loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{supplierNo:"",wsm_code:"",start:"",end:"",mobile:"",contactor:""},tableData:[],tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1,table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"wsm_code",label:"编号",width:"170px"},{prop:"name",label:"仓库名称"},{prop:"supplierNo",label:"供应商编号",width:"140px"},{prop:"supplier_name",label:"供应商公司","min-width":"140px"},{prop:"contactor",label:"负责人",width:"70px"},{prop:"mobile",label:"负责人电话",width:"100px"},{prop:"addtime",label:"创建时间",width:"140px"},{prop:"",label:"操作",width:"100px",fixed:"right",_noset_:!0,_slot_:"operation"}],statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}]}},mounted(){this.searchList()},methods:{supplierChange(e){e&&e.id?this.parmValue.supplierNo=e.code:this.parmValue.supplierNo="",this.parmValue.page=1,this.searchList()},stockChange(e){e&&e.id?this.parmValue.wsm_code=e.code:this.parmValue.wsm_code="",this.parmValue.page=1,this.searchList()},addList(e){this.$router.push({path:"addStore",query:{id:e}})},restSearch(){this.supplierNo=[],this.input="",this.select="1",this.parmValue={supplierNo:"",wsm_code:"",start:"",end:"",mobile:"",contactor:"",page:1,size:15},this.searchList()},openModal(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},async searchList(){this.loading=!0,this.parmValue.wsm_code="1"===this.select?this.input:"",this.parmValue.contactor="2"===this.select?this.input:"",this.parmValue.mobile="3"===this.select?this.input:"";var e=await l.a.list(this.parmValue);e&&0===e.code&&e.data?(this.tableData=e.data.list,this.pageInfo.total=Number(e.data.count)):e&&100<=e.code&&e.code<=104?await this.logout():(this.tableData=[],this.pageInfo.total=0),this.loading=!1}}},a=a("2877"),r=Object(a.a)(r,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"storeSet pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[a("el-col",{staticStyle:{width:"303px",padding:"0"},attrs:{span:18}},[a("period-date-picker",{attrs:{start:e.parmValue.start,end:e.parmValue.end,type:1,width:"135px",title:"创建",size:e.searchSize},on:{numReturned:function(t){return e.numReturned(t,0)}}})],1),a("el-col",{staticStyle:{width:"420px",padding:"0"},attrs:{span:18}},[a("el-input",{staticClass:"input-with-select",attrs:{placeholder:"关键字",size:e.searchSize},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[a("el-select",{staticStyle:{width:"125px"},attrs:{slot:"prepend",placeholder:"请选择类型"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[a("el-option",{attrs:{label:"仓库编码",value:"1"}}),a("el-option",{attrs:{label:"负责人姓名",value:"2"}}),a("el-option",{attrs:{label:"负责人手机号",value:"3"}})],1),a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchList},slot:"append"})],1)],1),a("el-col",{staticStyle:{width:"66px","padding-left":"10px"},attrs:{span:4}},[a("el-button",{staticClass:"fl",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),a("el-col",{staticClass:"fr",staticStyle:{width:"56px","margin-left":"10px"},attrs:{span:3}},[a("el-button",{attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1),a("el-row",{staticStyle:{padding:"0"}},[a("el-col",{staticStyle:{width:"340px",padding:"0"},attrs:{span:18}},[a("search-customer",{attrs:{size:e.searchSize,code:e.supplierNo,placeholder:"供应商公司名称","is-detail":!1,disabled:!1,names:""},on:{searchChange:e.supplierChange}})],1),e.powers.some((function(e){return"003"==e}))?a("el-col",{staticClass:"mr10 fr",staticStyle:{width:"56px"},attrs:{span:3}},[a("el-button",{staticClass:"fl",attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 新建 ")])],1):e._e()],1)],1)]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(s.row.id,!0)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(s.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e()]}}],null,!1,1595169158)}),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1)])}),[],!1,null,"01191e84",null);t.default=r.exports},e66a:function(e,t,a){"use strict";t.a=[{name:"管理员",code:"1"},{name:"非管理员",code:"2"}]},e692:function(e,t,a){},e7e7:function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("9f53"),l=(a("0ee5"),a("d8a8")),o=a("3b36"),r=a("2f62");r={name:"allotFlow",mixins:[s.a,i.a],components:{addEdit:o.default},computed:{...Object(r.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"allotFlow"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){var e=(e,t,a)=>{""===t&&a(new Error("手机号不能为空!"))};return{stock_go:"",stock_in:"",options:[],ruleForm:{selectStock_go:"",selectStock_in:""},rules:{stock_go_rule:[{required:!0,message:"请选择出库仓库",trigger:"blur"},{validator:e,trigger:"blur"}],stock_in_rule:[{required:!0,message:"请选择入库仓库",trigger:"blur"},{validator:e,trigger:"blur"}],stock_go_product:[{required:!0,message:"请选择入库仓库",trigger:"blur"}]},loading:!0,showModel:!1,isDetail:!1,modelId:0,tableData:[],tableData:[],table:{stripe:!0,border:!0},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"nickname",label:"商品编号"},{prop:"role_name",label:"商品名称"},{prop:"mobile",label:"数量"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}],parmValue:{}}},mounted(){},methods:{submitForm(e){this.$refs[e].validate(e=>!!e&&void alert("submit!"))}},restSearch(){this.parmValue={}},openModal(e,t,a){this.showModel=t,this.modelId=e,this.isDetail=t,this.sitem=a},async deleteById(e,t){},async searchList(){},async statusConfirm(e,t){},async stockName(e=!1){let t=(await l.a.listAll(this.parmValue)).data;t.forEach(e=>{let t={value:e.id,label:e.name,children:[]};e.child.forEach(e=>{e={value:e.id,label:e.name},t.children.push(e)}),this.options.push(t)}),this.options.forEach(e=>{e.value===this.selectStock_go[0]&&e.children.forEach(t=>{t.value===this.selectStock_go[1]&&(this.stock_go=e.label+"/"+t.label)}),e.value===this.selectStock_in[0]&&e.children.forEach(t=>{t.value===this.selectStock_in[1]&&(this.stock_in=e.label+"/"+t.label)})}),""==this.selectStock_in&&""==this.selectStock_go||this.openModal("005",e),this.compareStock()},compareStock(){this.stock_go===this.stock_in&&""!==this.stock_go&&""!=this.stock_go&&this.$message({message:"出库仓库不能和入库仓库相同",type:"error"})}},a("8ea3"),a=a("2877"),r=Object(a.a)(r,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"newApply pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"出库仓库",prop:"stock_go_rule"}},[a("el-cascader",{staticStyle:{width:"30%"},attrs:{placeholder:"请选择出库仓库",filterable:"",clearable:"",size:e.searchSize,options:e.options},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.stockName(!0)}},model:{value:e.ruleForm.selectStock_go,callback:function(t){e.$set(e.ruleForm,"selectStock_go",t)},expression:"ruleForm.selectStock_go"}})],1),a("el-form-item",{attrs:{label:"入库仓库",prop:"stock_in_rule"}},[a("el-cascader",{staticStyle:{width:"30%"},attrs:{placeholder:"请选择入库仓库",filterable:"",clearable:"",size:e.searchSize,options:e.options},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.stockName()}},model:{value:e.ruleForm.selectStock_in,callback:function(t){e.$set(e.ruleForm,"selectStock_in",t)},expression:"ruleForm.selectStock_in"}})],1),a("el-form-item",{attrs:{label:"出库商品",prop:"stock_go_product"}},[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(e){return[a("div",{staticStyle:{width:"100%",height:"40px"}})]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"002"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"重置密码",placement:"top"}},[a("i",{staticClass:"el-icon-refresh-left tb-icon",on:{click:function(t){return e.openPasswordModal(s.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(s.row.id,!0,s.row)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(s.row.id,!1,s.row)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e()]}}],null,!1,1096419487)}),a("el-col",{staticStyle:{"text-align":"right","margin-top":"10px"},attrs:{span:24}},[a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存 ")]),a("el-button",{attrs:{type:"warning"},on:{click:e.submitForm}},[e._v("保 存 并 发 起 流 程 ")])],1)],1)],1),a("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1)])}),[],!1,null,null,null);t.default=r.exports},e85a:function(e,t,a){"use strict";a("a2c9")},e894:function(e,t,a){"use strict";a("c980")},eb0c:function(e,t,a){},eb56:function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("9f53"),l=(a("0ee5"),a("d8a8"),a("3b36")),o=a("2f62");o={name:"allotFlow",mixins:[s.a,i.a],props:["myType"],components:{addEdit:l.default},computed:{...Object(o.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"allotFlow"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{value:"",ruleForm:{},rules:{check_detail:[{required:!0,message:"请选择发货公司",trigger:"blur"}]},expressage:"",expressage_cost:0,loading:!0,showModel:!1,isDetail:!1,modelId:0,tableData:[],tableData:[],table:{stripe:!0,border:!0},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"nickname",label:"商品编号"},{prop:"role_name",label:"商品名称"},{prop:"mobile",label:"总数量"},{prop:"mobile",label:"异常数量"},{prop:"mobile",label:"异常备注"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}],parmValue:{}}},mounted(){this.searchList()},methods:{restSearch(){this.parmValue={},this.searchList()},openModal(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},async deleteById(e,t){},async searchList(){},async statusConfirm(e,t){},compareStock(){this.stock_go===this.stock_in&&""!==this.stock_go&&""!=this.stock_go&&this.$message({message:"出库仓库不能和入库仓库相同",type:"error"})}}},a("4543"),a=a("2877"),o=Object(a.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"newApply pagePadding"},[e._v(" "+e._s(e.myType)+" "),e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("el-form",{ref:"ruleForm",attrs:{disabled:4!==e.myType,model:e.ruleForm,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"验货详情",prop:"check_detail"}},[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(e){return[a("div",{staticStyle:{width:"100%",height:"40px"}})]}},{key:"operation",fn:function(t){var s=t.scope;return[e.powers.some((function(e){return"002"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"重置密码",placement:"top"}},[a("i",{staticClass:"el-icon-refresh-left tb-icon",on:{click:function(t){return e.openPasswordModal(s.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(s.row.id,!0,s.row)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(s.row.id,!1,s.row)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===s.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(s.row.id,s.row.status)}}})]):e._e()]}}],null,!1,1096419487)})],1),a("el-form-item",[a("el-col",{staticStyle:{"text-align":"right","margin-top":"10px"},attrs:{span:24}},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:4===e.myType,expression:"myType === 4"}],attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存 ")])],1)],1)],1),a("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1)])}),[],!1,null,null,null);t.default=o.exports},eb67:function(e,t,a){"use strict";a.r(t);var s=a("7caa"),i=a("ed08"),l=a("5f10"),o=a("9f53");o={name:"Parameter",components:{addEdit:l.default},mixins:[o.a],computed:{powers(){var e=this.$store.getters.btnList.find(e=>"parameter"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{pickerOptions:{disabledDate(e){var t=(new Date).valueOf();t=864e5*parseInt(t/864e5);return e.getTime()<=t}},showModel:!1,loading:!1,modelId:0,tableData:[]}},mounted(){this.getInfor()},methods:{async onSubmit(e){if(!this.loading){this.loading=!0;const t={fields_name:e.field_name,value:e.values,expiretime:e.expiretime,fields:e.fields};t.expiretime=Object(i.c)(new Date(t.expiretime).valueOf()),e=await s.a.update(t),e&&0===e.code?(this.$notify.success({title:e.message,message:""}),await this.getInfor()):e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message),this.loading=!1}},async getInfor(){this.loading=!0;var e=await s.a.list({});e&&0===e.code&&e.data?this.tableData=e.data:e&&100<=e.code&&e.code<=104?await this.logout():this.tableData=[],this.loading=!1},openModal(e){this.showModel=!0,this.modelId=e}}},a("96d7"),a=a("2877"),o=Object(a.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"parameter pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"",border:"",size:e.size}},[a("el-table-column",{attrs:{prop:"field_name",label:"参数名称","show-overflow-tooltip":"",align:"center"}}),e.powers.some((function(e){return"008"==e}))?a("el-table-column",{attrs:{label:"字段值","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"请输入"},model:{value:t.row.values,callback:function(a){e.$set(t.row,"values",a)},expression:"scope.row.values"}})]}}],null,!1,931981273)}):a("el-table-column",{attrs:{prop:"values",label:"字段值","show-overflow-tooltip":"",align:"center"}}),e.powers.some((function(e){return"008"==e}))?a("el-table-column",{attrs:{prop:"expiretime",label:"生效时间","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"datetime",placeholder:"选择日期时间","default-time":"00:00:00"},model:{value:t.row.expiretime,callback:function(a){e.$set(t.row,"expiretime",a)},expression:"scope.row.expiretime"}})]}}],null,!1,2690856561)}):a("el-table-column",{attrs:{prop:"expiretime",label:"生效时间","show-overflow-tooltip":"",align:"center"}}),a("el-table-column",{attrs:{fixed:"right",label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.powers.some((function(e){return"008"==e}))?a("el-link",{staticStyle:{margin:"0 4px"},attrs:{type:"primary",underline:!1,size:e.tablebtnSize},on:{click:function(a){return e.onSubmit(t.row)}}},[e._v(" 提交 ")]):e._e()]}}],null,!1,3380244527)})],1),a("add-edit",{attrs:{showModel:e.showModel,id:e.modelId},on:{cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1)])}),[],!1,null,"1981cc25",null);t.default=o.exports},ebdd:function(e,t,a){"use strict";a("1a20")},ebe4:function(e,t,a){"use strict";a.r(t);var s=a("1c81"),i=a("9f53"),l=a("61f7");i={name:"Account",props:["showModel","id","isDetail"],mixins:[i.a],data(){return{company_img:"",roleList:[],loading:!1,title:"添加财务信息",showModelThis:this.showModel,ruleForm:{companyNo:this.id,company_name:"",company_license:"",mobile:"",bank_name:"",bankNo:"",contector:"",company_address:"",company_img:""},rulesThis:this.rules,rules:{company_license:[{required:!0,validator:(e,t,a)=>{""!==t?Object(l.e)(t)?a():a(new Error("纳税人识别号不正确!")):a(new Error("请输入纳税人识别号!"))},trigger:"blur"}],company_name:[{required:!0,message:"请输入单位名称",trigger:"blur"}],bank_name:[{required:!0,message:"请输入银行名称",trigger:"blur"}],bankNo:[{required:!0,message:"请输入银行卡号",trigger:"blur"}],mobile:[{required:!0,validator:(e,t,a)=>{""!==t?Object(l.g)(t)||Object(l.f)(t)?a():a(new Error("联系电话格式不正确!")):a(new Error("请输入联系电话!"))},trigger:"blur"}],company_address:[{required:!0,message:"请输入联系地址",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.loading=!0,"add"===this.id?(this.title="添加财务信息",this.rulesThis=this.rules,await this.resetForm()):(this.isDetail?(this.title="财务信息详情",this.rulesThis={}):(this.title="修改财务信息",this.rulesThis=this.rules),await this.resetForm(),await this.initData()),this.loading=!1},async getRole(){var e=await s.a.getRole({level:"",role_name:""});0===e.code&&e.data?this.roleList=e.data:e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async initData(){var e=await s.a.detail({companyNo:this.id});e&&0===e.code?(this.ruleForm=e.data,this.ruleForm.companyNo=this.id):e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async resetForm(){await this.$nextTick(()=>{this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),this.ruleForm={companyNo:this.id,company_name:"",company_license:"",mobile:"",bank_name:"",bankNo:"",contector:"",company_address:"",company_img:""})})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.loading=!0;const t=JSON.parse(JSON.stringify(this.ruleForm));let a={};a="add"===this.id?(delete t.id,await s.a.add(t)):await s.a.update(t),this.loading=!1,a&&0===a.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}})},UploadErrorEvent(){this.$message.error("图片上传失败!"),this.ruleForm.company_img="",this.company_img="",this.$refs.ruleForm.validateField("company_img")},UploadSuccessEvent(e){this.company_img=e.url,this.ruleForm.company_img=e.url,this.$message.success("图片上传成功!"),this.$refs.ruleForm.validateField("company_img")},beforeAvatarUpload(e){let t=!1;return"image/jpg"!==e.type&&"image/png"!==e.type&&"image/bmp"!==e.type&&"image/jpeg"!==e.type&&"image/gif"!==e.type||(t=!0),e=e.size/1024/1024<1,t||this.$message.error("图片格式不正确!"),e||this.$message.error("图片大小不能超过 1MB!"),t&&e}}},a("4ebf"),a=a("2877"),i=Object(a.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"单位名称",prop:"company_name"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.company_name,callback:function(t){e.$set(e.ruleForm,"company_name",t)},expression:"ruleForm.company_name"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"纳税人识别号",prop:"company_license"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.company_license,callback:function(t){e.$set(e.ruleForm,"company_license",t)},expression:"ruleForm.company_license"}})],1)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"银行名称",prop:"bank_name"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.bank_name,callback:function(t){e.$set(e.ruleForm,"bank_name",t)},expression:"ruleForm.bank_name"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"银行卡号",prop:"bankNo"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.bankNo,callback:function(t){e.$set(e.ruleForm,"bankNo",t)},expression:"ruleForm.bankNo"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"联系人",prop:"contector"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.contector,callback:function(t){e.$set(e.ruleForm,"contector",t)},expression:"ruleForm.contector"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"联系电话",prop:"mobile"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile",t)},expression:"ruleForm.mobile"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"联系地址",prop:"company_address"}},[t("el-input",{attrs:{type:"textarea",rows:3,disabled:e.isDetail},model:{value:e.ruleForm.company_address,callback:function(t){e.$set(e.ruleForm,"company_address",t)},expression:"ruleForm.company_address"}})],1)],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"08fcbb99",null);t.default=i.exports},ec1b:function(e,t,a){e.exports=function(e){function t(s){if(a[s])return a[s].exports;var i=a[s]={i:s,l:!1,exports:{}};return e[s].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var a={};return t.m=e,t.c=a,t.i=function(e){return e},t.d=function(e,a,s){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:s})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=2)}([function(e,t,a){a=a(4)(a(1),a(5),null,null),e.exports=a.exports},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a(3);t.default={props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!1,default:2017},duration:{type:Number,required:!1,default:3e3},autoplay:{type:Boolean,required:!1,default:!0},decimals:{type:Number,required:!1,default:0,validator:function(e){return 0<=e}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default:function(e,t,a,s){return a*(1-Math.pow(2,-10*e/s))*1024/1023+t}}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=(0,s.requestAnimationFrame)(this.count)},pauseResume:function(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause:function(){(0,s.cancelAnimationFrame)(this.rAF)},resume:function(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,(0,s.requestAnimationFrame)(this.count)},reset:function(){(this.startTime=null,s.cancelAnimationFrame)(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(e){this.startTime||(this.startTime=e),e=(this.timestamp=e)-this.startTime,this.remaining=this.localDuration-e,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(e,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(e,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(e/this.localDuration):this.printVal=this.localStartVal+(this.localStartVal-this.startVal)*(e/this.localDuration),this.countDown?this.printVal=this.printVal<this.endVal?this.endVal:this.printVal:this.printVal=this.printVal>this.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),e<this.localDuration?this.rAF=(0,s.requestAnimationFrame)(this.count):this.$emit("callback")},isNumber:function(e){return!isNaN(parseFloat(e))},formatNumber:function(e){e=e.toFixed(this.decimals);e=(e+="").split(".");var t=e[0],a=(e=1<e.length?this.decimal+e[1]:"",/(\d+)(\d{3})/);if(this.separator&&!this.isNumber(this.separator))for(;a.test(t);)t=t.replace(a,"$1"+this.separator+"$2");return this.prefix+t+e+this.suffix}},destroyed:function(){(0,s.cancelAnimationFrame)(this.rAF)}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),a=a(0),a=a&&a.__esModule?a:{default:a},t.default=a.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",a.default)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=0,i="webkit moz ms o".split(" "),l=void 0,o=void 0;if("undefined"==typeof window)t.requestAnimationFrame=l=function(){},t.cancelAnimationFrame=o=function(){};else{t.requestAnimationFrame=l=window.requestAnimationFrame,t.cancelAnimationFrame=o=window.cancelAnimationFrame;for(var r,n=0;n<i.length&&(!l||!o);n++)r=i[n],t.requestAnimationFrame=l=l||window[r+"RequestAnimationFrame"],t.cancelAnimationFrame=o=o||window[r+"CancelAnimationFrame"]||window[r+"CancelRequestAnimationFrame"];l&&o||(t.requestAnimationFrame=l=function(e){var t=(new Date).getTime(),a=Math.max(0,16-(t-s)),i=window.setTimeout((function(){e(t+a)}),a);return s=t+a,i},t.cancelAnimationFrame=o=function(e){window.clearTimeout(e)})}t.requestAnimationFrame=l,t.cancelAnimationFrame=o},function(e,t){e.exports=function(e,t,a,s){var i,l,o=e=e||{},r=typeof e.default;e="function"==typeof(o="object"==r||"function"==r?(i=e).default:o)?o.options:o;return t&&(e.render=t.render,e.staticRenderFns=t.staticRenderFns),a&&(e._scopeId=a),s&&(l=Object.create(e.computed||null),Object.keys(s).forEach((function(e){var t=s[e];l[e]=function(){return t}})),e.computed=l),{esModule:i,exports:o,options:e}}},function(e,t){e.exports={render:function(){var e=this.$createElement;return(this._self._c||e)("span",[this._v("\n "+this._s(this.displayValue)+"\n")])},staticRenderFns:[]}}])},ec9c:function(e,t,a){"use strict";a("3b60")},ed9c:function(e,t,a){"use strict";a("b399")},ee5c:function(e,t,a){"use strict";a.r(t);var s=a("f5ed"),i=a("2623"),l=a("9cd7"),o=a("0ee5"),r=a("2f62"),n=a("9f53");r={name:"organize",components:{addEdit:l.default},mixins:[s.a,n.a],computed:{...Object(r.b)(["tablebtnSize","searchSize","size"]),powers(){var e=this.$store.getters.btnList.find(e=>"organize"==e.menu_route)||{};return e&&e.action&&0<e.action.length?e.action:[]}},data(){return{titleList:[],sitem:null,statusList:o.a,loading:!0,showModel:!1,showInterface:!1,isDetail:!1,isAdd:!0,level:1,modelId:0,formData:{},parentIds:"",parmValue:{pid:"",name:"",nickname:""},depart:[],item:[],passwordModel:!1,passwordModelId:0}},mounted(){this.searchList()},methods:{restSearch(){this.parmValue={pid:"",name:"",nickname:""},this.searchList()},async changeBreadcrumb(e){e+1!==this.titleList.length?(this.parmValue.pid=this.titleList[e].id,this.titleList=this.titleList.slice(0,e+1)):(this.parmValue.pid=0,this.titleList=[]),await this.searchList()},async openChildren(e){this.parmValue.pid=e.id,e={id:e.id,titleName:e.name},this.titleList.push(e),await this.searchList()},openModal(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},openPasswordModal(e,t){this.passwordModel=!0,this.passwordModelId=e,this.isPasswordDetail=t},async setUpEdit(e,t){"1"===t?(e=await i.a.userp({id:e,position:"2"}))&&0===e.code?(this.$notify.success({title:"设置成功!",message:""}),await this.searchList()):e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message):this.$message.warning("该账户已是部门负责人!")},addEditFn(e,t,a,s,i,l){this.showModel=!0,this.modelId=e,this.level=a,this.parentIds=t,this.isDetail=s,this.isAdd=i,this.formData=l},async setstatus(e,t,a,s){await this.$confirm(`确定要${"0"===s?"启用":"禁用"}?`,{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{var t=await i.a.status({id:e,status:"1"===s?"0":"1"});t&&0===t.code?(this.$notify.success({title:"修改成功!",message:""}),await this.searchList()):t&&100<=t.code&&t.code<=104?await this.logout():this.$message.warning(t.message)}).catch(()=>{})},async del(e,t,a,s){await this.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{var t=await i.a.delete({id:e});t&&0===t.code?(this.$notify.success({title:"删除成功!",message:""}),await this.searchList()):t&&100<=t.code&&t.code<=104&&await this.logout()}).catch(()=>{})},async concatData(e,t,a){this.loading=!0;var s=await i.a.list({});let l=[];s&&0===s.code&&s.data?l=s.data:s&&100<=s.code&&s.code<=104?await this.logout():this.$message.warning(s.message);let o=JSON.parse(JSON.stringify(this.depart));o=o.map((s,i)=>((1===a?e:t===s.id)&&(s.child=l[i].child),s)),this.depart=o,this.loading=!1},async deleteById(e,t){await this.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{var a=await i.a.status({id:e,status:"1"===t?"0":"1"});a&&0===a.code?(this.$notify.success({title:"删除成功",message:""}),this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}).catch(()=>{})},async searchList(){this.loading=!0;var e,t,a=await i.a.list(this.parmValue);a&&0===a.code&&a.data?(({depart:e,item:t}=a.data),this.depart=e,this.item=t):a&&100<=a.code&&a.code<=104?await this.logout():(this.depart=[],this.item=[]),this.loading=!1},async statusConfirm(e,t){await this.$confirm(`确定要改为${"1"===t?"禁用":"启用"}?`,{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{this.loading=!0;var a=await i.a.status({id:e,status:"1"===t?"0":"1"});a&&0===a.code?(this.loading=!1,this.$notify.success({title:"状态修改成功!",message:""}),await this.searchList()):a&&100<=a.code&&a.code<=104?await this.logout():this.$message.warning(a.message)}).catch(()=>{})}}},a("34e4"),a=a("2877"),r=Object(a.a)(r,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"organize pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{padding:"12px 0 15px 0"},attrs:{span:24}},[a("div",{staticClass:"my-breadcrumb clear"},e._l(e.titleList,(function(t,s){return a("div",{key:t+s,staticClass:"my-breadcrumb-item",class:{chover:!0},on:{click:function(t){return e.changeBreadcrumb(s)}}},[a("span",{staticClass:"label"},[e._v(e._s(t.titleName))]),s+1!==e.titleList.length?a("span",{staticClass:"separator"},[e._v("/")]):e._e()])})),0)]),a("el-col",{attrs:{span:24}},[a("el-row",{staticStyle:{padding:"0 0 3px 0"}},[a("el-col",{staticStyle:{width:"200px"},attrs:{span:8}},[a("el-input",{attrs:{placeholder:"部门名称",size:e.searchSize},model:{value:e.parmValue.name,callback:function(t){e.$set(e.parmValue,"name",t)},expression:"parmValue.name"}})],1),a("el-col",{staticStyle:{width:"250px",padding:"0 0 0 10px"},attrs:{span:8}},[a("el-input",{attrs:{placeholder:"员工姓名",size:e.searchSize},model:{value:e.parmValue.nickname,callback:function(t){e.$set(e.parmValue,"nickname",t)},expression:"parmValue.nickname"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchList},slot:"append"})],1)],1),a("el-col",{staticStyle:{width:"195px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")]),e.powers.some((function(e){return"003"==e}))?a("el-button",{staticStyle:{float:"right"},attrs:{type:"success",size:e.searchSize},on:{click:function(t){return e.addEditFn(0,e.parmValue&&""!==e.parmValue.pid?e.parmValue.pid:"0",1,!1,!0,{})}}},[e._v(" 添加 ")]):e._e()],1)],1)],1)],1)],1),a("el-row",{attrs:{gutter:10}},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("el-col",{attrs:{span:24}},[a("organize-tree",{staticStyle:{"margin-left":"-5px"},attrs:{list:e.depart,level:1,pid:0},on:{addEdit:e.addEditFn,openChildren:e.openChildren,status:e.setstatus,del:e.del}}),a("staff-tree",{staticStyle:{"margin-left":"-5px"},attrs:{list:e.item,level:1,pid:0},on:{setUpEdit:e.setUpEdit}})],1):e._e(),e.item&&0===e.item.length&&e.depart&&0===e.depart.length?a("div",{staticClass:"no-data"},[e._v(" 暂无数据 ")]):e._e()],1),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,level:e.level,pid:e.parentIds,"is-add":e.isAdd,"form-data":e.formData,type:e.parmValue.type,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1)])}),[],!1,null,"ad19a3b4",null);t.default=r.exports},ef19:function(e,t,a){},ef3c:function(e,t,a){"use strict";a.r(t);var s={created(){var{params:e,query:t}=this.$route,{path:e}=e;this.$router.replace({path:"/welcome/dashboard"+e,query:t})},render:function(e){return e()}};a=a("2877"),s=Object(a.a)(s,void 0,void 0,!1,null,null,null);t.default=s.exports},f291:function(e,t,a){"use strict";a.r(t);var s=a("88ec"),i=a("e66a"),l=a("61f7"),o={name:"Role",props:["showModel","id","isDetail"],mixins:[a("9f53").a],data(){return{loading:!1,title:"添加角色",private_data:[],showModelThis:this.showModel,roleLevel:i.a,ruleForm:{role_name:"",level:"1"},action_data:[],action:[],roleActive:{rules:[]},roleList:[],ruleList:[],dataList:[],actionList:[],rulesThis:this.rules,rules:{role_name:[{required:!0,validator:(e,t,a)=>{""===t?a(new Error("角色名称不能为空!")):t.lenght<2||10<t.lenght||!Object(l.c)(t)||Object(l.d)(t)?a(new Error("角色名称规则为2~10位汉字!")):a()},trigger:"blur"}],level:[{required:!0,message:"请选择角色等级",trigger:"change"}]}}},computed:{indeterminateCheck(){return e=>{var t=e.action.filter(t=>-1<e.checkList.findIndex(e=>e===t.id)).length,a=e.action.filter(t=>-1==e.checkList.findIndex(e=>e===t.id)).length;return 0<t&&0<a}},indeterminateField(){return e=>{var t=e.action_data.filter(t=>-1<e.fieldList.findIndex(e=>e===t.id)).length,a=e.action_data.filter(t=>-1==e.fieldList.findIndex(e=>e===t.id)).length;return 0<t&&0<a}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{handleCheckAllChange(e,t,a,s){this.actionList[t].child[s].checkAll=e,this.$set(this.actionList,t,a),this.actionList[t].child[s].action.forEach(a=>{var i=this.actionList[t].child[s].checkList.findIndex(e=>e===a.id);e&&-1==i?this.actionList[t].child[s].checkList.push(a.id):!e&&-1<i&&this.actionList[t].child[s].checkList.splice(i,1)})},handleFieldAllChange(e,t,a,s){this.actionList[t].child[s].fieldAll=e,this.$set(this.actionList,t,a),this.actionList[t].child[s].action_data.forEach(a=>{var i=this.actionList[t].child[s].fieldList.findIndex(e=>e===a.id);e&&-1==i?this.actionList[t].child[s].fieldList.push(a.id):!e&&-1<i&&this.actionList[t].child[s].fieldList.splice(i,1)})},handleCheckedGroupChange(e,t,a,s){this.actionList[t].child[s].checkAll=this.actionList[t].child[s].action.every(e=>-1<this.actionList[t].child[s].checkList.findIndex(t=>t===e.id)),this.$set(this.actionList,t,a)},handleFieldGroupChange(e,t,a,s){this.actionList[t].child[s].fieldAll=this.actionList[t].child[s].action_data.every(e=>-1<this.actionList[t].child[s].fieldList.findIndex(t=>t===e.id)),this.$set(this.actionList,t,a)},handleCheckedChange(e,t,a,s,i){e?-1==this.actionList[a].child[s].checkList.indexOf(t)&&this.actionList[a].child[s].checkList.push(t):(-1<(e=this.actionList[a].child[s].checkList.findIndex(e=>e==t))&&this.actionList[a].child[s].checkList.splice(e,1),this.actionList[a].child[s].checkAll=!1),this.$set(this.actionList,a,i)},handleFieldChange(e,t,a,s,i){e?-1==this.actionList[a].child[s].fieldList.indexOf(t)&&this.actionList[a].child[s].fieldList.push(t):(-1<(e=this.actionList[a].child[s].fieldList.findIndex(e=>e==t))&&this.actionList[a].child[s].fieldList.splice(e,1),this.actionList[a].child[s].fieldAll=!1),this.$set(this.actionList,a,i)},closeModel(){},async initForm(){this.loading=!0,"add"===this.id?(this.title="添加角色",this.rulesThis=this.rules,await this.resetForm(),await this.initActionList()):(this.isDetail?(this.title="角色",this.rulesThis={}):(this.title="修改角色",this.rulesThis=this.rules),await this.resetForm(),await this.initActionList(),await this.initData()),this.loading=!1},async initData(){var e=await s.a.detail({roleid:this.id});if(e&&0===e.code&&e.data){let t=e.data;this.ruleForm=t,t.action&&0<t.action.length?this.action=t.action:this.action=[],t.action_data&&0<t.action_data.length?this.action_data=t.action_data:this.action_data=[],""===t.private_data&&(t.private_data=[]),t.private_data&&0<t.private_data.length?this.private_data=t.private_data:this.private_data=[];const a=JSON.parse(JSON.stringify(this.actionList));a.map(e=>(e.child&&0<e.child.length&&e.child.map(e=>{var t;return e.action&&0<e.action.length&&(e.action.map(t=>{var a=this.action.findIndex(e=>e===t.id);return-1!==a&&e.checkList.push(this.action[a]),t}),e.action.length===e.checkList.length&&(e.checkAll=!0)),e.action_data&&0<e.action_data.length&&(e.action_data.map(t=>{var a=this.action_data.findIndex(e=>e===t.id);return-1!==a&&e.fieldList.push(this.action_data[a]),t}),e.action_data.length===e.fieldList.length&&(e.fieldAll=!0)),e.private&&2===e.private.length?(t=this.private_data.findIndex(t=>t===e.id),e.is_private_change=-1!==t?"1":"0"):e.is_private_change="0",e}),e)),this.actionList=a}else e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async initActionList(){var e=await s.a.actionList({});if(e&&0===e.code){const t=e.data;let a=t.filter(e=>e.child&&0<e.child.length);a=a.map(e=>(e.child.map(e=>(e.checkAll=!1,e.checkList=[],e.fieldAll=!1,e.fieldList=[],(e.is_private_change="0")===e.is_private?e.private=[]:e.private=[{id:"0",label:"公有数据"},{id:"1",label:"私有数据"}],e)),e)),this.actionList=a}else e&&100<=e.code&&e.code<=104?await this.logout():this.$message.warning(e.message)},async resetForm(){await this.$nextTick(()=>{this.$refs.ruleForm&&(this.$refs.ruleForm.resetFields(),this.$refs.ruleForm.clearValidate(),this.ruleForm={role_name:"",level:"1"})})},async submitForm(){await this.$refs.ruleForm.validate(async e=>{if(!e)return!1;{this.action_data=[],this.action=[];let t=[];if(this.actionList.forEach(e=>{e.child.forEach(e=>{this.action_data.push(...e.fieldList),this.action.push(...e.checkList),"1"===e.is_private_change&&t.push(e.id)})}),0===this.action.length)this.$message.warning("请选择功能!");else{this.loading=!0;const a={roleid:this.id,role_name:this.ruleForm.role_name,level:this.ruleForm.level,action:this.action,action_data:this.action_data,private_data:t};let i={};i="add"===this.id?(delete a.roleid,await s.a.add(a)):await s.a.update(a),this.loading=!1,i&&0===i.code?(e="add"===this.id?"添加成功":"修改成功",this.$notify.success({title:e,message:""}),this.showModelThis=!1,this.$emit("refresh")):i&&100<=i.code&&i.code<=104?await this.logout():this.$message.warning(i.message)}}})}}};a("1f50"),a=a("2877"),o=Object(a.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",{staticStyle:{"margin-top":"-20px"}},[a("el-row",{attrs:{gutter:10}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"角色名称",prop:"role_name"}},[a("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.role_name,callback:function(t){e.$set(e.ruleForm,"role_name",t)},expression:"ruleForm.role_name"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"角色等级",prop:"level"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",disabled:e.isDetail,placeholder:"请选择角色等级"},model:{value:e.ruleForm.level,callback:function(t){e.$set(e.ruleForm,"level",t)},expression:"ruleForm.level"}},e._l(e.roleLevel,(function(e){return a("el-option",{key:"ruleid"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1)],1),a("div",{staticClass:"quanxian-main"},[a("div",{staticClass:"quanxian-title"},[a("span",{staticStyle:{color:"#ff8888"}},[e._v("*")]),a("span",{staticStyle:{"font-size":"14px",color:"#606266","line-height":"40px",padding:"0 12px 0 0","font-weight":"700"}},[e._v("功能权限")])]),a("div",{staticClass:"rule-view"},[a("div",{staticClass:"rule-list"},e._l(e.actionList,(function(t,s){return a("el-row",{key:"menu"+t.id+s},[t.child&&0<t.child.length?a("el-col",{staticClass:"ffff",attrs:{span:24}},[a("div",{staticClass:"ftitle"},[a("span",[e._v(e._s(t.menu_name))])]),a("div",{staticClass:"fbody"},e._l(t.child,(function(i,l){return a("div",{key:"yemian"+i.id+l,staticClass:"fbody-item"},[i.action&&0===i.action.length&&i.action_data&&0===i.action_data.length?e._e():[a("div",{staticClass:"stitle"},[a("span",{staticClass:"_h2"},[e._v(e._s(i.menu_name))]),i&&i.private&&2===i.private.length?a("el-radio-group",{staticStyle:{margin:"0 0 0 20px"},attrs:{size:"mini",disabled:e.isDetail},model:{value:i.is_private_change,callback:function(t){e.$set(i,"is_private_change",t)},expression:"subItem.is_private_change"}},e._l(i.private,(function(t,s){return a("el-radio-button",{key:t.label+s,attrs:{disabled:e.isDetail,label:t.id}},[e._v(e._s(t.label))])})),1):e._e()],1),i.action&&0<i.action.length?a("div",{staticClass:"scheck"},[a("div",{staticClass:"checkAll"},[a("el-checkbox",{attrs:{disabled:e.isDetail,indeterminate:e.indeterminateCheck(i)},on:{change:function(a){return e.handleCheckAllChange(a,s,t,l)}},model:{value:i.checkAll,callback:function(t){e.$set(i,"checkAll",t)},expression:"subItem.checkAll"}},[e._v("功能全选")])],1),a("div",{staticClass:"checkItem"},[a("el-checkbox-group",{attrs:{disabled:e.isDetail},on:{change:function(a){return e.handleCheckedGroupChange(a,s,t,l)}},model:{value:i.checkList,callback:function(t){e.$set(i,"checkList",t)},expression:"subItem.checkList"}},[e._l(i.action,(function(i){return[a("el-checkbox",{key:"checkItem"+i.id,attrs:{disabled:e.isDetail,label:i.id},on:{change:function(a){return e.handleCheckedChange(a,i.id,s,l,t)}}},[e._v(e._s(i.action_name))])]}))],2)],1)]):e._e(),i.action_data&&0<i.action_data.length?a("div",{staticClass:"sfield"},[a("div",{staticClass:"checkAll"},[a("el-checkbox",{attrs:{disabled:e.isDetail,indeterminate:e.indeterminateField(i)},on:{change:function(a){return e.handleFieldAllChange(a,s,t,l)}},model:{value:i.fieldAll,callback:function(t){e.$set(i,"fieldAll",t)},expression:"subItem.fieldAll"}},[e._v("字段全选")])],1),a("div",{staticClass:"checkItem"},[a("el-checkbox-group",{attrs:{disabled:e.isDetail},on:{change:function(a){return e.handleFieldGroupChange(a,s,t,l)}},model:{value:i.fieldList,callback:function(t){e.$set(i,"fieldList",t)},expression:"subItem.fieldList"}},[e._l(i.action_data,(function(i){return[a("el-checkbox",{key:"FieldItem"+i.id,attrs:{label:i.id,disabled:e.isDetail},on:{change:function(a){return e.handleFieldChange(a,i.id,s,l,t)}}},[e._v(e._s(i.field_name))])]}))],2)],1)]):e._e()]],2)})),0)]):e._e()],1)})),1)])])],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),a("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"e6bb9b28",null);t.default=o.exports},f52e:function(e,t,a){},f5b9:function(e,t,a){},f5ed:function(e,t,a){"use strict";t.a={methods:{async handlePageChange(e){this.parmValue.page=e,await this.searchList()},async handleSizeChange(e){this.parmValue.page=1,this.parmValue.size=e,await this.searchList()}}}},f653:function(e,t,a){"use strict";a("1a80")},f835:function(e,t,a){},f8b2:function(e,t,a){e.exports=a.p+"static/img/loading.190c78aa.gif"},f9373:function(e,t,a){},f973:function(e,t,a){"use strict";a("3c60")},fa1b:function(e,t,a){"use strict";var s=a("1b69");const i="admin/";t.a={add:(e,t)=>Object(s.a)(i+"add",e,"post",t),delete:(e,t)=>Object(s.a)(i+"delete",e,"post",t),list:(e,t)=>Object(s.a)(i+"list",e,"post",t),detail:(e,t)=>Object(s.a)(i+"detail",e,"post",t),update:(e,t)=>Object(s.a)(i+"update",e,"post",t),status:(e,t)=>Object(s.a)(i+"accountstatus",e,"post",t)}},fb55:function(e,t,a){"use strict";a("8c52")},fdb1:function(e,t,a){"use strict";a.r(t);var s=a("61f7"),i=a("6a1e"),l={name:"Login",mixins:[a("9f53").a],data(){return{loginForm:{mobile:"",code:""},loginRules:{mobile:[{required:!0,trigger:"blur",validator:(e,t,a)=>{""===t?a(new Error("手机号不能为空!")):Object(s.f)(t)?a():a(new Error("手机号不正确!"))}}],code:[{required:!0,trigger:"blur",validator:(e,t,a)=>{""===t?a(new Error("验证码不能为空!")):Object(s.h)(t)&&6===t.length?a():a(new Error("验证码应为6位数字!"))}}]},loading:!1,otherQuery:{}}},mounted(){""===this.loginForm.mobile&&this.$refs.mobile.focus(),""===this.loginForm.code&&this.$refs.code.focus()},methods:{async handleLogin(){this.$refs.loginForms.validate(async e=>!!e&&void(this.loading||(this.loading=!0,i.a.resetmobile(this.loginForm).then(async e=>{e&&0===e.code?(this.loading=!1,this.$message.success(e.message),await this.logout()):e&&100<=e.code&&e.code<=104?await this.logout():(this.$message.warning(e.message),this.loading=!1)}))))}}};a("dced"),a("ab24"),a=a("2877"),l=Object(a.a)(l,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"change-mobile"},[t("div",{staticClass:"change"},[t("div",{staticClass:"title"},[e._v("更换手机号")]),t("el-form",{ref:"loginForms",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"right","label-width":"100px"}},[t("el-form-item",{attrs:{prop:"mobile",label:"新手机号:"}},[t("el-input",{ref:"mobile",attrs:{placeholder:"手机号",name:"mobile",type:"text",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.mobile,callback:function(t){e.$set(e.loginForm,"mobile",t)},expression:"loginForm.mobile"}})],1),t("el-form-item",{staticClass:"code-sign",attrs:{prop:"code",label:"验证码:"}},[t("ul",{staticClass:"code-main"},[t("li",[t("el-input",{ref:"code",attrs:{placeholder:"验证码",name:"code",type:"code",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.code,callback:function(t){e.$set(e.loginForm,"code",t)},expression:"loginForm.code"}})],1),t("li",[t("send-verification-code",{attrs:{mobile:e.loginForm.mobile}})],1)])]),t("el-button",{staticStyle:{width:"98%",margin:"15px 0 0 5%"},attrs:{loading:e.loading,type:"primary",round:""},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("确认修改")])],1)],1)])}),[],!1,null,"16b4414e",null);t.default=l.exports},fe48:function(e,t,a){"use strict";a.r(t),a("c21b");var s=a("9f53");a("61f7"),s={name:"newApply",props:["showModel","id","isDetail","sitem"],mixins:[s.a],data(){return{loading:!0,loading:!1,showModel:!1,isDetail:!1,modelId:0,tableData:[],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"nickname",label:"商品编号"},{prop:"role_name",label:"商品名称"},{prop:"mobile",label:"数量"}],title:"添加账号",showModelThis:this.showModel,ruleForm:{username:"",name:"",mobile:"",email:"",role_id:"",status:"1",item:[]},rulesThis:this.rules,rules:{name:[{required:!0,validator:(e,t,a)=>{},trigger:"blur"}],username:[{required:!0,validator:(e,t,a)=>{},trigger:"blur"}],mobile:[{required:!0,validator:(e,t,a)=>{},trigger:"blur"}],email:[{required:!1,validator:(e,t,a)=>{},trigger:"blur"}],role_id:[{required:!0,message:"请选择角色",trigger:"change"}],item:[{type:"array",required:!0,message:"请选择所在部门",trigger:"change"}],status:[{required:!0,message:"请选择状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis(e){e||this.$emit("cancel")}},methods:{closeModel(){},async initForm(){this.loading=!0,this.title="可调拨的商品",this.loading=!1},async initData(){},async resetForm(e){await this.$nextTick(()=>{})},save(){},async submitForm(){}}},a("38a1"),a=a("2877"),s=Object(a.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[a("el-card",[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(e){return[a("div",{staticStyle:{width:"100%",height:"40px"}})]}}])})],1),a("el-col",{staticStyle:{"text-align":"right","margin-top":"10px"},attrs:{span:24}},[a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存 ")]),a("el-button",{attrs:{type:"warning"},on:{click:e.submitForm}},[e._v("123 ")])],1)],1)],1)],1)}),[],!1,null,"a8806cf2",null);t.default=s.exports},fe54:function(e,t,a){"use strict";a.r(t);var s=a("2f62");s={data(){return{company_name:"",options:[],value:[],list:[],states:[]}},mounted(){this.list=this.states.map(e=>({value:"value:"+e,label:"label:"+e}))},watch:{companyName:"nameChange"},computed:{...Object(s.b)(["searchSize"])},props:["options","companyName","stockName"],methods:{nameChange(){this.value="",this.options=this.stockName},a(){this.$emit("searchCard"),this.company_name=this.companyName},remoteMethod(e){""!==e?this.loading=!0:this.options=[]}}},a=a("2877"),s=Object(a.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"stockSearch",staticStyle:{display:"inline-block",width:"200px","padding-left":"10px"}},[e._v(" "+e._s(e.stockName)+" "),a("div",{staticClass:"block"},[a("el-select",{attrs:{size:e.searchSize,multiple:"",filterable:"",remote:"",disabled:""===e.companyName,"reserve-keyword":"",placeholder:"请选择仓库","remote-method":e.remoteMethod,loading:e.loading},on:{change:e.a},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)])}),[],!1,null,null,null);t.default=s.exports},feca:function(e,t,a){var s={"./dashboard/index.vue":"9406","./developing/index.vue":"d668","./error-page/404.vue":"1db4","./interest/account/addEdit.vue":"6d88","./interest/account/index.vue":"c420","./interest/account/resetPassword.vue":"1842","./interest/action/index.vue":"7914","./interest/dataShare/addEdit.vue":"b32b","./interest/dataShare/index.vue":"9e7a","./interest/group/addEdit.vue":"d79e","./interest/group/index.vue":"2ee3","./interest/handover/addEdit.vue":"7611","./interest/handover/components/addEdit.vue":"d2f9","./interest/handover/components/addEditForm.vue":"d513","./interest/handover/index.vue":"4029","./interest/organize/addEdit.vue":"9cd7","./interest/organize/index copy.vue":"30ca","./interest/organize/index.vue":"ee5c","./interest/role/addEdit.vue":"f291","./interest/role/index.vue":"d4aa","./loadingPage/index.vue":"7e10","./login/forget-password.vue":"43b9","./login/index.vue":"9ed6","./parameter/finance/addEdit.vue":"ebe4","./parameter/finance/index.vue":"1e63","./person-infor/change-password.vue":"a9ad","./person-infor/change-phone.vue":"fdb1","./person-infor/my-message.vue":"2cc2","./process/done/addEdit.vue":"2c20","./process/done/index.vue":"a4dd","./process/oing/addEdit.vue":"1357","./process/oing/index.vue":"18c5","./purchaseIn/storeAnomaly/addEdit.vue":"59e1","./purchaseIn/storeAnomaly/index.vue":"aabe","./purchaseIn/storeGoods/addEdit.vue":"4f59","./purchaseIn/storeGoods/index.vue":"1ded","./purchaseIn/storeSet/addEdit.vue":"a17d","./purchaseIn/storeSet/index.vue":"e601","./redirect/index.vue":"ef3c","./report/addEdit.vue":"0880","./report/index.vue":"71ff","./search/commission/index.vue":"9dd5","./search/standBook/index.vue":"d160","./search/table/index.vue":"1420","./sellOut/goodsAnomaly/addEdit.vue":"3df7","./sellOut/goodsAnomaly/index.vue":"a165","./sellOut/goodsBack/addEdit.vue":"701e","./sellOut/goodsBack/index.vue":"d75c","./stock/allot/addEdit.vue":"4504","./stock/allot/index.vue":"54d6","./stock/allotFlow/addEdit.vue":"fe48","./stock/allotFlow/components/addEdit-goStock-audit.vue":"4568c","./stock/allotFlow/components/addEdit-inStock-audit.vue":"db7a","./stock/allotFlow/components/addEdit-newApply.vue":"3b36","./stock/allotFlow/components/checkStock.vue":"d7be","./stock/allotFlow/components/companySearch.vue":"355b","./stock/allotFlow/components/goStock-audit.vue":"355f","./stock/allotFlow/components/inStock-audit.vue":"b6cd","./stock/allotFlow/components/inStock-check.vue":"eb56","./stock/allotFlow/components/newApply.vue":"e7e7","./stock/allotFlow/components/stockSearch.vue":"fe54","./stock/allotFlow/index.vue":"6572","./stock/check/addEdit.vue":"31c0","./stock/check/index.vue":"e5db","./stock/dataWeido/addEdit.vue":"8582","./stock/dataWeido/index.vue":"dc7a","./stock/my-test/addEdit.vue":"dc5f","./stock/my-test/index.vue":"56e8","./stock/productWeido/addEdit.vue":"7285","./stock/productWeido/index.vue":"c863","./stock/spaceCount/addEdit.vue":"3d0f","./stock/spaceCount/index.vue":"3d4c","./stock/stockCount/addEdit.vue":"3f17","./stock/stockCount/index.vue":"6695","./stock/stockWarning/addEdit.vue":"9d45","./stock/stockWarning/index.vue":"3a1a","./stock/survey/addEdit.vue":"3e5a","./stock/survey/index.vue":"ccb2","./system/menuOperator/addEdit.vue":"b36d","./system/menuOperator/iconDialog.vue":"cdf1","./system/menuOperator/index.vue":"5de4","./system/oplog/index.vue":"b346","./system/parameter/addEdit.vue":"5f10","./system/parameter/index.vue":"eb67","./system/updates/index.vue":"5e53"};function i(e){return e=l(e),a(e)}function l(e){if(a.o(s,e))return s[e];throw e=new Error("Cannot find module '"+e+"'"),e.code="MODULE_NOT_FOUND",e}i.keys=function(){return Object.keys(s)},i.resolve=l,(e.exports=i).id="feca"},ff1f:function(e,t,a){e.exports=a.p+"static/img/welcome.6cf0f25b.gif"},ffa6:function(e,t,a){},ffef:function(e,t,a){},fffc:function(e,t,a){}}]);