FillCaseFrontSheet.vue 119 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800
  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" style="width: 10px">手术类别</th>
  1048. <th rowspan="2">手术及操作名称</th>
  1049. <th colspan="3">手术及操作医师</th>
  1050. <th rowspan="2" style="width: 10px">切口等级</th>
  1051. <th rowspan="2" style="width: 10px">愈合等级</th>
  1052. <th rowspan="2">麻醉方式</th>
  1053. <th rowspan="2">麻醉医师</th>
  1054. </tr>
  1055. <tr>
  1056. <th>术者</th>
  1057. <th>I助</th>
  1058. <th>II助</th>
  1059. </tr>
  1060. <tr v-for="n in defaultSurgerySize" :key="n">
  1061. <td style="border: none; width: 25px">
  1062. <div v-if="patient.surgeryList[n - 1].name">
  1063. <div
  1064. v-if="n > 1"
  1065. class="order-arrow"
  1066. @click="changeSurgeryOrder(n - 1, n - 2)"
  1067. >
  1068. </div>
  1069. <div
  1070. v-if="n < defaultSurgerySize && patient.surgeryList[n].name"
  1071. class="order-arrow"
  1072. style="margin-top: 5px"
  1073. @click="changeSurgeryOrder(n - 1, n)"
  1074. >
  1075. </div>
  1076. <div
  1077. v-if="n === defaultSurgerySize"
  1078. class="order-arrow"
  1079. style="margin-top: 4px"
  1080. @click="addSurgeSize"
  1081. >
  1082. +
  1083. </div>
  1084. </div>
  1085. </td>
  1086. <td>
  1087. <input
  1088. v-model="patient.surgeryList[n - 1].code"
  1089. style="border: none !important; width: 70px"
  1090. readonly
  1091. />
  1092. </td>
  1093. <td style="padding: 3px">
  1094. <textarea
  1095. style="border: none !important; width: 70px"
  1096. v-model="patient.surgeryList[n - 1].date"
  1097. rows="3"
  1098. @click="showPickSurgeryDatetime(n - 1)"
  1099. readonly
  1100. ></textarea>
  1101. </td>
  1102. <td style="text-align-last: center">
  1103. <select
  1104. style="border: none !important; width: 30px"
  1105. v-model="patient.surgeryList[n - 1].level"
  1106. >
  1107. <option
  1108. v-for="(item, index) in dics.getOperateScale"
  1109. :key="index"
  1110. :value="item.code"
  1111. >
  1112. &nbsp;&nbsp;{{ item.code }}
  1113. </option>
  1114. </select>
  1115. </td>
  1116. <!-- <td style="text-align-last: center">
  1117. <select
  1118. style="border: none !important; width: 30px"
  1119. v-model="patient.surgeryList[n - 1].type"
  1120. >
  1121. <option
  1122. v-for="(item, index) in dics.getOperateScale"
  1123. :key="index"
  1124. :value="item.code"
  1125. >
  1126. &nbsp;&nbsp;{{ item.code }}
  1127. </option>
  1128. </select>
  1129. </td> -->
  1130. <td style="text-align-last: center">
  1131. <select
  1132. style="border: none !important; width: 30px"
  1133. v-model="patient.surgeryList[n - 1].classType"
  1134. >
  1135. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1136. <option value="2">&nbsp;&nbsp;2&nbsp;&nbsp;</option>
  1137. </select>
  1138. </td>
  1139. <td style="padding: 3px">
  1140. <textarea
  1141. id="surgeryMain"
  1142. style="border: none !important; width: 90px"
  1143. rows="3"
  1144. v-model="patient.surgeryList[n - 1].name"
  1145. @click="onSearchSurgeryFocus(n - 1)"
  1146. readonly
  1147. ></textarea>
  1148. <div
  1149. v-show="showDel[n - 1]"
  1150. style="width: 100%; text-align: center"
  1151. >
  1152. <el-button
  1153. type="primary"
  1154. circle
  1155. icon="Edit"
  1156. @click="onEditSurgeryClick(n - 1)"
  1157. ></el-button>
  1158. <el-button
  1159. type="danger"
  1160. circle
  1161. icon="Delete"
  1162. @click="deleteSurgery(n - 1)"
  1163. ></el-button>
  1164. </div>
  1165. </td>
  1166. <td>
  1167. <input
  1168. style="border: none !important; width: 40px"
  1169. v-model="patient.surgeryList[n - 1].operatorName"
  1170. @click="showSearchSurgerior('operator', n)"
  1171. />
  1172. </td>
  1173. <td style="width: 50px">
  1174. <div style="position: relative">
  1175. <input
  1176. style="border: none !important; width: 40px"
  1177. v-model="patient.surgeryList[n - 1].assistantOneName"
  1178. @click="showSearchSurgerior('assistantone', n)"
  1179. />
  1180. <div
  1181. v-if="patient.surgeryList[n - 1].assistantOneName"
  1182. style="position: absolute; top: -20px; right: 0"
  1183. >
  1184. <el-button
  1185. type="danger"
  1186. circle
  1187. icon="Delete"
  1188. @click="deleteAssistantOne(n - 1)"
  1189. ></el-button>
  1190. </div>
  1191. </div>
  1192. </td>
  1193. <td style="width: 50px">
  1194. <div style="position: relative">
  1195. <input
  1196. style="border: none !important; width: 40px"
  1197. v-model="patient.surgeryList[n - 1].assistantTwoName"
  1198. @click="showSearchSurgerior('assistanttwo', n)"
  1199. />
  1200. <div
  1201. v-if="patient.surgeryList[n - 1].assistantTwoName"
  1202. style="position: absolute; top: -20px; right: 0"
  1203. >
  1204. <el-button
  1205. type="danger"
  1206. circle
  1207. icon="Delete"
  1208. @click="deleteAssistantTwo(n - 1)"
  1209. ></el-button>
  1210. </div>
  1211. </div>
  1212. </td>
  1213. <td style="text-align-last: center">
  1214. <select
  1215. v-model="patient.surgeryList[n - 1].cut"
  1216. style="border: none !important"
  1217. >
  1218. <option
  1219. v-for="(item, index) in cuts"
  1220. :key="index"
  1221. :value="item.code"
  1222. >
  1223. {{ item.code }}
  1224. </option>
  1225. </select>
  1226. </td>
  1227. <td style="text-align-last: center">
  1228. <select
  1229. v-model="patient.surgeryList[n - 1].heal"
  1230. style="border: none !important"
  1231. >
  1232. <option
  1233. v-for="(item, index) in heals"
  1234. :key="index"
  1235. :value="item.code"
  1236. >
  1237. {{ item.code }}
  1238. </option>
  1239. </select>
  1240. </td>
  1241. <td>
  1242. <select
  1243. v-model="patient.surgeryList[n - 1].anaesthesia"
  1244. style="border: none !important"
  1245. >
  1246. <option
  1247. v-for="(item, index) in dics.getAnaesthesia"
  1248. :key="index"
  1249. :value="item.code"
  1250. >
  1251. &nbsp;&nbsp;{{ item.name }}&nbsp;&nbsp;
  1252. </option>
  1253. </select>
  1254. </td>
  1255. <td>
  1256. <div style="position: relative">
  1257. <input
  1258. style="border: none !important; width: 40px"
  1259. v-model="patient.surgeryList[n - 1].anaesthesiaorName"
  1260. @click="showSearchSurgerior('anaesthesiaor', n)"
  1261. />
  1262. <div
  1263. v-if="patient.surgeryList[n - 1].anaesthesiaorName"
  1264. style="position: absolute; top: -20px; right: 0"
  1265. >
  1266. <el-button
  1267. type="danger"
  1268. circle
  1269. icon="Delete"
  1270. @click="deleteAnestor(n - 1)"
  1271. ></el-button>
  1272. </div>
  1273. </div>
  1274. </td>
  1275. </tr>
  1276. </table>
  1277. <div style="border-bottom:1px solid black;margin-right: 20px">
  1278. 手术类别:1.择期手术&nbsp;2.急诊手术&nbsp;&nbsp;切口类别:0.0级切口&nbsp;Ⅰ.1级切口&nbsp;Ⅱ.2级切口&nbsp;Ⅲ.3级切口&nbsp;&nbsp;
  1279. 愈合等级:1.甲&nbsp;2.乙&nbsp;3.丙&nbsp;9.其他&nbsp;&nbsp;
  1280. </div>
  1281. <div>
  1282. 离院方式:
  1283. <select
  1284. id="zyDismissWay"
  1285. v-model="patient.zyDismissWay"
  1286. >
  1287. <option
  1288. v-for="(item, index) in dics.getZyDismissWay"
  1289. :key="index"
  1290. :value="item.code"
  1291. >
  1292. &nbsp;&nbsp;{{ item.code }}&nbsp;&nbsp;
  1293. </option>
  1294. </select>
  1295. <span v-for="item in dics.getZyDismissWay">
  1296. {{ item.code }}.{{ item.name }}
  1297. </span>&nbsp;&nbsp;
  1298. </div>
  1299. <div>
  1300. 拟接收医疗机构名称:
  1301. <input
  1302. id="dismissDestination"
  1303. v-model="patient.dismissDestination"
  1304. style="width: 250px"
  1305. />
  1306. </div>
  1307. <div v-if="patient.zyDismissWay === '3' ">
  1308. 非医嘱离院原因:
  1309. <input id="fyzlyyy"
  1310. v-model="patient.fyzlyyy"
  1311. style="width: 530px"
  1312. />
  1313. </div>
  1314. <div>
  1315. 是否有出院31天内再住院计划:
  1316. <select
  1317. id="admissAgainInOneMonth"
  1318. v-model="patient.admissAgainInOneMonth"
  1319. @change="onAdmissAgainChanged"
  1320. >
  1321. <option
  1322. v-for="(item, index) in haveOrNot"
  1323. :key="index"
  1324. :value="item.code"
  1325. >
  1326. &nbsp;&nbsp;{{ item.code }}&nbsp;&nbsp;
  1327. </option>
  1328. </select>
  1329. <span v-for="t in haveOrNot">
  1330. {{ t.code }}.{{ t.name }}
  1331. </span>&nbsp;&nbsp;&nbsp;&nbsp;
  1332. 目的:
  1333. <input
  1334. id="admissAgainPurpose"
  1335. v-model="patient.admissAgainPurpose"
  1336. style="width: 300px"
  1337. />
  1338. </div>
  1339. <div>
  1340. 颅脑损伤患者昏迷时间: 入院前
  1341. <input
  1342. id="comaDaysBeforeAdmiss"
  1343. v-model="patient.comaDaysBeforeAdmiss"
  1344. style="width: 30px"
  1345. />天
  1346. <input
  1347. id="comaHoursBeforeAdmiss"
  1348. v-model="patient.comaHoursBeforeAdmiss"
  1349. style="width: 30px"
  1350. />小时
  1351. <input
  1352. id="comaMinutesBeforeAdmiss"
  1353. v-model="patient.comaMinutesBeforeAdmiss"
  1354. style="width: 30px"
  1355. />分钟 入院后
  1356. <input
  1357. id="comaDaysAfterAdmiss"
  1358. v-model="patient.comaDaysAfterAdmiss"
  1359. style="width: 30px"
  1360. />天
  1361. <input
  1362. id="comaHoursAfterAdmiss"
  1363. v-model="patient.comaHoursAfterAdmiss"
  1364. style="width: 30px"
  1365. />小时
  1366. <input
  1367. id="comaMinutesAfterAdmiss"
  1368. v-model="patient.comaMinutesAfterAdmiss"
  1369. style="width: 30px"
  1370. />分钟
  1371. </div>
  1372. <div>
  1373. 住院费用(元): 总费用
  1374. <input v-model="patient.totalCost" style="width: 110px" readonly />
  1375. (自付金额:
  1376. <input v-model="patient.selfPay" style="width: 110px" readonly />)
  1377. </div>
  1378. <div>
  1379. 1.综合医疗服务类: (1)一般医疗服务费:
  1380. <input
  1381. v-model="patient.generalMedicalServiceFee"
  1382. style="width: 70px"
  1383. readonly
  1384. />
  1385. (2)一般治疗操作费:
  1386. <input
  1387. v-model="patient.generalTreatmentOperatingFee"
  1388. style="width: 70px"
  1389. readonly
  1390. />
  1391. (3)护理费:
  1392. <input v-model="patient.careFee" style="width: 50px" readonly />
  1393. </div>
  1394. <div>
  1395. (4)其他费用:
  1396. <input v-model="patient.elseFee" style="width: 70px" readonly />
  1397. </div>
  1398. <div>
  1399. 2.诊断类: (5)病理诊断费:
  1400. <input
  1401. v-model="patient.pathologicDiagFee"
  1402. style="width: 70px"
  1403. readonly
  1404. />
  1405. (6)实验室诊断费:
  1406. <input
  1407. v-model="patient.experimentDiagFee"
  1408. style="width: 70px"
  1409. readonly
  1410. />
  1411. (7)影像学诊断费:
  1412. <input v-model="patient.ctDiagFee" style="width: 70px" readonly />
  1413. </div>
  1414. <div>
  1415. (8)临床诊断项目费:
  1416. <input
  1417. v-model="patient.clinicalDiagFee"
  1418. style="width: 70px"
  1419. readonly
  1420. />
  1421. </div>
  1422. <div>
  1423. 3.治疗类: (9)非手术治疗项目费:
  1424. <input
  1425. v-model="patient.notSurgicalFee"
  1426. style="width: 70px"
  1427. readonly
  1428. />
  1429. (临床物理治疗费:
  1430. <input
  1431. v-model="patient.clinicalPhysicalFee"
  1432. style="width: 70px"
  1433. readonly
  1434. />)
  1435. </div>
  1436. <div>
  1437. (10)手术治疗费:
  1438. <input v-model="patient.surgicalFee" style="width: 70px" readonly />
  1439. (麻醉费:
  1440. <input
  1441. v-model="patient.anesthetizeFee"
  1442. style="width: 70px"
  1443. readonly
  1444. />
  1445. &nbsp;&nbsp;手术费:
  1446. <input v-model="patient.surgeryFee" style="width: 70px" readonly />)
  1447. </div>
  1448. <div>
  1449. 4.康复类: (11)康复费:
  1450. <input v-model="patient.recoverFee" style="width: 70px" readonly />
  1451. </div>
  1452. <div>
  1453. 5.中医类: (12)中医治疗费:
  1454. <input
  1455. v-model="patient.tcmTreatmentFee"
  1456. style="width: 70px"
  1457. readonly
  1458. />
  1459. </div>
  1460. <div>
  1461. 6.西药类: (13)西药费:
  1462. <input
  1463. v-model="patient.westMedicineFee"
  1464. style="width: 70px"
  1465. readonly
  1466. />
  1467. (抗菌药物费用:
  1468. <input
  1469. v-model="patient.kjywFee"
  1470. style="width: 70px;padding-left: 5px"
  1471. readonly
  1472. />
  1473. </div>
  1474. <div>
  1475. 7.中药类: (14)中成药费:
  1476. <input
  1477. v-model="patient.chinesePatentMedicineFee"
  1478. style="width: 70px"
  1479. readonly
  1480. />
  1481. (15)中草药费:
  1482. <input
  1483. v-model="patient.chineseHerbalMedicineFee"
  1484. style="width: 70px"
  1485. readonly
  1486. />
  1487. </div>
  1488. <div>
  1489. 8.血液和血液制品类: (16)血费:
  1490. <input v-model="patient.bloodFee" style="width: 50px" readonly />
  1491. (17)白蛋白类制品费:
  1492. <input
  1493. v-model="patient.albuminProductsFee"
  1494. style="width: 50px"
  1495. readonly
  1496. />
  1497. (18)球蛋白类制品费:
  1498. <input
  1499. v-model="patient.globulinProductsFee"
  1500. style="width: 50px"
  1501. readonly
  1502. />
  1503. </div>
  1504. <div>
  1505. (19)凝血因子类制品费:
  1506. <input
  1507. v-model="patient.coagulationFactorProductsFee"
  1508. style="width: 70px"
  1509. readonly
  1510. />
  1511. (20)细胞因子类制品费:
  1512. <input
  1513. v-model="patient.cytokineProductsFee"
  1514. style="width: 70px"
  1515. readonly
  1516. />
  1517. </div>
  1518. <div>
  1519. 9.耗材类: (21)检查用一次性医用材料费:
  1520. <input
  1521. v-model="patient.costOfDisposableMedicalMaterialsForExamination"
  1522. style="width: 70px"
  1523. readonly
  1524. />
  1525. (22)治疗用一次性医用材料费:
  1526. <input
  1527. v-model="patient.costOfDisposableMedicalMaterialsForTreatment"
  1528. style="width: 70px"
  1529. readonly
  1530. />
  1531. </div>
  1532. <div>
  1533. (23)手术用一次性医用材料费:
  1534. <input
  1535. v-model="patient.costOfDisposableMedicalMaterialsForOperation"
  1536. style="width: 70px"
  1537. readonly
  1538. />
  1539. </div>
  1540. <div>
  1541. 10.其他类: (24)其他费:
  1542. <input v-model="patient.otherFees" style="width: 70px" readonly />
  1543. </div>
  1544. <!-- <div>
  1545. 主要诊断治愈好转情况:
  1546. <span style="border-bottom: 1px solid black; padding: 0 5px">
  1547. {{ filterDismissStatus(patient.disdiagList[0].dismissStatus) }}
  1548. </span>
  1549. </div> -->
  1550. <div style="display: flex;align-items: end;margin-top: 4px">
  1551. <table style="border-collapse: collapse; width: calc(100% - 25px)">
  1552. <thead>
  1553. <tr>
  1554. <th>重症监护室名称</th>
  1555. <th>进入重症监护室时间( 年 月 日 时 分)</th>
  1556. <th>转出重症监护室时间( 年 月 日 时 分)</th>
  1557. </tr>
  1558. </thead>
  1559. <tbody>
  1560. <tr v-for="n in 3">
  1561. <td>
  1562. <div style="height: 26px;line-height: 26px;padding-left: 5px" @click="clickIcuInfo('icuName',n)">
  1563. {{ patient.icuInfoList[n - 1].name }}
  1564. </div>
  1565. </td>
  1566. <td>
  1567. <div style="height: 26px;line-height: 26px;padding-left: 5px" class="datetime-container" @click="clickDate(n,1)">
  1568. {{ patient.icuInfoList[n - 1].startTime }}
  1569. <el-date-picker
  1570. :id="`pickerDateE${n}`"
  1571. v-model="patient.icuInfoList[n - 1].startTime"
  1572. type="datetime"
  1573. format="YYYY-MM-DD HH:mm:ss"
  1574. value-format="YYYY-MM-DD HH:mm:ss"
  1575. style="position: absolute;top: 0;left: 0;width: 100%;height: 100%;opacity: 0;cursor: pointer;z-index: 10;"
  1576. ></el-date-picker>
  1577. </div>
  1578. </td>
  1579. <td>
  1580. <div style="height: 26px;line-height: 26px;padding-left: 5px" class="datetime-container" @click="clickDate(n,1)">
  1581. {{ patient.icuInfoList[n - 1].endTime }}
  1582. <el-date-picker
  1583. :id="`pickerDateS${n}`"
  1584. v-model="patient.icuInfoList[n - 1].endTime"
  1585. type="datetime"
  1586. format="YYYY-MM-DD HH:mm:ss"
  1587. value-format="YYYY-MM-DD HH:mm:ss"
  1588. style="position: absolute;top: 0;left: 0;width: 100%;height: 100%;opacity: 0;cursor: pointer;z-index: 10;"
  1589. ></el-date-picker>
  1590. </div>
  1591. </td>
  1592. <el-button
  1593. v-if="patient.icuInfoList[n - 1].endTime"
  1594. type="danger"
  1595. circle
  1596. icon="Delete"
  1597. @click="clearLine('icuInfo')"
  1598. ></el-button>
  1599. </tr>
  1600. </tbody>
  1601. </table>
  1602. </div>
  1603. <div style="display: flex;align-items: end;margin-top: 4px">
  1604. 危重病例:
  1605. <select v-model="patient.wzbl" style="width: 60px">
  1606. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1607. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1608. </select>
  1609. 0.否&nbsp;1.是&nbsp;&nbsp;&nbsp;
  1610. <span style="margin-left: 12px">疑难病例:</span>
  1611. <select v-model="patient.ynbl" style="width: 60px">
  1612. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1613. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1614. </select>
  1615. 0.否&nbsp;1.是&nbsp;&nbsp;&nbsp;
  1616. <span style="margin-left: 12px">MDT病历:</span>
  1617. <select v-model="patient.mdtbl" style="width: 60px">
  1618. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1619. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1620. </select>
  1621. 0.否&nbsp;1.是&nbsp;&nbsp;&nbsp;
  1622. </div>
  1623. <div style="display: flex;align-items: end;margin-top: 4px">
  1624. 单病种病例:
  1625. <select v-model="patient.dbzbl" style="width: 60px">
  1626. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1627. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1628. </select>
  1629. 0.否&nbsp;1.是&nbsp;&nbsp;&nbsp;
  1630. <span style="margin-left: 12px">日间手术病例:</span>
  1631. <select v-model="patient.rjssbl" style="width: 60px">
  1632. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1633. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1634. </select>
  1635. 0.否&nbsp;1.是&nbsp;&nbsp;&nbsp;
  1636. <span style="margin-left: 12px">教学查房病历:</span>
  1637. <select v-model="patient.jxcfbl" style="width: 60px">
  1638. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1639. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1640. </select>
  1641. 0.否&nbsp;1.是&nbsp;&nbsp;&nbsp;
  1642. </div>
  1643. <div style="display: flex;align-items: end;margin-top: 4px">
  1644. 诊断符合情况: 1.门诊与住院
  1645. <select
  1646. id="mzycy"
  1647. v-model="patient.mzycy"
  1648. style="margin-right: 12px"
  1649. >
  1650. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1651. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1652. <option value="2">&nbsp;&nbsp;2&nbsp;&nbsp;</option>
  1653. <option value="3">&nbsp;&nbsp;3&nbsp;&nbsp;</option>
  1654. </select>
  1655. 2.入院与出院
  1656. <select id="ryycy" v-model="patient.ryycy">
  1657. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1658. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1659. <option value="2">&nbsp;&nbsp;2&nbsp;&nbsp;</option>
  1660. <option value="3">&nbsp;&nbsp;3&nbsp;&nbsp;</option>
  1661. </select>
  1662. </div>
  1663. <div style="display: flex;align-items: end;margin-top: 4px">
  1664. 3.术前与术后
  1665. <select
  1666. id="sqysh"
  1667. v-model="patient.sqysh"
  1668. style="margin-right: 12px"
  1669. >
  1670. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1671. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1672. <option value="2">&nbsp;&nbsp;2&nbsp;&nbsp;</option>
  1673. <option value="3">&nbsp;&nbsp;3&nbsp;&nbsp;</option>
  1674. </select>
  1675. 4.临床与病理
  1676. <select
  1677. id="lcybl"
  1678. v-model="patient.lcybl"
  1679. style="margin-right: 12px"
  1680. >
  1681. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1682. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1683. <option value="2">&nbsp;&nbsp;2&nbsp;&nbsp;</option>
  1684. <option value="3">&nbsp;&nbsp;3&nbsp;&nbsp;</option>
  1685. </select>
  1686. 5.放射与病理
  1687. <select id="fsybl" v-model="patient.fsybl">
  1688. <option value="0">&nbsp;&nbsp;0&nbsp;&nbsp;</option>
  1689. <option value="1">&nbsp;&nbsp;1&nbsp;&nbsp;</option>
  1690. <option value="2">&nbsp;&nbsp;2&nbsp;&nbsp;</option>
  1691. <option value="3">&nbsp;&nbsp;3&nbsp;&nbsp;</option>
  1692. </select>
  1693. (0.未做&nbsp;1.符合&nbsp;2.不符合&nbsp;3.不确定&nbsp;)&nbsp;&nbsp;
  1694. </div>
  1695. <div style="display: flex;align-items: end;margin-top: 4px">
  1696. 抢救情况: 抢救
  1697. <input
  1698. id="rescueTimes"
  1699. v-model="patient.rescueTimes"
  1700. type="number"
  1701. style="width: 90px;padding-left: 5px"
  1702. />次, 成功
  1703. <input
  1704. id="rescueSuccessTimes"
  1705. v-model="patient.rescueSuccessTimes"
  1706. type="number"
  1707. style="width: 90px;padding-left: 5px"
  1708. />次
  1709. </div>
  1710. <div style="display: flex;align-items: center;margin-top: 6px">
  1711. 同城互认:
  1712. 1.无
  1713. <el-checkbox true-value="1" false-value="0" :key="patient.bah+'tchrw'" v-model="patient.tchrw"></el-checkbox>
  1714. <span style="margin-left: 12px">2.影像检查</span>
  1715. <el-checkbox true-value="1" :false-value="null" :key="patient.bah+'tchryxjc'" v-model="patient.tchryxjc"></el-checkbox>
  1716. <span style="margin-left: 12px">3.检验检查</span>
  1717. <el-checkbox true-value="1" false-value="0" :key="patient.bah+'tchrjyjc'" v-model="patient.tchrjyjc"></el-checkbox>
  1718. <span style="margin-left: 12px">4.病理检查</span>
  1719. <el-checkbox true-value="1" false-value="0" :key="patient.bah+'tchrbljc'" v-model="patient.tchrbljc"></el-checkbox>
  1720. <span style="margin-left: 12px">9.其他</span>
  1721. <el-checkbox true-value="1" false-value="0" :key="patient.bah+'tchrqt'" v-model="patient.tchrqt"></el-checkbox>
  1722. </div>
  1723. <div style="display: flex;align-items: center;margin-top: 6px">
  1724. 临床路径管理
  1725. <select
  1726. id="pathwayMng"
  1727. v-model="patient.pathwayMng"
  1728. style="width: 80px"
  1729. >
  1730. <option value="1">&nbsp;&nbsp;1</option>
  1731. <option value="2">&nbsp;&nbsp;2</option>
  1732. <option value="3">&nbsp;&nbsp;3</option>
  1733. <option value="4">&nbsp;&nbsp;4</option>
  1734. </select>
  1735. 1.完成&nbsp;2.变异&nbsp;3.退出&nbsp;4.未入&nbsp;&nbsp;&nbsp;
  1736. </div>
  1737. <div style="width: 800px;box-sizing: border-box;">
  1738. <span>说明:(一)医疗付费方式&nbsp;&nbsp;1.城镇职工基本医疗保险&nbsp;&nbsp;2.城镇居民基本医疗保险&nbsp;&nbsp;3.新型农村合作医疗&nbsp;&nbsp;4.贫困救助
  1739. &nbsp;&nbsp;5.商业医疗保险&nbsp;&nbsp;6.全公费&nbsp;&nbsp;7.全自费&nbsp;&nbsp;8.其他社会保险&nbsp;&nbsp;9.其他
  1740. </span>
  1741. </div>
  1742. <div style="width: 800px;box-sizing: border-box;">
  1743. <span>说明:(二)身份证件类型</span>
  1744. <span v-for="item in dics.getPsnCertType">
  1745. {{ item.code }}.{{ item.name }}
  1746. </span>
  1747. </div>
  1748. </div>
  1749. </div>
  1750. </div>
  1751. </div>
  1752. <div id="headpage" style="opacity: 0; position: fixed">
  1753. <HeadPage :patient="headPagePatient" :dics="dics" />
  1754. </div>
  1755. <div id="tailpage" style="opacity: 0; position: fixed">
  1756. <TailPage :patient="tailpagePatient" :dics="dics" />
  1757. </div>
  1758. <el-drawer
  1759. v-model="showMessageDrawer"
  1760. title="首页保存/打印校验结果"
  1761. size="260px"
  1762. modal-class="modal-class"
  1763. >
  1764. <div class="page-inner">
  1765. <div
  1766. v-if="forceVerifies.length === 0 && adviceVerifies.length === 0"
  1767. class="no-verify-message"
  1768. >
  1769. 暂无校验内容
  1770. </div>
  1771. <div
  1772. v-show="forceVerifies.length > 0"
  1773. style="padding: 8px 0 4px 0; font-weight: bold"
  1774. >
  1775. 以下条目为强制要求,请完善。
  1776. </div>
  1777. <div
  1778. v-for="(item, index) in forceVerifies"
  1779. :key="index"
  1780. class="message-item"
  1781. :style="messageColor(index)"
  1782. @click="handleClickMessage(item.code, index)"
  1783. >
  1784. {{ index + 1 }}、{{ item.name }}
  1785. </div>
  1786. <div
  1787. v-show="adviceVerifies.length > 0"
  1788. style="padding: 8px 0 4px 0; font-weight: bold"
  1789. >
  1790. 以下条目为建议执行,不做强制要求。
  1791. </div>
  1792. <div
  1793. v-for="(item, index) in adviceVerifies"
  1794. :key="index"
  1795. style="
  1796. padding: 6px;
  1797. margin-bottom: 6px;
  1798. border-radius: 4px;
  1799. background: #eea7a752;
  1800. color: #ff2b2b;
  1801. "
  1802. >
  1803. {{ index + 1 }}、{{ item.name }}
  1804. </div>
  1805. </div>
  1806. </el-drawer>
  1807. <div class="rightside-btn" @click="showMessageDrawer = !showMessageDrawer">
  1808. 首页保存 / 打印校验结果
  1809. </div>
  1810. <el-dialog
  1811. v-model="showSelectDateRange"
  1812. title="出院日期"
  1813. width="320px"
  1814. draggable
  1815. >
  1816. <div style="height: 20px"></div>
  1817. 请选择出院日期范围:
  1818. <div style="height: 10px"></div>
  1819. <el-date-picker
  1820. v-model="dateRange"
  1821. type="daterange"
  1822. range-separator="至"
  1823. start-placeholder="开始日期"
  1824. end-placeholder="结束日期"
  1825. :shortcuts="shortcuts"
  1826. style="width: 260px"
  1827. ></el-date-picker>
  1828. <div style="margin: 20px 0 10px 0; width: 100%; text-align: right">
  1829. <el-button type="primary" icon="Check" @click="confirmDateRange"
  1830. >确定
  1831. </el-button>
  1832. </div>
  1833. </el-dialog>
  1834. <el-dialog
  1835. v-model="showDateTimePicker"
  1836. title="时间日期选择"
  1837. width="320px"
  1838. draggable
  1839. >
  1840. <div style="height: 20px"></div>
  1841. 请选择日期时间:
  1842. <div style="height: 10px"></div>
  1843. <el-date-picker
  1844. v-model="showDateTimePickerData"
  1845. type="datetime"
  1846. style="width: 260px"
  1847. ></el-date-picker>
  1848. <div style="margin: 20px 0 10px 0; width: 100%; text-align: right">
  1849. <el-button type="primary" icon="Check" @click="confirmDateTimePickerData"
  1850. >确定
  1851. </el-button>
  1852. </div>
  1853. </el-dialog>
  1854. <el-dialog
  1855. v-model="showYbDiag"
  1856. title="医保出院诊断"
  1857. width="70%"
  1858. top="30px"
  1859. draggable
  1860. >
  1861. <div
  1862. style="
  1863. width: 100%;
  1864. height: 30px;
  1865. line-height: 30px;
  1866. background: rgb(252, 160, 23);
  1867. margin-bottom: 8px;
  1868. border-radius: 8px;
  1869. padding-left: 8px;
  1870. color: white;
  1871. "
  1872. >
  1873. <strong>主要诊断病种分值:{{ diseFamilyGrade }}</strong>
  1874. </div>
  1875. <el-tag type="info">医保诊断录入</el-tag>
  1876. <el-tag style="margin-left: 12px">患者:{{ patient.name }}</el-tag>
  1877. <el-tag style="margin-left: 8px"
  1878. >医疗类别:{{ patient.medTypeName }}
  1879. </el-tag>
  1880. <el-tag style="margin-left: 8px">险种类型:{{ patient.insutype }}</el-tag>
  1881. <div style="height: 5px"></div>
  1882. <el-input
  1883. v-model="ybDiag.name"
  1884. placeholder="在此搜索诊断"
  1885. readonly
  1886. style="width: 160px"
  1887. @click="showSearchData('ybDiag')"
  1888. ></el-input>
  1889. <el-input
  1890. placeholder="诊断编码"
  1891. disabled
  1892. style="width: 100px"
  1893. v-model="ybDiag.code"
  1894. ></el-input>
  1895. <el-select
  1896. v-model="ybDiag.siDiagType"
  1897. style="width: 100px"
  1898. placeholder="诊断类别"
  1899. >
  1900. <el-option
  1901. v-for="item in diagTypes"
  1902. :key="item.code"
  1903. :value="item.code"
  1904. :label="item.name"
  1905. ></el-option>
  1906. </el-select>
  1907. <el-select
  1908. v-model="ybDiag.admissCond"
  1909. style="width: 100px"
  1910. placeholder="入院病情"
  1911. >
  1912. <el-option
  1913. v-for="item in admissConds"
  1914. :key="item.code"
  1915. :value="item.code"
  1916. :label="item.name"
  1917. ></el-option>
  1918. </el-select>
  1919. <el-select
  1920. v-model="ybDiag.cyzg"
  1921. style="width: 120px"
  1922. placeholder="出院转归"
  1923. >
  1924. <el-option
  1925. v-for="item in cyzgs"
  1926. :key="item.code"
  1927. :value="item.code"
  1928. :label="item.name"
  1929. ></el-option>
  1930. </el-select>
  1931. <el-divider direction="vertical"></el-divider>
  1932. <el-button type="primary" icon="Plus" @click="addToYbDiags">添加</el-button>
  1933. <el-button type="success" icon="Upload" @click="saveYbDiags"
  1934. >保存
  1935. </el-button>
  1936. <el-table :data="ybDiags" stripe :height="200">
  1937. <el-table-column type="index" label="序号" width="45"></el-table-column>
  1938. <el-table-column prop="code" label="诊断编码"></el-table-column>
  1939. <el-table-column prop="name" label="诊断名称"></el-table-column>
  1940. <el-table-column
  1941. prop="siDiagType"
  1942. label="诊断类别"
  1943. width="80"
  1944. ></el-table-column>
  1945. <el-table-column
  1946. prop="admissCond"
  1947. label="入院病情"
  1948. width="80"
  1949. ></el-table-column>
  1950. <el-table-column
  1951. prop="cyzg"
  1952. label="出院转归"
  1953. width="80"
  1954. ></el-table-column>
  1955. <el-table-column
  1956. prop="operId"
  1957. label="录入人"
  1958. width="70"
  1959. ></el-table-column>
  1960. <el-table-column prop="opDate" label="录入日期"></el-table-column>
  1961. <el-table-column label="操作">
  1962. <template #default="scope">
  1963. <el-button
  1964. type="danger"
  1965. icon="Delete"
  1966. @click="deleteYbDiag(scope.$index)"
  1967. >删除
  1968. </el-button>
  1969. </template>
  1970. </el-table-column>
  1971. </el-table>
  1972. <div style="height: 12px"></div>
  1973. <el-tag type="info">病案首页诊断信息</el-tag>
  1974. <el-table :data="filterDisDiagList" stripe :height="200">
  1975. <el-table-column type="index" label="序号" width="45"></el-table-column>
  1976. <el-table-column prop="code" label="诊断编码"></el-table-column>
  1977. <el-table-column prop="name" label="诊断名称"></el-table-column>
  1978. <el-table-column label="出院病情">
  1979. <template #default="scope">
  1980. {{ filterDismissStatus(scope.row.dismissStatus) }}
  1981. </template>
  1982. </el-table-column>
  1983. <el-table-column label="操作">
  1984. <template #default="scope">
  1985. <el-button
  1986. icon="Link"
  1987. title="添加到医保诊断"
  1988. circle
  1989. @click="syncronizeWithSiDiagnose(scope.row.code)"
  1990. ></el-button>
  1991. </template>
  1992. </el-table-column>
  1993. </el-table>
  1994. </el-dialog>
  1995. <el-dialog v-model="showSearch" title="数据搜索" width="730px" draggable>
  1996. 检索依据:
  1997. <el-select v-model="searchMethod" style="width: 100px">
  1998. <el-option
  1999. v-for="item in searchMethods"
  2000. :key="item.code"
  2001. :label="item.name"
  2002. :value="item.code"
  2003. ></el-option>
  2004. </el-select>
  2005. &nbsp;&nbsp;&nbsp;&nbsp; 搜索内容:
  2006. <el-input
  2007. ref="searchInput"
  2008. v-model="searchContent"
  2009. prefix-icon="Search"
  2010. placeholder="请输入搜索内容"
  2011. style="width: 160px"
  2012. clearable
  2013. @input="executeSearch"
  2014. ></el-input>
  2015. <div
  2016. v-if="showSurgeryRecommand"
  2017. style="padding: 12px 0 4px 4px; color: gray"
  2018. >
  2019. 根据患者主诊断
  2020. <el-tag
  2021. >{{ patient.disdiagList[0].code }}
  2022. <span style="color: blue">{{ patient.disdiagList[0].name }}</span>
  2023. </el-tag>
  2024. ,推荐以下手术操作:
  2025. </div>
  2026. <el-table
  2027. :data="searchResults"
  2028. height="400"
  2029. stripe
  2030. highlight-current-row
  2031. @row-click="handleSelectSearch"
  2032. >
  2033. <el-table-column prop="code" label="编码" width="130"></el-table-column>
  2034. <el-table-column prop="name" label="名称"></el-table-column>
  2035. <el-table-column
  2036. v-if="searchUrl === 'employee'"
  2037. prop="deptName"
  2038. label="科室"
  2039. ></el-table-column>
  2040. <el-table-column
  2041. v-if="searchUrl === 'employee'"
  2042. prop="ybCode"
  2043. label="医保赋码"
  2044. ></el-table-column>
  2045. <el-table-column
  2046. v-if="showSurgeryRecommand"
  2047. prop="ssfz"
  2048. label="手术分值"
  2049. width="60"
  2050. ></el-table-column>
  2051. </el-table>
  2052. <div style="margin-top: 15px; width: 100%; text-align: right">
  2053. <el-button
  2054. type="primary"
  2055. icon="ArrowLeft"
  2056. @click="lastPage"
  2057. :disabled="showSurgeryRecommand || currentSRPage === 1"
  2058. >
  2059. 上一页
  2060. </el-button>
  2061. <el-button
  2062. type="primary"
  2063. icon="ArrowRight"
  2064. @click="nextPage"
  2065. :disabled="
  2066. showSurgeryRecommand ||
  2067. (currentSRPage > 1 && searchResults.length < 10)
  2068. "
  2069. >
  2070. 下一页
  2071. </el-button>
  2072. </div>
  2073. </el-dialog>
  2074. <el-dialog
  2075. v-model="showSurgeryDatetime"
  2076. title="请选择手术时间"
  2077. width="330px"
  2078. draggable
  2079. >
  2080. <div style="height: 12px"></div>
  2081. <el-date-picker
  2082. v-model="surgeryDatetime"
  2083. type="datetime"
  2084. placeholder="手术开始时间"
  2085. ></el-date-picker>
  2086. <div style="height: 12px"></div>
  2087. <el-date-picker
  2088. v-model="opEndDate"
  2089. type="datetime"
  2090. placeholder="手术结束时间"
  2091. ></el-date-picker>
  2092. <div style="margin: 12px 0 8px 0; font-size: 14px; color: red">
  2093. 提示:有麻醉(局麻除外)的患者需要填写麻醉时间,否则最终校验无法通过!
  2094. </div>
  2095. <el-date-picker
  2096. v-model="anstStartDate"
  2097. type="datetime"
  2098. placeholder="麻醉开始时间"
  2099. ></el-date-picker>
  2100. <div style="height: 12px"></div>
  2101. <el-date-picker
  2102. v-model="anstEndDate"
  2103. type="datetime"
  2104. placeholder="麻醉结束时间"
  2105. ></el-date-picker>
  2106. <template #footer>
  2107. <div>
  2108. <el-button type="primary" icon="Success" @click="confirmSurgeryDatetime"
  2109. >确定
  2110. </el-button>
  2111. </div>
  2112. </template>
  2113. </el-dialog>
  2114. </template>
  2115. <script setup name="FillCaseFrontSheet">
  2116. import {
  2117. autopsies,
  2118. clone,
  2119. filterDismissStatus,
  2120. haveOrNot,
  2121. initShowDel,
  2122. searchMethods,
  2123. yesOrNo,
  2124. noCertReasons,
  2125. cuts,
  2126. heals,
  2127. } from "./common";
  2128. import { operations } from "@/data";
  2129. import { getLodop, initLodop } from "@/utils/c-lodop";
  2130. import {
  2131. doSaveYbDiags,
  2132. executePrintVerify,
  2133. executeSaveVerify,
  2134. fetchAuditCount,
  2135. fetchOutPatients,
  2136. fetchSsfz,
  2137. getAllDictionary,
  2138. getPatientOverview,
  2139. getSheetInfo,
  2140. getSsfzSurgeriesByIcd,
  2141. getUserWards,
  2142. getYbDiags,
  2143. increaseDiagWeight,
  2144. isMedinsSetl,
  2145. selectSiDiagByBaDiag,
  2146. sheetSearch,
  2147. submitQualityVerification,
  2148. } from "@/api/case-front-sheet";
  2149. import maleIcon from "@/assets/male-icon.png";
  2150. import femaleIcon from "@/assets/female-icon.png";
  2151. import {ElMessage, ElMessageBox} from "element-plus";
  2152. import { shortcuts } from "@/data/shortcuts";
  2153. import {
  2154. formatDate,
  2155. formatDatetime,
  2156. getDatetime,
  2157. getOneMonthOffset,
  2158. } from "@/utils/date";
  2159. import HeadPage from "../../../components/inpatient/frontsheet-printpage/HeadPage.vue";
  2160. import TailPage from "../../../components/inpatient/frontsheet-printpage/TailPage.vue";
  2161. import router from "@/router/index";
  2162. import Sleep from "@/utils/sleep";
  2163. import { smoothScrollTableColumn } from "@/utils/el-table-scroll";
  2164. import { regions } from "@/data/region";
  2165. import { CyMessageBox } from "@/utils/cy-message-box";
  2166. import { xcMessage } from "@/utils/xiaochan-element-plus";
  2167. import AuditHistory from "@/components/inpatient/frontsheet-printpage/AuditHistory.vue";
  2168. import { useUserStore } from "@/pinia/user-store";
  2169. import HistorySheetExport from "@/views/hospitalization/case-front-sheet/component/HistorySheetExport.vue";
  2170. import { useDialog } from "@/components/cy/CyDialog/index";
  2171. import env from "../../../utils/setting";
  2172. import {isNumeric} from "@/utils/validate.js";
  2173. const userStore = useUserStore();
  2174. const userWards = ref([]);
  2175. const currentWard = ref("");
  2176. const inOutStatus = ref(1);
  2177. const inOutOptions = initInOutOptions();
  2178. const inpatientNo = ref("");
  2179. const onlyShowMyPatients = ref(false);
  2180. const overview = ref([]);
  2181. const patient = ref({
  2182. disdiagList: [
  2183. {},
  2184. {},
  2185. {},
  2186. {},
  2187. {},
  2188. {},
  2189. {},
  2190. {},
  2191. {},
  2192. {},
  2193. {},
  2194. {},
  2195. {},
  2196. {},
  2197. {},
  2198. {},
  2199. {},
  2200. {},
  2201. {},
  2202. {},
  2203. {},
  2204. {},
  2205. {},
  2206. {},
  2207. {},
  2208. {},
  2209. {},
  2210. ],
  2211. surgeryList: [{}, {}, {}, {}, {}],
  2212. icuInfoList: [{}, {}, {}],
  2213. supplement: {},
  2214. });
  2215. const defaultSurgerySize = ref(5);
  2216. const dics = ref({});
  2217. const headPagePatient = ref({
  2218. disdiagList: [
  2219. {},
  2220. {},
  2221. {},
  2222. {},
  2223. {},
  2224. {},
  2225. {},
  2226. {},
  2227. {},
  2228. {},
  2229. {},
  2230. {},
  2231. {},
  2232. {},
  2233. {},
  2234. {},
  2235. {},
  2236. {},
  2237. {},
  2238. {},
  2239. {},
  2240. {},
  2241. {},
  2242. {},
  2243. {},
  2244. {},
  2245. {},
  2246. ],
  2247. surgeryList: [{}, {}, {}, {}, {}],
  2248. icuInfoList: [{}, {}, {}],
  2249. supplement: {},
  2250. });
  2251. const tailpagePatient = ref({
  2252. disdiagList: [
  2253. {},
  2254. {},
  2255. {},
  2256. {},
  2257. {},
  2258. {},
  2259. {},
  2260. {},
  2261. {},
  2262. {},
  2263. {},
  2264. {},
  2265. {},
  2266. {},
  2267. {},
  2268. {},
  2269. {},
  2270. {},
  2271. {},
  2272. {},
  2273. {},
  2274. {},
  2275. {},
  2276. {},
  2277. {},
  2278. {},
  2279. {},
  2280. ],
  2281. surgeryList: [{}, {}, {}, {}, {}],
  2282. icuInfoList: [{}, {}, {}],
  2283. supplement: {},
  2284. });
  2285. const patientTransformData = ref({});
  2286. const sexList = ref([1,2,9]);
  2287. const showGoSearchBtn1 = ref(false);
  2288. const showGoSearchBtn2 = ref(false);
  2289. const showDel = initShowDel();
  2290. const asideTable = ref(null);
  2291. const showDateTimePicker = ref(false);
  2292. const showDateTimePickerData = ref(null);
  2293. function addSurgeSize() {
  2294. patient.value.surgeryList.push({});
  2295. defaultSurgerySize.value += 1;
  2296. }
  2297. const cptOverviews = computed(() => {
  2298. return overview.value.filter(item => {
  2299. if (onlyShowMyPatients.value) {
  2300. return item.doctorCode === userStore.userInfo.code;
  2301. }
  2302. return true;
  2303. });
  2304. });
  2305. const filterDisDiagList = computed(() => {
  2306. return patient.value.disdiagList.filter(item => {
  2307. return item.code && item.name;
  2308. });
  2309. });
  2310. const clickShowDateTimePickerVisible = (key1,key2,key3) =>{
  2311. console.log("params",)
  2312. patient.value[key1][key2] = showDateTimePickerData
  2313. }
  2314. const searchPatient = () => {
  2315. if (!inpatientNo.value || inpatientNo.value.trim().length < 1) {
  2316. ElMessage({
  2317. message: "请输入要搜索的住院号",
  2318. type: "warning",
  2319. duration: 2500,
  2320. showClose: true,
  2321. });
  2322. return;
  2323. }
  2324. const patientIndex = overview.value.findIndex(item => {
  2325. return item.bah === inpatientNo.value.trim();
  2326. });
  2327. if (patientIndex === -1) {
  2328. ElMessage({
  2329. message: "未找到住院号【" + inpatientNo.value.trim() + "】的患者信息",
  2330. type: "warning",
  2331. duration: 2500,
  2332. showClose: true,
  2333. });
  2334. } else {
  2335. const currentPatient = overview.value[patientIndex];
  2336. handleClickOverview(currentPatient);
  2337. smoothScrollTableColumn(asideTable.value, patientIndex, currentPatient);
  2338. }
  2339. };
  2340. const changeDate = () => {
  2341. console.log("changeDate",v )
  2342. };
  2343. const clickDate = (v,t) => {
  2344. if (t == 1) {
  2345. document.getElementById(`pickerDateS${v}`).focus();
  2346. } else {
  2347. document.getElementById(`pickerDateE${v}`).focus();
  2348. }
  2349. };
  2350. const handleWardChange = () => {
  2351. if (inOutStatus.value === 1) {
  2352. fetchOverview();
  2353. } else {
  2354. confirmDateRange();
  2355. }
  2356. };
  2357. const dateRange = ref([]);
  2358. const showSelectDateRange = ref(false);
  2359. const changeInOutStatus = () => {
  2360. if (inOutStatus.value === 1) {
  2361. fetchOverview();
  2362. } else {
  2363. if (!dateRange.value || dateRange.value.length < 2) {
  2364. const oneMonth = getOneMonthOffset();
  2365. dateRange.value[0] = oneMonth.start;
  2366. dateRange.value[1] = oneMonth.end;
  2367. }
  2368. showSelectDateRange.value = true;
  2369. }
  2370. };
  2371. const confirmDateRange = () => {
  2372. if (!dateRange.value || dateRange.value.length < 2) {
  2373. ElMessage({
  2374. message: "请选择时间范围",
  2375. type: "warning",
  2376. duration: 2500,
  2377. showClose: true,
  2378. });
  2379. return;
  2380. }
  2381. const param = {
  2382. ward: currentWard.value,
  2383. start: formatDate(dateRange.value[0]),
  2384. end: formatDate(dateRange.value[1]),
  2385. };
  2386. fetchOutPatients(param).then(res => {
  2387. overview.value = res;
  2388. showSelectDateRange.value = false;
  2389. });
  2390. };
  2391. const confirmDateTimePickerData = () => {
  2392. showDateTimePicker.value=false
  2393. showDateTimePickerData.value=null
  2394. };
  2395. const clickIcuInfo = (name,n) => {
  2396. if (name == "icuName") {
  2397. patient.value.icuInfoList[n - 1].icuName = "ICU"
  2398. }
  2399. };
  2400. const fetchOverview = () => {
  2401. getPatientOverview(currentWard.value).then(res => {
  2402. overview.value = res;
  2403. });
  2404. };
  2405. const currentRow = ref({});
  2406. const handleClickOverview = row => {
  2407. currentRow.value = {}
  2408. currentRow.value = row;
  2409. fetchSheetInfo(row);
  2410. };
  2411. const fetchSheetInfo = row => {
  2412. if (
  2413. row.bah !== patient.value.bah ||
  2414. row.times !== patient.value.admissTimes
  2415. ) {
  2416. forceVerifies.value = [];
  2417. adviceVerifies.value = [];
  2418. }
  2419. row.inOutFlag = inOutStatus.value;
  2420. getSheetInfo(row).then(res => {
  2421. patient.value = res;
  2422. let s = res.surgeryList.length;
  2423. defaultSurgerySize.value = s > 5 ? s : 5;
  2424. patient.value.bedNo = row.bedNo;
  2425. patient.value.sex = row.sex;
  2426. initSheetInfoLine(patient);
  2427. if(patient.value.age == null){
  2428. console.log("initSheetInfoLine0",patient.value.age)
  2429. // patientTransformData.value.age = '-'
  2430. } else {
  2431. patient.value.infAge == null?patientTransformData.value.infAge = '-':false;
  2432. patient.value.ageDays == null?patientTransformData.value.ageDays = '-':false;
  2433. patient.value.newBornWeight1 == null?patientTransformData.value.newBornWeight1 = '-':false;
  2434. patient.value.newBornWeight2 == null?patientTransformData.value.newBornWeight2 = '-':false;
  2435. patient.value.newBornAdmissWeight == null?patientTransformData.value.newBornAdmissWeight = '-':false;
  2436. }
  2437. if(patient.value.birthDate != null){
  2438. patientTransformData.value.birthYear = patient.value.birthDate.slice(0,4);
  2439. patientTransformData.value.birthMonth = patient.value.birthDate.slice(5,7);
  2440. patientTransformData.value.birthDay = patient.value.birthDate.slice(8,10);
  2441. }
  2442. patient.value.noCertReason == null?patient.value.noCertReason = "-":false;
  2443. patient.value.noCertReason == null?patient.value.noCertReason = "-":false;
  2444. patient.value.autopsy == null?patient.value.autopsy = "-":false;
  2445. patient.value.transDept == null?patientTransformData.value.transDept = "-":false;
  2446. patient.value.hurtReasonName == null?patientTransformData.value.hurtReasonName = "-":false;
  2447. patient.value.hurtReasonCode == null?patientTransformData.value.hurtReasonCode = "-":false;
  2448. if (patient.value.pathologicDiagCode == null || patient.value.pathologicDiagCode== "-") {
  2449. patientTransformData.value.pathologicDiagStr = "-"
  2450. patientTransformData.value.pathologicDiagCode = "-"
  2451. }
  2452. if (patient.value.internshipDoctor == null || patient.value.internshipDoctor== "-") {
  2453. patient.value.internshipDoctor = "-"
  2454. patient.value.internshipDoctorName = "-"
  2455. }
  2456. if (patient.value.studyDoctorName == null || patient.value.studyDoctorName== "-") {
  2457. patient.value.studyDoctorName = "-"
  2458. patient.value.studyDoctorNameName = "-"
  2459. }
  2460. patient.value.blh == null?patientTransformData.value.blh = "-":false;
  2461. patient.value.transDept == null?patientTransformData.value.transDept = "-":false;
  2462. //初始化其他诊断横线
  2463. for (let i = 1; i < patient.value.disdiagList.length; i++) {
  2464. if(patient.value.disdiagList[i].name == '-' || patient.value.disdiagList[i].name == '' || patient.value.disdiagList[i].name == null){
  2465. patient.value.disdiagList[i].name = '-'
  2466. break;
  2467. }
  2468. }
  2469. console.log("patient.value.disdiagList",patient.value.disdiagList)
  2470. //初始化手术横线
  2471. for (let i = 0; i < patient.value.surgeryList.length; i++) {
  2472. if(patient.value.surgeryList[i].name == '-' || patient.value.surgeryList[i].name == null){
  2473. patient.value.surgeryList[i].name = '-'
  2474. break;
  2475. } else {
  2476. if(patient.value.surgeryList[i].assistantTwoName == '-' || patient.value.surgeryList[i].assistantTwoName == "" || patient.value.surgeryList[i].assistantTwoName == null){
  2477. patient.value.surgeryList[i].assistantTwoName = '-'
  2478. }
  2479. }
  2480. }
  2481. //初始化重症监护室横线
  2482. for (let i = 0; i < patient.value.icuInfoList.length; i++) {
  2483. if(patient.value.icuInfoList[i].name == '-' || patient.value.icuInfoList[i].name == null){
  2484. patient.value.icuInfoList[i].name = '-'
  2485. break;
  2486. }
  2487. }
  2488. // patient.value.surgeryList[0].name == null?patient.value.surgeryList[0].name = '-':false;
  2489. // 为工作单位相关字段设置默认短横线
  2490. if (!patient.value.unitName || patient.value.unitName.trim() === '') {
  2491. patient.value.unitName = '-';
  2492. }
  2493. if (!patient.value.unitPlace || patient.value.unitPlace.trim() === '') {
  2494. patient.value.unitPlace = '-';
  2495. }
  2496. if (!patient.value.unitPhone || patient.value.unitPhone.trim() === '') {
  2497. patient.value.unitPhone = '-';
  2498. }
  2499. if (!patient.value.unitZipCode || patient.value.unitZipCode.trim() === '') {
  2500. patient.value.unitZipCode = '-';
  2501. }
  2502. this
  2503. mergePrintHeadpage()
  2504. // console.log("fdsfds",headPagePatient)
  2505. mergePrintTailpage()
  2506. });
  2507. };
  2508. const initSheetInfoLine=(data)=>{
  2509. for (const key in data.value) {
  2510. if (Object.prototype.hasOwnProperty.call(data.value, key)) {
  2511. patientTransformData.value[key] = data.value[key]
  2512. }
  2513. }
  2514. console.log("initSheetInfoLine",patientTransformData.value)
  2515. }
  2516. const currentSRPage = ref(1);
  2517. const showSearch = ref(false);
  2518. const insertDiag = ref(false);
  2519. watchEffect(() => {
  2520. if (showSearch.value) {
  2521. searchResults.value = [];
  2522. setTimeout(() => {
  2523. showDel.value = initShowDel();
  2524. searchInput.value.focus();
  2525. }, 300);
  2526. } else {
  2527. insertDiag.value = false;
  2528. }
  2529. });
  2530. const searchInput = ref(null);
  2531. const searchUrl = ref("");
  2532. const searchTargetCode = ref("");
  2533. const searchTargetName = ref("");
  2534. const searchContent = ref("");
  2535. const lastPage = () => {
  2536. currentSRPage.value--;
  2537. fetchSearchData();
  2538. };
  2539. const nextPage = () => {
  2540. currentSRPage.value++;
  2541. fetchSearchData();
  2542. };
  2543. const fetchSearchData = () => {
  2544. const param = {
  2545. patNo: patient.value.bah,
  2546. times: patient.value.admissTimes,
  2547. method: searchMethod.value,
  2548. target: searchUrl.value,
  2549. content: searchContent.value,
  2550. medType: patient.value.medType,
  2551. page: currentSRPage.value,
  2552. };
  2553. sheetSearch(param).then(res => {
  2554. searchResults.value = res;
  2555. });
  2556. };
  2557. const executeSearch = () => {
  2558. showSurgeryRecommand.value = false;
  2559. if (
  2560. mainSurgeryFocused.value &&
  2561. searchContent.value === "" &&
  2562. patient.value.disdiagList[0].code
  2563. ) {
  2564. getSsfzSurgeriesByIcd(
  2565. patient.value.bah,
  2566. patient.value.admissTimes,
  2567. patient.value.disdiagList[0].code
  2568. ).then(res => {
  2569. searchResults.value = res;
  2570. showSurgeryRecommand.value = true;
  2571. });
  2572. return;
  2573. }
  2574. if (searchContent.value.length < 2) return;
  2575. currentSRPage.value = 1;
  2576. fetchSearchData();
  2577. };
  2578. const showYbDiag = ref(false);
  2579. const openYbDiag = () => {
  2580. if (nullPatient()) {
  2581. return;
  2582. }
  2583. if (!patient.value.medType) {
  2584. ElMessage({
  2585. message: "自费病人无需填写医保诊断",
  2586. type: "warning",
  2587. duration: 2500,
  2588. showClose: true,
  2589. });
  2590. return;
  2591. }
  2592. getYbDiags(patient.value.bah, patient.value.admissTimes).then(res => {
  2593. ybDiags.value = res;
  2594. showYbDiag.value = true;
  2595. });
  2596. };
  2597. const searchMethod = ref("alpha");
  2598. const searchResults = ref([]);
  2599. const showSearchData = flag => {
  2600. mainSurgeryFocused.value = false;
  2601. showSurgeryRecommand.value = false;
  2602. searchUrl.value = "place";
  2603. if (flag === "birth") {
  2604. searchTargetCode.value = "birthPlace";
  2605. searchTargetName.value = "birthPlaceName";
  2606. } else if (flag === "birthPlace") {
  2607. searchTargetCode.value = "birthPlace";
  2608. searchTargetName.value = "birthPlaceName";
  2609. } else if (flag === "livePlace") {
  2610. searchTargetCode.value = "addrZipCode";
  2611. searchTargetName.value = "livePlace";
  2612. } else if (flag === "native") {
  2613. searchTargetCode.value = "nativePlace";
  2614. searchTargetName.value = "nativePlaceName";
  2615. } else if (flag === "hk") {
  2616. searchTargetCode.value = "hkZipCode";
  2617. searchTargetName.value = "hkPlaceName";
  2618. } else if (flag === "contact") {
  2619. searchTargetCode.value = "contactAddr";
  2620. searchTargetName.value = "contactAddrName";
  2621. } else if (flag === "hurt") {
  2622. searchUrl.value = "hurtReason";
  2623. searchTargetCode.value = "hurtReasonCode";
  2624. searchTargetName.value = "hurtReasonName";
  2625. } else if (flag === "pathologic") {
  2626. searchUrl.value = "pathologicDiag";
  2627. searchTargetCode.value = "pathologicDiagCode";
  2628. searchTargetName.value = "pathologicDiagStr";
  2629. } else if (flag === "deptleader") {
  2630. searchUrl.value = "employee";
  2631. searchTargetCode.value = "deptLeader";
  2632. searchTargetName.value = "deptLeaderName";
  2633. } else if (flag === "leaderdoctor") {
  2634. searchUrl.value = "employee";
  2635. searchTargetCode.value = "leaderDoctor";
  2636. searchTargetName.value = "leaderDoctorName";
  2637. } else if (flag === "maindoctor") {
  2638. searchUrl.value = "employee";
  2639. searchTargetCode.value = "mainDoctor";
  2640. searchTargetName.value = "mainDoctorName";
  2641. } else if (flag === "admissdoctor") {
  2642. searchUrl.value = "employee";
  2643. searchTargetCode.value = "admissDoctor";
  2644. searchTargetName.value = "admissDoctorName";
  2645. } else if (flag === "dutynurse") {
  2646. searchUrl.value = "employee";
  2647. searchTargetCode.value = "dutyNurse";
  2648. searchTargetName.value = "dutyNurseName";
  2649. } else if (flag === "studydoctor") {
  2650. searchUrl.value = "employee";
  2651. searchTargetCode.value = "studyDoctor";
  2652. searchTargetName.value = "studyDoctorName";
  2653. } else if (flag === "internshipdoctor") {
  2654. searchUrl.value = "employee";
  2655. searchTargetCode.value = "internshipDoctor";
  2656. searchTargetName.value = "internshipDoctorName";
  2657. } else if (flag === "coder") {
  2658. searchUrl.value = "employee";
  2659. searchTargetCode.value = "coder";
  2660. searchTargetName.value = "coderName";
  2661. } else if (flag === "qualitycontroldoctor") {
  2662. searchUrl.value = "employee";
  2663. searchTargetCode.value = "qualityControlDoctor";
  2664. searchTargetName.value = "qualityControlDoctorName";
  2665. } else if (flag === "qualitycontrolnurse") {
  2666. searchUrl.value = "employee";
  2667. searchTargetCode.value = "qualityControlNurse";
  2668. searchTargetName.value = "qualityControlNurseName";
  2669. } else if (flag === "ybDiag") {
  2670. searchUrl.value = "diag";
  2671. searchTargetCode.value = "ybDiagCode";
  2672. } else if (flag === "clinicdiag") {
  2673. searchUrl.value = "clinicdiag";
  2674. searchTargetCode.value = "clinicDiagCode";
  2675. searchTargetName.value = "clinicDiagStr";
  2676. } else if (flag === "admdiag") {
  2677. searchUrl.value = "clinicdiag";
  2678. searchTargetCode.value = "admDiagCode";
  2679. searchTargetName.value = "admDiagStr";
  2680. }
  2681. showSearch.value = true;
  2682. console.log("handleSelectSearch")
  2683. };
  2684. const showSurgeryDatetime = ref(false);
  2685. const surgeryDatetime = ref(null);
  2686. const opEndDate = ref(null);
  2687. const anstStartDate = ref(null);
  2688. const anstEndDate = ref(null);
  2689. const currentSurgeryDatetimeIndex = ref(null);
  2690. const showPickSurgeryDatetime = index => {
  2691. currentSurgeryDatetimeIndex.value = index;
  2692. let surgery = patient.value.surgeryList[index];
  2693. surgeryDatetime.value = surgery.date;
  2694. opEndDate.value = surgery.opEndDate;
  2695. anstStartDate.value = surgery.anstStartDate;
  2696. anstEndDate.value = surgery.anstEndDate;
  2697. showSurgeryDatetime.value = true;
  2698. };
  2699. const confirmSurgeryDatetime = () => {
  2700. if (!surgeryDatetime.value) {
  2701. ElMessage({
  2702. message: "手术开始时间不能为空!",
  2703. type: "warning",
  2704. duration: 2500,
  2705. showClose: true,
  2706. });
  2707. return;
  2708. }
  2709. if (!opEndDate.value) {
  2710. ElMessage({
  2711. message: "手术结束时间不能为空!",
  2712. type: "warning",
  2713. duration: 2500,
  2714. showClose: true,
  2715. });
  2716. return;
  2717. }
  2718. patient.value.surgeryList[currentSurgeryDatetimeIndex.value].date =
  2719. formatDatetime(surgeryDatetime.value);
  2720. patient.value.surgeryList[currentSurgeryDatetimeIndex.value].opEndDate =
  2721. formatDatetime(opEndDate.value);
  2722. patient.value.surgeryList[currentSurgeryDatetimeIndex.value].anstStartDate =
  2723. formatDatetime(anstStartDate.value);
  2724. patient.value.surgeryList[currentSurgeryDatetimeIndex.value].anstEndDate =
  2725. formatDatetime(anstEndDate.value);
  2726. showSurgeryDatetime.value = false;
  2727. };
  2728. const showSearchSurgerior = (flag, index) => {
  2729. mainSurgeryFocused.value = false;
  2730. showSurgeryRecommand.value = false;
  2731. if (flag === "operator") {
  2732. searchTargetCode.value = "surgeryOperatorCode" + (index - 1);
  2733. searchTargetName.value = "surgeryOperatorName" + (index - 1);
  2734. } else if (flag === "assistantone") {
  2735. searchTargetCode.value = "surgeryAssistantOneCode" + (index - 1);
  2736. searchTargetName.value = "surgeryAssistantOneName" + (index - 1);
  2737. } else if (flag === "assistanttwo") {
  2738. searchTargetCode.value = "surgeryAssistantTwoCode" + (index - 1);
  2739. searchTargetName.value = "surgeryAssistantTwoName" + (index - 1);
  2740. } else {
  2741. searchTargetCode.value = "surgeryAnaesthesiaorCode" + (index - 1);
  2742. searchTargetName.value = "surgeryAnaesthesiaorName" + (index - 1);
  2743. }
  2744. searchUrl.value = "employee";
  2745. showSearch.value = true;
  2746. };
  2747. const diseFamilyGrade = ref(null);
  2748. const ybDiag = reactive({});
  2749. const cyzgs = initCyzgs();
  2750. const admissConds = initAdmissConds();
  2751. const diagTypes = initDiagTypes();
  2752. const handleSelectSearch = item => {
  2753. if (searchTargetCode.value.startsWith("surgery")) {
  2754. let offset = defaultSurgerySize.value > 10 ? 2 : 1;
  2755. let no = searchTargetCode.value.substr(
  2756. searchTargetCode.value.length - offset
  2757. );
  2758. if (!isNumeric(no)) {
  2759. offset = 1
  2760. no = searchTargetCode.value.substr(
  2761. searchTargetCode.value.length - offset
  2762. );
  2763. }
  2764. switch (
  2765. searchTargetCode.value.substr(0, searchTargetCode.value.length - offset)
  2766. ) {
  2767. case "surgeryCode":
  2768. if (no > 0) {
  2769. patient.value.surgeryList[no] = clone(
  2770. patient.value.surgeryList[no - 1]
  2771. );
  2772. }
  2773. patient.value.surgeryList[no].no = no;
  2774. patient.value.surgeryList[no].name = item.name;
  2775. patient.value.surgeryList[no].code = item.code;
  2776. patient.value.surgeryList[no].level = item.opScale;
  2777. break;
  2778. case "surgeryOperatorCode":
  2779. patient.value.surgeryList[no].operator = item.code;
  2780. patient.value.surgeryList[no].operatorName = item.name;
  2781. break;
  2782. case "surgeryAssistantOneCode":
  2783. patient.value.surgeryList[no].assistantOne = item.code;
  2784. patient.value.surgeryList[no].assistantOneName = item.name;
  2785. break;
  2786. case "surgeryAssistantTwoCode":
  2787. patient.value.surgeryList[no].assistantTwo = item.code;
  2788. patient.value.surgeryList[no].assistantTwoName = item.name;
  2789. break;
  2790. case "surgeryAnaesthesiaorCode":
  2791. patient.value.surgeryList[no].anaesthesiaor = item.code;
  2792. patient.value.surgeryList[no].anaesthesiaorName = item.name;
  2793. break;
  2794. }
  2795. } else if (searchTargetCode.value.startsWith("disdiags")) {
  2796. let no = Number(searchTargetCode.value.replace("disdiagsCode", ""));
  2797. if (insertDiag.value) {
  2798. for (let i = 26; i > no; i--) {
  2799. patient.value.disdiagList[i] = clone(patient.value.disdiagList[i - 1]);
  2800. }
  2801. patient.value.disdiagList.splice(27);
  2802. insertDiag.value = false;
  2803. }
  2804. patient.value.disdiagList[no].code = item.code;
  2805. patient.value.disdiagList[no].name = item.name;
  2806. patient.value.disdiagList[no].no = no;
  2807. patient.value.disdiagList[no].admissStatus = patient.value.disdiagList[
  2808. no
  2809. ].dismissStatus = "1";
  2810. patient.value.disdiagList[no].opIdCode = userStore.userInfo.code;
  2811. increaseDiagWeight(item.code);
  2812. } else if (searchTargetCode.value === "ybDiagCode") {
  2813. ybDiag.code = item.code;
  2814. ybDiag.name = item.name;
  2815. ybDiag.cyzg = 0;
  2816. ybDiag.siDiagType = 1;
  2817. if (!ybDiags.value || ybDiags.value.length === 0) {
  2818. fetchSsfz(item.code, patient.value.bah, patient.value.admissTimes).then(
  2819. res => {
  2820. diseFamilyGrade.value = res;
  2821. }
  2822. );
  2823. }
  2824. } else if (searchTargetCode.value === "clinicDiagCode") {
  2825. patientTransformData.value.clinicDiagCode = item.code;
  2826. patientTransformData.value.clinicDiagStr = item.name;
  2827. } else if (searchTargetCode.value === "admDiagCode") {
  2828. patientTransformData.value.supplement.admDiagCode = item.code;
  2829. patientTransformData.value.supplement.admDiagName = item.name;
  2830. } else {
  2831. if (needDorSiCode.indexOf(searchTargetCode.value) > -1) {
  2832. if (!item.ybCode.startsWith("D")) {
  2833. ElMessage({
  2834. message: "医师医保编码首字母为D,请重新选择。",
  2835. type: "warning",
  2836. showClose: true,
  2837. duration: 2500,
  2838. });
  2839. return;
  2840. }
  2841. }
  2842. if (searchTargetCode.value === "dutyNurse") {
  2843. if (!item.ybCode.startsWith("N")) {
  2844. ElMessage({
  2845. message: "护士医保编码首字母为N,请重新选择。",
  2846. type: "warning",
  2847. showClose: true,
  2848. duration: 2500,
  2849. });
  2850. return;
  2851. }
  2852. }
  2853. patient.value[searchTargetCode.value] = item.code;
  2854. patient.value[searchTargetName.value] = item.name;
  2855. console.log("searchTargetName",searchTargetCode.value,searchTargetName.value)
  2856. if(searchTargetCode.value == "hurtReasonCode" || searchTargetCode.value == "hurtReasonName" ||
  2857. searchTargetCode.value == "pathologicDiagStr" || searchTargetCode.value == "pathologicDiagCode"
  2858. ){
  2859. patientTransformData.value[searchTargetCode.value] = item.code;
  2860. patientTransformData.value[searchTargetName.value] = item.name;
  2861. } else {
  2862. patient.value[searchTargetCode.value] = item.code;
  2863. patient.value[searchTargetName.value] = item.name;
  2864. }
  2865. if (searchTargetCode.value === "birthPlace") {
  2866. patient.value.nativePlace = item.code;
  2867. patient.value.nativePlaceName = item.name;
  2868. }
  2869. }
  2870. searchContent.value = "";
  2871. showSearch.value = false;
  2872. };
  2873. const needDorSiCode = [
  2874. "deptLeader",
  2875. "leaderDoctor",
  2876. "mainDoctor",
  2877. "admissDoctor",
  2878. ];
  2879. const syncronizeWithSiDiagnose = code => {
  2880. selectSiDiagByBaDiag(code).then(res => {
  2881. ybDiag.code = res.code;
  2882. ybDiag.name = res.name;
  2883. ybDiag.cyzg = 0;
  2884. ybDiag.siDiagType = 1;
  2885. if (!ybDiags.value || ybDiags.value.length === 0) {
  2886. fetchSsfz(res.code, patient.value.bah, patient.value.admissTimes).then(
  2887. res2 => {
  2888. diseFamilyGrade.value = res2;
  2889. }
  2890. );
  2891. }
  2892. });
  2893. };
  2894. const clearLine = option => {
  2895. switch (option) {
  2896. case "hurtReason":
  2897. patient.value.hurtReasonName = null;
  2898. patient.value.hurtReasonCode = null;
  2899. patientTransformData.value.hurtReasonName = null;
  2900. patientTransformData.value.hurtReasonCode = null;
  2901. break;
  2902. case "pathologicDiag":
  2903. patient.value.pathologicDiagStr = null;
  2904. patient.value.pathologicDiagCode = null;
  2905. patient.value.blh = null;
  2906. patientTransformData.value.pathologicDiagStr = null;
  2907. patientTransformData.value.pathologicDiagCode = null;
  2908. patientTransformData.value.blh = null;
  2909. break;
  2910. case "icuInfo":
  2911. patient.value.icuInfoList.forEach(item => {
  2912. item.icuName = null
  2913. item.startTime = null
  2914. item.endTime = null
  2915. });
  2916. break;
  2917. }
  2918. };
  2919. const ybDiags = ref([]);
  2920. const addToYbDiags = () => {
  2921. if (!ybDiag.siDiagType) {
  2922. ElMessage({
  2923. message: "请选择诊断类别!",
  2924. type: "warning",
  2925. duration: 2500,
  2926. showClose: true,
  2927. });
  2928. return;
  2929. }
  2930. if (!ybDiag.admissCond) {
  2931. ElMessage({
  2932. message: "请选择入院病情!",
  2933. type: "warning",
  2934. duration: 2500,
  2935. showClose: true,
  2936. });
  2937. return;
  2938. }
  2939. const temp = clone(ybDiag);
  2940. temp.diagType = 13;
  2941. temp.operId = userStore.userInfo.code;
  2942. temp.opDate = getDatetime();
  2943. temp.bzfx = "普通";
  2944. ybDiags.value.push(temp);
  2945. ybDiag.code = ybDiag.name = ybDiag.cyzg = "";
  2946. };
  2947. const deleteYbDiag = index => {
  2948. ybDiags.value.splice(index, 1);
  2949. };
  2950. const saveYbDiags = () => {
  2951. const param = {
  2952. bah: patient.value.bah,
  2953. times: patient.value.admissTimes,
  2954. ybDiags: ybDiags.value,
  2955. };
  2956. doSaveYbDiags(param).then(() => {
  2957. ElMessage({
  2958. message: "保存成功",
  2959. type: "success",
  2960. duration: 2500,
  2961. showClose: true,
  2962. });
  2963. });
  2964. };
  2965. const onSearchDiagFocus = n => {
  2966. mainSurgeryFocused.value = false;
  2967. showSurgeryRecommand.value = false;
  2968. if (n > 0 && !patient.value.disdiagList[n - 1].code) {
  2969. ElMessage({
  2970. message: "请按顺序填写",
  2971. type: "warning",
  2972. duration: 2500,
  2973. showClose: true,
  2974. });
  2975. return;
  2976. }
  2977. searchUrl.value = "normalDiag";
  2978. searchTargetCode.value = "disdiagsCode" + n;
  2979. searchTargetName.value = "disdiagsName" + n;
  2980. if (!patient.value.disdiagList[n].code) {
  2981. showSearch.value = true;
  2982. } else {
  2983. showDel.value[n] = true;
  2984. }
  2985. };
  2986. const showSurgeryRecommand = ref(false);
  2987. const mainSurgeryFocused = ref(false);
  2988. const onSearchSurgeryFocus = n => {
  2989. if (n > 0 && !patient.value.surgeryList[n - 1].code) {
  2990. ElMessage({
  2991. message: "请按顺序填写",
  2992. type: "warning",
  2993. duration: 2500,
  2994. showClose: true,
  2995. });
  2996. return;
  2997. }
  2998. mainSurgeryFocused.value = false;
  2999. showSurgeryRecommand.value = false;
  3000. searchUrl.value = "surgery";
  3001. searchTargetCode.value = "surgeryCode" + n;
  3002. searchTargetName.value = "surgeryName" + n;
  3003. if (!patient.value.surgeryList[n].code) {
  3004. if (n === 0 && patient.value.disdiagList[0].code) {
  3005. mainSurgeryFocused.value = true;
  3006. getSsfzSurgeriesByIcd(
  3007. patient.value.bah,
  3008. patient.value.admissTimes,
  3009. patient.value.disdiagList[0].code
  3010. ).then(res => {
  3011. searchResults.value = res;
  3012. showSurgeryRecommand.value = true;
  3013. });
  3014. }
  3015. showSearch.value = true;
  3016. } else {
  3017. showDel.value[n] = true;
  3018. }
  3019. };
  3020. const onEditSurgeryClick = n => {
  3021. showSearch.value = true;
  3022. if (n === 0 && patient.value.disdiagList[0].code) {
  3023. mainSurgeryFocused.value = true;
  3024. getSsfzSurgeriesByIcd(
  3025. patient.value.bah,
  3026. patient.value.admissTimes,
  3027. patient.value.disdiagList[0].code
  3028. ).then(res => {
  3029. searchResults.value = res;
  3030. showSurgeryRecommand.value = true;
  3031. });
  3032. } else {
  3033. mainSurgeryFocused.value = false;
  3034. showSurgeryRecommand.value = false;
  3035. }
  3036. };
  3037. const hasSurgeryChanged = val => {
  3038. if (val === "0") {
  3039. patient.value.diagConform3 = 0;
  3040. }
  3041. };
  3042. const deleteDisdiag = index => {
  3043. showDel.value[index] = false;
  3044. while (index < 26) {
  3045. patient.value.disdiagList[index] = patient.value.disdiagList[index + 1];
  3046. index++;
  3047. }
  3048. patient.value.disdiagList[26] = {};
  3049. patient.value.disdiagList.splice(27);
  3050. };
  3051. const insertDisdiag = index => {
  3052. mainSurgeryFocused.value = false;
  3053. showSurgeryRecommand.value = false;
  3054. insertDiag.value = true;
  3055. searchUrl.value = "normalDiag";
  3056. searchTargetCode.value = "disdiagsCode" + index;
  3057. searchTargetName.value = "disdiagsName" + index;
  3058. showSearch.value = true;
  3059. };
  3060. function changeSurgeryOrder(currentIndex, newIndex) {
  3061. let temp = patient.value.surgeryList[currentIndex];
  3062. patient.value.surgeryList[currentIndex] = patient.value.surgeryList[newIndex];
  3063. patient.value.surgeryList[newIndex] = temp;
  3064. }
  3065. const deleteSurgery = index => {
  3066. showDel.value[index] = false;
  3067. while (index < defaultSurgerySize.value - 1) {
  3068. patient.value.surgeryList[index] = patient.value.surgeryList[index + 1];
  3069. index++;
  3070. }
  3071. patient.value.surgeryList[defaultSurgerySize.value - 1] = {};
  3072. patient.value.surgeryList.splice(defaultSurgerySize.value);
  3073. if (defaultSurgerySize.value > 5) {
  3074. defaultSurgerySize.value -= 1;
  3075. }
  3076. };
  3077. const deleteAssistantOne = index => {
  3078. patient.value.surgeryList[index].assistantOne = "";
  3079. patient.value.surgeryList[index].assistantOneName = "";
  3080. };
  3081. const deleteAssistantTwo = index => {
  3082. patient.value.surgeryList[index].assistantTwo = "";
  3083. patient.value.surgeryList[index].assistantTwoName = "";
  3084. };
  3085. const deleteAnestor = index => {
  3086. patient.value.surgeryList[index].anaesthesiaor = "";
  3087. patient.value.surgeryList[index].anaesthesiaorName = "";
  3088. };
  3089. const nullPatient = () => {
  3090. if (!patient.value.bah) {
  3091. ElMessage({
  3092. message: "请先选择患者!",
  3093. type: "warning",
  3094. duration: 2500,
  3095. showClose: true,
  3096. });
  3097. return true;
  3098. }
  3099. return false;
  3100. };
  3101. const forceVerifies = ref([]);
  3102. const adviceVerifies = ref([]);
  3103. const currentMessageIndex = ref(null);
  3104. const messageColor = id => {
  3105. return currentMessageIndex.value === id
  3106. ? {
  3107. background: "#ff2b2b",
  3108. color: "white",
  3109. }
  3110. : {
  3111. background: "#eea7a752",
  3112. color: "#ff2b2b",
  3113. };
  3114. };
  3115. const scrollWrapper = ref(null);
  3116. const handleClickMessage = (id, index) => {
  3117. currentMessageIndex.value = index;
  3118. let ele = document.getElementById(id);
  3119. scrollWrapper.value.scrollTop = ele.offsetTop - 260;
  3120. let i = 0;
  3121. let timer = setInterval(() => {
  3122. ele.style.background = i % 2 === 0 ? "rgb(238, 98, 5)" : "transparent";
  3123. i++;
  3124. if (i > 7) {
  3125. clearInterval(timer);
  3126. }
  3127. }, 500);
  3128. };
  3129. const showMessageDrawer = ref(false);
  3130. const setlUplaodClick = () => {
  3131. if (nullPatient()) return;
  3132. isMedinsSetl(patient.value.bah, patient.value.admissTimes).then(() => {
  3133. router.push(
  3134. "/inpatient/casefrntsht/drgCoding/" +
  3135. patient.value.bah +
  3136. "/" +
  3137. patient.value.admissTimes
  3138. );
  3139. });
  3140. };
  3141. const saveVerifyFillBlank = (data) => {
  3142. patient.value.birthDate = patientTransformData.value.birthYear+'-'+patientTransformData.value.birthMonth+'-'+patientTransformData.value.birthDay
  3143. if(patientTransformData.value.age == null || patientTransformData.value.age == "-" || patientTransformData.value.age == ""){
  3144. // data.age = null
  3145. } else {
  3146. patientTransformData.value.infAge == null || patientTransformData.value.infAge == "-"?data.infAge = null:data.infAge = patientTransformData.value.infAge;
  3147. patientTransformData.value.ageDays == null || patientTransformData.value.ageDays == "-"?data.ageDays = null:data.ageDays = patientTransformData.value.ageDays;
  3148. patientTransformData.value.newBornWeight1 == null || patientTransformData.value.newBornWeight1 == "-"?data.newBornWeight1 = null:data.newBornWeight1 = patientTransformData.value.newBornWeight1;
  3149. patientTransformData.value.newBornWeight2 == null || patientTransformData.value.newBornWeight2 == "-"?data.newBornWeight2 = null:data.newBornWeight2 = patientTransformData.value.newBornWeight2;
  3150. patientTransformData.value.newBornAdmissWeight == null || patientTransformData.value.newBornAdmissWeight == "-"?data.newBornAdmissWeight = null:data.newBornAdmissWeight = patientTransformData.value.newBornAdmissWeight;
  3151. }
  3152. data.unitPlace == null && data.unitName == null?data.unitPlace = '-':false;
  3153. patientTransformData.value.transDept == null || patientTransformData.value.transDept == "-"?data.transDept = null:data.transDept = patientTransformData.value.transDept;
  3154. patientTransformData.value.hurtReasonName == null || patientTransformData.value.hurtReasonName == "-"?data.hurtReasonName = '-':data.hurtReasonName = patientTransformData.value.hurtReasonName;
  3155. patientTransformData.value.hurtReasonCode == null || patientTransformData.value.hurtReasonCode == "-"?data.hurtReasonCode = '-':data.hurtReasonCode = patientTransformData.value.hurtReasonCode;
  3156. patientTransformData.value.pathologicDiagStr == null || patientTransformData.value.pathologicDiagStr == "-"?data.pathologicDiagStr = '-':data.pathologicDiagStr = patientTransformData.value.pathologicDiagStr;
  3157. patientTransformData.value.pathologicDiagCode == null || patientTransformData.value.pathologicDiagCode == "-"?data.pathologicDiagCode = '-':data.pathologicDiagCode = patientTransformData.value.pathologicDiagCode;
  3158. patientTransformData.value.blh == null || patientTransformData.value.blh == "-"?data.blh = '-':data.blh = patientTransformData.value.blh;
  3159. data.surgeryList[0].name == '-'?data.surgeryList[0].name = null:false;
  3160. //去除初始化其他诊断横线
  3161. for (let index = 1; index < patient.value.disdiagList.length; index++) {
  3162. if(patient.value.disdiagList[index].name == '-'){
  3163. patient.value.disdiagList[index].name = null
  3164. break;
  3165. }
  3166. }
  3167. //去除初始化手术横线
  3168. for (let index = 0; index < patient.value.surgeryList.length; index++) {
  3169. if(patient.value.surgeryList[index].name == '-'){
  3170. patient.value.surgeryList[index].name = null
  3171. break;
  3172. }
  3173. }
  3174. //去除初始化重症监护室横线
  3175. for (let index = 0; index < patient.value.icuInfoList.length; index++) {
  3176. if(patient.value.icuInfoList[index].name == '-'){
  3177. patient.value.icuInfoList[index].name = null
  3178. break;
  3179. }
  3180. }
  3181. // console.log("patient.value",data.internshipDoctorName)
  3182. // data.internshipDoctorName == null?data.internshipDoctorName = '-':false;
  3183. if(data.internshipDoctor == null){
  3184. data.internshipDoctor = '-'
  3185. data.internshipDoctorName = '-'
  3186. }
  3187. if(data.studyDoctor == null){
  3188. data.studyDoctor = '-'
  3189. data.studyDoctorName = '-'
  3190. }
  3191. console.log("data.surgeryList0",patient.value.surgeryList[0].name)
  3192. patient.value.surgeryList[0].name == '-'?patient.value.surgeryList[0].name = null:false;
  3193. console.log("data.surgeryList1",patient.value.surgeryList[0].name)
  3194. data.noCertReasonInput == null?data.noCertReasonInput = '-':false;
  3195. data.dismissDestination == null?data.dismissDestination = '-':false;
  3196. data.admissAgainInOneMonth == null?data.admissAgainInOneMonth = '-':false;
  3197. data.admissAgainPurpose == null?data.admissAgainPurpose = '-':false;
  3198. data.comaDaysBeforeAdmiss == null?data.comaDaysBeforeAdmiss = '-':false;
  3199. data.comaHoursBeforeAdmiss == null?data.comaHoursBeforeAdmiss = '-':false;
  3200. data.comaMinutesBeforeAdmiss == null?data.comaMinutesBeforeAdmiss = '-':false;
  3201. data.comaDaysAfterAdmiss == null?data.comaDaysAfterAdmiss = '-':false;
  3202. data.comaHoursAfterAdmiss == null?data.comaHoursAfterAdmiss = '-':false;
  3203. data.comaMinutesAfterAdmiss == null?data.comaMinutesAfterAdmiss = '-':false;
  3204. }
  3205. const saveVerifyValidate = () => {
  3206. if (patient.value.livePlace) {
  3207. if(patient.value.livePlace.includes("省") && (patient.value.livePlace.includes("市") || patient.value.livePlace.includes("县"))
  3208. || patient.value.livePlace.includes("北京市")|| patient.value.livePlace.includes("上海市")|| patient.value.livePlace.includes("重庆市")|| patient.value.livePlace.includes("天津市")){
  3209. return true
  3210. } else {
  3211. xcMessage.error("患者现住址请完整填写行政地区!");
  3212. return false
  3213. }
  3214. } else {
  3215. xcMessage.error("患者现住址请完整填写行政地区!");
  3216. return false
  3217. }
  3218. }
  3219. const saveVerify = opType => {
  3220. if (!saveVerifyValidate(patient.value)) {
  3221. return
  3222. }
  3223. // saveVerifyFillFromTransformData(patientTransformData.value)
  3224. saveVerifyFillBlank(patient.value)
  3225. console.log("patient.value",patient.value)
  3226. if (nullPatient()) return;
  3227. fetchAuditCount({
  3228. patNo: patient.value.bah,
  3229. times: patient.value.admissTimes,
  3230. }).then(res => {
  3231. if (res.approved > 0) {
  3232. xcMessage.error("此患者病案首页质控审核已通过,无法保存。");
  3233. return;
  3234. }
  3235. executeSaveVerify({
  3236. opType,
  3237. sheet: patient.value,
  3238. })
  3239. .then(() => {
  3240. ElMessage({
  3241. message: "操作成功。",
  3242. type: "success",
  3243. duration: 2500,
  3244. showClose: true,
  3245. });
  3246. handleClickOverview(currentRow.value)
  3247. })
  3248. .catch(e => {
  3249. forceVerifies.value = e.data;
  3250. showMessageDrawer.value = true;
  3251. });
  3252. });
  3253. };
  3254. function sheetQualityVerification(command) {
  3255. if (command === "applyVerification") {
  3256. beforeSubmitAudit();
  3257. } else {
  3258. useDialog(AuditHistory, {
  3259. dialogProps: { title: "质控记录" },
  3260. showFooter: false,
  3261. params: {
  3262. patinfo: {
  3263. patNo: patient.value.bah,
  3264. times: patient.value.admissTimes,
  3265. },
  3266. },
  3267. });
  3268. }
  3269. }
  3270. function beforeSubmitAudit() {
  3271. if (nullPatient()) {
  3272. return;
  3273. }
  3274. fetchAuditCount({
  3275. patNo: patient.value.bah,
  3276. times: patient.value.admissTimes,
  3277. }).then(res => {
  3278. if (res.approved > 0) {
  3279. xcMessage.error("此患者的质控审核已通过,无需再次申请。");
  3280. return;
  3281. }
  3282. if (res.initial > 0) {
  3283. xcMessage.error("此患者有未被处理的质控审核,请勿重复提交。");
  3284. return;
  3285. }
  3286. executePrintVerify({
  3287. sheet: patient.value,
  3288. })
  3289. .then(() => {
  3290. submitAuditConfirm();
  3291. })
  3292. .catch(e => {
  3293. forceVerifies.value = e.data.force;
  3294. adviceVerifies.value = e.data.advice;
  3295. showMessageDrawer.value = true;
  3296. if (e.data.force.length === 0) {
  3297. submitAuditConfirm();
  3298. }
  3299. });
  3300. });
  3301. }
  3302. function submitAuditConfirm() {
  3303. CyMessageBox.confirm({
  3304. type: "warning",
  3305. title: "提示",
  3306. message: `质控审核通过后,病案将进入锁定状态,无法再次修改。确定要提交质控审核吗?`,
  3307. })
  3308. .then(() => {
  3309. executeSubmitAudit();
  3310. })
  3311. .catch(() => {});
  3312. }
  3313. function executeSubmitAudit() {
  3314. const params = {
  3315. patNo: patient.value.bah,
  3316. times: patient.value.admissTimes,
  3317. patName: patient.value.name,
  3318. patGender: filterPatGender(),
  3319. disDeptCode: patient.value.dismissDeptCode,
  3320. disDeptName: patient.value.dismissDept,
  3321. };
  3322. submitQualityVerification(params).then(() => {
  3323. xcMessage.success("提交成功");
  3324. if (inOutStatus === 2) {
  3325. CyMessageBox.confirm({
  3326. type: "warning",
  3327. title: "提示",
  3328. message: "是否申请医保结算清单质控?",
  3329. }).then(() => {
  3330. setlUplaodClick();
  3331. });
  3332. }
  3333. });
  3334. }
  3335. function filterPatGender() {
  3336. if (patient.value.sex === 1 || patient.value.sex === "1") {
  3337. return "MALE";
  3338. }
  3339. if (patient.value.sex === 2 || patient.value.sex === "2") {
  3340. return "FEMALE";
  3341. }
  3342. return "UNKNOWN";
  3343. }
  3344. const dismissShowSearch = flag => {
  3345. setTimeout(() => {
  3346. if (flag === 1) {
  3347. showGoSearchBtn1.value = false;
  3348. } else {
  3349. showGoSearchBtn2.value = false;
  3350. }
  3351. }, 100);
  3352. };
  3353. const mergePrintHeadpage = () => {
  3354. headPagePatient.value = {
  3355. disdiagList: [],
  3356. surgeryList: [{}, {}, {}, {}, {}],
  3357. icuInfoList: [{}, {}, {}],
  3358. supplement: {}
  3359. }
  3360. for (const key in patient.value) {
  3361. if (Object.prototype.hasOwnProperty.call(patient.value, key)) {
  3362. headPagePatient.value[key] = patient.value[key];
  3363. }
  3364. }
  3365. for (const key in patientTransformData.value) {
  3366. if (Object.prototype.hasOwnProperty.call(patientTransformData.value, key)) {
  3367. if (patientTransformData.value[key]) {
  3368. headPagePatient.value[key] = patientTransformData.value[key];
  3369. }
  3370. }
  3371. }
  3372. console.log("headPagePatient.value",headPagePatient.value)
  3373. };
  3374. const mergePrintTailpage = () => {
  3375. tailpagePatient.value = {
  3376. disdiagList: [],
  3377. surgeryList: [{}, {}, {}, {}, {}],
  3378. icuInfoList: [{}, {}, {}],
  3379. supplement: {}
  3380. }
  3381. for (const key in patient.value) {
  3382. if (Object.prototype.hasOwnProperty.call(patient.value, key)) {
  3383. tailpagePatient.value[key] = patient.value[key];
  3384. }
  3385. }
  3386. for (const key in patientTransformData.value) {
  3387. if (Object.prototype.hasOwnProperty.call(patientTransformData.value, key)) {
  3388. if (patientTransformData.value[key]) {
  3389. tailpagePatient.value[key] = patientTransformData.value[key];
  3390. }
  3391. }
  3392. }
  3393. };
  3394. const beforePrint = page => {
  3395. if (nullPatient()) return;
  3396. fetchAuditCount({
  3397. patNo: patient.value.bah,
  3398. times: patient.value.admissTimes,
  3399. }).then(res => {
  3400. execPrint(page)
  3401. // if (res.approved > 0) {
  3402. // execPrint(page);
  3403. // } else {
  3404. // ElMessageBox.confirm('病案首页质控审核未通过,是否继续打印?', '提示', {
  3405. // type: "warning",
  3406. // }).then(() => {
  3407. // execPrint(page)
  3408. // }).catch(() => {})
  3409. // }
  3410. });
  3411. };
  3412. const execPrint = page => {
  3413. const LODOP = getLodop();
  3414. const prntStyle = `<style>*{font-size:10pt} table,th,td {border: 1px solid black;border-collapse: collapse;} td,th {height: 24px;padding-left: 4px;}</style>`;
  3415. let prntContent;
  3416. if(page === 1){
  3417. mergePrintHeadpage()
  3418. prntContent = document.getElementById("headpage").innerHTML
  3419. } else {
  3420. mergePrintTailpage()
  3421. prntContent = document.getElementById("tailpage").innerHTML
  3422. }
  3423. // const prntContent =
  3424. // page === 1
  3425. // ? document.getElementById("headpage").innerHTML
  3426. // : document.getElementById("tailpage").innerHTML;
  3427. let pagePrint = prntStyle + "<body>" + prntContent + "</body>";
  3428. LODOP.PRINT_INIT("casefrontsheet");
  3429. LODOP.SET_PRINT_PAGESIZE(1, "210mm", "297mm", "");
  3430. LODOP.SET_PRINT_MODE("FULL_WIDTH_FOR_OVERFLOW", true); // 整宽不变形
  3431. LODOP.ADD_PRINT_HTM("2mm", "5mm", "100%", "100%", pagePrint);
  3432. LODOP.SET_PRINT_STYLE("ItemType", 3);
  3433. LODOP.PREVIEW();
  3434. };
  3435. onActivated(async () => {
  3436. const params = router.currentRoute.value.query;
  3437. if (params && params.patNo && params.deptCode) {
  3438. await Sleep(300);
  3439. if (params.times && params.disdate) {
  3440. dateRange.value[0] = params.disdate;
  3441. dateRange.value[1] = params.disdate;
  3442. inOutStatus.value = 2;
  3443. } else {
  3444. inOutStatus.value = 1;
  3445. }
  3446. inpatientNo.value = params.patNo;
  3447. currentWard.value = params.deptCode;
  3448. handleWardChange();
  3449. await Sleep(500);
  3450. searchPatient();
  3451. }
  3452. });
  3453. function showExportPanel() {
  3454. useDialog(HistorySheetExport, {
  3455. dialogProps: {
  3456. title: "历史病案导出",
  3457. width: "600px",
  3458. },
  3459. confirmText: "导出",
  3460. });
  3461. }
  3462. onMounted(() => {
  3463. scrollWrapper.value = document.getElementById("scrollWrapper");
  3464. initLodop();
  3465. getAllDictionary().then(res => {
  3466. res.getOperations = operations;
  3467. res.getYesOrNo = yesOrNo;
  3468. res.getHaveOrNot = haveOrNot;
  3469. res.getAutopsies = autopsies;
  3470. res.noCertReasons = noCertReasons;
  3471. dics.value = res;
  3472. });
  3473. getUserWards().then(res => {
  3474. userWards.value = res;
  3475. if (res.length > 0) {
  3476. currentWard.value = res[0].code;
  3477. fetchOverview();
  3478. }
  3479. });
  3480. });
  3481. function initInOutOptions() {
  3482. return [
  3483. { code: 1, name: "在院" },
  3484. { code: 2, name: "出院" },
  3485. ];
  3486. }
  3487. function initCyzgs() {
  3488. return [
  3489. { code: 0, name: "好转/治愈" },
  3490. { code: 1, name: "未愈" },
  3491. { code: 2, name: "转院(医院要求)" },
  3492. { code: 3, name: "转院(病人要求)" },
  3493. { code: 4, name: "转科" },
  3494. { code: 5, name: "无效" },
  3495. { code: 6, name: "死亡" },
  3496. { code: 7, name: "双向转诊" },
  3497. { code: 9, name: "其他" },
  3498. ];
  3499. }
  3500. function initAdmissConds() {
  3501. return [
  3502. { code: 1, name: "有" },
  3503. { code: 2, name: "临床未确定" },
  3504. { code: 3, name: "情况不明" },
  3505. { code: 4, name: "无" },
  3506. ];
  3507. }
  3508. function initDiagTypes() {
  3509. return [
  3510. { code: 1, name: "西医诊断" },
  3511. { code: 2, name: "中医主病诊断" },
  3512. { code: 3, name: "中医主症诊断" },
  3513. ];
  3514. }
  3515. </script>
  3516. <style scoped>
  3517. :deep(.el-dialog__body) {
  3518. padding-top: 8px;
  3519. }
  3520. :deep(.el-drawer) {
  3521. border: 1px solid orange;
  3522. }
  3523. :deep(.el-drawer .el-icon) {
  3524. font-size: 20px;
  3525. color: orangered;
  3526. }
  3527. :deep(.el-drawer__header) {
  3528. margin-bottom: 8px;
  3529. }
  3530. :deep(.el-dialog__header) {
  3531. padding-bottom: 4px;
  3532. }
  3533. :deep(.el-checkbox__label) {
  3534. padding-left: 2px;
  3535. }
  3536. :deep(.el-checkbox ) {
  3537. margin-right: 0;
  3538. }
  3539. select,
  3540. input {
  3541. outline: none;
  3542. border: none;
  3543. height: 20px;
  3544. line-height: 20px;
  3545. border-radius: 0;
  3546. background: transparent;
  3547. border-bottom: 1px solid #333333;
  3548. -webkit-appearance: none;
  3549. -moz-appearance: none;
  3550. appearance: none;
  3551. }
  3552. input[type="number"] {
  3553. -moz-appearance: textfield;
  3554. }
  3555. select ::-ms-expand {
  3556. display: none;
  3557. }
  3558. textarea {
  3559. outline: none;
  3560. border: none;
  3561. background-color: transparent;
  3562. }
  3563. table th {
  3564. border: 1px solid black;
  3565. text-align: center;
  3566. }
  3567. table td {
  3568. border: 1px solid black;
  3569. }
  3570. .page-inner {
  3571. padding: 0 20px 10px 26px;
  3572. border-radius: 12px;
  3573. text-align: justify;
  3574. }
  3575. .message-item {
  3576. padding: 6px;
  3577. margin-bottom: 6px;
  3578. border-radius: 4px;
  3579. }
  3580. .message-item:hover {
  3581. cursor: pointer;
  3582. }
  3583. .rightside-btn {
  3584. display: flex;
  3585. align-items: center;
  3586. text-align: center;
  3587. color: white;
  3588. border-radius: 4px;
  3589. width: 20px;
  3590. height: 185px;
  3591. position: fixed;
  3592. background: rgb(238, 98, 5);
  3593. top: 260px;
  3594. right: 10px;
  3595. cursor: pointer;
  3596. }
  3597. .no-verify-message {
  3598. width: 100%;
  3599. text-align: center;
  3600. margin-top: 50px;
  3601. font-size: 18px;
  3602. color: gray;
  3603. }
  3604. :deep(.m-drawer .el-overlay) {
  3605. right: 0;
  3606. left: calc(100vw - 260px);
  3607. background: transparent !important;
  3608. }
  3609. :deep(#livePlace .el-input__wrapper) {
  3610. background: transparent;
  3611. border: none;
  3612. box-shadow: none;
  3613. border-radius: 0;
  3614. border-bottom: 1px solid black;
  3615. color: black;
  3616. }
  3617. :deep(#livePlace .el-input__inner) {
  3618. color: black;
  3619. }
  3620. .audit-state {
  3621. font-weight: bold;
  3622. font-size: 16px;
  3623. }
  3624. .audit-state_approved {
  3625. color: green;
  3626. }
  3627. .audit-state_rejected {
  3628. color: red;
  3629. text-decoration: underline;
  3630. cursor: pointer;
  3631. }
  3632. .audit-state_initial {
  3633. color: #777777;
  3634. }
  3635. .audit-state_none {
  3636. color: #e8b600;
  3637. }
  3638. .order-arrow {
  3639. font-size: 16px;
  3640. cursor: pointer;
  3641. }
  3642. .order-arrow:hover {
  3643. color: #0a84fd;
  3644. }
  3645. .hidden-input {
  3646. position: absolute;
  3647. top: 0;
  3648. left: 0;
  3649. width: 100%;
  3650. height: 100%;
  3651. opacity: 0;
  3652. cursor: pointer;
  3653. z-index: 10; /* 确保在按钮上方 */
  3654. }
  3655. .datetime-container {
  3656. width: 100%;
  3657. height: 100%;
  3658. position: relative;
  3659. display: inline-block;
  3660. }
  3661. </style>