From 2140c5aae2032673cef7055df9738b9bacf37816 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 23 九月 2026 16:46:20 +0800
Subject: [PATCH] 青岛维护

---
 unpackage/dist/build/mp-weixin/pagesSub/ethicalReview/index.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/unpackage/dist/build/mp-weixin/pagesSub/ethicalReview/index.js b/unpackage/dist/build/mp-weixin/pagesSub/ethicalReview/index.js
index f2e53f0..a77491c 100644
--- a/unpackage/dist/build/mp-weixin/pagesSub/ethicalReview/index.js
+++ b/unpackage/dist/build/mp-weixin/pagesSub/ethicalReview/index.js
@@ -1 +1 @@
-"use strict";const e=require("../../common/vendor.js"),o=require("../../utils/dict.js");if(!Array){(e.resolveComponent("u-input")+e.resolveComponent("u-icon")+e.resolveComponent("u-loading-icon"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-input/u-input.js")+(()=>"../../uni_modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../uni_modules/uview-plus/components/u-loading-icon/u-loading-icon.js"))();const n={__name:"index",setup(n){const t=e.ref(!1),i=e.ref(!1),a=e.ref(!0),s=e.ref(1),l=e.ref(10),c=e.ref({}),r=e.ref("all"),u=e.ref(""),d=e.ref({count:0,throughCount:0,rejectCount:0,waiveCount:0}),p=e.ref([]),v=e.ref(0),x=e.ref([{label:"鍏ㄩ儴",value:"all"},{label:"寰呭鏌�",value:"pending"},{label:"瀹℃煡閫氳繃",value:"approved"},{label:"瀹℃煡椹冲洖",value:"rejected"},{label:"宸叉斁寮�",value:"abandoned"}]),g={0:"鏈鏍�",1:"瀹℃煡閫氳繃",2:"瀹℃煡椹冲洖",3:"鏀惧純",4:"淇敼鍚庡悓鎰�"},h=(e,o)=>{if(!c.value[e]||!o)return"";const n=c.value[e].find(e=>e.dictValue==String(o));return n?n.dictLabel:o},m=e=>{if(!e.age)return"鏈煡";const o=h("sys_AgeUnit",e.ageunit)||"宀�";return`${e.age}${o}`},w=e=>{if(!e)return"";const o=new Date(e);return`${o.getFullYear()}-${(o.getMonth()+1).toString().padStart(2,"0")}-${o.getDate().toString().padStart(2,"0")} ${o.getHours().toString().padStart(2,"0")}:${o.getMinutes().toString().padStart(2,"0")}`},f=e=>0==e.receiveStatus?"寰呮帹閫�":1==e.receiveStatus?"鏈槄璇�":2==e.receiveStatus?"宸查槄璇�":3==e.receiveStatus?"瓒呮椂":4==e.receiveStatus?"涓":5==e.receiveStatus?"瀹屾垚":(e.receiveStatus||e.receiveStatus,"寰呮帹閫�"),y=e=>0==e.receiveStatus||1==e.receiveStatus?"abandoned":2==e.receiveStatus?"pending":3==e.receiveStatus||4==e.receiveStatus?"unknown":5==e.receiveStatus?"approved":e.receiveStatus||0===e.receiveStatus?"unknown":"pending",S=()=>{_()},T=()=>{r.value="all",u.value="",_()},_=()=>{s.value=1,a.value=!0,$()},b=async()=>{i.value=!0,await _(),i.value=!1},C=async()=>{a.value&&!t.value&&(s.value++,await $(!0))},$=async(o=!1)=>{if(!t.value){t.value=!0;try{const n=(()=>{const e={pageNum:s.value,pageSize:l.value};if(u.value&&(e.name=u.value),"all"!==r.value)switch(r.value){case"pending":e.expertconclusion=null;break;case"approved":e.expertconclusion=1;break;case"rejected":e.expertconclusion=2;break;case"abandoned":e.expertconclusion=3}return e})(),t=await e.index.$uapi.get("/project/ethicalreviewopinions/listnew",n);if(console.log(t,"11"),200==t.code){const e=t.rows||[],n=t.total||0;p.value=o?[...p.value,...e]:e,console.log(p.value,"reviewList.value"),v.value=n,a.value=p.value.length<n}else e.index.showToast({title:t.msg||"鍔犺浇澶辫触",icon:"none"})}catch(n){console.error("鍔犺浇妗堜緥鏁版嵁澶辫触:",n),e.index.showToast({title:"鏁版嵁鍔犺浇澶辫触锛岃閲嶈瘯",icon:"none"})}finally{t.value=!1,e.index.stopPullDownRefresh()}}},j=o=>{e.index.navigateTo({url:`/pagesSub/ethicalReview/ethicalInfo?fcid=${o.fcid}&type=review&status=${o.expertconclusion||"pending"}&id=${o.id}`})};return e.onLoad(async()=>{c.value=await o.useDict("sys_IDType","sys_user_sex","sys_Nation","sys_BloodType","sys_Infectious","sys_AgeUnit","ReviewForm_status","sys_ethical","expert_Conclusion"),await $(),await(async()=>{const o=await e.index.$uapi.get("/project/ethicalreviewopinions/stateTotal");200==o.code&&(d.value=o.data[0])})()}),e.onShow(()=>{_()}),e.onPullDownRefresh(()=>{b()}),e.onReachBottom(()=>{C()}),(o,n)=>e.e({a:e.t(d.value.count),b:e.t(d.value.throughCount),c:e.t(d.value.rejectCount),d:e.t(d.value.waiveCount),e:e.f(x.value,(o,n,t)=>({a:e.t(o.label),b:o.value,c:r.value==o.value?1:"",d:e.o(e=>(e=>{r.value=e,_()})(o.value),o.value)})),f:e.o(S),g:e.o(e=>u.value=e),h:e.p({placeholder:"鎼滅储鎹愮尞鑰呭鍚嶆垨浣忛櫌鍙�","prefix-icon":"search",clearable:!0,modelValue:u.value}),i:e.f(p.value,(o,n,t)=>{return e.e({a:"10144c6e-1-"+t,b:e.t(o.name||"鏈~鍐欏鍚�"),c:e.t(o.inpatientno||"鏃犱綇闄㈠彿"),d:o.expertname},o.expertname?{e:e.t(o.expertname)}:{},{f:e.t(f(o)),g:e.n(y(o)),h:e.t(1==o.sex?"鐢�":"濂�"),i:e.t(m(o)),j:e.t(h("sys_BloodType",o.bloodtype)||"鏈煡"),k:e.t(o.diagnosisname||"鏈~鍐�"),l:o.createTime},o.createTime?{m:"10144c6e-2-"+t,n:e.p({name:"clock",size:"14",color:"#909399"}),o:e.t(w(o.createTime))}:{},{p:o.conclusiontime},o.conclusiontime?{q:"10144c6e-3-"+t,r:e.p({name:"checkmark-circle",size:"14",color:"#909399"}),s:e.t(w(o.conclusiontime))}:{},{t:o.expertname},o.expertname?{v:"10144c6e-4-"+t,w:e.p({name:"account",size:"14",color:"#909399"}),x:e.t(o.expertname)}:{},{y:o.expertconclusion&&2!==o.expertconclusion},o.expertconclusion&&2!==o.expertconclusion?{z:e.t((i=o.expertconclusion,g[i]||"鏈煡缁撹"))}:{},{A:o.expertopinion},o.expertopinion?{B:e.t(o.expertopinion)}:{},{C:"10144c6e-5-"+t,D:e.o(e=>j(o),o.id||n),E:1==o.expertconclusion},1==o.expertconclusion?{F:"10144c6e-6-"+t,G:e.p({name:"download",size:"14",color:"#52c41a"}),H:e.o(n=>(async o=>{if(o.conclusionannex)try{const n=o.conclusionannex.split(";").filter(e=>e.trim());if(0==n.length)return void e.index.showToast({title:"鏆傛棤鎶ュ憡鍙笅杞�",icon:"none"});e.index.showLoading({title:"涓嬭浇涓�...",mask:!0});const t=n[0];e.index.downloadFile({url:t,success:o=>{if(200==o.statusCode){const n=o.tempFilePath;e.index.saveFile({tempFilePath:n,success:o=>{e.index.hideLoading(),e.index.showToast({title:"涓嬭浇鎴愬姛",icon:"success",duration:2e3}),"weixin"==e.index.getSystemInfoSync().platform&&e.index.openDocument({filePath:o.savedFilePath,showMenu:!0,success:()=>{console.log("鎵撳紑鏂囨。鎴愬姛")},fail:e=>{console.error("鎵撳紑鏂囨。澶辫触",e)}})},fail:o=>{e.index.hideLoading(),e.index.showToast({title:"淇濆瓨鏂囦欢澶辫触",icon:"error",duration:2e3})}})}else e.index.hideLoading(),e.index.showToast({title:"涓嬭浇澶辫触",icon:"error",duration:2e3})},fail:o=>{e.index.hideLoading(),e.index.showToast({title:"涓嬭浇澶辫触",icon:"error",duration:2e3}),console.error("涓嬭浇鏂囦欢澶辫触:",o)}}).onProgressUpdate(e=>{console.log("涓嬭浇杩涘害:",e.progress)})}catch(n){e.index.hideLoading(),console.error("涓嬭浇鎶ュ憡澶辫触:",n),e.index.showToast({title:"涓嬭浇澶辫触",icon:"error",duration:2e3})}else e.index.showToast({title:"鏆傛棤鎶ュ憡鍙笅杞�",icon:"none"})})(o),o.id||n)}:{},{I:2==o.expertconclusion},2==o.expertconclusion?{J:"10144c6e-7-"+t,K:e.p({name:"arrow-up",size:"14",color:"#fa8c16"}),L:e.o(n=>(o=>{e.index.navigateTo({url:`/pages/ethics/appeal?id=${o.fcid||o.id}&caseNo=${o.caseNo||""}&name=${o.name||""}`})})(o),o.id||n)}:{},{M:2==o.expertconclusion||3==o.expertconclusion},2==o.expertconclusion||3==o.expertconclusion?{N:"10144c6e-8-"+t,O:e.p({name:"play-circle",size:"14",color:"#747CF9"}),P:e.o(n=>(async o=>{e.index.showModal({title:"閲嶆柊寮�濮嬪鏌�",content:"纭畾瑕侀噸鏂板紑濮嬭繖涓鏌ユ祦绋嬪悧锛�",success:async n=>{if(n.confirm)try{e.index.showLoading({title:"澶勭悊涓�...",mask:!0});const n=await e.index.$uapi.put(`/project/ethicalreviewopinions/reset/${o.fcid||o.id}`);e.index.hideLoading(),200==n.code?(e.index.showToast({title:"瀹℃煡宸查噸鏂板紑濮�",icon:"success",duration:2e3}),_()):e.index.showToast({title:n.msg||"鎿嶄綔澶辫触",icon:"none",duration:2e3})}catch(t){e.index.hideLoading(),console.error("閲嶆柊寮�濮嬪鏌ュけ璐�:",t),e.index.showToast({title:"鎿嶄綔澶辫触",icon:"error",duration:2e3})}}})})(o),o.id||n)}:{},{Q:o.id||n,R:e.o(e=>j(o),o.id||n)});var i}),j:e.p({name:"order",size:"16",color:"#fff"}),k:e.p({name:"eye",size:"14",color:"#747CF9"}),l:e.p({show:t.value,text:"鍔犺浇涓�..."}),m:!t.value&&0==p.value.length},t.value||0!=p.value.length?{}:{n:e.t(t.value),o:e.t(p.value.length),p:e.p({name:"file-remove",size:"80",color:"#C0C4CC"}),q:e.o(T)},{r:!a.value&&p.value.length>0},(!a.value&&p.value.length,{}),{s:i.value,t:e.o(b),v:e.o(C),w:e.gei(o,"")})}},t=e._export_sfc(n,[["__scopeId","data-v-10144c6e"]]);wx.createPage(t);
+"use strict";const e=require("../../common/vendor.js"),o=require("../../utils/dict.js"),t=require("../../stores/user.js");if(!Array){(e.resolveComponent("u-input")+e.resolveComponent("up-icon")+e.resolveComponent("u-loading-icon"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-input/u-input.js")+(()=>"../../uni_modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../uni_modules/uview-plus/components/u-loading-icon/u-loading-icon.js"))();const n={__name:"index",setup(n){const a=e.ref(!1),i=e.ref(!1),s=e.ref(!0),l=e.ref(1),r=e.ref(10),c=e.ref({}),u=t.useUserStore(),d=e.ref("all"),p=e.ref(""),v=e.ref({count:0,throughCount:0,rejectCount:0,waiveCount:0}),x=e.ref([]),g=e.ref(0),h=e.ref([{label:"鍏ㄩ儴",value:"all"},{label:"寰呭鏌�",value:"pending"},{label:"瀹℃煡閫氳繃",value:"approved"},{label:"涓嶅悓鎰�",value:"rejected"},{label:"寮冩潈",value:"abandoned"}]),w={0:"涓嶅悓鎰�",1:"鍚屾剰",2:"瀹℃煡涓�",3:"寮冩潈",4:"淇敼鍚庡悓鎰�"},m=(e,o)=>{if(!c.value[e]||!o)return"";const t=c.value[e].find(e=>e.dictValue==String(o));return t?t.dictLabel:o},f=e=>{if(!e.age)return"鏈煡";const o=m("sys_AgeUnit",e.ageunit)||"宀�";return`${e.age}${o}`},y=e=>{if(!e)return"";const o=new Date(e);return`${o.getFullYear()}-${(o.getMonth()+1).toString().padStart(2,"0")}-${o.getDate().toString().padStart(2,"0")} ${o.getHours().toString().padStart(2,"0")}:${o.getMinutes().toString().padStart(2,"0")}`},S=e=>0==e.receiveStatus?"寰呮帹閫�":1==e.receiveStatus?"鏈槄璇�":2==e.receiveStatus?"宸查槄璇�":3==e.receiveStatus?"瓒呮椂":4==e.receiveStatus?"涓":5==e.receiveStatus?"瀹屾垚":(e.receiveStatus||e.receiveStatus,"寰呮帹閫�"),_=e=>0==e.receiveStatus||1==e.receiveStatus?"abandoned":2==e.receiveStatus?"pending":3==e.receiveStatus||4==e.receiveStatus?"unknown":5==e.receiveStatus?"approved":e.receiveStatus||0===e.receiveStatus?"unknown":"pending",b=()=>{$()},T=()=>{d.value="all",p.value="",$()},$=()=>{l.value=1,s.value=!0,k()},j=async()=>{i.value=!0,await $(),i.value=!1},C=async()=>{s.value&&!a.value&&(l.value++,await k(!0))},k=async(o=!1)=>{if(!a.value){a.value=!0;try{const t=(()=>{const e={pageNum:l.value,pageSize:r.value};if(p.value&&(e.name=p.value),"all"!==d.value)switch(d.value){case"pending":e.expertconclusion=null;break;case"approved":e.expertconclusion=1;break;case"rejected":e.expertconclusion=0;break;case"abandoned":e.expertconclusion=3}return e})(),n=await e.index.$uapi.get("/project/ethicalreviewopinions/listnew",t);if(console.log(n,"11"),200==n.code){const e=n.rows||[],t=n.total||0;x.value=o?[...x.value,...e]:e,console.log(x.value,"reviewList.value"),g.value=t,s.value=x.value.length<t}else e.index.showToast({title:n.msg||"鍔犺浇澶辫触",icon:"none"})}catch(t){console.error("鍔犺浇妗堜緥鏁版嵁澶辫触:",t),e.index.showToast({title:"鏁版嵁鍔犺浇澶辫触锛岃閲嶈瘯",icon:"none"})}finally{a.value=!1,e.index.stopPullDownRefresh()}}},L=o=>{e.index.navigateTo({url:`/pagesSub/ethicalReview/ethicalInfo?fcid=${o.fcid}&type=review&status=${o.expertconclusion||"pending"}&id=${o.id}`})},z=async o=>{try{const t=await e.index.$uapi.get("/project/ethicalreviewopinions/download",{nitiateId:o.nitiateId||o.fcid||o.id});if(200!=t.code||!t.data||!t.data.downloadUrl)return void e.index.showToast({title:t.msg||"鏆傛棤鎶ュ憡鍙笅杞�",icon:"none"});const n=t.data.downloadUrl,a=(t.data.downloadName||n.split("/").pop(),u.baseUrlHt+"/profile"+n);e.index.showLoading({title:"涓嬭浇涓�...",mask:!0});const i=e.index.getStorageSync("token")||"";e.index.downloadFile({url:a,header:{Authorization:i?`Bearer ${i}`:""},success:o=>{200==o.statusCode?e.index.saveFile({tempFilePath:o.tempFilePath,success:o=>{e.index.hideLoading(),e.index.showToast({title:"涓嬭浇鎴愬姛",icon:"success",duration:2e3}),e.index.openDocument({filePath:o.savedFilePath,showMenu:!0,success:()=>{console.log("鎵撳紑鏂囨。鎴愬姛")},fail:e=>{console.error("鎵撳紑鏂囨。澶辫触",e)}})},fail:()=>{e.index.hideLoading(),e.index.showToast({title:"淇濆瓨鏂囦欢澶辫触",icon:"error",duration:2e3})}}):(e.index.hideLoading(),e.index.showToast({title:"涓嬭浇澶辫触",icon:"error",duration:2e3}))},fail:o=>{e.index.hideLoading(),e.index.showToast({title:"涓嬭浇澶辫触",icon:"error",duration:2e3}),console.error("涓嬭浇鏂囦欢澶辫触:",o)}}).onProgressUpdate(e=>{console.log("涓嬭浇杩涘害:",e.progress)})}catch(t){e.index.hideLoading(),console.error("涓嬭浇鎶ュ憡澶辫触:",t),e.index.showToast({title:"涓嬭浇澶辫触",icon:"error",duration:2e3})}};return e.onLoad(async()=>{c.value=await o.useDict("sys_IDType","sys_user_sex","sys_Nation","sys_BloodType","sys_Infectious","sys_AgeUnit","ReviewForm_status","sys_ethical","expert_Conclusion"),await k(),await(async()=>{const o=await e.index.$uapi.get("/project/ethicalreviewopinions/stateTotal");200==o.code&&(v.value=o.data[0])})()}),e.onShow(()=>{$()}),e.onPullDownRefresh(()=>{j()}),e.onReachBottom(()=>{C()}),(o,t)=>e.e({a:e.t(v.value.count),b:e.t(v.value.throughCount),c:e.t(v.value.rejectCount),d:e.t(v.value.waiveCount),e:e.f(h.value,(o,t,n)=>({a:e.t(o.label),b:o.value,c:d.value==o.value?1:"",d:e.o(e=>(e=>{d.value=e,$()})(o.value),o.value)})),f:e.o(b),g:e.o(e=>p.value=e),h:e.p({placeholder:"鎼滅储鎹愮尞鑰呭鍚嶆垨浣忛櫌鍙�","prefix-icon":"search",clearable:!0,modelValue:p.value}),i:e.f(x.value,(o,t,n)=>{return e.e({a:"e7e33ad0-1-"+n,b:e.t(o.name||"鏈~鍐欏鍚�"),c:e.t(o.inpatientno||"鏃犱綇闄㈠彿"),d:o.expertname},o.expertname?{e:e.t(o.expertname)}:{},{f:e.t(S(o)),g:e.n(_(o)),h:e.t(1==o.sex?"鐢�":"濂�"),i:e.t(f(o)),j:e.t(m("sys_BloodType",o.bloodtype)||"鏈煡"),k:e.t(o.diagnosisname||"鏈~鍐�"),l:o.createTime},o.createTime?{m:"e7e33ad0-2-"+n,n:e.p({name:"clock",size:"14",color:"#909399"}),o:e.t(y(o.createTime))}:{},{p:o.conclusiontime},o.conclusiontime?{q:"e7e33ad0-3-"+n,r:e.p({name:"checkmark-circle",size:"14",color:"#909399"}),s:e.t(y(o.conclusiontime))}:{},{t:o.expertname},o.expertname?{v:"e7e33ad0-4-"+n,w:e.p({name:"account",size:"14",color:"#909399"}),x:e.t(o.expertname)}:{},{y:""!==o.expertconclusion&&null!=o.expertconclusion&&2!=o.expertconclusion},""!==o.expertconclusion&&null!=o.expertconclusion&&2!=o.expertconclusion?{z:e.t((a=o.expertconclusion,w[a]||"鏈煡缁撹"))}:{},{A:o.expertopinion},o.expertopinion?{B:e.t(o.expertopinion)}:{},{C:"e7e33ad0-5-"+n,D:e.o(e=>L(o),o.id||t),E:1==o.expertconclusion},1==o.expertconclusion?{F:"e7e33ad0-6-"+n,G:e.p({name:"download",size:"14",color:"#52c41a"}),H:e.o(e=>z(o),o.id||t)}:{},{I:0==o.expertconclusion},0==o.expertconclusion?{J:"e7e33ad0-7-"+n,K:e.p({name:"arrow-up",size:"14",color:"#fa8c16"}),L:e.o(t=>(o=>{e.index.navigateTo({url:`/pages/ethics/appeal?id=${o.fcid||o.id}&caseNo=${o.caseNo||""}&name=${o.name||""}`})})(o),o.id||t)}:{},{M:0==o.expertconclusion||3==o.expertconclusion},0==o.expertconclusion||3==o.expertconclusion?{N:"e7e33ad0-8-"+n,O:e.p({name:"play-circle",size:"14",color:"#747CF9"}),P:e.o(t=>(async o=>{e.index.showModal({title:"閲嶆柊寮�濮嬪鏌�",content:"纭畾瑕侀噸鏂板紑濮嬭繖涓鏌ユ祦绋嬪悧锛�",success:async t=>{if(t.confirm)try{e.index.showLoading({title:"澶勭悊涓�...",mask:!0});const t=await e.index.$uapi.put(`/project/ethicalreviewopinions/reset/${o.fcid||o.id}`);e.index.hideLoading(),200==t.code?(e.index.showToast({title:"瀹℃煡宸查噸鏂板紑濮�",icon:"success",duration:2e3}),$()):e.index.showToast({title:t.msg||"鎿嶄綔澶辫触",icon:"none",duration:2e3})}catch(n){e.index.hideLoading(),console.error("閲嶆柊寮�濮嬪鏌ュけ璐�:",n),e.index.showToast({title:"鎿嶄綔澶辫触",icon:"error",duration:2e3})}}})})(o),o.id||t)}:{},{Q:o.id||t,R:e.o(e=>L(o),o.id||t)});var a}),j:e.p({name:"order",size:"16",color:"#fff"}),k:e.p({name:"eye",size:"14",color:"#747CF9"}),l:e.p({show:a.value,text:"鍔犺浇涓�..."}),m:!a.value&&0==x.value.length},a.value||0!=x.value.length?{}:{n:e.o(T)},{o:!s.value&&x.value.length>0},(!s.value&&x.value.length,{}),{p:i.value,q:e.o(j),r:e.o(C),s:e.gei(o,"")})}},a=e._export_sfc(n,[["__scopeId","data-v-e7e33ad0"]]);wx.createPage(a);

--
Gitblit v1.9.3