(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["vin-plate-repeat-review-page"],{1447:function(e,t,i){"use strict";var a=i("04c2"),r=i("203c"),n=i("db2f"),s=i("62f1"),o=i("ed14"),l=i("d5f7"),d=i("8dda"),c=i("00c3"),u=i("56ce"),v=TypeError,p=u((function(){[].keys().reduce((function(){}),void 0)})),h=!p&&d("reduce",v);a({target:"Iterator",proto:!0,real:!0,forced:p||h},{reduce:function(e){s(this);try{n(e)}catch(u){l(this,"throw",u)}var t=arguments.length<2,i=t?void 0:arguments[1];if(h)return c(h,this,t?[e]:[e,i]);var a=o(this),d=0;if(r(a,(function(a){t?(t=!1,i=a):i=e(i,a,d),d++}),{IS_RECORD:!0}),t)throw new v("Reduce of empty iterator with no initial value");return i}})},3739:function(e,t,i){"use strict";var a=i("04c2"),r=i("ac1e"),n=i("203c"),s=i("db2f"),o=i("62f1"),l=i("ed14"),d=i("d5f7"),c=i("8dda"),u=c("find",TypeError);a({target:"Iterator",proto:!0,real:!0,forced:u},{find:function(e){o(this);try{s(e)}catch(a){d(this,"throw",a)}if(u)return r(u,this,e);var t=l(this),i=0;return n(t,(function(t,a){if(e(t,i++))return a(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},"4c15":function(e,t,i){"use strict";var a=i("79b9"),r=i("e833"),n=i("8270"),s=function(e){return r.slice(0,e.length)===e};e.exports=function(){return s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":a.Bun&&"string"==typeof Bun.version?"BUN":a.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(a.process)?"NODE":a.window&&a.document?"BROWSER":"REST"}()},"50b7":function(e,t,i){"use strict";var a=i("f43f"),r=i("42ee"),n=i("62fc"),s=URLSearchParams.prototype,o=r(s.forEach);a&&!("size"in s)&&n(s,"size",{get:function(){var e=0;return o(this,(function(){e++})),e},configurable:!0,enumerable:!0})},5545:function(e,t,i){"use strict";var a=i("768e"),r=i("42ee"),n=i("bd47"),s=i("de54"),o=URLSearchParams,l=o.prototype,d=r(l.append),c=r(l["delete"]),u=r(l.forEach),v=r([].push),p=new o("a=1&a=2&b=3");p["delete"]("a",1),p["delete"]("b",void 0),p+""!=="a=2"&&a(l,"delete",(function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&void 0===i)return c(this,e);var a=[];u(this,(function(e,t){v(a,{key:t,value:e})})),s(t,1);var r,o=n(e),l=n(i),p=0,h=a.length;while(p{var i,a,r;const n=String((null===e||void 0===e?void 0:e.targetCaseNo)||(null===e||void 0===e?void 0:e.target_case_no)||"").trim();if(!n)return null;const s=null!==(i=null!==(a=null===e||void 0===e?void 0:e.targetMaterialId)&&void 0!==a?a:null===e||void 0===e?void 0:e.target_material_id)&&void 0!==i?i:null,o=String((null===e||void 0===e?void 0:e.targetFileHash)||(null===e||void 0===e?void 0:e.target_file_hash)||"").trim(),l=Boolean(null===e||void 0===e?void 0:e.openable)&&Boolean(n);return{key:`${n}-${null!==(r=null!==s&&void 0!==s?s:o)&&void 0!==r?r:t}`,targetCaseNo:n,targetPolicyNo:String((null===e||void 0===e?void 0:e.targetPolicyNo)||(null===e||void 0===e?void 0:e.target_policy_no)||"").trim(),targetMaterialId:s,targetMaterialType:String((null===e||void 0===e?void 0:e.targetMaterialType)||(null===e||void 0===e?void 0:e.target_material_type)||"").trim(),targetFileHash:o,openable:l,disabledReason:String((null===e||void 0===e?void 0:e.disabledReason)||(null===e||void 0===e?void 0:e.disabled_reason)||"").trim(),matchCountInCase:Number((null===e||void 0===e?void 0:e.matchCountInCase)||(null===e||void 0===e?void 0:e.match_count_in_case)||0)||0}}).filter(Boolean)}function r(e={}){return s("/calculatorTool/medicalThreeColumn",e)}function n(e,t,i){const a=Array.isArray(e)?e:[],r=void 0===t||null===t?"":String(t),n=r?a.find(e=>String((null===e||void 0===e?void 0:e.material_id)||(null===e||void 0===e?void 0:e.id)||"")===r):null;return n&&null!==i&&void 0!==i&&i[r]?n:a.find(e=>{const t=(null===e||void 0===e?void 0:e.material_id)||(null===e||void 0===e?void 0:e.id);return void 0!==t&&null!==t&&Boolean(null===i||void 0===i?void 0:i[String(t)])})||null}function s(e,t={}){const i=new URLSearchParams,a=(e,t)=>{void 0!==t&&null!==t&&""!==t&&i.set(e,String(t))};a("caseNo",t.caseNo),a("focusMaterialId",t.focusMaterialId),a("focusFileHash",t.focusFileHash),a("focusMaterialType",t.focusMaterialType),a("sourceCaseNo",t.sourceCaseNo),a("sourceMaterialId",t.sourceMaterialId);const r=i.toString();return r?`${e}?${r}`:e}function o(e){if(void 0===e||null===e||""===e)return!1;const t=String(e).trim();if(!t)return!1;const i=Number(t);return Number.isFinite(i)&&i<0}function l(e){const t=void 0===e||null===e?"":String(e).trim();if(!t)return[];const i=[t],a=Number(t);if(Number.isFinite(a)&&0!==a){const e=String(Math.abs(a)),t="-"+e;i.includes(e)||i.push(e),i.includes(t)||i.push(t)}return i}function d(e,t,i){const a=Array.isArray(e)?e:[],r=l(t);if(r.length){const e=a.find(e=>{const t=String((null===e||void 0===e?void 0:e.material_id)||(null===e||void 0===e?void 0:e.id)||"").trim();return t&&r.includes(t)});if(e)return e}const n=String(i||"").trim();return n&&a.find(e=>{const t=String((null===e||void 0===e?void 0:e.file_hash)||(null===e||void 0===e?void 0:e.fileHash)||(null===e||void 0===e?void 0:e.imgMark)||"").trim();return t&&t===n})||null}function c(e,t){const i=Array.isArray(e)?e:[],a=String(t||"").trim();return a&&i.find(e=>{const t=String((null===e||void 0===e?void 0:e.materials_type)||(null===e||void 0===e?void 0:e.pipeline_materials_type)||(null===e||void 0===e?void 0:e.category)||"").trim();return t&&t===a})||null}},"865d":function(e,t,i){"use strict";var a=i("04c2"),r=i("f370").left,n=i("d1da"),s=i("4de2"),o=i("c3c0"),l=!o&&s>79&&s<83,d=l||!n("reduce");a({target:"Array",proto:!0,forced:d},{reduce:function(e){var t=arguments.length;return r(this,e,t,t>1?arguments[1]:void 0)}})},c3c0:function(e,t,i){"use strict";var a=i("4c15");e.exports="NODE"===a},d1da:function(e,t,i){"use strict";var a=i("56ce");e.exports=function(e,t){var i=[][e];return!!i&&a((function(){i.call(null,t||function(){return 1},1)}))}},d5c9:function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"c",(function(){return w})),i.d(t,"b",(function(){return b})),i.d(t,"e",(function(){return R})),i.d(t,"d",(function(){return S}));i("0f5d"),i("8f26"),i("d9d9"),i("963e"),i("209c");var a=i("5923"),r=i("eb06"),n=i.n(r);const s={DUPLICATE_REVIEW:"duplicate_review",SIMILAR_IMAGE_REVIEW:"similar_image_review",CLAIM_RISK:"claim_risk",VIN_PLATE_REPEAT:"vin_plate_repeat",RIDER_THIRD_PARTY:"rider_third_party"};function o(e){var t;const i=e||(null===(t=a["default"].prototype)||void 0===t?void 0:t.instance)||n.a.create();return i&&"function"===typeof i.get?i:n.a.create()}function l(e,t){var i;const a=String(e||"").trim();if(a)return a.replace(/\/$/,"");const r=String((null===t||void 0===t||null===(i=t.defaults)||void 0===i?void 0:i.baseURL)||"").trim();return r.replace(/\/$/,"")}function d(e,t){const i=t.startsWith("/")?t:"/"+t,a=String(e||"").trim().replace(/\/$/,"");return a?`${a}/unified-review${i}`:"/unified-review"+i}function c(e,t){const i=t.startsWith("/")?t:"/"+t,a=String(e||"").trim().replace(/\/$/,"");return a?`${a}/manager/unified-review${i}`:"/manager/unified-review"+i}function u(e){var t;const i=Number((null===e||void 0===e||null===(t=e.response)||void 0===t?void 0:t.status)||0);return 404===i||405===i}function v(e,t){return e().catch(e=>{if(!u(e))throw e;return t()})}function p(e){return Array.isArray(e)?e:e?String(e).split(",").map(e=>e.trim()).filter(Boolean):[]}function h(e){if(!e)return{};if("object"===typeof e)return e;try{return JSON.parse(e)}catch(t){return{}}}function f(e){return Boolean(e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"code")&&Object.prototype.hasOwnProperty.call(e,"message"))}function g(e){if(f(e))return e;const t=e&&e.data;return f(t)?t:t||{}}function y(e={}){const t=e.primaryCaseNo||e.primary_case_no||"",i=p(e.relatedCaseNoList||e.related_case_no_list),a=h(e.detailPayload||e.detail_payload),r=h(e.rulePayload||e.rule_payload),n=h(e.excludePayload||e.exclude_payload),s=e.riskEventId||e.risk_event_id||e.reviewRecordId,o=null==s?"":String(s),l=e.reviewRecordId||e.riskEventId||e.risk_event_id,d=null==l?"":String(l);return{...e,reviewRecordId:d,riskEventId:o,primaryCaseNo:t,relatedCaseNoList:i,detailPayload:a,rulePayload:r,excludePayload:n}}function _(e,t){const i=g(e),a=i.data||{},r=Array.isArray(a.items)?a.items.map(e=>t(y(e))):[];return{...e,data:{...i,data:{...a,items:r}}}}function m(e,t){const i=g(e),a=Array.isArray(i.data)?i.data.map(e=>t({...e,snapshotPayload:h(e.snapshotPayload||e.snapshot_payload),changedAt:e.changedAt||e.createdAt||e.created_at})):[];return{...e,data:{...i,data:a}}}function w(e="",t={},i,a=(e=>e)){const r=o(i),n=l(e,r);return v(()=>r.post(d(n,"/query"),t||{}),()=>r.post(c(n,"/query"),t||{})).then(e=>_(e,a))}function b(e="",t,i,a=(e=>e)){if(!t)throw new Error("riskEventId 不能为空");const r=o(i),n=l(e,r);return v(()=>r.get(d(n,`/${t}/history`),{params:{}}),()=>r.get(c(n,`/${t}/history`),{params:{}})).then(e=>m(e,a))}function R(e="",t,i={},a,r=(e=>e)){if(!t)throw new Error("riskEventId 不能为空");if(!i.decision)throw new Error("payload.decision 必须提供");const n=o(a),s=l(e,n);return v(()=>n.post(d(s,`/${t}/decision`),i),()=>n.post(c(s,`/${t}/decision`),i)).then(e=>{const t=g(e);return{...e,data:{...t,data:r(y(t.data||{}))}}})}function S(e="",t={},i){if(!Array.isArray(t.riskEventIds)||!t.riskEventIds.length)throw new Error("payload.riskEventIds 必须提供");if(!t.decision)throw new Error("payload.decision 必须提供");const a=o(i),r=l(e,a);return v(()=>a.post(d(r,"/batch-decision"),t),()=>a.post(c(r,"/batch-decision"),t))}},d709:function(e,t,i){},de54:function(e,t,i){"use strict";var a=TypeError;e.exports=function(e,t){if(e0?Number(e.pageNo):1},syncRouteQuery(){this.$router&&this.$route&&this.$router.replace({query:{onlyPending:this.filters.onlyPending?"true":"false",reviewStatus:this.filters.reviewStatus,hitDimension:this.filters.hitDimension,pageNo:this.filters.pageNo>1?String(this.filters.pageNo):void 0}}).catch(()=>{})},formatAmount(e){return null===e||void 0===e||""===e?"-":Number(e).toFixed(2)},resolveCaseNoList(e){return e?String(e).split(",").map(e=>e.trim()).filter(Boolean):[]},resolveStatusLabel(e){return{pending:"待定",useful:"有用","not-useful":"无用"}[e]||"未知"},resolveStatusTagType(e){return{pending:"warning",useful:"success","not-useful":"info"}[e]||""},resolveDimensionLabel(e){return{vin:"VIN 命中",plate:"车牌命中",vin_plate:"双重命中"}[e]||"未知"},resolveDimensionTagType(e){return{vin:"primary",plate:"danger",vin_plate:"success"}[e]||""},buildHistorySummary(e){const t=`${e.beforeCaseCount||0}案/${this.formatAmount(e.beforeTotalPayAmount)}`,i=`${e.afterCaseCount||0}案/${this.formatAmount(e.afterTotalPayAmount)}`,a=`${e.beforeHitDimension||"-"} -> ${e.afterHitDimension||"-"}`;return`案件数与金额 ${t} -> ${i},命中维度 ${a}`},resolveDecisionLabel(e){return this.resolveStatusLabel(e)},resolveRiskEventId(e){const t=String((null===e||void 0===e?void 0:e.riskEventId)||"").trim();return/^\d+$/.test(t)?t:""},getPendingRiskEventIds(){return this.records.filter(e=>"pending"===e.reviewStatus).map(e=>this.resolveRiskEventId(e)).filter(e=>Boolean(e))},clearHistoryCache(e){this.$delete(this.historyMap,e),this.$delete(this.historyVisibleMap,e),this.$delete(this.historyLoadingMap,e)},clearHistoryCacheByIds(e){e.forEach(e=>{this.clearHistoryCache(e)})},handleOnlyPendingToggle(){this.filters.reviewStatus=this.filters.onlyPending?"pending":"all",this.filters.pageNo=1,this.syncRouteQuery(),this.fetchRecords()},handleReviewStatusChange(){this.filters.pageNo=1,this.syncRouteQuery(),this.fetchRecords()},handleHitDimensionChange(){this.filters.pageNo=1,this.syncRouteQuery(),this.fetchRecords()},handlePageChange(e){this.filters.pageNo=e,this.syncRouteQuery(),this.fetchRecords()},async fetchRecords(){this.loading=!0,this.errorMessage="";try{const e=await d(this.getResolvedInterfaceUrl(),{reviewStatus:"all",reviewDecision:this.filters.onlyPending?"pending":this.filters.reviewStatus||"all",hitDimension:this.filters.hitDimension,pageNo:this.filters.pageNo,pageSize:this.filters.pageSize}),t=e&&e.data&&e.data.data||{};this.records=t.items||[],this.total=Number(t.total||0),this.draftStatusMap=this.records.reduce((e,t)=>(e[t.reviewRecordId]=t.reviewStatus||"pending",e),{})}catch(e){this.records=[],this.total=0,this.errorMessage=e&&e.message?e.message:"加载失败,请稍后重试"}finally{this.loading=!1}},handleOpenWorkbench(e){const t=Object(n["a"])("/calculatorTool/medicalThreeColumn",{caseNo:e});window.open(t,"_blank")},async handleSave(e){const t=this.resolveRiskEventId(e);if(!t)return void this.$message.error("核验记录ID缺失");const i=this.draftStatusMap[e.reviewRecordId];this.savingRecordId=e.reviewRecordId;try{await u(this.getResolvedInterfaceUrl(),t,{decision:i}),this.$message.success("保存成功"),this.clearHistoryCache(e.reviewRecordId),await this.fetchRecords()}catch(a){this.$message.error(a&&a.message?a.message:"保存失败")}finally{this.savingRecordId=null}},async handleBatchSaveConfirm(){const e=this.getPendingRiskEventIds();if(e.length){try{await this.$confirm(`将处理当前页 ${e.length} 条待核验记录,状态更新为“${this.resolveDecisionLabel(this.batchDecision)}”,是否继续?`,"批量保存确认",{confirmButtonText:"确认保存",cancelButtonText:"取消",type:"warning"})}catch(t){return}this.batchSaving=!0;try{await v(this.getResolvedInterfaceUrl(),{riskEventIds:e,decision:this.batchDecision}),this.$message.success("批量保存成功"),this.clearHistoryCacheByIds(this.records.map(e=>e.reviewRecordId)),await this.fetchRecords()}catch(t){this.$message.error(t&&t.message?t.message:"批量保存失败")}finally{this.batchSaving=!1}}else this.$message.warning("当前页没有待核验记录,无需批量保存")},async toggleHistory(e){const t=!this.historyVisibleMap[e.reviewRecordId];if(this.$set(this.historyVisibleMap,e.reviewRecordId,t),t&&!Object.prototype.hasOwnProperty.call(this.historyMap,e.reviewRecordId)){this.$set(this.historyLoadingMap,e.reviewRecordId,!0);try{const t=await c(this.getResolvedInterfaceUrl(),this.resolveRiskEventId(e));this.$set(this.historyMap,e.reviewRecordId,t&&t.data&&t.data.data||[])}catch(i){this.$message.error(i&&i.message?i.message:"历史加载失败"),this.$set(this.historyMap,e.reviewRecordId,[])}finally{this.$set(this.historyLoadingMap,e.reviewRecordId,!1)}}}}},h=p,f=(i("f80e"),i("1805")),g=Object(f["a"])(h,a,r,!1,null,"8a7657f8",null);t["default"]=g.exports},f370:function(e,t,i){"use strict";var a=i("db2f"),r=i("9bf4"),n=i("71cd"),s=i("57ad"),o=TypeError,l="Reduce of empty array with no initial value",d=function(e){return function(t,i,d,c){var u=r(t),v=n(u),p=s(u);if(a(i),0===p&&d<2)throw new o(l);var h=e?p-1:0,f=e?-1:1;if(d<2)while(1){if(h in v){c=v[h],h+=f;break}if(h+=f,e?h<0:p<=h)throw new o(l)}for(;e?h>=0:p>h;h+=f)h in v&&(c=i(c,v[h],h,u));return c}};e.exports={left:d(!1),right:d(!0)}},f80e:function(e,t,i){"use strict";i("d709")},ff4d:function(e,t,i){"use strict";var a=i("768e"),r=i("42ee"),n=i("bd47"),s=i("de54"),o=URLSearchParams,l=o.prototype,d=r(l.getAll),c=r(l.has),u=new o("a=1");!u.has("a",2)&&u.has("a",void 0)||a(l,"has",(function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&void 0===i)return c(this,e);var a=d(this,e);s(t,1);var r=n(i),o=0;while(o