(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["similar-image-review-page"],{"001f":function(e,i,t){},1447:function(e,i,t){"use strict";var r=t("04c2"),a=t("203c"),s=t("db2f"),o=t("62f1"),n=t("ed14"),l=t("d5f7"),d=t("8dda"),c=t("00c3"),u=t("56ce"),v=TypeError,h=u((function(){[].keys().reduce((function(){}),void 0)})),m=!h&&d("reduce",v);r({target:"Iterator",proto:!0,real:!0,forced:h||m},{reduce:function(e){o(this);try{s(e)}catch(u){l(this,"throw",u)}var i=arguments.length<2,t=i?void 0:arguments[1];if(m)return c(m,this,i?[e]:[e,t]);var r=n(this),d=0;if(a(r,(function(r){i?(i=!1,t=r):t=e(t,r,d),d++}),{IS_RECORD:!0}),i)throw new v("Reduce of empty iterator with no initial value");return t}})},3739:function(e,i,t){"use strict";var r=t("04c2"),a=t("ac1e"),s=t("203c"),o=t("db2f"),n=t("62f1"),l=t("ed14"),d=t("d5f7"),c=t("8dda"),u=c("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:u},{find:function(e){n(this);try{o(e)}catch(r){d(this,"throw",r)}if(u)return a(u,this,e);var i=l(this),t=0;return s(i,(function(i,r){if(e(i,t++))return r(i)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},"38c4":function(e,i,t){},"4c15":function(e,i,t){"use strict";var r=t("79b9"),a=t("e833"),s=t("8270"),o=function(e){return a.slice(0,e.length)===e};e.exports=function(){return o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===s(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"}()},"50b7":function(e,i,t){"use strict";var r=t("f43f"),a=t("42ee"),s=t("62fc"),o=URLSearchParams.prototype,n=a(o.forEach);r&&!("size"in o)&&s(o,"size",{get:function(){var e=0;return n(this,(function(){e++})),e},configurable:!0,enumerable:!0})},5545:function(e,i,t){"use strict";var r=t("768e"),a=t("42ee"),s=t("bd47"),o=t("de54"),n=URLSearchParams,l=n.prototype,d=a(l.append),c=a(l["delete"]),u=a(l.forEach),v=a([].push),h=new n("a=1&a=2&b=3");h["delete"]("a",1),h["delete"]("b",void 0),h+""!=="a=2"&&r(l,"delete",(function(e){var i=arguments.length,t=i<2?void 0:arguments[1];if(i&&void 0===t)return c(this,e);var r=[];u(this,(function(e,i){v(r,{key:i,value:e})})),o(i,1);var a,n=s(e),l=s(t),h=0,m=r.length;while(h{var t,r,a;const s=String((null===e||void 0===e?void 0:e.targetCaseNo)||(null===e||void 0===e?void 0:e.target_case_no)||"").trim();if(!s)return null;const o=null!==(t=null!==(r=null===e||void 0===e?void 0:e.targetMaterialId)&&void 0!==r?r:null===e||void 0===e?void 0:e.target_material_id)&&void 0!==t?t:null,n=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(s);return{key:`${s}-${null!==(a=null!==o&&void 0!==o?o:n)&&void 0!==a?a:i}`,targetCaseNo:s,targetPolicyNo:String((null===e||void 0===e?void 0:e.targetPolicyNo)||(null===e||void 0===e?void 0:e.target_policy_no)||"").trim(),targetMaterialId:o,targetMaterialType:String((null===e||void 0===e?void 0:e.targetMaterialType)||(null===e||void 0===e?void 0:e.target_material_type)||"").trim(),targetFileHash:n,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 a(e={}){return o("/calculatorTool/medicalThreeColumn",e)}function s(e,i,t){const r=Array.isArray(e)?e:[],a=void 0===i||null===i?"":String(i),s=a?r.find(e=>String((null===e||void 0===e?void 0:e.material_id)||(null===e||void 0===e?void 0:e.id)||"")===a):null;return s&&null!==t&&void 0!==t&&t[a]?s:r.find(e=>{const i=(null===e||void 0===e?void 0:e.material_id)||(null===e||void 0===e?void 0:e.id);return void 0!==i&&null!==i&&Boolean(null===t||void 0===t?void 0:t[String(i)])})||null}function o(e,i={}){const t=new URLSearchParams,r=(e,i)=>{void 0!==i&&null!==i&&""!==i&&t.set(e,String(i))};r("caseNo",i.caseNo),r("focusMaterialId",i.focusMaterialId),r("focusFileHash",i.focusFileHash),r("focusMaterialType",i.focusMaterialType),r("sourceCaseNo",i.sourceCaseNo),r("sourceMaterialId",i.sourceMaterialId);const a=t.toString();return a?`${e}?${a}`:e}function n(e){if(void 0===e||null===e||""===e)return!1;const i=String(e).trim();if(!i)return!1;const t=Number(i);return Number.isFinite(t)&&t<0}function l(e){const i=void 0===e||null===e?"":String(e).trim();if(!i)return[];const t=[i],r=Number(i);if(Number.isFinite(r)&&0!==r){const e=String(Math.abs(r)),i="-"+e;t.includes(e)||t.push(e),t.includes(i)||t.push(i)}return t}function d(e,i,t){const r=Array.isArray(e)?e:[],a=l(i);if(a.length){const e=r.find(e=>{const i=String((null===e||void 0===e?void 0:e.material_id)||(null===e||void 0===e?void 0:e.id)||"").trim();return i&&a.includes(i)});if(e)return e}const s=String(t||"").trim();return s&&r.find(e=>{const i=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 i&&i===s})||null}function c(e,i){const t=Array.isArray(e)?e:[],r=String(i||"").trim();return r&&t.find(e=>{const i=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 i&&i===r})||null}},"7f06":function(e,i,t){"use strict";t.r(i);var r=function(){var e=this,i=e._self._c;return i("div",{staticClass:"similar-image-review-page public_box"},[i("div",{staticClass:"similar-image-review-page__header"},[i("div",[i("div",{staticClass:"similar-image-review-page__nav"},[i("el-button",{attrs:{size:"mini",plain:""},on:{click:e.goWorkbench}},[e._v("返回核验工作台")]),i("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.goDuplicateReview}},[e._v("切换到重复图片核验")])],1),i("h2",[e._v("相似图核验页面")]),i("p",[e._v("集中查看高相似候选图,完成确认有效、确认排除或待定处理。")])]),i("div",{staticClass:"similar-image-review-page__filters"},[i("el-switch",{attrs:{"active-text":"只看待复核"},on:{input:e.handleOnlyPendingToggle},model:{value:e.filters.onlyPending,callback:function(i){e.$set(e.filters,"onlyPending",i)},expression:"filters.onlyPending"}}),i("el-radio-group",{attrs:{size:"mini",disabled:e.filters.onlyPending},on:{input:e.handleReviewStatusChange},model:{value:e.filters.reviewStatus,callback:function(i){e.$set(e.filters,"reviewStatus",i)},expression:"filters.reviewStatus"}},[i("el-radio-button",{attrs:{label:"pending"}},[e._v("待定")]),i("el-radio-button",{attrs:{label:"confirmed-valid"}},[e._v("确认有效")]),i("el-radio-button",{attrs:{label:"confirmed-rejected"}},[e._v("确认排除")]),i("el-radio-button",{attrs:{label:"all"}},[e._v("全部")])],1),i("el-select",{staticClass:"similar-image-review-page__category-select",attrs:{clearable:"",size:"mini",placeholder:"按一级分类筛选"},on:{change:e.handleCategoryChange,clear:e.handleCategoryChange},model:{value:e.filters.llmCategoryLevel1,callback:function(i){e.$set(e.filters,"llmCategoryLevel1",i)},expression:"filters.llmCategoryLevel1"}},e._l(e.llmCategoryOptions,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1),i("div",{staticClass:"similar-image-review-page__similarity-filter"},[i("span",{staticClass:"similar-image-review-page__filter-label"},[e._v("相似度区间")]),i("el-input-number",{attrs:{min:0,max:.9999,step:.001,precision:3,size:"mini","controls-position":"right"},on:{change:e.handleSimilarityFilterChange},model:{value:e.filters.similarityScoreMin,callback:function(i){e.$set(e.filters,"similarityScoreMin",i)},expression:"filters.similarityScoreMin"}}),i("span",{staticClass:"similar-image-review-page__filter-separator"},[e._v("< score <")]),i("el-input-number",{attrs:{min:1e-4,max:1,step:.001,precision:3,size:"mini","controls-position":"right"},on:{change:e.handleSimilarityFilterChange},model:{value:e.filters.similarityScoreMax,callback:function(i){e.$set(e.filters,"similarityScoreMax",i)},expression:"filters.similarityScoreMax"}})],1),i("el-select",{staticClass:"similar-image-review-page__sort-select",attrs:{size:"mini",placeholder:"相似度排序"},on:{change:e.handleSimilarityFilterChange},model:{value:e.filters.similarityScoreOrder,callback:function(i){e.$set(e.filters,"similarityScoreOrder",i)},expression:"filters.similarityScoreOrder"}},[i("el-option",{attrs:{label:"相似度倒序",value:"desc"}}),i("el-option",{attrs:{label:"相似度正序",value:"asc"}})],1)],1)]),e.errorMessage?i("el-alert",{staticClass:"similar-image-review-page__alert",attrs:{type:"error",closable:!1,title:e.errorMessage}}):e._e(),e.loading||e.records.length?e._e():i("el-empty",{attrs:{description:"当前无可核验记录"}}),e.records.length?i("div",{staticClass:"similar-image-review-page__batch-bar"},[i("div",{staticClass:"similar-image-review-page__batch-summary"},[e._v(" 当前页共 "+e._s(e.records.length)+" 条,可一键批量判断 ")]),i("div",{staticClass:"similar-image-review-page__batch-actions"},[i("el-radio-group",{staticClass:"similar-image-review-page__batch-group",attrs:{size:"mini"},model:{value:e.batchDecision,callback:function(i){e.batchDecision=i},expression:"batchDecision"}},[i("el-radio-button",{attrs:{label:"pending"}},[e._v("待定")]),i("el-radio-button",{attrs:{label:"confirmed-valid"}},[e._v("确认有效")]),i("el-radio-button",{attrs:{label:"confirmed-rejected"}},[e._v("确认排除")])],1),i("el-button",{attrs:{size:"mini",type:"primary",loading:e.batchSaving},on:{click:e.handleBatchSaveConfirm}},[e._v(" 当前页批量保存 ")])],1)]):e._e(),i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"similar-image-review-page__list"},e._l(e.records,(function(t){return i("similar-image-review-card",{key:t.riskEventId,attrs:{record:t,"history-visible":!!e.historyVisibleMap[t.riskEventId],"history-loading":!!e.historyLoadingMap[t.riskEventId],"history-items":e.historyMap[t.riskEventId]||[]},on:{"open-source-image":function(i){return e.handleOpenWorkbench(t,"source")},"open-target-image":function(i){return e.handleOpenWorkbench(t,"target")}},scopedSlots:e._u([{key:"actions",fn:function(){return[i("similar-image-review-decision-panel",{attrs:{saving:e.savingRecordId===t.riskEventId,"history-visible":!!e.historyVisibleMap[t.riskEventId]},on:{save:function(i){return e.handleSave(t)},"toggle-history":function(i){return e.toggleHistory(t)}},model:{value:e.draftStatusMap[t.riskEventId],callback:function(i){e.$set(e.draftStatusMap,t.riskEventId,i)},expression:"draftStatusMap[record.riskEventId]"}})]},proxy:!0}],null,!0)})})),1),i("div",{staticClass:"similar-image-review-page__pagination"},[i("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)},a=[],s=(t("0f5d"),t("b138"),t("865d"),t("8f26"),t("d9d9"),t("963e"),t("1447"),function(){var e=this,i=e._self._c;return i("el-card",{staticClass:"similar-image-review-card",attrs:{shadow:"hover"}},[i("div",{staticClass:"similar-image-review-card__header"},[i("div",[i("div",{staticClass:"similar-image-review-card__title"},[e._v("核验记录 #"+e._s(e.record.reviewRecordId||"-"))]),i("div",{staticClass:"similar-image-review-card__meta"},[i("span",[e._v("来源案件号:"+e._s(e.record.sourceCaseNo||"-"))]),i("span",[e._v("候选案件号:"+e._s(e.record.targetCaseNo||"-"))]),i("span",[e._v("相似度:"+e._s(e.similarityText))])]),i("div",{staticClass:"similar-image-review-card__meta similar-image-review-card__meta--llm"},[i("span",[e._v("一级分类:"+e._s(e.record.llmCategoryLevel1||"-"))]),i("span",[e._v("二级分类:"+e._s(e.record.llmCategoryLevel2||"-"))]),i("span",[e._v("分类状态:"+e._s(e.llmStatusLabel))])])]),i("el-tag",{attrs:{size:"mini",type:e.reviewStatusType}},[e._v(e._s(e.statusLabel))])],1),i("div",{staticClass:"similar-image-review-card__body"},[i("div",{staticClass:"similar-image-review-card__images"},[i("div",{staticClass:"similar-image-review-card__image-box"},[i("div",{staticClass:"similar-image-review-card__image-title"},[e._v("来源图")]),e.record.sourceImageUrl?i("button",{staticClass:"similar-image-review-card__image-trigger",attrs:{type:"button"},on:{click:function(i){return e.$emit("open-source-image",e.record)}}},[i("img",{staticClass:"similar-image-review-card__image",attrs:{src:e.record.sourceImageUrl,loading:"lazy"}})]):i("div",{staticClass:"similar-image-review-card__placeholder"},[e._v(e._s(e.sourceUnavailableText))])]),i("div",{staticClass:"similar-image-review-card__image-box"},[i("div",{staticClass:"similar-image-review-card__image-title"},[e._v("候选图")]),e.record.targetImageUrl?i("button",{staticClass:"similar-image-review-card__image-trigger",attrs:{type:"button"},on:{click:function(i){return e.$emit("open-target-image",e.record)}}},[i("img",{staticClass:"similar-image-review-card__image",attrs:{src:e.record.targetImageUrl,loading:"lazy"}})]):i("div",{staticClass:"similar-image-review-card__placeholder"},[e._v(e._s(e.targetUnavailableText))])])]),i("div",{staticClass:"similar-image-review-card__side"},[i("div",{staticClass:"similar-image-review-card__context"},[e._v(e._s(e.record.contextSummary||"暂无上下文摘要"))]),e._t("actions"),e.historyVisible?i("div",{staticClass:"similar-image-review-card__history"},[i("div",{staticClass:"similar-image-review-card__history-title"},[e._v("历史变更记录和原因")]),e.historyItems.length?i("el-timeline",e._l(e.historyItems,(function(t){return i("el-timeline-item",{key:`${e.record.riskEventId||e.record.reviewRecordId}-${t.historyId}`,attrs:{timestamp:t.changedAt}},[i("div",{staticClass:"similar-image-review-card__history-reason"},[e._v(" "+e._s(t.reasonDesc||t.reasonCode||"无原因")+" ")]),i("div",{staticClass:"similar-image-review-card__history-detail"},[e._v(" "+e._s(e.buildHistorySummary(t))+" ")])])})),1):e.historyLoading?e._e():i("el-empty",{attrs:{"image-size":60,description:"暂无历史"}})],1):e._e()],2)])])}),o=[],n={name:"SimilarImageReviewCard",props:{record:{type:Object,default(){return{}}},historyVisible:{type:Boolean,default:!1},historyLoading:{type:Boolean,default:!1},historyItems:{type:Array,default(){return[]}}},computed:{reviewStatusType(){switch(this.record.reviewStatus){case"confirmed-valid":return"success";case"confirmed-rejected":return"info";default:return"warning"}},statusLabel(){switch(this.record.reviewStatus){case"confirmed-valid":return"确认有效";case"confirmed-rejected":return"确认排除";default:return"待定"}},similarityText(){const e=Number(this.record.similarityScore||0);return e?e.toFixed(4):"-"},llmStatusLabel(){switch(this.record.llmStatus){case"success":return"已分类";case"failed":return this.record.llmErrorCode?`失败(${this.record.llmErrorCode})`:"失败";default:return"待分类"}},sourceUnavailableText(){return this.record.sourceImageUrl?"":this.record.sourceOssPath?"PROCESSING"===this.record.llmErrorCode?"来源图待生成(处理中)":"来源图不可用(无可用预览链接)":"来源图不可用(缺少OSS路径)"},targetUnavailableText(){return this.record.targetImageUrl?"":this.record.targetOssPath?"PROCESSING"===this.record.llmErrorCode?"候选图待生成(处理中)":"候选图不可用(无可用预览链接)":"候选图不可用(缺少OSS路径)"}},methods:{resolveStatusLabel(e){const i={pending:"待定","confirmed-valid":"确认有效","confirmed-rejected":"确认排除"};return i[e]||(null===e||void 0===e||""===e?"-":String(e))},buildHistorySummary(e={}){const i=this.resolveStatusLabel(e.beforeReviewDecision||e.beforeReviewStatus),t=this.resolveStatusLabel(e.afterReviewDecision||e.afterReviewStatus),r=e.beforeRecordStatus||"-",a=e.afterRecordStatus||"-";return`核验结果 ${i} → ${t};记录状态 ${r} → ${a}`}}},l=n,d=(t("da7c"),t("1805")),c=Object(d["a"])(l,s,o,!1,null,"22454123",null),u=c.exports,v=function(){var e=this,i=e._self._c;return i("div",{staticClass:"similar-image-review-decision-panel"},[i("el-radio-group",{staticClass:"similar-image-review-decision-panel__group",attrs:{value:e.value,size:"mini"},on:{input:function(i){return e.$emit("input",i)}}},[i("el-radio-button",{attrs:{label:"pending"}},[e._v("待定")]),i("el-radio-button",{attrs:{label:"confirmed-valid"}},[e._v("确认有效")]),i("el-radio-button",{attrs:{label:"confirmed-rejected"}},[e._v("确认排除")])],1),i("el-button",{staticClass:"similar-image-review-decision-panel__action",attrs:{size:"mini",type:"primary",loading:e.saving},on:{click:function(i){return e.$emit("save")}}},[e._v(" 保存 ")]),i("el-button",{staticClass:"similar-image-review-decision-panel__action",attrs:{size:"mini"},on:{click:function(i){return e.$emit("toggle-history")}}},[e._v(" "+e._s(e.historyVisible?"收起历史":"查看历史")+" ")])],1)},h=[],m={name:"SimilarImageReviewDecisionPanel",props:{value:{type:String,default:"pending"},saving:{type:Boolean,default:!1},historyVisible:{type:Boolean,default:!1}}},g=m,f=(t("c096"),Object(d["a"])(g,v,h,!1,null,"638e9bf2",null)),y=f.exports,p=t("61a9"),_=t("d5c9"),b={name:"SimilarImageReviewPage",data(){return{loading:!1,savingRecordId:null,records:[],total:0,errorMessage:"",draftStatusMap:{},historyMap:{},historyVisibleMap:{},historyLoadingMap:{},batchDecision:"confirmed-valid",batchSaving:!1,llmCategoryOptions:["医疗类","物损类","单据类","现场类","证件类","其他"],filters:{reviewStatus:"pending",onlyPending:!0,llmCategoryLevel1:"",similarityScoreMin:.97,similarityScoreMax:1,similarityScoreOrder:"desc",pageNo:1,pageSize:20}}},components:{SimilarImageReviewCard:u,SimilarImageReviewDecisionPanel:y},inject:{injectedInterfaceUrl:{from:"interfaceUrl",default:""}},created(){this.hydrateFiltersFromRoute(),this.fetchRecords()},methods:{getResolvedInterfaceUrl(){return this.injectedInterfaceUrl||""},goWorkbench(){this.$router.push({path:"/calculatorTool/reviewWorkbench"})},goDuplicateReview(){this.$router.push({path:"/calculatorTool/duplicateReview"})},hydrateFiltersFromRoute(){const e=this.$route&&this.$route.query||{},i="false"!==e.onlyPending;this.filters.onlyPending=i,this.filters.reviewStatus=i?"pending":e.reviewStatus||"all",this.filters.llmCategoryLevel1=e.llmCategoryLevel1||"",this.filters.similarityScoreMin=this.parseSimilarityValue(e.similarityScoreMin,.97),this.filters.similarityScoreMax=this.parseSimilarityValue(e.similarityScoreMax,1),this.filters.similarityScoreOrder=this.parseSimilarityOrder(e.similarityScoreOrder),this.filters.pageNo=Number(e.pageNo)>0?Number(e.pageNo):1},parseSimilarityValue(e,i){const t=Number(e);return Number.isFinite(t)?t:i},parseSimilarityOrder(e){return"asc"===e?"asc":"desc"},syncRouteQuery(){this.$router&&this.$route&&this.$router.replace({query:{onlyPending:this.filters.onlyPending?"true":"false",reviewStatus:this.filters.reviewStatus,llmCategoryLevel1:this.filters.llmCategoryLevel1||void 0,similarityScoreMin:this.filters.similarityScoreMin,similarityScoreMax:this.filters.similarityScoreMax,similarityScoreOrder:this.filters.similarityScoreOrder||void 0,pageNo:this.filters.pageNo>1?String(this.filters.pageNo):void 0}}).catch(()=>{})},openWorkbenchWithFocus(e={}){const i=String(e.caseNo||"").trim(),t=e.focusMaterialId,r=String(e.focusFileHash||"").trim(),a=String(e.focusMaterialType||"").trim();if(!i||!t&&!r)return void this.$message.warning("当前图片缺少定位信息,暂不可跳转");const s=Object(p["a"])("/calculatorTool/medicalThreeColumn",{caseNo:i,focusMaterialId:t,focusFileHash:r,focusMaterialType:a});window.open(s,"_blank")},handleOpenWorkbench(e,i){e&&("source"!==i?this.openWorkbenchWithFocus({caseNo:e.targetCaseNo,focusMaterialId:e.targetImageId,focusFileHash:e.targetFileHash||e.hitObjectId}):this.openWorkbenchWithFocus({caseNo:e.sourceCaseNo,focusMaterialId:e.sourceImageId,focusFileHash:e.sourceFileHash}))},async fetchRecords(){this.loading=!0,this.errorMessage="";try{const e=await Object(_["c"])(this.getResolvedInterfaceUrl(),{riskType:_["a"].SIMILAR_IMAGE_REVIEW,reviewStatus:"all",reviewDecision:this.filters.onlyPending?"pending":this.filters.reviewStatus,sourceCaseNo:this.filters.sourceCaseNo,extFilter1:this.filters.llmCategoryLevel1||"",similarityScoreMin:this.filters.similarityScoreMin,similarityScoreMax:this.filters.similarityScoreMax,similarityScoreOrder:this.filters.similarityScoreOrder,pageNo:this.filters.pageNo,pageSize:this.filters.pageSize},this.instance,e=>{var i,t,r,a,s,o,n,l,d,c,u,v,h,m,g,f,y,p,_;return{...e,sourceImageId:(null===e||void 0===e||null===(i=e.detailPayload)||void 0===i?void 0:i.sourceImageId)||(null===e||void 0===e?void 0:e.primaryCaseNo)||"",hitObjectId:(null===e||void 0===e?void 0:e.bizKey)||(null===e||void 0===e||null===(t=e.detailPayload)||void 0===t?void 0:t.hitObjectId)||"",sourceCaseNo:(null===e||void 0===e?void 0:e.primaryCaseNo)||(null===e||void 0===e||null===(r=e.detailPayload)||void 0===r?void 0:r.sourceCaseNo)||"",targetCaseNo:Array.isArray(null===e||void 0===e?void 0:e.relatedCaseNoList)?e.relatedCaseNoList[1]:(null===e||void 0===e||null===(a=e.detailPayload)||void 0===a?void 0:a.targetCaseNo)||"",targetImageId:(null===e||void 0===e||null===(s=e.detailPayload)||void 0===s?void 0:s.targetImageId)||"",sourceOssPath:(null===e||void 0===e||null===(o=e.detailPayload)||void 0===o?void 0:o.sourceOssPath)||"",targetOssPath:(null===e||void 0===e||null===(n=e.detailPayload)||void 0===n?void 0:n.targetOssPath)||"",sourceImageUrl:(null===e||void 0===e?void 0:e.sourceImageUrl)||(null===e||void 0===e||null===(l=e.detailPayload)||void 0===l?void 0:l.sourceImageUrl)||"",targetImageUrl:(null===e||void 0===e?void 0:e.targetImageUrl)||(null===e||void 0===e||null===(d=e.detailPayload)||void 0===d?void 0:d.targetImageUrl)||"",sourceFileHash:(null===e||void 0===e||null===(c=e.detailPayload)||void 0===c?void 0:c.sourceFileHash)||"",targetFileHash:(null===e||void 0===e||null===(u=e.detailPayload)||void 0===u?void 0:u.targetFileHash)||"",similarityScore:(null===e||void 0===e?void 0:e.extNum1)||(null===e||void 0===e||null===(v=e.detailPayload)||void 0===v?void 0:v.similarityScore)||0,reviewStatus:(null===e||void 0===e?void 0:e.reviewDecision)||(null===e||void 0===e?void 0:e.reviewStatus)||"pending",llmCategoryLevel1:(null===e||void 0===e?void 0:e.extStr1)||(null===e||void 0===e||null===(h=e.detailPayload)||void 0===h?void 0:h.llmCategoryLevel1)||"",llmCategoryLevel2:(null===e||void 0===e?void 0:e.extStr2)||(null===e||void 0===e||null===(m=e.detailPayload)||void 0===m?void 0:m.llmCategoryLevel2)||"",llmStatus:(null===e||void 0===e||null===(g=e.detailPayload)||void 0===g?void 0:g.llmStatus)||"",llmRetryCount:(null===e||void 0===e?void 0:e.extNum2)||(null===e||void 0===e||null===(f=e.detailPayload)||void 0===f?void 0:f.llmRetryCount)||0,llmErrorCode:(null===e||void 0===e?void 0:e.reasonCode)||(null===e||void 0===e||null===(y=e.detailPayload)||void 0===y?void 0:y.llmErrorCode)||"",llmErrorMessage:(null===e||void 0===e?void 0:e.reasonDesc)||(null===e||void 0===e||null===(p=e.detailPayload)||void 0===p?void 0:p.llmErrorMessage)||"",contextSummary:(null===e||void 0===e?void 0:e.summary)||(null===e||void 0===e||null===(_=e.detailPayload)||void 0===_?void 0:_.contextSummary)||"",decisionNote:(null===e||void 0===e?void 0:e.decisionNote)||"",updatedBy:(null===e||void 0===e?void 0:e.reviewerName)||"",riskEventId:String((null===e||void 0===e?void 0:e.riskEventId)||(null===e||void 0===e?void 0:e.reviewRecordId)||"")}});if(!e||e.status<200||e.status>=300)throw new Error("相似图核验记录加载失败");const i=e&&e.data||{};if(1!==i.code&&void 0!==i.code)throw new Error(i.message||"相似图核验记录加载失败");const t=i.data||{};this.records=Array.isArray(t.items)?t.items:[],this.total=Number(t.total||0)||0,this.historyMap={},this.historyVisibleMap={},this.historyLoadingMap={},this.draftStatusMap=this.records.reduce((e,i)=>(e[i.riskEventId]=i.reviewStatus||"pending",e),{})}catch(e){this.records=[],this.total=0,this.historyMap={},this.historyVisibleMap={},this.historyLoadingMap={},this.errorMessage=e&&e.message?e.message:"相似图核验记录加载失败"}finally{this.loading=!1}},handleReviewStatusChange(e){this.filters.reviewStatus=e,this.filters.pageNo=1,this.syncRouteQuery(),this.fetchRecords()},handleOnlyPendingToggle(e){this.filters.onlyPending=Boolean(e),this.filters.reviewStatus=this.filters.onlyPending?"pending":"all",this.filters.pageNo=1,this.syncRouteQuery(),this.fetchRecords()},handlePageChange(e){this.filters.pageNo=e,this.syncRouteQuery(),this.fetchRecords()},handleCategoryChange(){this.filters.pageNo=1,this.syncRouteQuery(),this.fetchRecords()},handleSimilarityFilterChange(){Number(this.filters.similarityScoreMin)>=Number(this.filters.similarityScoreMax)?this.$message.warning("相似度下限必须小于上限"):(this.filters.pageNo=1,this.syncRouteQuery(),this.fetchRecords())},handleBatchSaveConfirm(){if(!this.records.length)return void this.$message.warning("当前页没有可保存的记录");const e={pending:"待定","confirmed-valid":"确认有效","confirmed-rejected":"确认排除"},i=e[this.batchDecision]||this.batchDecision||"待定";this.$confirm(`确认将当前页 ${this.records.length} 条记录统一标记为「${i}」吗?`,"批量保存确认",{confirmButtonText:"确认保存",cancelButtonText:"取消",type:"warning"}).then(()=>this.handleBatchSave()).catch(()=>{})},async handleSave(e){const i=String(e.riskEventId||""),t=this.draftStatusMap[i]||"pending";this.savingRecordId=i;try{const e=await Object(_["e"])(this.getResolvedInterfaceUrl(),i,{decision:t},this.instance);if(!e||e.status<200||e.status>=300)throw new Error("保存失败");const r=e&&e.data||{};if(1!==r.code&&void 0!==r.code)throw new Error(r.message||"保存失败");const a=r.data||{},s=this.records.map(e=>e.riskEventId===i?{...e,...a,reviewStatus:t}:e);this.draftStatusMap={...this.draftStatusMap,[i]:t},this.filters.onlyPending&&"pending"!==t?(this.records=s.filter(e=>e.riskEventId!==i),this.total=Math.max(0,Number(this.total||0)-1),!this.records.length&&this.total>0&&await this.fetchRecords()):this.records=s,this.$message.success("判断结果已保存")}catch(r){this.$message.error(r&&r.message?r.message:"保存失败")}finally{this.savingRecordId=null}},async toggleHistory(e){const i=String(e&&e.riskEventId||"").trim();if(!i)return void this.$message.warning("核验记录ID缺失");const t=Boolean(this.historyVisibleMap[i]);if(this.$set(this.historyVisibleMap,i,!t),!t&&!Object.prototype.hasOwnProperty.call(this.historyMap,i)){this.$set(this.historyLoadingMap,i,!0);try{const e=await Object(_["b"])(this.getResolvedInterfaceUrl(),i,this.instance),t=e&&e.data||{};if(1!==t.code&&void 0!==t.code)throw new Error(t.message||"历史加载失败");this.$set(this.historyMap,i,Array.isArray(t.data)?t.data:[])}catch(r){this.$set(this.historyMap,i,[]),this.$message.error(r&&r.message?r.message:"历史加载失败")}finally{this.$set(this.historyLoadingMap,i,!1)}}},async handleBatchSave(){const e=this.records.map(e=>e&&e.riskEventId).filter(e=>String(e||"").trim().length>0);if(!e.length)return void this.$message.warning("当前页没有可保存的记录");const i=this.batchDecision||"pending";this.batchSaving=!0;try{var t;const r=await Object(_["d"])(this.getResolvedInterfaceUrl(),{riskType:_["a"].SIMILAR_IMAGE_REVIEW,riskEventIds:e,decision:i},this.instance);if(!r||r.status<200||r.status>=300)throw new Error("批量保存失败");const a=r&&r.data||{};if(1!==a.code&&void 0!==a.code)throw new Error(a.message||"批量保存失败");this.draftStatusMap=e.reduce((e,t)=>(e[t]=i,e),{...this.draftStatusMap}),this.filters.onlyPending&&"pending"!==i?(this.records=[],this.total=Math.max(0,Number(this.total||0)-e.length),await this.fetchRecords()):this.records=this.records.map(t=>({...t,reviewStatus:e.includes(t.riskEventId)?i:t.reviewStatus}));const s=Number((null===a||void 0===a||null===(t=a.data)||void 0===t?void 0:t.updatedCount)||e.length)||e.length;this.$message.success(`已批量保存 ${s} 条判断结果`)}catch(r){this.$message.error(r&&r.message?r.message:"批量保存失败")}finally{this.batchSaving=!1}}}},w=b,S=(t("d2db"),Object(d["a"])(w,r,a,!1,null,"71e22672",null));i["default"]=S.exports},"865d":function(e,i,t){"use strict";var r=t("04c2"),a=t("f370").left,s=t("d1da"),o=t("4de2"),n=t("c3c0"),l=!n&&o>79&&o<83,d=l||!s("reduce");r({target:"Array",proto:!0,forced:d},{reduce:function(e){var i=arguments.length;return a(this,e,i,i>1?arguments[1]:void 0)}})},9301:function(e,i,t){},c096:function(e,i,t){"use strict";t("38c4")},c3c0:function(e,i,t){"use strict";var r=t("4c15");e.exports="NODE"===r},d1da:function(e,i,t){"use strict";var r=t("56ce");e.exports=function(e,i){var t=[][e];return!!t&&r((function(){t.call(null,i||function(){return 1},1)}))}},d2db:function(e,i,t){"use strict";t("001f")},d5c9:function(e,i,t){"use strict";t.d(i,"a",(function(){return o})),t.d(i,"c",(function(){return b})),t.d(i,"b",(function(){return w})),t.d(i,"e",(function(){return S})),t.d(i,"d",(function(){return C}));t("0f5d"),t("8f26"),t("d9d9"),t("963e"),t("209c");var r=t("5923"),a=t("eb06"),s=t.n(a);const o={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 n(e){var i;const t=e||(null===(i=r["default"].prototype)||void 0===i?void 0:i.instance)||s.a.create();return t&&"function"===typeof t.get?t:s.a.create()}function l(e,i){var t;const r=String(e||"").trim();if(r)return r.replace(/\/$/,"");const a=String((null===i||void 0===i||null===(t=i.defaults)||void 0===t?void 0:t.baseURL)||"").trim();return a.replace(/\/$/,"")}function d(e,i){const t=i.startsWith("/")?i:"/"+i,r=String(e||"").trim().replace(/\/$/,"");return r?`${r}/unified-review${t}`:"/unified-review"+t}function c(e,i){const t=i.startsWith("/")?i:"/"+i,r=String(e||"").trim().replace(/\/$/,"");return r?`${r}/manager/unified-review${t}`:"/manager/unified-review"+t}function u(e){var i;const t=Number((null===e||void 0===e||null===(i=e.response)||void 0===i?void 0:i.status)||0);return 404===t||405===t}function v(e,i){return e().catch(e=>{if(!u(e))throw e;return i()})}function h(e){return Array.isArray(e)?e:e?String(e).split(",").map(e=>e.trim()).filter(Boolean):[]}function m(e){if(!e)return{};if("object"===typeof e)return e;try{return JSON.parse(e)}catch(i){return{}}}function g(e){return Boolean(e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"code")&&Object.prototype.hasOwnProperty.call(e,"message"))}function f(e){if(g(e))return e;const i=e&&e.data;return g(i)?i:i||{}}function y(e={}){const i=e.primaryCaseNo||e.primary_case_no||"",t=h(e.relatedCaseNoList||e.related_case_no_list),r=m(e.detailPayload||e.detail_payload),a=m(e.rulePayload||e.rule_payload),s=m(e.excludePayload||e.exclude_payload),o=e.riskEventId||e.risk_event_id||e.reviewRecordId,n=null==o?"":String(o),l=e.reviewRecordId||e.riskEventId||e.risk_event_id,d=null==l?"":String(l);return{...e,reviewRecordId:d,riskEventId:n,primaryCaseNo:i,relatedCaseNoList:t,detailPayload:r,rulePayload:a,excludePayload:s}}function p(e,i){const t=f(e),r=t.data||{},a=Array.isArray(r.items)?r.items.map(e=>i(y(e))):[];return{...e,data:{...t,data:{...r,items:a}}}}function _(e,i){const t=f(e),r=Array.isArray(t.data)?t.data.map(e=>i({...e,snapshotPayload:m(e.snapshotPayload||e.snapshot_payload),changedAt:e.changedAt||e.createdAt||e.created_at})):[];return{...e,data:{...t,data:r}}}function b(e="",i={},t,r=(e=>e)){const a=n(t),s=l(e,a);return v(()=>a.post(d(s,"/query"),i||{}),()=>a.post(c(s,"/query"),i||{})).then(e=>p(e,r))}function w(e="",i,t,r=(e=>e)){if(!i)throw new Error("riskEventId 不能为空");const a=n(t),s=l(e,a);return v(()=>a.get(d(s,`/${i}/history`),{params:{}}),()=>a.get(c(s,`/${i}/history`),{params:{}})).then(e=>_(e,r))}function S(e="",i,t={},r,a=(e=>e)){if(!i)throw new Error("riskEventId 不能为空");if(!t.decision)throw new Error("payload.decision 必须提供");const s=n(r),o=l(e,s);return v(()=>s.post(d(o,`/${i}/decision`),t),()=>s.post(c(o,`/${i}/decision`),t)).then(e=>{const i=f(e);return{...e,data:{...i,data:a(y(i.data||{}))}}})}function C(e="",i={},t){if(!Array.isArray(i.riskEventIds)||!i.riskEventIds.length)throw new Error("payload.riskEventIds 必须提供");if(!i.decision)throw new Error("payload.decision 必须提供");const r=n(t),a=l(e,r);return v(()=>r.post(d(a,"/batch-decision"),i),()=>r.post(c(a,"/batch-decision"),i))}},da7c:function(e,i,t){"use strict";t("9301")},de54:function(e,i,t){"use strict";var r=TypeError;e.exports=function(e,i){if(e=0:h>m;m+=g)m in v&&(c=t(c,v[m],m,u));return c}};e.exports={left:d(!1),right:d(!0)}},ff4d:function(e,i,t){"use strict";var r=t("768e"),a=t("42ee"),s=t("bd47"),o=t("de54"),n=URLSearchParams,l=n.prototype,d=a(l.getAll),c=a(l.has),u=new n("a=1");!u.has("a",2)&&u.has("a",void 0)||r(l,"has",(function(e){var i=arguments.length,t=i<2?void 0:arguments[1];if(i&&void 0===t)return c(this,e);var r=d(this,e);o(i,1);var a=s(t),n=0;while(n