mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-11-30 22:20:45 +00:00
4 lines
18 KiB
JavaScript
Vendored
4 lines
18 KiB
JavaScript
Vendored
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-35db73ce"],{"0a5a":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a}));var r="admin_token";function i(){return localStorage.getItem("token")}function a(){return localStorage.removeItem(r)}},"0cb2":function(t,e,n){var r=n("7b0b"),i=Math.floor,a="".replace,o=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,c,l,u){var d=n+t.length,f=c.length,p=s;return void 0!==l&&(l=r(l),p=o),a.call(u,p,(function(r,a){var o;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(d);case"<":o=l[a.slice(1,-1)];break;default:var s=+a;if(0===s)return r;if(s>f){var u=i(s/10);return 0===u?r:u<=f?void 0===c[u-1]?a.charAt(1):c[u-1]+a.charAt(1):r}o=c[s-1]}return void 0===o?"":o}))}},"107c":function(t,e,n){var r=n("d039");t.exports=r((function(){var t=RegExp("(?<a>b)","string".charAt(5));return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},1276:function(t,e,n){"use strict";var r=n("d784"),i=n("44e7"),a=n("825a"),o=n("1d80"),s=n("4840"),c=n("8aa5"),l=n("50c4"),u=n("14c3"),d=n("9263"),f=n("9f7f"),p=n("d039"),g=f.UNSUPPORTED_Y,m=[].push,h=Math.min,v=4294967295,b=!p((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));r("split",(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(o(this)),a=void 0===n?v:n>>>0;if(0===a)return[];if(void 0===t)return[r];if(!i(t))return e.call(r,t,a);var s,c,l,u=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,g=new RegExp(t.source,f+"g");while(s=d.call(g,r)){if(c=g.lastIndex,c>p&&(u.push(r.slice(p,s.index)),s.length>1&&s.index<r.length&&m.apply(u,s.slice(1)),l=s[0].length,p=c,u.length>=a))break;g.lastIndex===s.index&&g.lastIndex++}return p===r.length?!l&&g.test("")||u.push(""):u.push(r.slice(p)),u.length>a?u.slice(0,a):u}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var i=o(this),a=void 0==e?void 0:e[t];return void 0!==a?a.call(e,i,n):r.call(String(i),e,n)},function(t,i){var o=n(r,this,t,i,r!==e);if(o.done)return o.value;var d=a(this),f=String(t),p=s(d,RegExp),m=d.unicode,b=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(g?"g":"y"),x=new p(g?"^(?:"+d.source+")":d,b),y=void 0===i?v:i>>>0;if(0===y)return[];if(0===f.length)return null===u(x,f)?[f]:[];var S=0,k=0,_=[];while(k<f.length){x.lastIndex=g?0:k;var E,w=u(x,g?f.slice(k):f);if(null===w||(E=h(l(x.lastIndex+(g?k:0)),f.length))===S)k=c(f,k,m);else{if(_.push(f.slice(S,k)),_.length===y)return _;for(var O=1;O<=w.length-1;O++)if(_.push(w[O]),_.length===y)return _;k=S=E}}return _.push(f.slice(S)),_}]}),!b,g)},"14c3":function(t,e,n){var r=n("c6b6"),i=n("9263");t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var a=n.call(t,e);if("object"!==typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"323e":function(t,e,n){var r,i;
|
|
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
* @license MIT */(function(a,o){r=o,i="function"===typeof r?r.call(e,n,e,t):r,void 0===i||(t.exports=i)})(0,(function(){var t={version:"0.2.0"},e=t.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function n(t,e,n){return t<e?e:t>n?n:t}function r(t){return 100*(-1+t)}function i(t,n,i){var a;return a="translate3d"===e.positionUsing?{transform:"translate3d("+r(t)+"%,0,0)"}:"translate"===e.positionUsing?{transform:"translate("+r(t)+"%,0)"}:{"margin-left":r(t)+"%"},a.transition="all "+n+"ms "+i,a}t.configure=function(t){var n,r;for(n in t)r=t[n],void 0!==r&&t.hasOwnProperty(n)&&(e[n]=r);return this},t.status=null,t.set=function(r){var s=t.isStarted();r=n(r,e.minimum,1),t.status=1===r?null:r;var c=t.render(!s),l=c.querySelector(e.barSelector),u=e.speed,d=e.easing;return c.offsetWidth,a((function(n){""===e.positionUsing&&(e.positionUsing=t.getPositioningCSS()),o(l,i(r,u,d)),1===r?(o(c,{transition:"none",opacity:1}),c.offsetWidth,setTimeout((function(){o(c,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){t.remove(),n()}),u)}),u)):setTimeout(n,u)})),this},t.isStarted=function(){return"number"===typeof t.status},t.start=function(){t.status||t.set(0);var n=function(){setTimeout((function(){t.status&&(t.trickle(),n())}),e.trickleSpeed)};return e.trickle&&n(),this},t.done=function(e){return e||t.status?t.inc(.3+.5*Math.random()).set(1):this},t.inc=function(e){var r=t.status;return r?("number"!==typeof e&&(e=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+e,0,.994),t.set(r)):t.start()},t.trickle=function(){return t.inc(Math.random()*e.trickleRate)},function(){var e=0,n=0;t.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&t.start(),e++,n++,r.always((function(){n--,0===n?(e=0,t.done()):t.set((e-n)/e)})),this):this}}(),t.render=function(n){if(t.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var i=document.createElement("div");i.id="nprogress",i.innerHTML=e.template;var a,s=i.querySelector(e.barSelector),l=n?"-100":r(t.status||0),u=document.querySelector(e.parent);return o(s,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),e.showSpinner||(a=i.querySelector(e.spinnerSelector),a&&d(a)),u!=document.body&&c(u,"nprogress-custom-parent"),u.appendChild(i),i},t.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(e.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&d(t)},t.isRendered=function(){return!!document.getElementById("nprogress")},t.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var a=function(){var t=[];function e(){var n=t.shift();n&&n(e)}return function(n){t.push(n),1==t.length&&e()}}(),o=function(){var t=["Webkit","O","Moz","ms"],e={};function n(t){return t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()}))}function r(e){var n=document.body.style;if(e in n)return e;var r,i=t.length,a=e.charAt(0).toUpperCase()+e.slice(1);while(i--)if(r=t[i]+a,r in n)return r;return e}function i(t){return t=n(t),e[t]||(e[t]=r(t))}function a(t,e,n){e=i(e),t.style[e]=n}return function(t,e){var n,r,i=arguments;if(2==i.length)for(n in e)r=e[n],void 0!==r&&e.hasOwnProperty(n)&&a(t,n,r);else a(t,i[1],i[2])}}();function s(t,e){var n="string"==typeof t?t:u(t);return n.indexOf(" "+e+" ")>=0}function c(t,e){var n=u(t),r=n+e;s(n,e)||(t.className=r.substring(1))}function l(t,e){var n,r=u(t);s(t,e)&&(n=r.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function u(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function d(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return t}))},"44e7":function(t,e,n){var r=n("861d"),i=n("c6b6"),a=n("b622"),o=a("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},5319:function(t,e,n){"use strict";var r=n("d784"),i=n("d039"),a=n("825a"),o=n("50c4"),s=n("a691"),c=n("1d80"),l=n("8aa5"),u=n("0cb2"),d=n("14c3"),f=n("b622"),p=f("replace"),g=Math.max,m=Math.min,h=function(t){return void 0===t?t:String(t)},v=function(){return"$0"==="a".replace(/./,"$0")}(),b=function(){return!!/./[p]&&""===/./[p]("a","$0")}(),x=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));r("replace",(function(t,e,n){var r=b?"$":"$0";return[function(t,n){var r=c(this),i=void 0==t?void 0:t[p];return void 0!==i?i.call(t,r,n):e.call(String(r),t,n)},function(t,i){if("string"===typeof i&&-1===i.indexOf(r)&&-1===i.indexOf("$<")){var c=n(e,this,t,i);if(c.done)return c.value}var f=a(this),p=String(t),v="function"===typeof i;v||(i=String(i));var b=f.global;if(b){var x=f.unicode;f.lastIndex=0}var y=[];while(1){var S=d(f,p);if(null===S)break;if(y.push(S),!b)break;var k=String(S[0]);""===k&&(f.lastIndex=l(p,o(f.lastIndex),x))}for(var _="",E=0,w=0;w<y.length;w++){S=y[w];for(var O=String(S[0]),I=g(m(s(S.index),p.length),0),R=[],C=1;C<S.length;C++)R.push(h(S[C]));var $=S.groups;if(v){var N=[O].concat(R,I,p);void 0!==$&&N.push($);var j=String(i.apply(void 0,N))}else j=u(O,p,I,R,$,i);I>=E&&(_+=p.slice(E,I)+j,E=I+O.length)}return _+p.slice(E)}]}),!x||!v||b)},"5eb0":function(t,e,n){"use strict";n("e7bf")},"6d71":function(t,e,n){"use strict";n.d(e,"h",(function(){return i})),n.d(e,"e",(function(){return a})),n.d(e,"b",(function(){return o})),n.d(e,"g",(function(){return s})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"a",(function(){return u})),n.d(e,"f",(function(){return d}));var r=n("adb5");function i(t){return Object(r["a"])({url:"/api/goods_types",method:"get",params:t})}function a(t){return Object(r["a"])({url:"/api/goods_types/".concat(t),method:"delete"})}function o(t){return Object(r["a"])({url:"/api/goods_types/",method:"post",data:t})}function s(t,e){return Object(r["a"])({url:"/api/goods_types/".concat(t),method:"patch",data:e})}function c(t){return Object(r["a"])({url:"/api/goods_brands",method:"get",params:t})}function l(t){return Object(r["a"])({url:"/api/goods_brands/".concat(t),method:"delete"})}function u(t){return Object(r["a"])({url:"/api/goods_brands",method:"post",data:t})}function d(t,e){return Object(r["a"])({url:"/api/goods_brands/".concat(t),method:"patch",data:e})}},"8aa5":function(t,e,n){"use strict";var r=n("6547").charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},9263:function(t,e,n){"use strict";var r=n("ad6d"),i=n("9f7f"),a=n("5692"),o=n("7c73"),s=n("69f3").get,c=n("fce3"),l=n("107c"),u=RegExp.prototype.exec,d=a("native-string-replace",String.prototype.replace),f=u,p=function(){var t=/a/,e=/b*/g;return u.call(t,"a"),u.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),g=i.UNSUPPORTED_Y||i.BROKEN_CARET,m=void 0!==/()??/.exec("")[1],h=p||m||g||c||l;h&&(f=function(t){var e,n,i,a,c,l,h,v=this,b=s(v),x=b.raw;if(x)return x.lastIndex=v.lastIndex,e=f.call(x,t),v.lastIndex=x.lastIndex,e;var y=b.groups,S=g&&v.sticky,k=r.call(v),_=v.source,E=0,w=t;if(S&&(k=k.replace("y",""),-1===k.indexOf("g")&&(k+="g"),w=String(t).slice(v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&"\n"!==t[v.lastIndex-1])&&(_="(?: "+_+")",w=" "+w,E++),n=new RegExp("^(?:"+_+")",k)),m&&(n=new RegExp("^"+_+"$(?!\\s)",k)),p&&(i=v.lastIndex),a=u.call(S?n:v,w),S?a?(a.input=a.input.slice(E),a[0]=a[0].slice(E),a.index=v.lastIndex,v.lastIndex+=a[0].length):v.lastIndex=0:p&&a&&(v.lastIndex=v.global?a.index+a[0].length:i),m&&a&&a.length>1&&d.call(a[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(a[c]=void 0)})),a&&y)for(a.groups=l=o(null),c=0;c<y.length;c++)h=y[c],l[h[0]]=a[h[1]];return a}),t.exports=f},"9f7f":function(t,e,n){var r=n("d039"),i=function(t,e){return RegExp(t,e)};e.UNSUPPORTED_Y=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},a5d8:function(t,e,n){},ac1f:function(t,e,n){"use strict";var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},ad6d:function(t,e,n){"use strict";var r=n("825a");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},adb5:function(t,e,n){"use strict";n("d3b7");var r=n("bc3a"),i=n.n(r),a=n("0a5a"),o=n("323e"),s=n.n(o),c=(n("a5d8"),n("5c96")),l=i.a.create({timeout:1e4});l.interceptors.request.use((function(t){return t.headers.Authorization="Bearer "+Object(a["a"])(),s.a.start(),t}),(function(t){return Promise.reject(t)})),l.interceptors.response.use((function(t){s.a.done();var e=t.status;if(200===e||201===e)return t}),(function(t){return s.a.done(),400===t.response.status&&Object(c["Message"])({message:t.response.data.errorMessage,type:"error"}),500===t.response.status&&Object(c["Message"])({message:t.response.data.message,type:"error"}),Promise.reject(t)})),e["a"]=l},be26:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"conent"},[n("el-button",{attrs:{type:"primary"},on:{click:t.handAdd}},[t._v("新增")]),n("div",{staticClass:"table",staticStyle:{"margin-top":"10px"}},[n("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[n("el-table-column",{attrs:{prop:"name",label:"商品品牌"}}),n("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"primary"},on:{click:function(n){return t.handEdit(e.row.id,e.row)}}},[t._v("编辑")]),n("el-button",{attrs:{type:"danger"},on:{click:function(n){return t.handdel(e.row.id)}}},[t._v("删除")])]}}])})],1)],1),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"current-page":t.current_page,"page-sizes":[15,50,100],"page-size":t.per_page,layout:"total, sizes, prev, pager, next, jumper",total:t.Paginationdata.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1),n("el-dialog",{attrs:{title:"新增品牌",visible:t.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[n("el-form",{attrs:{model:t.form}},[n("el-form-item",{attrs:{label:"商品品牌","label-width":t.formLabelWidth}},[n("el-input",{model:{value:t.form.kindName,callback:function(e){t.$set(t.form,"kindName",e)},expression:"form.kindName"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:t.addSubmit}},[t._v("确 定")])],1)],1),n("el-dialog",{attrs:{title:"编辑",visible:t.dialogFormVisible1,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible1=e}}},[n("el-form",{attrs:{model:t.form1}},[n("el-form-item",{attrs:{label:"编辑品牌","label-width":t.formLabelWidth1}},[n("el-input",{model:{value:t.form1.kindName1,callback:function(e){t.$set(t.form1,"kindName1",e)},expression:"form1.kindName1"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.dialogFormVisible1=!1}}},[t._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:t.EditSubmit}},[t._v("确 定")])],1)],1)],1)},i=[],a=(n("ac1f"),n("1276"),n("5319"),n("b0c0"),n("6d71")),o={data:function(){return{id:"",tableData:[],multipleSelection:[],dialogFormVisible:!1,dialogFormVisible1:!1,form:{kindName:""},form1:{kindName1:""},formLabelWidth:"120px",formLabelWidth1:"120px",newKind:[],Paginationdata:{},current_page:1,per_page:15}},created:function(){this.getGoods_types()},methods:{handleSelectionChange:function(t){this.multipleSelection=t},handleSizeChange:function(t){this.per_page=t,this.getGoods_types()},handleCurrentChange:function(t){this.current_page=t,this.getGoods_types()},handAdd:function(){this.form.kindName="",this.dialogFormVisible=!0},addSubmit:function(){var t,e=this;t=this.form.kindName.replace(/\s/g,",").split(","),Object(a["a"])({names:t}).then((function(t){e.$message({type:"success",message:"添加成功"}),e.getGoods_types()})),this.dialogFormVisible=!1},handEdit:function(t,e){this.id=t,this.form1.kindName1=e.name,this.dialogFormVisible1=!0},EditSubmit:function(){var t=this;Object(a["f"])(this.id,{name:this.form1.kindName1}).then((function(e){t.$message({type:"success",message:"编辑成功"}),t.getGoods_types()})),this.dialogFormVisible1=!1},handdel:function(t){var e=this;this.$confirm("确定删除此条商品品牌吗?","确认删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(a["d"])(t).then((function(t){e.getGoods_types()})),e.$message({type:"success",message:"删除成功!"})})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},getGoods_types:function(){var t=this,e={page:this.current_page,per_page:this.per_page};Object(a["c"])(e).then((function(e){t.tableData=e.data.data,t.Paginationdata=e.data.meta}))}}},s=o,c=(n("5eb0"),n("2877")),l=Object(c["a"])(s,r,i,!1,null,"679bd5d4",null);e["default"]=l.exports},d784:function(t,e,n){"use strict";n("ac1f");var r=n("6eeb"),i=n("9263"),a=n("d039"),o=n("b622"),s=n("9112"),c=o("species"),l=RegExp.prototype;t.exports=function(t,e,n,u){var d=o(t),f=!a((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),p=f&&!a((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return e=!0,null},n[d](""),!e}));if(!f||!p||n){var g=/./[d],m=e(d,""[t],(function(t,e,n,r,a){var o=e.exec;return o===i||o===l.exec?f&&!a?{done:!0,value:g.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}));r(String.prototype,t,m[0]),r(l,d,m[1])}u&&s(l[d],"sham",!0)}},e7bf:function(t,e,n){},fce3:function(t,e,n){var r=n("d039");t.exports=r((function(){var t=RegExp(".","string".charAt(0));return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))}}]);
|
|
//# sourceMappingURL=chunk-35db73ce.7759ae1a.js.map
|