chunk-365f0846.a35f40ad.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-365f0846"],{"11b8":function(t,e,r){"use strict";r.d(e,"g",(function(){return a})),r.d(e,"b",(function(){return o})),r.d(e,"v",(function(){return u})),r.d(e,"i",(function(){return c})),r.d(e,"h",(function(){return l})),r.d(e,"m",(function(){return i})),r.d(e,"n",(function(){return s})),r.d(e,"u",(function(){return d})),r.d(e,"d",(function(){return f})),r.d(e,"c",(function(){return m})),r.d(e,"t",(function(){return b})),r.d(e,"r",(function(){return p})),r.d(e,"k",(function(){return h})),r.d(e,"f",(function(){return g})),r.d(e,"l",(function(){return v})),r.d(e,"w",(function(){return _})),r.d(e,"s",(function(){return w})),r.d(e,"p",(function(){return j})),r.d(e,"a",(function(){return y})),r.d(e,"o",(function(){return O})),r.d(e,"q",(function(){return k})),r.d(e,"j",(function(){return F})),r.d(e,"e",(function(){return S}));var n=r("b775");function a(t){return Object(n["a"])({url:"/ReturnGood/GetApplyList",method:"get",params:t})}function o(t){return Object(n["a"])({url:"/ReturnGood/CheckIn",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/user/getuserlist",method:"get",params:t})}function c(t){return Object(n["a"])({url:"/ReturnGood/GetInfo",method:"get",params:t})}function l(t){return Object(n["a"])({url:"/ReturnGood/GetExpressInfo",method:"get",params:t})}function i(t){return Object(n["a"])({url:"/ReturnGood/SureMoney",method:"get",params:t})}function s(t){return Object(n["a"])({url:"/ReturnGood/SureMoneyNew",method:"get",params:t})}function d(t){return Object(n["a"])({url:"/ReturnGood/UserSign",method:"post",data:t})}function f(t){return Object(n["a"])({url:"/ReturnGood/CrownMoneySign",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/ReturnGood/CrownLookMoneySign",method:"post",data:t})}function b(t){return Object(n["a"])({url:"/ReturnGood/UserConfirmMoneySign",method:"post",data:t})}function p(t){return Object(n["a"])({url:"/ReturnGood/UploadImg",method:"post",data:t})}function h(t){return Object(n["a"])({url:"/ReturnGood/GetStatus",method:"get",params:t})}function g(t){return Object(n["a"])({url:"/ReturnGood/EditExpressInfo",method:"post",data:t})}function v(t){return Object(n["a"])({url:"/ReturnGood/NewGoodDetail",method:"post",data:t})}function _(t){return Object(n["a"])({url:"/ReturnGood/GoodDetail",method:"get",params:t})}function w(t){return Object(n["a"])({url:"/ReturnGood/UploadMoneyImg",method:"post",data:t})}function j(t){return Object(n["a"])({url:"/ReturnGood/UpdateReturnMoney",method:"get",params:t})}function y(t){return Object(n["a"])({url:"/ReturnGood/AddReturnMoney",method:"post",data:t})}function O(t){return Object(n["a"])({url:"/ReturnGood/UpdateApplyInfo",method:"post",data:t})}function k(t){return Object(n["a"])({url:"/ReturnGood/UploadImage",method:"post",data:t})}function F(t){return Object(n["a"])({url:"/ReturnGood/GetQrCode",method:"post",data:t})}function S(t){return Object(n["a"])({url:"/ReturnGood/DownloadTable",method:"post",data:t})}},"44f1":function(t,e,r){"use strict";r.d(e,"d",(function(){return n})),r.d(e,"e",(function(){return a})),r.d(e,"f",(function(){return o})),r.d(e,"a",(function(){return u})),r.d(e,"c",(function(){return c})),r.d(e,"b",(function(){return l})),r.d(e,"h",(function(){return i})),r.d(e,"g",(function(){return s}));r("c5f6"),r("a481"),r("ac6a");function n(t){switch(+t){case-2:return{name:"已取消",color:"#F56C6C"};case-1:return{name:"待收款确认",color:"#4da5a5"};case 0:return{name:"待订单审核",color:"#f97547"};case 1:return{name:"待财务审核",color:"#13c19f"};case 2:return{name:"待发货审核",color:"#ffaa1d"};case 3:return{name:"待收货",color:"#409EFF"};case 4:return{name:"已完成",color:"#74a2e6"};case 5:return{name:"已驳回(客服)",color:"#67C23A"};case 6:return{name:"已驳回(财务)",color:"#67C23A"};case 7:return{name:"已驳回(物流)",color:"#67C23A"};default:return{name:"未知订单状态",color:"#909399"}}}function a(t){switch(+t){case-1:return{name:"已删除",color:"#4da5a5"};case 0:return{name:"订单未审核",color:"#f97547"};case 1:return{name:"财务未审核",color:"#13c19f"};case 2:return{name:"未发货审核",color:"#ffaa1d"};case 3:return{name:"待收货",color:"#409EFF"};case 4:return{name:"已完成",color:"#74a2e6"}}}function o(t){switch(+t){case 0:return{name:"未付款",color:"#f96b6b"};case 1:return{name:"部分付款",color:"#f96b6b"};case 2:return{name:"已付款",color:"#415161"};case 3:return{name:"待退款",color:"#f96b6b"};default:return{name:"未知支付状态",color:"#909399"}}}function u(t){var e;switch(t){case 0:e="销售未实名认证";break;case 1:e="等待分享人审核";break;case 2:e="等待上级批发商审核";break;case 3:e="等待用户确认";break;case 4:e="分享人审核驳回";break;case 5:e="上级批发商审核驳回";break;case 6:e="授权成功";break;default:e=t}return e}function c(t){if(!t&&0!==t)return{name:"类别待定",color:"#909399"};var e;switch(t){case 3:e={name:"批发商",color:"#f0a637"};break;case 2:e={name:"经销商",color:"#67c23a"};break;case 1:e={name:"销售员",color:"#1fd3c2"};break;default:e={name:"公司",color:"#409eff"}}return e}function l(t,e){if(!t)return 0;var r=e?t:parseFloat(t);return String(r).replace(/(\d{1,3})(?=(\d{3})+(?:$|\.))/g,"$1,")}function i(t){if("0"===t)return 0;var e=Number(100*t).toFixed()+"%";return e}function s(t){switch(+t){case 0:return{name:"未审核",color:"#f96b6b"};case 1:return{name:"已通过",color:"#13c19f"};case 2:return{name:"已驳回",color:"#f30"};default:return{name:"已删除",color:"#999"}}}},"5d66":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"app-container"},[r("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:t.loadingFull,expression:"loadingFull",modifiers:{fullscreen:!0,lock:!0}}]}),t._v(" "),r("el-select",{attrs:{placeholder:"请选择账号状态",clearable:""},model:{value:t.status,callback:function(e){t.status=e},expression:"status"}},t._l(t.statusList,(function(t){return r("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:t.getSendList}},[t._v("搜索")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(e){t.currentRowId="",t.visible.saomaqiang=!0,t.addForm={}}}},[t._v("添加账号")]),t._v(" "),r("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:t.list,"header-cell-style":{background:"#f8fbfc"},border:"",stripe:""}},[r("el-table-column",{attrs:{type:"index",label:"序号",width:"50",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"名称",align:"center",prop:"name"}}),t._v(" "),r("el-table-column",{attrs:{label:"手机号",align:"center",prop:"mobile"}}),t._v(" "),r("el-table-column",{attrs:{prop:"uuid",label:"设备号",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"登录状态",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[r("el-tag",{staticStyle:{border:"none"},attrs:{type:0===n.login_status?"info":"success"}},[t._v(t._s(n.login_status?"已登录":"未登录"))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"账号状态",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[r("el-tag",{attrs:{type:0===n.status?"success":"danger"}},[t._v(t._s(n.status?"禁用":"正常"))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[r("el-button",{attrs:{type:0===n.status?"danger":"primary",size:"mini"},on:{click:function(e){return t.handleDisable(n)}}},[t._v(t._s(0===n.status?"禁用":"启用"))])]}}])})],1),t._v(" "),r("el-dialog",{attrs:{title:"添加扫码枪账号",visible:t.visible.saomaqiang,width:"40%","destroy-on-close":!0},on:{"update:visible":function(e){return t.$set(t.visible,"saomaqiang",e)}}},[r("el-form",{attrs:{"label-width":"100px"}},[r("el-form-item",{attrs:{"label-width":"85px"}},[r("el-input",{staticStyle:{width:"230px"},attrs:{placeholder:"请输入姓名、昵称、手机号",clearable:""},model:{value:t.search.search_name,callback:function(e){t.$set(t.search,"search_name",e)},expression:"search.search_name"}}),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(e){t.search.page_index=1,t.GetList()}}},[t._v("查询")])],1),t._v(" "),r("el-form-item",{attrs:{label:"昵称:","label-width":"85px",required:""}},[r("span",[t._v(t._s(t.addForm.user_name))])]),t._v(" "),r("el-form-item",{attrs:{label:"手机号:","label-width":"85px",required:""}},[r("span",[t._v(t._s(t.addForm.mobile))])]),t._v(" "),r("el-form-item",{attrs:{label:"名称:","label-width":"85px",required:""}},[r("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入名称"},model:{value:t.addForm.name,callback:function(e){t.$set(t.addForm,"name",e)},expression:"addForm.name"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"密码:","label-width":"85px",required:""}},[r("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入密码"},model:{value:t.addForm.password,callback:function(e){t.$set(t.addForm,"password",e)},expression:"addForm.password"}}),t._v(" "),r("div",{staticStyle:{"font-size":"12px"}},[t._v("注:密码长度不能小于8位")])],1),t._v(" "),r("el-form-item",{staticStyle:{"margin-top":"50px"}},[r("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("确定")]),t._v(" "),r("el-button",{on:{click:function(e){t.visible.saomaqiang=!1}}},[t._v("取消")])],1)],1)],1),t._v(" "),r("el-drawer",{attrs:{title:"客户查找",visible:t.visible.drawer,direction:"rtl",size:"70%"},on:{"update:visible":function(e){return t.$set(t.visible,"drawer",e)}}},[r("el-table",{staticClass:"tableBorder",attrs:{data:t.userlist,"header-cell-style":{background:"#f8fbfc"},border:"",stripe:""}},[r("el-table-column",{attrs:{type:"index",label:"单选",align:"center",width:"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-radio",{attrs:{label:e.row.id},on:{change:function(r){return t.changeRedio(r,e.row)}},model:{value:t.currentRowId,callback:function(e){t.currentRowId=e},expression:"currentRowId"}},[t._v(" ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"headimgurl",label:"头像",align:"center",width:"60"},scopedSlots:t._u([{key:"default",fn:function(t){var e=t.row;return[r("el-image",{staticClass:"hoverImg",attrs:{src:e.headimgurl,fit:"contain"}})]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"nickname",label:"昵称",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{prop:"realname",align:"center",label:"真实姓名",width:"130"}}),t._v(" "),r("el-table-column",{attrs:{prop:"mobile",align:"center",label:"电话号"}}),t._v(" "),r("el-table-column",{attrs:{prop:"level",align:"center",label:"客户类别",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[r("el-tag",{staticStyle:{color:"#ffffff"},attrs:{color:t.levelStatus(n.level).color}},[t._v("\n "+t._s(t.levelStatus(n.level).name)+"\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"所在服务",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row.warea;return r("span",{},[t._v(t._s(n&&n.admin_name))])}}])}),t._v(" "),r("el-table-column",{attrs:{label:"客服",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row.warea;return r("span",{},[t._v(t._s(n&&n.admin_name))])}}])})],1),t._v(" "),r("pagination",{staticStyle:{"margin-top":"0 !important"},attrs:{total:t.tableTotal,limit:t.search.page_size,page:t.search.page_index},on:{pagination:t.changePagination,"update:limit":t.changePagination}})],1)],1)},a=[],o=(r("386d"),r("7f7f"),r("832e")),u=r("11b8"),c=r("44f1"),l={data:function(){return{statusList:[{id:0,name:"正常"},{id:1,name:"禁用"}],addForm:{},tableTotal:0,currentRowId:"",search:{search_name:"",page_index:1,page_size:10,info_select:"1",commissar:"",warea_id:"",start_time:"",end_time:"",level:"all"},userlist:[],visible:{saomaqiang:!1,drawer:!1},loadingFull:!1,status:"",list:[]}},mounted:function(){this.getSendList()},methods:{handleDisable:function(t){var e=this,r=t.id,n=t.status,a=0===n?"禁用":"启用";this.$confirm("确认要".concat(a,"此账号吗?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=0===n?1:0;Object(o["c"])({id:r,status:t}).then((function(t){e.loadingFull=!1,200===t.code?(e.$message.success("操作成功"),e.getSendList()):e.$message.error(t.message||"操作失败")})).catch((function(){e.loadingFull=!1,e.$message.error("操作失败")}))}))},submit:function(){var t=this;if(!this.addForm.mobile||!this.addForm.name||!this.addForm.password)return this.$message.error("请补全信息!"),!1;if(this.addForm.password.length<8)this.$message.error("密码长度不能小于8位");else{var e=this.addForm,r=e.mobile,n=e.name,a=e.password;this.loadingFull=!0,Object(o["a"])({mobile:r,name:n,password:a}).then((function(e){t.loadingFull=!1,200===e.code?(t.$message.success("添加成功"),t.visible.saomaqiang=!1,t.getSendList()):t.$message.error(e.message||"添加失败")})).catch((function(){t.loadingFull=!1,t.$message.error("添加失败")}))}},changeRedio:function(t,e){this.addForm.user_name=e.nickname,this.addForm.mobile=e.mobile,this.addForm.level=e.level,this.visible.drawer=!1},changePagination:function(t){var e=t.page,r=t.limit;this.search.page_size=r,this.search.page_index=e,this.GetList()},GetList:function(){var t=this;Object(u["v"])(this.search).then((function(e){if(200===e.code){if(0===e.data.list.length)return t.$message.error("未查询到客户"),!1;t.userlist=e.data.list,t.tableTotal=e.data.total,t.visible.drawer=!0}else t.$message.error(e.message)})).catch((function(e){t.loadingFull=!1}))},levelStatus:function(t){return Object(c["c"])(t)},getSendList:function(){var t=this;this.loadingFull=!0,Object(o["b"])({status:this.status}).then((function(e){t.loadingFull=!1,200===e.code?t.list=e.data:t.$message.error(e.message||"获取失败")})).catch((function(e){t.loadingFull=!1,t.$message.error("获取失败")}))}}},i=l,s=r("2877"),d=Object(s["a"])(i,n,a,!1,null,"57beb68c",null);e["default"]=d.exports},"832e":function(t,e,r){"use strict";r.d(e,"q",(function(){return a})),r.d(e,"i",(function(){return o})),r.d(e,"j",(function(){return u})),r.d(e,"k",(function(){return c})),r.d(e,"d",(function(){return l})),r.d(e,"e",(function(){return i})),r.d(e,"f",(function(){return s})),r.d(e,"h",(function(){return d})),r.d(e,"g",(function(){return f})),r.d(e,"l",(function(){return m})),r.d(e,"r",(function(){return b})),r.d(e,"t",(function(){return p})),r.d(e,"s",(function(){return h})),r.d(e,"n",(function(){return g})),r.d(e,"m",(function(){return v})),r.d(e,"p",(function(){return _})),r.d(e,"o",(function(){return w})),r.d(e,"b",(function(){return j})),r.d(e,"a",(function(){return y})),r.d(e,"c",(function(){return O}));var n=r("b775");function a(t){return Object(n["a"])({url:"/trace/index",method:"get",params:t})}function o(t){return Object(n["a"])({url:"/trace/BatchProductionCode",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/trace/add",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/trace/destroy",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/trace/get_child_info",method:"get",params:t})}function i(t){return Object(n["a"])({url:"/trace/set_true",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/trace/get_trace_export_url",method:"get",params:t})}function d(){return Object(n["a"])({url:"/trace/get_model_info",method:"get"})}function f(t){return Object(n["a"])({url:"/trace/getTraceInfo",method:"get",params:t})}function m(t){return Object(n["a"])({url:"/trace/destroySerial",method:"post",data:t})}function b(t){return Object(n["a"])({url:"/trace/getCodeInfo",method:"get",params:t})}function p(t){return Object(n["a"])({url:"/trace/set_all_true",method:"post",data:t})}function h(t){return Object(n["a"])({url:"/trace/set_many_true",method:"post",data:t})}function g(t){return Object(n["a"])({url:"trace/exportFastExcel",method:"get",params:t})}function v(t){return Object(n["a"])({url:"trace/downloadFileLog",method:"post",data:t})}function _(t){return Object(n["a"])({url:"trace/refreshDownload",method:"get",params:t})}function w(t){return Object(n["a"])({url:"trace/getDownloadLog",method:"get",params:t})}function j(t){return Object(n["a"])({url:"/Account/GetSMAccount",method:"get",params:t})}function y(t){return Object(n["a"])({url:"/Account/AddUser",method:"post",data:t})}function O(t){return Object(n["a"])({url:"/Account/UpdateDeviceAccount",method:"get",params:t})}}}]);