chunk-1b380c13.757b1c6f.js
8.56 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1b380c13"],{2175:function(e,t,a){},3981:function(e,t,a){"use strict";a("2175")},4734:function(e,t,a){"use strict";a.r(t);var n=a("7a23"),u=Object(n["o"])("店员对比"),c=Object(n["o"])("顾客对比"),r=Object(n["o"])("开始");function l(e,t,a,l,o,i){var s=Object(n["S"])("a-select"),b=Object(n["S"])("a-form-item"),d=Object(n["S"])("a-select-option"),f=Object(n["S"])("a-date-picker"),p=Object(n["S"])("a-button"),O=Object(n["S"])("a-form"),j=Object(n["S"])("ResultDisplay");return Object(n["J"])(),Object(n["l"])(n["b"],null,[Object(n["p"])(O,{model:l.queryForm,layout:"inline"},{default:Object(n["ib"])((function(){return[Object(n["p"])(b,{label:"集团:"},{default:Object(n["ib"])((function(){return[Object(n["p"])(s,{value:l.queryForm.account_id,"onUpdate:value":t[0]||(t[0]=function(e){return l.queryForm.account_id=e}),style:{width:"280px"},mode:"multiple",maxTagCount:1,onChange:l.onAccountChange,options:l.accountList,optionFilterProp:"label","show-search":""},null,8,["value","onChange","options"])]})),_:1}),Object(n["p"])(b,{label:"广场:"},{default:Object(n["ib"])((function(){return[Object(n["p"])(s,{value:l.queryForm.plaza_id,"onUpdate:value":t[1]||(t[1]=function(e){return l.queryForm.plaza_id=e}),style:{width:"280px"},mode:"multiple",maxTagCount:1,options:l.plazaList,optionFilterProp:"label","show-search":""},null,8,["value","options"])]})),_:1}),Object(n["p"])(b,{label:"比对类型:"},{default:Object(n["ib"])((function(){return[Object(n["p"])(s,{value:l.queryForm.featureRevisitType,"onUpdate:value":t[2]||(t[2]=function(e){return l.queryForm.featureRevisitType=e}),style:{width:"280px"}},{default:Object(n["ib"])((function(){return[Object(n["p"])(d,{value:1},{default:Object(n["ib"])((function(){return[u]})),_:1}),Object(n["p"])(d,{value:2},{default:Object(n["ib"])((function(){return[c]})),_:1})]})),_:1},8,["value"])]})),_:1}),Object(n["p"])(b,{label:"选择日期:"},{default:Object(n["ib"])((function(){return[Object(n["p"])(f,{value:l.queryForm.date,"onUpdate:value":t[3]||(t[3]=function(e){return l.queryForm.date=e}),style:{width:"280px"}},null,8,["value"])]})),_:1}),Object(n["p"])(b,null,{default:Object(n["ib"])((function(){return[Object(n["p"])(p,{type:"primary",onClick:l.initializeWebSocket},{default:Object(n["ib"])((function(){return[r]})),_:1},8,["onClick"])]})),_:1})]})),_:1},8,["model"]),(Object(n["J"])(),Object(n["j"])(j,{data:l.resultList,key:l.resultList},null,8,["data"]))],64)}var o=a("b85c"),i=(a("d3b7"),a("25f0"),a("b0c0"),a("159b"),a("99af"),a("7f0b"),a("c1df")),s=a.n(i),b=a("4df8"),d=a("f944"),f=a("c68b"),p=a("d4ec"),O=a("bee2"),j=a("672a"),m=function(){function e(){Object(p["a"])(this,e)}return Object(O["a"])(e,[{key:"getStaffResult",value:function(e){return j["a"].request({method:"POST",url:"/mall/staff",data:e})}},{key:"getCustomResult",value:function(e){return j["a"].request({method:"POST",url:"/mall/custom",data:e})}}]),e}(),v=new m,h=v,y=a("b93f"),g={components:{ResultDisplay:y["a"]},setup:function(){var e=void 0,t=Object(n["O"])([]),a=Object(n["O"])([]),u=Object(n["O"])([]),c=Object(n["O"])([]),r=Object(n["O"])([]),l=Object(n["N"])({account_id:[],plaza_id:[],featureRevisitType:1,date:s()(s()().format("YYYY-MM-DD"),"YYYY-MM-DD")}),i=function(){p()},p=function(){l.plaza_id=[],u.value=[],b["a"].getPlazaList({account_id:l.account_id.toString()}).then((function(e){if(Object(d["a"])(e)){var t,a=Object(o["a"])(e);try{for(a.s();!(t=a.n()).done;){var n=t.value;u.value.push({value:n.id,label:n.name})}}catch(c){a.e(c)}finally{a.f()}}}))},O=function(){l.account_id=[],a.value=[],b["a"].getAccountList().then((function(e){if(Object(d["a"])(e)){var t,n=Object(o["a"])(e);try{for(n.s();!(t=n.n()).done;){var u=t.value;a.value.push({value:u.id,label:u.name})}}catch(c){n.e(c)}finally{n.f()}}}))},j=function(e){if(!e)return 0;var t=Math.floor(100*e);return t>=100?100:t},m=function(e){var a=e.dates,n=e.mallIds,u=e.mallNames,c=e.status,r=e.stepCount,l=e.scheduleType,o=e.counter,i={};if(i.dates=a,i.mallIds=n,i.mallNames=u,i.status=c,i.progress=j(r),i.totalNum=0,i.totalPage=0,i.current=0,i.curPageSize=0,i.currentPage=0,i.scheduleType=l,o&&(i.totalNum=o.allDataCount,i.totalPage=o.totalMallDateProduct,i.current=o.dataNum,i.curPageSize=o.totalData,i.currentPage=o.dateMallNum),t.value.length){var s=t.value.some((function(e){return e.scheduleType===l}));s?t.value.forEach((function(e){e.progress=j(r),o&&(e.totalNum=o.allDataCount,e.totalPage=o.totalMallDateProduct,e.current=o.dataNum,e.curPageSize=o.totalData,e.currentPage=o.dateMallNum)})):t.value.push(i),i={}}else t.value.push(i),i={}},v=function(){void 0!==e&&e.close(),t.value=[],e=new WebSocket("".concat(window._socketUrl,"/recal/schedule/rematchPerson").concat(l.featureRevisitType)),e.onopen=y,e.onmessage=function(t){var a=JSON.parse(t.data);m(a),1===a.stepCount&&e.close()}},y=function(){var e=Object(n["Y"])(l);switch(e.featureRevisitType){case 1:var t={mallIds:e.plaza_id,scheduleType:"rematchPerson".concat(e.featureRevisitType),startDate:Object(f["b"])(e.date)+" 00:00:00",endDate:Object(f["b"])(e.date)+" 23:59:59"};h.getStaffResult(t);break;case 2:var a={mallIds:e.plaza_id,scheduleType:"rematchPerson".concat(e.featureRevisitType),startDate:Object(f["b"])(e.date)+" 00:00:00",endDate:Object(f["b"])(e.date)+" 23:59:59"};h.getCustomResult(a);break}},g=function(){O()};return g(),{accountList:a,plazaList:u,zoneList:c,gateList:r,resultList:t,queryForm:l,onAccountChange:i,initializeWebSocket:v}}},_=a("d959"),P=a.n(_);const S=P()(g,[["render",l]]);t["default"]=S},"4df8":function(e,t,a){"use strict";var n=a("d4ec"),u=a("bee2"),c=a("672a"),r=a("c68b"),l=function(){function e(){Object(n["a"])(this,e)}return Object(u["a"])(e,[{key:"getSnapshotRecordList",value:function(e){return c["a"].request({method:"GET",url:"/faceRecognitions/faceRecord",params:Object(r["a"])(e)})}},{key:"getAccountList",value:function(){return c["a"].request({method:"GET",url:"/accounts"})}},{key:"getPlazaList",value:function(e){return c["a"].request({method:"GET",url:"/malls",params:Object(r["a"])({accountIds:e.account_id})})}},{key:"getZoneList",value:function(e){return c["a"].request({method:"GET",url:"/zones/zoneList",params:Object(r["a"])({account_id:e.account_id,plaza_id:e.plaza_id})})}},{key:"getGateList",value:function(e){return c["a"].request({method:"GET",url:"/gates/gateByInfo",params:Object(r["a"])({account_id:e.account_id,plaza_id:e.plaza_id,zone_id:e.zone_id,type:e.type})})}}]),e}(),o=new l;t["a"]=o},"7f0b":function(e,t,a){"use strict";var n=a("d4ec"),u=a("bee2"),c=a("672a"),r=(a("c68b"),function(){function e(){Object(n["a"])(this,e)}return Object(u["a"])(e,[{key:"getStaffResult",value:function(e){return c["a"].request({method:"POST",url:"/mall/staffPool",data:e})}},{key:"getCustomResult",value:function(e){return c["a"].request({method:"POST",url:"/mall/customPool",data:e})}}]),e}()),l=new r;t["a"]=l},b93f:function(e,t,a){"use strict";var n=a("7a23"),u=function(e){return Object(n["M"])("data-v-31a12a94"),e=e(),Object(n["K"])(),e},c={class:"result-wrapper"},r=u((function(){return Object(n["m"])("div",{class:"result-header"},"结果展示",-1)})),l={class:"scrollbar-wrapper"},o={class:"result-item"},i={class:"result-page"},s=Object(n["o"])(" 执行进度 : "),b={class:"pagination-page"};function d(e,t,a,u,d,f){var p=Object(n["S"])("el-col"),O=Object(n["S"])("el-progress"),j=Object(n["S"])("el-row");return Object(n["J"])(),Object(n["l"])("div",c,[r,Object(n["m"])("div",l,[(Object(n["J"])(!0),Object(n["l"])(n["b"],null,Object(n["Q"])(u.resultList,(function(e){return Object(n["J"])(),Object(n["l"])("div",o,[Object(n["m"])("div",i,[Object(n["m"])("span",null,"总处理条数 : "+Object(n["W"])(e.totalNum)+"条",1)]),Object(n["p"])(j,null,{default:Object(n["ib"])((function(){return[Object(n["p"])(p,{span:2},{default:Object(n["ib"])((function(){return[s]})),_:1}),Object(n["p"])(p,{span:22},{default:Object(n["ib"])((function(){return[Object(n["p"])(O,{"text-inside":!0,"stroke-width":26,percentage:null===e||void 0===e?void 0:e.progress},null,8,["percentage"])]})),_:2},1024)]})),_:2},1024),Object(n["p"])(j,null,{default:Object(n["ib"])((function(){return[Object(n["p"])(p,{span:2}),Object(n["p"])(p,{span:22},{default:Object(n["ib"])((function(){return[Object(n["m"])("span",null,"第"+Object(n["W"])(e.current)+"条/共"+Object(n["W"])(e.curPageSize)+"条",1),Object(n["m"])("span",b,"第"+Object(n["W"])(e.currentPage)+"页/共"+Object(n["W"])(e.totalPage)+"页",1)]})),_:2},1024)]})),_:2},1024)])})),256))])])}var f={props:{data:{type:Array,default:[]}},setup:function(e,t){t.emit;var a=e.data;return{resultList:a}}},p=(a("3981"),a("d959")),O=a.n(p);const j=O()(f,[["render",d],["__scopeId","data-v-31a12a94"]]);t["a"]=j}}]);