Files
threeonecheck_web/unpackage/dist/build/mp-weixin/pages/hiddendanger/rectification.js

2 lines
20 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";const e=require("../../common/vendor.js"),a=require("../../request/api.js"),t=require("../../utils/draftCache.js"),l=require("../../utils/useDraftCache.js"),n=require("../../utils/upload.js");if(!Array){(e.resolveComponent("up-textarea")+e.resolveComponent("up-input")+e.resolveComponent("up-datetime-picker")+e.resolveComponent("up-checkbox")+e.resolveComponent("u-popup")+e.resolveComponent("up-upload")+e.resolveComponent("up-radio")+e.resolveComponent("up-radio-group")+e.resolveComponent("wd-signature"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-textarea/u-textarea.js")+(()=>"../../uni_modules/uview-plus/components/u-input/u-input.js")+(()=>"../../uni_modules/uview-plus/components/u-datetime-picker/u-datetime-picker.js")+(()=>"../../uni_modules/uview-plus/components/u-checkbox/u-checkbox.js")+(()=>"../../uni_modules/uview-plus/components/u-popup/u-popup.js")+(()=>"../../uni_modules/uview-plus/components/u-upload/u-upload.js")+(()=>"../../uni_modules/uview-plus/components/u-radio/u-radio.js")+(()=>"../../uni_modules/uview-plus/components/u-radio-group/u-radio-group.js")+(()=>"../../node-modules/wot-design-uni/components/wd-signature/wd-signature.js"))();const u={__name:"rectification",setup(u){const i=e.ref(""),r=e.ref(""),o=e.ref(""),s=e.ref(""),v=e.ref(!1),d=e.ref(""),c=e.ref(!1),f=e.computed((()=>v.value?"隐患验收":c.value?"加载中...":d.value||"暂无下一步流程")),g=e=>{if(!e)return"";if(e.taskId)return String(e.taskId);if(e.flowTaskId)return String(e.flowTaskId);if(e.currentTaskId)return String(e.currentTaskId);const a=e.assigns||[];for(const t of a)if(null==t?void 0:t.taskId)return String(t.taskId);return""},p=e.ref(300),m=e.ref(300),h=e.ref(!0),y=e.ref(""),I=e.ref(""),w=e.ref(340),S=e.ref(null),C=e.ref(!0),x=e.ref(!1),T=e.ref(""),b=e.ref(!1);let M=null;const P=()=>{clearTimeout(M),C.value=!0,T.value="",S.value&&S.value.clear()},R=e=>{const a=e?n.toSubmitFileUrl(e):"";if(!a)return h.value=!0,I.value="",y.value="",T.value="",void(C.value=!0);I.value=a,y.value=a,T.value="",h.value=!1,C.value=!1},N=e=>{e&&(T.value=e,y.value=e,I.value="",h.value=!1,C.value=!1)},k=()=>{C.value=!1},A=()=>{C.value=!1},D=()=>{C.value=!0,T.value=""},L=()=>{C.value=!1,clearTimeout(M),M=setTimeout((()=>{!h.value||C.value||!S.value||x.value||b.value||(b.value=!0,S.value.confirm())}),600)},F=()=>{console.error("签名图片加载失败:",y.value),e.index.showToast({title:"签名图片加载失败",icon:"none"})},_=()=>{clearTimeout(M),C.value=!0,h.value=!0,y.value="",I.value="",T.value="",e.nextTick$1((()=>{S.value&&S.value.clear()}))},j=e.reactive({rectifyPlan:"",rectificationMeasures:"",controlMeasures:"",rectifyResult:"",planCost:"",actualCost:""}),$=e.ref(""),U=e.ref(!1),E=e.ref(Date.now()),z=e.ref(""),B=e.ref("yes"),q=e.computed((()=>"yes"===B.value)),H=e=>{if(!e)return"";const a=new Date(e);if(Number.isNaN(a.getTime()))return"";return`${a.getFullYear()}-${String(a.getMonth()+1).padStart(2,"0")}-${String(a.getDate()).padStart(2,"0")} ${String(a.getHours()).padStart(2,"0")}:${String(a.getMinutes()).padStart(2,"0")}:${String(a.getSeconds()).padStart(2,"0")}`},V=e=>{if(!e)return null;const a=decodeURIComponent(String(e)).trim().replace("T"," ").replace(/-/g,"/"),t=new Date(a).getTime();return Number.isNaN(t)?null:t},K=e=>{const a=V(e);a?$.value=H(a):e&&($.value=String(e).trim().replace("T"," "))},Y=e=>{const a=W(e);a.length&&(oe.value=a,ie.value=ce(ie.value),Ne(ie.value))},W=e=>null==e||""===e?[]:Array.isArray(e)?e.map((e=>String(e))).filter(Boolean):String(e).split(",").map((e=>String(e).trim())).filter(Boolean),G=(e,a)=>{const t=new Map;return(a||[]).forEach((e=>{(e.users||[]).forEach((a=>{null!=a.identityId&&""!==a.identityId&&t.set(String(a.identityId),pe(a,e))}))})),e.map((e=>t.get(String(e)))).filter(Boolean)},J=(e,a)=>{const t=new Map(a.map((e=>[e.id,e])));return e.forEach((e=>{const a=String(e);if(t.has(a))return;const l=Z.value.find((e=>String(e.identityId)===a));l&&t.set(a,me(l))})),e.map((e=>t.get(String(e)))).filter(Boolean)},O=e=>{E.value=e.value,z.value=H(e.value),U.value=!1},Q=e.ref([]),X=e.ref([]),Z=e.ref([]),ee=e.ref(!1),ae=e.ref([]),te=e.ref([]),le=e.ref(0),ne=e.ref([]),ue=e.ref(!1),ie=e.ref([]),re=e.ref([]),oe=e.ref([]),se=e.ref(0),ve=e.ref([]),de=e=>oe.value.includes(String(e)),ce=e=>[...new Set([...(e||[]).map((e=>String(e))),...oe.value.map((e=>String(e)))])],fe=e=>e.identityName?`${e.nickName}_${e.identityName}`:e.postName?`${e.nickName}_${e.postName}`:e.nickName||"",ge=e=>{const a=fe(e);return de(e.identityId)?`${a}(默认)`:a},pe=(e,a)=>({id:String(e.identityId),userId:e.userId,name:fe(e),deptName:a.deptName}),me=e=>({id:String(e.identityId||e.userId),name:fe(e),deptName:e.deptName||""}),he=e=>0===e.length?"":e.length<=2?e.map((e=>e.name)).join("、"):`${e[0].name}${e.length}`,ye=e.computed((()=>he(te.value))),Ie=e.computed((()=>he(re.value))),we=e.computed((()=>{const e=Q.value[le.value];return(null==e?void 0:e.users)||[]})),Se=e.computed((()=>{const e=Me(ne.value);return he(e)})),Ce=e.computed((()=>new Set(ne.value.map((e=>String(e)))))),xe=e.computed((()=>{const e=X.value[se.value];return(null==e?void 0:e.users)||[]})),Te=e.computed((()=>{const e=Pe(ve.value);return he(e)})),be=e.computed((()=>new Set(ve.value.map((e=>String(e)))))),Me=e=>{let a=G(e,Q.value);if(a.length<e.length){const t=G(e,X.value),l=new Map(a.map((e=>[e.id,e])));t.forEach((e=>{l.has(e.id)||l.set(e.id,e)})),a=e.map((e=>l.get(String(e)))).filter(Boolean)}return J(e,a)},Pe=e=>{let a=G(e,X.value);return J(e,a)},Re=e=>{te.value=Me(e)},Ne=e=>{re.value=Pe(e)},ke=e=>{var a;if(!(null==(a=e.users)?void 0:a.length))return 0;const t=new Set(ne.value.map(String));return e.users.filter((e=>t.has(String(e.identityId)))).length},Ae=e=>{var a;if(!(null==(a=e.users)?void 0:a.length))return 0;const t=new Set(ve.value.map(String));return e.users.filter((e=>t.has(String(e.identityId)))).length};const De=()=>{ne.value=[...ae.value];const e=Q.value.findIndex((e=>{var a;return(null==(a=e.users)?void 0:a.length)>0}));le.value=e>=0?e:0,ee.value=!0},Le=()=>{ee.value=!1},Fe=()=>{ve.value=ce(ie.value);const e=X.value.findIndex((e=>{var a;return(null==(a=e.users)?void 0:a.length)>0}));se.value=e>=0?e:0,ue.value=!0},_e=()=>{ue.value=!1},je=()=>{ae.value=ne.value.map((e=>String(e))),Re(ae.value),ee.value=!1},$e=()=>{ve.value=ce(ve.value),ie.value=ve.value.map((e=>String(e))),Ne(ie.value),ue.value=!1},Ue=async()=>{await(async()=>{try{const e=await a.getRelatedDeptUsers({type:2});0===e.code&&e.data&&(Q.value=e.data,X.value=e.data,ae.value.length>0&&Re(ae.value),ie.value.length>0&&Ne(ie.value))}catch(e){console.error("获取关联部门人员列表失败:",e)}})(),ae.value.length>0&&Re(ae.value)},Ee=e.ref([]),ze=e.getCurrentInstance(),{afterRead:Be,deletePic:qe}=n.createUploadListHandlers(Ee,{watermark:{canvasId:"watermarkCanvas",canvasWidthRef:p,canvasHeightRef:m,instance:ze}}),He=e=>{const a={rectifyPlan:j.rectifyPlan,rectificationMeasures:j.rectificationMeasures,controlMeasures:j.controlMeasures,rectifyResult:j.rectifyResult,planCost:Number(j.planCost)||0,actualCost:Number(j.actualCost)||0,attachments:e,managerIds:ae.value.map((e=>Number(e))),memberIds:ie.value.map((e=>Number(e))),rectifyTime:z.value||H(E.value),signPath:I.value||"",sendMsgFlag:q.value};return $.value&&(a.deadline=$.value),a},Ve=async()=>{const t=Ee.value.filter((e=>"success"===e.status)).map((e=>n.buildAttachmentItem(e)));try{let l;if(v.value){const e={rectifyId:Number(s.value),hazardId:i.value,assignId:r.value,...He(t)};l=await a.updateRectification(e)}else{const e={hazardId:i.value,assignId:r.value,...He(t)};l=await a.submitRectification(e)}e.index.hideLoading(),0===l.code?(Qe(!1),e.index.showToast({title:v.value?"保存成功":"提交成功",icon:"success"}),setTimeout((()=>{e.index.navigateBack()}),1500)):e.index.showToast({title:l.msg||(v.value?"保存失败":"提交失败"),icon:"none"})}catch(l){e.index.hideLoading(),console.error(v.value?"保存整改失败:":"提交整改失败:",l),e.index.showToast({title:"操作失败",icon:"none"})}finally{x.value=!1}},Ke=async()=>{if(j.rectifyPlan)if(j.rectificationMeasures)if(j.controlMeasures)if(j.rectifyResult)if(z.value)if(0!==te.value.length)if(0!==re.value.length)if(h.value){if(!S.value||C.value)return void e.index.showToast({title:"请进行电子签名",icon:"none"});x.value=!0,e.index.showLoading({title:"正在提交...",mask:!0}),S.value.confirm()}else{if(!I.value&&!T.value)return void e.index.showToast({title:"请进行电子签名",icon:"none"});x.value=!0,e.index.showLoading({title:"正在提交...",mask:!0});try{if(!I.value&&T.value){const{url:e}=await n.uploadToCloud(T.value);R(e)}await Ve()}catch(a){x.value=!1,e.index.hideLoading(),console.error("签名上传失败:",a),e.index.showToast({title:"签名上传失败,请重试",icon:"none"})}}else e.index.showToast({title:"请选择整改责任人",icon:"none"});else e.index.showToast({title:"请选择安全管理人员",icon:"none"});else e.index.showToast({title:"请选择实际整改时间",icon:"none"});else e.index.showToast({title:"请输入整改完成情况",icon:"none"});else e.index.showToast({title:"请输入管控措施",icon:"none"});else e.index.showToast({title:"请输入整改措施",icon:"none"});else e.index.showToast({title:"请输入整改方案",icon:"none"})},Ye=async()=>{try{e.index.showLoading({title:"加载中..."});const t=await a.getRectifyDetail({rectifyId:s.value});if(e.index.hideLoading(),0===t.code&&t.data){const a=t.data;j.rectifyPlan=a.rectifyPlan||"",j.rectificationMeasures=a.rectificationMeasures||"",j.controlMeasures=a.controlMeasures||"",j.rectifyResult=a.rectifyResult||"",j.planCost=a.planCost?String(a.planCost):"",j.actualCost=a.actualCost?String(a.actualCost):"",a.deadline&&K(a.deadline),a.rectifyTime&&(e=>{const a=V(e);a?(E.value=a,z.value=H(a)):e&&(z.value=String(e).trim().replace("T"," "))})(a.rectifyTime);const l=(e=>e&&(e.signPath||e.signUrl||e.signature||e.signatureUrl||e.signaturePath)||"")(a);console.log("整改详情签名路径:",l),R(l),i.value=a.hazardId||"",r.value=a.assignId||"";const u=g(a);u&&(o.value=u),Z.value=[...Array.isArray(a.managers)?a.managers:[],...Array.isArray(a.members)?a.members:[]];const s=(e=>{const a=W(e.managerIds??e.manageIds??e.manageIdentityIds??e.managerIdentityIds);return a.length>0?a:Array.isArray(e.managers)&&e.managers.length>0?e.managers.map((e=>String(e.identityId??e.userId))).filter(Boolean):[]})(a);s.length>0&&(ae.value=s);const v=W(a.memberIds??a.memberIdentityIds);v.length>0?ie.value=v:a.rectifierIdentityId&&(ie.value=[String(a.rectifierIdentityId)]),a.assigneeIdentityId?Y(a.assigneeIdentityId):a.rectifierIdentityId&&Y(a.rectifierIdentityId),await Ue(),a.attachments&&a.attachments.length>0&&(Ee.value=a.attachments.map((e=>n.mapServerFileToUploadItem(e)))),e.index.setNavigationBarTitle({title:"编辑整改信息"})}}catch(t){e.index.hideLoading(),console.error("获取整改详情失败:",t),e.index.showToast({title:"获取详情失败",icon:"none"})}},We=e.ref(!1),Ge=async()=>{if(i.value){We.value=!0;try{const t=await a.getHiddenDangerDetail({hazardId:i.value,assignId:r.value});if(0!==t.code||!t.data)return void e.index.showToast({title:"获取隐患详情失败",icon:"none"});const{title:l,description:n}=t.data,u=await a.generateRectifyPlan({title:l,description:n});0===u.code&&u.data?(u.data.rawResponse&&(j.rectifyPlan=u.data.rawResponse),e.index.showToast({title:"AI生成完成",icon:"success",duration:2e3})):e.index.showToast({title:u.msg||"AI生成失败",icon:"none"})}catch(t){console.error("AI生成整改方案失败:",t),e.index.showToast({title:"AI生成失败请重试",icon:"none"})}finally{We.value=!1}}else e.index.showToast({title:"缺少隐患信息",icon:"none"})},Je=e.ref([]),{showRestoreBanner:Oe,clear:Qe,restore:Xe,save:Ze,bindAutoSave:ea}=l.useDraftCache({getKey:()=>t.buildDraftKey(t.DRAFT_NS.RECTIFY,i.value,s.value),getFallbackKeys:()=>{const e=t.buildDraftKey(t.DRAFT_NS.RECTIFY,i.value,s.value),a=t.buildDraftKeyCompact(t.DRAFT_NS.RECTIFY,i.value,s.value);return a!==e?[a]:[]},getPayload:()=>({formData:{rectifyPlan:j.rectifyPlan,rectificationMeasures:j.rectificationMeasures,controlMeasures:j.controlMeasures,rectifyResult:j.rectifyResult,planCost:j.planCost,actualCost:j.actualCost},fileList1:Ee.value,signatureServerPath:I.value,signatureUrl:y.value,signatureLocalPath:T.value,showCanvas:h.value,signaturePaths:Je.value,sendMsgFlagRadio:B.value}),hasContent:e=>{const a=e.formData||{};return!!(a.rectifyPlan||a.rectificationMeasures||a.controlMeasures||a.rectifyResult||a.planCost||a.actualCost||e.fileList1&&e.fileList1.length>0||e.signatureServerPath||e.signatureLocalPath||e.signaturePaths&&e.signaturePaths.length>0)},applyPayload:e=>{const a=e.formData||{};j.rectifyPlan=a.rectifyPlan||"",j.rectificationMeasures=a.rectificationMeasures||"",j.controlMeasures=a.controlMeasures||"",j.rectifyResult=a.rectifyResult||"",j.planCost=a.planCost||"",j.actualCost=a.actualCost||"",Ee.value=e.fileList1||[],Je.value=e.signaturePaths||[],e.signatureServerPath||e.signatureUrl?R(e.signatureServerPath||e.signatureUrl):e.signatureLocalPath?N(e.signatureLocalPath):!1===e.showCanvas&&(h.value=!1),B.value="no"===e.sendMsgFlagRadio?"no":"yes"},clearForm:()=>{j.rectifyPlan="",j.rectificationMeasures="",j.controlMeasures="",j.rectifyResult="",j.planCost="",j.actualCost="",Ee.value=[],I.value="",y.value="",T.value="",h.value=!0,Je.value=[],S.value&&S.value.clear(),B.value="yes"},canSave:()=>!(!i.value&&!s.value),onAfterRestore:e=>{var a;e.signatureServerPath||e.signatureUrl||e.signatureLocalPath||(null==(a=e.signaturePaths)?void 0:a.length)>0&&setTimeout((()=>{S.value&&(C.value=!1)}),450)}});return ea((()=>[j.rectifyPlan,j.rectificationMeasures,j.controlMeasures,j.rectifyResult,j.planCost,j.actualCost,Ee.value,I.value,y.value,T.value,h.value,Je.value,B.value])),e.onHide((()=>{h.value&&!C.value&&S.value&&!b.value&&(b.value=!0,S.value.confirm()),Ze()})),e.onLoad((t=>{try{const a=e.index.getSystemInfoSync();w.value=a.windowWidth-40}catch(l){console.error("获取系统信息失败:",l)}t.hazardId&&(i.value=t.hazardId),t.assignId&&(r.value=t.assignId),t.taskId&&(o.value=t.taskId),!t.rectifyId&&t.assigneeIdentityId&&((e,a,t)=>{if(!t)return;const l=String(t),n=a?decodeURIComponent(String(a)).trim():"";Z.value.some((e=>String(e.identityId)===l))||Z.value.push({userId:e||"",identityId:t,nickName:n,deptName:""}),oe.value.includes(l)||(oe.value=[...oe.value,l]),ie.value=ce([l]),Ne(ie.value)})(t.assigneeId,t.assigneeName,t.assigneeIdentityId),t.rectifyId||Ue(),t.rectifyId?(s.value=t.rectifyId,v.value="1"===t.isEdit,Ye()):(Xe(),E.value=Date.now(),z.value=H(E.value)),t.deadline&&K(t.deadline),t.rectifyId||(async()=>{c.value=!0;try{let e=o.value;if(!e&&s.value){const t=await a.getRectifyDetail({rectifyId:s.value});if(0===t.code&&t.data){const a=t.data;e=g(a),!i.value&&a.hazardId&&(i.value=a.hazardId),!r.value&&a.assignId&&(r.value=a.assignId),e&&(o.value=e)}}if(!e&&i.value){const t=await a.getHiddenDangerDetail({hazardId:i.value,assignId:r.value});0===t.code&&t.data&&(e=g(t.data),e&&(o.value=e))}if(!e)return void(d.value="");const t=await a.getFlowNextNodes({taskId:e});if(0===t.code){const e=t.data&&"object"==typeof t.data?t.data:t;d.value=(e=>{var a;if(!e)return"";const t=e.branches||[],l=t.find((e=>e.matched))||t[0];return(null==(a=null==l?void 0:l.nextNode)?void 0:a.taskName)||""})(e)}else d.value=""}catch(e){console.error("获取下一步流程失败:",e),d.value=""}finally{c.value=!1}})()})),(a,t)=>e.e({a:e.unref(Oe)},e.unref(Oe)?{b:e.o((a=>e.unref(Qe)(!0)))}:{},{c:!We.value},(We.value,{}),{d:e.t(We.value?"AI生成中...":"AI生成整改方案"),e:We.value,f:We.value,g:e.o(Ge),h:e.o((e=>j.rectifyPlan=e)),i:e.p({placeholder:"请输入内容",maxlength:-1,autoHeight:!0,modelValue:j.rectifyPlan}),j:e.o((e=>j.rectificationMeasures=e)),k:e.p({placeholder:"请输入整改措施",modelValue:j.rectificationMeasures}),l:e.o((e=>j.controlMeasures=e)),m:e.p({placeholder:"请输入管控措施",modelValue:j.controlMeasures}),n:e.o((e=>j.rectifyResult=e)),o:e.p({placeholder:"请输入内容",modelValue:j.rectifyResult}),p:e.o((e=>j.planCost=e)),q:e.p({placeholder:"请输入内容",type:"number",modelValue:j.planCost}),r:e.o((e=>j.actualCost=e)),s:e.p({placeholder:"请输入内容",type:"number",modelValue:j.actualCost}),t:e.t($.value||"暂无"),v:$.value?"":1,w:e.t(z.value||"请选择实际整改时间"),x:z.value?"":1,y:e.o((e=>U.value=!0)),z:e.o(O),A:e.o((e=>U.value=!1)),B:e.o((e=>U.value=!1)),C:e.o((e=>E.value=e)),D:e.p({show:U.value,mode:"datetime",modelValue:E.value}),E:e.t(te.value.length>0?ye.value:"请选择安全管理人员(可多选)"),F:0===te.value.length?1:"",G:e.o(De),H:e.t(re.value.length>0?Ie.value:"请选择整改责任人(可多选)"),I:0===re.value.length?1:"",J:e.o(Fe),K:e.o(Le),L:ne.value.length>0},ne.value.length>0?{M:e.t(ne.value.length),N:e.t(Se.value)}:{},{O:e.f(Q.value,((a,t,l)=>e.e({a:e.t(a.deptName),b:ke(a)>0},ke(a)>0?{c:e.t(ke(a))}:{},{d:"manager-dept-"+a.deptId,e:e.n({active:le.value===t}),f:e.o((e=>le.value=t),"manager-dept-"+a.deptId)}))),P:0===we.value.length},0===we.value.length?{}:{Q:e.f(we.value,((a,t,l)=>({a:e.o((e=>function(e,a){const t=String(e);a?Ce.value.has(t)||(ne.value=[...ne.value,t]):ne.value=ne.value.filter((e=>String(e)!==t))}(a.identityId,e)),"manager-identity-"+a.identityId),b:"11e16266-8-"+l+",11e16266-7",c:e.p({usedAlone:!0,checked:Ce.value.has(String(a.identityId)),label:fe(a),activeColor:"#2667E9",shape:"square"}),d:"manager-identity-"+a.identityId})))},{R:"manager-dept-users-"+le.value,S:e.o(Le),T:e.o(je),U:e.o(Le),V:e.p({show:ee.value,mode:"bottom",round:"20"}),W:e.o(_e),X:ve.value.length>0},ve.value.length>0?{Y:e.t(ve.value.length),Z:e.t(Te.value)}:{},{aa:e.f(X.value,((a,t,l)=>e.e({a:e.t(a.deptName),b:Ae(a)>0},Ae(a)>0?{c:e.t(Ae(a))}:{},{d:a.deptId,e:e.n({active:se.value===t}),f:e.o((e=>se.value=t),a.deptId)}))),ab:0===xe.value.length},0===xe.value.length?{}:{ac:e.f(xe.value,((a,t,l)=>({a:e.o((t=>function(a,t){const l=String(a);t||!de(l)?t?be.value.has(l)||(ve.value=[...ve.value,l]):ve.value=ve.value.filter((e=>String(e)!==l)):e.index.showToast({title:"默认整改责任人不可取消",icon:"none"})}(a.identityId,t)),"identity-"+a.identityId),b:"11e16266-10-"+l+",11e16266-9",c:e.p({usedAlone:!0,checked:be.value.has(String(a.identityId)),label:ge(a),disabled:de(a.identityId),activeColor:"#2667E9",shape:"square"}),d:"identity-"+a.identityId,e:de(a.identityId)?1:""})))},{ad:"dept-users-"+se.value,ae:e.o(_e),af:e.o($e),ag:e.o(_e),ah:e.p({show:ue.value,mode:"bottom",round:"20"}),ai:e.o(e.unref(Be)),aj:e.o(e.unref(qe)),ak:e.p({fileList:Ee.value,name:"1",multiple:!0,imageMode:"aspectFill",maxCount:10}),al:!ue.value&&!ee.value&&!U.value},ue.value||ee.value||U.value?{}:{am:p.value,an:m.value,ao:p.value+"px",ap:m.value+"px"},{aq:!ue.value&&!ee.value&&!U.value},ue.value||ee.value||U.value?{}:{ar:p.value,as:m.value,at:p.value+"px",av:m.value+"px"},{aw:e.t(f.value),ax:e.p({label:"是",name:"yes",customStyle:{marginRight:"48rpx"}}),ay:e.p({label:"否",name:"no"}),az:e.o((e=>B.value=e)),aA:e.p({placement:"row",activeColor:"#2667e9",modelValue:B.value}),aB:h.value},h.value?{aC:e.o(P)}:{aD:e.o(_)},{aE:!h.value},h.value?{}:e.e({aF:y.value},y.value?{aG:y.value,aH:e.o(F)}:{}),{aI:h.value&&!ue.value&&!ee.value&&!U.value},!h.value||ue.value||ee.value||U.value?{}:{aJ:e.sr(S,"11e16266-15",{k:"signatureRef"}),aK:e.o((a=>(async a=>{if(b.value)return b.value=!1,N(a),void Ze();try{const{url:e}=await n.uploadToCloud(a);R(e),Ze(),x.value&&await Ve()}catch(t){x.value=!1,e.index.hideLoading(),console.error("签名上传失败:",t),e.index.showToast({title:"签名上传失败,请重试",icon:"none"})}})(a.tempFilePath))),aL:e.o(k),aM:e.o(A),aN:e.o(L),aO:e.o(D),aP:e.p({width:w.value,height:160,backgroundColor:"#f8f8f8",penColor:"#000000",lineWidth:3,enableHistory:!1})},{aQ:e.t(v.value?"保存修改":"提交整改"),aR:e.o(Ke),aS:e.gei(a,"")})}},i=e._export_sfc(u,[["__scopeId","data-v-11e16266"]]);wx.createPage(i);