Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

DoctorAdviceDialog.vue 87KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705
  1. <template>
  2. <div class="doctor-advice-box">
  3. <el-dialog
  4. :title="add_title"
  5. :visible.sync="isLastOrNextVisible"
  6. width="1010px"
  7. @close="resetDialog"
  8. :modal-append-to-body="false"
  9. >
  10. <div class="txsj">
  11. <el-button
  12. round
  13. @click="openLast(3)"
  14. >上一方
  15. </el-button>
  16. <el-button
  17. round
  18. @click="openNext(4)"
  19. >下一方
  20. </el-button>
  21. </div>
  22. <el-form
  23. ref="adForm"
  24. :rules="adRules"
  25. :model="adForm"
  26. label-width="90px"
  27. >
  28. <el-row>
  29. <el-col :span="12">
  30. <el-form-item
  31. label="开始时间 :"
  32. required
  33. prop="other_start_time"
  34. style="width:100%;"
  35. >
  36. <el-date-picker
  37. type="datetime"
  38. format="yyyy-MM-dd HH:mm"
  39. value-format="yyyy-MM-dd HH:mm"
  40. placeholder="选择时间"
  41. v-model="adForm.other_start_time"
  42. style="width:100%;"
  43. ></el-date-picker>
  44. </el-form-item>
  45. </el-col>
  46. </el-row>
  47. </el-form>
  48. <div style='margin-bottom:20px;'>
  49. {{getContent()}}
  50. </div>
  51. <el-table
  52. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
  53. :data="other_doctor_advices"
  54. border
  55. style="width: 100%"
  56. ref="advices_list"
  57. >
  58. <el-table-column
  59. label="医嘱内容"
  60. property="advice_name"
  61. style="word-break: keep-all;white-space:nowrap;"
  62. align="center"
  63. ></el-table-column>
  64. <el-table-column label="药品规格" align="center">
  65. <template slot-scope="scope">
  66. <span v-if="scope.row.advice_desc">{{ scope.row.advice_desc}}{{ scope.row.drug_spec_unit }}</span>
  67. </template>
  68. </el-table-column>
  69. <el-table-column
  70. label="开药数量"
  71. min-width="80"
  72. property="prescribing_number"
  73. align="center"
  74. >
  75. <template slot-scope="scope">
  76. <span v-if="scope.row.prescribing_number != 0">{{ scope.row.prescribing_number}}{{ scope.row.prescribing_number_unit }}</span>
  77. </template>
  78. </el-table-column>
  79. <el-table-column
  80. label="单次用量"
  81. min-width="80"
  82. property="single_dose"
  83. align="center"
  84. >
  85. <template slot-scope="scope">
  86. <span v-if="scope.row.single_dose != 0">{{ scope.row.single_dose}}{{ scope.row.single_dose_unit }}</span>
  87. </template>
  88. </el-table-column>
  89. <el-table-column
  90. label="给药途径"
  91. min-width="80"
  92. property="delivery_way"
  93. align="center"
  94. >
  95. <template slot-scope="scope">
  96. <span v-if="scope.row.parent_row == 0">{{scope.row.delivery_way}}</span>
  97. </template>
  98. </el-table-column>
  99. <el-table-column
  100. label="执行频率"
  101. min-width="80"
  102. property="execution_frequency"
  103. align="center"
  104. >
  105. <template slot-scope="scope">
  106. <span v-if="scope.row.parent_row == 0">{{scope.row.execution_frequency}}</span>
  107. </template>
  108. </el-table-column>
  109. </el-table>
  110. <div slot="footer" class="dialog-footer">
  111. <el-button @click="isLastOrNextVisible = false">取 消</el-button>
  112. <el-button type="primary" @click="AddNewAdvice('adForm')">设为本次临嘱</el-button>
  113. </div>
  114. </el-dialog>
  115. <el-dialog
  116. :title="title"
  117. :visible.sync="isVisibility"
  118. width="1010px"
  119. @close="resetDialog"
  120. :modal-append-to-body="false"
  121. >
  122. <div class="txsj">
  123. <el-button
  124. round
  125. v-if="his_is_open != 1"
  126. @click="openLast(1)"
  127. >上一方
  128. </el-button>
  129. <el-button
  130. round
  131. v-if="his_is_open != 1"
  132. @click="openNext(2)"
  133. >下一方
  134. </el-button>
  135. </div>
  136. <div class="txsj" v-show="showAdvicePanel">
  137. <el-button
  138. round
  139. @click="openGroupFrom"
  140. :loading="deleLoading"
  141. v-if="his_is_open != 1"
  142. :disabled="!is_has_create"
  143. >新增医嘱
  144. </el-button>
  145. <el-button
  146. v-if="currentRow != null"
  147. round
  148. :disabled="!is_has_exce"
  149. @click="execAdvice"
  150. :loading="deleLoading"
  151. >执行医嘱
  152. </el-button>
  153. <el-button v-else disabled round @click="execAdvice" :loading="deleLoading">执行医嘱</el-button>
  154. <el-button
  155. v-if="currentRow != null"
  156. round
  157. :disabled="!is_has_check"
  158. @click="checkAdvice"
  159. :loading="deleLoading"
  160. >医嘱核对
  161. </el-button>
  162. <el-button v-else disabled round @click="checkAdvice" :loading="deleLoading">医嘱核对</el-button>
  163. <el-button
  164. v-if="groupSelectRow != null || his_is_open != 1"
  165. :disabled="!is_has_modify && !is_has_modify_other"
  166. round
  167. @click="openEditGroupAdvice"
  168. :loading="deleLoading"
  169. >修改医嘱
  170. </el-button>
  171. <el-button v-else disabled round @click="openEditGroupAdvice" :loading="deleLoading">修改医嘱</el-button>
  172. <el-button
  173. v-if="groupSelectRow != null || his_is_open != 1"
  174. :disabled="!is_has_del && !is_has_del_other"
  175. round
  176. @click="openDeleteGroupAdvice"
  177. :loading="deleLoading"
  178. >删除医嘱
  179. </el-button>
  180. <el-button v-else disabled round @click="openDeleteGroupAdvice" :loading="deleLoading">删除医嘱</el-button>
  181. <!--<el-button round @click="openNewChild" :loading="deleLoading">新增子药</el-button>-->
  182. </div>
  183. <!-- 医嘱列表 -->
  184. <!-- @row-click="cellMouseEnter" -->
  185. <!--&lt;!&ndash;:header-cell-style="{ backgroundColor: 'rgb(64, 158, 255)', color: 'white'}"&ndash;&gt;@current-change="selectRow"-->
  186. <el-table
  187. v-if="his_is_open == 0"
  188. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
  189. :data="doctor_advices"
  190. border
  191. style="width: 100%"
  192. v-show="showAdvicePanel"
  193. ref="advices_list"
  194. @row-click="cellMouseEnter"
  195. :row-class-name="tableRowClassName"
  196. :span-method="objectSpanMethod"
  197. :cell-class-name="adviceNameShow"
  198. :modal-append-to-body="false"
  199. highlight-current-row
  200. >
  201. <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
  202. <template slot-scope="scope">
  203. <span>{{ getXuserName(scope.row.advice_doctor) }}</span>
  204. </template>
  205. </el-table-column>
  206. <el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
  207. <template slot-scope="scope">
  208. <span>
  209. {{scope.row.start_time | parseTime('{y}-{m}-{d} {h}:{i}')}}
  210. </span>
  211. </template>
  212. </el-table-column>
  213. <el-table-column prop="advice_name" min-width="50px" label="医嘱内容" align="center">
  214. <template slot-scope="scope">
  215. <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
  216. <span class="el-dropdown-link">
  217. {{ getAdviceContent(scope.row, 1)}}
  218. <i class="el-icon-arrow-down el-icon--right"></i>
  219. </span>
  220. <el-dropdown-menu slot="dropdown">
  221. <el-dropdown-item v-if=" his_is_open != 1" @click.native="openEdit(scope.$index, scope.row)">修改医嘱</el-dropdown-item>
  222. <el-dropdown-item v-if=" his_is_open != 1" @click.native="openDelete(scope.$index, scope.row)">删除医嘱</el-dropdown-item>
  223. <el-dropdown-item v-if=" his_is_open != 1" @click.native="openNewChildTwo(scope.$index, scope.row)">新增子药</el-dropdown-item>
  224. </el-dropdown-menu>
  225. </el-dropdown>
  226. <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
  227. <span class="el-dropdown-link">
  228. &emsp;{{ getAdviceContent(scope.row, 2)}}
  229. <i class="el-icon-arrow-down el-icon--right"></i>
  230. </span>
  231. <el-dropdown-menu slot="dropdown">
  232. <el-dropdown-item v-if=" his_is_open != 1" @click.native="openEdit(scope.$index, scope.row)">修改子药</el-dropdown-item>
  233. <el-dropdown-item v-if=" his_is_open != 1" @click.native="openDelete(scope.$index, scope.row)">删除子药</el-dropdown-item>
  234. </el-dropdown-menu>
  235. </el-dropdown>
  236. </template>
  237. </el-table-column>
  238. <el-table-column
  239. prop="execution_time"
  240. align="center"
  241. min-width="30px"
  242. label="执行时间"
  243. sortable
  244. >
  245. <template slot-scope="scope">
  246. <span v-if="scope.row.execution_time != 0">
  247. {{scope.row.execution_time | parseTime('{m}-{d} {h}:{i}')}}
  248. </span>
  249. <span v-else></span>
  250. </template>
  251. </el-table-column>
  252. <el-table-column prop="execution_staff" align="center" min-width="30px" label="执行护士">
  253. <template slot-scope="scope">
  254. <span v-if="scope.row.parent_id == 0">
  255. {{getXuserName(scope.row.execution_staff)}}
  256. </span>
  257. <span v-else></span>
  258. </template>
  259. </el-table-column>
  260. <el-table-column
  261. v-if="template_id != 6"
  262. prop="checker"
  263. min-width="30px"
  264. align="center"
  265. label="核对人员"
  266. >
  267. <template slot-scope="scope">
  268. <span v-if="scope.row.parent_id == 0">
  269. {{getXuserName(scope.row.checker)}}
  270. </span>
  271. <span v-else></span>
  272. </template>
  273. </el-table-column>
  274. </el-table>
  275. <el-table
  276. v-else
  277. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
  278. :data="doctor_advices"
  279. border
  280. style="width: 100%"
  281. v-show="showAdvicePanel"
  282. ref="advices_list"
  283. @row-click="cellMouseEnter"
  284. :row-class-name="tableRowClassName"
  285. :cell-class-name="adviceNameShow"
  286. :modal-append-to-body="false"
  287. highlight-current-row
  288. >
  289. <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
  290. <template slot-scope="scope">
  291. <span>{{ getXuserName(scope.row.advice_doctor) }}</span>
  292. </template>
  293. </el-table-column>
  294. <el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
  295. <template slot-scope="scope">
  296. <span>
  297. {{scope.row.start_time | parseTime('{y}-{m}-{d} {h}:{i}')}}
  298. </span>
  299. </template>
  300. </el-table-column>
  301. <el-table-column prop="advice_name" min-width="50px" label="医嘱内容" align="center">
  302. <template slot-scope="scope">
  303. <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
  304. <span class="el-dropdown-link">
  305. {{ getAdviceContent(scope.row, 1)}}
  306. <i class="el-icon-arrow-down el-icon--right"></i>
  307. </span>
  308. <el-dropdown-menu slot="dropdown">
  309. <el-dropdown-item v-if=" his_is_open != 1" @click.native="openEdit(scope.$index, scope.row)">修改医嘱</el-dropdown-item>
  310. <el-dropdown-item v-if=" his_is_open != 1" @click.native="openDelete(scope.$index, scope.row)">删除医嘱</el-dropdown-item>
  311. <el-dropdown-item v-if=" his_is_open != 1" @click.native="openNewChildTwo(scope.$index, scope.row)">新增子药</el-dropdown-item>
  312. </el-dropdown-menu>
  313. </el-dropdown>
  314. <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
  315. <span class="el-dropdown-link">
  316. &emsp;{{ getAdviceContent(scope.row, 2)}}
  317. <i class="el-icon-arrow-down el-icon--right"></i>
  318. </span>
  319. <el-dropdown-menu slot="dropdown">
  320. <el-dropdown-item v-if=" his_is_open != 1" @click.native="openEdit(scope.$index, scope.row)">修改子药</el-dropdown-item>
  321. <el-dropdown-item v-if=" his_is_open != 1" @click.native="openDelete(scope.$index, scope.row)">删除子药</el-dropdown-item>
  322. </el-dropdown-menu>
  323. </el-dropdown>
  324. </template>
  325. </el-table-column>
  326. <el-table-column
  327. prop="execution_time"
  328. align="center"
  329. min-width="30px"
  330. label="执行时间"
  331. sortable
  332. >
  333. <template slot-scope="scope">
  334. <span v-if="scope.row.execution_time != 0">
  335. {{scope.row.execution_time | parseTime('{m}-{d} {h}:{i}')}}
  336. </span>
  337. <span v-else></span>
  338. </template>
  339. </el-table-column>
  340. <el-table-column prop="execution_staff" align="center" min-width="30px" label="执行护士">
  341. <template slot-scope="scope">
  342. <span v-if="scope.row.parent_id == 0">
  343. {{getXuserName(scope.row.execution_staff)}}
  344. </span>
  345. <span v-else></span>
  346. </template>
  347. </el-table-column>
  348. <el-table-column
  349. v-if="template_id != 6"
  350. prop="checker"
  351. min-width="30px"
  352. align="center"
  353. label="核对人员"
  354. >
  355. <template slot-scope="scope">
  356. <span v-if="scope.row.parent_id == 0">
  357. {{getXuserName(scope.row.checker)}}
  358. </span>
  359. <span v-else></span>
  360. </template>
  361. </el-table-column>
  362. </el-table>
  363. <!-- 医嘱列表 end -->
  364. <!-- 新医嘱列表 -->
  365. <!-- <div class="orderTable">
  366. <table class="table">
  367. <tr @click="cancelAdviceSelect" class="tableTh">
  368. <th width="8%">开嘱医生</th>
  369. <th width="12%">开始时间</th>
  370. <th width="52%">医嘱内容</th>
  371. <th width="12%">执行时间</th>
  372. <th width="8%">执行护士</th>
  373. <th v-if="template_id != 6" width="8%">核对人员</th>
  374. </tr>
  375. <template v-for="(group, group_index) in advice_groups">
  376. <tr
  377. v-for="(advice, advice_index) in group.advices"
  378. :key="advice.id"
  379. :class="{ 'row-class-active': current_group_index == group_index && current_advice_index < 0 }"
  380. >
  381. <td
  382. v-if="advice_index == 0"
  383. :rowspan="group.advices.length"
  384. @click="selectGroupAdviceAction(group_index, -1, null,group)"
  385. >
  386. <span v-if="advice.parent_id==0">{{getXuserName(advice.advice_doctor)}}</span>
  387. <span v-else></span>
  388. </td>
  389. <td
  390. v-if="advice_index == 0"
  391. :rowspan="group.advices.length"
  392. @click="selectGroupAdviceAction(group_index, -1, null,group)"
  393. >
  394. <span>{{uParseTime(advice.start_time, '{m}-{d} {h}:{i}')}}</span>
  395. </td>
  396. <td
  397. :class="{ 'advice_content': advice.parent_id == 0, 'subadvice_content': advice.parent_id > 0, 'td-active':current_group_index == group_index && advice.is_selected == 1 }"
  398. @click="selectAdviceAction(group_index, advice_index, advice)"
  399. >
  400. <div class="txt">
  401. <span>{{advice.advice_name }}</span>
  402. <span
  403. v-if="advice.advice_desc"
  404. >({{ advice.advice_desc }}{{advice.drug_spec_unit}})</span>
  405. <span
  406. v-if="advice.prescribing_number"
  407. >&nbsp;&nbsp;{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
  408. <span
  409. v-if="advice.single_dose && template_id == 6"
  410. >{{advice.single_dose}}{{advice.single_dose_unit}}</span>
  411. <span
  412. v-if="advice.single_dose && template_id != 6"
  413. >单次用量{{advice.single_dose}}{{advice.single_dose_unit}}</span>
  414. <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
  415. <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
  416. <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{advice.remark}})</span>
  417. </div>
  418. </td>
  419. <td
  420. :class="{'td-active':current_group_index == group_index && advice.is_selected == 1}"
  421. @click="selectAdviceAction(group_index,advice_index, advice)"
  422. >{{uParseTime(advice.execution_time, '{m}-{d} {h}:{i}')}}</td>
  423. <td
  424. :class="{'td-active':current_group_index == group_index && advice.is_selected == 1}"
  425. @click="selectAdviceAction(group_index,advice_index, advice)"
  426. >{{getXuserName(advice.execution_staff)}}</td>
  427. <td
  428. v-if="template_id != 6"
  429. :class="{'td-active':current_group_index == group_index && advice.is_selected == 1}"
  430. @click="selectAdviceAction(group_index,advice_index, advice)"
  431. >{{getXuserName(advice.checker)}}</td>
  432. </tr>
  433. </template>
  434. </table>
  435. </div>-->
  436. <!-- 新医嘱列表 -->
  437. <!-- 新增医嘱(子药)表单 -->
  438. <!-- 医嘱表单 -->
  439. <el-form ref="form" :model="form" label-width="100px" v-show="showAdviceForm">
  440. <el-row :gutter="20">
  441. <el-col :span="8">
  442. <el-form-item label="开始时间:">
  443. <el-date-picker
  444. format="yyyy-MM-dd HH:mm"
  445. value-format="yyyy-MM-dd HH:mm"
  446. type="datetime"
  447. :disabled="form.parent_id == 0 ? false : true"
  448. placeholder="选择日期"
  449. v-model="form.start_time"
  450. style="width: 100%;"
  451. ></el-date-picker>
  452. </el-form-item>
  453. </el-col>
  454. <el-col :span="8">
  455. <el-form-item label="医嘱名称:">
  456. <el-autocomplete
  457. style="width:100%;"
  458. class="inline-input"
  459. v-model="form.advice_name"
  460. :fetch-suggestions="querySearch"
  461. placeholder="请输入内容"
  462. @select="handleSelect"
  463. @input="changeDrugName"
  464. ></el-autocomplete>
  465. </el-form-item>
  466. </el-col>
  467. <el-col :span="8">
  468. <el-form-item label="药品规格:">
  469. <el-autocomplete
  470. style="width:100px;"
  471. class="inline-input"
  472. v-model="form.advice_desc"
  473. :fetch-suggestions="querySearch1"
  474. placeholder="请输入内容"
  475. @input="changeDrugDesc"
  476. ></el-autocomplete>
  477. <el-select
  478. v-model="form.drug_spec_unit"
  479. style="width: 100px;"
  480. filterable
  481. placeholder="选择"
  482. >
  483. <el-option
  484. v-for="item in unitsOption"
  485. :key="item.id"
  486. :label="item.name"
  487. :value="item.name"
  488. ></el-option>
  489. </el-select>
  490. </el-form-item>
  491. </el-col>
  492. </el-row>
  493. <el-row :gutter="20">
  494. <el-col :span="8">
  495. <el-form-item label="开药数量:">
  496. <el-input v-model="form.prescribing_number" style="width: 40%;"></el-input>
  497. <el-select
  498. v-model="form.prescribing_number_unit"
  499. style="width: 56%;"
  500. filterable
  501. placeholder="选择"
  502. >
  503. <el-option
  504. v-for="item in unitsOption"
  505. :key="item.id"
  506. :label="item.name"
  507. :value="item.name"
  508. ></el-option>
  509. </el-select>
  510. </el-form-item>
  511. </el-col>
  512. <el-col :span="8">
  513. <el-form-item label="单次用量:">
  514. <el-input v-model="form.single_dose" style="width: 40%;"></el-input>
  515. <el-select
  516. v-model="form.single_dose_unit"
  517. style="width: 56%;"
  518. filterable
  519. placeholder="选择"
  520. >
  521. <el-option
  522. v-for="item in unitsOption"
  523. :key="item.id"
  524. :label="item.name"
  525. :value="item.name"
  526. ></el-option>
  527. </el-select>
  528. </el-form-item>
  529. </el-col>
  530. <el-col :span="8">
  531. <el-form-item label="给药途径:">
  532. <el-select
  533. v-model="form.delivery_way"
  534. :disabled="form.parent_id == 0 ? false : true"
  535. filterable
  536. placeholder="请选择(输入可搜索)"
  537. >
  538. <el-option
  539. v-for="item in deliveryWayOptions"
  540. :key="item.id"
  541. :label="item.name"
  542. :value="item.name"
  543. ></el-option>
  544. </el-select>
  545. </el-form-item>
  546. </el-col>
  547. </el-row>
  548. <el-row :gutter="20">
  549. <el-col :span="8">
  550. <el-form-item label="执行频率:">
  551. <el-select
  552. v-model="form.execution_frequency"
  553. :disabled="form.parent_id == 0 ? false : true"
  554. filterable
  555. placeholder="请选择(输入可搜索)"
  556. >
  557. <el-option
  558. v-for="item in executionFrequencyOptions"
  559. :key="item.id"
  560. :label="item.name"
  561. :value="item.name"
  562. ></el-option>
  563. </el-select>
  564. </el-form-item>
  565. </el-col>
  566. </el-row>
  567. </el-form>
  568. <div slot="footer" class="dialog-footer" v-show="showAdviceForm">
  569. <el-button @click="hideForm">取 消</el-button>
  570. <el-button type="primary" v-if="form.id == 0" @click="submitAdvice" :loading="loading">保 存</el-button>
  571. <el-button type="primary" v-else @click="submitEditAdvice" :loading="loading">保 存</el-button>
  572. </div>
  573. <!-- 医嘱表单 end -->
  574. </el-dialog>
  575. <el-dialog
  576. title="选择执行时间"
  577. :visible.sync="execTimeDialogVisible"
  578. width="400px"
  579. @close="closeTimePanel"
  580. :show-close="isClose"
  581. :close-on-click-modal="isClose"
  582. :close-on-press-escape="isClose"
  583. :modal-append-to-body="false"
  584. >
  585. <el-date-picker
  586. v-model="execTime"
  587. format="yyyy-MM-dd HH:mm:00"
  588. value-format="yyyy-MM-dd HH:mm:00"
  589. type="datetime"
  590. placeholder="选择执行时间"
  591. style="width:100%"
  592. ></el-date-picker>
  593. <span slot="footer" class="dialog-footer">
  594. <el-button @click="closeTimePanel" :loading="exceLoading">取 消</el-button>
  595. <el-button type="primary" @click="submitExce" :loading="exceLoading">保 存</el-button>
  596. </span>
  597. </el-dialog>
  598. <add-group-advice
  599. :predialysis="predialysis"
  600. :adviceTemplates="adviceTemplates"
  601. :executionFrequencyOptions="executionFrequencyOptions"
  602. :unitsOption="unitsOption"
  603. :deliveryWayOptions="deliveryWayOptions"
  604. :adviceTemplateMaps="adviceTemplateMaps"
  605. :patientID="patient.id"
  606. :adviceTableData="doctor_advices"
  607. :recordDate="record_date"
  608. ref="addGroupForm"
  609. ></add-group-advice>
  610. <edit-group-advice
  611. :adviceTemplates="adviceTemplates"
  612. :executionFrequencyOptions="executionFrequencyOptions"
  613. :unitsOption="unitsOption"
  614. :deliveryWayOptions="deliveryWayOptions"
  615. :adviceTemplateMaps="adviceTemplateMaps"
  616. :patientID="patient.id"
  617. :adviceTableData="doctor_advices"
  618. :recordDate="record_date"
  619. ref="editGroupForm"
  620. v-on:add-new-order="addNewOrder"
  621. :admin_users="admin_users"
  622. ></edit-group-advice>
  623. </div>
  624. </template>
  625. <script>
  626. import AddGroupAdvice from './adviceDialog/AddGroupAdvice'
  627. import EditGroupAdvice from './adviceDialog/EditGroupAdvice'
  628. import { uParseTime } from '@/utils/tools'
  629. import {
  630. CheckDoctorAdvice,
  631. CreateDoctorAdvice,
  632. CreateGroupAdvice,
  633. DeleteDoctorAdvice,
  634. DeleteGroupAdvice,
  635. EditDoctorAdvice,
  636. ExecDoctorAdvice,
  637. getAdviceConfig,
  638. GetLastOrNextDoctorAdvice
  639. } from '@/api/advice'
  640. import { getDataConfig } from '@/utils/data'
  641. import request from '@/utils/request'
  642. import { getDialysisScheduleDetail } from '@/api/dialysis_record'
  643. import { getSelfMedicalList } from "@/api/drug/drug"
  644. export default {
  645. name: 'DoctorAdviceDialog',
  646. props: {
  647. dialysis_order: {
  648. // 透析记录
  649. type: Object,
  650. default: () => {
  651. return { id: 0 }
  652. }
  653. },
  654. patient: {
  655. // 患者信息
  656. type: Object,
  657. default: () => {
  658. return { id: 0 }
  659. }
  660. },
  661. doctor_advices: {
  662. type: Array
  663. },
  664. admin_users: {
  665. // 系统用户列表
  666. type: Array,
  667. default: () => {
  668. return []
  669. }
  670. },
  671. predialysis: {
  672. type: Object,
  673. default: () => {
  674. return { id: 0 }
  675. }
  676. },
  677. },
  678. data() {
  679. return {
  680. adRules: {
  681. start_time: [{ required: true, message: '请选择开始时间' }]
  682. },
  683. adForm: {
  684. other_start_time: ''
  685. },
  686. request_record_date: '',
  687. isLastOrNextVisible: false,
  688. other_doctor_advices: [],
  689. sch: null,
  690. is_has_create: true,
  691. is_has_exce: true,
  692. is_has_check: true,
  693. is_has_modify_exce: true,
  694. is_has_modify: true,
  695. is_has_modify_other: true,
  696. is_has_del: true,
  697. is_has_del_other: true,
  698. tempArr: [],
  699. execTimeDialogVisible: false,
  700. currentBoxClass: 'current-box-class',
  701. isClose: false,
  702. isShow: false,
  703. loading: false,
  704. sameRowArr: [],
  705. hoverOrderArr: [],
  706. isVisibility: false,
  707. record_date: '',
  708. template_id: 0,
  709. deleLoading: false,
  710. exceLoading: false,
  711. execTime: '',
  712. current_group_index: -1,
  713. title: '临时医嘱',
  714. add_title: '新增医嘱',
  715. his_is_open:0,
  716. showAdviceForm: false,
  717. showAdvicePanel: true,
  718. showNameForm: false,
  719. showGroupForm: false,
  720. showTemplateForm: false,
  721. current_template_id: -1,
  722. adviceTemplates: [],
  723. adviceTemplateMaps: {},
  724. deliveryWayOptions: [],
  725. executionFrequencyOptions: [],
  726. unitsOption: [],
  727. // admin_users: [],
  728. templateRules: {
  729. id: [{ required: true, message: '请选择医嘱模板' }]
  730. },
  731. nameRules: {
  732. advice_name: [{ required: true, message: '请填写医嘱内容' }]
  733. },
  734. form: {
  735. id: 0,
  736. advice_type: 2,
  737. advice_date: '',
  738. start_time: '',
  739. advice_name: '',
  740. advice_desc: '',
  741. single_dose: '',
  742. single_dose_unit: '',
  743. prescribing_number: '',
  744. prescribing_number_unit: '',
  745. delivery_way: '',
  746. execution_frequency: '',
  747. advice_doctor: '',
  748. remark: '',
  749. parent_id: 0,
  750. drug_id:0,
  751. drug_name_id:0,
  752. way:0,
  753. },
  754. nameForm: {
  755. advice_name: '',
  756. single_dose: '',
  757. single_dose_unit: '',
  758. drug_spec: '',
  759. drug_spec_unit: '',
  760. prescribing_number: '',
  761. prescribing_number_unit: '',
  762. delivery_way: '',
  763. execution_frequency: '',
  764. isEdit: 0,
  765. index: 0
  766. },
  767. groupForm: {
  768. advice_type: 2,
  769. advice_date: '',
  770. start_time: '',
  771. adviceNames: [],
  772. advice_doctor: '',
  773. remark: '',
  774. parent_id: 0
  775. },
  776. adviceList: [],
  777. currentIndex: -1,
  778. currentRow: null,
  779. groupSelectRow: null,
  780. templateForm: { id: '' },
  781. doctorAdvices: [],
  782. patientid: '',
  783. drugSpec:[],
  784. medicals:[],
  785. all_drug:[],
  786. current_drug_name:"",
  787. current_drug_spec: "",
  788. drug_id: 0,
  789. src_type:"",
  790. org_id:0,
  791. }
  792. },
  793. watch: {
  794. 'assessment_after_dislysis.id': function() {
  795. if (this.assessment_after_dislysis.id > 0) {
  796. for (var index in this.form) {
  797. this.form[index] = this.assessment_after_dislysis[index]
  798. }
  799. }
  800. },
  801. 'dialysis_order.id': function() {
  802. this.form['dialysis_order_id'] = this.dialysis_order.id
  803. },
  804. doctor_advices: function() {
  805. // this.handleSpanTempArr()
  806. // this.hoverOrderArr = []
  807. // this.handleStyle()
  808. }
  809. },
  810. methods: {
  811. getContent: function() {
  812. if (this.sch != null) {
  813. var date = uParseTime(this.sch.schedule_date, '{y}-{m}-{d}')
  814. var week = ''
  815. var sch_type = ''
  816. switch (this.sch.schedule_week) {
  817. case 1:
  818. week = '周一'
  819. break
  820. case 2:
  821. week = '周二'
  822. break
  823. case 3:
  824. week = '周三'
  825. break
  826. case 4:
  827. week = '周四'
  828. break
  829. case 5:
  830. week = '周五'
  831. break
  832. case 6:
  833. week = '周六'
  834. break
  835. case 7:
  836. week = '周日'
  837. break
  838. }
  839. switch (this.sch.schedule_type) {
  840. case 1:
  841. sch_type = '上午'
  842. break
  843. case 2:
  844. sch_type = '下午'
  845. break
  846. case 3:
  847. sch_type = '晚上'
  848. break
  849. }
  850. return date + '(' + week + '/' + sch_type + ')'
  851. } else {
  852. return ''
  853. }
  854. },
  855. // 上一方
  856. AddNewAdvice(name) {
  857. for(let i=0;i<this.other_doctor_advices.length;i++){
  858. this.other_doctor_advices[i].single_dose = this.other_doctor_advices[i].single_dose.toString()
  859. this.other_doctor_advices[i].prescribing_number = this.other_doctor_advices[i].prescribing_number.toString()
  860. }
  861. this.$refs[name].validate(valid => {
  862. if (valid) {
  863. var submitForm = {
  864. advice_type: 2,
  865. advice_date: this.record_date,
  866. start_time: this.adForm.other_start_time,
  867. adviceNames: this.other_doctor_advices,
  868. remark: ''
  869. }
  870. console.log("2223333",submitForm)
  871. let mode = '1'
  872. CreateGroupAdvice(this.patientid, 0, submitForm, mode).then(
  873. response => {
  874. if (response.data.state == 0) {
  875. this.$message.error(response.data.msg);
  876. return false;
  877. } else {
  878. this.$notify({
  879. title: "成功",
  880. message: "新增成功",
  881. type: "success",
  882. duration: 2000
  883. });
  884. this.$refs[name].resetFields();
  885. this.isLastOrNextVisible = false;
  886. this.$parent.$parent.getScheduleDetail()
  887. return false;
  888. }
  889. }
  890. );
  891. }
  892. });
  893. },
  894. // isPermission () {
  895. // if(this.$store.getters.xt_user.user.user_type == 3 ) {
  896. // return false
  897. // } else {
  898. // return true
  899. // }
  900. // },
  901. adviceNameShow({ row, column, rowIndex, columnIndex }) {
  902. if (columnIndex == 2) {
  903. return 'dialysisadvicenamedisplay'
  904. } else {
  905. return ''
  906. }
  907. },
  908. submitEditAdvice() {
  909. if (this.form.advice_name.length == 0) {
  910. this.$message.error('请填写医嘱名称')
  911. return
  912. }
  913. if (this.form.start_time.length == 0) {
  914. this.$message.error('请选择开始时间')
  915. return
  916. }
  917. if (!(this.patient.id > 0)) {
  918. this.$message.error('没有选择患者')
  919. return false
  920. }
  921. // console.log(this.form)
  922. let mode = '2'
  923. if (this.form.advice_doctor != this.$store.getters.xt_user.user.id) {
  924. mode = '3'
  925. }
  926. EditDoctorAdvice(this.patient.id, this.form.id, this.form, mode).then(
  927. response => {
  928. if (response.data.state == 0) {
  929. this.$message.error(response.data.msg)
  930. return false
  931. } else {
  932. this.$notify({
  933. title: '成功',
  934. message: '修改医嘱成功',
  935. type: 'success',
  936. duration: 2000
  937. })
  938. this.showAdviceForm = false
  939. this.showAdvicePanel = true
  940. var advice = response.data.data.advice
  941. this.doctor_advices[this.currentIndex].drug_spec = advice.drug_spec
  942. this.doctor_advices[this.currentIndex].drug_spec_unit =
  943. advice.drug_spec_unit
  944. this.doctor_advices[this.currentIndex].start_time =
  945. advice.start_time
  946. this.doctor_advices[this.currentIndex].advice_name =
  947. advice.advice_name
  948. this.doctor_advices[this.currentIndex].advice_desc =
  949. advice.advice_desc
  950. this.doctor_advices[this.currentIndex].single_dose =
  951. advice.single_dose
  952. this.doctor_advices[this.currentIndex].single_dose_unit =
  953. advice.single_dose_unit
  954. this.doctor_advices[this.currentIndex].delivery_way =
  955. advice.delivery_way
  956. this.doctor_advices[this.currentIndex].execution_frequency =
  957. advice.execution_frequency
  958. this.doctor_advices[this.currentIndex].prescribing_number =
  959. advice.prescribing_number
  960. this.doctor_advices[this.currentIndex].prescribing_number_unit =
  961. advice.prescribing_number_unit
  962. this.doctor_advices[this.currentIndex].advice_doctor =
  963. advice.advice_doctor
  964. this.doctor_advices[this.currentIndex].remark = advice.remark
  965. this.doctor_advice[this.currentIndex].drug_id = advice.drug_id
  966. this.doctor_advice[this.currentIndex].drug_name_id = advice.drug_name_id
  967. this.doctor.advice[this.currentIndex].way = advice.way
  968. this.currentIndex = -1
  969. return false
  970. }
  971. }
  972. )
  973. }
  974. ,
  975. // submitGroupAdvice() {
  976. // if (this.groupForm.start_time.length == 0) {
  977. // this.$message.error('请选择开始时间')
  978. // return
  979. // }
  980. // CreateGroupAdvice(this.patient.id, this.groupForm).then(response => {
  981. // if (response.data.state == 0) {
  982. // this.$message.error(response.data.msg)
  983. // return false
  984. // } else {
  985. // this.$notify({
  986. // title: '成功',
  987. // message: '新增成功',
  988. // type: 'success',
  989. // duration: 2000
  990. // })
  991. // this.currentIndex = -1
  992. // this.currentRow = null
  993. // this.setCurrent()
  994. // this.hideGroupForm()
  995. // for (const index in response.data.data.advices) {
  996. // this.doctor_advices.unshift(response.data.data.advices[index])
  997. // }
  998. // this.groupForm = {
  999. // advice_type: 2,
  1000. // advice_date: '',
  1001. // start_time: '',
  1002. // adviceNames: [],
  1003. // advice_doctor: '',
  1004. // remark: '',
  1005. // parent_id: 0
  1006. // }
  1007. // return false
  1008. // }
  1009. // })
  1010. // },
  1011. // submitTempForm() {
  1012. // var _this = this
  1013. // if (this.templateForm.id.length == 0) {
  1014. // this.$message.error('请选择医嘱模板')
  1015. // return
  1016. // }
  1017. // if (_this.templateForm.id in _this.adviceTemplateMaps) {
  1018. // var mapid = _this.templateForm.id
  1019. // for (const index in _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate) {
  1020. // var item = {
  1021. // advice_name: _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index].advice_name,
  1022. // single_dose: _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index].single_dose,
  1023. // single_dose_unit: _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index].single_dose_unit,
  1024. // drug_spec: _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index].drug_spec,
  1025. // drug_spec_unit: _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index].drug_spec_unit,
  1026. // prescribing_number: _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index].prescribing_number,
  1027. // prescribing_number_unit: _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index].prescribing_number_unit,
  1028. // delivery_way: _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index].delivery_way,
  1029. // execution_frequency: _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index].execution_frequency,
  1030. // isEdit: 0,
  1031. // index: 0
  1032. // }
  1033. // _this.groupForm.adviceNames.push(item)
  1034. // }
  1035. // }
  1036. // this.title = '新增医嘱'
  1037. // this.showTemplateForm = false
  1038. // this.showGroupForm = true
  1039. // },
  1040. openAdviceTemplate() {
  1041. this.templateForm = { id: '' }
  1042. this.title = '选择医嘱模板'
  1043. this.showTemplateForm = true
  1044. this.showGroupForm = false
  1045. }
  1046. ,
  1047. submitNameForm() {
  1048. if (this.nameForm.advice_name.length == 0) {
  1049. this.$message.error('请填写医嘱名称')
  1050. return
  1051. }
  1052. if (this.nameForm.isEdit) {
  1053. this.groupForm.adviceNames[
  1054. this.nameForm.index
  1055. ].advice_name = this.nameForm.advice_name
  1056. this.groupForm.adviceNames[
  1057. this.nameForm.index
  1058. ].single_dose = this.nameForm.single_dose
  1059. this.groupForm.adviceNames[
  1060. this.nameForm.index
  1061. ].single_dose_unit = this.nameForm.single_dose_unit
  1062. this.groupForm.adviceNames[
  1063. this.nameForm.index
  1064. ].drug_spec = this.nameForm.drug_spec
  1065. this.groupForm.adviceNames[
  1066. this.nameForm.index
  1067. ].drug_spec_unit = this.nameForm.drug_spec_unit
  1068. this.groupForm.adviceNames[
  1069. this.nameForm.index
  1070. ].prescribing_number = this.nameForm.prescribing_number
  1071. this.groupForm.adviceNames[
  1072. this.nameForm.index
  1073. ].prescribing_number_unit = this.nameForm.prescribing_number_unit
  1074. this.groupForm.adviceNames[
  1075. this.nameForm.index
  1076. ].delivery_way = this.nameForm.delivery_way
  1077. this.groupForm.adviceNames[this.nameForm.index].execution_frequency = this.nameForm.execution_frequency
  1078. this.groupForm.adviceNames[this.nameForm.index].drug_name_id = this.nameForm.drug_name_id
  1079. this.groupForm.adviceNames[this.nameForm.index].way = this.nameForm.way
  1080. this.groupForm.adviceNames[this.nameForm.index].drug_id = this.nameForm.drug_id
  1081. } else {
  1082. this.groupForm.adviceNames.push(this.nameForm)
  1083. }
  1084. this.title = '新增医嘱'
  1085. this.showNameForm = false
  1086. this.showGroupForm = true
  1087. }
  1088. ,
  1089. groupClassName({ row, rowIndex }) {
  1090. row.index = rowIndex
  1091. }
  1092. ,
  1093. selectGroupAdvice(row) {
  1094. this.groupSelectRow = row
  1095. }
  1096. ,
  1097. openDeleteGroupAdvice(val) {
  1098. console.log("val2323233232",this.groupSelectRow)
  1099. if (this.groupSelectRow === null) {
  1100. this.$message.error('未选择要删除的医嘱内容')
  1101. return
  1102. }
  1103. if(this.groupSelectRow.execution_state == 1){
  1104. this.$message.error("已执行的医嘱无法删除!")
  1105. return
  1106. }
  1107. this.DeleteGroupAdvice(this.groupSelectRow.groupno)
  1108. // this.$confirm('确认删除些条医嘱内容?', '删除医嘱内容', {
  1109. // confirmButtonText: '确定',
  1110. // cancelButtonText: '取消',
  1111. // type: 'warning'
  1112. // }).then(() => {
  1113. // this.groupForm.adviceNames.splice(this.groupSelectRow.index, 1);
  1114. // }).catch(() => {
  1115. // });
  1116. }
  1117. ,
  1118. openAdviceName(isEdit) {
  1119. if (isEdit) {
  1120. if (this.groupSelectRow === null) {
  1121. this.$message.error('未选择要修改的医嘱内容')
  1122. return
  1123. }
  1124. this.nameForm = {
  1125. advice_name: this.groupSelectRow.advice_name,
  1126. single_dose: this.groupSelectRow.single_dose,
  1127. single_dose_unit: this.groupSelectRow.single_dose_unit,
  1128. drug_spec: this.groupSelectRow.drug_spec,
  1129. drug_spec_unit: this.groupSelectRow.drug_spec_unit,
  1130. prescribing_number: this.groupSelectRow.prescribing_number,
  1131. prescribing_number_unit: this.groupSelectRow.prescribing_number_unit,
  1132. delivery_way: this.groupSelectRow.delivery_way,
  1133. execution_frequency: this.groupSelectRow.execution_frequency,
  1134. isEdit: 1,
  1135. index: this.groupSelectRow.index
  1136. }
  1137. console.log("88888888",this.nameForm)
  1138. } else {
  1139. this.nameForm = {
  1140. advice_name: '',
  1141. single_dose: '',
  1142. single_dose_unit: '',
  1143. drug_spec: '',
  1144. drug_spec_unit: '',
  1145. prescribing_number: '',
  1146. prescribing_number_unit: '',
  1147. delivery_way: '',
  1148. execution_frequency: '',
  1149. isEdit: 0,
  1150. index: 0
  1151. }
  1152. }
  1153. this.title = '新增医嘱内容'
  1154. this.showNameForm = true
  1155. this.showGroupForm = false
  1156. }
  1157. ,
  1158. tableRowClassName({ row, rowIndex }) {
  1159. // if (row.stop_state == 1 || row.execution_state == 1) {
  1160. // return 'stoped-row';
  1161. // }
  1162. // return 'success-rows'
  1163. row.index = rowIndex
  1164. const arr = this.hoverOrderArr
  1165. for (let i = 0; i < arr.length; i++) {
  1166. if (rowIndex == arr[i]) {
  1167. return 'success-row'
  1168. }
  1169. }
  1170. }
  1171. ,
  1172. changeAdviceName(key) {
  1173. if (key in this.adviceTemplateMaps) {
  1174. this.form.advice_name = this.adviceTemplateMaps[key].advice_name
  1175. this.form.advice_desc = this.adviceTemplateMaps[key].advice_desc
  1176. this.form.single_dose_unit = this.adviceTemplateMaps[
  1177. key
  1178. ].single_dose_unit
  1179. this.form.single_dose = this.adviceTemplateMaps[key].single_dose + ''
  1180. this.form.prescribing_number_unit = this.adviceTemplateMaps[
  1181. key
  1182. ].prescribing_number_unit
  1183. this.form.prescribing_number =
  1184. this.adviceTemplateMaps[key].prescribing_number + ''
  1185. this.form.delivery_way = this.adviceTemplateMaps[key].delivery_way
  1186. this.form.execution_frequency = this.adviceTemplateMaps[key].execution_frequency
  1187. this.form.drug_name_id = this.adviceTemplateMaps[key].drug_name_id
  1188. this.form.drug_id = this.adviceTemplateMaps[key].drug_id
  1189. this.form.way = this.adviceTemplateMaps[key].way
  1190. }
  1191. }
  1192. ,
  1193. submitExce() {
  1194. console.log(this.currentRow.origin)
  1195. if (this.currentRow == null) {
  1196. this.$message.error('请先选择要执行的医嘱!')
  1197. return false
  1198. }
  1199. if (this.execTime.length == 0) {
  1200. this.$message.error('请选择执行时间!')
  1201. return false
  1202. }
  1203. var execTime = Math.round(new Date(this.execTime).getTime() / 1000)
  1204. if (execTime < this.currentRow.start_time) {
  1205. this.$message.error('执行医嘱不能在开始之前!')
  1206. return false
  1207. }
  1208. this.exceLoading = true
  1209. let mode = '6'
  1210. ExecDoctorAdvice(this.patient.id, this.currentRow.id, this.execTime, mode,this.currentRow.origin).then(response => {
  1211. if (response.data.state == 0) {
  1212. this.$message.error(response.data.msg)
  1213. this.exceLoading = false
  1214. return false
  1215. } else {
  1216. this.$notify({
  1217. title: '成功',
  1218. message: '执行医嘱成功',
  1219. type: 'success',
  1220. duration: 2000
  1221. })
  1222. var msg = response.data.data.msg
  1223. if(msg == 1){
  1224. var exid = response.data.data.advice.id
  1225. if (response.data.data.advice.parent_id > 0) {
  1226. exid = response.data.data.advice.parent_id
  1227. }
  1228. this.currentRow.execution_state = 1
  1229. this.currentRow.execution_staff =
  1230. response.data.data.advice.execution_staff
  1231. this.currentRow.execution_time =
  1232. response.data.data.advice.execution_time
  1233. var alen = this.doctor_advices.length
  1234. for (var index in this.doctor_advices) {
  1235. if (
  1236. this.doctor_advices[index].id == exid ||
  1237. this.doctor_advices[index].parent_id == exid
  1238. ) {
  1239. this.doctor_advices[index].execution_state = 1
  1240. this.doctor_advices[index].execution_staff =
  1241. response.data.data.advice.execution_staff
  1242. this.doctor_advices[index].execution_time =
  1243. response.data.data.advice.execution_time
  1244. // this.doctor_advices[index].checker = response.data.data.advice.checker;
  1245. break
  1246. }
  1247. }
  1248. this.execTimeDialogVisible = false
  1249. return false
  1250. }
  1251. if(msg == 2){
  1252. this.$message.error("库存不足,请入库")
  1253. this.execTimeDialogVisible = false
  1254. return false
  1255. }
  1256. if(msg == 3){
  1257. this.$message.error("无库存,请入库")
  1258. this.execTimeDialogVisible = false
  1259. return false
  1260. }
  1261. }
  1262. })
  1263. .catch(() => {
  1264. this.exceLoading = false
  1265. })
  1266. }
  1267. ,
  1268. submitAdvice() {
  1269. if (this.form.advice_name.length == 0) {
  1270. this.$message.error('请填写医嘱名称')
  1271. return
  1272. }
  1273. if (this.form.start_time.length == 0) {
  1274. this.$message.error('请选择开始时间')
  1275. return
  1276. }
  1277. if (!(this.patient.id > 0)) {
  1278. this.$message.error('没有选择患者')
  1279. return false
  1280. }
  1281. let mode = '1'
  1282. if(this.src_type == ""){
  1283. this.form.way = 0
  1284. this.form.drug_id = 0
  1285. this.form.drug_name_id = 0
  1286. }
  1287. if(this.src_type == 2){ //自备药
  1288. var arr = this.form.advice_name.split("(自备药)")
  1289. this.form.advice_name = arr[0]
  1290. }
  1291. console.log("新增医嘱子药",this.form)
  1292. CreateDoctorAdvice(this.patient.id, this.form, mode)
  1293. .then(response => {
  1294. this.loading = false
  1295. if (response.data.state == 0) {
  1296. this.$message.error(response.data.msg)
  1297. return false
  1298. } else {
  1299. this.$notify({
  1300. title: '成功',
  1301. message: '新增医嘱成功',
  1302. type: 'success',
  1303. duration: 2000
  1304. })
  1305. this.currentIndex = -1
  1306. this.currentRow = null
  1307. this.setCurrent()
  1308. this.hideForm()
  1309. if (this.form.parent_id > 0) {
  1310. var spliceIndex = -1
  1311. for (let index = this.doctor_advices.length - 1; ; index--) {
  1312. if (
  1313. this.doctor_advices[index].parent_id === this.form.parent_id
  1314. ) {
  1315. spliceIndex = index
  1316. break
  1317. } else if (
  1318. this.doctor_advices[index].id === this.form.parent_id
  1319. ) {
  1320. spliceIndex = index
  1321. break
  1322. }
  1323. }
  1324. if (spliceIndex > -1) {
  1325. spliceIndex += 1
  1326. if (spliceIndex === this.doctor_advices.length) {
  1327. this.doctor_advices.push(response.data.data.advice)
  1328. } else {
  1329. var swapData = this.doctor_advices.splice(spliceIndex)
  1330. this.doctor_advices.push(response.data.data.advice)
  1331. for (var index in swapData) {
  1332. this.doctor_advices.push(swapData[index]) // = this.doctor_advices.concat(swapData);
  1333. }
  1334. }
  1335. }
  1336. } else {
  1337. this.doctor_advices.unshift(response.data.data.advice)
  1338. }
  1339. // this.$emit("new_create", response.data.data.advice);
  1340. return false
  1341. }
  1342. })
  1343. .catch(v => {
  1344. this.loading = false
  1345. })
  1346. }
  1347. ,
  1348. openNewChildTwo(index, row) {
  1349. this.currentRow = row
  1350. if (this.currentRow == null) {
  1351. this.$message.error('请先选择要新增子药的医嘱!')
  1352. return false
  1353. }
  1354. if (
  1355. this.currentRow.stop_state == 1 ||
  1356. this.currentRow.execution_state == 1
  1357. ) {
  1358. this.$message.error('所选医嘱已停止或执行')
  1359. return false
  1360. }
  1361. this.title = '新增子药'
  1362. this.showAdviceForm = true
  1363. this.showAdvicePanel = false
  1364. this.form = {
  1365. id: 0,
  1366. advice_type: 2,
  1367. advice_date: this.record_date,
  1368. start_time: uParseTime(
  1369. this.currentRow.start_time,
  1370. '{y}-{m}-{d} {h}:{i}'
  1371. ),
  1372. advice_name: '',
  1373. drug_spec: '',
  1374. drug_spec_unit: '',
  1375. single_dose: '',
  1376. single_dose_unit: '',
  1377. prescribing_number: '',
  1378. prescribing_number_unit: '',
  1379. delivery_way: this.currentRow.delivery_way,
  1380. execution_frequency: this.currentRow.execution_frequency,
  1381. advice_doctor: '',
  1382. remark: '',
  1383. parent_id: this.currentRow.id,
  1384. drug_id:0,
  1385. drug_name_id:0,
  1386. way:0,
  1387. }
  1388. }
  1389. ,
  1390. openNewChild() {
  1391. if (this.currentRow == null) {
  1392. this.$message.error('请先选择要新增子药的医嘱!')
  1393. return false
  1394. }
  1395. if (
  1396. this.currentRow.stop_state == 1 ||
  1397. this.currentRow.execution_state == 1
  1398. ) {
  1399. this.$message.error('所选医嘱已停止或执行')
  1400. return false
  1401. }
  1402. this.title = '新增子药'
  1403. this.showAdviceForm = true
  1404. this.showAdvicePanel = false
  1405. this.form = {
  1406. id: 0,
  1407. advice_type: 2,
  1408. advice_date: this.record_date,
  1409. start_time: uParseTime(
  1410. this.currentRow.start_time,
  1411. '{y}-{m}-{d} {h}:{i}'
  1412. ),
  1413. advice_name: '',
  1414. drug_spec: '',
  1415. drug_spec_unit: '',
  1416. single_dose: '',
  1417. single_dose_unit: '',
  1418. prescribing_number: '',
  1419. prescribing_number_unit: '',
  1420. delivery_way: this.currentRow.delivery_way,
  1421. execution_frequency: this.currentRow.execution_frequency,
  1422. advice_doctor: '',
  1423. remark: '',
  1424. parent_id: this.currentRow.id
  1425. }
  1426. }
  1427. ,
  1428. openEdit(index, row) {
  1429. if (row.stop_state == 1 || row.execution_state == 1) {
  1430. this.$message.error('所选医嘱已停止或执行')
  1431. return false
  1432. }
  1433. this.title = row.parent_id > 0 ? '编辑子药' : '编辑医嘱'
  1434. this.showAdviceForm = true
  1435. this.showAdvicePanel = false
  1436. this.currentIndex = index
  1437. this.form = {
  1438. id: row.id,
  1439. advice_type: 2,
  1440. advice_date: uParseTime(row.advice_date, '{y}-{m}-{d}'),
  1441. start_time: uParseTime(row.start_time, '{y}-{m}-{d} {h}:{i}'),
  1442. advice_desc: row.advice_desc,
  1443. advice_name: row.advice_name,
  1444. drug_spec: row.drug_spec != 0 ? '' + row.drug_spec : '',
  1445. drug_spec_unit: row.drug_spec_unit,
  1446. single_dose: row.single_dose != 0 ? '' + row.single_dose : '',
  1447. single_dose_unit: row.single_dose_unit,
  1448. prescribing_number:
  1449. row.prescribing_number != 0 ? '' + row.prescribing_number : '',
  1450. prescribing_number_unit: row.prescribing_number_unit,
  1451. delivery_way: row.delivery_way,
  1452. execution_frequency: row.execution_frequency,
  1453. advice_doctor: row.advice_doctor,
  1454. remark: row.remark,
  1455. parent_id: row.parent_id,
  1456. drug_id:0,
  1457. way:0,
  1458. drug_name_id:0,
  1459. }
  1460. }
  1461. ,
  1462. openEditGroupAdvice() {
  1463. console.log("医嘱泪奔23332233223",this.groupSelectRow)
  1464. if (this.groupSelectRow === null) {
  1465. this.$message.error('未选择要修改的医嘱内容')
  1466. return
  1467. }
  1468. console.log("22222",this.groupSelectRow.groupno)
  1469. this.$refs.editGroupForm.open(this.groupSelectRow.groupno)
  1470. }
  1471. ,
  1472. openGroupFrom() {
  1473. this.$refs.addGroupForm.open()
  1474. // this.title="新增医嘱";
  1475. // this.showGroupForm = true;
  1476. // this.showAdviceForm = false;
  1477. // this.showAdvicePanel = false;
  1478. // this.$refs.advices_list.setCurrentRow(null);
  1479. // this.currentIndex = -1;
  1480. // this.currentRow = null;
  1481. // this.groupForm.advice_date = this.record_date;
  1482. // this.form = {
  1483. // id: 0,
  1484. // advice_type: 2,
  1485. // advice_date: this.record_date,
  1486. // start_time: "",
  1487. // advice_name: "",
  1488. // advice_desc: "",
  1489. // single_dose: "",
  1490. // single_dose_unit: "",
  1491. // prescribing_number: "",
  1492. // prescribing_number_unit: "",
  1493. // delivery_way: "",
  1494. // execution_frequency: "",
  1495. // advice_doctor: "",
  1496. // remark: "",
  1497. // parent_id: 0
  1498. // };
  1499. }
  1500. ,
  1501. checkAdvice() {
  1502. console.log(this.currentRow)
  1503. // console.log(this.$store.getters.xt_user)
  1504. if (this.currentRow == null) {
  1505. this.$message.error('请先选择要核对的医嘱!')
  1506. return false
  1507. }
  1508. if (this.currentRow.check_state == 1) {
  1509. this.$message.error('所选医嘱已核对')
  1510. return false
  1511. }
  1512. if (
  1513. this.currentRow.execution_staff > 0 &&
  1514. this.currentRow.execution_staff == this.$store.getters.xt_user.user.id
  1515. ) {
  1516. this.$message.error('核对与执行不能是同一人')
  1517. return false
  1518. }
  1519. this.$confirm('确认提交核对?', '医嘱核对', {
  1520. confirmButtonText: '确定',
  1521. cancelButtonText: '取消',
  1522. closeOnClickModal: false,
  1523. type: 'warning'
  1524. })
  1525. .then(() => {
  1526. this.deleLoading = true
  1527. let mode = '7'
  1528. CheckDoctorAdvice(this.patient.id, this.currentRow.id, mode,this.currentRow.origin).then(
  1529. response => {
  1530. if (response.data.state == 0) {
  1531. this.$message.error(response.data.msg)
  1532. this.deleLoading = false
  1533. return false
  1534. } else {
  1535. this.$notify({
  1536. title: '成功',
  1537. message: '核对成功',
  1538. type: 'success',
  1539. duration: 2000
  1540. })
  1541. var exid = response.data.data.advice.id
  1542. if (response.data.data.advice.parent_id > 0) {
  1543. exid = response.data.data.advice.parent_id
  1544. }
  1545. // if (this.currentRow.parent_id > 0) {
  1546. // exid = this.currentRow.parent_id;
  1547. // }
  1548. this.currentRow.check_state = 1
  1549. this.currentRow.check_time =
  1550. response.data.data.advice.check_time
  1551. this.currentRow.checker = response.data.data.advice.checker
  1552. var alen = this.doctor_advices.length
  1553. for (var index in this.doctor_advices) {
  1554. if (
  1555. this.doctor_advices[index].id == exid ||
  1556. this.doctor_advices[index].parent_id == exid
  1557. ) {
  1558. this.doctor_advices[index].check_state = 1
  1559. this.doctor_advices[index].check_time =
  1560. response.data.data.advice.check_time
  1561. this.doctor_advices[index].checker =
  1562. response.data.data.advice.checker
  1563. // break;
  1564. }
  1565. }
  1566. this.deleLoading = false
  1567. }
  1568. }
  1569. )
  1570. })
  1571. .catch(() => {
  1572. this.deleLoading = false
  1573. })
  1574. }
  1575. ,
  1576. execAdvice() {
  1577. if (this.is_has_exce == false) {
  1578. this.$message.error('你没有执行医嘱的权限')
  1579. return false
  1580. }
  1581. this.execTimeDialogVisible = true
  1582. // if (this.currentAdvices.length <= 0) {
  1583. // return;
  1584. // }
  1585. if (this.current_select_object == 1) {
  1586. var isExecution = true
  1587. var adviceArr = this.advice_groups[this.current_group_index].advices
  1588. for (let i = 0; i < adviceArr.length; i++) {
  1589. if (
  1590. adviceArr[i].execution_state == 2 &&
  1591. adviceArr[i].is_selected == 1
  1592. ) {
  1593. isExecution = false
  1594. }
  1595. }
  1596. if (isExecution) {
  1597. this.$message.error('所选医嘱已停止或执行')
  1598. return false
  1599. }
  1600. for (let i = 0; i < adviceArr.length; i++) {
  1601. if (
  1602. adviceArr[i].is_selected == 1 &&
  1603. adviceArr[i].checker > 0 &&
  1604. adviceArr[i].checker == this.$store.getters.user.admin.id
  1605. ) {
  1606. this.$message.error('核对医嘱与执行不能是同一人')
  1607. return false
  1608. }
  1609. }
  1610. var currentAdviceIdArr = []
  1611. for (let i = 0; i < adviceArr.length; i++) {
  1612. if (adviceArr[i].is_selected == 1) {
  1613. currentAdviceIdArr.push(adviceArr[i].id)
  1614. }
  1615. }
  1616. this.currentAdviceIdsStr = currentAdviceIdArr.join(',')
  1617. this.nowExecTime = new Date(adviceArr[0].start_time * 1000)
  1618. } else {
  1619. if (!(this.current_group_index >= 0 && this.current_advice_index < 0)) {
  1620. return
  1621. }
  1622. var isExecution = true
  1623. var group_top_advice = this.advice_groups[this.current_group_index]
  1624. .advices[0]
  1625. var adviceArr = this.advice_groups[this.current_group_index].advices
  1626. for (let i = 0; i < adviceArr.length; i++) {
  1627. if (
  1628. adviceArr[i].is_selected == 1 &&
  1629. adviceArr[i].execution_state == 2
  1630. ) {
  1631. isExecution = false
  1632. }
  1633. }
  1634. if (isExecution) {
  1635. this.$message.error('所选医嘱已停止或执行')
  1636. return false
  1637. }
  1638. for (let i = 0; i < adviceArr.length; i++) {
  1639. if (
  1640. adviceArr[i].is_selected == 1 &&
  1641. adviceArr[i].checker > 0 &&
  1642. adviceArr[i].checker == this.$store.getters.user.admin.id
  1643. ) {
  1644. this.$message.error('核对与执行不能是同一人')
  1645. return false
  1646. }
  1647. }
  1648. this.nowExecTime = new Date(group_top_advice.start_time * 1000)
  1649. }
  1650. this.$refs.exec_time.open()
  1651. // if (this.currentRow == null) {
  1652. // this.$message.error("请先选择要执行的医嘱!");
  1653. // return false;
  1654. // }
  1655. //
  1656. // if (
  1657. // this.currentRow.stop_state == 1 ||
  1658. // this.currentRow.execution_state == 1
  1659. // ) {
  1660. // this.$message.error("所选医嘱已停止或执行");
  1661. // return false;
  1662. // }
  1663. //
  1664. // if (
  1665. // this.currentRow.checker > 0 &&
  1666. // this.currentRow.checker == this.$store.getters.xt_user.user.id
  1667. // ) {
  1668. // this.$message.error("核对与执行不能是同一人");
  1669. // return false;
  1670. // }
  1671. //
  1672. // this.execTimeDialogVisible = true;
  1673. // this.deleLoading = true;
  1674. }
  1675. ,
  1676. DeleteGroupAdvice(groupno) {
  1677. this.$confirm('确认删除这组医嘱?', '医嘱删除', {
  1678. confirmButtonText: '确定',
  1679. cancelButtonText: '取消',
  1680. type: 'warning'
  1681. })
  1682. .then(() => {
  1683. console.log(this.currentRow)
  1684. let mode = '4'
  1685. if (
  1686. this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id
  1687. ) {
  1688. mode = '5'
  1689. }
  1690. DeleteGroupAdvice(groupno, mode).then(response => {
  1691. if (response.data.state == 0) {
  1692. this.$message.error(response.data.msg)
  1693. return false
  1694. } else {
  1695. this.$notify({
  1696. title: '成功',
  1697. message: '医嘱已经删除',
  1698. type: 'success',
  1699. duration: 2000
  1700. })
  1701. var alen = this.doctor_advices.length
  1702. for (let index = alen - 1; index >= 0; index--) {
  1703. if (this.doctor_advices[index].groupno === groupno) {
  1704. this.doctor_advices.splice(index, 1)
  1705. }
  1706. }
  1707. }
  1708. })
  1709. })
  1710. .catch(() => {
  1711. })
  1712. // this.handleSpanTempArr()
  1713. }
  1714. ,
  1715. openDelete(index, row) {
  1716. this.currentRow = row
  1717. this.$confirm('确认删除此条医嘱?', '医嘱删除', {
  1718. confirmButtonText: '确定',
  1719. cancelButtonText: '取消',
  1720. closeOnClickModal: false,
  1721. type: 'warning'
  1722. })
  1723. .then(() => {
  1724. this.deleLoading = true
  1725. let mode = '4'
  1726. if (
  1727. this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id
  1728. ) {
  1729. mode = '5'
  1730. }
  1731. DeleteDoctorAdvice(this.currentRow.id, mode).then(response => {
  1732. this.deleLoading = false
  1733. if (response.data.state == 0) {
  1734. this.$message.error(response.data.msg)
  1735. return false
  1736. } else {
  1737. this.$notify({
  1738. title: '成功',
  1739. message: '医嘱已经删除',
  1740. type: 'success',
  1741. duration: 2000
  1742. })
  1743. this.deleteResetData(this.currentRow)
  1744. this.currentRow = null
  1745. this.setCurrent()
  1746. }
  1747. })
  1748. })
  1749. .catch(() => {
  1750. this.deleLoading = false
  1751. })
  1752. }
  1753. ,
  1754. deleteAdvice() {
  1755. if (this.currentRow == null) {
  1756. this.$message.error('请先选择要删除的医嘱!')
  1757. return false
  1758. }
  1759. this.$confirm('确认删除此条医嘱?', '医嘱删除', {
  1760. confirmButtonText: '确定',
  1761. cancelButtonText: '取消',
  1762. closeOnClickModal: false,
  1763. type: 'warning'
  1764. })
  1765. .then(() => {
  1766. this.deleLoading = true
  1767. let mode = '4'
  1768. if (
  1769. this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id
  1770. ) {
  1771. mode = '5'
  1772. }
  1773. DeleteDoctorAdvice(this.currentRow.id, mode).then(response => {
  1774. this.deleLoading = false
  1775. if (response.data.state == 0) {
  1776. this.$message.error(response.data.msg)
  1777. return false
  1778. } else {
  1779. this.$notify({
  1780. title: '成功',
  1781. message: '医嘱已经删除',
  1782. type: 'success',
  1783. duration: 2000
  1784. })
  1785. this.deleteResetData(this.currentRow)
  1786. this.currentRow = null
  1787. this.setCurrent()
  1788. }
  1789. })
  1790. })
  1791. .catch(() => {
  1792. this.deleLoading = false
  1793. })
  1794. }
  1795. ,
  1796. deleteResetData(row) {
  1797. if (row.parent_id > 0) {
  1798. for (var index in this.doctor_advices) {
  1799. if (this.doctor_advices[index].id == row.id) {
  1800. this.doctor_advices.splice(index, 1)
  1801. break
  1802. }
  1803. }
  1804. } else {
  1805. var spliceIndex = -1
  1806. var splitNums = 0
  1807. for (var index in this.doctor_advices) {
  1808. if (this.doctor_advices[index].id == row.id) {
  1809. spliceIndex = index
  1810. splitNums++
  1811. } else if (this.doctor_advices[index].parent_id == row.id) {
  1812. splitNums++
  1813. }
  1814. }
  1815. this.doctor_advices.splice(spliceIndex, splitNums)
  1816. }
  1817. }
  1818. ,
  1819. selectRow(row) {
  1820. this.currentRow = row
  1821. }
  1822. ,
  1823. getAdviceConfig() {
  1824. getAdviceConfig().then(response => {
  1825. if (response.data.state == 1) {
  1826. this.deliveryWayOptions =
  1827. response.data.data.drugways === null
  1828. ? []
  1829. : response.data.data.drugways
  1830. this.executionFrequencyOptions =
  1831. response.data.data.efs === null ? [] : response.data.data.efs
  1832. this.adviceTemplates =
  1833. response.data.data.advice_templates === null
  1834. ? []
  1835. : response.data.data.advice_templates
  1836. var templateLen = this.adviceTemplates.length
  1837. for (let index = 0; index < templateLen; index++) {
  1838. if (!this.adviceTemplates[index].DoctorAdviceTemplate) {
  1839. continue
  1840. }
  1841. var DoctorAdviceTemplate = this.adviceTemplates[index]
  1842. .DoctorAdviceTemplate
  1843. for (let i = 0; i < DoctorAdviceTemplate.length; i++) {
  1844. DoctorAdviceTemplate[i].selection = false
  1845. }
  1846. var item = this.adviceTemplates[index]
  1847. item.DoctorAdviceTemplate = []
  1848. var datMap = {}
  1849. for (const key in DoctorAdviceTemplate) {
  1850. if (DoctorAdviceTemplate[key].parent_id == 0) {
  1851. datMap[DoctorAdviceTemplate[key].id] =
  1852. DoctorAdviceTemplate[key]
  1853. }
  1854. }
  1855. for (const key in DoctorAdviceTemplate) {
  1856. if (DoctorAdviceTemplate[key].parent_id in datMap) {
  1857. if ('children' in datMap[DoctorAdviceTemplate[key].parent_id]) {
  1858. datMap[DoctorAdviceTemplate[key].parent_id].children.push(
  1859. DoctorAdviceTemplate[key]
  1860. )
  1861. } else {
  1862. datMap[DoctorAdviceTemplate[key].parent_id].children = []
  1863. datMap[DoctorAdviceTemplate[key].parent_id].children.push(
  1864. DoctorAdviceTemplate[key]
  1865. )
  1866. }
  1867. }
  1868. }
  1869. for (const key in datMap) {
  1870. item.DoctorAdviceTemplate.push(datMap[key])
  1871. }
  1872. this.$set(
  1873. this.adviceTemplateMaps,
  1874. this.adviceTemplates[index].id,
  1875. item
  1876. )
  1877. }
  1878. }
  1879. })
  1880. // this.handleSpanTempArr()
  1881. // this.handleStyle()
  1882. }
  1883. ,
  1884. getXuserName(id) {
  1885. if (id <= 0) {
  1886. return ''
  1887. }
  1888. var name = ''
  1889. if (
  1890. this.admin_users == null ||
  1891. typeof this.admin_users.length === 'undefined'
  1892. ) {
  1893. return name
  1894. }
  1895. var leng = this.admin_users.length
  1896. if (leng == 0) {
  1897. return name
  1898. }
  1899. for (let index = 0; index < leng; index++) {
  1900. if (this.admin_users[index].id == id) {
  1901. name = this.admin_users[index].name
  1902. break
  1903. }
  1904. }
  1905. return name
  1906. }
  1907. ,
  1908. addNewOrder() {
  1909. this.$refs.addGroupForm.open()
  1910. }
  1911. ,
  1912. show(his_is_open) {
  1913. this.his_is_open = his_is_open
  1914. console.log(this.his_is_open)
  1915. this.isVisibility = true
  1916. this.getPermission()
  1917. }
  1918. ,
  1919. hide() {
  1920. this.isVisibility = false
  1921. }
  1922. ,
  1923. hideForm() {
  1924. this.title = '临时医嘱'
  1925. this.showGroupForm = false
  1926. this.showAdviceForm = false
  1927. this.showAdvicePanel = true
  1928. }
  1929. ,
  1930. hideNameForm() {
  1931. this.title = '新增医嘱'
  1932. this.showGroupForm = true
  1933. this.showNameForm = false
  1934. }
  1935. ,
  1936. hideTemplateForm() {
  1937. this.title = '新增医嘱'
  1938. this.showGroupForm = true
  1939. this.showTemplateForm = false
  1940. }
  1941. ,
  1942. hideGroupForm() {
  1943. this.title = '临时医嘱'
  1944. this.showAdviceForm = false
  1945. this.showGroupForm = false
  1946. this.showAdvicePanel = true
  1947. }
  1948. ,
  1949. resetDialog() {
  1950. this.hoverOrderArr = []
  1951. this.title = '临时医嘱'
  1952. this.showAdviceForm = false
  1953. this.showGroupForm = false
  1954. this.showAdvicePanel = true
  1955. this.currentRow = null
  1956. this.groupSelectRow = null
  1957. this.setCurrent()
  1958. }
  1959. ,
  1960. closeTimePanel() {
  1961. this.execTimeDialogVisible = false
  1962. this.deleLoading = false
  1963. this.exceLoading = false
  1964. this.execTime = ''
  1965. }
  1966. ,
  1967. setCurrent(row) {
  1968. this.$refs.advices_list.setCurrentRow(row)
  1969. }
  1970. ,
  1971. isShowStartTime(index, row) {
  1972. if (row.parent_id > 0) {
  1973. return false
  1974. } else if (
  1975. index > 0 &&
  1976. row.groupno > 0 &&
  1977. row.groupno == this.doctor_advices[index - 1].groupno
  1978. ) {
  1979. return false
  1980. }
  1981. return true
  1982. }
  1983. ,
  1984. mergeSpan({ row, column, rowIndex, columnIndex }) {
  1985. if (columnIndex != 2) {
  1986. const _row = this.tempArr[rowIndex]
  1987. const _col = _row > 0 ? 1 : 0
  1988. return {
  1989. rowspan: _row,
  1990. colspan: _col
  1991. }
  1992. }
  1993. }
  1994. ,
  1995. handleSpanTempArr() {
  1996. this.tempArr = []
  1997. for (let i = 0; i < this.doctor_advices.length; i++) {
  1998. if (i === 0) {
  1999. this.tempArr.push(1)
  2000. this.pos = 0
  2001. } else {
  2002. // 判断当前元素与上一个元素是否相同
  2003. if (
  2004. this.doctor_advices[i].created_time ===
  2005. this.doctor_advices[i - 1].created_time
  2006. ) {
  2007. this.tempArr[this.pos] += 1
  2008. this.tempArr.push(0)
  2009. } else {
  2010. this.tempArr.push(1)
  2011. this.pos = i
  2012. }
  2013. }
  2014. }
  2015. },
  2016. cellMouseEnter: function(row, column, event) {
  2017. console.log("数据是",row)
  2018. this.currentRow = row
  2019. this.groupSelectRow = row
  2020. // this.sameRowArr.forEach((arr, i) => {
  2021. // if (arr.indexOf(row.index) != -1) {
  2022. // this.hoverOrderArr = arr
  2023. // }
  2024. // })
  2025. }
  2026. ,
  2027. cellMouseLeave: function(row, column, cell, event) {
  2028. this.hoverOrderArr = []
  2029. }
  2030. ,
  2031. handleStyle() {
  2032. let sameRowArr = [],
  2033. sIdx = 0
  2034. this.doctor_advices.forEach((item, index) => {
  2035. item.index = index
  2036. if (index === 0) {
  2037. sameRowArr.push([index])
  2038. } else {
  2039. if (item.created_time === this.doctor_advices[index - 1].created_time) {
  2040. sameRowArr[sIdx].push(index)
  2041. } else {
  2042. sIdx = sIdx + 1
  2043. sameRowArr.push([index])
  2044. }
  2045. }
  2046. })
  2047. this.sameRowArr = sameRowArr
  2048. }
  2049. ,
  2050. getAdviceContent(row, isChild) {
  2051. let tempSingleDoseDesc = ''
  2052. let tempDrugSpecDesc = ''
  2053. let tempPrescribingNumberDesc = ''
  2054. if (row.prescribing_number) {
  2055. tempPrescribingNumberDesc = row.prescribing_number + '' + row.prescribing_number_unit
  2056. }
  2057. if(this.org_id == 10188 ){
  2058. tempPrescribingNumberDesc = ""
  2059. }
  2060. if (row.single_dose) {
  2061. if (this.template_id != 6) {
  2062. tempSingleDoseDesc =
  2063. ' 单次用量 ' + ' ' + row.single_dose + '' + row.single_dose_unit
  2064. } else {
  2065. tempSingleDoseDesc = row.single_dose + '' + row.single_dose_unit
  2066. }
  2067. }
  2068. if (row.advice_desc) {
  2069. tempDrugSpecDesc = '(' + row.advice_desc + row.drug_spec_unit + ')' + " " + row.remark
  2070. }
  2071. if (isChild == 1) {
  2072. // 不是子药
  2073. return (
  2074. row.advice_name +
  2075. tempDrugSpecDesc +
  2076. ' ' +
  2077. tempPrescribingNumberDesc +
  2078. tempSingleDoseDesc +
  2079. ' ' +
  2080. row.delivery_way +
  2081. ' ' +
  2082. row.execution_frequency
  2083. )
  2084. } else {
  2085. // 是子药
  2086. return (
  2087. row.advice_name +
  2088. tempDrugSpecDesc +
  2089. ' ' +
  2090. tempPrescribingNumberDesc +
  2091. tempSingleDoseDesc
  2092. )
  2093. }
  2094. }
  2095. ,
  2096. getPermission() {
  2097. request
  2098. .get('/api/func_per/get', {
  2099. params: {
  2100. create_url: '/api/patients/advice/creategroup?mode=1',
  2101. modify_url: '/api/patients/advice/edit?mode=2',
  2102. modify_other_url: '/api/patients/advice/edit?mode=3',
  2103. del_url: '/api/patients/advice/delete?mode=4',
  2104. del_other_url: '/api/patients/advice/delete?mode=5',
  2105. exce_url: '/api/patients/advice/exec?mode=6',
  2106. check_url: '/api/patients/advice/check?mode=7',
  2107. module: 4
  2108. }
  2109. })
  2110. .then(res => {
  2111. console.log(res)
  2112. if (res.data.state == 0) {
  2113. this.hasPermission = false
  2114. } else if (res.data.state == 1) {
  2115. this.is_has_create = res.data.data.is_has_create
  2116. this.is_has_exce = res.data.data.is_has_exce
  2117. this.is_has_check = res.data.data.is_has_check
  2118. this.is_has_modify = res.data.data.is_has_modify
  2119. this.is_has_modify_other = res.data.data.is_has_modify_other
  2120. this.is_has_modify_exce = res.data.data.is_has_modify_exce
  2121. this.is_has_del = res.data.data.is_has_del
  2122. this.is_has_del_other = res.data.data.is_has_del_other
  2123. }
  2124. })
  2125. }
  2126. ,
  2127. arraySpanMethod({ row, column, rowIndex, columnIndex }) {
  2128. if (rowIndex % 2 === 0) {
  2129. if (columnIndex === 0) {
  2130. return [1, 2]
  2131. } else if (columnIndex === 1) {
  2132. return [0, 0]
  2133. }
  2134. }
  2135. }
  2136. ,
  2137. handleCurrentChange(row) {
  2138. this.currentRow = row;
  2139. // this.groupSelectRow = row;
  2140. // this.sameRowArr.forEach((arr, i) => {
  2141. // if (arr.indexOf(row.index) != -1) {
  2142. // this.hoverOrderArr = arr;
  2143. // }
  2144. // });
  2145. },
  2146. objectSpanMethod({ row, column, rowIndex, columnIndex }) {
  2147. if (columnIndex === 0) {
  2148. if (rowIndex % 2 === 0) {
  2149. return {
  2150. rowspan: 2,
  2151. colspan: 1
  2152. }
  2153. } else {
  2154. return {
  2155. rowspan: 0,
  2156. colspan: 0
  2157. }
  2158. }
  2159. }
  2160. if (columnIndex === 1) {
  2161. if (rowIndex % 2 === 0) {
  2162. return {
  2163. rowspan: 2,
  2164. colspan: 1
  2165. }
  2166. } else {
  2167. return {
  2168. rowspan: 0,
  2169. colspan: 0
  2170. }
  2171. }
  2172. }
  2173. }
  2174. ,
  2175. GetLastOrNextDoctorAdvice(params) {
  2176. GetLastOrNextDoctorAdvice(params).then(response => {
  2177. if (response.data.state == 1) {
  2178. var doctor_advices = response.data.data.advices
  2179. console.log("doctor_advices",doctor_advices)
  2180. this.other_doctor_advices = doctor_advices
  2181. this.request_record_date = uParseTime(this.other_doctor_advices[0].record_date, '{y}-{m}-{d}')
  2182. this.sch = response.data.data.schedule
  2183. } else {
  2184. this.$message.error(response.data.msg)
  2185. }
  2186. })
  2187. },
  2188. getDialysisScheduleDetail() {
  2189. if(this.$route.query.showView && this.$route.query.showView == true){
  2190. return
  2191. }
  2192. getDialysisScheduleDetail(this.patientid, this.record_date).then(response => {
  2193. if (response.data.state == 1) {
  2194. var doctor_advices = response.data.data.doctor_advices
  2195. this.doctorAdvices = doctor_advices
  2196. }
  2197. })
  2198. }
  2199. ,
  2200. openLast(val) {
  2201. if (val == 1) {
  2202. this.isLastOrNextVisible = true
  2203. this.isVisibility = false
  2204. this.request_record_date = this.record_date
  2205. let params = {
  2206. patient_id: this.patientid,
  2207. record_time: this.request_record_date,
  2208. type: 1
  2209. }
  2210. this.GetLastOrNextDoctorAdvice(params)
  2211. } else if (val == 3) {
  2212. let params = {
  2213. patient_id: this.patientid,
  2214. record_time: this.request_record_date,
  2215. type: 1
  2216. }
  2217. this.GetLastOrNextDoctorAdvice(params)
  2218. }
  2219. },
  2220. openNext(val) {
  2221. if (val == 2) {
  2222. this.isLastOrNextVisible = true
  2223. this.isVisibility = false
  2224. this.request_record_date = this.record_date
  2225. let params = {
  2226. patient_id: this.patientid,
  2227. record_time: this.request_record_date,
  2228. type: 2
  2229. }
  2230. this.GetLastOrNextDoctorAdvice(params)
  2231. } else if (val == 4) {
  2232. let params = {
  2233. patient_id: this.patientid,
  2234. record_time: this.request_record_date,
  2235. type: 2
  2236. }
  2237. this.GetLastOrNextDoctorAdvice(params)
  2238. }
  2239. },
  2240. getSelfMedicalList(){
  2241. const params = {
  2242. patient_id:this.$route.query.patient_id
  2243. }
  2244. getSelfMedicalList(params).then(response=>{
  2245. if (response.data.state == 1) {
  2246. this.arr_drug = []
  2247. var medicalList = response.data.data.private_drug_list
  2248. var base_drug_list = response.data.data.base_drug_list
  2249. var base_drug_cofig = response.data.data.base_drug_config
  2250. var private_drug_cofig = response.data.data.private_drug_config
  2251. if(private_drug_cofig != null&&private_drug_cofig.drug_start == 1) {
  2252. for (let i = 0; i < medicalList.length; i++) {
  2253. if(medicalList[i].drug_specs != null) {
  2254. for (let a = 0; a < medicalList[i].drug_specs.length; a++) {
  2255. medicalList[i].drug_specs[a]['type'] = 2
  2256. }
  2257. }
  2258. let obj = {
  2259. drug_name: "",
  2260. drug_desc: "",
  2261. delivery_way: "",
  2262. execution_frequency: "",
  2263. single_dose: "",
  2264. single_dose_unit: "",
  2265. prescribing_number: "",
  2266. prescribing_number_unit: "",
  2267. type_id: "",
  2268. type: "",
  2269. custom_id: "",
  2270. drug_specs: [],
  2271. }
  2272. medicalList[i].drug_name = medicalList[i].drug_name + "(自备药)"
  2273. obj.drug_name = medicalList[i].drug_name
  2274. obj.delivery_way = medicalList[i].delivery_way
  2275. obj.execution_frequency = medicalList[i].execution_frequency
  2276. obj.single_dose = medicalList[i].single_dose
  2277. obj.prescribing_number = medicalList[i].prescribing_number
  2278. obj.type_id = medicalList[i].id
  2279. obj.type = 2
  2280. obj.custom_id = this.rand(10000000, 99999999)
  2281. obj.drug_specs = medicalList[i].drug_specs
  2282. // console.log("222",this.all_drug)
  2283. this.all_drug.push(obj)
  2284. }
  2285. }
  2286. for (let i = 0; i < base_drug_list.length; i++) {
  2287. if(base_drug_list[i].drug_specs != null) {
  2288. for (let a = 0; a < base_drug_list[i].drug_specs.length; a++) {
  2289. base_drug_list[i].drug_specs[a]['type'] = 1
  2290. }
  2291. }
  2292. let obj = {
  2293. drug_name: "",
  2294. drug_desc: "",
  2295. delivery_way: "",
  2296. execution_frequency: "",
  2297. single_dose: "",
  2298. single_dose_unit: "",
  2299. prescribing_number: "",
  2300. prescribing_number_unit: "",
  2301. type_id: "",
  2302. type: "",
  2303. custom_id: "",
  2304. drug_specs: [],
  2305. }
  2306. obj.drug_name = base_drug_list[i].drug_name
  2307. obj.delivery_way = base_drug_list[i].delivery_way
  2308. obj.execution_frequency = base_drug_list[i].execution_frequency
  2309. obj.single_dose = base_drug_list[i].single_dose
  2310. obj.prescribing_number = base_drug_list[i].prescribing_number
  2311. obj.type_id = base_drug_list[i].id
  2312. obj.type = 1
  2313. obj.custom_id = this.rand(10000000, 99999999)
  2314. obj.drug_specs = base_drug_list[i].drug_specs
  2315. this.all_drug.push(obj)
  2316. // console.log("2222",this.all_drug)
  2317. }
  2318. }
  2319. })
  2320. },
  2321. changeDrugName(name){
  2322. this.current_drug_name = name
  2323. this.form.advice_desc = ""
  2324. this.$forceUpdate()
  2325. this.drugSpec = []
  2326. for (let i = 0; i < this.all_drug.length; i++) {
  2327. if (this.all_drug[i].drug_name == name) {
  2328. this.drugSpec = this.all_drug[i].drug_specs
  2329. }
  2330. }
  2331. },
  2332. changeDrugDesc(name) {
  2333. this.$forceUpdate()
  2334. this.current_drug_spec = name
  2335. for (let i = 0; i < this.drugSpec.length; i++) {
  2336. if (this.drugSpec[i].drug_spec == name) {
  2337. this.form.advice_desc = this.drugSpec[i].drug_spec
  2338. this.form.prescribing_number = this.drugSpec[i].prescribing_number.toString()
  2339. this.form.single_dose = this.drugSpec[i].single_dose.toString()
  2340. this.form.delivery_way = this.drugSpec[i].delivery_way.toString()
  2341. this.form.execution_frequency = this.drugSpec[i].execution_frequency.toString()
  2342. this.form.drug_id = this.drugSpec[i].id
  2343. this.src_type = this.drugSpec[i].type
  2344. this.form.drug_id = this.drugSpec[i].id
  2345. this.form.way = this.drugSpec[i].type
  2346. this.form.drug_spec_unit = this.drugSpec[i].min_unit
  2347. this.form.prescribing_number_unit = this.drugSpec[i].min_unit
  2348. this.form.single_dose_unit = this.drugSpec[i].min_unit
  2349. if(this.drugSpec[i].drug_name_id){
  2350. this.form.drug_name_id = this.drugSpec[i].drug_name_id
  2351. }else{
  2352. this.form.drug_name_id = 0
  2353. }
  2354. }
  2355. }
  2356. },
  2357. rand(min, max) {
  2358. return Math.floor(Math.random() * (max - min)) + min;
  2359. },
  2360. querySearch(queryString, cb) {
  2361. console.log('queryString',queryString)
  2362. var restaurants = this.all_drug;
  2363. restaurants.map(item => {
  2364. item.value = item.drug_name
  2365. })
  2366. var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
  2367. // 调用 callback 返回建议列表的数据
  2368. console.log('results',results)
  2369. cb(results);
  2370. },
  2371. createFilter(queryString) {
  2372. return (restaurant) => {
  2373. return (restaurant.drug_name.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
  2374. };
  2375. },
  2376. querySearch1(queryString, cb) {
  2377. console.log('queryString',queryString)
  2378. var restaurants = this.drugSpec;
  2379. console.log(restaurants)
  2380. restaurants.map(item => {
  2381. item.value = item.drug_spec
  2382. })
  2383. var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
  2384. // 调用 callback 返回建议列表的数据
  2385. console.log('results',results)
  2386. cb(results);
  2387. },
  2388. handleSelect(){
  2389. }
  2390. },
  2391. created() {
  2392. var date = this.$route.query && this.$route.query.date
  2393. this.record_date = uParseTime(date, '{y}-{m}-{d}')
  2394. this.form.advice_date = this.record_date
  2395. this.getAdviceConfig()
  2396. this.unitsOption = getDataConfig('hemodialysis', 'units')
  2397. this.template_id = this.$store.getters.xt_user.template_info.template_id
  2398. this.org_id = this.$store.getters.xt_user.org.id
  2399. this.patientid = this.$route.query.patient_id
  2400. this.request_record_date = this.record_date
  2401. this.getDialysisScheduleDetail()
  2402. //获取自备药
  2403. this.getSelfMedicalList()
  2404. },mounted(){
  2405. console.log("~~~~~")
  2406. console.log(this.his_is_open)
  2407. console.log("~~~~~")
  2408. },
  2409. components: {
  2410. AddGroupAdvice,
  2411. EditGroupAdvice
  2412. }
  2413. }
  2414. </script>
  2415. <style>
  2416. @import "../../../../../static/css/table_row.css";
  2417. .txsj {
  2418. text-align: center;
  2419. margin-bottom: 20px;
  2420. }
  2421. .dialysisadvicenamedisplay .cell {
  2422. float: left;
  2423. text-align: left;
  2424. }
  2425. </style>
  2426. <style lang="scss" scoped>
  2427. .table {
  2428. width: 100%;
  2429. .tableTh {
  2430. th {
  2431. padding: 10px 0px;
  2432. background-color: rgb(245, 247, 250);
  2433. color: #909399;
  2434. font-weight: bold;
  2435. text-align: center;
  2436. }
  2437. }
  2438. tr {
  2439. th {
  2440. /*/ / background: $ main-color;*/
  2441. /*/ / color: #fff;*/
  2442. /*/ / height: 1.2 rem;*/
  2443. /*/ / line-height: 1.2 rem;*/
  2444. /*/ /*/
  2445. }
  2446. td {
  2447. line-height: 0.6rem;
  2448. .txt {
  2449. /*/ / float: left;*/
  2450. padding: 0 10px 0 10px;
  2451. /*/ / width: 75 %;*/
  2452. text-align: left;
  2453. }
  2454. .ico {
  2455. float: right;
  2456. width: 60px;
  2457. text-align: right;
  2458. padding-right: 3px;
  2459. }
  2460. .iconfont {
  2461. font-size: 20px;
  2462. padding: 0 2px;
  2463. color: #7b8a97;
  2464. }
  2465. .handle {
  2466. color: #409eff;
  2467. /*/ / padding: 0 7 px;*/
  2468. }
  2469. }
  2470. .advice_content {
  2471. /*/ / background: #eff6fc;*/
  2472. }
  2473. .subadvice_content {
  2474. /*/ / background: #fafcfe;*/
  2475. padding-left: 20px;
  2476. }
  2477. .td-active {
  2478. background: #badcff !important;
  2479. }
  2480. }
  2481. .row-class-active {
  2482. td {
  2483. background: #badcff;
  2484. }
  2485. }
  2486. }
  2487. </style>
  2488. <!--<style scoped>-->
  2489. <!--.txsj{-->
  2490. <!--text-align: center;-->
  2491. <!--margin-bottom: 20px;-->
  2492. <!--}-->
  2493. <!--</style>-->
  2494. <!--<style rel="stylesheet/scss" lang="scss" >-->
  2495. <!--.row-class-active {-->
  2496. <!--background: #badcff;-->
  2497. <!--}-->
  2498. <!--.doctor-advice-box .current-box-class .current-row>td{-->
  2499. <!--background: #6fb5fa;-->
  2500. <!--color:#fff;-->
  2501. <!--}-->
  2502. <!--.doctor-advice-box .current-box-class .current-row:hover>td{-->
  2503. <!--background: #6fb5fa;-->
  2504. <!--}-->
  2505. <!--// .doctor-advice-box .current-box-class .stoped-row>td{-->
  2506. <!--// background: #c9c9c9;-->
  2507. <!--// color:#000;-->
  2508. <!--// }-->
  2509. <!--// .doctor-advice-box .current-box-class .stoped-row:hover>td{-->
  2510. <!--// background: #c9c9c9;-->
  2511. <!--// }-->
  2512. <!--</style>-->