(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["vin-plate-repeat-review-page"],{"17fc":function(e,t,i){"use strict";var a=i("cb46");e.exports=function(e,t){var i=[][e];return!!i&&a((function(){i.call(null,t||function(){return 1},1)}))}},3307:function(e,t,i){"use strict";var a=TypeError;e.exports=function(e,t){if(e79&&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)}})},"61a9":function(e,t,i){"use strict";i.d(t,"f",(function(){return a})),i.d(t,"b",(function(){return r})),i.d(t,"g",(function(){return n})),i.d(t,"a",(function(){return s})),i.d(t,"e",(function(){return o})),i.d(t,"c",(function(){return c})),i.d(t,"d",(function(){return d}));i("1159"),i("4f71"),i("2ddc"),i("74ad"),i("aeb2"),i("fee5"),i("9cf4"),i("b460");function a(e){const t=Array.isArray(e)?e:[];return t.map((e,t)=>{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}},"6ce8":function(e,t,i){"use strict";var a=i("8509"),r=i("bd3f"),n=i("7f5a"),s=i("f05e"),o=i("cd97"),l=i("d9ff"),c=i("bf0b"),d=i("c804"),u=i("cb46"),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}})},"74ad":function(e,t,i){"use strict";var a=i("8509"),r=i("ba59"),n=i("bd3f"),s=i("7f5a"),o=i("f05e"),l=i("cd97"),c=i("d9ff"),d=i("bf0b"),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}})},"97c0":function(e,t,i){"use strict";var a=i("7f5a"),r=i("96f2"),n=i("9c0f"),s=i("30bf"),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,f=e?-1:1;if(c<2)while(1){if(h in v){d=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&&(d=i(d,v[h],h,u));return d}};e.exports={left:c(!1),right:c(!0)}},"9cf4":function(e,t,i){"use strict";var a=i("a078"),r=i("40ee"),n=i("6a20"),s=i("3307"),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{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,c=null==l?"":String(l);return{...e,reviewRecordId:c,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(c(n,"/query"),t||{}),()=>r.post(d(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(c(n,`/${t}/history`),{params:{}}),()=>r.get(d(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(c(s,`/${t}/decision`),i),()=>n.post(d(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(c(r,"/batch-decision"),t),()=>a.post(d(r,"/batch-decision"),t))}},d709:function(e,t,i){},e866:function(e,t,i){"use strict";var a=i("4cd4");e.exports="NODE"===a},e92f:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"vin-plate-repeat-review-page public_box"},[t("div",{staticClass:"vin-plate-repeat-review-page__header"},[t("div",[t("div",{staticClass:"vin-plate-repeat-review-page__nav"},[t("el-button",{attrs:{size:"mini",plain:""},on:{click:e.goWorkbench}},[e._v("返回核验工作台")]),t("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.goDuplicateReview}},[e._v("切换到重复图片核验")]),t("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.goSimilarImageReview}},[e._v("切换到相似图片核验")]),t("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.goClaimRiskReview}},[e._v("切换到理算风险核验")])],1),t("h2",[e._v("同 VIN/车牌多次出险核验页面")]),t("p",[e._v("集中查看同一 VIN 或同一车牌多次出险命中组,支持复用既有核验工作台完成人工判定与历史追溯。")])]),t("div",{staticClass:"vin-plate-repeat-review-page__filters"},[t("el-switch",{attrs:{"active-text":"只看待核验"},on:{input:e.handleOnlyPendingToggle},model:{value:e.filters.onlyPending,callback:function(t){e.$set(e.filters,"onlyPending",t)},expression:"filters.onlyPending"}}),t("el-radio-group",{attrs:{size:"mini",disabled:e.filters.onlyPending},on:{input:e.handleReviewStatusChange},model:{value:e.filters.reviewStatus,callback:function(t){e.$set(e.filters,"reviewStatus",t)},expression:"filters.reviewStatus"}},[t("el-radio-button",{attrs:{label:"pending"}},[e._v("待定")]),t("el-radio-button",{attrs:{label:"useful"}},[e._v("有用")]),t("el-radio-button",{attrs:{label:"not-useful"}},[e._v("无用")]),t("el-radio-button",{attrs:{label:"all"}},[e._v("全部")])],1),t("el-radio-group",{attrs:{size:"mini"},on:{input:e.handleHitDimensionChange},model:{value:e.filters.hitDimension,callback:function(t){e.$set(e.filters,"hitDimension",t)},expression:"filters.hitDimension"}},[t("el-radio-button",{attrs:{label:"all"}},[e._v("全部命中")]),t("el-radio-button",{attrs:{label:"vin"}},[e._v("VIN")]),t("el-radio-button",{attrs:{label:"plate"}},[e._v("车牌")]),t("el-radio-button",{attrs:{label:"vin_plate"}},[e._v("双重命中")])],1)],1)]),e.errorMessage?t("el-alert",{staticClass:"vin-plate-repeat-review-page__alert",attrs:{type:"error",closable:!1,title:e.errorMessage}}):e._e(),e.loading||e.records.length?e._e():t("el-empty",{attrs:{description:"当前无可核验记录"}}),e.records.length?t("div",{staticClass:"vin-plate-repeat-review-page__batch-bar"},[t("div",{staticClass:"vin-plate-repeat-review-page__batch-summary"},[e._v(" 当前页共 "+e._s(e.records.length)+" 条,可一键批量判断 ")]),t("div",{staticClass:"vin-plate-repeat-review-page__batch-actions"},[t("el-radio-group",{staticClass:"vin-plate-repeat-review-page__batch-group",attrs:{size:"mini"},model:{value:e.batchDecision,callback:function(t){e.batchDecision=t},expression:"batchDecision"}},[t("el-radio-button",{attrs:{label:"pending"}},[e._v("待定")]),t("el-radio-button",{attrs:{label:"useful"}},[e._v("有用")]),t("el-radio-button",{attrs:{label:"not-useful"}},[e._v("无用")])],1),t("el-button",{attrs:{size:"mini",type:"primary",loading:e.batchSaving},on:{click:e.handleBatchSaveConfirm}},[e._v(" 当前页批量保存 ")])],1)]):e._e(),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"vin-plate-repeat-review-page__list"},e._l(e.records,(function(i){return t("div",{key:i.reviewRecordId,staticClass:"vin-plate-repeat-review-page__card"},[t("div",{staticClass:"vin-plate-repeat-review-page__main"},[t("div",{staticClass:"vin-plate-repeat-review-page__top-row"},[t("div",{staticClass:"vin-plate-repeat-review-page__identity"},[t("span",{staticClass:"vin-plate-repeat-review-page__label"},[e._v("命中维度")]),t("el-tag",{attrs:{size:"mini",type:e.resolveDimensionTagType(i.hitDimension)}},[e._v(" "+e._s(e.resolveDimensionLabel(i.hitDimension))+" ")]),t("el-tag",{attrs:{size:"mini",type:e.resolveStatusTagType(i.reviewStatus)}},[e._v(" "+e._s(e.resolveStatusLabel(i.reviewStatus))+" ")])],1),t("div",{staticClass:"vin-plate-repeat-review-page__trace"},[t("span",[e._v("规则摘要:"+e._s(i.ruleSnapshot||"-"))])])]),t("div",{staticClass:"vin-plate-repeat-review-page__code-grid"},[t("div",{staticClass:"vin-plate-repeat-review-page__code-item"},[t("span",{staticClass:"vin-plate-repeat-review-page__label"},[e._v("VIN")]),t("span",[e._v(e._s(i.vinCode||"-"))])]),t("div",{staticClass:"vin-plate-repeat-review-page__code-item"},[t("span",{staticClass:"vin-plate-repeat-review-page__label"},[e._v("车牌号")]),t("span",[e._v(e._s(i.plateNumber||"-"))])]),t("div",{staticClass:"vin-plate-repeat-review-page__code-item"},[t("span",{staticClass:"vin-plate-repeat-review-page__label"},[e._v("案件数")]),t("span",[e._v(e._s(i.caseCount||0))])]),t("div",{staticClass:"vin-plate-repeat-review-page__code-item"},[t("span",{staticClass:"vin-plate-repeat-review-page__label"},[e._v("累计金额")]),t("span",[e._v(e._s(e.formatAmount(i.totalPayAmount)))])]),t("div",{staticClass:"vin-plate-repeat-review-page__code-item"},[t("span",{staticClass:"vin-plate-repeat-review-page__label"},[e._v("报案跨度")]),t("span",[e._v(e._s(i.reportDaySpan||0)+" 天")])]),t("div",{staticClass:"vin-plate-repeat-review-page__code-item"},[t("span",{staticClass:"vin-plate-repeat-review-page__label"},[e._v("出险跨度")]),t("span",[e._v(e._s(i.accidentDaySpan||0)+" 天")])])]),t("div",{staticClass:"vin-plate-repeat-review-page__case-row"},[t("span",{staticClass:"vin-plate-repeat-review-page__label"},[e._v("案件号清单")]),t("div",{staticClass:"vin-plate-repeat-review-page__case-tags"},e._l(e.resolveCaseNoList(i.caseNoList),(function(a){return t("el-button",{key:`${i.reviewRecordId}-${a}`,attrs:{type:"text"},on:{click:function(t){return e.handleOpenWorkbench(a)}}},[e._v(" "+e._s(a)+" ")])})),1)]),t("div",{staticClass:"vin-plate-repeat-review-page__meta"},[t("span",[e._v("最近原因:"+e._s(i.lastReasonDesc||"无"))]),t("span",[e._v("排除快照:"+e._s(i.excludeSnapshot||"无"))])]),e.historyVisibleMap[i.reviewRecordId]?t("div",{staticClass:"vin-plate-repeat-review-page__history"},[t("div",{staticClass:"vin-plate-repeat-review-page__history-title"},[e._v("历史变更记录和原因")]),(e.historyMap[i.reviewRecordId]||[]).length?t("el-timeline",e._l(e.historyMap[i.reviewRecordId],(function(a){return t("el-timeline-item",{key:`${i.reviewRecordId}-${a.historyId}`,attrs:{timestamp:a.changedAt}},[t("div",{staticClass:"vin-plate-repeat-review-page__history-reason"},[e._v(" "+e._s(a.reasonDesc||a.reasonCode||"无原因")+" ")]),t("div",{staticClass:"vin-plate-repeat-review-page__history-detail"},[e._v(" "+e._s(e.buildHistorySummary(a))+" ")])])})),1):e.historyLoadingMap[i.reviewRecordId]?e._e():t("el-empty",{attrs:{"image-size":60,description:"暂无历史"}})],1):e._e()]),t("div",{staticClass:"vin-plate-repeat-review-page__side"},[t("el-radio-group",{staticClass:"vin-plate-repeat-review-page__decision-group",attrs:{size:"mini"},model:{value:e.draftStatusMap[i.reviewRecordId],callback:function(t){e.$set(e.draftStatusMap,i.reviewRecordId,t)},expression:"draftStatusMap[record.reviewRecordId]"}},[t("el-radio-button",{attrs:{label:"pending"}},[e._v("待定")]),t("el-radio-button",{attrs:{label:"useful"}},[e._v("有用")]),t("el-radio-button",{attrs:{label:"not-useful"}},[e._v("无用")])],1),t("el-button",{attrs:{size:"mini",type:"primary",loading:e.savingRecordId===i.reviewRecordId},on:{click:function(t){return e.handleSave(i)}}},[e._v(" 保存 ")]),t("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.toggleHistory(i)}}},[e._v(" "+e._s(e.historyVisibleMap[i.reviewRecordId]?"收起历史":"查看历史")+" ")])],1)])})),0),t("div",{staticClass:"vin-plate-repeat-review-page__pagination"},[t("el-pagination",{attrs:{background:"",layout:"prev, pager, next","current-page":e.filters.pageNo,"page-size":e.filters.pageSize,total:e.total},on:{"current-change":e.handlePageChange}})],1)],1)},r=[],n=(i("1159"),i("57f4"),i("4f71"),i("2ddc"),i("6e9a"),i("aeb2"),i("6ce8"),i("61a9")),s=i("d5c9");function o(e={}){const t=e.detailPayload||{},i=Array.isArray(e.relatedCaseNoList)?e.relatedCaseNoList.join(","):"";return{...e,groupKey:e.bizKey,hitDimension:t.hitDimension||e.extStr1,vinCode:t.vinCode,plateNumber:t.plateNumber,policyNo:t.policyNo,caseCount:e.caseCount,totalPayAmount:e.totalAmount,caseNoList:i,reportDaySpan:t.reportDaySpan||e.extNum1,accidentDaySpan:t.accidentDaySpan||e.extNum2,ruleSnapshot:e.rulePayload&&e.rulePayload.summary||t.ruleSnapshot,excludeSnapshot:e.excludePayload&&e.excludePayload.summary||t.excludeSnapshot,reviewStatus:e.reviewDecision||e.reviewStatus||"pending",lastReasonCode:e.reasonCode||e.lastReasonCode,lastReasonDesc:e.reasonDesc||e.lastReasonDesc}}function l(e={}){var t,i,a,r,n,s;return{...e,historyId:e.reviewHistoryId||e.historyId,beforeReviewStatus:e.beforeReviewDecision||e.beforeReviewStatus,afterReviewStatus:e.afterReviewDecision||e.afterReviewStatus,beforeCaseCount:(null===(t=e.snapshotPayload)||void 0===t?void 0:t.beforeCaseCount)||e.beforeCaseCount,afterCaseCount:(null===(i=e.snapshotPayload)||void 0===i?void 0:i.afterCaseCount)||e.afterCaseCount,beforeTotalPayAmount:(null===(a=e.snapshotPayload)||void 0===a?void 0:a.beforeTotalAmount)||e.beforeTotalPayAmount,afterTotalPayAmount:(null===(r=e.snapshotPayload)||void 0===r?void 0:r.afterTotalAmount)||e.afterTotalPayAmount,beforeHitDimension:(null===(n=e.snapshotPayload)||void 0===n?void 0:n.beforeHitDimension)||e.beforeHitDimension,afterHitDimension:(null===(s=e.snapshotPayload)||void 0===s?void 0:s.afterHitDimension)||e.afterHitDimension}}function c(e="",t={},i){return Object(s["c"])(e,{riskType:s["a"].VIN_PLATE_REPEAT,reviewStatus:t.reviewStatus||"all",reviewDecision:t.reviewDecision||"pending",pageNo:t.pageNo||1,pageSize:t.pageSize||20,extFilter1:t.hitDimension||"all"},i,o)}function d(e="",t,i){return Object(s["b"])(e,t,i,l)}function u(e="",t,i={},a){return Object(s["e"])(e,t,i,a,o)}function v(e="",t={},i){return Object(s["d"])(e,{riskType:s["a"].VIN_PLATE_REPEAT,riskEventIds:t.riskEventIds||[],decision:t.decision,decisionNote:t.decisionNote},i)}var p={name:"VinPlateRepeatReviewPage",inject:{injectedInterfaceUrl:{from:"interfaceUrl",default:""}},data(){return{loading:!1,savingRecordId:null,batchSaving:!1,records:[],total:0,errorMessage:"",batchDecision:"pending",draftStatusMap:{},historyMap:{},historyVisibleMap:{},historyLoadingMap:{},filters:{reviewStatus:"pending",hitDimension:"all",onlyPending:!0,pageNo:1,pageSize:20}}},created(){this.hydrateFiltersFromRoute(),this.fetchRecords()},methods:{getResolvedInterfaceUrl(){return this.injectedInterfaceUrl||""},goWorkbench(){this.$router.push({path:"/calculatorTool/reviewWorkbench"})},goDuplicateReview(){this.$router.push({path:"/calculatorTool/duplicateReview"})},goSimilarImageReview(){this.$router.push({path:"/calculatorTool/similarImageReview"})},goClaimRiskReview(){this.$router.push({path:"/calculatorTool/claimRiskReview"})},hydrateFiltersFromRoute(){const e=this.$route&&this.$route.query||{},t="false"!==e.onlyPending;this.filters.onlyPending=t,this.filters.reviewStatus=t?"pending":e.reviewStatus||"all",this.filters.hitDimension=e.hitDimension||"all",this.filters.pageNo=Number(e.pageNo)>0?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 c(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 d(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},f80e:function(e,t,i){"use strict";i("d709")},fee5:function(e,t,i){"use strict";var a=i("a078"),r=i("40ee"),n=i("6a20"),s=i("3307"),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