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
(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-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