(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"),c=i("8dda"),d=i("00c3"),u=i("56ce"),v=TypeError,p=u((function(){[].keys().reduce((function(){}),void 0)})),h=!p&&c("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 d(h,this,t?[e]:[e,i]);var a=o(this),c=0;if(r(a,(function(a){t?(t=!1,i=a):i=e(i,a,c),c++}),{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"),c=i("d5f7"),d=i("8dda"),u=d("find",TypeError);a({target:"Iterator",proto:!0,real:!0,forced:u},{find:function(e){o(this);try{s(e)}catch(a){c(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,c=r(l.append),d=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 d(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 c(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 d(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,c=l||!n("reduce");a({target:"Array",proto:!0,forced:c},{reduce:function(e){var t=arguments.length;return r(this,e,t,t>1?arguments[1]:void 0)}})},a77a:function(e,t,i){"use strict";i("c105")},c105:function(e,t,i){},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)}))}},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)},getPendingRecordIds(){return this.records.filter(e=>"pending"===e.reviewStatus).map(e=>e.reviewRecordId)},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 v(this.getResolvedInterfaceUrl(),{reviewStatus:this.filters.reviewStatus,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.draftStatusMap[e.reviewRecordId];this.savingRecordId=e.reviewRecordId;try{await h(this.getResolvedInterfaceUrl(),e.reviewRecordId,{decision:t}),this.$message.success("保存成功"),this.clearHistoryCache(e.reviewRecordId),await this.fetchRecords()}catch(i){this.$message.error(i&&i.message?i.message:"保存失败")}finally{this.savingRecordId=null}},async handleBatchSaveConfirm(){const e=this.getPendingRecordIds();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 g(this.getResolvedInterfaceUrl(),{reviewRecordIds:e,decision:this.batchDecision}),this.$message.success("批量保存成功"),this.clearHistoryCacheByIds(e),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&&!this.historyMap[e.reviewRecordId]){this.$set(this.historyLoadingMap,e.reviewRecordId,!0);try{const t=await p(this.getResolvedInterfaceUrl(),e.reviewRecordId);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)}}}}},_=f,m=(i("a77a"),i("1805")),w=Object(m["a"])(_,a,r,!1,null,"440e8a8a",null);t["default"]=w.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",c=function(e){return function(t,i,c,d){var u=r(t),v=n(u),p=s(u);if(a(i),0===p&&c<2)throw new o(l);var h=e?p-1:0,g=e?-1:1;if(c<2)while(1){if(h in v){d=v[h],h+=g;break}if(h+=g,e?h<0:p<=h)throw new o(l)}for(;e?h>=0:p>h;h+=g)h in v&&(d=i(d,v[h],h,u));return d}};e.exports={left:c(!1),right:c(!0)}},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,c=r(l.getAll),d=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 d(this,e);var a=c(this,e);s(t,1);var r=n(i),o=0;while(o