FillCaseFrontSheet.vue 116 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749
  1. <template>
  2. <div class="layout_container fill-sheet">
  3. <header class="round-header">
  4. <el-select
  5. v-model="currentWard"
  6. @change="handleWardChange"
  7. style="width: 120px"
  8. filterable
  9. >
  10. <el-option
  11. v-for="item in userWards"
  12. :key="item.code"
  13. :value="item.code"
  14. :label="item.name"
  15. ></el-option>
  16. </el-select>
  17. <el-select
  18. v-model="inOutStatus"
  19. style="width: 80px; margin-right: 8px"
  20. @change="changeInOutStatus"
  21. >
  22. <el-option
  23. v-for="item in inOutOptions"
  24. :key="item.code"
  25. :value="item.code"
  26. :label="item.name"
  27. ></el-option>
  28. </el-select>
  29. <el-button
  30. type="primary"
  31. icon="Clock"
  32. v-show="inOutStatus === 2"
  33. @click="showSelectDateRange = true"
  34. >
  35. 日期范围
  36. </el-button>
  37. <el-divider direction="vertical"></el-divider>
  38. <el-input
  39. v-model="inpatientNo"
  40. style="width: 110px"
  41. placeholder="住院号"
  42. clearable
  43. ></el-input>
  44. <el-button
  45. type="primary"
  46. icon="Search"
  47. @click="searchPatient"
  48. style="margin-left: 8px"
  49. >搜索患者
  50. </el-button>
  51. <el-divider direction="vertical"></el-divider>
  52. <el-button
  53. type="primary"
  54. icon="Edit"
  55. @click="openYbDiag"
  56. v-if="inOutStatus === 1"
  57. >医保诊断
  58. </el-button>
  59. <el-button type="primary" icon="Upload" @click="saveVerify(1)"
  60. >保存首页
  61. </el-button>
  62. <el-dropdown
  63. trigger="click"
  64. type="primary"
  65. @command="sheetQualityVerification"
  66. style="margin: 0 8px"
  67. >
  68. <el-button icon="DataLine" type="primary"
  69. >病案质控<i class="el-icon-arrow-down el-icon--right"></i
  70. ></el-button>
  71. <template #dropdown>
  72. <el-dropdown-menu>
  73. <el-dropdown-item command="applyVerification"
  74. >申请审核
  75. </el-dropdown-item>
  76. <el-dropdown-item command="verificationRecord"
  77. >审核记录
  78. </el-dropdown-item>
  79. </el-dropdown-menu>
  80. </template>
  81. </el-dropdown>
  82. <el-button type="success" icon="Printer" @click="beforePrint(1)"
  83. >打印正面
  84. </el-button>
  85. <el-button type="success" icon="Printer" @click="beforePrint(2)"
  86. >打印反面
  87. </el-button>
  88. <el-button
  89. type="primary"
  90. icon="PieChart"
  91. @click="setlUplaodClick"
  92. v-if="inOutStatus === 2"
  93. >
  94. 结算清单质控
  95. </el-button>
  96. <el-button type="danger" icon="Download" @click="showExportPanel"
  97. >历史病案导出
  98. </el-button>
  99. </header>
  100. <div class="layout_main layout_container layout-horizontal">
  101. <aside class="layout_el-table">
  102. <el-table
  103. ref="asideTable"
  104. :data="cptOverviews"
  105. stripe
  106. highlight-current-row
  107. @row-click="handleClickOverview"
  108. >
  109. <el-table-column
  110. prop="bedNo"
  111. label="床号"
  112. width="40"
  113. ></el-table-column>
  114. <el-table-column label="姓名" width="75">
  115. <template #default="scope">
  116. <img
  117. class="sex-icon"
  118. :src="scope.row.sex === 1 ? maleIcon : femaleIcon"
  119. />
  120. {{ scope.row.name }}
  121. </template>
  122. </el-table-column>
  123. <el-table-column label="住院号-次数" width="85">
  124. <template #default="scope">
  125. <span style="font-weight: bold; color: black">
  126. {{ scope.row.bah }}
  127. </span>
  128. -{{ scope.row.times }}
  129. </template>
  130. </el-table-column>
  131. <el-table-column prop="doctorName" label="医生" width="90">
  132. <template #header>
  133. <span style="margin-right: 8px">医生</span>
  134. <el-checkbox v-model="onlyShowMyPatients">我的</el-checkbox>
  135. </template>
  136. </el-table-column>
  137. </el-table>
  138. </aside>
  139. <div
  140. style="
  141. opacity: 1;
  142. min-width: 800px;
  143. padding: 0 20px 0 35px;
  144. overflow-y: scroll;
  145. position: relative;
  146. "
  147. id="scrollWrapper"
  148. >
  149. <div style="position: absolute; top: 20px; left: 20px">
  150. <span
  151. v-if="patient.auditState === 'NONE'"
  152. class="audit-state audit-state_none"
  153. >
  154. 病案质控未申请
  155. </span>
  156. <span
  157. v-else-if="patient.auditState === 'INITIAL'"
  158. class="audit-state audit-state_initial"
  159. >
  160. 病案质控未审核
  161. </span>
  162. <span
  163. v-else-if="patient.auditState === 'APPROVED'"
  164. class="audit-state audit-state_approved"
  165. >
  166. 病案质控已通过
  167. </span>
  168. <span
  169. v-else-if="patient.auditState === 'REJECTED'"
  170. class="audit-state audit-state_rejected"
  171. @click="sheetQualityVerification('verificationRecord')"
  172. >
  173. 病案质控已驳回
  174. </span>
  175. </div>
  176. <div>
  177. <h3 style="width: 100%; font-size: 17px; text-align: center">
  178. 住 院 病 案 首 页
  179. </h3>
  180. <div style="width: 100%; font-size: 15px; text-align: center">
  181. 医疗机构:
  182. <span style="font-weight: 700">{{ env.VITE_HOSPITAL_NAME }}</span>
  183. ( 组织机构代码:
  184. <span style="font-weight: 700">{{ env.VITE_UNIFIED_SOCIAL_CREDIT_CODE_CODE }}</span
  185. >)
  186. </div>
  187. <div style="height: 25px; line-height: 25px; display: flex">
  188. <div>
  189. 医疗付费方式:
  190. <select
  191. id="payMethod"
  192. v-model="patient.payMethod"
  193. style="width: 180px"
  194. >
  195. <option
  196. v-for="item in 9"
  197. :key="item"
  198. :value="item"
  199. >
  200. &nbsp;&nbsp;{{ item }}&nbsp;&nbsp;
  201. </option>
  202. </select>
  203. </div>
  204. <div style="width: 120px; margin-left: 12px">
  205. 住院次数: {{ patient.healthCardNo }}
  206. </div>
  207. <div style="width: 100px">
  208. 第&nbsp;{{ patient.admissTimes }}&nbsp;次住院
  209. </div>
  210. <div style="width: 130px">病案号: {{ patient.bah }}</div>
  211. </div>
  212. </div>
  213. <div id="page1" style="border: 1px solid black; padding: 5px">
  214. <div style="display: flex;align-items: end">
  215. 姓名:
  216. <input id="name" v-model="patient.name" style="width: 130px" />
  217. 性别:
  218. <select id="sex" v-model="patient.sex">
  219. <option
  220. v-for="item in sexList"
  221. :key="item"
  222. :value="item"
  223. >
  224. &nbsp;&nbsp;{{ item }}&nbsp;&nbsp;
  225. </option>
  226. </select>
  227. 1.男&nbsp;2.女&nbsp;9.未说明的性别&nbsp;&nbsp;&nbsp;
  228. <span style="margin-left: 12px">出生日期</span>
  229. <div id="birthDate" style="display: flex;align-items: end">
  230. <input
  231. v-model="patientTransformData.birthYear"
  232. style="width: 35px;padding-left: 5px"
  233. />
  234. <input
  235. v-model="patientTransformData.birthMonth"
  236. style="width: 20px;padding-left: 5px"
  237. />
  238. <input
  239. v-model="patientTransformData.birthDay"
  240. style="width: 20px;padding-left: 5px"
  241. />
  242. </div>
  243. </div>
  244. <div>
  245. 年龄:
  246. <input
  247. id="age"
  248. v-model="patientTransformData.age"
  249. type="number"
  250. style="width: 30px"
  251. />
  252. 国籍:
  253. <select id="country" v-model="patient.country">
  254. <option
  255. v-for="(item, index) in dics.getCountry"
  256. :key="index"
  257. :value="item.code"
  258. >
  259. &nbsp;&nbsp;{{ item.name }}&nbsp;&nbsp;
  260. </option>
  261. </select>
  262. (年龄不足 1 周岁的)年龄:
  263. <input
  264. id="ageDays"
  265. v-model="patientTransformData.infAge"
  266. style="width: 50px"
  267. />月
  268. (新生儿年龄≤28天)年龄:
  269. <input
  270. id="ageDays"
  271. v-model="patientTransformData.ageDays"
  272. style="width: 50px"
  273. />天
  274. </div>
  275. <div style="display: flex;align-items: end;margin-top: 4px">
  276. 新生儿出生体重 (一孩
  277. <input
  278. id="newBornWeight1"
  279. v-model="patientTransformData.newBornWeight1"
  280. style="width: 40px;padding-left: 5px"
  281. />克
  282. <span style="margin-left: 12px">二孩</span>
  283. <input
  284. id="newBornWeight2"
  285. v-model="patientTransformData.newBornWeight2"
  286. style="width: 40px;padding-left: 5px"
  287. />克)
  288. <span style="margin-left: 12px">
  289. 新生儿入院体重
  290. </span>
  291. <input
  292. id="newBornAdmissWeight"
  293. v-model="patientTransformData.newBornAdmissWeight"
  294. style="width: 50px;padding-left: 5px"
  295. />克
  296. </div>
  297. <div>
  298. 身份证件类型:
  299. <select id="occupation" v-model="patient.psnCertificateType">
  300. <option
  301. v-for="(item, index) in dics.getPsnCertType"
  302. :key="index"
  303. :value="item.code"
  304. >
  305. &nbsp;&nbsp;{{ item.code }}&nbsp;&nbsp;
  306. </option>
  307. </select>
  308. 证件号:
  309. <input
  310. id="socialNo"
  311. v-model="patient.socialNo"
  312. style="width: 160px"
  313. maxlength="18"
  314. />
  315. </div>
  316. <div>
  317. 身份证件不详的具体原因:
  318. <select id="occupation" v-model="patient.noCertReason">
  319. <option
  320. v-for="(item, index) in noCertReasons"
  321. :key="index"
  322. :value="item.code"
  323. >
  324. &nbsp;&nbsp;{{ item.code }}&nbsp;&nbsp;
  325. </option>
  326. </select>
  327. <span v-for="(item,index) in noCertReasons">
  328. <template v-if="index > 0">{{ item.code }}.{{ item.name }}</template>
  329. </span>
  330. 其他:
  331. <input
  332. id="socialNo"
  333. v-model="patient.noCertReasonInput"
  334. style="width: 160px"
  335. />
  336. </div>
  337. <div>
  338. 出生地:
  339. <input
  340. id="birthPlaceName"
  341. v-model="patient.birthPlaceName"
  342. style="width: 230px"
  343. />
  344. <el-button
  345. icon="Search"
  346. type="primary"
  347. @click="showSearchData('birth')"
  348. >
  349. </el-button>
  350. 籍贯:
  351. <input
  352. id="nativePlaceName"
  353. v-model="patient.nativePlaceName"
  354. readonly
  355. style="width: 170px"
  356. @click="showSearchData('native')"
  357. />
  358. 民族:
  359. <select id="nation" v-model="patient.nation">
  360. <option
  361. v-for="(item, index) in dics.getNation"
  362. :key="index"
  363. :value="item.code"
  364. >
  365. &nbsp;&nbsp;{{ item.name }}&nbsp;&nbsp;
  366. </option>
  367. </select>
  368. </div>
  369. <div>
  370. 职业:
  371. <select id="occupation" v-model="patient.occupation">
  372. <option
  373. v-for="(item, index) in dics.getOccupation"
  374. :key="index"
  375. :value="item.code"
  376. >
  377. &nbsp;&nbsp;{{ item.name }}&nbsp;&nbsp;
  378. </option>
  379. </select>
  380. 婚姻:
  381. <select id="marriage" v-model="patient.marriage">
  382. <option
  383. v-for="(item, index) in dics.getMarriageCode"
  384. :key="index"
  385. :value="item.code"
  386. >
  387. &nbsp;&nbsp;{{ item.code }}&nbsp;&nbsp;
  388. </option>
  389. </select>
  390. <span v-for="item in dics.getMarriageCode">
  391. {{ item.code }}.{{ item.name }}
  392. </span>
  393. </div>
  394. <div style="display: flex;align-items: end;margin-top: 4px">
  395. <div id="livePlace">
  396. 现住址
  397. <input
  398. id="livePlace"
  399. v-model="patient.livePlace"
  400. style="width: 350px;padding-left: 5px"
  401. />
  402. <el-button
  403. icon="Search"
  404. type="primary"
  405. @click="showSearchData('livePlace')"
  406. >
  407. </el-button>
  408. </div>
  409. <span style="margin-left: 12px">电话</span>
  410. <input id="phone" v-model="patient.phone" style="width: 90px;padding-left: 5px"/>
  411. <span style="margin-left: 12px">邮编</span>
  412. <input
  413. id="addrZipCode"
  414. v-model="patient.addrZipCode"
  415. style="width: 70px;padding-left: 5px"
  416. maxlength="6"
  417. />
  418. </div>
  419. <div style="display: flex;align-items: end;margin-top: 4px">
  420. <div id="hkPlace">
  421. 户口地址
  422. <input
  423. id="hkPlaceName"
  424. v-model="patient.hkPlaceName"
  425. style="width: 480px;padding-left: 5px"
  426. />
  427. <el-button
  428. icon="Search"
  429. type="primary"
  430. @click="showSearchData('hk')"
  431. >
  432. </el-button>
  433. </div>
  434. <span style="margin-left: 12px">邮编</span>
  435. <input
  436. id="hkZipCode"
  437. v-model="patient.hkZipCode"
  438. style="width: 70px;padding-left: 5px"
  439. maxlength="6"
  440. />
  441. </div>
  442. <div>
  443. 工作单位及地址:
  444. <input
  445. id="unitName"
  446. v-model="patient.unitName"
  447. style="margin-right: 0; width: 145px"
  448. />
  449. /
  450. <input
  451. id="unitPlace"
  452. v-model.trim="patient.unitPlace"
  453. style="width: 145px"
  454. />
  455. 单位电话:
  456. <input
  457. id="unitPhone"
  458. v-model="patient.unitPhone"
  459. style="width: 80px"
  460. />
  461. 邮编:
  462. <input
  463. id="unitZipCode"
  464. v-model="patient.unitZipCode"
  465. style="width: 50px"
  466. />
  467. </div>
  468. <div>
  469. 联系人姓名:
  470. <input
  471. id="contactName"
  472. v-model="patient.contactName"
  473. style="width: 200px"
  474. />
  475. 联系人关系:
  476. <select id="contactRelation" v-model="patient.contactRelation">
  477. <option
  478. v-for="(item, index) in dics.getRelations"
  479. :key="index"
  480. :value="item.code"
  481. >
  482. &nbsp;&nbsp;{{ item.name }}&nbsp;&nbsp;
  483. </option>
  484. </select>
  485. </div>
  486. <div>
  487. 联系人地址:
  488. <input
  489. id="contactAddrName"
  490. v-model="patient.contactAddrName"
  491. style="width: 420px"
  492. />
  493. <el-button
  494. icon="Search"
  495. type="primary"
  496. @click="showSearchData('contact')"
  497. >
  498. </el-button>
  499. 联系人电话:
  500. <input
  501. id="contactPhone"
  502. v-model.trim="patient.contactPhone"
  503. style="width: 90px"
  504. />
  505. </div>
  506. <div>
  507. 入院途径:
  508. <select id="zyAdmissWay" v-model="patient.zyAdmissWay">
  509. <option
  510. v-for="(item, index) in dics.getAdmissWay"
  511. :key="index"
  512. :value="item.code"
  513. >
  514. &nbsp;&nbsp;{{ item.code }}&nbsp;&nbsp;
  515. </option>
  516. </select>
  517. <span v-for="item in dics.getAdmissWay">
  518. {{ item.code }}.{{ item.name }}
  519. </span>&nbsp;&nbsp;&nbsp;&nbsp;
  520. </div>
  521. <div>
  522. 入院时间:<input
  523. id="admissDate"
  524. v-model="patient.admissDate"
  525. readonly
  526. style="width: 135px"
  527. />
  528. 入院科别:<input
  529. v-model="patient.admissDept"
  530. readonly
  531. style="width: 120px"
  532. />
  533. 病房:<input
  534. v-model="patient.admissWard"
  535. readonly
  536. style="width: 80px"
  537. />
  538. 转科科别:<input
  539. v-model="patientTransformData.transDept"
  540. readonly
  541. style="width: 120px"
  542. />
  543. </div>
  544. <div>
  545. 出院时间:<input
  546. id="dismissDate"
  547. v-model="patient.dismissDate"
  548. readonly
  549. style="width: 135px"
  550. />
  551. 出院科别:<input
  552. v-model="patient.dismissDept"
  553. readonly
  554. style="width: 120px"
  555. />
  556. 病房:<input
  557. v-model="patient.dismissWard"
  558. readonly
  559. style="width: 80px"
  560. />
  561. 住院天数:<input
  562. id="admissDays"
  563. v-model="patient.admissDays"
  564. style="width: 70px"
  565. />
  566. </div>
  567. <div id="clinicDiag" style="display: flex; align-items: center">
  568. 门(急)诊诊断:
  569. <input
  570. v-model="patient.clinicDiagStr"
  571. readonly
  572. style="width: 280px"
  573. @click="showSearchData('clinicdiag')"
  574. />
  575. 疾病编码:
  576. <input
  577. v-model="patient.clinicDiagCode"
  578. readonly
  579. style="width: 110px"
  580. @click="showSearchData('clinicdiag')"
  581. />
  582. </div>
  583. <div
  584. id="diagTable"
  585. style="
  586. height: max-content;
  587. display: flex;
  588. width: 720px;
  589. margin-top: 2px;
  590. "
  591. >
  592. <div style="width: 360px">
  593. <table
  594. style="
  595. width: 100%;
  596. border: 1px solid black;
  597. border-collapse: collapse;
  598. "
  599. >
  600. <tr>
  601. <th>主要诊断</th>
  602. <th>疾病编码</th>
  603. <th>入院病情</th>
  604. <th>治疗转归</th>
  605. </tr>
  606. <tr>
  607. <td>
  608. <input
  609. id="disdiagMain"
  610. style="border: none !important; width: 170px"
  611. v-model="patient.disdiagList[0].name"
  612. @click="onSearchDiagFocus(0)"
  613. readonly
  614. />
  615. <div
  616. v-show="showDel[0]"
  617. style="width: 100%; text-align: center"
  618. >
  619. <el-button
  620. type="primary"
  621. icon="Edit"
  622. @click="showSearch = true"
  623. >修改
  624. </el-button>
  625. </div>
  626. </td>
  627. <td style="text-align: center">
  628. <input
  629. style="border: none !important; width: 100px"
  630. v-model="patient.disdiagList[0].code"
  631. readonly
  632. />
  633. </td>
  634. <td>
  635. <select
  636. id="disdiagMainAdmStatus"
  637. style="border: none !important; width: 30px"
  638. v-model="patient.disdiagList[0].admissStatus"
  639. >
  640. <option
  641. v-for="(item, index) in dics.getDisAdmissStatus"
  642. :key="index"
  643. :value="item.code"
  644. >
  645. &nbsp;&nbsp; {{ item.code }}&nbsp;&nbsp;
  646. </option>
  647. </select>
  648. </td>
  649. <td>
  650. <select
  651. style="border: none !important; width: 30px"
  652. v-model="patient.disdiagList[0].dismissStatus"
  653. @change="handleSelectCybq"
  654. >
  655. <option
  656. v-for="(item, index) in dics.getDisdiagStatus"
  657. :key="index"
  658. :value="item.code"
  659. >
  660. &nbsp;&nbsp; {{ item.code }}&nbsp;&nbsp;
  661. </option>
  662. </select>
  663. </td>
  664. </tr>
  665. <tr>
  666. <th colspan="4">其他诊断</th>
  667. </tr>
  668. <tr v-for="n in 11" :key="n">
  669. <td>
  670. <input
  671. style="
  672. border: none !important;
  673. text-align: left;
  674. padding-left: 5px;
  675. "
  676. v-model="patient.disdiagList[n].name"
  677. @click="onSearchDiagFocus(n)"
  678. readonly
  679. />
  680. <div
  681. v-show="showDel[n]"
  682. style="width: 100%; text-align: center"
  683. >
  684. <el-button
  685. type="primary"
  686. circle
  687. icon="Edit"
  688. @click="showSearch = true"
  689. ></el-button>
  690. <el-button
  691. type="danger"
  692. circle
  693. icon="Delete"
  694. @click="deleteDisdiag(n)"
  695. ></el-button>
  696. <el-button
  697. type="success"
  698. circle
  699. icon="Plus"
  700. @click="insertDisdiag(n)"
  701. ></el-button>
  702. </div>
  703. </td>
  704. <td>
  705. <input
  706. style="border: none !important; width: 90px"
  707. v-model="patient.disdiagList[n].code"
  708. readonly
  709. />
  710. </td>
  711. <td>
  712. <select
  713. style="border: none !important; width: 30px"
  714. v-model="patient.disdiagList[n].admissStatus"
  715. >
  716. <option
  717. v-for="(item, index) in dics.getDisAdmissStatus"
  718. :key="index"
  719. :value="item.code"
  720. >
  721. &nbsp;&nbsp;{{ item.code }}&nbsp;&nbsp;
  722. </option>
  723. </select>
  724. </td>
  725. <td>
  726. <select
  727. style="border: none !important; width: 30px"
  728. v-model="patient.disdiagList[n].dismissStatus"
  729. @change="handleSelectCybq"
  730. >
  731. <option
  732. v-for="(item, index) in dics.getDisdiagStatus"
  733. :key="index"
  734. :value="item.code"
  735. >
  736. &nbsp;&nbsp;{{ item.code }}&nbsp;&nbsp;
  737. </option>
  738. </select>
  739. </td>
  740. </tr>
  741. </table>
  742. </div>
  743. <div style="width: 360px">
  744. <table style="border: 1px solid black; border-collapse: collapse">
  745. <tr v-for="n in 14" :key="n">
  746. <td>
  747. <input
  748. style="border: none !important; width: 170px"
  749. v-model="patient.disdiagList[n + 11].name"
  750. @click="onSearchDiagFocus(n + 11)"
  751. readonly
  752. />
  753. <div
  754. v-show="showDel[n + 11]"
  755. style="width: 100%; text-align: center"
  756. >
  757. <button circle @click="showSearch = true">
  758. <i class="el-icon-edit"></i>
  759. </button>
  760. <button circle @click="deleteDisdiag(n + 11)">
  761. <i class="el-icon-delete"></i>
  762. </button>
  763. <button circle @click="insertDisdiag(n + 11)">
  764. <i class="el-icon-upload"></i>
  765. </button>
  766. </div>
  767. </td>
  768. <td>
  769. <input
  770. style="border: none !important; width: 100px"
  771. v-model="patient.disdiagList[n + 11].code"
  772. readonly
  773. />
  774. </td>
  775. <td>
  776. <select
  777. style="border: none !important; width: 30px"
  778. v-model="patient.disdiagList[n + 11].admissStatus"
  779. >
  780. <option
  781. v-for="(item, index) in dics.getDisAdmissStatus"
  782. :key="index"
  783. :value="item.code"
  784. >
  785. &nbsp;&nbsp;{{ item.code }}&nbsp;&nbsp;
  786. </option>
  787. </select>
  788. </td>
  789. <td>
  790. <select
  791. style="border: none !important; width: 30px"
  792. v-model="patient.disdiagList[n + 11].dismissStatus"
  793. @change="handleSelectCybq"
  794. >
  795. <option
  796. v-for="(item, index) in dics.getDisdiagStatus"
  797. :key="index"
  798. :value="item.code"
  799. >
  800. &nbsp;&nbsp;{{ item.code }}&nbsp;&nbsp;
  801. </option>
  802. </select>
  803. </td>
  804. </tr>
  805. </table>
  806. </div>
  807. </div>
  808. <div style="border-bottom: 1px solid black; font-size: 12px">
  809. 备注:
  810. <span>入院病情:</span>1.有,2.临床未确定,3.情况不明,4.无
  811. <span style="margin-left: 10px">出院病情:</span
  812. >1.治愈,2.好转,3.未愈,4.死亡,9.其他
  813. </div>
  814. <div>
  815. 损伤、中毒的外部原因:
  816. <input
  817. id="hurtReasonName"
  818. v-model="patientTransformData.hurtReasonName"
  819. readonly
  820. style="width: 360px"
  821. @click="showSearchData('hurt')"
  822. />
  823. 疾病编码:
  824. <input
  825. id="hurtReasonCode"
  826. v-model="patientTransformData.hurtReasonCode"
  827. style="width: 110px"
  828. readonly
  829. />
  830. &nbsp;&nbsp;<el-button
  831. type="danger"
  832. circle
  833. icon="Delete"
  834. @click="clearLine('hurtReason')"
  835. ></el-button>
  836. </div>
  837. <div>
  838. 病理诊断:
  839. <input
  840. id="pathologicDiagStr"
  841. v-model="patientTransformData.pathologicDiagStr"
  842. readonly
  843. style="width: 300px"
  844. @click="showSearchData('pathologic')"
  845. />
  846. 病理编码:
  847. <input
  848. id="pathologicDiagCode"
  849. v-model="patientTransformData.pathologicDiagCode"
  850. style="width: 90px"
  851. readonly
  852. />
  853. 病理号:
  854. <input id="blh" v-model="patientTransformData.blh" style="width: 70px" />
  855. &nbsp;&nbsp;<el-button
  856. type="danger"
  857. circle
  858. icon="Delete"
  859. @click="clearLine('pathologicDiag')"
  860. ></el-button>
  861. </div>
  862. <div>
  863. 药物过敏:
  864. <select
  865. id="allergy"
  866. v-model="patient.allergy"
  867. @change="onAllergyChanged"
  868. >
  869. <option
  870. v-for="(item, index) in haveOrNot"
  871. :key="index"
  872. :value="item.code"
  873. >
  874. &nbsp;&nbsp;{{ item.code }}&nbsp;&nbsp;
  875. </option>
  876. </select>
  877. 1.无&nbsp;2.有&nbsp;&nbsp;&nbsp;
  878. 过敏药物:
  879. <input
  880. id="allergicMedicine"
  881. v-model="patient.allergicMedicine"
  882. style="width: 110px"
  883. />
  884. 死亡患者尸检:
  885. <select id="autopsy" v-model="patient.autopsy">
  886. <option
  887. v-for="(item, index) in autopsies"
  888. :key="index"
  889. :value="item.code"
  890. >
  891. &nbsp;&nbsp;{{ item.code }}&nbsp;&nbsp;
  892. </option>
  893. </select>
  894. 1.是&nbsp;2.否&nbsp;&nbsp;&nbsp;
  895. </div>
  896. <div>
  897. 血型:
  898. <select
  899. id="bloodType"
  900. v-model="patient.bloodType"
  901. @change="handleSelectBloodType"
  902. >
  903. <option
  904. v-for="(item, index) in dics.getBloodType"
  905. :key="index"
  906. :value="item.code"
  907. >
  908. &nbsp;&nbsp;{{ item.code }}&nbsp;&nbsp;
  909. </option>
  910. </select>
  911. <span v-for="item in dics.getBloodType">
  912. {{ item.code }}.{{ item.name }}
  913. </span>&nbsp;&nbsp;&nbsp;&nbsp;
  914. Rh:
  915. <select id="rh" v-model="patient.rh">
  916. <option
  917. v-for="(item, index) in dics.getHbsag"
  918. :key="index"
  919. :value="item.code"
  920. >
  921. &nbsp;&nbsp;{{ item.code }}&nbsp;&nbsp;
  922. </option>
  923. </select>
  924. <span v-for="item in dics.getHbsag">
  925. {{ item.code }}.{{ item.name }}
  926. </span>&nbsp;&nbsp;&nbsp;&nbsp;
  927. </div>
  928. <div>
  929. 科室主任:
  930. <input
  931. id="deptLeaderName"
  932. readonly
  933. style="width: 70px"
  934. v-model="patient.deptLeaderName"
  935. @click="showSearchData('deptleader')"
  936. />
  937. 主任(副主任)医师:
  938. <input
  939. id="leaderDoctorName"
  940. readonly
  941. style="width: 70px"
  942. v-model="patient.leaderDoctorName"
  943. @click="showSearchData('leaderdoctor')"
  944. />
  945. 主治医师:
  946. <input
  947. id="mainDoctorName"
  948. readonly
  949. style="width: 70px"
  950. v-model="patient.mainDoctorName"
  951. @click="showSearchData('maindoctor')"
  952. />
  953. 住院医师:
  954. <input
  955. id="admissDoctorName"
  956. readonly
  957. style="width: 70px"
  958. v-model="patient.admissDoctorName"
  959. @click="showSearchData('admissdoctor')"
  960. />
  961. </div>
  962. <div>
  963. 责任护士:
  964. <input
  965. id="dutyNurseName"
  966. readonly
  967. style="width: 70px"
  968. v-model="patient.dutyNurseName"
  969. @click="showSearchData('dutynurse')"
  970. />
  971. 进修医师:
  972. <input
  973. id="studyDoctorName"
  974. readonly
  975. style="width: 70px"
  976. v-model="patient.studyDoctorName"
  977. @click="showSearchData('studydoctor')"
  978. />
  979. 实习医师:
  980. <input
  981. id="internshipDoctorName"
  982. readonly
  983. style="width: 70px"
  984. v-model="patient.internshipDoctorName"
  985. @click="showSearchData('internshipdoctor')"
  986. />
  987. 编码员:
  988. <input
  989. id="coderName"
  990. readonly
  991. style="width: 70px"
  992. v-model="patient.coderName"
  993. @click="showSearchData('coder')"
  994. />
  995. </div>
  996. <div>
  997. 病案质量:
  998. <select
  999. id="qualityControlLevel"
  1000. v-model="patient.qualityControlLevel"
  1001. >
  1002. <option
  1003. v-for="(item, index) in dics.getQualityLevel"
  1004. :key="index"
  1005. :value="item.code"
  1006. >
  1007. &nbsp;&nbsp;{{ item.code }}&nbsp;&nbsp;
  1008. </option>
  1009. </select>
  1010. <span v-for="item in dics.getQualityLevel">
  1011. {{ item.code }}.{{ item.name }}
  1012. </span>&nbsp;&nbsp;&nbsp;&nbsp;
  1013. 质控医师:
  1014. <input
  1015. id="qualityControlDoctorName"
  1016. readonly
  1017. style="width: 70px"
  1018. v-model="patient.qualityControlDoctorName"
  1019. @click="showSearchData('qualitycontroldoctor')"
  1020. />
  1021. 质控护士:
  1022. <input
  1023. style="width: 70px"
  1024. readonly
  1025. v-model="patient.qualityControlNurseName"
  1026. @click="showSearchData('qualitycontrolnurse')"
  1027. />
  1028. 质控日期:
  1029. <input
  1030. id="qualityControlDate"
  1031. style="width: 170px"
  1032. type="date"
  1033. v-model="patient.qualityControlDate"
  1034. />
  1035. </div>
  1036. </div>
  1037. <div id="page2" style="border: 1px solid black; padding: 5px">
  1038. <table
  1039. id="surgeryTable"
  1040. style="border-collapse: collapse; width: 100%; margin-left: -25px"
  1041. >
  1042. <tr>
  1043. <th rowspan="2" style="border: none"></th>
  1044. <th rowspan="2">手术及操作编码</th>
  1045. <th rowspan="2" style="width: 70px">手术及操作日期</th>
  1046. <th rowspan="2" style="width: 10px">手术级别</th>
  1047. <th rowspan="2">手术及操作名称</th>
  1048. <th colspan="3">手术及操作医师</th>
  1049. <th rowspan="2" style="width: 30px">切口愈合等级</th>
  1050. <th rowspan="2">麻醉方式</th>
  1051. <th rowspan="2">麻醉医师</th>
  1052. </tr>
  1053. <tr>
  1054. <th>术者</th>
  1055. <th>I助</th>
  1056. <th>II助</th>
  1057. </tr>
  1058. <tr v-for="n in defaultSurgerySize" :key="n">
  1059. <td style="border: none; width: 25px">
  1060. <div v-if="patient.surgeryList[n - 1].name">
  1061. <div
  1062. v-if="n > 1"
  1063. class="order-arrow"
  1064. @click="changeSurgeryOrder(n - 1, n - 2)"
  1065. >
  1066. </div>
  1067. <div
  1068. v-if="n < defaultSurgerySize && patient.surgeryList[n].name"
  1069. class="order-arrow"
  1070. style="margin-top: 5px"
  1071. @click="changeSurgeryOrder(n - 1, n)"
  1072. >
  1073. </div>
  1074. <div
  1075. v-if="n === defaultSurgerySize"
  1076. class="order-arrow"
  1077. style="margin-top: 4px"
  1078. @click="addSurgeSize"
  1079. >
  1080. +
  1081. </div>
  1082. </div>
  1083. </td>
  1084. <td>
  1085. <input
  1086. v-model="patient.surgeryList[n - 1].code"
  1087. style="border: none !important; width: 70px"
  1088. readonly
  1089. />
  1090. </td>
  1091. <td style="padding: 3px">
  1092. <textarea
  1093. style="border: none !important; width: 70px"
  1094. v-model="patient.surgeryList[n - 1].date"
  1095. rows="3"
  1096. @click="showPickSurgeryDatetime(n - 1)"
  1097. readonly
  1098. ></textarea>
  1099. </td>
  1100. <td style="text-align-last: center">
  1101. <select
  1102. style="border: none !important; width: 30px"
  1103. v-model="patient.surgeryList[n - 1].level"
  1104. >
  1105. <option
  1106. v-for="(item, index) in dics.getOperateScale"
  1107. :key="index"
  1108. :value="item.code"
  1109. >
  1110. &nbsp;&nbsp;{{ item.code }}
  1111. </option>
  1112. </select>
  1113. </td>
  1114. <td style="padding: 3px">
  1115. <textarea
  1116. id="surgeryMain"
  1117. style="border: none !important; width: 90px"
  1118. rows="3"
  1119. v-model="patient.surgeryList[n - 1].name"
  1120. @click="onSearchSurgeryFocus(n - 1)"
  1121. readonly
  1122. ></textarea>
  1123. <div
  1124. v-show="showDel[n - 1]"
  1125. style="width: 100%; text-align: center"
  1126. >
  1127. <el-button
  1128. type="primary"
  1129. circle
  1130. icon="Edit"
  1131. @click="onEditSurgeryClick(n - 1)"
  1132. ></el-button>
  1133. <el-button
  1134. type="danger"
  1135. circle
  1136. icon="Delete"
  1137. @click="deleteSurgery(n - 1)"
  1138. ></el-button>
  1139. </div>
  1140. </td>
  1141. <td>
  1142. <input
  1143. style="border: none !important; width: 40px"
  1144. v-model="patient.surgeryList[n - 1].operatorName"
  1145. @click="showSearchSurgerior('operator', n)"
  1146. />
  1147. </td>
  1148. <td style="width: 50px">
  1149. <div style="position: relative">
  1150. <input
  1151. style="border: none !important; width: 40px"
  1152. v-model="patient.surgeryList[n - 1].assistantOneName"
  1153. @click="showSearchSurgerior('assistantone', n)"
  1154. />
  1155. <div
  1156. v-if="patient.surgeryList[n - 1].assistantOneName"
  1157. style="position: absolute; top: -20px; right: 0"
  1158. >
  1159. <el-button
  1160. type="danger"
  1161. circle
  1162. icon="Delete"
  1163. @click="deleteAssistantOne(n - 1)"
  1164. ></el-button>
  1165. </div>
  1166. </div>
  1167. </td>
  1168. <td style="width: 50px">
  1169. <div style="position: relative">
  1170. <input
  1171. style="border: none !important; width: 40px"
  1172. v-model="patient.surgeryList[n - 1].assistantTwoName"
  1173. @click="showSearchSurgerior('assistanttwo', n)"
  1174. />
  1175. <div
  1176. v-if="patient.surgeryList[n - 1].assistantTwoName"
  1177. style="position: absolute; top: -20px; right: 0"
  1178. >
  1179. <el-button
  1180. type="danger"
  1181. circle
  1182. icon="Delete"
  1183. @click="deleteAssistantTwo(n - 1)"
  1184. ></el-button>
  1185. </div>
  1186. </div>
  1187. </td>
  1188. <td style="text-align-last: center">
  1189. <select
  1190. v-model="patient.surgeryList[n - 1].cutHeal"
  1191. style="border: none !important"
  1192. >
  1193. <option
  1194. v-for="(item, index) in dics.getCutHealGrade"
  1195. :key="index"
  1196. :value="item.code"
  1197. >
  1198. {{ item.code }}
  1199. </option>
  1200. </select>
  1201. </td>
  1202. <td>
  1203. <select
  1204. v-model="patient.surgeryList[n - 1].anaesthesia"
  1205. style="border: none !important"
  1206. >
  1207. <option
  1208. v-for="(item, index) in dics.getAnaesthesia"
  1209. :key="index"
  1210. :value="item.code"
  1211. >
  1212. &nbsp;&nbsp;{{ item.name }}&nbsp;&nbsp;
  1213. </option>
  1214. </select>
  1215. </td>
  1216. <td>
  1217. <div style="position: relative">
  1218. <input
  1219. style="border: none !important; width: 40px"
  1220. v-model="patient.surgeryList[n - 1].anaesthesiaorName"
  1221. @click="showSearchSurgerior('anaesthesiaor', n)"
  1222. />
  1223. <div
  1224. v-if="patient.surgeryList[n - 1].anaesthesiaorName"
  1225. style="position: absolute; top: -20px; right: 0"
  1226. >
  1227. <el-button
  1228. type="danger"
  1229. circle
  1230. icon="Delete"
  1231. @click="deleteAnestor(n - 1)"
  1232. ></el-button>
  1233. </div>
  1234. </div>
  1235. </td>
  1236. </tr>
  1237. </table>
  1238. <div>
  1239. 离院方式:
  1240. <select
  1241. id="zyDismissWay"
  1242. v-model="patient.zyDismissWay"
  1243. >
  1244. <option
  1245. v-for="(item, index) in dics.getZyDismissWay"
  1246. :key="index"
  1247. :value="item.code"
  1248. >
  1249. &nbsp;&nbsp;{{ item.code }}&nbsp;&nbsp;
  1250. </option>
  1251. </select>
  1252. <span v-for="item in dics.getZyDismissWay">
  1253. {{ item.code }}.{{ item.name }}
  1254. </span>&nbsp;&nbsp;
  1255. </div>
  1256. <div>
  1257. 拟接收医疗机构名称:
  1258. <input
  1259. id="dismissDestination"
  1260. v-model="patient.dismissDestination"
  1261. style="width: 250px"
  1262. />
  1263. </div>
  1264. <div v-if="patient.zyDismissWay === '3' ">
  1265. 非医嘱离院原因:
  1266. <input id="fyzlyyy"
  1267. v-model="patient.fyzlyyy"
  1268. style="width: 530px"
  1269. />
  1270. </div>
  1271. <div>
  1272. 是否有出院31天内再住院计划:
  1273. <select
  1274. id="admissAgainInOneMonth"
  1275. v-model="patient.admissAgainInOneMonth"
  1276. @change="onAdmissAgainChanged"
  1277. >
  1278. <option
  1279. v-for="(item, index) in haveOrNot"
  1280. :key="index"
  1281. :value="item.code"
  1282. >
  1283. &nbsp;&nbsp;{{ item.code }}&nbsp;&nbsp;
  1284. </option>
  1285. </select>
  1286. <span v-for="t in haveOrNot">
  1287. {{ t.code }}.{{ t.name }}
  1288. </span>&nbsp;&nbsp;&nbsp;&nbsp;
  1289. 目的:
  1290. <input
  1291. id="admissAgainPurpose"
  1292. v-model="patient.admissAgainPurpose"
  1293. style="width: 300px"
  1294. />
  1295. </div>
  1296. <div>
  1297. 颅脑损伤患者昏迷时间: 入院前
  1298. <input
  1299. id="comaDaysBeforeAdmiss"
  1300. v-model="patient.comaDaysBeforeAdmiss"
  1301. style="width: 30px"
  1302. />天
  1303. <input
  1304. id="comaHoursBeforeAdmiss"
  1305. v-model="patient.comaHoursBeforeAdmiss"
  1306. style="width: 30px"
  1307. />小时
  1308. <input
  1309. id="comaMinutesBeforeAdmiss"
  1310. v-model="patient.comaMinutesBeforeAdmiss"
  1311. style="width: 30px"
  1312. />分钟 入院后
  1313. <input
  1314. id="comaDaysAfterAdmiss"
  1315. v-model="patient.comaDaysAfterAdmiss"
  1316. style="width: 30px"
  1317. />天
  1318. <input
  1319. id="comaHoursAfterAdmiss"
  1320. v-model="patient.comaHoursAfterAdmiss"
  1321. style="width: 30px"
  1322. />小时
  1323. <input
  1324. id="comaMinutesAfterAdmiss"
  1325. v-model="patient.comaMinutesAfterAdmiss"
  1326. style="width: 30px"
  1327. />分钟
  1328. </div>
  1329. <div>
  1330. 住院费用(元): 总费用
  1331. <input v-model="patient.totalCost" style="width: 110px" readonly />
  1332. (自付金额:
  1333. <input v-model="patient.selfPay" style="width: 110px" readonly />)
  1334. </div>
  1335. <div>
  1336. 1.综合医疗服务类: (1)一般医疗服务费:
  1337. <input
  1338. v-model="patient.generalMedicalServiceFee"
  1339. style="width: 70px"
  1340. readonly
  1341. />
  1342. (2)一般治疗操作费:
  1343. <input
  1344. v-model="patient.generalTreatmentOperatingFee"
  1345. style="width: 70px"
  1346. readonly
  1347. />
  1348. (3)护理费:
  1349. <input v-model="patient.careFee" style="width: 50px" readonly />
  1350. </div>
  1351. <div>
  1352. (4)其他费用:
  1353. <input v-model="patient.elseFee" style="width: 70px" readonly />
  1354. </div>
  1355. <div>
  1356. 2.诊断类: (5)病理诊断费:
  1357. <input
  1358. v-model="patient.pathologicDiagFee"
  1359. style="width: 70px"
  1360. readonly
  1361. />
  1362. (6)实验室诊断费:
  1363. <input
  1364. v-model="patient.experimentDiagFee"
  1365. style="width: 70px"
  1366. readonly
  1367. />
  1368. (7)影像学诊断费:
  1369. <input v-model="patient.ctDiagFee" style="width: 70px" readonly />
  1370. </div>
  1371. <div>
  1372. (8)临床诊断项目费:
  1373. <input
  1374. v-model="patient.clinicalDiagFee"
  1375. style="width: 70px"
  1376. readonly
  1377. />
  1378. </div>
  1379. <div>
  1380. 3.治疗类: (9)非手术治疗项目费:
  1381. <input
  1382. v-model="patient.notSurgicalFee"
  1383. style="width: 70px"
  1384. readonly
  1385. />
  1386. (临床物理治疗费:
  1387. <input
  1388. v-model="patient.clinicalPhysicalFee"
  1389. style="width: 70px"
  1390. readonly
  1391. />)
  1392. </div>
  1393. <div>
  1394. (10)手术治疗费:
  1395. <input v-model="patient.surgicalFee" style="width: 70px" readonly />
  1396. (麻醉费:
  1397. <input
  1398. v-model="patient.anesthetizeFee"
  1399. style="width: 70px"
  1400. readonly
  1401. />
  1402. &nbsp;&nbsp;手术费:
  1403. <input v-model="patient.surgeryFee" style="width: 70px" readonly />)
  1404. </div>
  1405. <div>
  1406. 4.康复类: (11)康复费:
  1407. <input v-model="patient.recoverFee" style="width: 70px" readonly />
  1408. </div>
  1409. <div>
  1410. 5.中医类: (12)中医治疗费:
  1411. <input
  1412. v-model="patient.tcmTreatmentFee"
  1413. style="width: 70px"
  1414. readonly
  1415. />
  1416. </div>
  1417. <div>
  1418. 6.西药类: (13)西药费:
  1419. <input
  1420. v-model="patient.westMedicineFee"
  1421. style="width: 70px"
  1422. readonly
  1423. />
  1424. (抗菌药物费用:
  1425. <input
  1426. v-model="patient.kjywFee"
  1427. style="width: 70px;padding-left: 5px"
  1428. readonly
  1429. />
  1430. </div>
  1431. <div>
  1432. 7.中药类: (14)中成药费:
  1433. <input
  1434. v-model="patient.chinesePatentMedicineFee"
  1435. style="width: 70px"
  1436. readonly
  1437. />
  1438. (15)中草药费:
  1439. <input
  1440. v-model="patient.chineseHerbalMedicineFee"
  1441. style="width: 70px"
  1442. readonly
  1443. />
  1444. </div>
  1445. <div>
  1446. 8.血液和血液制品类: (16)血费:
  1447. <input v-model="patient.bloodFee" style="width: 50px" readonly />
  1448. (17)白蛋白类制品费:
  1449. <input
  1450. v-model="patient.albuminProductsFee"
  1451. style="width: 50px"
  1452. readonly
  1453. />
  1454. (18)球蛋白类制品费:
  1455. <input
  1456. v-model="patient.globulinProductsFee"
  1457. style="width: 50px"
  1458. readonly
  1459. />
  1460. </div>
  1461. <div>
  1462. (19)凝血因子类制品费:
  1463. <input
  1464. v-model="patient.coagulationFactorProductsFee"
  1465. style="width: 70px"
  1466. readonly
  1467. />
  1468. (20)细胞因子类制品费:
  1469. <input
  1470. v-model="patient.cytokineProductsFee"
  1471. style="width: 70px"
  1472. readonly
  1473. />
  1474. </div>
  1475. <div>
  1476. 9.耗材类: (21)检查用一次性医用材料费:
  1477. <input
  1478. v-model="patient.costOfDisposableMedicalMaterialsForExamination"
  1479. style="width: 70px"
  1480. readonly
  1481. />
  1482. (22)治疗用一次性医用材料费:
  1483. <input
  1484. v-model="patient.costOfDisposableMedicalMaterialsForTreatment"
  1485. style="width: 70px"
  1486. readonly
  1487. />
  1488. </div>
  1489. <div>
  1490. (23)手术用一次性医用材料费:
  1491. <input
  1492. v-model="patient.costOfDisposableMedicalMaterialsForOperation"
  1493. style="width: 70px"
  1494. readonly
  1495. />
  1496. </div>
  1497. <div>
  1498. 10.其他类: (24)其他费:
  1499. <input v-model="patient.otherFees" style="width: 70px" readonly />
  1500. </div>
  1501. <!-- <div>
  1502. 主要诊断治愈好转情况:
  1503. <span style="border-bottom: 1px solid black; padding: 0 5px">
  1504. {{ filterDismissStatus(patient.disdiagList[0].dismissStatus) }}
  1505. </span>
  1506. </div> -->
  1507. <div style="display: flex;align-items: end;margin-top: 4px">
  1508. <table style="border-collapse: collapse; width: calc(100% - 25px)">
  1509. <thead>
  1510. <tr>
  1511. <th>重症监护室名称</th>
  1512. <th>进入重症监护室时间( 年 月 日 时 分)</th>
  1513. <th>转出重症监护室时间( 年 月 日 时 分)</th>
  1514. </tr>
  1515. </thead>
  1516. <tbody>
  1517. <tr v-for="n in 3">
  1518. <td>
  1519. <div style="height: 26px;line-height: 26px;padding-left: 5px" @click="clickIcuInfo('icuName',n)">
  1520. {{ patient.icuInfoList[n - 1].name }}
  1521. </div>
  1522. </td>
  1523. <td>
  1524. <div style="height: 26px;line-height: 26px;padding-left: 5px" class="datetime-container" @click="clickDate(n,1)">
  1525. {{ patient.icuInfoList[n - 1].startTime }}
  1526. <el-date-picker
  1527. :id="`pickerDateE${n}`"
  1528. v-model="patient.icuInfoList[n - 1].startTime"
  1529. type="datetime"
  1530. format="YYYY-MM-DD HH:mm:ss"
  1531. value-format="YYYY-MM-DD HH:mm:ss"
  1532. style="position: absolute;top: 0;left: 0;width: 100%;height: 100%;opacity: 0;cursor: pointer;z-index: 10;"
  1533. ></el-date-picker>
  1534. </div>
  1535. </td>
  1536. <td>
  1537. <div style="height: 26px;line-height: 26px;padding-left: 5px" class="datetime-container" @click="clickDate(n,1)">
  1538. {{ patient.icuInfoList[n - 1].endTime }}
  1539. <el-date-picker
  1540. :id="`pickerDateS${n}`"
  1541. v-model="patient.icuInfoList[n - 1].endTime"
  1542. type="datetime"
  1543. format="YYYY-MM-DD HH:mm:ss"
  1544. value-format="YYYY-MM-DD HH:mm:ss"
  1545. style="position: absolute;top: 0;left: 0;width: 100%;height: 100%;opacity: 0;cursor: pointer;z-index: 10;"
  1546. ></el-date-picker>
  1547. </div>
  1548. </td>
  1549. <el-button
  1550. v-if="patient.icuInfoList[n - 1].endTime"
  1551. type="danger"
  1552. circle
  1553. icon="Delete"
  1554. @click="clearLine('icuInfo')"
  1555. ></el-button>
  1556. </tr>
  1557. </tbody>
  1558. </table>
  1559. </div>
  1560. <div style="display: flex;align-items: end;margin-top: 4px">
  1561. 危重病例:
  1562. <select v-model="patient.wzbl" style="width: 60px">
  1563. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1564. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1565. </select>
  1566. 0.否&nbsp;1.是&nbsp;&nbsp;&nbsp;
  1567. <span style="margin-left: 12px">疑难病例:</span>
  1568. <select v-model="patient.ynbl" style="width: 60px">
  1569. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1570. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1571. </select>
  1572. 0.否&nbsp;1.是&nbsp;&nbsp;&nbsp;
  1573. <span style="margin-left: 12px">MDT病历:</span>
  1574. <select v-model="patient.mdtbl" style="width: 60px">
  1575. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1576. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1577. </select>
  1578. 0.否&nbsp;1.是&nbsp;&nbsp;&nbsp;
  1579. </div>
  1580. <div style="display: flex;align-items: end;margin-top: 4px">
  1581. 单病种病例:
  1582. <select v-model="patient.dbzbl" style="width: 60px">
  1583. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1584. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1585. </select>
  1586. 0.否&nbsp;1.是&nbsp;&nbsp;&nbsp;
  1587. <span style="margin-left: 12px">日间手术病例:</span>
  1588. <select v-model="patient.rjssbl" style="width: 60px">
  1589. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1590. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1591. </select>
  1592. 0.否&nbsp;1.是&nbsp;&nbsp;&nbsp;
  1593. <span style="margin-left: 12px">教学查房病历:</span>
  1594. <select v-model="patient.jxcfbl" style="width: 60px">
  1595. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1596. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1597. </select>
  1598. 0.否&nbsp;1.是&nbsp;&nbsp;&nbsp;
  1599. </div>
  1600. <div style="display: flex;align-items: end;margin-top: 4px">
  1601. 诊断符合情况: 1.门诊与住院
  1602. <select
  1603. id="mzycy"
  1604. v-model="patient.mzycy"
  1605. style="margin-right: 12px"
  1606. >
  1607. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1608. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1609. <option value="2">&nbsp;&nbsp;2&nbsp;&nbsp;</option>
  1610. <option value="3">&nbsp;&nbsp;3&nbsp;&nbsp;</option>
  1611. </select>
  1612. 2.入院与出院
  1613. <select id="ryycy" v-model="patient.ryycy">
  1614. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1615. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1616. <option value="2">&nbsp;&nbsp;2&nbsp;&nbsp;</option>
  1617. <option value="3">&nbsp;&nbsp;3&nbsp;&nbsp;</option>
  1618. </select>
  1619. </div>
  1620. <div style="display: flex;align-items: end;margin-top: 4px">
  1621. 3.术前与术后
  1622. <select
  1623. id="sqysh"
  1624. v-model="patient.sqysh"
  1625. style="margin-right: 12px"
  1626. >
  1627. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1628. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1629. <option value="2">&nbsp;&nbsp;2&nbsp;&nbsp;</option>
  1630. <option value="3">&nbsp;&nbsp;3&nbsp;&nbsp;</option>
  1631. </select>
  1632. 4.临床与病理
  1633. <select
  1634. id="lcybl"
  1635. v-model="patient.lcybl"
  1636. style="margin-right: 12px"
  1637. >
  1638. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1639. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1640. <option value="2">&nbsp;&nbsp;2&nbsp;&nbsp;</option>
  1641. <option value="3">&nbsp;&nbsp;3&nbsp;&nbsp;</option>
  1642. </select>
  1643. 5.放射与病理
  1644. <select id="fsybl" v-model="patient.fsybl">
  1645. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1646. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1647. <option value="2">&nbsp;&nbsp;2&nbsp;&nbsp;</option>
  1648. <option value="3">&nbsp;&nbsp;3&nbsp;&nbsp;</option>
  1649. </select>
  1650. (0.未做&nbsp;1.符合&nbsp;2.不符合&nbsp;3.不确定&nbsp;)&nbsp;&nbsp;
  1651. </div>
  1652. <div style="display: flex;align-items: end;margin-top: 4px">
  1653. 抢救情况: 抢救
  1654. <input
  1655. id="rescueTimes"
  1656. v-model="patient.rescueTimes"
  1657. type="number"
  1658. style="width: 90px;padding-left: 5px"
  1659. />次, 成功
  1660. <input
  1661. id="rescueSuccessTimes"
  1662. v-model="patient.rescueSuccessTimes"
  1663. type="number"
  1664. style="width: 90px;padding-left: 5px"
  1665. />次
  1666. </div>
  1667. <div style="display: flex;align-items: center;margin-top: 6px">
  1668. 同城互认:
  1669. 1.无
  1670. <el-checkbox true-value="1" false-value="0" v-model="patient.tchrw"></el-checkbox>
  1671. <span style="margin-left: 12px">2.影像检查</span>
  1672. <el-checkbox true-value="1" false-value="0" v-model="patient.tchryxjc"></el-checkbox>
  1673. <span style="margin-left: 12px">3.检验检查</span>
  1674. <el-checkbox true-value="1" false-value="0" v-model="patient.tchrjyjc"></el-checkbox>
  1675. <span style="margin-left: 12px">4.病理检查</span>
  1676. <el-checkbox true-value="1" false-value="0" v-model="patient.tchrbljc"></el-checkbox>
  1677. <span style="margin-left: 12px">9.其他</span>
  1678. <el-checkbox true-value="1" false-value="0" v-model="patient.tchrqt"></el-checkbox>
  1679. </div>
  1680. <div style="display: flex;align-items: center;margin-top: 6px">
  1681. 临床路径管理
  1682. <select
  1683. id="pathwayMng"
  1684. v-model="patient.pathwayMng"
  1685. style="width: 80px"
  1686. >
  1687. <option value="1">&nbsp;&nbsp;1</option>
  1688. <option value="2">&nbsp;&nbsp;2</option>
  1689. <option value="3">&nbsp;&nbsp;3</option>
  1690. <option value="4">&nbsp;&nbsp;4</option>
  1691. </select>
  1692. 1.完成&nbsp;2.变异&nbsp;3.退出&nbsp;4.未入&nbsp;&nbsp;&nbsp;
  1693. </div>
  1694. <div style="width: 800px;box-sizing: border-box;">
  1695. <span>说明:(一)医疗付费方式&nbsp;&nbsp;1.城镇职工基本医疗保险&nbsp;&nbsp;2.城镇居民基本医疗保险&nbsp;&nbsp;3.新型农村合作医疗&nbsp;&nbsp;4.贫困救助
  1696. &nbsp;&nbsp;5.商业医疗保险&nbsp;&nbsp;6.全公费&nbsp;&nbsp;7.全自费&nbsp;&nbsp;8.其他社会保险&nbsp;&nbsp;9.其他
  1697. </span>
  1698. </div>
  1699. <div style="width: 800px;box-sizing: border-box;">
  1700. <span>说明:(二)身份证件类型</span>
  1701. <span v-for="item in dics.getPsnCertType">
  1702. {{ item.code }}.{{ item.name }}
  1703. </span>
  1704. </div>
  1705. </div>
  1706. </div>
  1707. </div>
  1708. </div>
  1709. <div id="headpage" style="opacity: 0; position: fixed">
  1710. <HeadPage :patient="headPagePatient" :dics="dics" />
  1711. </div>
  1712. <div id="tailpage" style="opacity: 0; position: fixed">
  1713. <TailPage :patient="tailpagePatient" :dics="dics" />
  1714. </div>
  1715. <el-drawer
  1716. v-model="showMessageDrawer"
  1717. title="首页保存/打印校验结果"
  1718. size="260px"
  1719. modal-class="modal-class"
  1720. >
  1721. <div class="page-inner">
  1722. <div
  1723. v-if="forceVerifies.length === 0 && adviceVerifies.length === 0"
  1724. class="no-verify-message"
  1725. >
  1726. 暂无校验内容
  1727. </div>
  1728. <div
  1729. v-show="forceVerifies.length > 0"
  1730. style="padding: 8px 0 4px 0; font-weight: bold"
  1731. >
  1732. 以下条目为强制要求,请完善。
  1733. </div>
  1734. <div
  1735. v-for="(item, index) in forceVerifies"
  1736. :key="index"
  1737. class="message-item"
  1738. :style="messageColor(index)"
  1739. @click="handleClickMessage(item.code, index)"
  1740. >
  1741. {{ index + 1 }}、{{ item.name }}
  1742. </div>
  1743. <div
  1744. v-show="adviceVerifies.length > 0"
  1745. style="padding: 8px 0 4px 0; font-weight: bold"
  1746. >
  1747. 以下条目为建议执行,不做强制要求。
  1748. </div>
  1749. <div
  1750. v-for="(item, index) in adviceVerifies"
  1751. :key="index"
  1752. style="
  1753. padding: 6px;
  1754. margin-bottom: 6px;
  1755. border-radius: 4px;
  1756. background: #eea7a752;
  1757. color: #ff2b2b;
  1758. "
  1759. >
  1760. {{ index + 1 }}、{{ item.name }}
  1761. </div>
  1762. </div>
  1763. </el-drawer>
  1764. <div class="rightside-btn" @click="showMessageDrawer = !showMessageDrawer">
  1765. 首页保存 / 打印校验结果
  1766. </div>
  1767. <el-dialog
  1768. v-model="showSelectDateRange"
  1769. title="出院日期"
  1770. width="320px"
  1771. draggable
  1772. >
  1773. <div style="height: 20px"></div>
  1774. 请选择出院日期范围:
  1775. <div style="height: 10px"></div>
  1776. <el-date-picker
  1777. v-model="dateRange"
  1778. type="daterange"
  1779. range-separator="至"
  1780. start-placeholder="开始日期"
  1781. end-placeholder="结束日期"
  1782. :shortcuts="shortcuts"
  1783. style="width: 260px"
  1784. ></el-date-picker>
  1785. <div style="margin: 20px 0 10px 0; width: 100%; text-align: right">
  1786. <el-button type="primary" icon="Check" @click="confirmDateRange"
  1787. >确定
  1788. </el-button>
  1789. </div>
  1790. </el-dialog>
  1791. <el-dialog
  1792. v-model="showDateTimePicker"
  1793. title="时间日期选择"
  1794. width="320px"
  1795. draggable
  1796. >
  1797. <div style="height: 20px"></div>
  1798. 请选择日期时间:
  1799. <div style="height: 10px"></div>
  1800. <el-date-picker
  1801. v-model="showDateTimePickerData"
  1802. type="datetime"
  1803. style="width: 260px"
  1804. ></el-date-picker>
  1805. <div style="margin: 20px 0 10px 0; width: 100%; text-align: right">
  1806. <el-button type="primary" icon="Check" @click="confirmDateTimePickerData"
  1807. >确定
  1808. </el-button>
  1809. </div>
  1810. </el-dialog>
  1811. <el-dialog
  1812. v-model="showYbDiag"
  1813. title="医保出院诊断"
  1814. width="70%"
  1815. top="30px"
  1816. draggable
  1817. >
  1818. <div
  1819. style="
  1820. width: 100%;
  1821. height: 30px;
  1822. line-height: 30px;
  1823. background: rgb(252, 160, 23);
  1824. margin-bottom: 8px;
  1825. border-radius: 8px;
  1826. padding-left: 8px;
  1827. color: white;
  1828. "
  1829. >
  1830. <strong>主要诊断病种分值:{{ diseFamilyGrade }}</strong>
  1831. </div>
  1832. <el-tag type="info">医保诊断录入</el-tag>
  1833. <el-tag style="margin-left: 12px">患者:{{ patient.name }}</el-tag>
  1834. <el-tag style="margin-left: 8px"
  1835. >医疗类别:{{ patient.medTypeName }}
  1836. </el-tag>
  1837. <el-tag style="margin-left: 8px">险种类型:{{ patient.insutype }}</el-tag>
  1838. <div style="height: 5px"></div>
  1839. <el-input
  1840. v-model="ybDiag.name"
  1841. placeholder="在此搜索诊断"
  1842. readonly
  1843. style="width: 160px"
  1844. @click="showSearchData('ybDiag')"
  1845. ></el-input>
  1846. <el-input
  1847. placeholder="诊断编码"
  1848. disabled
  1849. style="width: 100px"
  1850. v-model="ybDiag.code"
  1851. ></el-input>
  1852. <el-select
  1853. v-model="ybDiag.siDiagType"
  1854. style="width: 100px"
  1855. placeholder="诊断类别"
  1856. >
  1857. <el-option
  1858. v-for="item in diagTypes"
  1859. :key="item.code"
  1860. :value="item.code"
  1861. :label="item.name"
  1862. ></el-option>
  1863. </el-select>
  1864. <el-select
  1865. v-model="ybDiag.admissCond"
  1866. style="width: 100px"
  1867. placeholder="入院病情"
  1868. >
  1869. <el-option
  1870. v-for="item in admissConds"
  1871. :key="item.code"
  1872. :value="item.code"
  1873. :label="item.name"
  1874. ></el-option>
  1875. </el-select>
  1876. <el-select
  1877. v-model="ybDiag.cyzg"
  1878. style="width: 120px"
  1879. placeholder="出院转归"
  1880. >
  1881. <el-option
  1882. v-for="item in cyzgs"
  1883. :key="item.code"
  1884. :value="item.code"
  1885. :label="item.name"
  1886. ></el-option>
  1887. </el-select>
  1888. <el-divider direction="vertical"></el-divider>
  1889. <el-button type="primary" icon="Plus" @click="addToYbDiags">添加</el-button>
  1890. <el-button type="success" icon="Upload" @click="saveYbDiags"
  1891. >保存
  1892. </el-button>
  1893. <el-table :data="ybDiags" stripe :height="200">
  1894. <el-table-column type="index" label="序号" width="45"></el-table-column>
  1895. <el-table-column prop="code" label="诊断编码"></el-table-column>
  1896. <el-table-column prop="name" label="诊断名称"></el-table-column>
  1897. <el-table-column
  1898. prop="siDiagType"
  1899. label="诊断类别"
  1900. width="80"
  1901. ></el-table-column>
  1902. <el-table-column
  1903. prop="admissCond"
  1904. label="入院病情"
  1905. width="80"
  1906. ></el-table-column>
  1907. <el-table-column
  1908. prop="cyzg"
  1909. label="出院转归"
  1910. width="80"
  1911. ></el-table-column>
  1912. <el-table-column
  1913. prop="operId"
  1914. label="录入人"
  1915. width="70"
  1916. ></el-table-column>
  1917. <el-table-column prop="opDate" label="录入日期"></el-table-column>
  1918. <el-table-column label="操作">
  1919. <template #default="scope">
  1920. <el-button
  1921. type="danger"
  1922. icon="Delete"
  1923. @click="deleteYbDiag(scope.$index)"
  1924. >删除
  1925. </el-button>
  1926. </template>
  1927. </el-table-column>
  1928. </el-table>
  1929. <div style="height: 12px"></div>
  1930. <el-tag type="info">病案首页诊断信息</el-tag>
  1931. <el-table :data="filterDisDiagList" stripe :height="200">
  1932. <el-table-column type="index" label="序号" width="45"></el-table-column>
  1933. <el-table-column prop="code" label="诊断编码"></el-table-column>
  1934. <el-table-column prop="name" label="诊断名称"></el-table-column>
  1935. <el-table-column label="出院病情">
  1936. <template #default="scope">
  1937. {{ filterDismissStatus(scope.row.dismissStatus) }}
  1938. </template>
  1939. </el-table-column>
  1940. <el-table-column label="操作">
  1941. <template #default="scope">
  1942. <el-button
  1943. icon="Link"
  1944. title="添加到医保诊断"
  1945. circle
  1946. @click="syncronizeWithSiDiagnose(scope.row.code)"
  1947. ></el-button>
  1948. </template>
  1949. </el-table-column>
  1950. </el-table>
  1951. </el-dialog>
  1952. <el-dialog v-model="showSearch" title="数据搜索" width="730px" draggable>
  1953. 检索依据:
  1954. <el-select v-model="searchMethod" style="width: 100px">
  1955. <el-option
  1956. v-for="item in searchMethods"
  1957. :key="item.code"
  1958. :label="item.name"
  1959. :value="item.code"
  1960. ></el-option>
  1961. </el-select>
  1962. &nbsp;&nbsp;&nbsp;&nbsp; 搜索内容:
  1963. <el-input
  1964. ref="searchInput"
  1965. v-model="searchContent"
  1966. prefix-icon="Search"
  1967. placeholder="请输入搜索内容"
  1968. style="width: 160px"
  1969. clearable
  1970. @input="executeSearch"
  1971. ></el-input>
  1972. <div
  1973. v-if="showSurgeryRecommand"
  1974. style="padding: 12px 0 4px 4px; color: gray"
  1975. >
  1976. 根据患者主诊断
  1977. <el-tag
  1978. >{{ patient.disdiagList[0].code }}
  1979. <span style="color: blue">{{ patient.disdiagList[0].name }}</span>
  1980. </el-tag>
  1981. ,推荐以下手术操作:
  1982. </div>
  1983. <el-table
  1984. :data="searchResults"
  1985. height="400"
  1986. stripe
  1987. highlight-current-row
  1988. @row-click="handleSelectSearch"
  1989. >
  1990. <el-table-column prop="code" label="编码" width="130"></el-table-column>
  1991. <el-table-column prop="name" label="名称"></el-table-column>
  1992. <el-table-column
  1993. v-if="searchUrl === 'employee'"
  1994. prop="deptName"
  1995. label="科室"
  1996. ></el-table-column>
  1997. <el-table-column
  1998. v-if="searchUrl === 'employee'"
  1999. prop="ybCode"
  2000. label="医保赋码"
  2001. ></el-table-column>
  2002. <el-table-column
  2003. v-if="showSurgeryRecommand"
  2004. prop="ssfz"
  2005. label="手术分值"
  2006. width="60"
  2007. ></el-table-column>
  2008. </el-table>
  2009. <div style="margin-top: 15px; width: 100%; text-align: right">
  2010. <el-button
  2011. type="primary"
  2012. icon="ArrowLeft"
  2013. @click="lastPage"
  2014. :disabled="showSurgeryRecommand || currentSRPage === 1"
  2015. >
  2016. 上一页
  2017. </el-button>
  2018. <el-button
  2019. type="primary"
  2020. icon="ArrowRight"
  2021. @click="nextPage"
  2022. :disabled="
  2023. showSurgeryRecommand ||
  2024. (currentSRPage > 1 && searchResults.length < 10)
  2025. "
  2026. >
  2027. 下一页
  2028. </el-button>
  2029. </div>
  2030. </el-dialog>
  2031. <el-dialog
  2032. v-model="showSurgeryDatetime"
  2033. title="请选择手术时间"
  2034. width="330px"
  2035. draggable
  2036. >
  2037. <div style="height: 12px"></div>
  2038. <el-date-picker
  2039. v-model="surgeryDatetime"
  2040. type="datetime"
  2041. placeholder="手术开始时间"
  2042. ></el-date-picker>
  2043. <div style="height: 12px"></div>
  2044. <el-date-picker
  2045. v-model="opEndDate"
  2046. type="datetime"
  2047. placeholder="手术结束时间"
  2048. ></el-date-picker>
  2049. <div style="margin: 12px 0 8px 0; font-size: 14px; color: red">
  2050. 提示:有麻醉(局麻除外)的患者需要填写麻醉时间,否则最终校验无法通过!
  2051. </div>
  2052. <el-date-picker
  2053. v-model="anstStartDate"
  2054. type="datetime"
  2055. placeholder="麻醉开始时间"
  2056. ></el-date-picker>
  2057. <div style="height: 12px"></div>
  2058. <el-date-picker
  2059. v-model="anstEndDate"
  2060. type="datetime"
  2061. placeholder="麻醉结束时间"
  2062. ></el-date-picker>
  2063. <template #footer>
  2064. <div>
  2065. <el-button type="primary" icon="Success" @click="confirmSurgeryDatetime"
  2066. >确定
  2067. </el-button>
  2068. </div>
  2069. </template>
  2070. </el-dialog>
  2071. </template>
  2072. <script setup name="FillCaseFrontSheet">
  2073. import {
  2074. autopsies,
  2075. clone,
  2076. filterDismissStatus,
  2077. haveOrNot,
  2078. initShowDel,
  2079. searchMethods,
  2080. yesOrNo,
  2081. noCertReasons
  2082. } from "./common";
  2083. import { operations } from "@/data";
  2084. import { getLodop, initLodop } from "@/utils/c-lodop";
  2085. import {
  2086. doSaveYbDiags,
  2087. executePrintVerify,
  2088. executeSaveVerify,
  2089. fetchAuditCount,
  2090. fetchOutPatients,
  2091. fetchSsfz,
  2092. getAllDictionary,
  2093. getPatientOverview,
  2094. getSheetInfo,
  2095. getSsfzSurgeriesByIcd,
  2096. getUserWards,
  2097. getYbDiags,
  2098. increaseDiagWeight,
  2099. isMedinsSetl,
  2100. selectSiDiagByBaDiag,
  2101. sheetSearch,
  2102. submitQualityVerification,
  2103. } from "@/api/case-front-sheet";
  2104. import maleIcon from "@/assets/male-icon.png";
  2105. import femaleIcon from "@/assets/female-icon.png";
  2106. import {ElMessage, ElMessageBox} from "element-plus";
  2107. import { shortcuts } from "@/data/shortcuts";
  2108. import {
  2109. formatDate,
  2110. formatDatetime,
  2111. getDatetime,
  2112. getOneMonthOffset,
  2113. } from "@/utils/date";
  2114. import HeadPage from "../../../components/inpatient/frontsheet-printpage/HeadPage.vue";
  2115. import TailPage from "../../../components/inpatient/frontsheet-printpage/TailPage.vue";
  2116. import router from "@/router/index";
  2117. import Sleep from "@/utils/sleep";
  2118. import { smoothScrollTableColumn } from "@/utils/el-table-scroll";
  2119. import { regions } from "@/data/region";
  2120. import { CyMessageBox } from "@/utils/cy-message-box";
  2121. import { xcMessage } from "@/utils/xiaochan-element-plus";
  2122. import AuditHistory from "@/components/inpatient/frontsheet-printpage/AuditHistory.vue";
  2123. import { useUserStore } from "@/pinia/user-store";
  2124. import HistorySheetExport from "@/views/hospitalization/case-front-sheet/component/HistorySheetExport.vue";
  2125. import { useDialog } from "@/components/cy/CyDialog/index";
  2126. import env from "../../../utils/setting";
  2127. import {isNumeric} from "@/utils/validate.js";
  2128. const userStore = useUserStore();
  2129. const userWards = ref([]);
  2130. const currentWard = ref("");
  2131. const inOutStatus = ref(1);
  2132. const inOutOptions = initInOutOptions();
  2133. const inpatientNo = ref("");
  2134. const onlyShowMyPatients = ref(false);
  2135. const overview = ref([]);
  2136. const patient = ref({
  2137. disdiagList: [
  2138. {},
  2139. {},
  2140. {},
  2141. {},
  2142. {},
  2143. {},
  2144. {},
  2145. {},
  2146. {},
  2147. {},
  2148. {},
  2149. {},
  2150. {},
  2151. {},
  2152. {},
  2153. {},
  2154. {},
  2155. {},
  2156. {},
  2157. {},
  2158. {},
  2159. {},
  2160. {},
  2161. {},
  2162. {},
  2163. {},
  2164. {},
  2165. ],
  2166. surgeryList: [{}, {}, {}, {}, {}],
  2167. icuInfoList: [{}, {}, {}],
  2168. supplement: {},
  2169. });
  2170. const defaultSurgerySize = ref(5);
  2171. const dics = ref({});
  2172. const headPagePatient = ref({
  2173. disdiagList: [
  2174. {},
  2175. {},
  2176. {},
  2177. {},
  2178. {},
  2179. {},
  2180. {},
  2181. {},
  2182. {},
  2183. {},
  2184. {},
  2185. {},
  2186. {},
  2187. {},
  2188. {},
  2189. {},
  2190. {},
  2191. {},
  2192. {},
  2193. {},
  2194. {},
  2195. {},
  2196. {},
  2197. {},
  2198. {},
  2199. {},
  2200. {},
  2201. ],
  2202. surgeryList: [{}, {}, {}, {}, {}],
  2203. icuInfoList: [{}, {}, {}],
  2204. supplement: {},
  2205. });
  2206. const tailpagePatient = ref({
  2207. disdiagList: [
  2208. {},
  2209. {},
  2210. {},
  2211. {},
  2212. {},
  2213. {},
  2214. {},
  2215. {},
  2216. {},
  2217. {},
  2218. {},
  2219. {},
  2220. {},
  2221. {},
  2222. {},
  2223. {},
  2224. {},
  2225. {},
  2226. {},
  2227. {},
  2228. {},
  2229. {},
  2230. {},
  2231. {},
  2232. {},
  2233. {},
  2234. {},
  2235. ],
  2236. surgeryList: [{}, {}, {}, {}, {}],
  2237. icuInfoList: [{}, {}, {}],
  2238. supplement: {},
  2239. });
  2240. const patientTransformData = ref({});
  2241. const sexList = ref([1,2,9]);
  2242. const showGoSearchBtn1 = ref(false);
  2243. const showGoSearchBtn2 = ref(false);
  2244. const showDel = initShowDel();
  2245. const asideTable = ref(null);
  2246. const showDateTimePicker = ref(false);
  2247. const showDateTimePickerData = ref(null);
  2248. function addSurgeSize() {
  2249. patient.value.surgeryList.push({});
  2250. defaultSurgerySize.value += 1;
  2251. }
  2252. const cptOverviews = computed(() => {
  2253. return overview.value.filter(item => {
  2254. if (onlyShowMyPatients.value) {
  2255. return item.doctorCode === userStore.userInfo.code;
  2256. }
  2257. return true;
  2258. });
  2259. });
  2260. const filterDisDiagList = computed(() => {
  2261. return patient.value.disdiagList.filter(item => {
  2262. return item.code && item.name;
  2263. });
  2264. });
  2265. const clickShowDateTimePickerVisible = (key1,key2,key3) =>{
  2266. console.log("params",)
  2267. patient.value[key1][key2] = showDateTimePickerData
  2268. }
  2269. const searchPatient = () => {
  2270. if (!inpatientNo.value || inpatientNo.value.trim().length < 1) {
  2271. ElMessage({
  2272. message: "请输入要搜索的住院号",
  2273. type: "warning",
  2274. duration: 2500,
  2275. showClose: true,
  2276. });
  2277. return;
  2278. }
  2279. const patientIndex = overview.value.findIndex(item => {
  2280. return item.bah === inpatientNo.value.trim();
  2281. });
  2282. if (patientIndex === -1) {
  2283. ElMessage({
  2284. message: "未找到住院号【" + inpatientNo.value.trim() + "】的患者信息",
  2285. type: "warning",
  2286. duration: 2500,
  2287. showClose: true,
  2288. });
  2289. } else {
  2290. const currentPatient = overview.value[patientIndex];
  2291. handleClickOverview(currentPatient);
  2292. smoothScrollTableColumn(asideTable.value, patientIndex, currentPatient);
  2293. }
  2294. };
  2295. const changeDate = () => {
  2296. console.log("changeDate",v )
  2297. };
  2298. const clickDate = (v,t) => {
  2299. if (t == 1) {
  2300. document.getElementById(`pickerDateS${v}`).focus();
  2301. } else {
  2302. document.getElementById(`pickerDateE${v}`).focus();
  2303. }
  2304. };
  2305. const handleWardChange = () => {
  2306. if (inOutStatus.value === 1) {
  2307. fetchOverview();
  2308. } else {
  2309. confirmDateRange();
  2310. }
  2311. };
  2312. const dateRange = ref([]);
  2313. const showSelectDateRange = ref(false);
  2314. const changeInOutStatus = () => {
  2315. if (inOutStatus.value === 1) {
  2316. fetchOverview();
  2317. } else {
  2318. if (!dateRange.value || dateRange.value.length < 2) {
  2319. const oneMonth = getOneMonthOffset();
  2320. dateRange.value[0] = oneMonth.start;
  2321. dateRange.value[1] = oneMonth.end;
  2322. }
  2323. showSelectDateRange.value = true;
  2324. }
  2325. };
  2326. const confirmDateRange = () => {
  2327. if (!dateRange.value || dateRange.value.length < 2) {
  2328. ElMessage({
  2329. message: "请选择时间范围",
  2330. type: "warning",
  2331. duration: 2500,
  2332. showClose: true,
  2333. });
  2334. return;
  2335. }
  2336. const param = {
  2337. ward: currentWard.value,
  2338. start: formatDate(dateRange.value[0]),
  2339. end: formatDate(dateRange.value[1]),
  2340. };
  2341. fetchOutPatients(param).then(res => {
  2342. overview.value = res;
  2343. showSelectDateRange.value = false;
  2344. });
  2345. };
  2346. const confirmDateTimePickerData = () => {
  2347. showDateTimePicker.value=false
  2348. showDateTimePickerData.value=null
  2349. };
  2350. const clickIcuInfo = (name,n) => {
  2351. if (name == "icuName") {
  2352. patient.value.icuInfoList[n - 1].icuName = "ICU"
  2353. }
  2354. };
  2355. const fetchOverview = () => {
  2356. getPatientOverview(currentWard.value).then(res => {
  2357. overview.value = res;
  2358. });
  2359. };
  2360. const currentRow = ref({});
  2361. const handleClickOverview = row => {
  2362. currentRow.value = {}
  2363. currentRow.value = row;
  2364. fetchSheetInfo(row);
  2365. };
  2366. const fetchSheetInfo = row => {
  2367. if (
  2368. row.bah !== patient.value.bah ||
  2369. row.times !== patient.value.admissTimes
  2370. ) {
  2371. forceVerifies.value = [];
  2372. adviceVerifies.value = [];
  2373. }
  2374. row.inOutFlag = inOutStatus.value;
  2375. getSheetInfo(row).then(res => {
  2376. patient.value = res;
  2377. let s = res.surgeryList.length;
  2378. defaultSurgerySize.value = s > 5 ? s : 5;
  2379. patient.value.bedNo = row.bedNo;
  2380. patient.value.sex = row.sex;
  2381. initSheetInfoLine(patient);
  2382. if(patient.value.age == null){
  2383. console.log("initSheetInfoLine0",patient.value.age)
  2384. // patientTransformData.value.age = '-'
  2385. } else {
  2386. patient.value.infAge == null?patientTransformData.value.infAge = '-':false;
  2387. patient.value.ageDays == null?patientTransformData.value.ageDays = '-':false;
  2388. patient.value.newBornWeight1 == null?patientTransformData.value.newBornWeight1 = '-':false;
  2389. patient.value.newBornWeight2 == null?patientTransformData.value.newBornWeight2 = '-':false;
  2390. patient.value.newBornAdmissWeight == null?patientTransformData.value.newBornAdmissWeight = '-':false;
  2391. }
  2392. if(patient.value.birthDate != null){
  2393. patientTransformData.value.birthYear = patient.value.birthDate.slice(0,4);
  2394. patientTransformData.value.birthMonth = patient.value.birthDate.slice(5,7);
  2395. patientTransformData.value.birthDay = patient.value.birthDate.slice(8,10);
  2396. }
  2397. patient.value.noCertReason == null?patient.value.noCertReason = "-":false;
  2398. patient.value.noCertReason == null?patient.value.noCertReason = "-":false;
  2399. patient.value.autopsy == null?patient.value.autopsy = "-":false;
  2400. patient.value.transDept == null?patientTransformData.value.transDept = "-":false;
  2401. patient.value.hurtReasonName == null?patientTransformData.value.hurtReasonName = "-":false;
  2402. patient.value.hurtReasonCode == null?patientTransformData.value.hurtReasonCode = "-":false;
  2403. if (patient.value.pathologicDiagCode == null || patient.value.pathologicDiagCode== "-") {
  2404. patientTransformData.value.pathologicDiagStr = "-"
  2405. patientTransformData.value.pathologicDiagCode = "-"
  2406. }
  2407. if (patient.value.internshipDoctor == null || patient.value.internshipDoctor== "-") {
  2408. patient.value.internshipDoctor = "-"
  2409. patient.value.internshipDoctorName = "-"
  2410. }
  2411. if (patient.value.studyDoctorName == null || patient.value.studyDoctorName== "-") {
  2412. patient.value.studyDoctorName = "-"
  2413. patient.value.studyDoctorNameName = "-"
  2414. }
  2415. patient.value.blh == null?patientTransformData.value.blh = "-":false;
  2416. patient.value.transDept == null?patientTransformData.value.transDept = "-":false;
  2417. //初始化其他诊断横线
  2418. for (let i = 1; i < patient.value.disdiagList.length; i++) {
  2419. if(patient.value.disdiagList[i].name == '-' || patient.value.disdiagList[i].name == '' || patient.value.disdiagList[i].name == null){
  2420. patient.value.disdiagList[i].name = '-'
  2421. break;
  2422. }
  2423. }
  2424. console.log("patient.value.disdiagList",patient.value.disdiagList)
  2425. //初始化手术横线
  2426. for (let i = 0; i < patient.value.surgeryList.length; i++) {
  2427. if(patient.value.surgeryList[i].name == '-' || patient.value.surgeryList[i].name == null){
  2428. patient.value.surgeryList[i].name = '-'
  2429. break;
  2430. }
  2431. }
  2432. //初始化重症监护室横线
  2433. for (let i = 0; i < patient.value.icuInfoList.length; i++) {
  2434. if(patient.value.icuInfoList[i].name == '-' || patient.value.icuInfoList[i].name == null){
  2435. patient.value.icuInfoList[i].name = '-'
  2436. break;
  2437. }
  2438. }
  2439. patient.value.surgeryList[0].name == null?patient.value.surgeryList[0].name = '-':false;
  2440. // 为工作单位相关字段设置默认短横线
  2441. if (!patient.value.unitName || patient.value.unitName.trim() === '') {
  2442. patient.value.unitName = '-';
  2443. }
  2444. if (!patient.value.unitPlace || patient.value.unitPlace.trim() === '') {
  2445. patient.value.unitPlace = '-';
  2446. }
  2447. if (!patient.value.unitPhone || patient.value.unitPhone.trim() === '') {
  2448. patient.value.unitPhone = '-';
  2449. }
  2450. if (!patient.value.unitZipCode || patient.value.unitZipCode.trim() === '') {
  2451. patient.value.unitZipCode = '-';
  2452. }
  2453. mergePrintHeadpage()
  2454. // console.log("fdsfds",headPagePatient)
  2455. mergePrintTailpage()
  2456. });
  2457. };
  2458. const initSheetInfoLine=(data)=>{
  2459. for (const key in data.value) {
  2460. if (Object.prototype.hasOwnProperty.call(data.value, key)) {
  2461. patientTransformData.value[key] = data.value[key]
  2462. }
  2463. }
  2464. console.log("initSheetInfoLine",patientTransformData.value)
  2465. }
  2466. const currentSRPage = ref(1);
  2467. const showSearch = ref(false);
  2468. const insertDiag = ref(false);
  2469. watchEffect(() => {
  2470. if (showSearch.value) {
  2471. searchResults.value = [];
  2472. setTimeout(() => {
  2473. showDel.value = initShowDel();
  2474. searchInput.value.focus();
  2475. }, 300);
  2476. } else {
  2477. insertDiag.value = false;
  2478. }
  2479. });
  2480. const searchInput = ref(null);
  2481. const searchUrl = ref("");
  2482. const searchTargetCode = ref("");
  2483. const searchTargetName = ref("");
  2484. const searchContent = ref("");
  2485. const lastPage = () => {
  2486. currentSRPage.value--;
  2487. fetchSearchData();
  2488. };
  2489. const nextPage = () => {
  2490. currentSRPage.value++;
  2491. fetchSearchData();
  2492. };
  2493. const fetchSearchData = () => {
  2494. const param = {
  2495. patNo: patient.value.bah,
  2496. times: patient.value.admissTimes,
  2497. method: searchMethod.value,
  2498. target: searchUrl.value,
  2499. content: searchContent.value,
  2500. medType: patient.value.medType,
  2501. page: currentSRPage.value,
  2502. };
  2503. sheetSearch(param).then(res => {
  2504. searchResults.value = res;
  2505. });
  2506. };
  2507. const executeSearch = () => {
  2508. showSurgeryRecommand.value = false;
  2509. if (
  2510. mainSurgeryFocused.value &&
  2511. searchContent.value === "" &&
  2512. patient.value.disdiagList[0].code
  2513. ) {
  2514. getSsfzSurgeriesByIcd(
  2515. patient.value.bah,
  2516. patient.value.admissTimes,
  2517. patient.value.disdiagList[0].code
  2518. ).then(res => {
  2519. searchResults.value = res;
  2520. showSurgeryRecommand.value = true;
  2521. });
  2522. return;
  2523. }
  2524. if (searchContent.value.length < 2) return;
  2525. currentSRPage.value = 1;
  2526. fetchSearchData();
  2527. };
  2528. const showYbDiag = ref(false);
  2529. const openYbDiag = () => {
  2530. if (nullPatient()) {
  2531. return;
  2532. }
  2533. if (!patient.value.medType) {
  2534. ElMessage({
  2535. message: "自费病人无需填写医保诊断",
  2536. type: "warning",
  2537. duration: 2500,
  2538. showClose: true,
  2539. });
  2540. return;
  2541. }
  2542. getYbDiags(patient.value.bah, patient.value.admissTimes).then(res => {
  2543. ybDiags.value = res;
  2544. showYbDiag.value = true;
  2545. });
  2546. };
  2547. const searchMethod = ref("alpha");
  2548. const searchResults = ref([]);
  2549. const showSearchData = flag => {
  2550. mainSurgeryFocused.value = false;
  2551. showSurgeryRecommand.value = false;
  2552. searchUrl.value = "place";
  2553. if (flag === "birth") {
  2554. searchTargetCode.value = "birthPlace";
  2555. searchTargetName.value = "birthPlaceName";
  2556. } else if (flag === "birthPlace") {
  2557. searchTargetCode.value = "birthPlace";
  2558. searchTargetName.value = "birthPlaceName";
  2559. } else if (flag === "livePlace") {
  2560. searchTargetCode.value = "addrZipCode";
  2561. searchTargetName.value = "livePlace";
  2562. } else if (flag === "native") {
  2563. searchTargetCode.value = "nativePlace";
  2564. searchTargetName.value = "nativePlaceName";
  2565. } else if (flag === "hk") {
  2566. searchTargetCode.value = "hkZipCode";
  2567. searchTargetName.value = "hkPlaceName";
  2568. } else if (flag === "contact") {
  2569. searchTargetCode.value = "contactAddr";
  2570. searchTargetName.value = "contactAddrName";
  2571. } else if (flag === "hurt") {
  2572. searchUrl.value = "hurtReason";
  2573. searchTargetCode.value = "hurtReasonCode";
  2574. searchTargetName.value = "hurtReasonName";
  2575. } else if (flag === "pathologic") {
  2576. searchUrl.value = "pathologicDiag";
  2577. searchTargetCode.value = "pathologicDiagCode";
  2578. searchTargetName.value = "pathologicDiagStr";
  2579. } else if (flag === "deptleader") {
  2580. searchUrl.value = "employee";
  2581. searchTargetCode.value = "deptLeader";
  2582. searchTargetName.value = "deptLeaderName";
  2583. } else if (flag === "leaderdoctor") {
  2584. searchUrl.value = "employee";
  2585. searchTargetCode.value = "leaderDoctor";
  2586. searchTargetName.value = "leaderDoctorName";
  2587. } else if (flag === "maindoctor") {
  2588. searchUrl.value = "employee";
  2589. searchTargetCode.value = "mainDoctor";
  2590. searchTargetName.value = "mainDoctorName";
  2591. } else if (flag === "admissdoctor") {
  2592. searchUrl.value = "employee";
  2593. searchTargetCode.value = "admissDoctor";
  2594. searchTargetName.value = "admissDoctorName";
  2595. } else if (flag === "dutynurse") {
  2596. searchUrl.value = "employee";
  2597. searchTargetCode.value = "dutyNurse";
  2598. searchTargetName.value = "dutyNurseName";
  2599. } else if (flag === "studydoctor") {
  2600. searchUrl.value = "employee";
  2601. searchTargetCode.value = "studyDoctor";
  2602. searchTargetName.value = "studyDoctorName";
  2603. } else if (flag === "internshipdoctor") {
  2604. searchUrl.value = "employee";
  2605. searchTargetCode.value = "internshipDoctor";
  2606. searchTargetName.value = "internshipDoctorName";
  2607. } else if (flag === "coder") {
  2608. searchUrl.value = "employee";
  2609. searchTargetCode.value = "coder";
  2610. searchTargetName.value = "coderName";
  2611. } else if (flag === "qualitycontroldoctor") {
  2612. searchUrl.value = "employee";
  2613. searchTargetCode.value = "qualityControlDoctor";
  2614. searchTargetName.value = "qualityControlDoctorName";
  2615. } else if (flag === "qualitycontrolnurse") {
  2616. searchUrl.value = "employee";
  2617. searchTargetCode.value = "qualityControlNurse";
  2618. searchTargetName.value = "qualityControlNurseName";
  2619. } else if (flag === "ybDiag") {
  2620. searchUrl.value = "diag";
  2621. searchTargetCode.value = "ybDiagCode";
  2622. } else if (flag === "clinicdiag") {
  2623. searchUrl.value = "clinicdiag";
  2624. searchTargetCode.value = "clinicDiagCode";
  2625. searchTargetName.value = "clinicDiagStr";
  2626. } else if (flag === "admdiag") {
  2627. searchUrl.value = "clinicdiag";
  2628. searchTargetCode.value = "admDiagCode";
  2629. searchTargetName.value = "admDiagStr";
  2630. }
  2631. showSearch.value = true;
  2632. console.log("handleSelectSearch")
  2633. };
  2634. const showSurgeryDatetime = ref(false);
  2635. const surgeryDatetime = ref(null);
  2636. const opEndDate = ref(null);
  2637. const anstStartDate = ref(null);
  2638. const anstEndDate = ref(null);
  2639. const currentSurgeryDatetimeIndex = ref(null);
  2640. const showPickSurgeryDatetime = index => {
  2641. currentSurgeryDatetimeIndex.value = index;
  2642. let surgery = patient.value.surgeryList[index];
  2643. surgeryDatetime.value = surgery.date;
  2644. opEndDate.value = surgery.opEndDate;
  2645. anstStartDate.value = surgery.anstStartDate;
  2646. anstEndDate.value = surgery.anstEndDate;
  2647. showSurgeryDatetime.value = true;
  2648. };
  2649. const confirmSurgeryDatetime = () => {
  2650. if (!surgeryDatetime.value) {
  2651. ElMessage({
  2652. message: "手术开始时间不能为空!",
  2653. type: "warning",
  2654. duration: 2500,
  2655. showClose: true,
  2656. });
  2657. return;
  2658. }
  2659. if (!opEndDate.value) {
  2660. ElMessage({
  2661. message: "手术结束时间不能为空!",
  2662. type: "warning",
  2663. duration: 2500,
  2664. showClose: true,
  2665. });
  2666. return;
  2667. }
  2668. patient.value.surgeryList[currentSurgeryDatetimeIndex.value].date =
  2669. formatDatetime(surgeryDatetime.value);
  2670. patient.value.surgeryList[currentSurgeryDatetimeIndex.value].opEndDate =
  2671. formatDatetime(opEndDate.value);
  2672. patient.value.surgeryList[currentSurgeryDatetimeIndex.value].anstStartDate =
  2673. formatDatetime(anstStartDate.value);
  2674. patient.value.surgeryList[currentSurgeryDatetimeIndex.value].anstEndDate =
  2675. formatDatetime(anstEndDate.value);
  2676. showSurgeryDatetime.value = false;
  2677. };
  2678. const showSearchSurgerior = (flag, index) => {
  2679. mainSurgeryFocused.value = false;
  2680. showSurgeryRecommand.value = false;
  2681. if (flag === "operator") {
  2682. searchTargetCode.value = "surgeryOperatorCode" + (index - 1);
  2683. searchTargetName.value = "surgeryOperatorName" + (index - 1);
  2684. } else if (flag === "assistantone") {
  2685. searchTargetCode.value = "surgeryAssistantOneCode" + (index - 1);
  2686. searchTargetName.value = "surgeryAssistantOneName" + (index - 1);
  2687. } else if (flag === "assistanttwo") {
  2688. searchTargetCode.value = "surgeryAssistantTwoCode" + (index - 1);
  2689. searchTargetName.value = "surgeryAssistantTwoName" + (index - 1);
  2690. } else {
  2691. searchTargetCode.value = "surgeryAnaesthesiaorCode" + (index - 1);
  2692. searchTargetName.value = "surgeryAnaesthesiaorName" + (index - 1);
  2693. }
  2694. searchUrl.value = "employee";
  2695. showSearch.value = true;
  2696. };
  2697. const diseFamilyGrade = ref(null);
  2698. const ybDiag = reactive({});
  2699. const cyzgs = initCyzgs();
  2700. const admissConds = initAdmissConds();
  2701. const diagTypes = initDiagTypes();
  2702. const handleSelectSearch = item => {
  2703. if (searchTargetCode.value.startsWith("surgery")) {
  2704. let offset = defaultSurgerySize.value > 10 ? 2 : 1;
  2705. let no = searchTargetCode.value.substr(
  2706. searchTargetCode.value.length - offset
  2707. );
  2708. if (!isNumeric(no)) {
  2709. offset = 1
  2710. no = searchTargetCode.value.substr(
  2711. searchTargetCode.value.length - offset
  2712. );
  2713. }
  2714. switch (
  2715. searchTargetCode.value.substr(0, searchTargetCode.value.length - offset)
  2716. ) {
  2717. case "surgeryCode":
  2718. if (no > 0) {
  2719. patient.value.surgeryList[no] = clone(
  2720. patient.value.surgeryList[no - 1]
  2721. );
  2722. }
  2723. patient.value.surgeryList[no].no = no;
  2724. patient.value.surgeryList[no].name = item.name;
  2725. patient.value.surgeryList[no].code = item.code;
  2726. patient.value.surgeryList[no].level = item.opScale;
  2727. break;
  2728. case "surgeryOperatorCode":
  2729. patient.value.surgeryList[no].operator = item.code;
  2730. patient.value.surgeryList[no].operatorName = item.name;
  2731. break;
  2732. case "surgeryAssistantOneCode":
  2733. patient.value.surgeryList[no].assistantOne = item.code;
  2734. patient.value.surgeryList[no].assistantOneName = item.name;
  2735. break;
  2736. case "surgeryAssistantTwoCode":
  2737. patient.value.surgeryList[no].assistantTwo = item.code;
  2738. patient.value.surgeryList[no].assistantTwoName = item.name;
  2739. break;
  2740. case "surgeryAnaesthesiaorCode":
  2741. patient.value.surgeryList[no].anaesthesiaor = item.code;
  2742. patient.value.surgeryList[no].anaesthesiaorName = item.name;
  2743. break;
  2744. }
  2745. } else if (searchTargetCode.value.startsWith("disdiags")) {
  2746. let no = Number(searchTargetCode.value.replace("disdiagsCode", ""));
  2747. if (insertDiag.value) {
  2748. for (let i = 26; i > no; i--) {
  2749. patient.value.disdiagList[i] = clone(patient.value.disdiagList[i - 1]);
  2750. }
  2751. patient.value.disdiagList.splice(27);
  2752. insertDiag.value = false;
  2753. }
  2754. patient.value.disdiagList[no].code = item.code;
  2755. patient.value.disdiagList[no].name = item.name;
  2756. patient.value.disdiagList[no].no = no;
  2757. patient.value.disdiagList[no].admissStatus = patient.value.disdiagList[
  2758. no
  2759. ].dismissStatus = "1";
  2760. patient.value.disdiagList[no].opIdCode = userStore.userInfo.code;
  2761. increaseDiagWeight(item.code);
  2762. } else if (searchTargetCode.value === "ybDiagCode") {
  2763. ybDiag.code = item.code;
  2764. ybDiag.name = item.name;
  2765. ybDiag.cyzg = 0;
  2766. ybDiag.siDiagType = 1;
  2767. if (!ybDiags.value || ybDiags.value.length === 0) {
  2768. fetchSsfz(item.code, patient.value.bah, patient.value.admissTimes).then(
  2769. res => {
  2770. diseFamilyGrade.value = res;
  2771. }
  2772. );
  2773. }
  2774. } else if (searchTargetCode.value === "clinicDiagCode") {
  2775. patientTransformData.value.clinicDiagCode = item.code;
  2776. patientTransformData.value.clinicDiagStr = item.name;
  2777. } else if (searchTargetCode.value === "admDiagCode") {
  2778. patientTransformData.value.supplement.admDiagCode = item.code;
  2779. patientTransformData.value.supplement.admDiagName = item.name;
  2780. } else {
  2781. if (needDorSiCode.indexOf(searchTargetCode.value) > -1) {
  2782. if (!item.ybCode.startsWith("D")) {
  2783. ElMessage({
  2784. message: "医师医保编码首字母为D,请重新选择。",
  2785. type: "warning",
  2786. showClose: true,
  2787. duration: 2500,
  2788. });
  2789. return;
  2790. }
  2791. }
  2792. if (searchTargetCode.value === "dutyNurse") {
  2793. if (!item.ybCode.startsWith("N")) {
  2794. ElMessage({
  2795. message: "护士医保编码首字母为N,请重新选择。",
  2796. type: "warning",
  2797. showClose: true,
  2798. duration: 2500,
  2799. });
  2800. return;
  2801. }
  2802. }
  2803. patient.value[searchTargetCode.value] = item.code;
  2804. patient.value[searchTargetName.value] = item.name;
  2805. console.log("searchTargetName",searchTargetCode.value,searchTargetName.value)
  2806. if(searchTargetCode.value == "hurtReasonCode" || searchTargetCode.value == "hurtReasonName" ||
  2807. searchTargetCode.value == "pathologicDiagStr" || searchTargetCode.value == "pathologicDiagCode"
  2808. ){
  2809. patientTransformData.value[searchTargetCode.value] = item.code;
  2810. patientTransformData.value[searchTargetName.value] = item.name;
  2811. } else {
  2812. patient.value[searchTargetCode.value] = item.code;
  2813. patient.value[searchTargetName.value] = item.name;
  2814. }
  2815. if (searchTargetCode.value === "birthPlace") {
  2816. patient.value.nativePlace = item.code;
  2817. patient.value.nativePlaceName = item.name;
  2818. }
  2819. }
  2820. searchContent.value = "";
  2821. showSearch.value = false;
  2822. };
  2823. const needDorSiCode = [
  2824. "deptLeader",
  2825. "leaderDoctor",
  2826. "mainDoctor",
  2827. "admissDoctor",
  2828. ];
  2829. const syncronizeWithSiDiagnose = code => {
  2830. selectSiDiagByBaDiag(code).then(res => {
  2831. ybDiag.code = res.code;
  2832. ybDiag.name = res.name;
  2833. ybDiag.cyzg = 0;
  2834. ybDiag.siDiagType = 1;
  2835. if (!ybDiags.value || ybDiags.value.length === 0) {
  2836. fetchSsfz(res.code, patient.value.bah, patient.value.admissTimes).then(
  2837. res2 => {
  2838. diseFamilyGrade.value = res2;
  2839. }
  2840. );
  2841. }
  2842. });
  2843. };
  2844. const clearLine = option => {
  2845. switch (option) {
  2846. case "hurtReason":
  2847. patient.value.hurtReasonName = null;
  2848. patient.value.hurtReasonCode = null;
  2849. patientTransformData.value.hurtReasonName = null;
  2850. patientTransformData.value.hurtReasonCode = null;
  2851. break;
  2852. case "pathologicDiag":
  2853. patient.value.pathologicDiagStr = null;
  2854. patient.value.pathologicDiagCode = null;
  2855. patient.value.blh = null;
  2856. patientTransformData.value.pathologicDiagStr = null;
  2857. patientTransformData.value.pathologicDiagCode = null;
  2858. patientTransformData.value.blh = null;
  2859. break;
  2860. case "icuInfo":
  2861. patient.value.icuInfoList.forEach(item => {
  2862. item.icuName = null
  2863. item.startTime = null
  2864. item.endTime = null
  2865. });
  2866. break;
  2867. }
  2868. };
  2869. const ybDiags = ref([]);
  2870. const addToYbDiags = () => {
  2871. if (!ybDiag.siDiagType) {
  2872. ElMessage({
  2873. message: "请选择诊断类别!",
  2874. type: "warning",
  2875. duration: 2500,
  2876. showClose: true,
  2877. });
  2878. return;
  2879. }
  2880. if (!ybDiag.admissCond) {
  2881. ElMessage({
  2882. message: "请选择入院病情!",
  2883. type: "warning",
  2884. duration: 2500,
  2885. showClose: true,
  2886. });
  2887. return;
  2888. }
  2889. const temp = clone(ybDiag);
  2890. temp.diagType = 13;
  2891. temp.operId = userStore.userInfo.code;
  2892. temp.opDate = getDatetime();
  2893. temp.bzfx = "普通";
  2894. ybDiags.value.push(temp);
  2895. ybDiag.code = ybDiag.name = ybDiag.cyzg = "";
  2896. };
  2897. const deleteYbDiag = index => {
  2898. ybDiags.value.splice(index, 1);
  2899. };
  2900. const saveYbDiags = () => {
  2901. const param = {
  2902. bah: patient.value.bah,
  2903. times: patient.value.admissTimes,
  2904. ybDiags: ybDiags.value,
  2905. };
  2906. doSaveYbDiags(param).then(() => {
  2907. ElMessage({
  2908. message: "保存成功",
  2909. type: "success",
  2910. duration: 2500,
  2911. showClose: true,
  2912. });
  2913. });
  2914. };
  2915. const onSearchDiagFocus = n => {
  2916. mainSurgeryFocused.value = false;
  2917. showSurgeryRecommand.value = false;
  2918. if (n > 0 && !patient.value.disdiagList[n - 1].code) {
  2919. ElMessage({
  2920. message: "请按顺序填写",
  2921. type: "warning",
  2922. duration: 2500,
  2923. showClose: true,
  2924. });
  2925. return;
  2926. }
  2927. searchUrl.value = "normalDiag";
  2928. searchTargetCode.value = "disdiagsCode" + n;
  2929. searchTargetName.value = "disdiagsName" + n;
  2930. if (!patient.value.disdiagList[n].code) {
  2931. showSearch.value = true;
  2932. } else {
  2933. showDel.value[n] = true;
  2934. }
  2935. };
  2936. const showSurgeryRecommand = ref(false);
  2937. const mainSurgeryFocused = ref(false);
  2938. const onSearchSurgeryFocus = n => {
  2939. if (n > 0 && !patient.value.surgeryList[n - 1].code) {
  2940. ElMessage({
  2941. message: "请按顺序填写",
  2942. type: "warning",
  2943. duration: 2500,
  2944. showClose: true,
  2945. });
  2946. return;
  2947. }
  2948. mainSurgeryFocused.value = false;
  2949. showSurgeryRecommand.value = false;
  2950. searchUrl.value = "surgery";
  2951. searchTargetCode.value = "surgeryCode" + n;
  2952. searchTargetName.value = "surgeryName" + n;
  2953. if (!patient.value.surgeryList[n].code) {
  2954. if (n === 0 && patient.value.disdiagList[0].code) {
  2955. mainSurgeryFocused.value = true;
  2956. getSsfzSurgeriesByIcd(
  2957. patient.value.bah,
  2958. patient.value.admissTimes,
  2959. patient.value.disdiagList[0].code
  2960. ).then(res => {
  2961. searchResults.value = res;
  2962. showSurgeryRecommand.value = true;
  2963. });
  2964. }
  2965. showSearch.value = true;
  2966. } else {
  2967. showDel.value[n] = true;
  2968. }
  2969. };
  2970. const onEditSurgeryClick = n => {
  2971. showSearch.value = true;
  2972. if (n === 0 && patient.value.disdiagList[0].code) {
  2973. mainSurgeryFocused.value = true;
  2974. getSsfzSurgeriesByIcd(
  2975. patient.value.bah,
  2976. patient.value.admissTimes,
  2977. patient.value.disdiagList[0].code
  2978. ).then(res => {
  2979. searchResults.value = res;
  2980. showSurgeryRecommand.value = true;
  2981. });
  2982. } else {
  2983. mainSurgeryFocused.value = false;
  2984. showSurgeryRecommand.value = false;
  2985. }
  2986. };
  2987. const hasSurgeryChanged = val => {
  2988. if (val === "0") {
  2989. patient.value.diagConform3 = 0;
  2990. }
  2991. };
  2992. const deleteDisdiag = index => {
  2993. showDel.value[index] = false;
  2994. while (index < 26) {
  2995. patient.value.disdiagList[index] = patient.value.disdiagList[index + 1];
  2996. index++;
  2997. }
  2998. patient.value.disdiagList[26] = {};
  2999. patient.value.disdiagList.splice(27);
  3000. };
  3001. const insertDisdiag = index => {
  3002. mainSurgeryFocused.value = false;
  3003. showSurgeryRecommand.value = false;
  3004. insertDiag.value = true;
  3005. searchUrl.value = "normalDiag";
  3006. searchTargetCode.value = "disdiagsCode" + index;
  3007. searchTargetName.value = "disdiagsName" + index;
  3008. showSearch.value = true;
  3009. };
  3010. function changeSurgeryOrder(currentIndex, newIndex) {
  3011. let temp = patient.value.surgeryList[currentIndex];
  3012. patient.value.surgeryList[currentIndex] = patient.value.surgeryList[newIndex];
  3013. patient.value.surgeryList[newIndex] = temp;
  3014. }
  3015. const deleteSurgery = index => {
  3016. showDel.value[index] = false;
  3017. while (index < defaultSurgerySize.value - 1) {
  3018. patient.value.surgeryList[index] = patient.value.surgeryList[index + 1];
  3019. index++;
  3020. }
  3021. patient.value.surgeryList[defaultSurgerySize.value - 1] = {};
  3022. patient.value.surgeryList.splice(defaultSurgerySize.value);
  3023. if (defaultSurgerySize.value > 5) {
  3024. defaultSurgerySize.value -= 1;
  3025. }
  3026. };
  3027. const deleteAssistantOne = index => {
  3028. patient.value.surgeryList[index].assistantOne = "";
  3029. patient.value.surgeryList[index].assistantOneName = "";
  3030. };
  3031. const deleteAssistantTwo = index => {
  3032. patient.value.surgeryList[index].assistantTwo = "";
  3033. patient.value.surgeryList[index].assistantTwoName = "";
  3034. };
  3035. const deleteAnestor = index => {
  3036. patient.value.surgeryList[index].anaesthesiaor = "";
  3037. patient.value.surgeryList[index].anaesthesiaorName = "";
  3038. };
  3039. const nullPatient = () => {
  3040. if (!patient.value.bah) {
  3041. ElMessage({
  3042. message: "请先选择患者!",
  3043. type: "warning",
  3044. duration: 2500,
  3045. showClose: true,
  3046. });
  3047. return true;
  3048. }
  3049. return false;
  3050. };
  3051. const forceVerifies = ref([]);
  3052. const adviceVerifies = ref([]);
  3053. const currentMessageIndex = ref(null);
  3054. const messageColor = id => {
  3055. return currentMessageIndex.value === id
  3056. ? {
  3057. background: "#ff2b2b",
  3058. color: "white",
  3059. }
  3060. : {
  3061. background: "#eea7a752",
  3062. color: "#ff2b2b",
  3063. };
  3064. };
  3065. const scrollWrapper = ref(null);
  3066. const handleClickMessage = (id, index) => {
  3067. currentMessageIndex.value = index;
  3068. let ele = document.getElementById(id);
  3069. scrollWrapper.value.scrollTop = ele.offsetTop - 260;
  3070. let i = 0;
  3071. let timer = setInterval(() => {
  3072. ele.style.background = i % 2 === 0 ? "rgb(238, 98, 5)" : "transparent";
  3073. i++;
  3074. if (i > 7) {
  3075. clearInterval(timer);
  3076. }
  3077. }, 500);
  3078. };
  3079. const showMessageDrawer = ref(false);
  3080. const setlUplaodClick = () => {
  3081. if (nullPatient()) return;
  3082. isMedinsSetl(patient.value.bah, patient.value.admissTimes).then(() => {
  3083. router.push(
  3084. "/inpatient/casefrntsht/drgCoding/" +
  3085. patient.value.bah +
  3086. "/" +
  3087. patient.value.admissTimes
  3088. );
  3089. });
  3090. };
  3091. const saveVerifyFillBlank = (data) => {
  3092. patient.value.birthDate = patientTransformData.value.birthYear+'-'+patientTransformData.value.birthMonth+'-'+patientTransformData.value.birthDay
  3093. if(patientTransformData.value.age == null || patientTransformData.value.age == "-" || patientTransformData.value.age == ""){
  3094. // data.age = null
  3095. } else {
  3096. patientTransformData.value.infAge == null || patientTransformData.value.infAge == "-"?data.infAge = null:data.infAge = patientTransformData.value.infAge;
  3097. patientTransformData.value.ageDays == null || patientTransformData.value.ageDays == "-"?data.ageDays = null:data.ageDays = patientTransformData.value.ageDays;
  3098. patientTransformData.value.newBornWeight1 == null || patientTransformData.value.newBornWeight1 == "-"?data.newBornWeight1 = null:data.newBornWeight1 = patientTransformData.value.newBornWeight1;
  3099. patientTransformData.value.newBornWeight2 == null || patientTransformData.value.newBornWeight2 == "-"?data.newBornWeight2 = null:data.newBornWeight2 = patientTransformData.value.newBornWeight2;
  3100. patientTransformData.value.newBornAdmissWeight == null || patientTransformData.value.newBornAdmissWeight == "-"?data.newBornAdmissWeight = null:data.newBornAdmissWeight = patientTransformData.value.newBornAdmissWeight;
  3101. }
  3102. data.unitPlace == null && data.unitName == null?data.unitPlace = '-':false;
  3103. patientTransformData.value.transDept == null || patientTransformData.value.transDept == "-"?data.transDept = null:data.transDept = patientTransformData.value.transDept;
  3104. patientTransformData.value.hurtReasonName == null || patientTransformData.value.hurtReasonName == "-"?data.hurtReasonName = '-':data.hurtReasonName = patientTransformData.value.hurtReasonName;
  3105. patientTransformData.value.hurtReasonCode == null || patientTransformData.value.hurtReasonCode == "-"?data.hurtReasonCode = '-':data.hurtReasonCode = patientTransformData.value.hurtReasonCode;
  3106. patientTransformData.value.pathologicDiagStr == null || patientTransformData.value.pathologicDiagStr == "-"?data.pathologicDiagStr = '-':data.pathologicDiagStr = patientTransformData.value.pathologicDiagStr;
  3107. patientTransformData.value.pathologicDiagCode == null || patientTransformData.value.pathologicDiagCode == "-"?data.pathologicDiagCode = '-':data.pathologicDiagCode = patientTransformData.value.pathologicDiagCode;
  3108. patientTransformData.value.blh == null || patientTransformData.value.blh == "-"?data.blh = '-':data.blh = patientTransformData.value.blh;
  3109. data.surgeryList[0].name == '-'?data.surgeryList[0].name = null:false;
  3110. //去除初始化其他诊断横线
  3111. for (let index = 1; index < patient.value.disdiagList.length; index++) {
  3112. if(patient.value.disdiagList[index].name == '-'){
  3113. patient.value.disdiagList[index].name = null
  3114. break;
  3115. }
  3116. }
  3117. //去除初始化手术横线
  3118. for (let index = 0; index < patient.value.surgeryList.length; index++) {
  3119. if(patient.value.surgeryList[index].name == '-'){
  3120. patient.value.surgeryList[index].name = null
  3121. break;
  3122. }
  3123. }
  3124. //去除初始化重症监护室横线
  3125. for (let index = 0; index < patient.value.icuInfoList.length; index++) {
  3126. if(patient.value.icuInfoList[index].name == '-'){
  3127. patient.value.icuInfoList[index].name = null
  3128. break;
  3129. }
  3130. }
  3131. // console.log("patient.value",data.internshipDoctorName)
  3132. // data.internshipDoctorName == null?data.internshipDoctorName = '-':false;
  3133. if(data.internshipDoctor == null){
  3134. data.internshipDoctor = '-'
  3135. data.internshipDoctorName = '-'
  3136. }
  3137. if(data.studyDoctor == null){
  3138. data.studyDoctor = '-'
  3139. data.studyDoctorName = '-'
  3140. }
  3141. console.log("data.surgeryList0",patient.value.surgeryList[0].name)
  3142. patient.value.surgeryList[0].name == '-'?patient.value.surgeryList[0].name = null:false;
  3143. console.log("data.surgeryList1",patient.value.surgeryList[0].name)
  3144. data.noCertReasonInput == null?data.noCertReasonInput = '-':false;
  3145. data.dismissDestination == null?data.dismissDestination = '-':false;
  3146. data.admissAgainInOneMonth == null?data.admissAgainInOneMonth = '-':false;
  3147. data.admissAgainPurpose == null?data.admissAgainPurpose = '-':false;
  3148. data.comaDaysBeforeAdmiss == null?data.comaDaysBeforeAdmiss = '-':false;
  3149. data.comaHoursBeforeAdmiss == null?data.comaHoursBeforeAdmiss = '-':false;
  3150. data.comaMinutesBeforeAdmiss == null?data.comaMinutesBeforeAdmiss = '-':false;
  3151. data.comaDaysAfterAdmiss == null?data.comaDaysAfterAdmiss = '-':false;
  3152. data.comaHoursAfterAdmiss == null?data.comaHoursAfterAdmiss = '-':false;
  3153. data.comaMinutesAfterAdmiss == null?data.comaMinutesAfterAdmiss = '-':false;
  3154. }
  3155. const saveVerifyValidate = () => {
  3156. if (patient.value.livePlace) {
  3157. if(patient.value.livePlace.includes("省") && (patient.value.livePlace.includes("市") || patient.value.livePlace.includes("县"))){
  3158. return true
  3159. } else {
  3160. xcMessage.error("患者现住址请完整填写行政地区!");
  3161. return false
  3162. }
  3163. } else {
  3164. xcMessage.error("患者现住址请完整填写行政地区!");
  3165. return false
  3166. }
  3167. }
  3168. const saveVerify = opType => {
  3169. if (!saveVerifyValidate(patient.value)) {
  3170. return
  3171. }
  3172. // saveVerifyFillFromTransformData(patientTransformData.value)
  3173. saveVerifyFillBlank(patient.value)
  3174. console.log("patient.value",patient.value)
  3175. if (nullPatient()) return;
  3176. fetchAuditCount({
  3177. patNo: patient.value.bah,
  3178. times: patient.value.admissTimes,
  3179. }).then(res => {
  3180. if (res.approved > 0) {
  3181. xcMessage.error("此患者病案首页质控审核已通过,无法保存。");
  3182. return;
  3183. }
  3184. executeSaveVerify({
  3185. opType,
  3186. sheet: patient.value,
  3187. })
  3188. .then(() => {
  3189. ElMessage({
  3190. message: "操作成功。",
  3191. type: "success",
  3192. duration: 2500,
  3193. showClose: true,
  3194. });
  3195. handleClickOverview(currentRow.value)
  3196. })
  3197. .catch(e => {
  3198. forceVerifies.value = e.data;
  3199. showMessageDrawer.value = true;
  3200. });
  3201. });
  3202. };
  3203. function sheetQualityVerification(command) {
  3204. if (command === "applyVerification") {
  3205. beforeSubmitAudit();
  3206. } else {
  3207. useDialog(AuditHistory, {
  3208. dialogProps: { title: "质控记录" },
  3209. showFooter: false,
  3210. params: {
  3211. patinfo: {
  3212. patNo: patient.value.bah,
  3213. times: patient.value.admissTimes,
  3214. },
  3215. },
  3216. });
  3217. }
  3218. }
  3219. function beforeSubmitAudit() {
  3220. if (nullPatient()) {
  3221. return;
  3222. }
  3223. fetchAuditCount({
  3224. patNo: patient.value.bah,
  3225. times: patient.value.admissTimes,
  3226. }).then(res => {
  3227. if (res.approved > 0) {
  3228. xcMessage.error("此患者的质控审核已通过,无需再次申请。");
  3229. return;
  3230. }
  3231. if (res.initial > 0) {
  3232. xcMessage.error("此患者有未被处理的质控审核,请勿重复提交。");
  3233. return;
  3234. }
  3235. executePrintVerify({
  3236. sheet: patient.value,
  3237. })
  3238. .then(() => {
  3239. submitAuditConfirm();
  3240. })
  3241. .catch(e => {
  3242. forceVerifies.value = e.data.force;
  3243. adviceVerifies.value = e.data.advice;
  3244. showMessageDrawer.value = true;
  3245. if (e.data.force.length === 0) {
  3246. submitAuditConfirm();
  3247. }
  3248. });
  3249. });
  3250. }
  3251. function submitAuditConfirm() {
  3252. CyMessageBox.confirm({
  3253. type: "warning",
  3254. title: "提示",
  3255. message: `质控审核通过后,病案将进入锁定状态,无法再次修改。确定要提交质控审核吗?`,
  3256. })
  3257. .then(() => {
  3258. executeSubmitAudit();
  3259. })
  3260. .catch(() => {});
  3261. }
  3262. function executeSubmitAudit() {
  3263. const params = {
  3264. patNo: patient.value.bah,
  3265. times: patient.value.admissTimes,
  3266. patName: patient.value.name,
  3267. patGender: filterPatGender(),
  3268. disDeptCode: patient.value.dismissDeptCode,
  3269. disDeptName: patient.value.dismissDept,
  3270. };
  3271. submitQualityVerification(params).then(() => {
  3272. xcMessage.success("提交成功");
  3273. if (inOutStatus === 2) {
  3274. CyMessageBox.confirm({
  3275. type: "warning",
  3276. title: "提示",
  3277. message: "是否申请医保结算清单质控?",
  3278. }).then(() => {
  3279. setlUplaodClick();
  3280. });
  3281. }
  3282. });
  3283. }
  3284. function filterPatGender() {
  3285. if (patient.value.sex === 1 || patient.value.sex === "1") {
  3286. return "MALE";
  3287. }
  3288. if (patient.value.sex === 2 || patient.value.sex === "2") {
  3289. return "FEMALE";
  3290. }
  3291. return "UNKNOWN";
  3292. }
  3293. const dismissShowSearch = flag => {
  3294. setTimeout(() => {
  3295. if (flag === 1) {
  3296. showGoSearchBtn1.value = false;
  3297. } else {
  3298. showGoSearchBtn2.value = false;
  3299. }
  3300. }, 100);
  3301. };
  3302. const mergePrintHeadpage = () => {
  3303. headPagePatient.value = {
  3304. disdiagList: [],
  3305. surgeryList: [{}, {}, {}, {}, {}],
  3306. icuInfoList: [{}, {}, {}],
  3307. supplement: {}
  3308. }
  3309. for (const key in patient.value) {
  3310. if (Object.prototype.hasOwnProperty.call(patient.value, key)) {
  3311. headPagePatient.value[key] = patient.value[key];
  3312. }
  3313. }
  3314. for (const key in patientTransformData.value) {
  3315. if (Object.prototype.hasOwnProperty.call(patientTransformData.value, key)) {
  3316. if (patientTransformData.value[key]) {
  3317. headPagePatient.value[key] = patientTransformData.value[key];
  3318. }
  3319. }
  3320. }
  3321. console.log("headPagePatient.value",headPagePatient.value)
  3322. };
  3323. const mergePrintTailpage = () => {
  3324. tailpagePatient.value = {
  3325. disdiagList: [],
  3326. surgeryList: [{}, {}, {}, {}, {}],
  3327. icuInfoList: [{}, {}, {}],
  3328. supplement: {}
  3329. }
  3330. for (const key in patient.value) {
  3331. if (Object.prototype.hasOwnProperty.call(patient.value, key)) {
  3332. tailpagePatient.value[key] = patient.value[key];
  3333. }
  3334. }
  3335. for (const key in patientTransformData.value) {
  3336. if (Object.prototype.hasOwnProperty.call(patientTransformData.value, key)) {
  3337. if (patientTransformData.value[key]) {
  3338. tailpagePatient.value[key] = patientTransformData.value[key];
  3339. }
  3340. }
  3341. }
  3342. };
  3343. const beforePrint = page => {
  3344. if (nullPatient()) return;
  3345. fetchAuditCount({
  3346. patNo: patient.value.bah,
  3347. times: patient.value.admissTimes,
  3348. }).then(res => {
  3349. execPrint(page)
  3350. // if (res.approved > 0) {
  3351. // execPrint(page);
  3352. // } else {
  3353. // ElMessageBox.confirm('病案首页质控审核未通过,是否继续打印?', '提示', {
  3354. // type: "warning",
  3355. // }).then(() => {
  3356. // execPrint(page)
  3357. // }).catch(() => {})
  3358. // }
  3359. });
  3360. };
  3361. const execPrint = page => {
  3362. const LODOP = getLodop();
  3363. const prntStyle = `<style>*{font-size:10pt} table,th,td {border: 1px solid black;border-collapse: collapse;} td,th {height: 24px;padding-left: 4px;}</style>`;
  3364. let prntContent;
  3365. if(page === 1){
  3366. mergePrintHeadpage()
  3367. prntContent = document.getElementById("headpage").innerHTML
  3368. } else {
  3369. mergePrintTailpage()
  3370. prntContent = document.getElementById("tailpage").innerHTML
  3371. }
  3372. // const prntContent =
  3373. // page === 1
  3374. // ? document.getElementById("headpage").innerHTML
  3375. // : document.getElementById("tailpage").innerHTML;
  3376. let pagePrint = prntStyle + "<body>" + prntContent + "</body>";
  3377. LODOP.PRINT_INIT("casefrontsheet");
  3378. LODOP.SET_PRINT_PAGESIZE(1, "210mm", "297mm", "");
  3379. LODOP.SET_PRINT_MODE("FULL_WIDTH_FOR_OVERFLOW", true); // 整宽不变形
  3380. LODOP.ADD_PRINT_HTM("2mm", "5mm", "100%", "100%", pagePrint);
  3381. LODOP.SET_PRINT_STYLE("ItemType", 3);
  3382. LODOP.PREVIEW();
  3383. };
  3384. onActivated(async () => {
  3385. const params = router.currentRoute.value.query;
  3386. if (params && params.patNo && params.deptCode) {
  3387. await Sleep(300);
  3388. if (params.times && params.disdate) {
  3389. dateRange.value[0] = params.disdate;
  3390. dateRange.value[1] = params.disdate;
  3391. inOutStatus.value = 2;
  3392. } else {
  3393. inOutStatus.value = 1;
  3394. }
  3395. inpatientNo.value = params.patNo;
  3396. currentWard.value = params.deptCode;
  3397. handleWardChange();
  3398. await Sleep(500);
  3399. searchPatient();
  3400. }
  3401. });
  3402. function showExportPanel() {
  3403. useDialog(HistorySheetExport, {
  3404. dialogProps: {
  3405. title: "历史病案导出",
  3406. width: "600px",
  3407. },
  3408. confirmText: "导出",
  3409. });
  3410. }
  3411. onMounted(() => {
  3412. scrollWrapper.value = document.getElementById("scrollWrapper");
  3413. initLodop();
  3414. getAllDictionary().then(res => {
  3415. res.getOperations = operations;
  3416. res.getYesOrNo = yesOrNo;
  3417. res.getHaveOrNot = haveOrNot;
  3418. res.getAutopsies = autopsies;
  3419. res.noCertReasons = noCertReasons;
  3420. dics.value = res;
  3421. });
  3422. getUserWards().then(res => {
  3423. userWards.value = res;
  3424. if (res.length > 0) {
  3425. currentWard.value = res[0].code;
  3426. fetchOverview();
  3427. }
  3428. });
  3429. });
  3430. function initInOutOptions() {
  3431. return [
  3432. { code: 1, name: "在院" },
  3433. { code: 2, name: "出院" },
  3434. ];
  3435. }
  3436. function initCyzgs() {
  3437. return [
  3438. { code: 0, name: "好转/治愈" },
  3439. { code: 1, name: "未愈" },
  3440. { code: 2, name: "转院(医院要求)" },
  3441. { code: 3, name: "转院(病人要求)" },
  3442. { code: 4, name: "转科" },
  3443. { code: 5, name: "无效" },
  3444. { code: 6, name: "死亡" },
  3445. { code: 7, name: "双向转诊" },
  3446. { code: 9, name: "其他" },
  3447. ];
  3448. }
  3449. function initAdmissConds() {
  3450. return [
  3451. { code: 1, name: "有" },
  3452. { code: 2, name: "临床未确定" },
  3453. { code: 3, name: "情况不明" },
  3454. { code: 4, name: "无" },
  3455. ];
  3456. }
  3457. function initDiagTypes() {
  3458. return [
  3459. { code: 1, name: "西医诊断" },
  3460. { code: 2, name: "中医主病诊断" },
  3461. { code: 3, name: "中医主症诊断" },
  3462. ];
  3463. }
  3464. </script>
  3465. <style scoped>
  3466. :deep(.el-dialog__body) {
  3467. padding-top: 8px;
  3468. }
  3469. :deep(.el-drawer) {
  3470. border: 1px solid orange;
  3471. }
  3472. :deep(.el-drawer .el-icon) {
  3473. font-size: 20px;
  3474. color: orangered;
  3475. }
  3476. :deep(.el-drawer__header) {
  3477. margin-bottom: 8px;
  3478. }
  3479. :deep(.el-dialog__header) {
  3480. padding-bottom: 4px;
  3481. }
  3482. :deep(.el-checkbox__label) {
  3483. padding-left: 2px;
  3484. }
  3485. :deep(.el-checkbox ) {
  3486. margin-right: 0;
  3487. }
  3488. select,
  3489. input {
  3490. outline: none;
  3491. border: none;
  3492. height: 20px;
  3493. line-height: 20px;
  3494. border-radius: 0;
  3495. background: transparent;
  3496. border-bottom: 1px solid #333333;
  3497. -webkit-appearance: none;
  3498. -moz-appearance: none;
  3499. appearance: none;
  3500. }
  3501. input[type="number"] {
  3502. -moz-appearance: textfield;
  3503. }
  3504. select ::-ms-expand {
  3505. display: none;
  3506. }
  3507. textarea {
  3508. outline: none;
  3509. border: none;
  3510. background-color: transparent;
  3511. }
  3512. table th {
  3513. border: 1px solid black;
  3514. text-align: center;
  3515. }
  3516. table td {
  3517. border: 1px solid black;
  3518. }
  3519. .page-inner {
  3520. padding: 0 20px 10px 26px;
  3521. border-radius: 12px;
  3522. text-align: justify;
  3523. }
  3524. .message-item {
  3525. padding: 6px;
  3526. margin-bottom: 6px;
  3527. border-radius: 4px;
  3528. }
  3529. .message-item:hover {
  3530. cursor: pointer;
  3531. }
  3532. .rightside-btn {
  3533. display: flex;
  3534. align-items: center;
  3535. text-align: center;
  3536. color: white;
  3537. border-radius: 4px;
  3538. width: 20px;
  3539. height: 185px;
  3540. position: fixed;
  3541. background: rgb(238, 98, 5);
  3542. top: 260px;
  3543. right: 10px;
  3544. cursor: pointer;
  3545. }
  3546. .no-verify-message {
  3547. width: 100%;
  3548. text-align: center;
  3549. margin-top: 50px;
  3550. font-size: 18px;
  3551. color: gray;
  3552. }
  3553. :deep(.m-drawer .el-overlay) {
  3554. right: 0;
  3555. left: calc(100vw - 260px);
  3556. background: transparent !important;
  3557. }
  3558. :deep(#livePlace .el-input__wrapper) {
  3559. background: transparent;
  3560. border: none;
  3561. box-shadow: none;
  3562. border-radius: 0;
  3563. border-bottom: 1px solid black;
  3564. color: black;
  3565. }
  3566. :deep(#livePlace .el-input__inner) {
  3567. color: black;
  3568. }
  3569. .audit-state {
  3570. font-weight: bold;
  3571. font-size: 16px;
  3572. }
  3573. .audit-state_approved {
  3574. color: green;
  3575. }
  3576. .audit-state_rejected {
  3577. color: red;
  3578. text-decoration: underline;
  3579. cursor: pointer;
  3580. }
  3581. .audit-state_initial {
  3582. color: #777777;
  3583. }
  3584. .audit-state_none {
  3585. color: #e8b600;
  3586. }
  3587. .order-arrow {
  3588. font-size: 16px;
  3589. cursor: pointer;
  3590. }
  3591. .order-arrow:hover {
  3592. color: #0a84fd;
  3593. }
  3594. .hidden-input {
  3595. position: absolute;
  3596. top: 0;
  3597. left: 0;
  3598. width: 100%;
  3599. height: 100%;
  3600. opacity: 0;
  3601. cursor: pointer;
  3602. z-index: 10; /* 确保在按钮上方 */
  3603. }
  3604. .datetime-container {
  3605. width: 100%;
  3606. height: 100%;
  3607. position: relative;
  3608. display: inline-block;
  3609. }
  3610. </style>