Commit 2df7cb65 by liang ce

操作人人员修改

parent 3d9cbc8f
.searchBox[data-v-851ed572]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:20px}.searchBox>input[data-v-851ed572]{margin-right:20px;max-width:180px}.operationTable a[data-v-851ed572]{margin-right:8px}.searchUserMessage[data-v-851ed572]{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:12px;padding:8px 8px;border:1px solid #ccc;margin-bottom:15px;border-radius:8px;position:relative}.searchUserMessage img[data-v-851ed572]{width:32px;height:32px;border-radius:50%;margin-bottom:8px}.positionDiv[data-v-851ed572]{height:12px;width:12px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-left:1px solid #ccc;border-top:1px solid #ccc;position:absolute;top:-7px;left:30px;background:#fff;z-index:99}.clearUserMessage[data-v-851ed572]{position:absolute;right:10px}.userListBox[data-v-851ed572]{text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex}.userListBox>div>img[data-v-851ed572]{display:block;text-align:center}.choosePeople[data-v-851ed572]{line-height:32px;width:120px;margin-right:20px;padding-left:11px;height:32px;border:1px solid #d9d9d9;border-radius:4px;color:#bfbfbf;cursor:pointer}.choosePeople[data-v-851ed572]:hover{border:1px solid #1890ff}.deptModel[data-v-851ed572]{background:#f2f0f0;margin:5px 0;margin-right:5px;padding:2px 4px;border-radius:3px;line-height:2}.ant-table-tbody>tr:hover .deptModel[data-v-851ed572]{background:#caeeff}.ant-popover-inner-content>p[data-v-851ed572]{margin:0}
\ No newline at end of file
.searchBox[data-v-2dcdf518]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:20px}.searchBox>input[data-v-2dcdf518]{margin-right:20px;max-width:180px}.operationTable a[data-v-2dcdf518]{margin-right:8px}.searchUserMessage[data-v-2dcdf518]{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:12px;padding:8px 8px;border:1px solid #ccc;margin-bottom:15px;border-radius:8px;position:relative}.searchUserMessage img[data-v-2dcdf518]{width:32px;height:32px;border-radius:50%;margin-bottom:8px}.positionDiv[data-v-2dcdf518]{height:12px;width:12px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-left:1px solid #ccc;border-top:1px solid #ccc;position:absolute;top:-7px;left:30px;background:#fff;z-index:99}.clearUserMessage[data-v-2dcdf518]{position:absolute;right:10px}.userListBox[data-v-2dcdf518]{text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex}.userListBox>div>img[data-v-2dcdf518]{display:block;text-align:center}.choosePeople[data-v-2dcdf518]{line-height:32px;width:120px;margin-right:20px;padding-left:11px;height:32px;border:1px solid #d9d9d9;border-radius:4px;color:#bfbfbf;cursor:pointer}.choosePeople[data-v-2dcdf518]:hover{border:1px solid #1890ff}.deptModel[data-v-2dcdf518]{background:#f2f0f0;margin:5px 0;margin-right:5px;padding:2px 4px;border-radius:3px;line-height:2}.ant-table-tbody>tr:hover .deptModel[data-v-2dcdf518]{background:#caeeff}.ant-popover-inner-content>p[data-v-2dcdf518]{margin:0}
\ No newline at end of file
.searchBox[data-v-082ed551]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:20px}.searchBox>input[data-v-082ed551]{margin-right:20px;max-width:180px}.operationTable a[data-v-082ed551]{margin-right:8px}.searchUserMessage[data-v-082ed551]{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:12px;padding:8px 8px;border:1px solid #ccc;margin-bottom:15px;border-radius:8px;position:relative}.searchUserMessage img[data-v-082ed551]{width:32px;height:32px;border-radius:50%;margin-bottom:8px}.positionDiv[data-v-082ed551]{height:12px;width:12px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-left:1px solid #ccc;border-top:1px solid #ccc;position:absolute;top:-7px;left:30px;background:#fff;z-index:99}.clearUserMessage[data-v-082ed551]{position:absolute;right:10px}.peopleBox[data-v-082ed551]{width:100%;border:1px solid #d9d9d9;min-height:40px;border-radius:4px;padding:4px 11px;font-size:14px;line-height:1.5;cursor:pointer}
\ No newline at end of file
.searchBox[data-v-7f09b024]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:20px}.searchBox>input[data-v-7f09b024]{margin-right:20px;max-width:180px}.operationTable a[data-v-7f09b024]{margin-right:8px}.searchUserMessage[data-v-7f09b024]{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:12px;padding:8px 8px;border:1px solid #ccc;margin-bottom:15px;border-radius:8px;position:relative}.searchUserMessage img[data-v-7f09b024]{width:32px;height:32px;border-radius:50%;margin-bottom:8px}.positionDiv[data-v-7f09b024]{height:12px;width:12px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-left:1px solid #ccc;border-top:1px solid #ccc;position:absolute;top:-7px;left:30px;background:#fff;z-index:99}.clearUserMessage[data-v-7f09b024]{position:absolute;right:10px}.userListBox[data-v-7f09b024]{text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex}.userListBox>div>img[data-v-7f09b024]{display:block;text-align:center}.choosePeople[data-v-7f09b024]{line-height:32px;width:120px;margin-right:20px;padding-left:11px;height:32px;border:1px solid #d9d9d9;border-radius:4px;color:#bfbfbf;cursor:pointer}.choosePeople[data-v-7f09b024]:hover{border:1px solid #1890ff}.deptModel[data-v-7f09b024]{background:#f2f0f0;margin:5px 0;margin-right:5px;padding:2px 4px;border-radius:3px;line-height:2}.ant-table-tbody>tr:hover .deptModel[data-v-7f09b024]{background:#caeeff}.ant-popover-inner-content>p[data-v-7f09b024]{margin:0}.mingPayOrderDetailItem[data-v-7f09b024]{display:-webkit-box;display:-ms-flexbox;display:flex;width:190px;margin:15px 0}.mingPayOrderDetailItem>div[data-v-7f09b024]:first-of-type{width:40px;height:40px;overflow:hidden}.mingPayOrderDetailItem>div:first-of-type img[data-v-7f09b024]{width:40px;height:40px;display:block}.mingPayOrderDetailItem>div[data-v-7f09b024]:nth-of-type(2){height:40px;width:80px;font-size:14px;margin-left:10px}.mingPayOrderDetailItem>div:nth-of-type(2) div[data-v-7f09b024]:first-of-type{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:80px;color:#000}.mingPayOrderDetailItem>div:nth-of-type(2) div[data-v-7f09b024]:nth-of-type(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:80px;color:#868686;font-size:12px}.mingPayOrderDetailItem>div[data-v-7f09b024]:nth-of-type(3){height:40px;text-align:right;-webkit-box-flex:1;-ms-flex:1;flex:1;color:#000}
\ No newline at end of file
(function(e){function t(t){for(var a,c,s=t[0],i=t[1],u=t[2],d=0,f=[];d<s.length;d++)c=s[d],o[c]&&f.push(o[c][0]),o[c]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);l&&l(t);while(f.length)f.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],a=!0,c=1;c<n.length;c++){var s=n[c];0!==o[s]&&(a=!1)}a&&(r.splice(t--,1),e=i(i.s=n[0]))}return e}var a={},c={app:0},o={app:0},r=[];function s(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-13ec64c5":"545051af","chunk-28723f13":"9d3648f3","chunk-331ae0d2":"bc6cda3b","chunk-3599003e":"6b850e19","chunk-3f3336d0":"11686916","chunk-42323b98":"ca0331ff","chunk-4ba7f26b":"1ce70aaf","chunk-570f9528":"101eb842","chunk-58a22374":"2f60b6ca","chunk-6658342b":"9ac333d0","chunk-6cec962d":"9d1d8c12","chunk-7026f433":"fd15ca11","chunk-a0a95438":"72da1f1d","chunk-b788ccac":"88698cc7","chunk-d04df21a":"4097ae13","chunk-dd9fcb10":"a5087450","chunk-edd53178":"aba41c0f","chunk-edd5b888":"518109f4","chunk-f6a8003a":"7bcc19e3","chunk-fb6b8140":"2d2d96c4"}[e]+".js"}function i(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t=[],n={"chunk-13ec64c5":1,"chunk-28723f13":1,"chunk-331ae0d2":1,"chunk-3599003e":1,"chunk-3f3336d0":1,"chunk-42323b98":1,"chunk-4ba7f26b":1,"chunk-570f9528":1,"chunk-58a22374":1,"chunk-6658342b":1,"chunk-6cec962d":1,"chunk-7026f433":1,"chunk-a0a95438":1,"chunk-d04df21a":1,"chunk-dd9fcb10":1,"chunk-edd53178":1,"chunk-edd5b888":1,"chunk-f6a8003a":1,"chunk-fb6b8140":1};c[e]?t.push(c[e]):0!==c[e]&&n[e]&&t.push(c[e]=new Promise(function(t,n){for(var a="css/"+({}[e]||e)+"."+{"chunk-13ec64c5":"52ec5803","chunk-28723f13":"90e02cb9","chunk-331ae0d2":"f532e316","chunk-3599003e":"1a62b51d","chunk-3f3336d0":"33fb771c","chunk-42323b98":"64f24c7d","chunk-4ba7f26b":"8079c706","chunk-570f9528":"289dca7b","chunk-58a22374":"bf3cd3b1","chunk-6658342b":"d8c3d9b5","chunk-6cec962d":"698e1e67","chunk-7026f433":"625e47b3","chunk-a0a95438":"3fbca111","chunk-b788ccac":"31d6cfe0","chunk-d04df21a":"6f8b801f","chunk-dd9fcb10":"6109af67","chunk-edd53178":"611b074a","chunk-edd5b888":"7ba8d7af","chunk-f6a8003a":"e681c11c","chunk-fb6b8140":"5661c4ec"}[e]+".css",o=i.p+a,r=document.getElementsByTagName("link"),s=0;s<r.length;s++){var u=r[s],d=u.getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(d===a||d===o))return t()}var f=document.getElementsByTagName("style");for(s=0;s<f.length;s++){u=f[s],d=u.getAttribute("data-href");if(d===a||d===o)return t()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=t,l.onerror=function(t){var a=t&&t.target&&t.target.src||o,r=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");r.code="CSS_CHUNK_LOAD_FAILED",r.request=a,delete c[e],l.parentNode.removeChild(l),n(r)},l.href=o;var h=document.getElementsByTagName("head")[0];h.appendChild(l)}).then(function(){c[e]=0}));var a=o[e];if(0!==a)if(a)t.push(a[2]);else{var r=new Promise(function(t,n){a=o[e]=[t,n]});t.push(a[2]=r);var u,d=document.createElement("script");d.charset="utf-8",d.timeout=120,i.nc&&d.setAttribute("nonce",i.nc),d.src=s(e),u=function(t){d.onerror=d.onload=null,clearTimeout(f);var n=o[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src,r=new Error("Loading chunk "+e+" failed.\n("+a+": "+c+")");r.type=a,r.request=c,n[1](r)}o[e]=void 0}};var f=setTimeout(function(){u({type:"timeout",target:d})},12e4);d.onerror=d.onload=u,document.head.appendChild(d)}return Promise.all(t)},i.m=e,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],d=u.push.bind(u);u.push=t,u=u.slice();for(var f=0;f<u.length;f++)t(u[f]);var l=d;r.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"3d0e":function(e,t,n){},"41cb":function(e,t,n){"use strict";var a=n("2b0e"),c=n("8c4f"),o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-layout",{attrs:{id:"components-layout-demo-top-side"}},[a("a-layout-header",{staticClass:"header"},[a("div",{staticClass:"logo"},[a("img",{attrs:{src:n("cf05")}})]),a("a-menu",{style:{lineHeight:"64px"},attrs:{theme:"light",mode:"horizontal",defaultSelectedKeys:[e.defaultSelectedKeys]},on:{click:e.routerPush}},[a("a-menu-item",{key:"accountManagement"},[e._v("支付管理")]),a("a-menu-item",{key:"classificationOfDishes"},[e._v("食堂管理")])],1)],1),a("a-layout-content",{staticStyle:{padding:"16px 50px 0px 50px"}},[a("router-view")],1),a("a-layout-footer",{staticStyle:{"text-align":"center"}},[e._v("\n mingwork后台管理系统\n ")])],1)},r=[],s=(n("7f7f"),n("28a5"),{name:"home",components:{},data:function(){return{title:[],defaultSelectedKeys:"accountManagement"}},created:function(){this.title=this.$route.meta.title?this.$route.meta.title.split("/"):"",this.defaultSelectedKeys=this.$route.matched[2].name?this.$route.matched[2].name:""},watch:{$route:function(e,t){this.title=e.meta.title.split("/"),this.defaultSelectedKeys=this.$route.matched[1].name?this.$route.matched[1].name:""}},computed:{},methods:{routerPush:function(e){this.$router.push({name:e.key})}},mounted:function(){}}),i=s,u=(n("7db4"),n("2877")),d=Object(u["a"])(i,o,r,!1,null,null,null),f=d.exports;a["a"].use(c["a"]);t["a"]=new c["a"]({routes:[{path:"/",redirect:"/dashboard"},{path:"/home",name:"home",component:f,children:[{path:"/dashboard",name:"dashboard",component:function(e){return n.e("chunk-dd9fcb10").then(function(){var t=[n("63f0")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/paymentManagementHome",name:"paymentManagementHome",component:function(e){return n.e("chunk-570f9528").then(function(){var t=[n("6445")];e.apply(null,t)}.bind(this)).catch(n.oe)},children:[{path:"/accountManagement",name:"accountManagement",meta:{title:"支付管理/账户中心"},component:function(e){return n.e("chunk-f6a8003a").then(function(){var t=[n("217e")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/cashierManagement",name:"cashierManagement",meta:{title:"支付管理/设置收银员"},component:function(e){return n.e("chunk-28723f13").then(function(){var t=[n("67f4")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/SetAdministrators",name:"SetAdministrators",meta:{title:"支付管理/设置管理员"},component:function(e){return n.e("chunk-fb6b8140").then(function(){var t=[n("d79d")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/allowancePayment",name:"allowancePayment",meta:{title:"支付管理/津贴发放"},component:function(e){return n.e("chunk-a0a95438").then(function(){var t=[n("7ae4")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/operationLog",name:"operationLog",meta:{title:"支付管理/操作日志"},component:function(e){return n.e("chunk-b788ccac").then(function(){var t=[n("8607")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/rechargeRecord",name:"rechargeRecord",meta:{title:"支付管理/充值记录"},component:function(e){return n.e("chunk-7026f433").then(function(){var t=[n("4be4")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/recordsOfConsumption",name:"recordsOfConsumption",meta:{title:"支付管理/消费记录"},component:function(e){return n.e("chunk-58a22374").then(function(){var t=[n("9274")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/systemReconciliation",name:"systemReconciliation",meta:{title:"支付管理/系统对账"},component:function(e){return n.e("chunk-13ec64c5").then(function(){var t=[n("948a")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/viewAllowances",name:"viewAllowances",meta:{title:"支付管理/账户中心/查看津贴"},component:function(e){return n.e("chunk-6cec962d").then(function(){var t=[n("b2ca")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/allowanceDetails",name:"allowanceDetails",meta:{title:"支付管理/津贴发放/津贴详情"},component:function(e){return n.e("chunk-edd5b888").then(function(){var t=[n("7e42")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/paymentManagementSetting",name:"paymentManagementSetting",meta:{title:"支付管理/设置中心"},component:function(e){return n.e("chunk-3f3336d0").then(function(){var t=[n("7aeb")];e.apply(null,t)}.bind(this)).catch(n.oe)}}]},{path:"/canteenManagementHome",name:"canteenManagementHome",component:function(e){return n.e("chunk-4ba7f26b").then(function(){var t=[n("22af")];e.apply(null,t)}.bind(this)).catch(n.oe)},children:[{path:"/classificationOfDishes",name:"classificationOfDishes",meta:{title:"食堂管理/菜品分类"},component:function(e){return n.e("chunk-6658342b").then(function(){var t=[n("e531")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/menuManagement",name:"menuManagement",meta:{title:"食堂管理/菜单管理"},component:function(e){return n.e("chunk-3599003e").then(function(){var t=[n("1159")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/consumptionOrder",name:"consumptionOrder",meta:{title:"食堂管理/消费订单"},component:function(e){return n.e("chunk-edd53178").then(function(){var t=[n("776a")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/consumptionStatistics",name:"consumptionStatistics",meta:{title:"食堂管理/消费统计"},component:function(e){return n.e("chunk-331ae0d2").then(function(){var t=[n("e112")];e.apply(null,t)}.bind(this)).catch(n.oe)}}]}]},{path:"/noPermission",name:"noPermission",component:function(e){return n.e("chunk-d04df21a").then(function(){var t=[n("f186")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/configError",name:"configError",component:function(e){return n.e("chunk-42323b98").then(function(){var t=[n("38e7")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/*",redirect:"/accountManagement"}]})},4678:function(e,t,n){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-SG":"cdab","./en-SG.js":"cdab","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-nz":"6f50","./en-nz.js":"6f50","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-tw":"90ea","./zh-tw.js":"90ea"};function c(e){var t=o(e);return n(t)}function o(e){var t=a[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}c.keys=function(){return Object.keys(a)},c.resolve=o,e.exports=c,c.id="4678"},"56d7":function(e,t,n){"use strict";n.r(t);n("7f7f"),n("cadf"),n("551c"),n("f751"),n("097d");var a=n("2b0e"),c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-locale-provider",{attrs:{locale:e.zh_CN}},[n("div",{attrs:{id:"app"}},[n("router-view")],1)])},o=[],r=n("677e"),s=n.n(r),i=n("c1df"),u=n.n(i);n("5c3a");u.a.locale("zh-cn");var d={data:function(){return{zh_CN:s.a}}},f=d,l=(n("7c55"),n("2877")),h=Object(l["a"])(f,c,o,!1,null,null,null),m=h.exports,p=n("41cb"),b=n("2f62");a["a"].use(b["a"]);var g=new b["a"].Store({state:{},mutations:{},actions:{}}),k=n("98c5"),j=n("39ab"),y=n("681b"),v=n("d49c"),S=n("55f1"),w=n("a071"),I=n("160c"),_=n("8592"),P=n("2fc4"),z=n("0c63"),x=n("5efb"),O=n("b558"),C=n("0020"),A=n("0bb7"),M=n("7571"),T=n("a79d"),E=n("a600"),D=n("ed3b"),U=n("3af3"),$=n("9839"),B=n("f64c"),F=n("de1b"),L=(n("202f"),n("da71"));n("aede");a["a"].use(k["a"]),a["a"].use(j["a"]),a["a"].use(y["a"]),a["a"].use(v["a"]),a["a"].use(S["a"]),a["a"].use(w["a"]),a["a"].use(I["a"]),a["a"].use(_["a"]),a["a"].use(P["a"]),a["a"].use(z["a"]),a["a"].use(x["a"]),a["a"].use(O["a"]),a["a"].use(C["a"]),a["a"].use(A["a"]),a["a"].use(M["a"]),a["a"].use(T["a"]),a["a"].use(E["a"]),a["a"].use(D["a"]),a["a"].use(U["a"]),a["a"].use($["b"]),a["a"].use(O["a"].TextArea),a["a"].use(B["a"]),a["a"].use(F["a"]),a["a"].config.productionTip=!1,a["a"].prototype.$confirm=D["a"].confirm,a["a"].prototype.$message=B["a"],p["a"].beforeEach(function(e,t,n){"noPermission"===e.name||"configError"===e.name?n():sessionStorage.getItem("isFirstAction")?n():(localStorage.setItem("orgId",e.redirectedFrom.substr(1)),L["a"].ddconfig().then(function(e){"no"===e&&n({name:"configError"})}).then(function(){L["a"].ddready("ddpermission").then(function(e){n("noPermission"===e?{name:"noPermission"}:{name:"accountManagement"})}).catch(function(e){console.log("ddpermission",e)})}).catch(function(e){console.log(e,"登录失败")}))}),new a["a"]({router:p["a"],store:g,render:function(e){return e(m)}}).$mount("#app")},"5c48":function(e,t,n){},"7c55":function(e,t,n){"use strict";var a=n("5c48"),c=n.n(a);c.a},"7db4":function(e,t,n){"use strict";var a=n("3d0e"),c=n.n(a);c.a},"9f82":function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"c",function(){return h}),n.d(t,"b",function(){return f});var a=n("2c18"),c=n("41cb"),o=n("7f43"),r=n.n(o),s=n("4328"),i=n.n(s),u=r.a.create(),d="https://gateway.mingwork.com";function f(){return new Promise(function(e,t){a["runtime"].permission.requestAuthCode({corpId:localStorage.getItem("orgId"),onSuccess:function(t){var n=i.a.stringify({code:t.code,orgId:localStorage.getItem("orgId")});return u.post("".concat(d,"/mingpay/v1/skipAuth/getUserInfoByCode?").concat(n)).then(function(t){0===t.data.resultCode?e("press"):40003===t.data.resultCode&&e(t.data.resultCode)}).catch(function(e){console.log(e)})},onFail:function(e){console.log(e)}})})}function l(){return new Promise(function(e,t){a["runtime"].permission.requestAuthCode({corpId:localStorage.getItem("orgId"),onSuccess:function(t){var n=i.a.stringify({code:t.code,orgId:localStorage.getItem("orgId")});return u.post("".concat(d,"/mingpay/v1/skipAuth/getUserInfoByCode?").concat(n)).then(function(t){if(0===t.data.resultCode){var n=t.data.data.mingUserId,a=i.a.stringify({username:n,password:n,scope:"server",grant_type:"password"});u.post("".concat(d,"/auth/oauth/token"),a,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8",Authorization:"Basic bWluZ3BheS13ZWI6bWluZ3BheS13ZWI="}}).then(function(t){localStorage.setItem("access_token",t.data.access_token),localStorage.setItem("refresh_token",t.data.refresh_token),localStorage.setItem("expires_in",1e3*t.data.expires_in),localStorage.setItem("start_time",(new Date).getTime()),e("ok")}).catch(function(){})}else 40003===t.data.resultCode&&e(t.data.resultCode)}).catch(function(e){console.log(e)})},onFail:function(e){console.log(e)}})})}function h(){var e=i.a.stringify({refresh_token:localStorage.getItem("refresh_token"),grant_type:"refresh_token"});return new Promise(function(t,n){u.post("".concat(d,"/auth/oauth/token"),e,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8",Authorization:"Basic bWluZ3BheS13ZWI6bWluZ3BheS13ZWI="}}).then(function(e){localStorage.setItem("access_token",e.data.access_token),localStorage.setItem("refresh_token",e.data.refresh_token),localStorage.setItem("expires_in",1e3*e.data.expires_in),localStorage.setItem("start_time",(new Date).getTime()),t("ok")}).catch(function(e){console.log("refreshToken",e),t(e)})})}u.interceptors.response.use(function(e){return Promise.resolve(e)},function(e){return new Promise(function(t,n){e&&401===e.response.status&&401===e.response.data.code?h():e&&426===e.response.status&&1===e.response.data.code&&l().then(function(e){40003===e&&c["a"].push({path:"/noPermission"})})})})},aede:function(e,t,n){},cf05:function(e,t,n){e.exports=n.p+"img/logo.513bf7ab.png"},da71:function(e,t,n){"use strict";n.d(t,"a",function(){return d});n("a481");var a=n("2c18"),c=n("7f43"),o=n.n(c),r=n("4328"),s=n.n(r),i=n("9f82"),u="https://gateway.mingwork.com",d={ddconfig:function(){var e=s.a.stringify({url:location.href.replace(window.location.hash,""),orgId:localStorage.getItem("orgId")});return o.a.post("".concat(u,"/mingpay/v1/skipAuth/getJsAuthenticationParameter?").concat(e)).then(function(e){var t=e.data.data.timeStamp,n=e.data.data.nonceStr,c=e.data.data.signature,o=e.data.data.agentId;a["config"]({agentId:o,corpId:localStorage.getItem("orgId"),timeStamp:t,nonceStr:n,signature:c,type:0,jsApiList:["biz.contact.choose","biz.contact.complexPicker"]}),sessionStorage.setItem("isFirstAction",!0),a["error"](function(e){return console.log("dd error: "+JSON.stringify(e)),"no"})})},ddready:function(e){return new Promise(function(t,n){a["ready"](function(){return t(d[e]())})})},ddpermission:function(){return new Promise(function(e,t){Object(i["b"])().then(function(t){if(40003===t)e("noPermission");else{var n=(new Date).getTime()-localStorage.getItem("start_time")<localStorage.getItem("expires_in")-3e5;localStorage.getItem("access_token")&&n?e("ok"):localStorage.getItem("refresh_token")?Object(i["c"])().then(function(t){"ok"===t&&e("ok")}):Object(i["a"])().then(function(t){e("noPermission"===t?"noPermission":"ok")})}})})},ddchooseOne:function(){return new Promise(function(e,t){a["biz"].contact.choose({multiple:!1,users:[],corpId:localStorage.getItem("orgId"),max:1,onSuccess:function(t){return e(t)},onFail:function(e){return t(e)}})})},ddchoose:function(){return new Promise(function(e,t){a["biz"].contact.complexPicker({title:"人员选择",corpId:localStorage.getItem("orgId"),multiple:!0,limitTips:"超出了",maxUsers:1e3,pickedUsers:[],pickedDepartments:[],disabledUsers:[],disabledDepartments:[],requiredUsers:[],requiredDepartments:[],appId:localStorage.getItem("agentId"),permissionType:"GLOBAL",responseUserOnly:!1,startWithDepartmentId:-1,onSuccess:function(t){return e(t)},onFail:function(e){return t(e)}})})}}}});
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-58a22374"],{"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"),u=a("f64c"),l="https://gateway.mingwork.com";n.a.interceptors.request.use(function(e){var t=(new Date).getTime()-localStorage.getItem("start_time")<localStorage.getItem("expires_in")-3e5;return t?(e.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token")),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:u["a"].error("网络异常请重试"),Object(c["c"])().then(function(a){console.log("refreshToken1",a),t(e)});break;case 426:u["a"].error("网络异常请重试"),Object(c["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,r){var s;void 0===t?s={orgId:localStorage.getItem("orgId")}:(s=t,s.orgId=localStorage.getItem("orgId")),n.a.post("".concat(l).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?s={orgId:localStorage.getItem("orgId")}:(s=t,s.orgId=localStorage.getItem("orgId")),s=i.a.stringify(s),n.a.get("".concat(l).concat(e,"?").concat(s)).then(function(e){return a(e)})})}}},2957:function(e,t,a){"use strict";a.d(t,"a",function(){return r}),a.d(t,"b",function(){return s}),a.d(t,"c",function(){return n}),a.d(t,"d",function(){return o});var r={ACTIVE:"ACTIVE",UNACTIVE:"UNACTIVE",LOG_OFF:"LOG_OFF",WITHDRAW:"WITHDRAW"},s={WAITING_PERMIT:"WAITING_PERMIT",SUCCESS:"SUCCESS",FAILED:"FAILED",WAITING_PAYMENT:"WAITING_PAYMENT"},n={SUCCESS:"SUCCESS",WAITING_PERMIT:"WAITING_PERMIT",REFUND_SUCCESS:"REFUND_SUCCESS"},o={SUCCESS:"SUCCESS",WAITING_PERMIT:"WAITING_PERMIT",REFUSE_PERMIT:"REFUSE_PERMIT"}},9274: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:"RecordsOfConsumption"},[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.selectHandRecords}},[a("a-select-option",{attrs:{value:"SUCCESS"}},[e._v("已消费")]),a("a-select-option",{attrs:{value:"REFUND_SUCCESS"}},[e._v("已退款")])],1),a("a-select",{staticStyle:{width:"120px","margin-right":"20px"},attrs:{placeholder:"收银员",allowClear:!0},on:{change:e.selectagent}},e._l(e.agentList,function(t){return a("a-select-option",{key:t.ddUserId,attrs:{value:t.ddUserId}},[e._v(e._s(t.name))])}),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.recordsList,size:"default",rowKey:"orderNo",pagination:e.pagination},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"departmentNameList",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.parentSysDeptNameList[s]))])]),a("span",{staticClass:"deptModel"},[e._v(e._s(t))])],2)}),1):e._e()])}},{key:"consumptionAmount",fn:function(t){return a("span",{},[e._v("\n "+e._s(t.toFixed(2))+"\n ")])}},{key:"consumptionSubsidyAmount",fn:function(t){return a("span",{},[e._v("\n "+e._s(t.toFixed(2))+"\n ")])}},{key:"orderStatus",fn:function(t){return a("span",{},[t===e.MINGPAY_RECORDS_STATUS.SUCCESS?a("a-badge",{attrs:{status:"success",text:"已消费"}}):t===e.MINGPAY_RECORDS_STATUS.WAITING_PERMIT?a("a-badge",{attrs:{status:"processing",text:"审批中"}}):a("a-badge",{attrs:{status:"error",text:"已退款"}})],1)}},{key:"createTime",fn:function(t){return a("span",{},[e._v("\n "+e._s(t)+"\n ")])}},{key:"action",fn:function(t,r,s){return a("span",{staticClass:"operationTable"},[r.orderStatus===e.MINGPAY_RECORDS_STATUS.SUCCESS?a("a",{attrs:{href:"javascript:;"},on:{click:function(a){return e.refundModal(r,t,s)}}},[e._v("退款")]):a("a",{staticStyle:{color:"#cccccc"},attrs:{href:"javascript:;"}},[e._v("退款")])])}}])},[a("span",{attrs:{slot:"userName"},slot:"userName"},[e._v("消费人")]),a("span",{attrs:{slot:"agent"},slot:"agent"},[e._v("收银员")]),a("span",{attrs:{slot:"remark"},slot:"remark"},[e._v("备注")])]),a("a-modal",{attrs:{title:"发起退款"},on:{ok:function(t){return e.refund()}},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[a("a-form",{attrs:{form:e.form}},[a("a-form-item",{attrs:{label:"退款金额","label-col":{span:5},"wrapper-col":{span:12}}},[a("a",{attrs:{href:"javascript:;"}},[e._v(e._s(parseFloat(e.refundSelect.consumptionAmount)+parseFloat(e.refundSelect.consumptionSubsidyAmount)))])]),a("a-form-item",{attrs:{label:"备注","label-col":{span:5},"wrapper-col":{span:12}}},[a("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["remark",{rules:[{required:!0,message:"备注不能为空"}]}],expression:"['remark', {rules: [{ required: true, message: '备注不能为空' }]}]"}]})],1)],1)],1)],1)},s=[],n=a("da71"),o=a("0d5e"),i=a("2957"),c={name:"recordsOfConsumption",data:function(){return{MINGPAY_RECORDS_STATUS:i["c"],visible:!1,columns:[{title:"消费人",dataIndex:"userName"},{title:"部门",dataIndex:"departmentNameList",scopedSlots:{customRender:"departmentNameList"},width:"15%"},{title:"收银员",dataIndex:"agent"},{title:"实际消费",dataIndex:"consumptionAmount",scopedSlots:{customRender:"consumptionAmount"}},{title:"津贴消费",dataIndex:"consumptionSubsidyAmount",scopedSlots:{customRender:"consumptionSubsidyAmount"}},{title:"状态",dataIndex:"orderStatus",scopedSlots:{customRender:"orderStatus"}},{title:"备注",dataIndex:"remark"},{title:"时间",dataIndex:"createTime",scopedSlots:{customRender:"createTime"}},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"}}],searchSource:{UserMessage:{avatar:"",emplId:"",name:""},status:"",agentId:""},recordsList:[],pagination:{current:1,defaultCurrent:10,defaultPageSize:10,hideOnSinglePage:!0,total:0},status:"",refundSelect:"",form:this.$form.createForm(this),agentList:[]}},created:function(){this.queryRecordList(),this.queryAgentList()},methods:{queryAgentList:function(){var e=this,t={userType:"0"};o["a"].get("/mingpay/v1/isv/cashier/list_cashier_all",t).then(function(t){e.agentList=t.data.data}).catch(function(){e.$message.error("获取操作员信息失败")})},refundModal:function(e,t,a){this.visible=!this.visible,this.refundSelect=e},search:function(){this.pagination.current=1,this.queryRecordList()},refund:function(){var e=this,t=this;if(void 0===this.form.getFieldsValue().remark)this.$message.error("请输入备注");else{var a={orderNo:this.refundSelect.orderNo,ddUserId:this.refundSelect.ddUserId,remark:this.form.getFieldsValue().remark||""};o["a"].get("/mingpay/v1/isv/consume/refund",a).then(function(a){"SUCCESS"===a.data.message?(e.$message.success("退款成功"),e.visible=!1,e.form.resetFields(),t.queryRecordList()):e.$message.error(a.data.message)}).catch(function(){e.$message.error("退款失败")})}},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},queryRecordList:function(){var e=this,t={currentPage:this.pagination.current,pageNumber:this.pagination.defaultPageSize,status:this.searchSource.status,ddUserId:this.searchSource.UserMessage.emplId,agentId:this.searchSource.agentId};o["a"].get("/mingpay/v1/isv/consume/list_expense_record",t).then(function(t){var a=t.data.data;e.recordsList=a.recordList,e.pagination.total=parseInt(a.totalCount)})},choosePeople:function(){var e=this,t=this;n["a"].ddready("ddchooseOne").then(function(a){e.searchSource.UserMessage=a[0],t.queryRecordList()})},createTimeToStr:function(e){var t=new Date(parseInt(e)),a=t.getFullYear(),r=t.getMonth()+1,s=t.getDate(),n=t.getHours(),o=t.getMinutes();return"".concat(a,"年").concat(r,"月").concat(s,"日 ").concat(n,":").concat(o)},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},handleTableChange:function(e,t,a){this.pagination.current=e.current,this.queryRecordList()},selectHandRecords:function(e){this.searchSource.status=e},selectagent:function(e){this.searchSource.agentId=e}}},u=c,l=(a("e39c"),a("2877")),d=Object(l["a"])(u,r,s,!1,null,"851ed572",null);t["default"]=d.exports},e39c:function(e,t,a){"use strict";var r=a("f2bf"),s=a.n(r);s.a},f2bf: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 r,n=a("7f43"),s=a.n(n),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")<localStorage.getItem("expires_in")-3e5;return t?(e.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token")),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 r.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,r){var n;void 0===t?n={orgId:localStorage.getItem("orgId")}:(n=t,n.orgId=localStorage.getItem("orgId")),s.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,r){var n;void 0===t?n={orgId:localStorage.getItem("orgId")}:(n=t,n.orgId=localStorage.getItem("orgId")),n=c.a.stringify(n),s.a.get("".concat(l).concat(e,"?").concat(n)).then(function(e){return a(e)})})}}},2957:function(e,t,a){"use strict";a.d(t,"a",function(){return r}),a.d(t,"b",function(){return n}),a.d(t,"c",function(){return s}),a.d(t,"d",function(){return o});var r={ACTIVE:"ACTIVE",UNACTIVE:"UNACTIVE",LOG_OFF:"LOG_OFF",WITHDRAW:"WITHDRAW"},n={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 r=a("df09"),n=a.n(r);n.a},"4be4":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:"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,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:"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,r){return a("span",{},[t&&t.length>0?a("div",e._l(t,function(t,n){return a("a-popover",{key:n},[a("template",{slot:"content"},[a("p",[e._v(e._s(r.parentSysDeptNameList[n]))])]),a("span",{staticClass:"deptModel"},[e._v(e._s(t))])],2)}),1):e._e()])}},{key:"agent",fn:function(t,r){return a("span",{},[e._v("\n "+e._s(""===t&&"EXTERNAL_ALI_RECHAGE"===r.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)},n=[],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"),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.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,r,n,!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-a0a95438"],{"0d5e":function(e,t,a){"use strict";a.d(t,"a",function(){return d});var n,r=a("7f43"),o=a.n(r),i=a("4328"),s=a.n(i),c=a("9f82"),l=a("f64c"),u="https://gateway.mingwork.com";o.a.interceptors.request.use(function(e){var t=(new Date).getTime()-localStorage.getItem("start_time")<localStorage.getItem("expires_in")-3e5;return t?(e.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token")),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)}),o.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 r;void 0===t?r={orgId:localStorage.getItem("orgId")}:(r=t,r.orgId=localStorage.getItem("orgId")),o.a.post("".concat(u).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?r={orgId:localStorage.getItem("orgId")}:(r=t,r.orgId=localStorage.getItem("orgId")),r=s.a.stringify(r),o.a.get("".concat(u).concat(e,"?").concat(r)).then(function(e){return a(e)})})}}},"268f":function(e,t,a){e.exports=a("fde4")},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 o}),a.d(t,"d",function(){return i});var n={ACTIVE:"ACTIVE",UNACTIVE:"UNACTIVE",LOG_OFF:"LOG_OFF",WITHDRAW:"WITHDRAW"},r={WAITING_PERMIT:"WAITING_PERMIT",SUCCESS:"SUCCESS",FAILED:"FAILED",WAITING_PAYMENT:"WAITING_PAYMENT"},o={SUCCESS:"SUCCESS",WAITING_PERMIT:"WAITING_PERMIT",REFUND_SUCCESS:"REFUND_SUCCESS"},i={SUCCESS:"SUCCESS",WAITING_PERMIT:"WAITING_PERMIT",REFUSE_PERMIT:"REFUSE_PERMIT"}},"7ae4":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("a-spin",{attrs:{spinning:e.spinning,delay:e.delayTime}},[a("div",{staticClass:"AllowancePayment"},[a("div",{staticClass:"searchBox"},[a("div",{staticStyle:{width:"75px"}},[e._v("截止时间:")]),a("a-date-picker",{staticStyle:{},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"}}),a("div",[e._v("~")]),a("a-date-picker",{staticStyle:{},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"}}),a("a-select",{staticStyle:{width:"100px","margin-left":"15px"},attrs:{placeholder:"津贴类型",allowClear:!0},on:{change:e.selectHandType}},[a("a-select-option",{attrs:{value:"TRAVEL"}},[e._v("交通补助")]),a("a-select-option",{attrs:{value:"MEAL"}},[e._v("餐补")])],1),a("a-select",{staticStyle:{width:"100px","margin-left":"15px"},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-button",{staticStyle:{"margin-left":"15px"},attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")]),a("a-button",{staticStyle:{"margin-left":"15px"},attrs:{type:"primary"},on:{click:function(t){return e.changeModel()}}},[a("a-icon",{attrs:{type:"pay-circle"}}),e._v("发放津贴")],1)],1),a("a-table",{attrs:{columns:e.columns,dataSource:e.recordsList,size:"default",rowKey:"grantNumber",pagination:e.pagination},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"money",fn:function(t){return a("span",{},[e._v("\n "+e._s(t.toFixed(2))+"\n ")])}},{key:"type",fn:function(t){return a("span",{},[e._v(e._s("TRAVEL"===t?"交通补助":"餐补"))])}},{key:"endTime",fn:function(t){return a("span",{},[e._v("\n "+e._s(t.split(" ")[0])+"\n ")])}},{key:"couponRecordStatus",fn:function(t){return a("span",{},[t===e.MINGPAY_SUBSIDY_STATUS.WAITING_PERMIT?a("a-badge",{attrs:{status:"processing",text:"审批中"}}):t===e.MINGPAY_SUBSIDY_STATUS.SUCCESS?a("a-badge",{attrs:{status:"success",text:"已完成"}}):t===e.MINGPAY_SUBSIDY_STATUS.REFUSE_PERMIT?a("a-badge",{attrs:{status:"error",text:"审批未通过"}}):e._e()],1)}},{key:"action",fn:function(t,n,r){return a("span",{staticClass:"operationTable"},[a("a",{attrs:{href:"javascript:;"},on:{click:function(a){return e.toAllowanceDetails(n,t,r)}}},[e._v("查看详情")])])}}])},[a("span",{attrs:{slot:"recipient"},slot:"recipient"},[e._v("成员")]),a("span",{attrs:{slot:"agentId"},slot:"agentId"},[e._v("经办人")]),a("span",{attrs:{slot:"remark"},slot:"remark"},[e._v("备注")])]),a("a-modal",{attrs:{title:"发放津贴"},on:{ok:function(t){return e.createSubsidy()}},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[a("a-form",{attrs:{form:e.form}},[a("a-form-item",e._b({attrs:{label:"发放类型","has-feedback":""}},"a-form-item",e.formItemLayout,!1),[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["select",{rules:[{required:!0,message:" 津贴类型"}]}],expression:"[\n 'select',\n {rules: [{ required: true, message: ' 津贴类型' }]}\n ]"}],attrs:{placeholder:"请选择津贴类型"}},[a("a-select-option",{attrs:{value:"TRAVEL"}},[e._v("\n 交通补助\n ")]),a("a-select-option",{attrs:{value:"MEAL"}},[e._v("\n 餐补\n ")])],1)],1),a("a-form-item",e._b({attrs:{label:"发放金额"}},"a-form-item",e.formItemLayout,!1),[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderPrice",{rules:[{required:!0,message:"充值金额不能为空"},{validator:e.rechargeNum}]}],expression:"['orderPrice',{rules: [{required: true, message: '充值金额不能为空'}, {validator: rechargeNum}]}]"}]})],1),a("a-form-item",e._b({attrs:{label:"截止日期"}},"a-form-item",e.formItemLayout,!1),[a("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),a("a-form-item",e._b({attrs:{label:"选择成员"}},"a-form-item",e.formItemLayout,!1),[a("div",{staticClass:"peopleBox",on:{click:function(t){return e.choosePeople()}}},[e._v("\n "+e._s(e.peopleListStr())+"\n ")])]),a("a-form-item",e._b({attrs:{label:"备注"}},"a-form-item",e.formItemLayout,!1),[a("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["remark",{rules:[{required:!0,message:"备注不能为空"}]}],expression:"['remark', {rules: [{ required: true, message: '备注不能为空' }]}]"}]})],1)],1)],1)],1)])},r=[],o=a("cebc"),i=(a("7f7f"),a("da71")),s=a("0d5e"),c=a("2957"),l=a("c1df"),u=a.n(l),d={name:"AllowancePayment",data:function(){return{MINGPAY_SUBSIDY_STATUS:c["d"],spinning:!1,delayTime:100,formItemLayout:{labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}}},columns:[{title:"成员",dataIndex:"recipient",width:"200px"},{title:"金额",dataIndex:"money",scopedSlots:{customRender:"money"}},{title:"津贴类型",dataIndex:"type",scopedSlots:{customRender:"type"}},{title:"经办人",dataIndex:"agentId"},{title:"状态",dataIndex:"couponRecordStatus",scopedSlots:{customRender:"couponRecordStatus"}},{title:"备注",dataIndex:"remark"},{title:"截止时间",dataIndex:"endTime",scopedSlots:{customRender:"endTime"}},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"}}],form:this.$form.createForm(this),visible:!1,searchSource:{UserMessage:{avatar:"",emplId:"",name:""},type:"",agentId:""},recordsList:[],pagination:{current:1,defaultCurrent:10,defaultPageSize:10,hideOnSinglePage:!0,total:0},config:{rules:[{type:"object",required:!0,message:"请选择时间"}]},userIdListObj:[],departmentIdListObj:[],agentList:[],startValue:null,endValue:null,startTime:"",endTime:"",endOpen:!1}},created:function(){this.queryCouponRecordList(),this.getAgentList()},methods:{moment:u.a,disabledStartDate:function(e){var t=this.endValue;return!(!e||!t)&&(e.valueOf()>t.valueOf()||e.valueOf()>=u()().endOf("day").valueOf())},disabledEndDate:function(e){var t=this.startValue;return!(!e||!t)&&t.valueOf()>e.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},getAgentList:function(){var e=this,t={userType:"1"};s["a"].get("/mingpay/v1/isv/cashier/list_cashier_all",t).then(function(t){e.agentList=t.data.data})},toAllowanceDetails:function(e,t,a){this.$router.push({name:"allowanceDetails",params:{allowanceDetails:e.grantNumber}})},selectAgent:function(e){this.searchSource.agentId=e},disabledDate:function(e){return console.log(u()().endOf("day")),e<u()(Date.now()).add(-1,"day")},queryCouponRecordList:function(){var e=this,t={currentPage:this.pagination.current,pageNumber:this.pagination.defaultPageSize,subsidyType:this.searchSource.type,agentId:this.searchSource.agentId,startTime:this.startTime?"".concat(this.startTime," 00:00:00"):"",endTime:this.endTime?"".concat(this.endTime," 23:59:59"):""};s["a"].get("/mingpay/v1/isv/account/list_couponRecord",t).then(function(t){var a=t.data.data;e.recordsList=a.list,e.pagination.total=parseInt(a.total)})},rechargeNum:function(e,t,a){var n=/^\d+\.?\d{0,2}$/;!n.test(t)||parseFloat(t)>1e4?a("请输入正确的金额,最多保留小数点后两位,津贴金额最多为一万元"):a()},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},handleTableChange:function(e,t,a){this.pagination.current=e.current,this.queryCouponRecordList()},selectHandType:function(e){this.searchSource.type=e},peopleListStr:function(){var e="";return this.userIdListObj.map(function(t,a){e=e+t.name+","}),this.departmentIdListObj.map(function(t,a){e=e+t.name+","}),e.substring(0,e.length-1)},createSubsidy:function(){var e=this;this.form.validateFields(function(t,a){if(t)e.$message.error("请完整填写津贴相关信息");else if(0!==e.userIdListObj.length||0!==e.departmentIdListObj.length){e.visible=!1,e.spinning=!0;var n=Object(o["a"])({},a,{"date-picker":a["date-picker"].format("YYYY-MM-DD")}),r=[],i=[];e.userIdListObj.map(function(e,t){r.push(e.emplId)}),e.departmentIdListObj.map(function(e,t){i.push(e.id)});var c={ddUserIds:r,ddDeptIds:i,money:n.orderPrice,endTime:"".concat(n["date-picker"]," 23:59:59"),remark:n.remark,subsidyEnumType:n.select};s["a"].get("/mingpay/v1/isv/account/batch_create_subsidy",c).then(function(t){0===t.data.resultCode?(e.form.resetFields(),e.userIdListObj=[],e.departmentIdListObj=[],e.spinning=!1,e.$message.success(t.data.data),e.queryCouponRecordList()):(e.spinning=!1,e.$message.error(t.data.message))})}else e.$message.error("请完整填写津贴相关信息")})},changeModel:function(){this.visible=!this.visible},choosePeople:function(){var e=this;i["a"].ddready("ddchoose").then(function(t){e.userIdListObj=t.users,e.departmentIdListObj=t.departments,e.form.getFieldsValue().peopleList="ok"})},search:function(){this.pagination.current=1,this.queryCouponRecordList()}}},f=d,p=(a("f1f4"),a("2877")),m=Object(p["a"])(f,n,r,!1,null,"082ed551",null);t["default"]=m.exports},"85f2":function(e,t,a){e.exports=a("454f")},a4bb:function(e,t,a){e.exports=a("8aae")},bf90:function(e,t,a){var n=a("36c3"),r=a("bf0b").f;a("ce7e")("getOwnPropertyDescriptor",function(){return function(e,t){return r(n(e),t)}})},cebc:function(e,t,a){"use strict";var n=a("268f"),r=a.n(n),o=a("e265"),i=a.n(o),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 i.a&&(n=n.concat(i()(a).filter(function(e){return r()(a,e).enumerable}))),n.forEach(function(t){d(e,t,a[t])})}return e}a.d(t,"a",function(){return f})},e265:function(e,t,a){e.exports=a("ed33")},ed33:function(e,t,a){a("014b"),e.exports=a("584a").Object.getOwnPropertySymbols},eea3:function(e,t,a){},f1f4:function(e,t,a){"use strict";var n=a("eea3"),r=a.n(n);r.a},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-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")<localStorage.getItem("expires_in")-3e5;return t?(e.headers["Authorization"]="Bearer ".concat(localStorage.getItem("access_token")),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?s={orgId:localStorage.getItem("orgId")}:(s=t,s.orgId=localStorage.getItem("orgId")),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?s={orgId:localStorage.getItem("orgId")}:(s=t,s.orgId=localStorage.getItem("orgId")),s=i.a.stringify(s),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
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