Commit b27d654d by liang ce

token修正

parent e07e1c17
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta http-equiv=Pragma content=no-cache><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>mingpay</title><link href=css/chunk-13ec64c5.52ec5803.css rel=prefetch><link href=css/chunk-28723f13.90e02cb9.css rel=prefetch><link href=css/chunk-3599003e.1a62b51d.css rel=prefetch><link href=css/chunk-3f3336d0.33fb771c.css rel=prefetch><link href=css/chunk-42323b98.64f24c7d.css rel=prefetch><link href=css/chunk-49a19ba8.67939e51.css rel=prefetch><link href=css/chunk-4ba7f26b.8079c706.css rel=prefetch><link href=css/chunk-5095efbe.58f409ad.css rel=prefetch><link href=css/chunk-56890f8c.b58ddb49.css rel=prefetch><link href=css/chunk-570f9528.289dca7b.css rel=prefetch><link href=css/chunk-58a22374.bf3cd3b1.css rel=prefetch><link href=css/chunk-6658342b.d8c3d9b5.css rel=prefetch><link href=css/chunk-6cec962d.698e1e67.css rel=prefetch><link href=css/chunk-7026f433.625e47b3.css rel=prefetch><link href=css/chunk-90b83a0c.23b21a79.css rel=prefetch><link href=css/chunk-a0a95438.3fbca111.css rel=prefetch><link href=css/chunk-d04df21a.6f8b801f.css rel=prefetch><link href=css/chunk-dd9fcb10.6109af67.css rel=prefetch><link href=css/chunk-edd53178.611b074a.css rel=prefetch><link href=css/chunk-edd5b888.7ba8d7af.css rel=prefetch><link href=css/chunk-fb6b8140.5661c4ec.css rel=prefetch><link href=js/chunk-13ec64c5.feb2838f.js rel=prefetch><link href=js/chunk-28723f13.a258c368.js rel=prefetch><link href=js/chunk-2d0bd16e.de89ee9c.js rel=prefetch><link href=js/chunk-3599003e.77d9b8d9.js rel=prefetch><link href=js/chunk-3f3336d0.f22a8e38.js rel=prefetch><link href=js/chunk-42323b98.ca0331ff.js rel=prefetch><link href=js/chunk-49a19ba8.c9a5f78f.js rel=prefetch><link href=js/chunk-4ba7f26b.1ce70aaf.js rel=prefetch><link href=js/chunk-5095efbe.ae3a92ac.js rel=prefetch><link href=js/chunk-56890f8c.5b0cfe4d.js rel=prefetch><link href=js/chunk-570f9528.101eb842.js rel=prefetch><link href=js/chunk-58a22374.ed08740f.js rel=prefetch><link href=js/chunk-6658342b.c9f90e1d.js rel=prefetch><link href=js/chunk-6cec962d.8347aa7f.js rel=prefetch><link href=js/chunk-7026f433.7fa23e7c.js rel=prefetch><link href=js/chunk-90b83a0c.e3338d42.js rel=prefetch><link href=js/chunk-a0a95438.2299ce8a.js rel=prefetch><link href=js/chunk-b788ccac.1c9e8d29.js rel=prefetch><link href=js/chunk-d04df21a.4097ae13.js rel=prefetch><link href=js/chunk-dd9fcb10.a5087450.js rel=prefetch><link href=js/chunk-edd53178.1e85550d.js rel=prefetch><link href=js/chunk-edd5b888.bf1fe3a3.js rel=prefetch><link href=js/chunk-fb6b8140.64b0f1cf.js rel=prefetch><link href=css/app.2887c0b5.css rel=preload as=style><link href=css/chunk-vendors.abc56c7c.css rel=preload as=style><link href=js/app.c81e8a17.js rel=preload as=script><link href=js/chunk-vendors.5f733cf2.js rel=preload as=script><link href=css/chunk-vendors.abc56c7c.css rel=stylesheet><link href=css/app.2887c0b5.css rel=stylesheet></head><body><noscript><strong>We're sorry but mingpay doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.5f733cf2.js></script><script src=js/app.c81e8a17.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta http-equiv=Pragma content=no-cache><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>mingpay</title><link href=css/chunk-13ec64c5.52ec5803.css rel=prefetch><link href=css/chunk-28723f13.90e02cb9.css rel=prefetch><link href=css/chunk-3599003e.1a62b51d.css rel=prefetch><link href=css/chunk-3f3336d0.33fb771c.css rel=prefetch><link href=css/chunk-42323b98.64f24c7d.css rel=prefetch><link href=css/chunk-49a19ba8.67939e51.css rel=prefetch><link href=css/chunk-4ba7f26b.8079c706.css rel=prefetch><link href=css/chunk-5095efbe.58f409ad.css rel=prefetch><link href=css/chunk-56890f8c.b58ddb49.css rel=prefetch><link href=css/chunk-570f9528.289dca7b.css rel=prefetch><link href=css/chunk-58a22374.bf3cd3b1.css rel=prefetch><link href=css/chunk-6658342b.d8c3d9b5.css rel=prefetch><link href=css/chunk-6cec962d.698e1e67.css rel=prefetch><link href=css/chunk-7026f433.625e47b3.css rel=prefetch><link href=css/chunk-90b83a0c.23b21a79.css rel=prefetch><link href=css/chunk-a0a95438.3fbca111.css rel=prefetch><link href=css/chunk-d04df21a.6f8b801f.css rel=prefetch><link href=css/chunk-dd9fcb10.6109af67.css rel=prefetch><link href=css/chunk-edd53178.611b074a.css rel=prefetch><link href=css/chunk-edd5b888.7ba8d7af.css rel=prefetch><link href=css/chunk-fb6b8140.5661c4ec.css rel=prefetch><link href=js/chunk-13ec64c5.2e937c65.js rel=prefetch><link href=js/chunk-28723f13.5380b737.js rel=prefetch><link href=js/chunk-2d0bd16e.de89ee9c.js rel=prefetch><link href=js/chunk-3599003e.0f839358.js rel=prefetch><link href=js/chunk-3f3336d0.aa5562da.js rel=prefetch><link href=js/chunk-42323b98.ca0331ff.js rel=prefetch><link href=js/chunk-49a19ba8.488d19ae.js rel=prefetch><link href=js/chunk-4ba7f26b.1ce70aaf.js rel=prefetch><link href=js/chunk-5095efbe.ae3a92ac.js rel=prefetch><link href=js/chunk-56890f8c.10fa1835.js rel=prefetch><link href=js/chunk-570f9528.101eb842.js rel=prefetch><link href=js/chunk-58a22374.d8cd2c18.js rel=prefetch><link href=js/chunk-6658342b.7c789a2a.js rel=prefetch><link href=js/chunk-6cec962d.d7657c8a.js rel=prefetch><link href=js/chunk-7026f433.127a0f7b.js rel=prefetch><link href=js/chunk-90b83a0c.45a034ff.js rel=prefetch><link href=js/chunk-a0a95438.baacdb35.js rel=prefetch><link href=js/chunk-b788ccac.8f3aaba8.js rel=prefetch><link href=js/chunk-d04df21a.4097ae13.js rel=prefetch><link href=js/chunk-dd9fcb10.a5087450.js rel=prefetch><link href=js/chunk-edd53178.37d6ce8b.js rel=prefetch><link href=js/chunk-edd5b888.6d201d55.js rel=prefetch><link href=js/chunk-fb6b8140.80fd37a5.js rel=prefetch><link href=css/app.2887c0b5.css rel=preload as=style><link href=css/chunk-vendors.abc56c7c.css rel=preload as=style><link href=js/app.5e5e093d.js rel=preload as=script><link href=js/chunk-vendors.5f733cf2.js rel=preload as=script><link href=css/chunk-vendors.abc56c7c.css rel=stylesheet><link href=css/app.2887c0b5.css rel=stylesheet></head><body><noscript><strong>We're sorry but mingpay doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.5f733cf2.js></script><script src=js/app.5e5e093d.js></script></body></html>
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-13ec64c5"],{"0d5e":function(e,t,n){"use strict";n.d(t,"a",function(){return d});var a,o=n("7f43"),i=n.n(o),s=n("4328"),c=n.n(s),r=n("9f82"),l=n("f64c"),u="https://gateway.mingwork.com";i.a.interceptors.request.use(function(e){var t=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in_".concat(localStorage.getItem("orgId")))-3e5;return t?(e.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),e):new Promise(function(e,t){Object(r["c"])().then(function(e){console.log("res",e)}).catch(function(e){console.log(e)})})},function(e){return a.close(),Promise.reject(e)}),i.a.interceptors.response.use(function(e){return Promise.resolve(e)},function(e){return new Promise(function(t,n){if(console.log(e),e&&e.response)switch(e.response.status){case 401:l["a"].error("网络异常请重试"),Object(r["c"])().then(function(n){console.log("refreshToken1",n),t(e)});break;case 426:l["a"].error("网络异常请重试"),Object(r["a"])().then(function(n){t(e)});break;case 504:l["a"].error("系统异常"),t(e);break;case 500:l["a"].error("系统繁忙"),t(e);break;default:l["a"].error("未知问题"),t(e),n(new Error(e))}else l["a"].error("未知问题"),t(e)})});var d={post:function(e,t){return new Promise(function(n,a){var o=void 0===t?"":t;i.a.post("".concat(u).concat(e),o,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(e){return n(e)})})},get:function(e,t){return new Promise(function(n,a){var o=void 0===t?"":c.a.stringify(t);i.a.get("".concat(u).concat(e,"?").concat(o)).then(function(e){return n(e)})})}}},"23ee":function(e,t,n){"use strict";var a=n("8040"),o=n.n(a);o.a},3846:function(e,t,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"6b54":function(e,t,n){"use strict";n("3846");var a=n("cb7c"),o=n("0bfb"),i=n("9e1e"),s="toString",c=/./[s],r=function(e){n("2aba")(RegExp.prototype,s,e,!0)};n("79e5")(function(){return"/a/b"!=c.call({source:"a",flags:"b"})})?r(function(){var e=a(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?o.call(e):void 0)}):c.name!=s&&r(function(){return c.call(this)})},8040:function(e,t,n){},"948a":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"SystemReconciliation"},[n("div",{staticClass:"searchBox"},[n("a-date-picker",{attrs:{disabledDate:e.disabledStartDate,format:"YYYY-MM-DD",placeholder:"开始日期"},on:{change:e.onChangeStartValue,openChange:e.handleStartOpenChange},model:{value:e.startValue,callback:function(t){e.startValue=t},expression:"startValue"}}),e._v("\n ~\n "),n("a-date-picker",{attrs:{disabledDate:e.disabledEndDate,format:"YYYY-MM-DD",placeholder:"结束日期",open:e.endOpen},on:{change:e.onChangeEndValue,openChange:e.handleEndOpenChange},model:{value:e.endValue,callback:function(t){e.endValue=t},expression:"endValue"}}),n("a-button",{attrs:{type:"primary"},on:{click:e.getAccountCheck}},[e._v("查询")])],1),n("div",{staticClass:"title"},[e._v("账单汇总")]),n("div",{staticClass:"SystemReconciliationContent"},[n("div",{staticClass:"contentItem"},[n("div",{staticClass:"title"},[e._v("\n 充值金额\n ")]),n("div",[n("p",[n("label",[e._v("现金:")]),e._v("¥"+e._s(e.systemReconciliationDetails.internalRechargeAmount||"0.00"))]),n("p",[n("label",[e._v("支付宝:")]),e._v("¥"+e._s(e.systemReconciliationDetails.externalRechargeAmount||"0.00"))])]),n("div",[n("p",[e._v("共计:"),n("span",[e._v("¥"+e._s(e.returnRechargeAmount()))])])])]),n("div",{staticClass:"contentItem"},[n("div",{staticClass:"title"},[e._v("\n 发放津贴\n ")]),n("div",e._l(e.systemReconciliationDetails.subsidyCheck,function(t){return n("p",{key:t.sceneType},[n("label",[e._v(e._s("TRAVEL"===t.sceneType?"交通补助":"餐补")+":")]),e._v("¥"+e._s(t.amount||"0.00"))])}),0),n("div",[n("p",[e._v("共计:"),n("span",[e._v("¥"+e._s(e.returnSubsidyCheckTotal()))])])])]),n("div",{staticClass:"contentItem"},[n("div",{staticClass:"title"},[e._v("\n 消费金额\n ")]),n("div",{staticClass:"recordsBox"},e._l(e.systemReconciliationDetails.consumeCheck,function(t){return n("div",{key:t.sceneType},[n("div",[e._v(e._s("TRAVEL"===t.sceneType?"交通消费":"用餐消费")+":")]),n("div",[n("p",[e._v("现金:¥"+e._s(t.realityAmount||"0.00"))]),n("p",[e._v("津贴:¥"+e._s(t.subsidyAmount||"0.00"))])])])}),0),n("div",[n("p",[e._v("共计:"),n("span",[e._v("¥"+e._s(e.returnConsumeCheck("total")))])]),n("p",[e._v("津贴总消费:"),n("span",[e._v("¥"+e._s(e.returnConsumeCheck("subsidyAmount")))])]),n("p",[e._v("现金总消费:"),n("span",[e._v("¥"+e._s(e.returnConsumeCheck("realityAmount")))])])])])])])},o=[],i=(n("6b54"),n("0d5e")),s=n("c1df"),c=n.n(s),r={name:"systemReconciliation",data:function(){return{startTime:"",endTime:"",startValue:null,endValue:null,endOpen:!1,systemReconciliationDetails:{}}},created:function(){var e=new Date,t=e.getFullYear(),n=e.getMonth()+1,a=new Date(t,n,0).getDate().toString().length>1?new Date(t,n,0).getDate():"0"+new Date(t,n,0).getDate();this.startTime="".concat(t,"-").concat(n.toString().length>1?n:"0"+n,"-01"),this.endTime="".concat(t,"-").concat(n.toString().length>1?n:"0"+n,"-").concat(a),this.startValue=this.moment("".concat(t,"-").concat(n.toString().length>1?n:"0"+n,"-01"),"YYYY-MM-DD"),this.endValue=this.moment("".concat(t,"-").concat(n.toString().length>1?n:"0"+n,"-").concat(a),"YYYY-MM-DD"),this.getAccountCheck()},methods:{moment:c.a,disabledStartDate:function(e){var t=this.endValue;return!(!e||!t)&&(e.valueOf()>t.valueOf()||e.valueOf()>=c()().endOf("day").valueOf())},disabledEndDate:function(e){var t=this.startValue;return!(!e||!t)&&(t.valueOf()>e.valueOf()||e.valueOf()>c()().endOf("day").valueOf())},handleStartOpenChange:function(e){e||(this.endOpen=!0)},handleEndOpenChange:function(e){this.endOpen=e},onChangeStartValue:function(e,t){this.startTime=t},onChangeEndValue:function(e,t){this.endTime=t},returnConsumeCheck:function(e){var t=0;return this.systemReconciliationDetails.consumeCheck?"realityAmount"===e?(this.systemReconciliationDetails.consumeCheck.map(function(e){var n=e.realityAmount?e.realityAmount:0;t+=parseFloat(n)}),t.toFixed(2)):"subsidyAmount"===e?(this.systemReconciliationDetails.consumeCheck.map(function(e){var n=e.subsidyAmount?e.subsidyAmount:0;t+=parseFloat(n)}),t.toFixed(2)):"total"===e?(this.systemReconciliationDetails.consumeCheck.map(function(e){var n=e.orderAmount?e.orderAmount:0;t+=parseFloat(n)}),t.toFixed(2)):void 0:"0.00"},returnSubsidyCheckTotal:function(){var e=0;return this.systemReconciliationDetails.subsidyCheck?(this.systemReconciliationDetails.subsidyCheck.map(function(t){var n=t.amount?t.amount:0;e+=parseFloat(n)}),e.toFixed(2)):"0.00"},returnRechargeAmount:function(){var e=this.systemReconciliationDetails.internalRechargeAmount||0,t=this.systemReconciliationDetails.externalRechargeAmount||0,n=parseFloat(e)+parseFloat(t);return n.toFixed(2)},getAccountCheck:function(){var e=this,t={startTime:this.startTime,endTime:this.endTime};i["a"].get("/mingpay/v1/isv/account/accountCheck",t).then(function(t){console.log(t.data.data),0===t.data.resultCode?e.systemReconciliationDetails=t.data.data:e.$message.error(t.data.message)})}}},l=r,u=(n("23ee"),n("2877")),d=Object(u["a"])(l,a,o,!1,null,"2d7f60b5",null);t["default"]=d.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-13ec64c5"],{"0d5e":function(e,t,n){"use strict";n.d(t,"a",function(){return d});var a,o=n("7f43"),i=n.n(o),s=n("4328"),c=n.n(s),r=n("9f82"),l=n("f64c"),u="https://gateway.mingwork.com";i.a.interceptors.request.use(function(e){var t=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in")-3e5;return t?(e.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),e):new Promise(function(e,t){Object(r["c"])().then(function(e){console.log("res",e)}).catch(function(e){console.log(e)})})},function(e){return a.close(),Promise.reject(e)}),i.a.interceptors.response.use(function(e){return Promise.resolve(e)},function(e){return new Promise(function(t,n){if(console.log(e),e&&e.response)switch(e.response.status){case 401:l["a"].error("网络异常请重试"),Object(r["c"])().then(function(n){console.log("refreshToken1",n),t(e)});break;case 426:l["a"].error("网络异常请重试"),Object(r["a"])().then(function(n){t(e)});break;case 504:l["a"].error("系统异常"),t(e);break;case 500:l["a"].error("系统繁忙"),t(e);break;default:l["a"].error("未知问题"),t(e),n(new Error(e))}else l["a"].error("未知问题"),t(e)})});var d={post:function(e,t){return new Promise(function(n,a){var o=void 0===t?"":t;i.a.post("".concat(u).concat(e),o,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(e){return n(e)})})},get:function(e,t){return new Promise(function(n,a){var o=void 0===t?"":c.a.stringify(t);i.a.get("".concat(u).concat(e,"?").concat(o)).then(function(e){return n(e)})})}}},"23ee":function(e,t,n){"use strict";var a=n("8040"),o=n.n(a);o.a},3846:function(e,t,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"6b54":function(e,t,n){"use strict";n("3846");var a=n("cb7c"),o=n("0bfb"),i=n("9e1e"),s="toString",c=/./[s],r=function(e){n("2aba")(RegExp.prototype,s,e,!0)};n("79e5")(function(){return"/a/b"!=c.call({source:"a",flags:"b"})})?r(function(){var e=a(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?o.call(e):void 0)}):c.name!=s&&r(function(){return c.call(this)})},8040:function(e,t,n){},"948a":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"SystemReconciliation"},[n("div",{staticClass:"searchBox"},[n("a-date-picker",{attrs:{disabledDate:e.disabledStartDate,format:"YYYY-MM-DD",placeholder:"开始日期"},on:{change:e.onChangeStartValue,openChange:e.handleStartOpenChange},model:{value:e.startValue,callback:function(t){e.startValue=t},expression:"startValue"}}),e._v("\n ~\n "),n("a-date-picker",{attrs:{disabledDate:e.disabledEndDate,format:"YYYY-MM-DD",placeholder:"结束日期",open:e.endOpen},on:{change:e.onChangeEndValue,openChange:e.handleEndOpenChange},model:{value:e.endValue,callback:function(t){e.endValue=t},expression:"endValue"}}),n("a-button",{attrs:{type:"primary"},on:{click:e.getAccountCheck}},[e._v("查询")])],1),n("div",{staticClass:"title"},[e._v("账单汇总")]),n("div",{staticClass:"SystemReconciliationContent"},[n("div",{staticClass:"contentItem"},[n("div",{staticClass:"title"},[e._v("\n 充值金额\n ")]),n("div",[n("p",[n("label",[e._v("现金:")]),e._v("¥"+e._s(e.systemReconciliationDetails.internalRechargeAmount||"0.00"))]),n("p",[n("label",[e._v("支付宝:")]),e._v("¥"+e._s(e.systemReconciliationDetails.externalRechargeAmount||"0.00"))])]),n("div",[n("p",[e._v("共计:"),n("span",[e._v("¥"+e._s(e.returnRechargeAmount()))])])])]),n("div",{staticClass:"contentItem"},[n("div",{staticClass:"title"},[e._v("\n 发放津贴\n ")]),n("div",e._l(e.systemReconciliationDetails.subsidyCheck,function(t){return n("p",{key:t.sceneType},[n("label",[e._v(e._s("TRAVEL"===t.sceneType?"交通补助":"餐补")+":")]),e._v("¥"+e._s(t.amount||"0.00"))])}),0),n("div",[n("p",[e._v("共计:"),n("span",[e._v("¥"+e._s(e.returnSubsidyCheckTotal()))])])])]),n("div",{staticClass:"contentItem"},[n("div",{staticClass:"title"},[e._v("\n 消费金额\n ")]),n("div",{staticClass:"recordsBox"},e._l(e.systemReconciliationDetails.consumeCheck,function(t){return n("div",{key:t.sceneType},[n("div",[e._v(e._s("TRAVEL"===t.sceneType?"交通消费":"用餐消费")+":")]),n("div",[n("p",[e._v("现金:¥"+e._s(t.realityAmount||"0.00"))]),n("p",[e._v("津贴:¥"+e._s(t.subsidyAmount||"0.00"))])])])}),0),n("div",[n("p",[e._v("共计:"),n("span",[e._v("¥"+e._s(e.returnConsumeCheck("total")))])]),n("p",[e._v("津贴总消费:"),n("span",[e._v("¥"+e._s(e.returnConsumeCheck("subsidyAmount")))])]),n("p",[e._v("现金总消费:"),n("span",[e._v("¥"+e._s(e.returnConsumeCheck("realityAmount")))])])])])])])},o=[],i=(n("6b54"),n("0d5e")),s=n("c1df"),c=n.n(s),r={name:"systemReconciliation",data:function(){return{startTime:"",endTime:"",startValue:null,endValue:null,endOpen:!1,systemReconciliationDetails:{}}},created:function(){var e=new Date,t=e.getFullYear(),n=e.getMonth()+1,a=new Date(t,n,0).getDate().toString().length>1?new Date(t,n,0).getDate():"0"+new Date(t,n,0).getDate();this.startTime="".concat(t,"-").concat(n.toString().length>1?n:"0"+n,"-01"),this.endTime="".concat(t,"-").concat(n.toString().length>1?n:"0"+n,"-").concat(a),this.startValue=this.moment("".concat(t,"-").concat(n.toString().length>1?n:"0"+n,"-01"),"YYYY-MM-DD"),this.endValue=this.moment("".concat(t,"-").concat(n.toString().length>1?n:"0"+n,"-").concat(a),"YYYY-MM-DD"),this.getAccountCheck()},methods:{moment:c.a,disabledStartDate:function(e){var t=this.endValue;return!(!e||!t)&&(e.valueOf()>t.valueOf()||e.valueOf()>=c()().endOf("day").valueOf())},disabledEndDate:function(e){var t=this.startValue;return!(!e||!t)&&(t.valueOf()>e.valueOf()||e.valueOf()>c()().endOf("day").valueOf())},handleStartOpenChange:function(e){e||(this.endOpen=!0)},handleEndOpenChange:function(e){this.endOpen=e},onChangeStartValue:function(e,t){this.startTime=t},onChangeEndValue:function(e,t){this.endTime=t},returnConsumeCheck:function(e){var t=0;return this.systemReconciliationDetails.consumeCheck?"realityAmount"===e?(this.systemReconciliationDetails.consumeCheck.map(function(e){var n=e.realityAmount?e.realityAmount:0;t+=parseFloat(n)}),t.toFixed(2)):"subsidyAmount"===e?(this.systemReconciliationDetails.consumeCheck.map(function(e){var n=e.subsidyAmount?e.subsidyAmount:0;t+=parseFloat(n)}),t.toFixed(2)):"total"===e?(this.systemReconciliationDetails.consumeCheck.map(function(e){var n=e.orderAmount?e.orderAmount:0;t+=parseFloat(n)}),t.toFixed(2)):void 0:"0.00"},returnSubsidyCheckTotal:function(){var e=0;return this.systemReconciliationDetails.subsidyCheck?(this.systemReconciliationDetails.subsidyCheck.map(function(t){var n=t.amount?t.amount:0;e+=parseFloat(n)}),e.toFixed(2)):"0.00"},returnRechargeAmount:function(){var e=this.systemReconciliationDetails.internalRechargeAmount||0,t=this.systemReconciliationDetails.externalRechargeAmount||0,n=parseFloat(e)+parseFloat(t);return n.toFixed(2)},getAccountCheck:function(){var e=this,t={startTime:this.startTime,endTime:this.endTime};i["a"].get("/mingpay/v1/isv/account/accountCheck",t).then(function(t){console.log(t.data.data),0===t.data.resultCode?e.systemReconciliationDetails=t.data.data:e.$message.error(t.data.message)})}}},l=r,u=(n("23ee"),n("2877")),d=Object(u["a"])(l,a,o,!1,null,"2d7f60b5",null);t["default"]=d.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28723f13"],{"0d5e":function(e,t,a){"use strict";a.d(t,"a",function(){return g});var s,n=a("7f43"),r=a.n(n),c=a("4328"),o=a.n(c),i=a("9f82"),u=a("f64c"),l="https://gateway.mingwork.com";r.a.interceptors.request.use(function(e){var t=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in_".concat(localStorage.getItem("orgId")))-3e5;return t?(e.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),e):new Promise(function(e,t){Object(i["c"])().then(function(e){console.log("res",e)}).catch(function(e){console.log(e)})})},function(e){return s.close(),Promise.reject(e)}),r.a.interceptors.response.use(function(e){return Promise.resolve(e)},function(e){return new Promise(function(t,a){if(console.log(e),e&&e.response)switch(e.response.status){case 401:u["a"].error("网络异常请重试"),Object(i["c"])().then(function(a){console.log("refreshToken1",a),t(e)});break;case 426:u["a"].error("网络异常请重试"),Object(i["a"])().then(function(a){t(e)});break;case 504:u["a"].error("系统异常"),t(e);break;case 500:u["a"].error("系统繁忙"),t(e);break;default:u["a"].error("未知问题"),t(e),a(new Error(e))}else u["a"].error("未知问题"),t(e)})});var g={post:function(e,t){return new Promise(function(a,s){var n=void 0===t?"":t;r.a.post("".concat(l).concat(e),n,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(e){return a(e)})})},get:function(e,t){return new Promise(function(a,s){var n=void 0===t?"":o.a.stringify(t);r.a.get("".concat(l).concat(e,"?").concat(n)).then(function(e){return a(e)})})}}},"67f4":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"cashierManagement"},[a("a-button",{staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:e.choosePeople}},[e._v("添加收银人")]),e.searchSource.UserMessage.emplId?a("div",{staticClass:"searchUserMessage"},[a("div",{staticClass:"positionDiv"}),a("div",{staticClass:"clearUserMessage"},[a("a",{attrs:{href:"javascript:;"},on:{click:e.clearUserMessage}},[e._v("清除")])]),e.searchSource.UserMessage.avatar?a("img",{attrs:{src:e.searchSource.UserMessage.avatar,alt:e.searchSource.UserMessage.name}}):a("img",{attrs:{src:this.avatarCanvasFn(e.searchSource.UserMessage.name),alt:e.searchSource.UserMessage.name}}),a("span",[e._v(e._s(e.searchSource.UserMessage.name))])]):e._e(),a("a-table",{attrs:{columns:e.columns,dataSource:e.cashierManagementList,size:"default",rowKey:"id",pagination:e.pagination},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,s,n){return a("span",{},["0"===s.status?a("a",{attrs:{href:"javascript:;"},on:{click:function(a){return e.showModel(s,t,n)}}},[e._v("删除")]):a("a",{staticStyle:{color:"#cccccc"},attrs:{href:"javascript:;"}},[e._v("已删除")])])}}])},[a("span",{attrs:{slot:"name"},slot:"name"},[e._v("成员")]),a("span",{attrs:{slot:"createDate"},slot:"createDate"})])],1)},n=[],r=(a("7f7f"),a("da71")),c=a("0d5e"),o={name:"cashierManagement",data:function(){return{searchSource:{UserMessage:{avatar:"",emplId:"",name:""},status:"",agentId:""},columns:[{title:"成员",dataIndex:"name"},{title:"时间",dataIndex:"createDate"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"}}],cashierManagementList:[],pagination:{current:1,defaultCurrent:1,defaultPageSize:10,hideOnSinglePage:!0,total:0}}},watch:{},computed:{},created:function(){this.getCashierList()},methods:{showModel:function(e,t,a){var s=this;this.$confirm({title:"确认要删除该收银员吗?",content:"删除后,该人员无法在设备上进行收钱操作",okText:"确定",cancelText:"取消",onOk:function(){s.deleteCashier(e)}})},deleteCashier:function(e){var t=this,a={ddUserId:e.userId,cashierStatus:"1",userType:"0",id:e.id};c["a"].get("/mingpay/v1/isv/cashier/delete_cashier",a).then(function(e){0===e.data.resultCode?(t.$message.success("操作成功"),t.getCashierList()):t.$message.error(e.data.message)}).catch(function(){t.$message.error("删除失败")})},getCashierList:function(){var e=this,t={pageNumber:this.pagination.defaultPageSize,currentPage:this.pagination.current,userType:"0"};c["a"].get("/mingpay/v1/isv/cashier/list_cashier",t).then(function(t){e.pagination.total=parseInt(t.data.data.total),e.cashierManagementList=t.data.data.list}).catch(function(){e.$message.error("获取收银员信息失败")})},createTimeToStr:function(e){var t=new Date(parseInt(e)),a=t.getFullYear(),s=t.getMonth()+1,n=t.getDate(),r=t.getHours(),c=t.getMinutes();return"".concat(a,"年").concat(s,"月").concat(n,"日 ").concat(r,":").concat(c)},choosePeople:function(){var e=this;r["a"].ddready("ddchooseOne").then(function(t){var a={cashierName:t[0].name,ddUserId:t[0].emplId,cashierStatus:"0",userType:"0"};c["a"].get("/mingpay/v1/isv/cashier/insert_cashier",a).then(function(t){0===t.data.resultCode?(e.$message.success("添加成功"),e.getCashierList()):e.$message.error(t.data.message)}).catch(function(t){e.$message.error("网络异常请重试"),console.log(t)})})},handleTableChange:function(e,t,a){this.pagination.current=e.current,this.getCashierList()}}},i=o,u=(a("b9b9"),a("2877")),l=Object(u["a"])(i,s,n,!1,null,"933d56a2",null);t["default"]=l.exports},8844:function(e,t,a){},b9b9:function(e,t,a){"use strict";var s=a("8844"),n=a.n(s);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28723f13"],{"0d5e":function(e,t,a){"use strict";a.d(t,"a",function(){return g});var s,n=a("7f43"),r=a.n(n),c=a("4328"),o=a.n(c),i=a("9f82"),u=a("f64c"),l="https://gateway.mingwork.com";r.a.interceptors.request.use(function(e){var t=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in")-3e5;return t?(e.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),e):new Promise(function(e,t){Object(i["c"])().then(function(e){console.log("res",e)}).catch(function(e){console.log(e)})})},function(e){return s.close(),Promise.reject(e)}),r.a.interceptors.response.use(function(e){return Promise.resolve(e)},function(e){return new Promise(function(t,a){if(console.log(e),e&&e.response)switch(e.response.status){case 401:u["a"].error("网络异常请重试"),Object(i["c"])().then(function(a){console.log("refreshToken1",a),t(e)});break;case 426:u["a"].error("网络异常请重试"),Object(i["a"])().then(function(a){t(e)});break;case 504:u["a"].error("系统异常"),t(e);break;case 500:u["a"].error("系统繁忙"),t(e);break;default:u["a"].error("未知问题"),t(e),a(new Error(e))}else u["a"].error("未知问题"),t(e)})});var g={post:function(e,t){return new Promise(function(a,s){var n=void 0===t?"":t;r.a.post("".concat(l).concat(e),n,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(e){return a(e)})})},get:function(e,t){return new Promise(function(a,s){var n=void 0===t?"":o.a.stringify(t);r.a.get("".concat(l).concat(e,"?").concat(n)).then(function(e){return a(e)})})}}},"67f4":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"cashierManagement"},[a("a-button",{staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:e.choosePeople}},[e._v("添加收银人")]),e.searchSource.UserMessage.emplId?a("div",{staticClass:"searchUserMessage"},[a("div",{staticClass:"positionDiv"}),a("div",{staticClass:"clearUserMessage"},[a("a",{attrs:{href:"javascript:;"},on:{click:e.clearUserMessage}},[e._v("清除")])]),e.searchSource.UserMessage.avatar?a("img",{attrs:{src:e.searchSource.UserMessage.avatar,alt:e.searchSource.UserMessage.name}}):a("img",{attrs:{src:this.avatarCanvasFn(e.searchSource.UserMessage.name),alt:e.searchSource.UserMessage.name}}),a("span",[e._v(e._s(e.searchSource.UserMessage.name))])]):e._e(),a("a-table",{attrs:{columns:e.columns,dataSource:e.cashierManagementList,size:"default",rowKey:"id",pagination:e.pagination},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,s,n){return a("span",{},["0"===s.status?a("a",{attrs:{href:"javascript:;"},on:{click:function(a){return e.showModel(s,t,n)}}},[e._v("删除")]):a("a",{staticStyle:{color:"#cccccc"},attrs:{href:"javascript:;"}},[e._v("已删除")])])}}])},[a("span",{attrs:{slot:"name"},slot:"name"},[e._v("成员")]),a("span",{attrs:{slot:"createDate"},slot:"createDate"})])],1)},n=[],r=(a("7f7f"),a("da71")),c=a("0d5e"),o={name:"cashierManagement",data:function(){return{searchSource:{UserMessage:{avatar:"",emplId:"",name:""},status:"",agentId:""},columns:[{title:"成员",dataIndex:"name"},{title:"时间",dataIndex:"createDate"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"}}],cashierManagementList:[],pagination:{current:1,defaultCurrent:1,defaultPageSize:10,hideOnSinglePage:!0,total:0}}},watch:{},computed:{},created:function(){this.getCashierList()},methods:{showModel:function(e,t,a){var s=this;this.$confirm({title:"确认要删除该收银员吗?",content:"删除后,该人员无法在设备上进行收钱操作",okText:"确定",cancelText:"取消",onOk:function(){s.deleteCashier(e)}})},deleteCashier:function(e){var t=this,a={ddUserId:e.userId,cashierStatus:"1",userType:"0",id:e.id};c["a"].get("/mingpay/v1/isv/cashier/delete_cashier",a).then(function(e){0===e.data.resultCode?(t.$message.success("操作成功"),t.getCashierList()):t.$message.error(e.data.message)}).catch(function(){t.$message.error("删除失败")})},getCashierList:function(){var e=this,t={pageNumber:this.pagination.defaultPageSize,currentPage:this.pagination.current,userType:"0"};c["a"].get("/mingpay/v1/isv/cashier/list_cashier",t).then(function(t){e.pagination.total=parseInt(t.data.data.total),e.cashierManagementList=t.data.data.list}).catch(function(){e.$message.error("获取收银员信息失败")})},createTimeToStr:function(e){var t=new Date(parseInt(e)),a=t.getFullYear(),s=t.getMonth()+1,n=t.getDate(),r=t.getHours(),c=t.getMinutes();return"".concat(a,"年").concat(s,"月").concat(n,"日 ").concat(r,":").concat(c)},choosePeople:function(){var e=this;r["a"].ddready("ddchooseOne").then(function(t){var a={cashierName:t[0].name,ddUserId:t[0].emplId,cashierStatus:"0",userType:"0"};c["a"].get("/mingpay/v1/isv/cashier/insert_cashier",a).then(function(t){0===t.data.resultCode?(e.$message.success("添加成功"),e.getCashierList()):e.$message.error(t.data.message)}).catch(function(t){e.$message.error("网络异常请重试"),console.log(t)})})},handleTableChange:function(e,t,a){this.pagination.current=e.current,this.getCashierList()}}},i=o,u=(a("b9b9"),a("2877")),l=Object(u["a"])(i,s,n,!1,null,"933d56a2",null);t["default"]=l.exports},8844:function(e,t,a){},b9b9:function(e,t,a){"use strict";var s=a("8844"),n=a.n(s);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3f3336d0"],{"0d5e":function(e,t,n){"use strict";n.d(t,"a",function(){return d});var a,c=n("7f43"),i=n.n(c),r=n("4328"),o=n.n(r),s=n("9f82"),g=n("f64c"),h="https://gateway.mingwork.com";i.a.interceptors.request.use(function(e){var t=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in_".concat(localStorage.getItem("orgId")))-3e5;return t?(e.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),e):new Promise(function(e,t){Object(s["c"])().then(function(e){console.log("res",e)}).catch(function(e){console.log(e)})})},function(e){return a.close(),Promise.reject(e)}),i.a.interceptors.response.use(function(e){return Promise.resolve(e)},function(e){return new Promise(function(t,n){if(console.log(e),e&&e.response)switch(e.response.status){case 401:g["a"].error("网络异常请重试"),Object(s["c"])().then(function(n){console.log("refreshToken1",n),t(e)});break;case 426:g["a"].error("网络异常请重试"),Object(s["a"])().then(function(n){t(e)});break;case 504:g["a"].error("系统异常"),t(e);break;case 500:g["a"].error("系统繁忙"),t(e);break;default:g["a"].error("未知问题"),t(e),n(new Error(e))}else g["a"].error("未知问题"),t(e)})});var d={post:function(e,t){return new Promise(function(n,a){var c=void 0===t?"":t;i.a.post("".concat(h).concat(e),c,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(e){return n(e)})})},get:function(e,t){return new Promise(function(n,a){var c=void 0===t?"":o.a.stringify(t);i.a.get("".concat(h).concat(e,"?").concat(c)).then(function(e){return n(e)})})}}},"3a9c":function(e,t,n){},"7aeb":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"paymentManagementSetting"},[e._m(0),n("div",{staticClass:"paymentManagementSettingContent"},[n("div",[n("label",[e._v("现金充值:")]),n("a-input",{staticStyle:{width:"510px"},attrs:{disabled:"",placeholder:"请输入审批模板ID"},model:{value:e.OrgSettingData.chargeProcessInstanceId,callback:function(t){e.$set(e.OrgSettingData,"chargeProcessInstanceId",t)},expression:"OrgSettingData.chargeProcessInstanceId"}}),n("a-switch",{attrs:{checkedChildren:"开",unCheckedChildren:"关",defaultChecked:"",checked:""!==e.OrgSettingData.chargeSwitch&&"CLOSE"!==e.OrgSettingData.chargeSwitch},on:{change:e.chargeSwitchOnChange}})],1),n("div",[n("label",[e._v("津贴发放:")]),n("a-input",{staticStyle:{width:"510px"},attrs:{disabled:"",placeholder:"请输入审批模板ID"},model:{value:e.OrgSettingData.provideSubsidyId,callback:function(t){e.$set(e.OrgSettingData,"provideSubsidyId",t)},expression:"OrgSettingData.provideSubsidyId"}}),n("a-switch",{attrs:{checkedChildren:"开",unCheckedChildren:"关",defaultChecked:"",checked:""!==e.OrgSettingData.provideSubsidySwitch&&"CLOSE"!==e.OrgSettingData.provideSubsidySwitch},on:{change:e.provideSubsidySwitchOnChange}})],1),e._m(1)]),e._m(2),n("div",{staticClass:"switchList"},[n("div",[n("label",[e._v("充值通知:")]),n("a-switch",{attrs:{checkedChildren:"开",unCheckedChildren:"关",defaultChecked:"",checked:""!==e.OrgSettingData.chargeNotice&&"CLOSE"!==e.OrgSettingData.chargeNotice},on:{change:e.chargeNoticeOnChange}})],1),n("div",[n("label",[e._v("退款通知:")]),n("a-switch",{attrs:{checkedChildren:"开",unCheckedChildren:"关",defaultChecked:"",checked:""!==e.OrgSettingData.refundNotice&&"CLOSE"!==e.OrgSettingData.refundNotice},on:{change:e.refundNoticeOnChange}})],1),n("div",[n("label",[e._v("发津贴通知:")]),n("a-switch",{attrs:{checkedChildren:"开",unCheckedChildren:"关",defaultChecked:"",checked:""!==e.OrgSettingData.provideSubsidyNotice&&"CLOSE"!==e.OrgSettingData.provideSubsidyNotice},on:{change:e.provideSubsidyNoticeOnChange}})],1),n("div",[n("label",[e._v("消费通知:")]),n("a-switch",{attrs:{checkedChildren:"开",unCheckedChildren:"关",defaultChecked:"",checked:""!==e.OrgSettingData.consumeNotice&&"CLOSE"!==e.OrgSettingData.consumeNotice},on:{change:e.consumeSwitchOnChange}})],1)]),n("div",{staticStyle:{"margin-top":"60px","margin-left":"200px"}},[n("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.updateOrgSetting()}}},[e._v("保存修改")])],1)])},c=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"title"},[n("span",[e._v("以下功能是否需要审批")]),n("span",[e._v("开启后钉钉管理员将会收到需要审批的审批单")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[n("span",[e._v("*")]),e._v("请先到钉钉的管理后台创建相关的审批模板")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"title"},[n("span",[e._v("以下功能是否开启消息通知")]),n("span",[e._v("开启后用户将收到钉钉消息通知")])])}],i=n("0d5e"),r={name:"paymentManagementSetting",data:function(){return{OrgSettingData:{}}},watch:{},computed:{},created:function(){this.queryOrgSetting()},methods:{queryOrgSetting:function(){var e=this;i["a"].post("/mingpay/v1/isv/org_setting/query_org_setting_by_org_id").then(function(t){console.log(t),e.OrgSettingData=t.data.data}).catch(function(t){e.$message.error("网络异常请重试"),console.log(t)})},updateOrgSetting:function(){var e=this,t=this.OrgSettingData;""===this.OrgSettingData.chargeProcessInstanceId&&"OPEN"===this.OrgSettingData.chargeSwitch?this.$message.error("打开审批开关后必须填写审批模版ID"):""===this.OrgSettingData.provideSubsidyId&&"OPEN"===this.OrgSettingData.provideSubsidySwitch?this.$message.error("打开审批开关后必须填写审批模版ID"):i["a"].post("/mingpay/v1/isv/org_setting/update_org_setting_by_org_id",t).then(function(t){0===t.data.resultCode?e.$message.success("保存成功"):e.$message.error("保存失败")}).catch(function(t){e.$message.error(t)})},chargeSwitchOnChange:function(e){this.OrgSettingData.chargeSwitch=e?"OPEN":"CLOSE"},provideSubsidySwitchOnChange:function(e){this.OrgSettingData.provideSubsidySwitch=e?"OPEN":"CLOSE",console.log("a-switch to ".concat(e))},chargeNoticeOnChange:function(e){console.log("a-switch to ".concat(e)),this.OrgSettingData.chargeNotice=e?"OPEN":"CLOSE"},refundNoticeOnChange:function(e){this.OrgSettingData.refundNotice=e?"OPEN":"CLOSE",console.log("a-switch to ".concat(e))},provideSubsidyNoticeOnChange:function(e){this.OrgSettingData.provideSubsidyNotice=e?"OPEN":"CLOSE",console.log("a-switch to ".concat(e))},consumeSwitchOnChange:function(e){this.OrgSettingData.consumeNotice=e?"OPEN":"CLOSE",console.log("a-switch to ".concat(e))}}},o=r,s=(n("af95"),n("2877")),g=Object(s["a"])(o,a,c,!1,null,"2921ed34",null);t["default"]=g.exports},af95:function(e,t,n){"use strict";var a=n("3a9c"),c=n.n(a);c.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3f3336d0"],{"0d5e":function(e,t,n){"use strict";n.d(t,"a",function(){return d});var a,c=n("7f43"),i=n.n(c),r=n("4328"),o=n.n(r),s=n("9f82"),g=n("f64c"),h="https://gateway.mingwork.com";i.a.interceptors.request.use(function(e){var t=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in")-3e5;return t?(e.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),e):new Promise(function(e,t){Object(s["c"])().then(function(e){console.log("res",e)}).catch(function(e){console.log(e)})})},function(e){return a.close(),Promise.reject(e)}),i.a.interceptors.response.use(function(e){return Promise.resolve(e)},function(e){return new Promise(function(t,n){if(console.log(e),e&&e.response)switch(e.response.status){case 401:g["a"].error("网络异常请重试"),Object(s["c"])().then(function(n){console.log("refreshToken1",n),t(e)});break;case 426:g["a"].error("网络异常请重试"),Object(s["a"])().then(function(n){t(e)});break;case 504:g["a"].error("系统异常"),t(e);break;case 500:g["a"].error("系统繁忙"),t(e);break;default:g["a"].error("未知问题"),t(e),n(new Error(e))}else g["a"].error("未知问题"),t(e)})});var d={post:function(e,t){return new Promise(function(n,a){var c=void 0===t?"":t;i.a.post("".concat(h).concat(e),c,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(e){return n(e)})})},get:function(e,t){return new Promise(function(n,a){var c=void 0===t?"":o.a.stringify(t);i.a.get("".concat(h).concat(e,"?").concat(c)).then(function(e){return n(e)})})}}},"3a9c":function(e,t,n){},"7aeb":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"paymentManagementSetting"},[e._m(0),n("div",{staticClass:"paymentManagementSettingContent"},[n("div",[n("label",[e._v("现金充值:")]),n("a-input",{staticStyle:{width:"510px"},attrs:{disabled:"",placeholder:"请输入审批模板ID"},model:{value:e.OrgSettingData.chargeProcessInstanceId,callback:function(t){e.$set(e.OrgSettingData,"chargeProcessInstanceId",t)},expression:"OrgSettingData.chargeProcessInstanceId"}}),n("a-switch",{attrs:{checkedChildren:"开",unCheckedChildren:"关",defaultChecked:"",checked:""!==e.OrgSettingData.chargeSwitch&&"CLOSE"!==e.OrgSettingData.chargeSwitch},on:{change:e.chargeSwitchOnChange}})],1),n("div",[n("label",[e._v("津贴发放:")]),n("a-input",{staticStyle:{width:"510px"},attrs:{disabled:"",placeholder:"请输入审批模板ID"},model:{value:e.OrgSettingData.provideSubsidyId,callback:function(t){e.$set(e.OrgSettingData,"provideSubsidyId",t)},expression:"OrgSettingData.provideSubsidyId"}}),n("a-switch",{attrs:{checkedChildren:"开",unCheckedChildren:"关",defaultChecked:"",checked:""!==e.OrgSettingData.provideSubsidySwitch&&"CLOSE"!==e.OrgSettingData.provideSubsidySwitch},on:{change:e.provideSubsidySwitchOnChange}})],1),e._m(1)]),e._m(2),n("div",{staticClass:"switchList"},[n("div",[n("label",[e._v("充值通知:")]),n("a-switch",{attrs:{checkedChildren:"开",unCheckedChildren:"关",defaultChecked:"",checked:""!==e.OrgSettingData.chargeNotice&&"CLOSE"!==e.OrgSettingData.chargeNotice},on:{change:e.chargeNoticeOnChange}})],1),n("div",[n("label",[e._v("退款通知:")]),n("a-switch",{attrs:{checkedChildren:"开",unCheckedChildren:"关",defaultChecked:"",checked:""!==e.OrgSettingData.refundNotice&&"CLOSE"!==e.OrgSettingData.refundNotice},on:{change:e.refundNoticeOnChange}})],1),n("div",[n("label",[e._v("发津贴通知:")]),n("a-switch",{attrs:{checkedChildren:"开",unCheckedChildren:"关",defaultChecked:"",checked:""!==e.OrgSettingData.provideSubsidyNotice&&"CLOSE"!==e.OrgSettingData.provideSubsidyNotice},on:{change:e.provideSubsidyNoticeOnChange}})],1),n("div",[n("label",[e._v("消费通知:")]),n("a-switch",{attrs:{checkedChildren:"开",unCheckedChildren:"关",defaultChecked:"",checked:""!==e.OrgSettingData.consumeNotice&&"CLOSE"!==e.OrgSettingData.consumeNotice},on:{change:e.consumeSwitchOnChange}})],1)]),n("div",{staticStyle:{"margin-top":"60px","margin-left":"200px"}},[n("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.updateOrgSetting()}}},[e._v("保存修改")])],1)])},c=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"title"},[n("span",[e._v("以下功能是否需要审批")]),n("span",[e._v("开启后钉钉管理员将会收到需要审批的审批单")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[n("span",[e._v("*")]),e._v("请先到钉钉的管理后台创建相关的审批模板")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"title"},[n("span",[e._v("以下功能是否开启消息通知")]),n("span",[e._v("开启后用户将收到钉钉消息通知")])])}],i=n("0d5e"),r={name:"paymentManagementSetting",data:function(){return{OrgSettingData:{}}},watch:{},computed:{},created:function(){this.queryOrgSetting()},methods:{queryOrgSetting:function(){var e=this;i["a"].post("/mingpay/v1/isv/org_setting/query_org_setting_by_org_id").then(function(t){console.log(t),e.OrgSettingData=t.data.data}).catch(function(t){e.$message.error("网络异常请重试"),console.log(t)})},updateOrgSetting:function(){var e=this,t=this.OrgSettingData;""===this.OrgSettingData.chargeProcessInstanceId&&"OPEN"===this.OrgSettingData.chargeSwitch?this.$message.error("打开审批开关后必须填写审批模版ID"):""===this.OrgSettingData.provideSubsidyId&&"OPEN"===this.OrgSettingData.provideSubsidySwitch?this.$message.error("打开审批开关后必须填写审批模版ID"):i["a"].post("/mingpay/v1/isv/org_setting/update_org_setting_by_org_id",t).then(function(t){0===t.data.resultCode?e.$message.success("保存成功"):e.$message.error("保存失败")}).catch(function(t){e.$message.error(t)})},chargeSwitchOnChange:function(e){this.OrgSettingData.chargeSwitch=e?"OPEN":"CLOSE"},provideSubsidySwitchOnChange:function(e){this.OrgSettingData.provideSubsidySwitch=e?"OPEN":"CLOSE",console.log("a-switch to ".concat(e))},chargeNoticeOnChange:function(e){console.log("a-switch to ".concat(e)),this.OrgSettingData.chargeNotice=e?"OPEN":"CLOSE"},refundNoticeOnChange:function(e){this.OrgSettingData.refundNotice=e?"OPEN":"CLOSE",console.log("a-switch to ".concat(e))},provideSubsidyNoticeOnChange:function(e){this.OrgSettingData.provideSubsidyNotice=e?"OPEN":"CLOSE",console.log("a-switch to ".concat(e))},consumeSwitchOnChange:function(e){this.OrgSettingData.consumeNotice=e?"OPEN":"CLOSE",console.log("a-switch to ".concat(e))}}},o=r,s=(n("af95"),n("2877")),g=Object(s["a"])(o,a,c,!1,null,"2921ed34",null);t["default"]=g.exports},af95:function(e,t,n){"use strict";var a=n("3a9c"),c=n.n(a);c.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-49a19ba8"],{"0d5e":function(t,e,a){"use strict";a.d(e,"a",function(){return d});var n,o=a("7f43"),r=a.n(o),c=a("4328"),i=a.n(c),s=a("9f82"),l=a("f64c"),u="https://gateway.mingwork.com";r.a.interceptors.request.use(function(t){var e=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in_".concat(localStorage.getItem("orgId")))-3e5;return e?(t.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),t):new Promise(function(t,e){Object(s["c"])().then(function(t){console.log("res",t)}).catch(function(t){console.log(t)})})},function(t){return n.close(),Promise.reject(t)}),r.a.interceptors.response.use(function(t){return Promise.resolve(t)},function(t){return new Promise(function(e,a){if(console.log(t),t&&t.response)switch(t.response.status){case 401:l["a"].error("网络异常请重试"),Object(s["c"])().then(function(a){console.log("refreshToken1",a),e(t)});break;case 426:l["a"].error("网络异常请重试"),Object(s["a"])().then(function(a){e(t)});break;case 504:l["a"].error("系统异常"),e(t);break;case 500:l["a"].error("系统繁忙"),e(t);break;default:l["a"].error("未知问题"),e(t),a(new Error(t))}else l["a"].error("未知问题"),e(t)})});var d={post:function(t,e){return new Promise(function(a,n){var o=void 0===e?"":e;r.a.post("".concat(u).concat(t),o,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(t){return a(t)})})},get:function(t,e){return new Promise(function(a,n){var o=void 0===e?"":i.a.stringify(e);r.a.get("".concat(u).concat(t,"?").concat(o)).then(function(t){return a(t)})})}}},"1b47":function(t,e,a){},"2aad":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"historicalVisitors"},[a("div",{staticClass:"searchBox"},[a("a-input",{staticStyle:{width:"120px"},attrs:{placeholder:"访客人员"},model:{value:t.searchSource.visitorName,callback:function(e){t.$set(t.searchSource,"visitorName",e)},expression:"searchSource.visitorName"}}),a("a-input",{staticStyle:{width:"120px"},attrs:{placeholder:"访客人员"},model:{value:t.searchSource.visitorName,callback:function(e){t.$set(t.searchSource,"visitorName",e)},expression:"searchSource.visitorName"}}),a("a-date-picker",{attrs:{disabledDate:t.disabledStartDate,format:"YYYY-MM-DD",placeholder:"开始日期"},on:{change:t.onChangeStartValue,openChange:t.handleStartOpenChange},model:{value:t.startValue,callback:function(e){t.startValue=e},expression:"startValue"}}),t._v("\n ~\n "),a("a-date-picker",{attrs:{disabledDate:t.disabledEndDate,format:"YYYY-MM-DD",placeholder:"结束日期",open:t.endOpen},on:{change:t.onChangeEndValue,openChange:t.handleEndOpenChange},model:{value:t.endValue,callback:function(e){t.endValue=e},expression:"endValue"}}),a("a-button",{attrs:{type:"primary"},on:{click:t.getStatisticalProductPage}},[t._v("查询")])],1),a("div",{staticClass:"title"},[t._v("账单汇总")]),a("a-table",{attrs:{columns:t.columns,dataSource:t.dataSource,rowKey:"productId",pagination:t.pagination},on:{change:t.handleTableChange},scopedSlots:t._u([{key:"productIcon",fn:function(t){return a("span",{},[a("img",{staticStyle:{width:"100px"},attrs:{src:t,alt:""}})])}}])},[a("span",{attrs:{slot:"productName"},slot:"productName"}),a("span",{attrs:{slot:"productStatisticalQuantity"},slot:"productStatisticalQuantity"})])],1)},o=[],r=(a("6b54"),a("0d5e")),c=a("c1df"),i=a.n(c),s={name:"historicalVisitors",data:function(){return{startTime:"",endTime:"",startValue:null,endValue:null,endOpen:!1,pagination:{current:1,defaultCurrent:10,defaultPageSize:10,hideOnSinglePage:!0,total:0},columns:[{title:"产品图",dataIndex:"productIcon",scopedSlots:{customRender:"productIcon"}},{title:"菜名",dataIndex:"productName"},{title:"售出(份数)",dataIndex:"productStatisticalQuantity"}],dataSource:[]}},created:function(){var t=new Date,e=t.getFullYear(),a=t.getMonth()+1,n=new Date(e,a,0).getDate().toString().length>1?new Date(e,a,0).getDate():"0"+new Date(e,a,0).getDate();this.startTime="".concat(e,"-").concat(a.toString().length>1?a:"0"+a,"-01"),this.endTime="".concat(e,"-").concat(a.toString().length>1?a:"0"+a,"-").concat(n),this.startValue=this.moment("".concat(e,"-").concat(a.toString().length>1?a:"0"+a,"-01"),"YYYY-MM-DD"),this.endValue=this.moment("".concat(e,"-").concat(a.toString().length>1?a:"0"+a,"-").concat(n),"YYYY-MM-DD"),this.getStatisticalProductPage()},methods:{moment:i.a,disabledStartDate:function(t){var e=this.endValue;return!(!t||!e)&&(t.valueOf()>e.valueOf()||t.valueOf()>=i()().endOf("day").valueOf())},disabledEndDate:function(t){var e=this.startValue;return!(!t||!e)&&(e.valueOf()>t.valueOf()||t.valueOf()>i()().endOf("day").valueOf())},handleStartOpenChange:function(t){t||(this.endOpen=!0)},handleEndOpenChange:function(t){this.endOpen=t},onChangeStartValue:function(t,e){this.startTime=e},onChangeEndValue:function(t,e){this.endTime=e},getStatisticalProductPage:function(){var t=this,e={startTime:this.startTime,endTime:this.endTime,pageNumber:10,currentPage:this.pagination.current};r["a"].post("/admin/visit/list",e).then(function(e){0===e.data.resultCode?(t.dataSource=e.data.data.list,t.pagination.total=e.data.data.total):t.$message.error(e.data.message)})},handleTableChange:function(t,e,a){this.pagination.current=t.current,this.getStatisticalProductPage()}}},l=s,u=(a("6ccb"),a("2877")),d=Object(u["a"])(l,n,o,!1,null,"c89f31a6",null);e["default"]=d.exports},3846:function(t,e,a){a("9e1e")&&"g"!=/./g.flags&&a("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:a("0bfb")})},"6b54":function(t,e,a){"use strict";a("3846");var n=a("cb7c"),o=a("0bfb"),r=a("9e1e"),c="toString",i=/./[c],s=function(t){a("2aba")(RegExp.prototype,c,t,!0)};a("79e5")(function(){return"/a/b"!=i.call({source:"a",flags:"b"})})?s(function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!r&&t instanceof RegExp?o.call(t):void 0)}):i.name!=c&&s(function(){return i.call(this)})},"6ccb":function(t,e,a){"use strict";var n=a("1b47"),o=a.n(n);o.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-49a19ba8"],{"0d5e":function(t,e,a){"use strict";a.d(e,"a",function(){return d});var n,o=a("7f43"),r=a.n(o),c=a("4328"),i=a.n(c),s=a("9f82"),l=a("f64c"),u="https://gateway.mingwork.com";r.a.interceptors.request.use(function(t){var e=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in")-3e5;return e?(t.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),t):new Promise(function(t,e){Object(s["c"])().then(function(t){console.log("res",t)}).catch(function(t){console.log(t)})})},function(t){return n.close(),Promise.reject(t)}),r.a.interceptors.response.use(function(t){return Promise.resolve(t)},function(t){return new Promise(function(e,a){if(console.log(t),t&&t.response)switch(t.response.status){case 401:l["a"].error("网络异常请重试"),Object(s["c"])().then(function(a){console.log("refreshToken1",a),e(t)});break;case 426:l["a"].error("网络异常请重试"),Object(s["a"])().then(function(a){e(t)});break;case 504:l["a"].error("系统异常"),e(t);break;case 500:l["a"].error("系统繁忙"),e(t);break;default:l["a"].error("未知问题"),e(t),a(new Error(t))}else l["a"].error("未知问题"),e(t)})});var d={post:function(t,e){return new Promise(function(a,n){var o=void 0===e?"":e;r.a.post("".concat(u).concat(t),o,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(t){return a(t)})})},get:function(t,e){return new Promise(function(a,n){var o=void 0===e?"":i.a.stringify(e);r.a.get("".concat(u).concat(t,"?").concat(o)).then(function(t){return a(t)})})}}},"1b47":function(t,e,a){},"2aad":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"historicalVisitors"},[a("div",{staticClass:"searchBox"},[a("a-input",{staticStyle:{width:"120px"},attrs:{placeholder:"访客人员"},model:{value:t.searchSource.visitorName,callback:function(e){t.$set(t.searchSource,"visitorName",e)},expression:"searchSource.visitorName"}}),a("a-input",{staticStyle:{width:"120px"},attrs:{placeholder:"访客人员"},model:{value:t.searchSource.visitorName,callback:function(e){t.$set(t.searchSource,"visitorName",e)},expression:"searchSource.visitorName"}}),a("a-date-picker",{attrs:{disabledDate:t.disabledStartDate,format:"YYYY-MM-DD",placeholder:"开始日期"},on:{change:t.onChangeStartValue,openChange:t.handleStartOpenChange},model:{value:t.startValue,callback:function(e){t.startValue=e},expression:"startValue"}}),t._v("\n ~\n "),a("a-date-picker",{attrs:{disabledDate:t.disabledEndDate,format:"YYYY-MM-DD",placeholder:"结束日期",open:t.endOpen},on:{change:t.onChangeEndValue,openChange:t.handleEndOpenChange},model:{value:t.endValue,callback:function(e){t.endValue=e},expression:"endValue"}}),a("a-button",{attrs:{type:"primary"},on:{click:t.getStatisticalProductPage}},[t._v("查询")])],1),a("div",{staticClass:"title"},[t._v("账单汇总")]),a("a-table",{attrs:{columns:t.columns,dataSource:t.dataSource,rowKey:"productId",pagination:t.pagination},on:{change:t.handleTableChange},scopedSlots:t._u([{key:"productIcon",fn:function(t){return a("span",{},[a("img",{staticStyle:{width:"100px"},attrs:{src:t,alt:""}})])}}])},[a("span",{attrs:{slot:"productName"},slot:"productName"}),a("span",{attrs:{slot:"productStatisticalQuantity"},slot:"productStatisticalQuantity"})])],1)},o=[],r=(a("6b54"),a("0d5e")),c=a("c1df"),i=a.n(c),s={name:"historicalVisitors",data:function(){return{startTime:"",endTime:"",startValue:null,endValue:null,endOpen:!1,pagination:{current:1,defaultCurrent:10,defaultPageSize:10,hideOnSinglePage:!0,total:0},columns:[{title:"产品图",dataIndex:"productIcon",scopedSlots:{customRender:"productIcon"}},{title:"菜名",dataIndex:"productName"},{title:"售出(份数)",dataIndex:"productStatisticalQuantity"}],dataSource:[]}},created:function(){var t=new Date,e=t.getFullYear(),a=t.getMonth()+1,n=new Date(e,a,0).getDate().toString().length>1?new Date(e,a,0).getDate():"0"+new Date(e,a,0).getDate();this.startTime="".concat(e,"-").concat(a.toString().length>1?a:"0"+a,"-01"),this.endTime="".concat(e,"-").concat(a.toString().length>1?a:"0"+a,"-").concat(n),this.startValue=this.moment("".concat(e,"-").concat(a.toString().length>1?a:"0"+a,"-01"),"YYYY-MM-DD"),this.endValue=this.moment("".concat(e,"-").concat(a.toString().length>1?a:"0"+a,"-").concat(n),"YYYY-MM-DD"),this.getStatisticalProductPage()},methods:{moment:i.a,disabledStartDate:function(t){var e=this.endValue;return!(!t||!e)&&(t.valueOf()>e.valueOf()||t.valueOf()>=i()().endOf("day").valueOf())},disabledEndDate:function(t){var e=this.startValue;return!(!t||!e)&&(e.valueOf()>t.valueOf()||t.valueOf()>i()().endOf("day").valueOf())},handleStartOpenChange:function(t){t||(this.endOpen=!0)},handleEndOpenChange:function(t){this.endOpen=t},onChangeStartValue:function(t,e){this.startTime=e},onChangeEndValue:function(t,e){this.endTime=e},getStatisticalProductPage:function(){var t=this,e={startTime:this.startTime,endTime:this.endTime,pageNumber:10,currentPage:this.pagination.current};r["a"].post("/admin/visit/list",e).then(function(e){0===e.data.resultCode?(t.dataSource=e.data.data.list,t.pagination.total=e.data.data.total):t.$message.error(e.data.message)})},handleTableChange:function(t,e,a){this.pagination.current=t.current,this.getStatisticalProductPage()}}},l=s,u=(a("6ccb"),a("2877")),d=Object(u["a"])(l,n,o,!1,null,"c89f31a6",null);e["default"]=d.exports},3846:function(t,e,a){a("9e1e")&&"g"!=/./g.flags&&a("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:a("0bfb")})},"6b54":function(t,e,a){"use strict";a("3846");var n=a("cb7c"),o=a("0bfb"),r=a("9e1e"),c="toString",i=/./[c],s=function(t){a("2aba")(RegExp.prototype,c,t,!0)};a("79e5")(function(){return"/a/b"!=i.call({source:"a",flags:"b"})})?s(function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!r&&t instanceof RegExp?o.call(t):void 0)}):i.name!=c&&s(function(){return i.call(this)})},"6ccb":function(t,e,a){"use strict";var n=a("1b47"),o=a.n(n);o.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-56890f8c"],{"0d5e":function(t,e,a){"use strict";a.d(e,"a",function(){return d});var n,o=a("7f43"),c=a.n(o),r=a("4328"),i=a.n(r),s=a("9f82"),u=a("f64c"),l="https://gateway.mingwork.com";c.a.interceptors.request.use(function(t){var e=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in_".concat(localStorage.getItem("orgId")))-3e5;return e?(t.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),t):new Promise(function(t,e){Object(s["c"])().then(function(t){console.log("res",t)}).catch(function(t){console.log(t)})})},function(t){return n.close(),Promise.reject(t)}),c.a.interceptors.response.use(function(t){return Promise.resolve(t)},function(t){return new Promise(function(e,a){if(console.log(t),t&&t.response)switch(t.response.status){case 401:u["a"].error("网络异常请重试"),Object(s["c"])().then(function(a){console.log("refreshToken1",a),e(t)});break;case 426:u["a"].error("网络异常请重试"),Object(s["a"])().then(function(a){e(t)});break;case 504:u["a"].error("系统异常"),e(t);break;case 500:u["a"].error("系统繁忙"),e(t);break;default:u["a"].error("未知问题"),e(t),a(new Error(t))}else u["a"].error("未知问题"),e(t)})});var d={post:function(t,e){return new Promise(function(a,n){var o=void 0===e?"":e;c.a.post("".concat(l).concat(t),o,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(t){return a(t)})})},get:function(t,e){return new Promise(function(a,n){var o=void 0===e?"":i.a.stringify(e);c.a.get("".concat(l).concat(t,"?").concat(o)).then(function(t){return a(t)})})}}},3846:function(t,e,a){a("9e1e")&&"g"!=/./g.flags&&a("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:a("0bfb")})},"5eee":function(t,e,a){"use strict";var n=a("84af"),o=a.n(n);o.a},"6b54":function(t,e,a){"use strict";a("3846");var n=a("cb7c"),o=a("0bfb"),c=a("9e1e"),r="toString",i=/./[r],s=function(t){a("2aba")(RegExp.prototype,r,t,!0)};a("79e5")(function(){return"/a/b"!=i.call({source:"a",flags:"b"})})?s(function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!c&&t instanceof RegExp?o.call(t):void 0)}):i.name!=r&&s(function(){return i.call(this)})},"84af":function(t,e,a){},e112:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"consumptionStatistics"},[a("div",{staticClass:"searchBox"},[a("a-date-picker",{attrs:{disabledDate:t.disabledStartDate,format:"YYYY-MM-DD",placeholder:"开始日期"},on:{change:t.onChangeStartValue,openChange:t.handleStartOpenChange},model:{value:t.startValue,callback:function(e){t.startValue=e},expression:"startValue"}}),t._v("\n ~\n "),a("a-date-picker",{attrs:{disabledDate:t.disabledEndDate,format:"YYYY-MM-DD",placeholder:"结束日期",open:t.endOpen},on:{change:t.onChangeEndValue,openChange:t.handleEndOpenChange},model:{value:t.endValue,callback:function(e){t.endValue=e},expression:"endValue"}}),a("a-button",{attrs:{type:"primary"},on:{click:t.getStatisticalProductPage}},[t._v("查询")])],1),a("div",{staticClass:"title"},[t._v("账单汇总")]),a("a-table",{attrs:{columns:t.columns,dataSource:t.dataSource,rowKey:"productId",pagination:t.pagination},on:{change:t.handleTableChange},scopedSlots:t._u([{key:"productIcon",fn:function(t){return a("span",{},[a("img",{staticStyle:{width:"100px"},attrs:{src:t,alt:""}})])}}])},[a("span",{attrs:{slot:"productName"},slot:"productName"}),a("span",{attrs:{slot:"productStatisticalQuantity"},slot:"productStatisticalQuantity"})])],1)},o=[],c=(a("6b54"),a("0d5e")),r=a("c1df"),i=a.n(r),s={name:"consumptionStatistics",data:function(){return{startTime:"",endTime:"",startValue:null,endValue:null,endOpen:!1,pagination:{current:1,defaultCurrent:10,defaultPageSize:10,hideOnSinglePage:!0,total:0},columns:[{title:"产品图",dataIndex:"productIcon",scopedSlots:{customRender:"productIcon"}},{title:"菜名",dataIndex:"productName"},{title:"售出(份数)",dataIndex:"productStatisticalQuantity"}],dataSource:[]}},created:function(){var t=new Date,e=t.getFullYear(),a=t.getMonth()+1,n=new Date(e,a,0).getDate().toString().length>1?new Date(e,a,0).getDate():"0"+new Date(e,a,0).getDate();this.startTime="".concat(e,"-").concat(a.toString().length>1?a:"0"+a,"-01"),this.endTime="".concat(e,"-").concat(a.toString().length>1?a:"0"+a,"-").concat(n),this.startValue=this.moment("".concat(e,"-").concat(a.toString().length>1?a:"0"+a,"-01"),"YYYY-MM-DD"),this.endValue=this.moment("".concat(e,"-").concat(a.toString().length>1?a:"0"+a,"-").concat(n),"YYYY-MM-DD"),this.getStatisticalProductPage()},methods:{moment:i.a,disabledStartDate:function(t){var e=this.endValue;return!(!t||!e)&&(t.valueOf()>e.valueOf()||t.valueOf()>=i()().endOf("day").valueOf())},disabledEndDate:function(t){var e=this.startValue;return!(!t||!e)&&(e.valueOf()>t.valueOf()||t.valueOf()>i()().endOf("day").valueOf())},handleStartOpenChange:function(t){t||(this.endOpen=!0)},handleEndOpenChange:function(t){this.endOpen=t},onChangeStartValue:function(t,e){this.startTime=e},onChangeEndValue:function(t,e){this.endTime=e},getStatisticalProductPage:function(){var t=this,e={startTime:"".concat(this.startTime," 00:00:00"),endTime:"".concat(this.endTime," 23:59:59"),pageNumber:10,currentPage:this.pagination.current};c["a"].post("/mingpay/v1/isv/order/statistical_product_page",e).then(function(e){0===e.data.resultCode?(t.dataSource=e.data.data.list,t.pagination.total=e.data.data.total):t.$message.error(e.data.message)})},handleTableChange:function(t,e,a){this.pagination.current=t.current,this.getStatisticalProductPage()}}},u=s,l=(a("5eee"),a("2877")),d=Object(l["a"])(u,n,o,!1,null,"2853fec8",null);e["default"]=d.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-56890f8c"],{"0d5e":function(t,e,a){"use strict";a.d(e,"a",function(){return d});var n,o=a("7f43"),r=a.n(o),c=a("4328"),i=a.n(c),s=a("9f82"),u=a("f64c"),l="https://gateway.mingwork.com";r.a.interceptors.request.use(function(t){var e=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in")-3e5;return e?(t.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),t):new Promise(function(t,e){Object(s["c"])().then(function(t){console.log("res",t)}).catch(function(t){console.log(t)})})},function(t){return n.close(),Promise.reject(t)}),r.a.interceptors.response.use(function(t){return Promise.resolve(t)},function(t){return new Promise(function(e,a){if(console.log(t),t&&t.response)switch(t.response.status){case 401:u["a"].error("网络异常请重试"),Object(s["c"])().then(function(a){console.log("refreshToken1",a),e(t)});break;case 426:u["a"].error("网络异常请重试"),Object(s["a"])().then(function(a){e(t)});break;case 504:u["a"].error("系统异常"),e(t);break;case 500:u["a"].error("系统繁忙"),e(t);break;default:u["a"].error("未知问题"),e(t),a(new Error(t))}else u["a"].error("未知问题"),e(t)})});var d={post:function(t,e){return new Promise(function(a,n){var o=void 0===e?"":e;r.a.post("".concat(l).concat(t),o,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(t){return a(t)})})},get:function(t,e){return new Promise(function(a,n){var o=void 0===e?"":i.a.stringify(e);r.a.get("".concat(l).concat(t,"?").concat(o)).then(function(t){return a(t)})})}}},3846:function(t,e,a){a("9e1e")&&"g"!=/./g.flags&&a("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:a("0bfb")})},"5eee":function(t,e,a){"use strict";var n=a("84af"),o=a.n(n);o.a},"6b54":function(t,e,a){"use strict";a("3846");var n=a("cb7c"),o=a("0bfb"),r=a("9e1e"),c="toString",i=/./[c],s=function(t){a("2aba")(RegExp.prototype,c,t,!0)};a("79e5")(function(){return"/a/b"!=i.call({source:"a",flags:"b"})})?s(function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!r&&t instanceof RegExp?o.call(t):void 0)}):i.name!=c&&s(function(){return i.call(this)})},"84af":function(t,e,a){},e112:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"consumptionStatistics"},[a("div",{staticClass:"searchBox"},[a("a-date-picker",{attrs:{disabledDate:t.disabledStartDate,format:"YYYY-MM-DD",placeholder:"开始日期"},on:{change:t.onChangeStartValue,openChange:t.handleStartOpenChange},model:{value:t.startValue,callback:function(e){t.startValue=e},expression:"startValue"}}),t._v("\n ~\n "),a("a-date-picker",{attrs:{disabledDate:t.disabledEndDate,format:"YYYY-MM-DD",placeholder:"结束日期",open:t.endOpen},on:{change:t.onChangeEndValue,openChange:t.handleEndOpenChange},model:{value:t.endValue,callback:function(e){t.endValue=e},expression:"endValue"}}),a("a-button",{attrs:{type:"primary"},on:{click:t.getStatisticalProductPage}},[t._v("查询")])],1),a("div",{staticClass:"title"},[t._v("账单汇总")]),a("a-table",{attrs:{columns:t.columns,dataSource:t.dataSource,rowKey:"productId",pagination:t.pagination},on:{change:t.handleTableChange},scopedSlots:t._u([{key:"productIcon",fn:function(t){return a("span",{},[a("img",{staticStyle:{width:"100px"},attrs:{src:t,alt:""}})])}}])},[a("span",{attrs:{slot:"productName"},slot:"productName"}),a("span",{attrs:{slot:"productStatisticalQuantity"},slot:"productStatisticalQuantity"})])],1)},o=[],r=(a("6b54"),a("0d5e")),c=a("c1df"),i=a.n(c),s={name:"consumptionStatistics",data:function(){return{startTime:"",endTime:"",startValue:null,endValue:null,endOpen:!1,pagination:{current:1,defaultCurrent:10,defaultPageSize:10,hideOnSinglePage:!0,total:0},columns:[{title:"产品图",dataIndex:"productIcon",scopedSlots:{customRender:"productIcon"}},{title:"菜名",dataIndex:"productName"},{title:"售出(份数)",dataIndex:"productStatisticalQuantity"}],dataSource:[]}},created:function(){var t=new Date,e=t.getFullYear(),a=t.getMonth()+1,n=new Date(e,a,0).getDate().toString().length>1?new Date(e,a,0).getDate():"0"+new Date(e,a,0).getDate();this.startTime="".concat(e,"-").concat(a.toString().length>1?a:"0"+a,"-01"),this.endTime="".concat(e,"-").concat(a.toString().length>1?a:"0"+a,"-").concat(n),this.startValue=this.moment("".concat(e,"-").concat(a.toString().length>1?a:"0"+a,"-01"),"YYYY-MM-DD"),this.endValue=this.moment("".concat(e,"-").concat(a.toString().length>1?a:"0"+a,"-").concat(n),"YYYY-MM-DD"),this.getStatisticalProductPage()},methods:{moment:i.a,disabledStartDate:function(t){var e=this.endValue;return!(!t||!e)&&(t.valueOf()>e.valueOf()||t.valueOf()>=i()().endOf("day").valueOf())},disabledEndDate:function(t){var e=this.startValue;return!(!t||!e)&&(e.valueOf()>t.valueOf()||t.valueOf()>i()().endOf("day").valueOf())},handleStartOpenChange:function(t){t||(this.endOpen=!0)},handleEndOpenChange:function(t){this.endOpen=t},onChangeStartValue:function(t,e){this.startTime=e},onChangeEndValue:function(t,e){this.endTime=e},getStatisticalProductPage:function(){var t=this,e={startTime:"".concat(this.startTime," 00:00:00"),endTime:"".concat(this.endTime," 23:59:59"),pageNumber:10,currentPage:this.pagination.current};r["a"].post("/mingpay/v1/isv/order/statistical_product_page",e).then(function(e){0===e.data.resultCode?(t.dataSource=e.data.data.list,t.pagination.total=e.data.data.total):t.$message.error(e.data.message)})},handleTableChange:function(t,e,a){this.pagination.current=t.current,this.getStatisticalProductPage()}}},u=s,l=(a("5eee"),a("2877")),d=Object(l["a"])(u,n,o,!1,null,"2853fec8",null);e["default"]=d.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6658342b"],{"0d5e":function(t,e,o){"use strict";o.d(e,"a",function(){return l});var r,a=o("7f43"),s=o.n(a),n=o("4328"),c=o.n(n),i=o("9f82"),u=o("f64c"),d="https://gateway.mingwork.com";s.a.interceptors.request.use(function(t){var e=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in_".concat(localStorage.getItem("orgId")))-3e5;return e?(t.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),t):new Promise(function(t,e){Object(i["c"])().then(function(t){console.log("res",t)}).catch(function(t){console.log(t)})})},function(t){return r.close(),Promise.reject(t)}),s.a.interceptors.response.use(function(t){return Promise.resolve(t)},function(t){return new Promise(function(e,o){if(console.log(t),t&&t.response)switch(t.response.status){case 401:u["a"].error("网络异常请重试"),Object(i["c"])().then(function(o){console.log("refreshToken1",o),e(t)});break;case 426:u["a"].error("网络异常请重试"),Object(i["a"])().then(function(o){e(t)});break;case 504:u["a"].error("系统异常"),e(t);break;case 500:u["a"].error("系统繁忙"),e(t);break;default:u["a"].error("未知问题"),e(t),o(new Error(t))}else u["a"].error("未知问题"),e(t)})});var l={post:function(t,e){return new Promise(function(o,r){var a=void 0===e?"":e;s.a.post("".concat(d).concat(t),a,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(t){return o(t)})})},get:function(t,e){return new Promise(function(o,r){var a=void 0===e?"":c.a.stringify(e);s.a.get("".concat(d).concat(t,"?").concat(a)).then(function(t){return o(t)})})}}},2512:function(t,e,o){},"2f21":function(t,e,o){"use strict";var r=o("79e5");t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},"55dd":function(t,e,o){"use strict";var r=o("5ca1"),a=o("d8e8"),s=o("4bf8"),n=o("79e5"),c=[].sort,i=[1,2,3];r(r.P+r.F*(n(function(){i.sort(void 0)})||!n(function(){i.sort(null)})||!o("2f21")(c)),"Array",{sort:function(t){return void 0===t?c.call(s(this)):c.call(s(this),a(t))}})},e531:function(t,e,o){"use strict";o.r(e);var r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"classificationOfDishes"},[o("a-button",{staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:function(e){return t.showModal(1)}}},[t._v("添加分类")]),o("a-table",{attrs:{columns:t.columns,dataSource:t.dataSource,rowKey:"productCategoryId",pagination:t.pagination},scopedSlots:t._u([{key:"isDisplay",fn:function(e){return o("span",{},["DISPLAY"===e?o("a-badge",{attrs:{status:"success",text:"已显示"}}):"HIDDEN"===e?o("a-badge",{attrs:{status:"error",text:"已隐藏"}}):t._e()],1)}},{key:"action",fn:function(e,r,a){return o("span",{},[o("a",{staticStyle:{"margin-right":"8px"},attrs:{href:"javascript:;"},on:{click:function(e){return t.showModal(2,r)}}},[t._v("修改")]),o("a",{attrs:{href:"javascript:;"},on:{click:function(e){return t.showConfirm(r,a)}}},[t._v(t._s("DISPLAY"===r.isDisplay?"隐藏":"显示"))])])}}])},[o("span",{attrs:{slot:"productCategoryName"},slot:"productCategoryName"}),o("span",{attrs:{slot:"sort"},slot:"sort"})]),o("a-modal",{attrs:{title:"增加分类",visible:t.visible,confirmLoading:t.confirmLoading},on:{ok:t.saveProductCategory,cancel:t.handleCancel}},[o("div",{staticClass:"item"},[o("label",[t._v("分类名称:")]),o("a-input",{attrs:{placeholder:"请输入分类名称"},model:{value:t.productCategoryName,callback:function(e){t.productCategoryName=e},expression:"productCategoryName"}})],1),o("div",{staticClass:"item"},[o("label",[t._v("排序值:")]),o("a-input",{attrs:{placeholder:"排序值为正整数"},model:{value:t.sort,callback:function(e){t.sort=e},expression:"sort"}})],1)])],1)},a=[],s=(o("55dd"),o("0d5e")),n={name:"classificationOfDishes",data:function(){return{columns:[{title:"菜品类别",dataIndex:"productCategoryName"},{title:"排序值",dataIndex:"sort"},{title:"状态",dataIndex:"isDisplay",scopedSlots:{customRender:"isDisplay"}},{title:"操作",key:"action",scopedSlots:{customRender:"action"}}],productCategoryName:"",sort:"",dataSource:[],visible:!1,modelType:1,modelSource:"",confirmLoading:!1,pagination:{current:1,defaultCurrent:1,defaultPageSize:1e3,hideOnSinglePage:!0,total:0}}},created:function(){this.getProductCategoryList()},methods:{getProductCategoryList:function(){var t=this;s["a"].post("/mingpay/v1/isv/product/list_product_category").then(function(e){0===e.data.resultCode&&(t.dataSource=e.data.data)})},changeItem:function(){var t=this;this.confirmLoading=!0;var e={productCategoryId:this.modelSource.productCategoryId,productCategoryName:this.productCategoryName,sort:this.sort};s["a"].post("/mingpay/v1/isv/product/update_product_category",e).then(function(e){0===e.data.resultCode?(t.visible=!1,t.confirmLoading=!1,t.sort="",t.productCategoryName="",t.getProductCategoryList(),t.$message.success("操作成功")):t.$message.error("操作失败")}).catch(function(){t.$message.error("操作失败"),t.confirmLoading=!1})},showConfirm:function(t,e){var o,r,a=this;"DISPLAY"===t.isDisplay?(o="确认要隐藏该菜品分类吗?",r="隐藏后该分类下的所有菜品设备端都不可见"):(o="确认显示该分类吗?",r="显示后该分类下菜品可正常使用"),this.$confirm({title:o,content:r,onOk:function(){a.changeData(t,e)},onCancel:function(){}})},changeData:function(t,e){var o=this,r={productCategoryId:this.categoryName,sort:this.sort};r="DISPLAY"===t.isDisplay?{productCategoryId:t.productCategoryId,isDisplay:"HIDDEN"}:{productCategoryId:t.productCategoryId,isDisplay:"DISPLAY"},s["a"].post("/mingpay/v1/isv/product/update_product_category_status",r).then(function(t){0===t.data.resultCode?(o.sort="",o.productCategoryName="",o.getProductCategoryList(),o.$message.success("操作成功")):o.$message.error("操作失败")}).catch(function(){o.$message.error("操作失败"),o.confirmLoading=!1})},showModal:function(t,e){this.modelSource=e,this.modelType=t,this.visible=!0,2===t&&(this.productCategoryName=e.productCategoryName,this.sort=e.sort)},saveProductCategory:function(){var t=this;if(!/^[0-9]*$/.test(this.sort))return this.$message.error("排序值为正整数"),!1;if(""===this.productCategoryName)this.$message.error("分类名称不能为空");else if(""===this.sort)this.$message.error("排序值不能为空");else{if(2===this.modelType)return void this.changeItem();this.confirmLoading=!0;var e={productCategoryName:this.productCategoryName,sort:parseInt(this.sort)};s["a"].post("/mingpay/v1/isv/product/save_product_category",e).then(function(e){0===e.data.resultCode?(t.visible=!1,t.confirmLoading=!1,t.sort="",t.productCategoryName="",t.getProductCategoryList(),t.$message.success("操作成功")):t.$message.error("操作失败")}).catch(function(){t.$message.error("操作失败"),t.confirmLoading=!1})}},handleCancel:function(t){this.visible=!1,this.sort="",this.productCategoryName=""}}},c=n,i=(o("ed7d"),o("2877")),u=Object(i["a"])(c,r,a,!1,null,"25169686",null);e["default"]=u.exports},ed7d:function(t,e,o){"use strict";var r=o("2512"),a=o.n(r);a.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6658342b"],{"0d5e":function(t,e,o){"use strict";o.d(e,"a",function(){return l});var r,a=o("7f43"),s=o.n(a),n=o("4328"),i=o.n(n),c=o("9f82"),u=o("f64c"),d="https://gateway.mingwork.com";s.a.interceptors.request.use(function(t){var e=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in")-3e5;return e?(t.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),t):new Promise(function(t,e){Object(c["c"])().then(function(t){console.log("res",t)}).catch(function(t){console.log(t)})})},function(t){return r.close(),Promise.reject(t)}),s.a.interceptors.response.use(function(t){return Promise.resolve(t)},function(t){return new Promise(function(e,o){if(console.log(t),t&&t.response)switch(t.response.status){case 401:u["a"].error("网络异常请重试"),Object(c["c"])().then(function(o){console.log("refreshToken1",o),e(t)});break;case 426:u["a"].error("网络异常请重试"),Object(c["a"])().then(function(o){e(t)});break;case 504:u["a"].error("系统异常"),e(t);break;case 500:u["a"].error("系统繁忙"),e(t);break;default:u["a"].error("未知问题"),e(t),o(new Error(t))}else u["a"].error("未知问题"),e(t)})});var l={post:function(t,e){return new Promise(function(o,r){var a=void 0===e?"":e;s.a.post("".concat(d).concat(t),a,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(t){return o(t)})})},get:function(t,e){return new Promise(function(o,r){var a=void 0===e?"":i.a.stringify(e);s.a.get("".concat(d).concat(t,"?").concat(a)).then(function(t){return o(t)})})}}},2512:function(t,e,o){},"2f21":function(t,e,o){"use strict";var r=o("79e5");t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},"55dd":function(t,e,o){"use strict";var r=o("5ca1"),a=o("d8e8"),s=o("4bf8"),n=o("79e5"),i=[].sort,c=[1,2,3];r(r.P+r.F*(n(function(){c.sort(void 0)})||!n(function(){c.sort(null)})||!o("2f21")(i)),"Array",{sort:function(t){return void 0===t?i.call(s(this)):i.call(s(this),a(t))}})},e531:function(t,e,o){"use strict";o.r(e);var r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"classificationOfDishes"},[o("a-button",{staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:function(e){return t.showModal(1)}}},[t._v("添加分类")]),o("a-table",{attrs:{columns:t.columns,dataSource:t.dataSource,rowKey:"productCategoryId",pagination:t.pagination},scopedSlots:t._u([{key:"isDisplay",fn:function(e){return o("span",{},["DISPLAY"===e?o("a-badge",{attrs:{status:"success",text:"已显示"}}):"HIDDEN"===e?o("a-badge",{attrs:{status:"error",text:"已隐藏"}}):t._e()],1)}},{key:"action",fn:function(e,r,a){return o("span",{},[o("a",{staticStyle:{"margin-right":"8px"},attrs:{href:"javascript:;"},on:{click:function(e){return t.showModal(2,r)}}},[t._v("修改")]),o("a",{attrs:{href:"javascript:;"},on:{click:function(e){return t.showConfirm(r,a)}}},[t._v(t._s("DISPLAY"===r.isDisplay?"隐藏":"显示"))])])}}])},[o("span",{attrs:{slot:"productCategoryName"},slot:"productCategoryName"}),o("span",{attrs:{slot:"sort"},slot:"sort"})]),o("a-modal",{attrs:{title:"增加分类",visible:t.visible,confirmLoading:t.confirmLoading},on:{ok:t.saveProductCategory,cancel:t.handleCancel}},[o("div",{staticClass:"item"},[o("label",[t._v("分类名称:")]),o("a-input",{attrs:{placeholder:"请输入分类名称"},model:{value:t.productCategoryName,callback:function(e){t.productCategoryName=e},expression:"productCategoryName"}})],1),o("div",{staticClass:"item"},[o("label",[t._v("排序值:")]),o("a-input",{attrs:{placeholder:"排序值为正整数"},model:{value:t.sort,callback:function(e){t.sort=e},expression:"sort"}})],1)])],1)},a=[],s=(o("55dd"),o("0d5e")),n={name:"classificationOfDishes",data:function(){return{columns:[{title:"菜品类别",dataIndex:"productCategoryName"},{title:"排序值",dataIndex:"sort"},{title:"状态",dataIndex:"isDisplay",scopedSlots:{customRender:"isDisplay"}},{title:"操作",key:"action",scopedSlots:{customRender:"action"}}],productCategoryName:"",sort:"",dataSource:[],visible:!1,modelType:1,modelSource:"",confirmLoading:!1,pagination:{current:1,defaultCurrent:1,defaultPageSize:1e3,hideOnSinglePage:!0,total:0}}},created:function(){this.getProductCategoryList()},methods:{getProductCategoryList:function(){var t=this;s["a"].post("/mingpay/v1/isv/product/list_product_category").then(function(e){0===e.data.resultCode&&(t.dataSource=e.data.data)})},changeItem:function(){var t=this;this.confirmLoading=!0;var e={productCategoryId:this.modelSource.productCategoryId,productCategoryName:this.productCategoryName,sort:this.sort};s["a"].post("/mingpay/v1/isv/product/update_product_category",e).then(function(e){0===e.data.resultCode?(t.visible=!1,t.confirmLoading=!1,t.sort="",t.productCategoryName="",t.getProductCategoryList(),t.$message.success("操作成功")):t.$message.error("操作失败")}).catch(function(){t.$message.error("操作失败"),t.confirmLoading=!1})},showConfirm:function(t,e){var o,r,a=this;"DISPLAY"===t.isDisplay?(o="确认要隐藏该菜品分类吗?",r="隐藏后该分类下的所有菜品设备端都不可见"):(o="确认显示该分类吗?",r="显示后该分类下菜品可正常使用"),this.$confirm({title:o,content:r,onOk:function(){a.changeData(t,e)},onCancel:function(){}})},changeData:function(t,e){var o=this,r={productCategoryId:this.categoryName,sort:this.sort};r="DISPLAY"===t.isDisplay?{productCategoryId:t.productCategoryId,isDisplay:"HIDDEN"}:{productCategoryId:t.productCategoryId,isDisplay:"DISPLAY"},s["a"].post("/mingpay/v1/isv/product/update_product_category_status",r).then(function(t){0===t.data.resultCode?(o.sort="",o.productCategoryName="",o.getProductCategoryList(),o.$message.success("操作成功")):o.$message.error("操作失败")}).catch(function(){o.$message.error("操作失败"),o.confirmLoading=!1})},showModal:function(t,e){this.modelSource=e,this.modelType=t,this.visible=!0,2===t&&(this.productCategoryName=e.productCategoryName,this.sort=e.sort)},saveProductCategory:function(){var t=this;if(!/^[0-9]*$/.test(this.sort))return this.$message.error("排序值为正整数"),!1;if(""===this.productCategoryName)this.$message.error("分类名称不能为空");else if(""===this.sort)this.$message.error("排序值不能为空");else{if(2===this.modelType)return void this.changeItem();this.confirmLoading=!0;var e={productCategoryName:this.productCategoryName,sort:parseInt(this.sort)};s["a"].post("/mingpay/v1/isv/product/save_product_category",e).then(function(e){0===e.data.resultCode?(t.visible=!1,t.confirmLoading=!1,t.sort="",t.productCategoryName="",t.getProductCategoryList(),t.$message.success("操作成功")):t.$message.error("操作失败")}).catch(function(){t.$message.error("操作失败"),t.confirmLoading=!1})}},handleCancel:function(t){this.visible=!1,this.sort="",this.productCategoryName=""}}},i=n,c=(o("ed7d"),o("2877")),u=Object(c["a"])(i,r,a,!1,null,"25169686",null);e["default"]=u.exports},ed7d:function(t,e,o){"use strict";var r=o("2512"),a=o.n(r);a.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6cec962d"],{"0d5e":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var a,r=n("7f43"),o=n.n(r),i=n("4328"),s=n.n(i),c=n("9f82"),u=n("f64c"),d="https://gateway.mingwork.com";o.a.interceptors.request.use(function(t){var e=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in")-3e5;return e?(t.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),t):new Promise(function(t,e){Object(c["c"])().then(function(t){console.log("res",t)}).catch(function(t){console.log(t)})})},function(t){return a.close(),Promise.reject(t)}),o.a.interceptors.response.use(function(t){return Promise.resolve(t)},function(t){return new Promise(function(e,n){if(console.log(t),t&&t.response)switch(t.response.status){case 401:u["a"].error("网络异常请重试"),Object(c["c"])().then(function(n){console.log("refreshToken1",n),e(t)});break;case 426:u["a"].error("网络异常请重试"),Object(c["a"])().then(function(n){e(t)});break;case 504:u["a"].error("系统异常"),e(t);break;case 500:u["a"].error("系统繁忙"),e(t);break;default:u["a"].error("未知问题"),e(t),n(new Error(t))}else u["a"].error("未知问题"),e(t)})});var l={post:function(t,e){return new Promise(function(n,a){var r=void 0===e?"":e;o.a.post("".concat(d).concat(t),r,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(t){return n(t)})})},get:function(t,e){return new Promise(function(n,a){var r=void 0===e?"":s.a.stringify(e);o.a.get("".concat(d).concat(t,"?").concat(r)).then(function(t){return n(t)})})}}},"336c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAARtJREFUOBG1krFqwlAUhr0iZLIoDnV1E1EHEUToUFydJH2H7kUQXJ2dfAFH8RXEVXAQHNSp1NmIVl1aHYxfpEKu8ZoQ6YEvyf3Pf/7cXBII/EeZppmCTyj5zmc4DQsYQ8RXEIMZMP5CYn5DsgQsHwqx3kzAHLzWEeMK+qDbdy4QPhCaMIOWvXnjWaAloAgv0IV3IcSG+3lXVQKtapwFDxe8OqyhI9kR/IS9MWdVRRX2KjXuLAgZQM9hQSyA5mgoBLxNMELXfQ5ueK25rHf0taCLyUs7h+nLi1Hp4ZOS8AN1pcmtwXAcRjABzXFGiGFCnhRB9h+yhucXypzrXvITEoQNuNUBQxuilwDrDVLRzCM8S6K8+GY5ZRdbu3wC8ygamHQCIbQAAAAASUVORK5CYII="},"99ef":function(t,e,n){},b2ca:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"viewAllowances"},[a("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.back()}}},[a("img",{staticStyle:{"margin-top":"-4px","margin-right":"6px",width:"14px"},attrs:{src:n("336c")}}),t._v("返回")]),a("div",{staticClass:"title"},[t._v("查看津贴")]),a("a-table",{attrs:{columns:t.columns,dataSource:t.subsidyList,size:"default",rowKey:"couponId",pagination:t.pagination},on:{change:t.handleTableChange},scopedSlots:t._u([{key:"type",fn:function(e){return a("span",{},[t._v("\n "+t._s("TRAVEL"===e?"交通补贴":"餐补")+"\n ")])}}])},[a("span",{attrs:{slot:"initialAmount"},slot:"initialAmount"},[t._v("发放金额")]),t._v(">\n "),a("span",{attrs:{slot:"residueAmount"},slot:"residueAmount"},[t._v("余额")]),a("span",{attrs:{slot:"endTime"},slot:"endTime"}),a("span",{attrs:{slot:"createTime"},slot:"createTime"})])],1)},r=[],o=n("0d5e"),i={name:"viewAllowances",data:function(){return{ddUserId:"",columns:[{title:"津贴类型",dataIndex:"type",scopedSlots:{customRender:"type"}},{title:"发放金额",dataIndex:"initialAmount"},{title:"余额",dataIndex:"residueAmount"},{title:"截止日期",dataIndex:"endTime"},{title:"创建日期",dataIndex:"createTime"}],pagination:{current:1,defaultCurrent:10,defaultPageSize:10,hideOnSinglePage:!0,total:0},subsidyList:[]}},watch:{},computed:{},created:function(){this.ddUserId=this.$route.params.ddUserId,this.querySubsidyList()},methods:{querySubsidyList:function(){var t=this,e={ddUserId:this.ddUserId,currentPage:this.pagination.current,pageNumber:this.pagination.defaultPageSize};o["a"].get("/mingpay/v1/isv/account/query_subsidyList_by_user_id",e).then(function(e){var n=e.data.data;t.subsidyList=n.recordList,t.pagination.total=parseInt(n.totalCount)})},timeToStr:function(t){var e=new Date(parseInt(t)),n=e.getFullYear(),a=e.getMonth()+1,r=e.getDate();e.getHours(),e.getMinutes();return"".concat(n,"年").concat(a,"月").concat(r,"日")},handleTableChange:function(t,e,n){this.pagination.current=t.current,this.querySubsidyList()},back:function(){this.$router.go(-1)}}},s=i,c=(n("f2a3"),n("2877")),u=Object(c["a"])(s,a,r,!1,null,"899e23be",null);e["default"]=u.exports},f2a3:function(t,e,n){"use strict";var a=n("99ef"),r=n.n(a);r.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6cec962d"],{"0d5e":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var a,r=n("7f43"),o=n.n(r),i=n("4328"),s=n.n(i),c=n("9f82"),u=n("f64c"),d="https://gateway.mingwork.com";o.a.interceptors.request.use(function(t){var e=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in_".concat(localStorage.getItem("orgId")))-3e5;return e?(t.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),t):new Promise(function(t,e){Object(c["c"])().then(function(t){console.log("res",t)}).catch(function(t){console.log(t)})})},function(t){return a.close(),Promise.reject(t)}),o.a.interceptors.response.use(function(t){return Promise.resolve(t)},function(t){return new Promise(function(e,n){if(console.log(t),t&&t.response)switch(t.response.status){case 401:u["a"].error("网络异常请重试"),Object(c["c"])().then(function(n){console.log("refreshToken1",n),e(t)});break;case 426:u["a"].error("网络异常请重试"),Object(c["a"])().then(function(n){e(t)});break;case 504:u["a"].error("系统异常"),e(t);break;case 500:u["a"].error("系统繁忙"),e(t);break;default:u["a"].error("未知问题"),e(t),n(new Error(t))}else u["a"].error("未知问题"),e(t)})});var l={post:function(t,e){return new Promise(function(n,a){var r=void 0===e?"":e;o.a.post("".concat(d).concat(t),r,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(t){return n(t)})})},get:function(t,e){return new Promise(function(n,a){var r=void 0===e?"":s.a.stringify(e);o.a.get("".concat(d).concat(t,"?").concat(r)).then(function(t){return n(t)})})}}},"336c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAARtJREFUOBG1krFqwlAUhr0iZLIoDnV1E1EHEUToUFydJH2H7kUQXJ2dfAFH8RXEVXAQHNSp1NmIVl1aHYxfpEKu8ZoQ6YEvyf3Pf/7cXBII/EeZppmCTyj5zmc4DQsYQ8RXEIMZMP5CYn5DsgQsHwqx3kzAHLzWEeMK+qDbdy4QPhCaMIOWvXnjWaAloAgv0IV3IcSG+3lXVQKtapwFDxe8OqyhI9kR/IS9MWdVRRX2KjXuLAgZQM9hQSyA5mgoBLxNMELXfQ5ueK25rHf0taCLyUs7h+nLi1Hp4ZOS8AN1pcmtwXAcRjABzXFGiGFCnhRB9h+yhucXypzrXvITEoQNuNUBQxuilwDrDVLRzCM8S6K8+GY5ZRdbu3wC8ygamHQCIbQAAAAASUVORK5CYII="},"99ef":function(t,e,n){},b2ca:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"viewAllowances"},[a("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.back()}}},[a("img",{staticStyle:{"margin-top":"-4px","margin-right":"6px",width:"14px"},attrs:{src:n("336c")}}),t._v("返回")]),a("div",{staticClass:"title"},[t._v("查看津贴")]),a("a-table",{attrs:{columns:t.columns,dataSource:t.subsidyList,size:"default",rowKey:"couponId",pagination:t.pagination},on:{change:t.handleTableChange},scopedSlots:t._u([{key:"type",fn:function(e){return a("span",{},[t._v("\n "+t._s("TRAVEL"===e?"交通补贴":"餐补")+"\n ")])}}])},[a("span",{attrs:{slot:"initialAmount"},slot:"initialAmount"},[t._v("发放金额")]),t._v(">\n "),a("span",{attrs:{slot:"residueAmount"},slot:"residueAmount"},[t._v("余额")]),a("span",{attrs:{slot:"endTime"},slot:"endTime"}),a("span",{attrs:{slot:"createTime"},slot:"createTime"})])],1)},r=[],o=n("0d5e"),i={name:"viewAllowances",data:function(){return{ddUserId:"",columns:[{title:"津贴类型",dataIndex:"type",scopedSlots:{customRender:"type"}},{title:"发放金额",dataIndex:"initialAmount"},{title:"余额",dataIndex:"residueAmount"},{title:"截止日期",dataIndex:"endTime"},{title:"创建日期",dataIndex:"createTime"}],pagination:{current:1,defaultCurrent:10,defaultPageSize:10,hideOnSinglePage:!0,total:0},subsidyList:[]}},watch:{},computed:{},created:function(){this.ddUserId=this.$route.params.ddUserId,this.querySubsidyList()},methods:{querySubsidyList:function(){var t=this,e={ddUserId:this.ddUserId,currentPage:this.pagination.current,pageNumber:this.pagination.defaultPageSize};o["a"].get("/mingpay/v1/isv/account/query_subsidyList_by_user_id",e).then(function(e){var n=e.data.data;t.subsidyList=n.recordList,t.pagination.total=parseInt(n.totalCount)})},timeToStr:function(t){var e=new Date(parseInt(t)),n=e.getFullYear(),a=e.getMonth()+1,r=e.getDate();e.getHours(),e.getMinutes();return"".concat(n,"年").concat(a,"月").concat(r,"日")},handleTableChange:function(t,e,n){this.pagination.current=t.current,this.querySubsidyList()},back:function(){this.$router.go(-1)}}},s=i,c=(n("f2a3"),n("2877")),u=Object(c["a"])(s,a,r,!1,null,"899e23be",null);e["default"]=u.exports},f2a3:function(t,e,n){"use strict";var a=n("99ef"),r=n.n(a);r.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7026f433"],{"0d5e":function(e,t,a){"use strict";a.d(t,"a",function(){return d});var n,r=a("7f43"),s=a.n(r),o=a("4328"),c=a.n(o),i=a("9f82"),u=a("f64c"),l="https://gateway.mingwork.com";s.a.interceptors.request.use(function(e){var t=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in_".concat(localStorage.getItem("orgId")))-3e5;return t?(e.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),e):new Promise(function(e,t){Object(i["c"])().then(function(e){console.log("res",e)}).catch(function(e){console.log(e)})})},function(e){return n.close(),Promise.reject(e)}),s.a.interceptors.response.use(function(e){return Promise.resolve(e)},function(e){return new Promise(function(t,a){if(console.log(e),e&&e.response)switch(e.response.status){case 401:u["a"].error("网络异常请重试"),Object(i["c"])().then(function(a){console.log("refreshToken1",a),t(e)});break;case 426:u["a"].error("网络异常请重试"),Object(i["a"])().then(function(a){t(e)});break;case 504:u["a"].error("系统异常"),t(e);break;case 500:u["a"].error("系统繁忙"),t(e);break;default:u["a"].error("未知问题"),t(e),a(new Error(e))}else u["a"].error("未知问题"),t(e)})});var d={post:function(e,t){return new Promise(function(a,n){var r=void 0===t?"":t;s.a.post("".concat(l).concat(e),r,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(e){return a(e)})})},get:function(e,t){return new Promise(function(a,n){var r=void 0===t?"":c.a.stringify(t);s.a.get("".concat(l).concat(e,"?").concat(r)).then(function(e){return a(e)})})}}},2957:function(e,t,a){"use strict";a.d(t,"a",function(){return n}),a.d(t,"b",function(){return r}),a.d(t,"c",function(){return s}),a.d(t,"d",function(){return o});var n={ACTIVE:"ACTIVE",UNACTIVE:"UNACTIVE",LOG_OFF:"LOG_OFF",WITHDRAW:"WITHDRAW",SETTLEMENT:"SETTLEMENT"},r={WAITING_PERMIT:"WAITING_PERMIT",SUCCESS:"SUCCESS",FAILED:"FAILED",WAITING_PAYMENT:"WAITING_PAYMENT"},s={SUCCESS:"SUCCESS",WAITING_PERMIT:"WAITING_PERMIT",REFUND_SUCCESS:"REFUND_SUCCESS"},o={SUCCESS:"SUCCESS",WAITING_PERMIT:"WAITING_PERMIT",REFUSE_PERMIT:"REFUSE_PERMIT"}},"3b5e":function(e,t,a){"use strict";var n=a("df09"),r=a.n(n);r.a},"4be4":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"RechargeRecord"},[a("div",{staticClass:"searchBox"},[a("div",{staticClass:"choosePeople",staticStyle:{width:"120px"},on:{click:e.choosePeople}},[e._v("选择成员")]),a("a-select",{staticStyle:{width:"120px","margin-right":"20px"},attrs:{placeholder:"经办人",allowClear:!0},on:{change:e.selectAgent}},e._l(e.agentList,function(t,n){return a("a-select-option",{key:n,attrs:{value:t.ddUserId}},[e._v(e._s(t.name))])}),1),a("a-select",{staticStyle:{width:"120px","margin-right":"20px"},attrs:{placeholder:"状态",allowClear:!0},on:{change:e.selectHandlestatus}},[a("a-select-option",{attrs:{value:"SUCCESS"}},[e._v("已完成")]),a("a-select-option",{attrs:{value:"WAITING_PERMIT"}},[e._v("审批中")]),a("a-select-option",{attrs:{value:"FAILED"}},[e._v("审批未通过")])],1),a("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")])],1),e.searchSource.UserMessage.emplId?a("div",{staticClass:"searchUserMessage"},[a("div",{staticClass:"positionDiv"}),a("div",{staticClass:"clearUserMessage"},[a("a",{attrs:{href:"javascript:;"},on:{click:e.clearUserMessage}},[e._v("清除")])]),a("div",{staticClass:"userListBox"},[a("div",[e.searchSource.UserMessage.avatar?a("img",{attrs:{src:e.searchSource.UserMessage.avatar,alt:e.searchSource.UserMessage.name}}):a("img",{attrs:{src:this.avatarCanvasFn(e.searchSource.UserMessage.name),alt:e.searchSource.UserMessage.name}}),a("span",[e._v(e._s(e.searchSource.UserMessage.name))])])])]):e._e(),a("a-table",{attrs:{columns:e.columns,dataSource:e.chargeList,pagination:e.pagination,rowKey:"orderNo"},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"departmentNameList",fn:function(t,n){return a("span",{},[t&&t.length>0?a("div",e._l(t,function(t,r){return a("a-popover",{key:r},[a("template",{slot:"content"},[a("p",[e._v(e._s(n.parentSysDeptNameList[r]))])]),a("span",{staticClass:"deptModel"},[e._v(e._s(t))])],2)}),1):e._e()])}},{key:"agent",fn:function(t,n){return a("span",{},[e._v("\n "+e._s(""===t&&"EXTERNAL_ALI_RECHAGE"===n.payTypeCode?"支付宝自充":t)+"\n ")])}},{key:"orderStatus",fn:function(t){return a("span",{},[t===e.MINGPAY_CHARGE_ORDERSTATUS.WAITING_PERMIT?a("a-badge",{attrs:{status:"processing",text:"审批中"}}):t===e.MINGPAY_CHARGE_ORDERSTATUS.SUCCESS?a("a-badge",{attrs:{status:"success",text:"已完成"}}):t===e.MINGPAY_CHARGE_ORDERSTATUS.FAILED?a("a-badge",{attrs:{status:"error",text:"审批未通过"}}):e._e()],1)}}])},[a("span",{attrs:{slot:"userName"},slot:"userName"},[e._v("姓名")]),a("span",{attrs:{slot:"chargeAmount"},slot:"chargeAmount"}),a("span",{attrs:{slot:"createTime"},slot:"createTime"},[e._v("时间")]),a("span",{attrs:{slot:"remark"},slot:"remark"},[e._v("备注")])])],1)},r=[],s=a("da71"),o=a("0d5e"),c=a("2957"),i={name:"accountManagement",components:{},data:function(){return{MINGPAY_CHARGE_ORDERSTATUS:c["b"],data:[],columns:[{title:"成员",dataIndex:"userName"},{title:"部门",dataIndex:"departmentNameList",scopedSlots:{customRender:"departmentNameList"},width:"15%"},{title:"充值金额",dataIndex:"chargeAmount"},{title:"经办人",dataIndex:"agent",scopedSlots:{customRender:"agent"}},{title:"状态",dataIndex:"orderStatus",scopedSlots:{customRender:"orderStatus"}},{title:"时间",dataIndex:"createTime"},{title:"备注",dataIndex:"remark",width:"12%"}],pagination:{current:1,defaultCurrent:10,defaultPageSize:10,hideOnSinglePage:!0,total:0},chargeList:[],searchSource:{UserMessage:{avatar:"",emplId:"",name:""},status:"",agentId:""},agentList:[]}},watch:{},computed:{},created:function(){this.queryRechargeList(),this.getAgentList()},methods:{getAgentList:function(){var e=this,t={userType:"1"};o["a"].get("/mingpay/v1/isv/cashier/list_cashier_all",t).then(function(t){e.agentList=t.data.data})},choosePeople:function(){var e=this,t=this;s["a"].ddready("ddchooseOne").then(function(a){e.searchSource.UserMessage=a[0],t.queryRechargeList()})},clearUserMessage:function(){this.searchSource.UserMessage={avatar:"",emplId:"",name:""}},avatarCanvasFn:function(e){var t=document.createElement("canvas"),a=t.getContext("2d"),n=this.getPixelRatio(a);return t.style.width="40px",t.style.height="40px",t.width=40*n,t.height=40*n,a.scale(n,n),a.fillStyle="#1890ff",a.fillRect(0,0,40,40),a.fillStyle="#ffffff",a.font="12px Arial",a.textAlign="center",a.fillText(e,20,25),t.toDataURL()},getPixelRatio:function(e){var t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t},selectHandlestatus:function(e){this.searchSource.status=e},selectAgent:function(e){this.searchSource.agentId=e},queryRechargeList:function(){var e=this,t={pageNumber:10,currentPage:this.pagination.current,agentId:this.searchSource.agentId,status:this.searchSource.status,ddUserId:this.searchSource.UserMessage.emplId};o["a"].get("/mingpay/v1/isv/charge/list_charge",t).then(function(t){var a=t.data.data;e.pagination.total=parseInt(a.totalCount),e.chargeList=a.recordList})},handleTableChange:function(e,t,a){this.pagination.current=e.current,this.queryRechargeList()},departmentNameListToStr:function(e){var t="";return 0!==e.length&&e.map(function(e){t="".concat(t).concat(e,",")}),t=t.substring(0,t.length-1),t},search:function(){this.pagination.current=1,this.queryRechargeList()}},mounted:function(){}},u=i,l=(a("3b5e"),a("2877")),d=Object(l["a"])(u,n,r,!1,null,"2dcdf518",null);t["default"]=d.exports},df09:function(e,t,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7026f433"],{"0d5e":function(e,t,a){"use strict";a.d(t,"a",function(){return d});var n,r=a("7f43"),s=a.n(r),o=a("4328"),c=a.n(o),i=a("9f82"),u=a("f64c"),l="https://gateway.mingwork.com";s.a.interceptors.request.use(function(e){var t=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in")-3e5;return t?(e.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),e):new Promise(function(e,t){Object(i["c"])().then(function(e){console.log("res",e)}).catch(function(e){console.log(e)})})},function(e){return n.close(),Promise.reject(e)}),s.a.interceptors.response.use(function(e){return Promise.resolve(e)},function(e){return new Promise(function(t,a){if(console.log(e),e&&e.response)switch(e.response.status){case 401:u["a"].error("网络异常请重试"),Object(i["c"])().then(function(a){console.log("refreshToken1",a),t(e)});break;case 426:u["a"].error("网络异常请重试"),Object(i["a"])().then(function(a){t(e)});break;case 504:u["a"].error("系统异常"),t(e);break;case 500:u["a"].error("系统繁忙"),t(e);break;default:u["a"].error("未知问题"),t(e),a(new Error(e))}else u["a"].error("未知问题"),t(e)})});var d={post:function(e,t){return new Promise(function(a,n){var r=void 0===t?"":t;s.a.post("".concat(l).concat(e),r,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(e){return a(e)})})},get:function(e,t){return new Promise(function(a,n){var r=void 0===t?"":c.a.stringify(t);s.a.get("".concat(l).concat(e,"?").concat(r)).then(function(e){return a(e)})})}}},2957:function(e,t,a){"use strict";a.d(t,"a",function(){return n}),a.d(t,"b",function(){return r}),a.d(t,"c",function(){return s}),a.d(t,"d",function(){return o});var n={ACTIVE:"ACTIVE",UNACTIVE:"UNACTIVE",LOG_OFF:"LOG_OFF",WITHDRAW:"WITHDRAW",SETTLEMENT:"SETTLEMENT"},r={WAITING_PERMIT:"WAITING_PERMIT",SUCCESS:"SUCCESS",FAILED:"FAILED",WAITING_PAYMENT:"WAITING_PAYMENT"},s={SUCCESS:"SUCCESS",WAITING_PERMIT:"WAITING_PERMIT",REFUND_SUCCESS:"REFUND_SUCCESS"},o={SUCCESS:"SUCCESS",WAITING_PERMIT:"WAITING_PERMIT",REFUSE_PERMIT:"REFUSE_PERMIT"}},"3b5e":function(e,t,a){"use strict";var n=a("df09"),r=a.n(n);r.a},"4be4":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"RechargeRecord"},[a("div",{staticClass:"searchBox"},[a("div",{staticClass:"choosePeople",staticStyle:{width:"120px"},on:{click:e.choosePeople}},[e._v("选择成员")]),a("a-select",{staticStyle:{width:"120px","margin-right":"20px"},attrs:{placeholder:"经办人",allowClear:!0},on:{change:e.selectAgent}},e._l(e.agentList,function(t,n){return a("a-select-option",{key:n,attrs:{value:t.ddUserId}},[e._v(e._s(t.name))])}),1),a("a-select",{staticStyle:{width:"120px","margin-right":"20px"},attrs:{placeholder:"状态",allowClear:!0},on:{change:e.selectHandlestatus}},[a("a-select-option",{attrs:{value:"SUCCESS"}},[e._v("已完成")]),a("a-select-option",{attrs:{value:"WAITING_PERMIT"}},[e._v("审批中")]),a("a-select-option",{attrs:{value:"FAILED"}},[e._v("审批未通过")])],1),a("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")])],1),e.searchSource.UserMessage.emplId?a("div",{staticClass:"searchUserMessage"},[a("div",{staticClass:"positionDiv"}),a("div",{staticClass:"clearUserMessage"},[a("a",{attrs:{href:"javascript:;"},on:{click:e.clearUserMessage}},[e._v("清除")])]),a("div",{staticClass:"userListBox"},[a("div",[e.searchSource.UserMessage.avatar?a("img",{attrs:{src:e.searchSource.UserMessage.avatar,alt:e.searchSource.UserMessage.name}}):a("img",{attrs:{src:this.avatarCanvasFn(e.searchSource.UserMessage.name),alt:e.searchSource.UserMessage.name}}),a("span",[e._v(e._s(e.searchSource.UserMessage.name))])])])]):e._e(),a("a-table",{attrs:{columns:e.columns,dataSource:e.chargeList,pagination:e.pagination,rowKey:"orderNo"},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"departmentNameList",fn:function(t,n){return a("span",{},[t&&t.length>0?a("div",e._l(t,function(t,r){return a("a-popover",{key:r},[a("template",{slot:"content"},[a("p",[e._v(e._s(n.parentSysDeptNameList[r]))])]),a("span",{staticClass:"deptModel"},[e._v(e._s(t))])],2)}),1):e._e()])}},{key:"agent",fn:function(t,n){return a("span",{},[e._v("\n "+e._s(""===t&&"EXTERNAL_ALI_RECHAGE"===n.payTypeCode?"支付宝自充":t)+"\n ")])}},{key:"orderStatus",fn:function(t){return a("span",{},[t===e.MINGPAY_CHARGE_ORDERSTATUS.WAITING_PERMIT?a("a-badge",{attrs:{status:"processing",text:"审批中"}}):t===e.MINGPAY_CHARGE_ORDERSTATUS.SUCCESS?a("a-badge",{attrs:{status:"success",text:"已完成"}}):t===e.MINGPAY_CHARGE_ORDERSTATUS.FAILED?a("a-badge",{attrs:{status:"error",text:"审批未通过"}}):e._e()],1)}}])},[a("span",{attrs:{slot:"userName"},slot:"userName"},[e._v("姓名")]),a("span",{attrs:{slot:"chargeAmount"},slot:"chargeAmount"}),a("span",{attrs:{slot:"createTime"},slot:"createTime"},[e._v("时间")]),a("span",{attrs:{slot:"remark"},slot:"remark"},[e._v("备注")])])],1)},r=[],s=a("da71"),o=a("0d5e"),c=a("2957"),i={name:"accountManagement",components:{},data:function(){return{MINGPAY_CHARGE_ORDERSTATUS:c["b"],data:[],columns:[{title:"成员",dataIndex:"userName"},{title:"部门",dataIndex:"departmentNameList",scopedSlots:{customRender:"departmentNameList"},width:"15%"},{title:"充值金额",dataIndex:"chargeAmount"},{title:"经办人",dataIndex:"agent",scopedSlots:{customRender:"agent"}},{title:"状态",dataIndex:"orderStatus",scopedSlots:{customRender:"orderStatus"}},{title:"时间",dataIndex:"createTime"},{title:"备注",dataIndex:"remark",width:"12%"}],pagination:{current:1,defaultCurrent:10,defaultPageSize:10,hideOnSinglePage:!0,total:0},chargeList:[],searchSource:{UserMessage:{avatar:"",emplId:"",name:""},status:"",agentId:""},agentList:[]}},watch:{},computed:{},created:function(){this.queryRechargeList(),this.getAgentList()},methods:{getAgentList:function(){var e=this,t={userType:"1"};o["a"].get("/mingpay/v1/isv/cashier/list_cashier_all",t).then(function(t){e.agentList=t.data.data})},choosePeople:function(){var e=this,t=this;s["a"].ddready("ddchooseOne").then(function(a){e.searchSource.UserMessage=a[0],t.queryRechargeList()})},clearUserMessage:function(){this.searchSource.UserMessage={avatar:"",emplId:"",name:""}},avatarCanvasFn:function(e){var t=document.createElement("canvas"),a=t.getContext("2d"),n=this.getPixelRatio(a);return t.style.width="40px",t.style.height="40px",t.width=40*n,t.height=40*n,a.scale(n,n),a.fillStyle="#1890ff",a.fillRect(0,0,40,40),a.fillStyle="#ffffff",a.font="12px Arial",a.textAlign="center",a.fillText(e,20,25),t.toDataURL()},getPixelRatio:function(e){var t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t},selectHandlestatus:function(e){this.searchSource.status=e},selectAgent:function(e){this.searchSource.agentId=e},queryRechargeList:function(){var e=this,t={pageNumber:10,currentPage:this.pagination.current,agentId:this.searchSource.agentId,status:this.searchSource.status,ddUserId:this.searchSource.UserMessage.emplId};o["a"].get("/mingpay/v1/isv/charge/list_charge",t).then(function(t){var a=t.data.data;e.pagination.total=parseInt(a.totalCount),e.chargeList=a.recordList})},handleTableChange:function(e,t,a){this.pagination.current=e.current,this.queryRechargeList()},departmentNameListToStr:function(e){var t="";return 0!==e.length&&e.map(function(e){t="".concat(t).concat(e,",")}),t=t.substring(0,t.length-1),t},search:function(){this.pagination.current=1,this.queryRechargeList()}},mounted:function(){}},u=i,l=(a("3b5e"),a("2877")),d=Object(l["a"])(u,n,r,!1,null,"2dcdf518",null);t["default"]=d.exports},df09:function(e,t,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b788ccac"],{"0d5e":function(e,t,n){"use strict";n.d(t,"a",function(){return d});var a,r=n("7f43"),o=n.n(r),c=n("4328"),i=n.n(c),s=n("9f82"),u=n("f64c"),l="https://gateway.mingwork.com";o.a.interceptors.request.use(function(e){var t=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in")-3e5;return t?(e.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),e):new Promise(function(e,t){Object(s["c"])().then(function(e){console.log("res",e)}).catch(function(e){console.log(e)})})},function(e){return a.close(),Promise.reject(e)}),o.a.interceptors.response.use(function(e){return Promise.resolve(e)},function(e){return new Promise(function(t,n){if(console.log(e),e&&e.response)switch(e.response.status){case 401:u["a"].error("网络异常请重试"),Object(s["c"])().then(function(n){console.log("refreshToken1",n),t(e)});break;case 426:u["a"].error("网络异常请重试"),Object(s["a"])().then(function(n){t(e)});break;case 504:u["a"].error("系统异常"),t(e);break;case 500:u["a"].error("系统繁忙"),t(e);break;default:u["a"].error("未知问题"),t(e),n(new Error(e))}else u["a"].error("未知问题"),t(e)})});var d={post:function(e,t){return new Promise(function(n,a){var r=void 0===t?"":t;o.a.post("".concat(l).concat(e),r,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(e){return n(e)})})},get:function(e,t){return new Promise(function(n,a){var r=void 0===t?"":i.a.stringify(t);o.a.get("".concat(l).concat(e,"?").concat(r)).then(function(e){return n(e)})})}}},8607:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"OperationLog"},[n("a-table",{attrs:{columns:e.columns,dataSource:e.logData,size:"default",rowKey:"id",pagination:e.pagination},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"createBy",fn:function(t){return n("span",{},[e._v("\n "+e._s(t||"系统操作")+"\n ")])}}])},[n("span",{attrs:{slot:"title"},slot:"title"}),n("span",{attrs:{slot:"remoteAddr"},slot:"remoteAddr"}),n("span",{attrs:{slot:"createTime"},slot:"createTime"})])],1)},r=[],o=(n("da71"),n("0d5e")),c={name:"operationLog",data:function(){return{pagination:{current:1,defaultCurrent:1,defaultPageSize:10,hideOnSinglePage:!0,total:0},columns:[{title:"日志类型",dataIndex:"title"},{title:"操作人",dataIndex:"createBy",scopedSlots:{customRender:"createBy"}},{title:"IP地址",dataIndex:"remoteAddr"},{title:"操作时间",dataIndex:"createTime"}],logData:[]}},created:function(){this.queryLog()},methods:{queryLog:function(){var e=this,t={desc:"create_time",serviceId:"mingpay-web",current:this.pagination.current,size:this.pagination.defaultPageSize};o["a"].get("/mingpay/v1/log/query",t).then(function(t){0===t.data.resultCode?(e.pagination.total=t.data.data.total,e.logData=t.data.data.records):e.$message.error("获取日志信息失败")}).catch(function(){e.$message.error("获取日志信息失败")})},handleTableChange:function(e,t,n){this.pagination.current=e.current,this.queryLog()}}},i=c,s=n("2877"),u=Object(s["a"])(i,a,r,!1,null,"00dd4e3a",null);t["default"]=u.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b788ccac"],{"0d5e":function(e,t,n){"use strict";n.d(t,"a",function(){return d});var a,r=n("7f43"),o=n.n(r),c=n("4328"),i=n.n(c),s=n("9f82"),u=n("f64c"),l="https://gateway.mingwork.com";o.a.interceptors.request.use(function(e){var t=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in_".concat(localStorage.getItem("orgId")))-3e5;return t?(e.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),e):new Promise(function(e,t){Object(s["c"])().then(function(e){console.log("res",e)}).catch(function(e){console.log(e)})})},function(e){return a.close(),Promise.reject(e)}),o.a.interceptors.response.use(function(e){return Promise.resolve(e)},function(e){return new Promise(function(t,n){if(console.log(e),e&&e.response)switch(e.response.status){case 401:u["a"].error("网络异常请重试"),Object(s["c"])().then(function(n){console.log("refreshToken1",n),t(e)});break;case 426:u["a"].error("网络异常请重试"),Object(s["a"])().then(function(n){t(e)});break;case 504:u["a"].error("系统异常"),t(e);break;case 500:u["a"].error("系统繁忙"),t(e);break;default:u["a"].error("未知问题"),t(e),n(new Error(e))}else u["a"].error("未知问题"),t(e)})});var d={post:function(e,t){return new Promise(function(n,a){var r=void 0===t?"":t;o.a.post("".concat(l).concat(e),r,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(e){return n(e)})})},get:function(e,t){return new Promise(function(n,a){var r=void 0===t?"":i.a.stringify(t);o.a.get("".concat(l).concat(e,"?").concat(r)).then(function(e){return n(e)})})}}},8607:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"OperationLog"},[n("a-table",{attrs:{columns:e.columns,dataSource:e.logData,size:"default",rowKey:"id",pagination:e.pagination},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"createBy",fn:function(t){return n("span",{},[e._v("\n "+e._s(t||"系统操作")+"\n ")])}}])},[n("span",{attrs:{slot:"title"},slot:"title"}),n("span",{attrs:{slot:"remoteAddr"},slot:"remoteAddr"}),n("span",{attrs:{slot:"createTime"},slot:"createTime"})])],1)},r=[],o=(n("da71"),n("0d5e")),c={name:"operationLog",data:function(){return{pagination:{current:1,defaultCurrent:1,defaultPageSize:10,hideOnSinglePage:!0,total:0},columns:[{title:"日志类型",dataIndex:"title"},{title:"操作人",dataIndex:"createBy",scopedSlots:{customRender:"createBy"}},{title:"IP地址",dataIndex:"remoteAddr"},{title:"操作时间",dataIndex:"createTime"}],logData:[]}},created:function(){this.queryLog()},methods:{queryLog:function(){var e=this,t={desc:"create_time",serviceId:"mingpay-web",current:this.pagination.current,size:this.pagination.defaultPageSize};o["a"].get("/mingpay/v1/log/query",t).then(function(t){0===t.data.resultCode?(e.pagination.total=t.data.data.total,e.logData=t.data.data.records):e.$message.error("获取日志信息失败")}).catch(function(){e.$message.error("获取日志信息失败")})},handleTableChange:function(e,t,n){this.pagination.current=e.current,this.queryLog()}}},i=c,s=n("2877"),u=Object(s["a"])(i,a,r,!1,null,"00dd4e3a",null);t["default"]=u.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-edd53178"],{"0d5e":function(e,t,a){"use strict";a.d(t,"a",function(){return d});var r,s=a("7f43"),n=a.n(s),o=a("4328"),i=a.n(o),c=a("9f82"),l=a("f64c"),u="https://gateway.mingwork.com";n.a.interceptors.request.use(function(e){var t=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in")-3e5;return t?(e.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),e):new Promise(function(e,t){Object(c["c"])().then(function(e){console.log("res",e)}).catch(function(e){console.log(e)})})},function(e){return r.close(),Promise.reject(e)}),n.a.interceptors.response.use(function(e){return Promise.resolve(e)},function(e){return new Promise(function(t,a){if(console.log(e),e&&e.response)switch(e.response.status){case 401:l["a"].error("网络异常请重试"),Object(c["c"])().then(function(a){console.log("refreshToken1",a),t(e)});break;case 426:l["a"].error("网络异常请重试"),Object(c["a"])().then(function(a){t(e)});break;case 504:l["a"].error("系统异常"),t(e);break;case 500:l["a"].error("系统繁忙"),t(e);break;default:l["a"].error("未知问题"),t(e),a(new Error(e))}else l["a"].error("未知问题"),t(e)})});var d={post:function(e,t){return new Promise(function(a,r){var s=void 0===t?"":t;n.a.post("".concat(u).concat(e),s,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(e){return a(e)})})},get:function(e,t){return new Promise(function(a,r){var s=void 0===t?"":i.a.stringify(t);n.a.get("".concat(u).concat(e,"?").concat(s)).then(function(e){return a(e)})})}}},"776a":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"consumptionOrder"},[a("div",{staticClass:"searchBox"},[a("div",{staticClass:"choosePeople",staticStyle:{width:"120px"},on:{click:e.choosePeople}},[e._v("选择消费人")]),a("a-select",{staticStyle:{width:"120px","margin-right":"20px"},attrs:{placeholder:"经办人",allowClear:!0},on:{change:e.selectAgent}},e._l(e.agentList,function(t,r){return a("a-select-option",{key:r,attrs:{value:t.ddUserId}},[e._v(e._s(t.name))])}),1),a("a-select",{staticStyle:{width:"120px","margin-right":"20px"},attrs:{placeholder:"状态",allowClear:!0},on:{change:e.selectHandlestatus}},[a("a-select-option",{attrs:{value:"SUCCESS"}},[e._v("已消费")]),a("a-select-option",{attrs:{value:"REFUND_SUCCESS"}},[e._v("已退款")])],1),a("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")])],1),e.searchSource.UserMessage.emplId?a("div",{staticClass:"searchUserMessage"},[a("div",{staticClass:"positionDiv"}),a("div",{staticClass:"clearUserMessage"},[a("a",{attrs:{href:"javascript:;"},on:{click:e.clearUserMessage}},[e._v("清除")])]),a("div",{staticClass:"userListBox"},[a("div",[e.searchSource.UserMessage.avatar?a("img",{attrs:{src:e.searchSource.UserMessage.avatar,alt:e.searchSource.UserMessage.name}}):a("img",{attrs:{src:this.avatarCanvasFn(e.searchSource.UserMessage.name),alt:e.searchSource.UserMessage.name}}),a("span",[e._v(e._s(e.searchSource.UserMessage.name))])])])]):e._e(),a("a-table",{attrs:{columns:e.columns,dataSource:e.OrderList,pagination:e.pagination,rowKey:"orderId"},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"buyerSysDeptNameList",fn:function(t,r){return a("span",{},[t&&t.length>0?a("div",e._l(t,function(t,s){return a("a-popover",{key:s},[a("template",{slot:"content"},[a("p",[e._v(e._s(r.buyerParentSysDeptList[s].sysParentName))])]),a("span",{staticClass:"deptModel"},[e._v(e._s(t))])],2)}),1):e._e()])}},{key:"orderAmount",fn:function(t){return a("span",{},[e._v("\n "+e._s(t.toFixed(2))+"\n ")])}},{key:"mingPayOrderDetailList",fn:function(t){return a("span",{},[a("a-popover",[a("template",{slot:"content"},e._l(t,function(t){return a("div",{key:t.orderDetailId,staticClass:"mingPayOrderDetailItem"},[a("div",[a("img",{attrs:{src:t.productIcon}})]),a("div",[a("div",[e._v(e._s(t.productName))]),a("div",[e._v("X"+e._s(t.productQuantity))])]),a("div",[e._v("\n ¥"+e._s(t.productPrice.toFixed(2))+"\n ")])])}),0),a("span",{staticClass:"deptModel"},[e._v(e._s(t[0].productName)+" ···")])],2)],1)}},{key:"orderStatus",fn:function(t){return a("span",{},["SUCCESS"===t?a("a-badge",{attrs:{status:"success",text:"已消费"}}):"REFUND_SUCCESS"===t?a("a-badge",{attrs:{status:"error",text:"已退款"}}):e._e()],1)}}])},[a("span",{attrs:{slot:"buyerName"},slot:"buyerName"},[e._v("姓名")]),a("span",{attrs:{slot:"agentName"},slot:"agentName"},[e._v("经办人")]),a("span",{attrs:{slot:"createTime"},slot:"createTime"},[e._v("时间")])])],1)},s=[],n=a("da71"),o=a("0d5e"),i={name:"consumptionOrder",data:function(){return{searchSource:{UserMessage:{avatar:"",emplId:"",name:""},payStatus:"",agentId:""},agentList:[],pagination:{current:1,defaultCurrent:10,defaultPageSize:10,hideOnSinglePage:!0,total:0},columns:[{title:"消费人",dataIndex:"buyerName"},{title:"部门",dataIndex:"buyerSysDeptNameList",scopedSlots:{customRender:"buyerSysDeptNameList"},width:"15%"},{title:"经办人",dataIndex:"agentName"},{title:"消费总额(元)",dataIndex:"orderAmount",scopedSlots:{customRender:"orderAmount"}},{title:"消费菜品",dataIndex:"mingPayOrderDetailList",scopedSlots:{customRender:"mingPayOrderDetailList"}},{title:"状态",dataIndex:"orderStatus",scopedSlots:{customRender:"orderStatus"}},{title:"时间",dataIndex:"createTime"}],OrderList:[]}},created:function(){this.getAgentList(),this.queryOrderList()},methods:{handleTableChange:function(e,t,a){this.pagination.current=e.current,this.queryOrderList()},getAgentList:function(){var e=this,t={userType:"1"};o["a"].get("/mingpay/v1/isv/cashier/list_cashier_all",t).then(function(t){e.agentList=t.data.data})},choosePeople:function(){var e=this,t=this;n["a"].ddready("ddchooseOne").then(function(a){e.searchSource.UserMessage=a[0],t.queryOrderList()})},clearUserMessage:function(){this.searchSource.UserMessage={avatar:"",emplId:"",name:""}},avatarCanvasFn:function(e){var t=document.createElement("canvas"),a=t.getContext("2d"),r=this.getPixelRatio(a);return t.style.width="40px",t.style.height="40px",t.width=40*r,t.height=40*r,a.scale(r,r),a.fillStyle="#1890ff",a.fillRect(0,0,40,40),a.fillStyle="#ffffff",a.font="12px Arial",a.textAlign="center",a.fillText(e,20,25),t.toDataURL()},getPixelRatio:function(e){var t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t},selectHandlestatus:function(e){this.searchSource.payStatus=e},selectAgent:function(e){this.searchSource.agentId=e},search:function(){this.pagination.current=1,this.queryOrderList()},queryOrderList:function(){var e=this,t={pageNumber:10,currentPage:this.pagination.current,agentId:this.searchSource.agentId,payStatus:this.searchSource.payStatus,buyerId:this.searchSource.UserMessage.emplId};o["a"].post("/mingpay/v1/isv/order/list_order_page",t).then(function(t){var a=t.data.data;e.pagination.total=parseInt(a.total),e.OrderList=a.list})}}},c=i,l=(a("bf02"),a("2877")),u=Object(l["a"])(c,r,s,!1,null,"7f09b024",null);t["default"]=u.exports},"7dff":function(e,t,a){},bf02:function(e,t,a){"use strict";var r=a("7dff"),s=a.n(r);s.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-edd53178"],{"0d5e":function(e,t,a){"use strict";a.d(t,"a",function(){return d});var r,s=a("7f43"),n=a.n(s),o=a("4328"),i=a.n(o),c=a("9f82"),l=a("f64c"),u="https://gateway.mingwork.com";n.a.interceptors.request.use(function(e){var t=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in_".concat(localStorage.getItem("orgId")))-3e5;return t?(e.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),e):new Promise(function(e,t){Object(c["c"])().then(function(e){console.log("res",e)}).catch(function(e){console.log(e)})})},function(e){return r.close(),Promise.reject(e)}),n.a.interceptors.response.use(function(e){return Promise.resolve(e)},function(e){return new Promise(function(t,a){if(console.log(e),e&&e.response)switch(e.response.status){case 401:l["a"].error("网络异常请重试"),Object(c["c"])().then(function(a){console.log("refreshToken1",a),t(e)});break;case 426:l["a"].error("网络异常请重试"),Object(c["a"])().then(function(a){t(e)});break;case 504:l["a"].error("系统异常"),t(e);break;case 500:l["a"].error("系统繁忙"),t(e);break;default:l["a"].error("未知问题"),t(e),a(new Error(e))}else l["a"].error("未知问题"),t(e)})});var d={post:function(e,t){return new Promise(function(a,r){var s=void 0===t?"":t;n.a.post("".concat(u).concat(e),s,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(e){return a(e)})})},get:function(e,t){return new Promise(function(a,r){var s=void 0===t?"":i.a.stringify(t);n.a.get("".concat(u).concat(e,"?").concat(s)).then(function(e){return a(e)})})}}},"776a":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"consumptionOrder"},[a("div",{staticClass:"searchBox"},[a("div",{staticClass:"choosePeople",staticStyle:{width:"120px"},on:{click:e.choosePeople}},[e._v("选择消费人")]),a("a-select",{staticStyle:{width:"120px","margin-right":"20px"},attrs:{placeholder:"经办人",allowClear:!0},on:{change:e.selectAgent}},e._l(e.agentList,function(t,r){return a("a-select-option",{key:r,attrs:{value:t.ddUserId}},[e._v(e._s(t.name))])}),1),a("a-select",{staticStyle:{width:"120px","margin-right":"20px"},attrs:{placeholder:"状态",allowClear:!0},on:{change:e.selectHandlestatus}},[a("a-select-option",{attrs:{value:"SUCCESS"}},[e._v("已消费")]),a("a-select-option",{attrs:{value:"REFUND_SUCCESS"}},[e._v("已退款")])],1),a("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")])],1),e.searchSource.UserMessage.emplId?a("div",{staticClass:"searchUserMessage"},[a("div",{staticClass:"positionDiv"}),a("div",{staticClass:"clearUserMessage"},[a("a",{attrs:{href:"javascript:;"},on:{click:e.clearUserMessage}},[e._v("清除")])]),a("div",{staticClass:"userListBox"},[a("div",[e.searchSource.UserMessage.avatar?a("img",{attrs:{src:e.searchSource.UserMessage.avatar,alt:e.searchSource.UserMessage.name}}):a("img",{attrs:{src:this.avatarCanvasFn(e.searchSource.UserMessage.name),alt:e.searchSource.UserMessage.name}}),a("span",[e._v(e._s(e.searchSource.UserMessage.name))])])])]):e._e(),a("a-table",{attrs:{columns:e.columns,dataSource:e.OrderList,pagination:e.pagination,rowKey:"orderId"},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"buyerSysDeptNameList",fn:function(t,r){return a("span",{},[t&&t.length>0?a("div",e._l(t,function(t,s){return a("a-popover",{key:s},[a("template",{slot:"content"},[a("p",[e._v(e._s(r.buyerParentSysDeptList[s].sysParentName))])]),a("span",{staticClass:"deptModel"},[e._v(e._s(t))])],2)}),1):e._e()])}},{key:"orderAmount",fn:function(t){return a("span",{},[e._v("\n "+e._s(t.toFixed(2))+"\n ")])}},{key:"mingPayOrderDetailList",fn:function(t){return a("span",{},[a("a-popover",[a("template",{slot:"content"},e._l(t,function(t){return a("div",{key:t.orderDetailId,staticClass:"mingPayOrderDetailItem"},[a("div",[a("img",{attrs:{src:t.productIcon}})]),a("div",[a("div",[e._v(e._s(t.productName))]),a("div",[e._v("X"+e._s(t.productQuantity))])]),a("div",[e._v("\n ¥"+e._s(t.productPrice.toFixed(2))+"\n ")])])}),0),a("span",{staticClass:"deptModel"},[e._v(e._s(t[0].productName)+" ···")])],2)],1)}},{key:"orderStatus",fn:function(t){return a("span",{},["SUCCESS"===t?a("a-badge",{attrs:{status:"success",text:"已消费"}}):"REFUND_SUCCESS"===t?a("a-badge",{attrs:{status:"error",text:"已退款"}}):e._e()],1)}}])},[a("span",{attrs:{slot:"buyerName"},slot:"buyerName"},[e._v("姓名")]),a("span",{attrs:{slot:"agentName"},slot:"agentName"},[e._v("经办人")]),a("span",{attrs:{slot:"createTime"},slot:"createTime"},[e._v("时间")])])],1)},s=[],n=a("da71"),o=a("0d5e"),i={name:"consumptionOrder",data:function(){return{searchSource:{UserMessage:{avatar:"",emplId:"",name:""},payStatus:"",agentId:""},agentList:[],pagination:{current:1,defaultCurrent:10,defaultPageSize:10,hideOnSinglePage:!0,total:0},columns:[{title:"消费人",dataIndex:"buyerName"},{title:"部门",dataIndex:"buyerSysDeptNameList",scopedSlots:{customRender:"buyerSysDeptNameList"},width:"15%"},{title:"经办人",dataIndex:"agentName"},{title:"消费总额(元)",dataIndex:"orderAmount",scopedSlots:{customRender:"orderAmount"}},{title:"消费菜品",dataIndex:"mingPayOrderDetailList",scopedSlots:{customRender:"mingPayOrderDetailList"}},{title:"状态",dataIndex:"orderStatus",scopedSlots:{customRender:"orderStatus"}},{title:"时间",dataIndex:"createTime"}],OrderList:[]}},created:function(){this.getAgentList(),this.queryOrderList()},methods:{handleTableChange:function(e,t,a){this.pagination.current=e.current,this.queryOrderList()},getAgentList:function(){var e=this,t={userType:"1"};o["a"].get("/mingpay/v1/isv/cashier/list_cashier_all",t).then(function(t){e.agentList=t.data.data})},choosePeople:function(){var e=this,t=this;n["a"].ddready("ddchooseOne").then(function(a){e.searchSource.UserMessage=a[0],t.queryOrderList()})},clearUserMessage:function(){this.searchSource.UserMessage={avatar:"",emplId:"",name:""}},avatarCanvasFn:function(e){var t=document.createElement("canvas"),a=t.getContext("2d"),r=this.getPixelRatio(a);return t.style.width="40px",t.style.height="40px",t.width=40*r,t.height=40*r,a.scale(r,r),a.fillStyle="#1890ff",a.fillRect(0,0,40,40),a.fillStyle="#ffffff",a.font="12px Arial",a.textAlign="center",a.fillText(e,20,25),t.toDataURL()},getPixelRatio:function(e){var t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t},selectHandlestatus:function(e){this.searchSource.payStatus=e},selectAgent:function(e){this.searchSource.agentId=e},search:function(){this.pagination.current=1,this.queryOrderList()},queryOrderList:function(){var e=this,t={pageNumber:10,currentPage:this.pagination.current,agentId:this.searchSource.agentId,payStatus:this.searchSource.payStatus,buyerId:this.searchSource.UserMessage.emplId};o["a"].post("/mingpay/v1/isv/order/list_order_page",t).then(function(t){var a=t.data.data;e.pagination.total=parseInt(a.total),e.OrderList=a.list})}}},c=i,l=(a("bf02"),a("2877")),u=Object(l["a"])(c,r,s,!1,null,"7f09b024",null);t["default"]=u.exports},"7dff":function(e,t,a){},bf02:function(e,t,a){"use strict";var r=a("7dff"),s=a.n(r);s.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-edd5b888"],{"0d5e":function(e,t,a){"use strict";a.d(t,"a",function(){return d});var n,i=a("7f43"),r=a.n(i),o=a("4328"),s=a.n(o),c=a("9f82"),l=a("f64c"),u="https://gateway.mingwork.com";r.a.interceptors.request.use(function(e){var t=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in_".concat(localStorage.getItem("orgId")))-3e5;return t?(e.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),e):new Promise(function(e,t){Object(c["c"])().then(function(e){console.log("res",e)}).catch(function(e){console.log(e)})})},function(e){return n.close(),Promise.reject(e)}),r.a.interceptors.response.use(function(e){return Promise.resolve(e)},function(e){return new Promise(function(t,a){if(console.log(e),e&&e.response)switch(e.response.status){case 401:l["a"].error("网络异常请重试"),Object(c["c"])().then(function(a){console.log("refreshToken1",a),t(e)});break;case 426:l["a"].error("网络异常请重试"),Object(c["a"])().then(function(a){t(e)});break;case 504:l["a"].error("系统异常"),t(e);break;case 500:l["a"].error("系统繁忙"),t(e);break;default:l["a"].error("未知问题"),t(e),a(new Error(e))}else l["a"].error("未知问题"),t(e)})});var d={post:function(e,t){return new Promise(function(a,n){var i=void 0===t?"":t;r.a.post("".concat(u).concat(e),i,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(e){return a(e)})})},get:function(e,t){return new Promise(function(a,n){var i=void 0===t?"":s.a.stringify(t);r.a.get("".concat(u).concat(e,"?").concat(i)).then(function(e){return a(e)})})}}},"268f":function(e,t,a){e.exports=a("fde4")},"336c":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAARtJREFUOBG1krFqwlAUhr0iZLIoDnV1E1EHEUToUFydJH2H7kUQXJ2dfAFH8RXEVXAQHNSp1NmIVl1aHYxfpEKu8ZoQ6YEvyf3Pf/7cXBII/EeZppmCTyj5zmc4DQsYQ8RXEIMZMP5CYn5DsgQsHwqx3kzAHLzWEeMK+qDbdy4QPhCaMIOWvXnjWaAloAgv0IV3IcSG+3lXVQKtapwFDxe8OqyhI9kR/IS9MWdVRRX2KjXuLAgZQM9hQSyA5mgoBLxNMELXfQ5ueK25rHf0taCLyUs7h+nLi1Hp4ZOS8AN1pcmtwXAcRjABzXFGiGFCnhRB9h+yhucXypzrXvITEoQNuNUBQxuilwDrDVLRzCM8S6K8+GY5ZRdbu3wC8ygamHQCIbQAAAAASUVORK5CYII="},"7e42":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-spin",{attrs:{spinning:e.spinning,delay:e.delayTime}},[n("div",{staticClass:"allowanceDetails"},[n("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.back()}}},[n("img",{staticStyle:{"margin-top":"-4px","margin-right":"6px",width:"14px"},attrs:{src:a("336c")}}),e._v("返回")]),n("div",{staticClass:"title"},[e._v("津贴详情")]),e.allowanceDetails?n("div",{staticClass:"allowanceDetailsBox"},[n("div",[n("label",[e._v("津贴类型")]),n("div",[e._v(e._s("TRAVEL"===e.allowanceDetails.subsidyType?"交通补贴":"餐补"))])]),n("div",[n("label",[e._v("截止日期")]),n("div",[e._v(e._s(e.allowanceDetails.endTime)+" "),e.isshowChange?n("span",{staticClass:"changeEndTime",on:{click:e.changeEndTimeModel}},[e._v("修改")]):e._e()])]),n("div",[n("label",[e._v("单号")]),n("div",[e._v(e._s(e.allowanceDetails.grantNumber))])]),n("div",[n("label",[e._v("经办人")]),n("div",[e._v(e._s(e.allowanceDetails.agentName))])]),n("div",[n("label",[e._v("发放时间")]),n("div",[e._v(e._s(e.allowanceDetails.createTime))])]),n("div",[n("label",[e._v("备注")]),n("div",[e._v(e._s(e.allowanceDetails.remark))])]),n("div",[n("label",[e._v("单笔金额")]),n("div",[e._v(e._s(e.allowanceDetails.subsidyAmount.toFixed(2)))])]),n("div",[n("label",[e._v("发放笔数")]),n("div",[e._v("共"+e._s(e.allowanceDetails.subsidyQuantity)+"笔")])]),n("div",[n("label",[e._v("发放对象")]),n("div",[e._v(e._s(e.allowanceDetails.recipient))])])]):e._e(),n("div",{staticClass:"clickshowsearchUserMessage",on:{click:e.changeIsShow}},[n("a",{attrs:{href:"javascript:;"}},[e._v("查看具体成员")])]),e.isshow?n("div",{staticClass:"searchUserMessage"},[n("div",{staticClass:"positionDiv"}),n("div",{staticStyle:{"margin-bottom":"8px"}},[n("label",[e._v("请输入查询人员:")]),n("a-input",{staticStyle:{width:"220px"},attrs:{placeholder:""},model:{value:e.searchData,callback:function(t){e.searchData=t},expression:"searchData"}})],1),n("div",{staticClass:"userList"},e._l(e.allowanceDetails.grantSubsidyUserName,function(t,a){return n("span",{key:a,class:e.searchData.trim()===t?"searchData":""},[e._v(e._s(t))])}),0)]):e._e(),n("a-modal",{attrs:{title:"修改截止日期"},on:{ok:function(t){return e.changeEndTime()}},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",e._b({attrs:{label:"截止日期"}},"a-form-item",e.formItemLayout,!1),[n("a-date-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["date-picker",e.config],expression:"['date-picker', config]"}],attrs:{placeholder:"请选择截止日期",disabledDate:e.disabledDate,showToday:!1}})],1)],1)],1)],1)])},i=[],r=a("cebc"),o=a("0d5e"),s=a("c1df"),c=a.n(s),l={name:"allowanceDetails",data:function(){return{moment:c.a,grantNumber:"",allowanceDetails:"",searchData:"",isshow:!1,visible:!1,spinning:!1,delayTime:100,form:this.$form.createForm(this),isshowChange:!1,config:{rules:[{type:"object",required:!0,message:"请选择时间"}]},formItemLayout:{labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}}}}},watch:{},computed:{},created:function(){this.grantNumber=this.$route.params.allowanceDetails,this.getStatisticalProductPage()},methods:{disabledDate:function(e){return console.log(c()().endOf("day")),e<c()(Date.now()).add(-1,"day")},getStatisticalProductPage:function(){var e=this,t={grantNumber:this.grantNumber};o["a"].get("/mingpay/v1/isv/account/coupon_record_detail",t).then(function(t){console.log(t),e.isshowChange=new Date(t.data.data.endTime).getTime()>(new Date).getTime(),e.allowanceDetails=t.data.data})},back:function(){this.$router.go(-1)},changeIsShow:function(){this.isshow=!this.isshow},changeEndTimeModel:function(){this.visible=!this.visible},changeEndTime:function(){var e=this,t=this;this.form.validateFields(function(a,n){if(a)e.$message.error("请完整填写津贴相关信息");else{e.visible=!1,e.spinning=!0;var i=Object(r["a"])({},n,{"date-picker":n["date-picker"].format("YYYY-MM-DD")}),s={endTime:"".concat(i["date-picker"]," 23:59:59"),grantNumber:e.grantNumber};o["a"].post("/mingpay/v1/isv/account/update_coupon_record",s).then(function(e){0===e.data.resultCode?(t.allowanceDetails.endTime="".concat(i["date-picker"]," 23:59:59"),t.spinning=!t.spinning,t.$message.success("修改成功")):t.$message.error("修改失败")})}})}}},u=l,d=(a("e1df"),a("2877")),f=Object(d["a"])(u,n,i,!1,null,"aa5d9154",null);t["default"]=f.exports},"85f2":function(e,t,a){e.exports=a("454f")},a4bb:function(e,t,a){e.exports=a("8aae")},a9f8:function(e,t,a){},bf90:function(e,t,a){var n=a("36c3"),i=a("bf0b").f;a("ce7e")("getOwnPropertyDescriptor",function(){return function(e,t){return i(n(e),t)}})},cebc:function(e,t,a){"use strict";var n=a("268f"),i=a.n(n),r=a("e265"),o=a.n(r),s=a("a4bb"),c=a.n(s),l=a("85f2"),u=a.n(l);function d(e,t,a){return t in e?u()(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function f(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{},n=c()(a);"function"===typeof o.a&&(n=n.concat(o()(a).filter(function(e){return i()(a,e).enumerable}))),n.forEach(function(t){d(e,t,a[t])})}return e}a.d(t,"a",function(){return f})},e1df:function(e,t,a){"use strict";var n=a("a9f8"),i=a.n(n);i.a},e265:function(e,t,a){e.exports=a("ed33")},ed33:function(e,t,a){a("014b"),e.exports=a("584a").Object.getOwnPropertySymbols},fde4:function(e,t,a){a("bf90");var n=a("584a").Object;e.exports=function(e,t){return n.getOwnPropertyDescriptor(e,t)}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-edd5b888"],{"0d5e":function(e,t,a){"use strict";a.d(t,"a",function(){return d});var n,i=a("7f43"),r=a.n(i),o=a("4328"),s=a.n(o),c=a("9f82"),l=a("f64c"),u="https://gateway.mingwork.com";r.a.interceptors.request.use(function(e){var t=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in")-3e5;return t?(e.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),e):new Promise(function(e,t){Object(c["c"])().then(function(e){console.log("res",e)}).catch(function(e){console.log(e)})})},function(e){return n.close(),Promise.reject(e)}),r.a.interceptors.response.use(function(e){return Promise.resolve(e)},function(e){return new Promise(function(t,a){if(console.log(e),e&&e.response)switch(e.response.status){case 401:l["a"].error("网络异常请重试"),Object(c["c"])().then(function(a){console.log("refreshToken1",a),t(e)});break;case 426:l["a"].error("网络异常请重试"),Object(c["a"])().then(function(a){t(e)});break;case 504:l["a"].error("系统异常"),t(e);break;case 500:l["a"].error("系统繁忙"),t(e);break;default:l["a"].error("未知问题"),t(e),a(new Error(e))}else l["a"].error("未知问题"),t(e)})});var d={post:function(e,t){return new Promise(function(a,n){var i=void 0===t?"":t;r.a.post("".concat(u).concat(e),i,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(e){return a(e)})})},get:function(e,t){return new Promise(function(a,n){var i=void 0===t?"":s.a.stringify(t);r.a.get("".concat(u).concat(e,"?").concat(i)).then(function(e){return a(e)})})}}},"268f":function(e,t,a){e.exports=a("fde4")},"336c":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAARtJREFUOBG1krFqwlAUhr0iZLIoDnV1E1EHEUToUFydJH2H7kUQXJ2dfAFH8RXEVXAQHNSp1NmIVl1aHYxfpEKu8ZoQ6YEvyf3Pf/7cXBII/EeZppmCTyj5zmc4DQsYQ8RXEIMZMP5CYn5DsgQsHwqx3kzAHLzWEeMK+qDbdy4QPhCaMIOWvXnjWaAloAgv0IV3IcSG+3lXVQKtapwFDxe8OqyhI9kR/IS9MWdVRRX2KjXuLAgZQM9hQSyA5mgoBLxNMELXfQ5ueK25rHf0taCLyUs7h+nLi1Hp4ZOS8AN1pcmtwXAcRjABzXFGiGFCnhRB9h+yhucXypzrXvITEoQNuNUBQxuilwDrDVLRzCM8S6K8+GY5ZRdbu3wC8ygamHQCIbQAAAAASUVORK5CYII="},"7e42":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-spin",{attrs:{spinning:e.spinning,delay:e.delayTime}},[n("div",{staticClass:"allowanceDetails"},[n("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.back()}}},[n("img",{staticStyle:{"margin-top":"-4px","margin-right":"6px",width:"14px"},attrs:{src:a("336c")}}),e._v("返回")]),n("div",{staticClass:"title"},[e._v("津贴详情")]),e.allowanceDetails?n("div",{staticClass:"allowanceDetailsBox"},[n("div",[n("label",[e._v("津贴类型")]),n("div",[e._v(e._s("TRAVEL"===e.allowanceDetails.subsidyType?"交通补贴":"餐补"))])]),n("div",[n("label",[e._v("截止日期")]),n("div",[e._v(e._s(e.allowanceDetails.endTime)+" "),e.isshowChange?n("span",{staticClass:"changeEndTime",on:{click:e.changeEndTimeModel}},[e._v("修改")]):e._e()])]),n("div",[n("label",[e._v("单号")]),n("div",[e._v(e._s(e.allowanceDetails.grantNumber))])]),n("div",[n("label",[e._v("经办人")]),n("div",[e._v(e._s(e.allowanceDetails.agentName))])]),n("div",[n("label",[e._v("发放时间")]),n("div",[e._v(e._s(e.allowanceDetails.createTime))])]),n("div",[n("label",[e._v("备注")]),n("div",[e._v(e._s(e.allowanceDetails.remark))])]),n("div",[n("label",[e._v("单笔金额")]),n("div",[e._v(e._s(e.allowanceDetails.subsidyAmount.toFixed(2)))])]),n("div",[n("label",[e._v("发放笔数")]),n("div",[e._v("共"+e._s(e.allowanceDetails.subsidyQuantity)+"笔")])]),n("div",[n("label",[e._v("发放对象")]),n("div",[e._v(e._s(e.allowanceDetails.recipient))])])]):e._e(),n("div",{staticClass:"clickshowsearchUserMessage",on:{click:e.changeIsShow}},[n("a",{attrs:{href:"javascript:;"}},[e._v("查看具体成员")])]),e.isshow?n("div",{staticClass:"searchUserMessage"},[n("div",{staticClass:"positionDiv"}),n("div",{staticStyle:{"margin-bottom":"8px"}},[n("label",[e._v("请输入查询人员:")]),n("a-input",{staticStyle:{width:"220px"},attrs:{placeholder:""},model:{value:e.searchData,callback:function(t){e.searchData=t},expression:"searchData"}})],1),n("div",{staticClass:"userList"},e._l(e.allowanceDetails.grantSubsidyUserName,function(t,a){return n("span",{key:a,class:e.searchData.trim()===t?"searchData":""},[e._v(e._s(t))])}),0)]):e._e(),n("a-modal",{attrs:{title:"修改截止日期"},on:{ok:function(t){return e.changeEndTime()}},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",e._b({attrs:{label:"截止日期"}},"a-form-item",e.formItemLayout,!1),[n("a-date-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["date-picker",e.config],expression:"['date-picker', config]"}],attrs:{placeholder:"请选择截止日期",disabledDate:e.disabledDate,showToday:!1}})],1)],1)],1)],1)])},i=[],r=a("cebc"),o=a("0d5e"),s=a("c1df"),c=a.n(s),l={name:"allowanceDetails",data:function(){return{moment:c.a,grantNumber:"",allowanceDetails:"",searchData:"",isshow:!1,visible:!1,spinning:!1,delayTime:100,form:this.$form.createForm(this),isshowChange:!1,config:{rules:[{type:"object",required:!0,message:"请选择时间"}]},formItemLayout:{labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}}}}},watch:{},computed:{},created:function(){this.grantNumber=this.$route.params.allowanceDetails,this.getStatisticalProductPage()},methods:{disabledDate:function(e){return console.log(c()().endOf("day")),e<c()(Date.now()).add(-1,"day")},getStatisticalProductPage:function(){var e=this,t={grantNumber:this.grantNumber};o["a"].get("/mingpay/v1/isv/account/coupon_record_detail",t).then(function(t){console.log(t),e.isshowChange=new Date(t.data.data.endTime).getTime()>(new Date).getTime(),e.allowanceDetails=t.data.data})},back:function(){this.$router.go(-1)},changeIsShow:function(){this.isshow=!this.isshow},changeEndTimeModel:function(){this.visible=!this.visible},changeEndTime:function(){var e=this,t=this;this.form.validateFields(function(a,n){if(a)e.$message.error("请完整填写津贴相关信息");else{e.visible=!1,e.spinning=!0;var i=Object(r["a"])({},n,{"date-picker":n["date-picker"].format("YYYY-MM-DD")}),s={endTime:"".concat(i["date-picker"]," 23:59:59"),grantNumber:e.grantNumber};o["a"].post("/mingpay/v1/isv/account/update_coupon_record",s).then(function(e){0===e.data.resultCode?(t.allowanceDetails.endTime="".concat(i["date-picker"]," 23:59:59"),t.spinning=!t.spinning,t.$message.success("修改成功")):t.$message.error("修改失败")})}})}}},u=l,d=(a("e1df"),a("2877")),f=Object(d["a"])(u,n,i,!1,null,"aa5d9154",null);t["default"]=f.exports},"85f2":function(e,t,a){e.exports=a("454f")},a4bb:function(e,t,a){e.exports=a("8aae")},a9f8:function(e,t,a){},bf90:function(e,t,a){var n=a("36c3"),i=a("bf0b").f;a("ce7e")("getOwnPropertyDescriptor",function(){return function(e,t){return i(n(e),t)}})},cebc:function(e,t,a){"use strict";var n=a("268f"),i=a.n(n),r=a("e265"),o=a.n(r),s=a("a4bb"),c=a.n(s),l=a("85f2"),u=a.n(l);function d(e,t,a){return t in e?u()(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function f(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{},n=c()(a);"function"===typeof o.a&&(n=n.concat(o()(a).filter(function(e){return i()(a,e).enumerable}))),n.forEach(function(t){d(e,t,a[t])})}return e}a.d(t,"a",function(){return f})},e1df:function(e,t,a){"use strict";var n=a("a9f8"),i=a.n(n);i.a},e265:function(e,t,a){e.exports=a("ed33")},ed33:function(e,t,a){a("014b"),e.exports=a("584a").Object.getOwnPropertySymbols},fde4:function(e,t,a){a("bf90");var n=a("584a").Object;e.exports=function(e,t){return n.getOwnPropertyDescriptor(e,t)}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fb6b8140"],{"0d5e":function(e,t,a){"use strict";a.d(t,"a",function(){return g});var s,n=a("7f43"),r=a.n(n),c=a("4328"),o=a.n(c),i=a("9f82"),u=a("f64c"),l="https://gateway.mingwork.com";r.a.interceptors.request.use(function(e){var t=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in")-3e5;return t?(e.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),e):new Promise(function(e,t){Object(i["c"])().then(function(e){console.log("res",e)}).catch(function(e){console.log(e)})})},function(e){return s.close(),Promise.reject(e)}),r.a.interceptors.response.use(function(e){return Promise.resolve(e)},function(e){return new Promise(function(t,a){if(console.log(e),e&&e.response)switch(e.response.status){case 401:u["a"].error("网络异常请重试"),Object(i["c"])().then(function(a){console.log("refreshToken1",a),t(e)});break;case 426:u["a"].error("网络异常请重试"),Object(i["a"])().then(function(a){t(e)});break;case 504:u["a"].error("系统异常"),t(e);break;case 500:u["a"].error("系统繁忙"),t(e);break;default:u["a"].error("未知问题"),t(e),a(new Error(e))}else u["a"].error("未知问题"),t(e)})});var g={post:function(e,t){return new Promise(function(a,s){var n=void 0===t?"":t;r.a.post("".concat(l).concat(e),n,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(e){return a(e)})})},get:function(e,t){return new Promise(function(a,s){var n=void 0===t?"":o.a.stringify(t);r.a.get("".concat(l).concat(e,"?").concat(n)).then(function(e){return a(e)})})}}},"1b3d":function(e,t,a){},c775:function(e,t,a){"use strict";var s=a("1b3d"),n=a.n(s);n.a},d79d:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"cashierManagement"},[a("a-button",{staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:e.choosePeople}},[e._v("添加管理员")]),e.searchSource.UserMessage.emplId?a("div",{staticClass:"searchUserMessage"},[a("div",{staticClass:"positionDiv"}),a("div",{staticClass:"clearUserMessage"},[a("a",{attrs:{href:"javascript:;"},on:{click:e.clearUserMessage}},[e._v("清除")])]),e.searchSource.UserMessage.avatar?a("img",{attrs:{src:e.searchSource.UserMessage.avatar,alt:e.searchSource.UserMessage.name}}):a("img",{attrs:{src:this.avatarCanvasFn(e.searchSource.UserMessage.name),alt:e.searchSource.UserMessage.name}}),a("span",[e._v(e._s(e.searchSource.UserMessage.name))])]):e._e(),a("a-table",{attrs:{columns:e.columns,dataSource:e.cashierManagementList,size:"default",rowKey:"id",pagination:e.pagination},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,s,n){return a("span",{},["0"===s.status?a("a",{attrs:{href:"javascript:;"},on:{click:function(a){return e.showModel(s,t,n)}}},[e._v("删除")]):a("a",{staticStyle:{color:"#cccccc"},attrs:{href:"javascript:;"}},[e._v("已删除")])])}}])},[a("span",{attrs:{slot:"name"},slot:"name"},[e._v("成员")]),a("span",{attrs:{slot:"createDate"},slot:"createDate"},[e._v("时间")])])],1)},n=[],r=(a("7f7f"),a("da71")),c=a("0d5e"),o={name:"cashierManagement",data:function(){return{searchSource:{UserMessage:{avatar:"",emplId:"",name:""},status:"",agentId:""},columns:[{title:"成员",dataIndex:"name"},{title:"时间",dataIndex:"createDate"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"}}],cashierManagementList:[],pagination:{current:1,defaultCurrent:1,defaultPageSize:10,hideOnSinglePage:!0,total:0}}},watch:{},computed:{},created:function(){this.getCashierList()},methods:{showModel:function(e,t,a){var s=this;this.$confirm({title:"确认要删除该管理员吗?",content:"删除后,该人员无法在后台管理系统上登录",okText:"确定",cancelText:"取消",onOk:function(){s.deleteCashier(e)}})},deleteCashier:function(e){var t=this,a={ddUserId:e.userId,cashierStatus:"1",userType:"1",id:e.id};c["a"].get("/mingpay/v1/isv/cashier/delete_cashier",a).then(function(e){0===e.data.resultCode?(t.$message.success("操作成功"),t.getCashierList()):t.$message.error(e.data.message)}).catch(function(){t.$message.error("删除失败")})},getCashierList:function(){var e=this,t={pageNumber:this.pagination.defaultPageSize,currentPage:this.pagination.current,userType:"1"};c["a"].get("/mingpay/v1/isv/cashier/list_cashier",t).then(function(t){e.pagination.total=parseInt(t.data.data.total),e.cashierManagementList=t.data.data.list}).catch(function(){e.$message.error("获取收银员信息失败")})},createTimeToStr:function(e){var t=new Date(parseInt(e)),a=t.getFullYear(),s=t.getMonth()+1,n=t.getDate(),r=t.getHours(),c=t.getMinutes();return"".concat(a,"年").concat(s,"月").concat(n,"日 ").concat(r,":").concat(c)},choosePeople:function(){var e=this;r["a"].ddready("ddchooseOne").then(function(t){var a={cashierName:t[0].name,ddUserId:t[0].emplId,cashierStatus:"0",userType:"1"};c["a"].get("/mingpay/v1/isv/cashier/insert_cashier",a).then(function(t){0===t.data.resultCode?(e.$message.success("添加成功"),e.getCashierList()):e.$message.error(t.data.message)}).catch(function(t){e.$message.error("网络异常请重试"),console.log(t)})})},handleTableChange:function(e,t,a){this.pagination.current=e.current,this.getCashierList()}}},i=o,u=(a("c775"),a("2877")),l=Object(u["a"])(i,s,n,!1,null,"34c914ad",null);t["default"]=l.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fb6b8140"],{"0d5e":function(e,t,a){"use strict";a.d(t,"a",function(){return g});var s,n=a("7f43"),r=a.n(n),c=a("4328"),o=a.n(c),i=a("9f82"),u=a("f64c"),l="https://gateway.mingwork.com";r.a.interceptors.request.use(function(e){var t=(new Date).getTime()-localStorage.getItem("start_time_".concat(localStorage.getItem("orgId")))<localStorage.getItem("expires_in_".concat(localStorage.getItem("orgId")))-3e5;return t?(e.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token_".concat(localStorage.getItem("orgId")))),e):new Promise(function(e,t){Object(i["c"])().then(function(e){console.log("res",e)}).catch(function(e){console.log(e)})})},function(e){return s.close(),Promise.reject(e)}),r.a.interceptors.response.use(function(e){return Promise.resolve(e)},function(e){return new Promise(function(t,a){if(console.log(e),e&&e.response)switch(e.response.status){case 401:u["a"].error("网络异常请重试"),Object(i["c"])().then(function(a){console.log("refreshToken1",a),t(e)});break;case 426:u["a"].error("网络异常请重试"),Object(i["a"])().then(function(a){t(e)});break;case 504:u["a"].error("系统异常"),t(e);break;case 500:u["a"].error("系统繁忙"),t(e);break;default:u["a"].error("未知问题"),t(e),a(new Error(e))}else u["a"].error("未知问题"),t(e)})});var g={post:function(e,t){return new Promise(function(a,s){var n=void 0===t?"":t;r.a.post("".concat(l).concat(e),n,{headers:{"Content-Type":"application/json; charset=UTF-8"}}).then(function(e){return a(e)})})},get:function(e,t){return new Promise(function(a,s){var n=void 0===t?"":o.a.stringify(t);r.a.get("".concat(l).concat(e,"?").concat(n)).then(function(e){return a(e)})})}}},"1b3d":function(e,t,a){},c775:function(e,t,a){"use strict";var s=a("1b3d"),n=a.n(s);n.a},d79d:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"cashierManagement"},[a("a-button",{staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:e.choosePeople}},[e._v("添加管理员")]),e.searchSource.UserMessage.emplId?a("div",{staticClass:"searchUserMessage"},[a("div",{staticClass:"positionDiv"}),a("div",{staticClass:"clearUserMessage"},[a("a",{attrs:{href:"javascript:;"},on:{click:e.clearUserMessage}},[e._v("清除")])]),e.searchSource.UserMessage.avatar?a("img",{attrs:{src:e.searchSource.UserMessage.avatar,alt:e.searchSource.UserMessage.name}}):a("img",{attrs:{src:this.avatarCanvasFn(e.searchSource.UserMessage.name),alt:e.searchSource.UserMessage.name}}),a("span",[e._v(e._s(e.searchSource.UserMessage.name))])]):e._e(),a("a-table",{attrs:{columns:e.columns,dataSource:e.cashierManagementList,size:"default",rowKey:"id",pagination:e.pagination},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,s,n){return a("span",{},["0"===s.status?a("a",{attrs:{href:"javascript:;"},on:{click:function(a){return e.showModel(s,t,n)}}},[e._v("删除")]):a("a",{staticStyle:{color:"#cccccc"},attrs:{href:"javascript:;"}},[e._v("已删除")])])}}])},[a("span",{attrs:{slot:"name"},slot:"name"},[e._v("成员")]),a("span",{attrs:{slot:"createDate"},slot:"createDate"},[e._v("时间")])])],1)},n=[],r=(a("7f7f"),a("da71")),c=a("0d5e"),o={name:"cashierManagement",data:function(){return{searchSource:{UserMessage:{avatar:"",emplId:"",name:""},status:"",agentId:""},columns:[{title:"成员",dataIndex:"name"},{title:"时间",dataIndex:"createDate"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"}}],cashierManagementList:[],pagination:{current:1,defaultCurrent:1,defaultPageSize:10,hideOnSinglePage:!0,total:0}}},watch:{},computed:{},created:function(){this.getCashierList()},methods:{showModel:function(e,t,a){var s=this;this.$confirm({title:"确认要删除该管理员吗?",content:"删除后,该人员无法在后台管理系统上登录",okText:"确定",cancelText:"取消",onOk:function(){s.deleteCashier(e)}})},deleteCashier:function(e){var t=this,a={ddUserId:e.userId,cashierStatus:"1",userType:"1",id:e.id};c["a"].get("/mingpay/v1/isv/cashier/delete_cashier",a).then(function(e){0===e.data.resultCode?(t.$message.success("操作成功"),t.getCashierList()):t.$message.error(e.data.message)}).catch(function(){t.$message.error("删除失败")})},getCashierList:function(){var e=this,t={pageNumber:this.pagination.defaultPageSize,currentPage:this.pagination.current,userType:"1"};c["a"].get("/mingpay/v1/isv/cashier/list_cashier",t).then(function(t){e.pagination.total=parseInt(t.data.data.total),e.cashierManagementList=t.data.data.list}).catch(function(){e.$message.error("获取收银员信息失败")})},createTimeToStr:function(e){var t=new Date(parseInt(e)),a=t.getFullYear(),s=t.getMonth()+1,n=t.getDate(),r=t.getHours(),c=t.getMinutes();return"".concat(a,"年").concat(s,"月").concat(n,"日 ").concat(r,":").concat(c)},choosePeople:function(){var e=this;r["a"].ddready("ddchooseOne").then(function(t){var a={cashierName:t[0].name,ddUserId:t[0].emplId,cashierStatus:"0",userType:"1"};c["a"].get("/mingpay/v1/isv/cashier/insert_cashier",a).then(function(t){0===t.data.resultCode?(e.$message.success("添加成功"),e.getCashierList()):e.$message.error(t.data.message)}).catch(function(t){e.$message.error("网络异常请重试"),console.log(t)})})},handleTableChange:function(e,t,a){this.pagination.current=e.current,this.getCashierList()}}},i=o,u=(a("c775"),a("2877")),l=Object(u["a"])(i,s,n,!1,null,"34c914ad",null);t["default"]=l.exports}}]);
\ No newline at end of file
......@@ -7,7 +7,7 @@ let loadingInstance // 创建Loading 的实例
// 配置发送请求前的拦截器,设置token信息
axios.interceptors.request.use((config) => {
// loading开始loadingInstance.start()
let isRefreshToken = new Date().getTime() - localStorage.getItem(`start_time_${localStorage.getItem('orgId')}`) < localStorage.getItem('expires_in') - 5 * 60 * 1000
let isRefreshToken = new Date().getTime() - localStorage.getItem(`start_time_${localStorage.getItem('orgId')}`) < localStorage.getItem(`expires_in_${localStorage.getItem('orgId')}`) - 5 * 60 * 1000
if (isRefreshToken) {
config.headers['Authorization'] = `Bearer ${localStorage.getItem(`access_token_${localStorage.getItem('orgId')}`)}`
return config
......
......@@ -107,7 +107,7 @@ function getToken () {
// 刷新token接口
function refreshToken () {
let loginData = qs.stringify({
refresh_token: localStorage.getItem('refresh_token'),
refresh_token: localStorage.getItem(`refresh_token_${localStorage.getItem('orgId')}`),
grant_type: 'refresh_token'
})
return new Promise((resolve, reject) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment