Commit 3d9cbc8f by liang ce

操作人人员修改

parent 13b85e2a
.searchBox[data-v-1fa30485]{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-1fa30485]{margin-right:20px;max-width:180px}.operationTable a[data-v-1fa30485]{margin-right:8px}.searchUserMessage[data-v-1fa30485]{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-1fa30485]{width:32px;height:32px;border-radius:50%;margin-bottom:8px}.positionDiv[data-v-1fa30485]{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-1fa30485]{position:absolute;right:10px}.peopleBox[data-v-1fa30485]{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-5d1bb5f6]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:20px}.searchBox>input[data-v-5d1bb5f6]{margin-right:20px;max-width:180px}.operationTable a[data-v-5d1bb5f6]{margin-right:8px}.searchUserMessage[data-v-5d1bb5f6]{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-5d1bb5f6]{width:32px;height:32px;border-radius:50%;margin-bottom:8px}.positionDiv[data-v-5d1bb5f6]{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-5d1bb5f6]{position:absolute;right:10px}.userListBox[data-v-5d1bb5f6]{text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex}.userListBox>div>img[data-v-5d1bb5f6]{display:block;text-align:center}.choosePeople[data-v-5d1bb5f6]{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-5d1bb5f6]:hover{border:1px solid #1890ff}.deptModel[data-v-5d1bb5f6]{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-5d1bb5f6]{background:#caeeff}.ant-popover-inner-content>p[data-v-5d1bb5f6]{margin:0}
\ No newline at end of file
.searchBox[data-v-9ea339b4]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:20px}.searchBox>input[data-v-9ea339b4]{margin-right:20px;max-width:180px}.operationTable a[data-v-9ea339b4]{margin-right:8px}.searchUserMessage[data-v-9ea339b4]{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-9ea339b4]{width:32px;height:32px;border-radius:50%;margin-bottom:8px}.positionDiv[data-v-9ea339b4]{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-9ea339b4]{position:absolute;right:10px}.userListBox[data-v-9ea339b4]{text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex}.userListBox>div>img[data-v-9ea339b4]{display:block;text-align:center}.choosePeople[data-v-9ea339b4]{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-9ea339b4]:hover{border:1px solid #1890ff}.deptModel[data-v-9ea339b4]{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-9ea339b4]{background:#caeeff}.ant-popover-inner-content>p[data-v-9ea339b4]{margin:0}.mingPayOrderDetailItem[data-v-9ea339b4]{display:-webkit-box;display:-ms-flexbox;display:flex;width:190px;margin:15px 0}.mingPayOrderDetailItem>div[data-v-9ea339b4]:first-of-type{width:40px;height:40px;overflow:hidden}.mingPayOrderDetailItem>div:first-of-type img[data-v-9ea339b4]{width:40px;height:40px;display:block}.mingPayOrderDetailItem>div[data-v-9ea339b4]:nth-of-type(2){height:40px;width:80px;font-size:14px;margin-left:10px}.mingPayOrderDetailItem>div:nth-of-type(2) div[data-v-9ea339b4]:first-of-type{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:80px;color:#000}.mingPayOrderDetailItem>div:nth-of-type(2) div[data-v-9ea339b4]:nth-of-type(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:80px;color:#868686;font-size:12px}.mingPayOrderDetailItem>div[data-v-9ea339b4]: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
.searchBox[data-v-0eada1ab]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:20px}.searchBox>input[data-v-0eada1ab]{margin-right:20px;max-width:180px}.operationTable a[data-v-0eada1ab]{margin-right:8px}.searchUserMessage[data-v-0eada1ab]{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-0eada1ab]{width:32px;height:32px;border-radius:50%;margin-bottom:8px}.positionDiv[data-v-0eada1ab]{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-0eada1ab]{position:absolute;right:10px}.userListBox[data-v-0eada1ab]{text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex}.userListBox>div>img[data-v-0eada1ab]{display:block;text-align:center}.choosePeople[data-v-0eada1ab]{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-0eada1ab]:hover{border:1px solid #1890ff}.deptModel[data-v-0eada1ab]{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-0eada1ab]{background:#caeeff}.ant-popover-inner-content>p[data-v-0eada1ab]{margin:0}
\ 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-331ae0d2.f532e316.css rel=prefetch><link href=css/chunk-3599003e.1a62b51d.css rel=prefetch><link href=css/chunk-368c00f4.2ed08760.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-4ba7f26b.8079c706.css rel=prefetch><link href=css/chunk-570f9528.289dca7b.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-788ab544.bcc0cd08.css rel=prefetch><link href=css/chunk-819f885c.1afb12db.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-edd5b888.7ba8d7af.css rel=prefetch><link href=css/chunk-ef9cd530.268f2e27.css rel=prefetch><link href=css/chunk-f6a8003a.e681c11c.css rel=prefetch><link href=css/chunk-fb6b8140.5661c4ec.css rel=prefetch><link href=js/chunk-13ec64c5.545051af.js rel=prefetch><link href=js/chunk-28723f13.9d3648f3.js rel=prefetch><link href=js/chunk-331ae0d2.bc6cda3b.js rel=prefetch><link href=js/chunk-3599003e.6b850e19.js rel=prefetch><link href=js/chunk-368c00f4.5b1394d7.js rel=prefetch><link href=js/chunk-3f3336d0.11686916.js rel=prefetch><link href=js/chunk-42323b98.ca0331ff.js rel=prefetch><link href=js/chunk-4ba7f26b.1ce70aaf.js rel=prefetch><link href=js/chunk-570f9528.101eb842.js rel=prefetch><link href=js/chunk-6658342b.9ac333d0.js rel=prefetch><link href=js/chunk-6cec962d.9d1d8c12.js rel=prefetch><link href=js/chunk-788ab544.93cb0ed0.js rel=prefetch><link href=js/chunk-819f885c.a79cb7e2.js rel=prefetch><link href=js/chunk-b788ccac.88698cc7.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-edd5b888.518109f4.js rel=prefetch><link href=js/chunk-ef9cd530.2a5a7303.js rel=prefetch><link href=js/chunk-f6a8003a.7bcc19e3.js rel=prefetch><link href=js/chunk-fb6b8140.2d2d96c4.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.b8235550.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.b8235550.js></script></body></html> <!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-331ae0d2.f532e316.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-4ba7f26b.8079c706.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-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-f6a8003a.e681c11c.css rel=prefetch><link href=css/chunk-fb6b8140.5661c4ec.css rel=prefetch><link href=js/chunk-13ec64c5.545051af.js rel=prefetch><link href=js/chunk-28723f13.9d3648f3.js rel=prefetch><link href=js/chunk-331ae0d2.bc6cda3b.js rel=prefetch><link href=js/chunk-3599003e.6b850e19.js rel=prefetch><link href=js/chunk-3f3336d0.11686916.js rel=prefetch><link href=js/chunk-42323b98.ca0331ff.js rel=prefetch><link href=js/chunk-4ba7f26b.1ce70aaf.js rel=prefetch><link href=js/chunk-570f9528.101eb842.js rel=prefetch><link href=js/chunk-58a22374.2f60b6ca.js rel=prefetch><link href=js/chunk-6658342b.9ac333d0.js rel=prefetch><link href=js/chunk-6cec962d.9d1d8c12.js rel=prefetch><link href=js/chunk-7026f433.fd15ca11.js rel=prefetch><link href=js/chunk-a0a95438.72da1f1d.js rel=prefetch><link href=js/chunk-b788ccac.88698cc7.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.aba41c0f.js rel=prefetch><link href=js/chunk-edd5b888.518109f4.js rel=prefetch><link href=js/chunk-f6a8003a.7bcc19e3.js rel=prefetch><link href=js/chunk-fb6b8140.2d2d96c4.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.f0ec9add.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.f0ec9add.js></script></body></html>
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-788ab544"],{"09d5":function(e,t,a){"use strict";var r=a("aa90"),n=a.n(r);n.a},"0d5e":function(e,t,a){"use strict";a.d(t,"a",function(){return g});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 g={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"}},"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.list})},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("09d5"),a("2877")),g=Object(l["a"])(u,r,n,!1,null,"5d1bb5f6",null);t["default"]=g.exports},aa90:function(e,t,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-819f885c"],{"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.list})},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("a692"),a("2877")),u=Object(l["a"])(c,r,s,!1,null,"9ea339b4",null);t["default"]=u.exports},a692:function(e,t,a){"use strict";var r=a("b95a"),s=a.n(r);s.a},b95a:function(e,t,a){}}]);
\ No newline at end of file
...@@ -133,7 +133,7 @@ export default { ...@@ -133,7 +133,7 @@ export default {
userType: '1' userType: '1'
} }
$http.get(`/mingpay/v1/isv/cashier/list_cashier_all`, AgentData).then((res) => { $http.get(`/mingpay/v1/isv/cashier/list_cashier_all`, AgentData).then((res) => {
this.agentList = res.data.data.list this.agentList = res.data.data
}) })
}, },
// 选人组件调用 // 选人组件调用
......
...@@ -232,7 +232,7 @@ export default { ...@@ -232,7 +232,7 @@ export default {
userType: '1' userType: '1'
} }
$http.get(`/mingpay/v1/isv/cashier/list_cashier_all`, AgentData).then((res) => { $http.get(`/mingpay/v1/isv/cashier/list_cashier_all`, AgentData).then((res) => {
this.agentList = res.data.data.list this.agentList = res.data.data
}) })
}, },
toAllowanceDetails (record, text, index) { toAllowanceDetails (record, text, index) {
......
...@@ -121,7 +121,7 @@ export default { ...@@ -121,7 +121,7 @@ export default {
userType: '1' userType: '1'
} }
$http.get(`/mingpay/v1/isv/cashier/list_cashier_all`, AgentData).then((res) => { $http.get(`/mingpay/v1/isv/cashier/list_cashier_all`, AgentData).then((res) => {
this.agentList = res.data.data.list this.agentList = res.data.data
}) })
}, },
// 选人组件调用 // 选人组件调用
......
...@@ -153,7 +153,7 @@ export default { ...@@ -153,7 +153,7 @@ export default {
userType: '0' userType: '0'
} }
$http.get(`/mingpay/v1/isv/cashier/list_cashier_all`, CashierListData).then((res) => { $http.get(`/mingpay/v1/isv/cashier/list_cashier_all`, CashierListData).then((res) => {
this.agentList = res.data.data.list this.agentList = res.data.data
}).catch(() => { }).catch(() => {
this.$message.error('获取操作员信息失败') this.$message.error('获取操作员信息失败')
}) })
......
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