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

DoctorAdviceDialog.vue 86KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676
  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. :adviceTemplates="adviceTemplates"
  600. :executionFrequencyOptions="executionFrequencyOptions"
  601. :unitsOption="unitsOption"
  602. :deliveryWayOptions="deliveryWayOptions"
  603. :adviceTemplateMaps="adviceTemplateMaps"
  604. :patientID="patient.id"
  605. :adviceTableData="doctor_advices"
  606. :recordDate="record_date"
  607. ref="addGroupForm"
  608. ></add-group-advice>
  609. <edit-group-advice
  610. :adviceTemplates="adviceTemplates"
  611. :executionFrequencyOptions="executionFrequencyOptions"
  612. :unitsOption="unitsOption"
  613. :deliveryWayOptions="deliveryWayOptions"
  614. :adviceTemplateMaps="adviceTemplateMaps"
  615. :patientID="patient.id"
  616. :adviceTableData="doctor_advices"
  617. :recordDate="record_date"
  618. ref="editGroupForm"
  619. v-on:add-new-order="addNewOrder"
  620. :admin_users="admin_users"
  621. ></edit-group-advice>
  622. </div>
  623. </template>
  624. <script>
  625. import AddGroupAdvice from './adviceDialog/AddGroupAdvice'
  626. import EditGroupAdvice from './adviceDialog/EditGroupAdvice'
  627. import { uParseTime } from '@/utils/tools'
  628. import {
  629. CheckDoctorAdvice,
  630. CreateDoctorAdvice,
  631. CreateGroupAdvice,
  632. DeleteDoctorAdvice,
  633. DeleteGroupAdvice,
  634. EditDoctorAdvice,
  635. ExecDoctorAdvice,
  636. getAdviceConfig,
  637. GetLastOrNextDoctorAdvice
  638. } from '@/api/advice'
  639. import { getDataConfig } from '@/utils/data'
  640. import request from '@/utils/request'
  641. import { getDialysisScheduleDetail } from '@/api/dialysis_record'
  642. import { getSelfMedicalList } from "@/api/drug/drug"
  643. export default {
  644. name: 'DoctorAdviceDialog',
  645. props: {
  646. dialysis_order: {
  647. // 透析记录
  648. type: Object,
  649. default: () => {
  650. return { id: 0 }
  651. }
  652. },
  653. patient: {
  654. // 患者信息
  655. type: Object,
  656. default: () => {
  657. return { id: 0 }
  658. }
  659. },
  660. doctor_advices: {
  661. type: Array
  662. },
  663. admin_users: {
  664. // 系统用户列表
  665. type: Array,
  666. default: () => {
  667. return []
  668. }
  669. }
  670. },
  671. data() {
  672. return {
  673. adRules: {
  674. start_time: [{ required: true, message: '请选择开始时间' }]
  675. },
  676. adForm: {
  677. other_start_time: ''
  678. },
  679. request_record_date: '',
  680. isLastOrNextVisible: false,
  681. other_doctor_advices: [],
  682. sch: null,
  683. is_has_create: true,
  684. is_has_exce: true,
  685. is_has_check: true,
  686. is_has_modify_exce: true,
  687. is_has_modify: true,
  688. is_has_modify_other: true,
  689. is_has_del: true,
  690. is_has_del_other: true,
  691. tempArr: [],
  692. execTimeDialogVisible: false,
  693. currentBoxClass: 'current-box-class',
  694. isClose: false,
  695. isShow: false,
  696. loading: false,
  697. sameRowArr: [],
  698. hoverOrderArr: [],
  699. isVisibility: false,
  700. record_date: '',
  701. template_id: 0,
  702. deleLoading: false,
  703. exceLoading: false,
  704. execTime: '',
  705. current_group_index: -1,
  706. title: '临时医嘱',
  707. add_title: '新增医嘱',
  708. his_is_open:0,
  709. showAdviceForm: false,
  710. showAdvicePanel: true,
  711. showNameForm: false,
  712. showGroupForm: false,
  713. showTemplateForm: false,
  714. current_template_id: -1,
  715. adviceTemplates: [],
  716. adviceTemplateMaps: {},
  717. deliveryWayOptions: [],
  718. executionFrequencyOptions: [],
  719. unitsOption: [],
  720. // admin_users: [],
  721. templateRules: {
  722. id: [{ required: true, message: '请选择医嘱模板' }]
  723. },
  724. nameRules: {
  725. advice_name: [{ required: true, message: '请填写医嘱内容' }]
  726. },
  727. form: {
  728. id: 0,
  729. advice_type: 2,
  730. advice_date: '',
  731. start_time: '',
  732. advice_name: '',
  733. advice_desc: '',
  734. single_dose: '',
  735. single_dose_unit: '',
  736. prescribing_number: '',
  737. prescribing_number_unit: '',
  738. delivery_way: '',
  739. execution_frequency: '',
  740. advice_doctor: '',
  741. remark: '',
  742. parent_id: 0,
  743. drug_id:0,
  744. drug_name_id:0,
  745. way:0,
  746. },
  747. nameForm: {
  748. advice_name: '',
  749. single_dose: '',
  750. single_dose_unit: '',
  751. drug_spec: '',
  752. drug_spec_unit: '',
  753. prescribing_number: '',
  754. prescribing_number_unit: '',
  755. delivery_way: '',
  756. execution_frequency: '',
  757. isEdit: 0,
  758. index: 0
  759. },
  760. groupForm: {
  761. advice_type: 2,
  762. advice_date: '',
  763. start_time: '',
  764. adviceNames: [],
  765. advice_doctor: '',
  766. remark: '',
  767. parent_id: 0
  768. },
  769. adviceList: [],
  770. currentIndex: -1,
  771. currentRow: null,
  772. groupSelectRow: null,
  773. templateForm: { id: '' },
  774. doctorAdvices: [],
  775. patientid: '',
  776. drugSpec:[],
  777. medicals:[],
  778. all_drug:[],
  779. current_drug_name:"",
  780. current_drug_spec: "",
  781. drug_id: 0,
  782. src_type:""
  783. }
  784. },
  785. watch: {
  786. 'assessment_after_dislysis.id': function() {
  787. if (this.assessment_after_dislysis.id > 0) {
  788. for (var index in this.form) {
  789. this.form[index] = this.assessment_after_dislysis[index]
  790. }
  791. }
  792. },
  793. 'dialysis_order.id': function() {
  794. this.form['dialysis_order_id'] = this.dialysis_order.id
  795. },
  796. doctor_advices: function() {
  797. // this.handleSpanTempArr()
  798. // this.hoverOrderArr = []
  799. // this.handleStyle()
  800. }
  801. },
  802. methods: {
  803. getContent: function() {
  804. if (this.sch != null) {
  805. var date = uParseTime(this.sch.schedule_date, '{y}-{m}-{d}')
  806. var week = ''
  807. var sch_type = ''
  808. switch (this.sch.schedule_week) {
  809. case 1:
  810. week = '周一'
  811. break
  812. case 2:
  813. week = '周二'
  814. break
  815. case 3:
  816. week = '周三'
  817. break
  818. case 4:
  819. week = '周四'
  820. break
  821. case 5:
  822. week = '周五'
  823. break
  824. case 6:
  825. week = '周六'
  826. break
  827. case 7:
  828. week = '周日'
  829. break
  830. }
  831. switch (this.sch.schedule_type) {
  832. case 1:
  833. sch_type = '上午'
  834. break
  835. case 2:
  836. sch_type = '下午'
  837. break
  838. case 3:
  839. sch_type = '晚上'
  840. break
  841. }
  842. return date + '(' + week + '/' + sch_type + ')'
  843. } else {
  844. return ''
  845. }
  846. },
  847. // 上一方
  848. AddNewAdvice(name) {
  849. for(let i=0;i<this.other_doctor_advices.length;i++){
  850. this.other_doctor_advices[i].single_dose = this.other_doctor_advices[i].single_dose.toString()
  851. this.other_doctor_advices[i].prescribing_number = this.other_doctor_advices[i].prescribing_number.toString()
  852. }
  853. this.$refs[name].validate(valid => {
  854. if (valid) {
  855. var submitForm = {
  856. advice_type: 2,
  857. advice_date: this.record_date,
  858. start_time: this.adForm.other_start_time,
  859. adviceNames: this.other_doctor_advices,
  860. remark: ''
  861. }
  862. console.log("2223333",submitForm)
  863. let mode = '1'
  864. CreateGroupAdvice(this.patientid, 0, submitForm, mode).then(
  865. response => {
  866. if (response.data.state == 0) {
  867. this.$message.error(response.data.msg);
  868. return false;
  869. } else {
  870. this.$notify({
  871. title: "成功",
  872. message: "新增成功",
  873. type: "success",
  874. duration: 2000
  875. });
  876. this.$refs[name].resetFields();
  877. this.isLastOrNextVisible = false;
  878. this.$parent.$parent.getScheduleDetail()
  879. return false;
  880. }
  881. }
  882. );
  883. }
  884. });
  885. },
  886. // isPermission () {
  887. // if(this.$store.getters.xt_user.user.user_type == 3 ) {
  888. // return false
  889. // } else {
  890. // return true
  891. // }
  892. // },
  893. adviceNameShow({ row, column, rowIndex, columnIndex }) {
  894. if (columnIndex == 2) {
  895. return 'dialysisadvicenamedisplay'
  896. } else {
  897. return ''
  898. }
  899. },
  900. submitEditAdvice() {
  901. if (this.form.advice_name.length == 0) {
  902. this.$message.error('请填写医嘱名称')
  903. return
  904. }
  905. if (this.form.start_time.length == 0) {
  906. this.$message.error('请选择开始时间')
  907. return
  908. }
  909. if (!(this.patient.id > 0)) {
  910. this.$message.error('没有选择患者')
  911. return false
  912. }
  913. // console.log(this.form)
  914. let mode = '2'
  915. if (this.form.advice_doctor != this.$store.getters.xt_user.user.id) {
  916. mode = '3'
  917. }
  918. EditDoctorAdvice(this.patient.id, this.form.id, this.form, mode).then(
  919. response => {
  920. if (response.data.state == 0) {
  921. this.$message.error(response.data.msg)
  922. return false
  923. } else {
  924. this.$notify({
  925. title: '成功',
  926. message: '修改医嘱成功',
  927. type: 'success',
  928. duration: 2000
  929. })
  930. this.showAdviceForm = false
  931. this.showAdvicePanel = true
  932. var advice = response.data.data.advice
  933. this.doctor_advices[this.currentIndex].drug_spec = advice.drug_spec
  934. this.doctor_advices[this.currentIndex].drug_spec_unit =
  935. advice.drug_spec_unit
  936. this.doctor_advices[this.currentIndex].start_time =
  937. advice.start_time
  938. this.doctor_advices[this.currentIndex].advice_name =
  939. advice.advice_name
  940. this.doctor_advices[this.currentIndex].advice_desc =
  941. advice.advice_desc
  942. this.doctor_advices[this.currentIndex].single_dose =
  943. advice.single_dose
  944. this.doctor_advices[this.currentIndex].single_dose_unit =
  945. advice.single_dose_unit
  946. this.doctor_advices[this.currentIndex].delivery_way =
  947. advice.delivery_way
  948. this.doctor_advices[this.currentIndex].execution_frequency =
  949. advice.execution_frequency
  950. this.doctor_advices[this.currentIndex].prescribing_number =
  951. advice.prescribing_number
  952. this.doctor_advices[this.currentIndex].prescribing_number_unit =
  953. advice.prescribing_number_unit
  954. this.doctor_advices[this.currentIndex].advice_doctor =
  955. advice.advice_doctor
  956. this.doctor_advices[this.currentIndex].remark = advice.remark
  957. this.doctor_advice[this.currentIndex].drug_id = advice.drug_id
  958. this.doctor_advice[this.currentIndex].drug_name_id = advice.drug_name_id
  959. this.doctor.advice[this.currentIndex].way = advice.way
  960. this.currentIndex = -1
  961. return false
  962. }
  963. }
  964. )
  965. }
  966. ,
  967. // submitGroupAdvice() {
  968. // if (this.groupForm.start_time.length == 0) {
  969. // this.$message.error('请选择开始时间')
  970. // return
  971. // }
  972. // CreateGroupAdvice(this.patient.id, this.groupForm).then(response => {
  973. // if (response.data.state == 0) {
  974. // this.$message.error(response.data.msg)
  975. // return false
  976. // } else {
  977. // this.$notify({
  978. // title: '成功',
  979. // message: '新增成功',
  980. // type: 'success',
  981. // duration: 2000
  982. // })
  983. // this.currentIndex = -1
  984. // this.currentRow = null
  985. // this.setCurrent()
  986. // this.hideGroupForm()
  987. // for (const index in response.data.data.advices) {
  988. // this.doctor_advices.unshift(response.data.data.advices[index])
  989. // }
  990. // this.groupForm = {
  991. // advice_type: 2,
  992. // advice_date: '',
  993. // start_time: '',
  994. // adviceNames: [],
  995. // advice_doctor: '',
  996. // remark: '',
  997. // parent_id: 0
  998. // }
  999. // return false
  1000. // }
  1001. // })
  1002. // },
  1003. // submitTempForm() {
  1004. // var _this = this
  1005. // if (this.templateForm.id.length == 0) {
  1006. // this.$message.error('请选择医嘱模板')
  1007. // return
  1008. // }
  1009. // if (_this.templateForm.id in _this.adviceTemplateMaps) {
  1010. // var mapid = _this.templateForm.id
  1011. // for (const index in _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate) {
  1012. // var item = {
  1013. // advice_name: _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index].advice_name,
  1014. // single_dose: _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index].single_dose,
  1015. // single_dose_unit: _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index].single_dose_unit,
  1016. // drug_spec: _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index].drug_spec,
  1017. // drug_spec_unit: _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index].drug_spec_unit,
  1018. // prescribing_number: _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index].prescribing_number,
  1019. // prescribing_number_unit: _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index].prescribing_number_unit,
  1020. // delivery_way: _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index].delivery_way,
  1021. // execution_frequency: _this.adviceTemplateMaps[mapid].DoctorAdviceTemplate[index].execution_frequency,
  1022. // isEdit: 0,
  1023. // index: 0
  1024. // }
  1025. // _this.groupForm.adviceNames.push(item)
  1026. // }
  1027. // }
  1028. // this.title = '新增医嘱'
  1029. // this.showTemplateForm = false
  1030. // this.showGroupForm = true
  1031. // },
  1032. openAdviceTemplate() {
  1033. this.templateForm = { id: '' }
  1034. this.title = '选择医嘱模板'
  1035. this.showTemplateForm = true
  1036. this.showGroupForm = false
  1037. }
  1038. ,
  1039. submitNameForm() {
  1040. if (this.nameForm.advice_name.length == 0) {
  1041. this.$message.error('请填写医嘱名称')
  1042. return
  1043. }
  1044. if (this.nameForm.isEdit) {
  1045. this.groupForm.adviceNames[
  1046. this.nameForm.index
  1047. ].advice_name = this.nameForm.advice_name
  1048. this.groupForm.adviceNames[
  1049. this.nameForm.index
  1050. ].single_dose = this.nameForm.single_dose
  1051. this.groupForm.adviceNames[
  1052. this.nameForm.index
  1053. ].single_dose_unit = this.nameForm.single_dose_unit
  1054. this.groupForm.adviceNames[
  1055. this.nameForm.index
  1056. ].drug_spec = this.nameForm.drug_spec
  1057. this.groupForm.adviceNames[
  1058. this.nameForm.index
  1059. ].drug_spec_unit = this.nameForm.drug_spec_unit
  1060. this.groupForm.adviceNames[
  1061. this.nameForm.index
  1062. ].prescribing_number = this.nameForm.prescribing_number
  1063. this.groupForm.adviceNames[
  1064. this.nameForm.index
  1065. ].prescribing_number_unit = this.nameForm.prescribing_number_unit
  1066. this.groupForm.adviceNames[
  1067. this.nameForm.index
  1068. ].delivery_way = this.nameForm.delivery_way
  1069. this.groupForm.adviceNames[this.nameForm.index].execution_frequency = this.nameForm.execution_frequency
  1070. this.groupForm.adviceNames[this.nameForm.index].drug_name_id = this.nameForm.drug_name_id
  1071. this.groupForm.adviceNames[this.nameForm.index].way = this.nameForm.way
  1072. this.groupForm.adviceNames[this.nameForm.index].drug_id = this.nameForm.drug_id
  1073. } else {
  1074. this.groupForm.adviceNames.push(this.nameForm)
  1075. }
  1076. this.title = '新增医嘱'
  1077. this.showNameForm = false
  1078. this.showGroupForm = true
  1079. }
  1080. ,
  1081. groupClassName({ row, rowIndex }) {
  1082. row.index = rowIndex
  1083. }
  1084. ,
  1085. selectGroupAdvice(row) {
  1086. this.groupSelectRow = row
  1087. }
  1088. ,
  1089. openDeleteGroupAdvice() {
  1090. if (this.groupSelectRow === null) {
  1091. this.$message.error('未选择要删除的医嘱内容')
  1092. return
  1093. }
  1094. this.DeleteGroupAdvice(this.groupSelectRow.groupno)
  1095. // this.$confirm('确认删除些条医嘱内容?', '删除医嘱内容', {
  1096. // confirmButtonText: '确定',
  1097. // cancelButtonText: '取消',
  1098. // type: 'warning'
  1099. // }).then(() => {
  1100. // this.groupForm.adviceNames.splice(this.groupSelectRow.index, 1);
  1101. // }).catch(() => {
  1102. // });
  1103. }
  1104. ,
  1105. openAdviceName(isEdit) {
  1106. if (isEdit) {
  1107. if (this.groupSelectRow === null) {
  1108. this.$message.error('未选择要修改的医嘱内容')
  1109. return
  1110. }
  1111. this.nameForm = {
  1112. advice_name: this.groupSelectRow.advice_name,
  1113. single_dose: this.groupSelectRow.single_dose,
  1114. single_dose_unit: this.groupSelectRow.single_dose_unit,
  1115. drug_spec: this.groupSelectRow.drug_spec,
  1116. drug_spec_unit: this.groupSelectRow.drug_spec_unit,
  1117. prescribing_number: this.groupSelectRow.prescribing_number,
  1118. prescribing_number_unit: this.groupSelectRow.prescribing_number_unit,
  1119. delivery_way: this.groupSelectRow.delivery_way,
  1120. execution_frequency: this.groupSelectRow.execution_frequency,
  1121. isEdit: 1,
  1122. index: this.groupSelectRow.index
  1123. }
  1124. console.log("88888888",this.nameForm)
  1125. } else {
  1126. this.nameForm = {
  1127. advice_name: '',
  1128. single_dose: '',
  1129. single_dose_unit: '',
  1130. drug_spec: '',
  1131. drug_spec_unit: '',
  1132. prescribing_number: '',
  1133. prescribing_number_unit: '',
  1134. delivery_way: '',
  1135. execution_frequency: '',
  1136. isEdit: 0,
  1137. index: 0
  1138. }
  1139. }
  1140. this.title = '新增医嘱内容'
  1141. this.showNameForm = true
  1142. this.showGroupForm = false
  1143. }
  1144. ,
  1145. tableRowClassName({ row, rowIndex }) {
  1146. // if (row.stop_state == 1 || row.execution_state == 1) {
  1147. // return 'stoped-row';
  1148. // }
  1149. // return 'success-rows'
  1150. row.index = rowIndex
  1151. const arr = this.hoverOrderArr
  1152. for (let i = 0; i < arr.length; i++) {
  1153. if (rowIndex == arr[i]) {
  1154. return 'success-row'
  1155. }
  1156. }
  1157. }
  1158. ,
  1159. changeAdviceName(key) {
  1160. if (key in this.adviceTemplateMaps) {
  1161. this.form.advice_name = this.adviceTemplateMaps[key].advice_name
  1162. this.form.advice_desc = this.adviceTemplateMaps[key].advice_desc
  1163. this.form.single_dose_unit = this.adviceTemplateMaps[
  1164. key
  1165. ].single_dose_unit
  1166. this.form.single_dose = this.adviceTemplateMaps[key].single_dose + ''
  1167. this.form.prescribing_number_unit = this.adviceTemplateMaps[
  1168. key
  1169. ].prescribing_number_unit
  1170. this.form.prescribing_number =
  1171. this.adviceTemplateMaps[key].prescribing_number + ''
  1172. this.form.delivery_way = this.adviceTemplateMaps[key].delivery_way
  1173. this.form.execution_frequency = this.adviceTemplateMaps[key].execution_frequency
  1174. this.form.drug_name_id = this.adviceTemplateMaps[key].drug_name_id
  1175. this.form.drug_id = this.adviceTemplateMaps[key].drug_id
  1176. this.form.way = this.adviceTemplateMaps[key].way
  1177. }
  1178. }
  1179. ,
  1180. submitExce() {
  1181. console.log(this.currentRow.origin)
  1182. if (this.currentRow == null) {
  1183. this.$message.error('请先选择要执行的医嘱!')
  1184. return false
  1185. }
  1186. if (this.execTime.length == 0) {
  1187. this.$message.error('请选择执行时间!')
  1188. return false
  1189. }
  1190. var execTime = Math.round(new Date(this.execTime).getTime() / 1000)
  1191. if (execTime < this.currentRow.start_time) {
  1192. this.$message.error('执行医嘱不能在开始之前!')
  1193. return false
  1194. }
  1195. this.exceLoading = true
  1196. let mode = '6'
  1197. ExecDoctorAdvice(this.patient.id, this.currentRow.id, this.execTime, mode,this.currentRow.origin).then(response => {
  1198. if (response.data.state == 0) {
  1199. this.$message.error(response.data.msg)
  1200. this.exceLoading = false
  1201. return false
  1202. } else {
  1203. this.$notify({
  1204. title: '成功',
  1205. message: '执行医嘱成功',
  1206. type: 'success',
  1207. duration: 2000
  1208. })
  1209. var msg = response.data.data.msg
  1210. if(msg == "ok"){
  1211. this.$message.error("请入库,库存不足")
  1212. }
  1213. var exid = response.data.data.advice.id
  1214. if (response.data.data.advice.parent_id > 0) {
  1215. exid = response.data.data.advice.parent_id
  1216. }
  1217. this.currentRow.execution_state = 1
  1218. this.currentRow.execution_staff =
  1219. response.data.data.advice.execution_staff
  1220. this.currentRow.execution_time =
  1221. response.data.data.advice.execution_time
  1222. var alen = this.doctor_advices.length
  1223. for (var index in this.doctor_advices) {
  1224. if (
  1225. this.doctor_advices[index].id == exid ||
  1226. this.doctor_advices[index].parent_id == exid
  1227. ) {
  1228. this.doctor_advices[index].execution_state = 1
  1229. this.doctor_advices[index].execution_staff =
  1230. response.data.data.advice.execution_staff
  1231. this.doctor_advices[index].execution_time =
  1232. response.data.data.advice.execution_time
  1233. // this.doctor_advices[index].checker = response.data.data.advice.checker;
  1234. break
  1235. }
  1236. }
  1237. this.execTimeDialogVisible = false
  1238. return false
  1239. }
  1240. })
  1241. .catch(() => {
  1242. this.exceLoading = false
  1243. })
  1244. }
  1245. ,
  1246. submitAdvice() {
  1247. if (this.form.advice_name.length == 0) {
  1248. this.$message.error('请填写医嘱名称')
  1249. return
  1250. }
  1251. if (this.form.start_time.length == 0) {
  1252. this.$message.error('请选择开始时间')
  1253. return
  1254. }
  1255. if (!(this.patient.id > 0)) {
  1256. this.$message.error('没有选择患者')
  1257. return false
  1258. }
  1259. let mode = '1'
  1260. if(this.src_type == ""){
  1261. this.form.way = 0
  1262. this.form.drug_id = 0
  1263. this.form.drug_name_id = 0
  1264. }
  1265. if(this.src_type == 2){ //自备药
  1266. var arr = this.form.advice_name.split("(自备药)")
  1267. this.form.advice_name = arr[0]
  1268. }
  1269. console.log("新增医嘱子药",this.form)
  1270. CreateDoctorAdvice(this.patient.id, this.form, mode)
  1271. .then(response => {
  1272. this.loading = false
  1273. if (response.data.state == 0) {
  1274. this.$message.error(response.data.msg)
  1275. return false
  1276. } else {
  1277. this.$notify({
  1278. title: '成功',
  1279. message: '新增医嘱成功',
  1280. type: 'success',
  1281. duration: 2000
  1282. })
  1283. this.currentIndex = -1
  1284. this.currentRow = null
  1285. this.setCurrent()
  1286. this.hideForm()
  1287. if (this.form.parent_id > 0) {
  1288. var spliceIndex = -1
  1289. for (let index = this.doctor_advices.length - 1; ; index--) {
  1290. if (
  1291. this.doctor_advices[index].parent_id === this.form.parent_id
  1292. ) {
  1293. spliceIndex = index
  1294. break
  1295. } else if (
  1296. this.doctor_advices[index].id === this.form.parent_id
  1297. ) {
  1298. spliceIndex = index
  1299. break
  1300. }
  1301. }
  1302. if (spliceIndex > -1) {
  1303. spliceIndex += 1
  1304. if (spliceIndex === this.doctor_advices.length) {
  1305. this.doctor_advices.push(response.data.data.advice)
  1306. } else {
  1307. var swapData = this.doctor_advices.splice(spliceIndex)
  1308. this.doctor_advices.push(response.data.data.advice)
  1309. for (var index in swapData) {
  1310. this.doctor_advices.push(swapData[index]) // = this.doctor_advices.concat(swapData);
  1311. }
  1312. }
  1313. }
  1314. } else {
  1315. this.doctor_advices.unshift(response.data.data.advice)
  1316. }
  1317. // this.$emit("new_create", response.data.data.advice);
  1318. return false
  1319. }
  1320. })
  1321. .catch(v => {
  1322. this.loading = false
  1323. })
  1324. }
  1325. ,
  1326. openNewChildTwo(index, row) {
  1327. this.currentRow = row
  1328. if (this.currentRow == null) {
  1329. this.$message.error('请先选择要新增子药的医嘱!')
  1330. return false
  1331. }
  1332. if (
  1333. this.currentRow.stop_state == 1 ||
  1334. this.currentRow.execution_state == 1
  1335. ) {
  1336. this.$message.error('所选医嘱已停止或执行')
  1337. return false
  1338. }
  1339. this.title = '新增子药'
  1340. this.showAdviceForm = true
  1341. this.showAdvicePanel = false
  1342. this.form = {
  1343. id: 0,
  1344. advice_type: 2,
  1345. advice_date: this.record_date,
  1346. start_time: uParseTime(
  1347. this.currentRow.start_time,
  1348. '{y}-{m}-{d} {h}:{i}'
  1349. ),
  1350. advice_name: '',
  1351. drug_spec: '',
  1352. drug_spec_unit: '',
  1353. single_dose: '',
  1354. single_dose_unit: '',
  1355. prescribing_number: '',
  1356. prescribing_number_unit: '',
  1357. delivery_way: this.currentRow.delivery_way,
  1358. execution_frequency: this.currentRow.execution_frequency,
  1359. advice_doctor: '',
  1360. remark: '',
  1361. parent_id: this.currentRow.id,
  1362. drug_id:0,
  1363. drug_name_id:0,
  1364. way:0,
  1365. }
  1366. }
  1367. ,
  1368. openNewChild() {
  1369. if (this.currentRow == null) {
  1370. this.$message.error('请先选择要新增子药的医嘱!')
  1371. return false
  1372. }
  1373. if (
  1374. this.currentRow.stop_state == 1 ||
  1375. this.currentRow.execution_state == 1
  1376. ) {
  1377. this.$message.error('所选医嘱已停止或执行')
  1378. return false
  1379. }
  1380. this.title = '新增子药'
  1381. this.showAdviceForm = true
  1382. this.showAdvicePanel = false
  1383. this.form = {
  1384. id: 0,
  1385. advice_type: 2,
  1386. advice_date: this.record_date,
  1387. start_time: uParseTime(
  1388. this.currentRow.start_time,
  1389. '{y}-{m}-{d} {h}:{i}'
  1390. ),
  1391. advice_name: '',
  1392. drug_spec: '',
  1393. drug_spec_unit: '',
  1394. single_dose: '',
  1395. single_dose_unit: '',
  1396. prescribing_number: '',
  1397. prescribing_number_unit: '',
  1398. delivery_way: this.currentRow.delivery_way,
  1399. execution_frequency: this.currentRow.execution_frequency,
  1400. advice_doctor: '',
  1401. remark: '',
  1402. parent_id: this.currentRow.id
  1403. }
  1404. }
  1405. ,
  1406. openEdit(index, row) {
  1407. if (row.stop_state == 1 || row.execution_state == 1) {
  1408. this.$message.error('所选医嘱已停止或执行')
  1409. return false
  1410. }
  1411. this.title = row.parent_id > 0 ? '编辑子药' : '编辑医嘱'
  1412. this.showAdviceForm = true
  1413. this.showAdvicePanel = false
  1414. this.currentIndex = index
  1415. this.form = {
  1416. id: row.id,
  1417. advice_type: 2,
  1418. advice_date: uParseTime(row.advice_date, '{y}-{m}-{d}'),
  1419. start_time: uParseTime(row.start_time, '{y}-{m}-{d} {h}:{i}'),
  1420. advice_desc: row.advice_desc,
  1421. advice_name: row.advice_name,
  1422. drug_spec: row.drug_spec != 0 ? '' + row.drug_spec : '',
  1423. drug_spec_unit: row.drug_spec_unit,
  1424. single_dose: row.single_dose != 0 ? '' + row.single_dose : '',
  1425. single_dose_unit: row.single_dose_unit,
  1426. prescribing_number:
  1427. row.prescribing_number != 0 ? '' + row.prescribing_number : '',
  1428. prescribing_number_unit: row.prescribing_number_unit,
  1429. delivery_way: row.delivery_way,
  1430. execution_frequency: row.execution_frequency,
  1431. advice_doctor: row.advice_doctor,
  1432. remark: row.remark,
  1433. parent_id: row.parent_id,
  1434. drug_id:0,
  1435. way:0,
  1436. drug_name_id:0,
  1437. }
  1438. }
  1439. ,
  1440. openEditGroupAdvice() {
  1441. if (this.groupSelectRow === null) {
  1442. this.$message.error('未选择要修改的医嘱内容')
  1443. return
  1444. }
  1445. console.log("22222",this.groupSelectRow.groupno)
  1446. this.$refs.editGroupForm.open(this.groupSelectRow.groupno)
  1447. }
  1448. ,
  1449. openGroupFrom() {
  1450. this.$refs.addGroupForm.open()
  1451. // this.title="新增医嘱";
  1452. // this.showGroupForm = true;
  1453. // this.showAdviceForm = false;
  1454. // this.showAdvicePanel = false;
  1455. // this.$refs.advices_list.setCurrentRow(null);
  1456. // this.currentIndex = -1;
  1457. // this.currentRow = null;
  1458. // this.groupForm.advice_date = this.record_date;
  1459. // this.form = {
  1460. // id: 0,
  1461. // advice_type: 2,
  1462. // advice_date: this.record_date,
  1463. // start_time: "",
  1464. // advice_name: "",
  1465. // advice_desc: "",
  1466. // single_dose: "",
  1467. // single_dose_unit: "",
  1468. // prescribing_number: "",
  1469. // prescribing_number_unit: "",
  1470. // delivery_way: "",
  1471. // execution_frequency: "",
  1472. // advice_doctor: "",
  1473. // remark: "",
  1474. // parent_id: 0
  1475. // };
  1476. }
  1477. ,
  1478. checkAdvice() {
  1479. console.log(this.currentRow)
  1480. // console.log(this.$store.getters.xt_user)
  1481. if (this.currentRow == null) {
  1482. this.$message.error('请先选择要核对的医嘱!')
  1483. return false
  1484. }
  1485. if (this.currentRow.check_state == 1) {
  1486. this.$message.error('所选医嘱已核对')
  1487. return false
  1488. }
  1489. if (
  1490. this.currentRow.execution_staff > 0 &&
  1491. this.currentRow.execution_staff == this.$store.getters.xt_user.user.id
  1492. ) {
  1493. this.$message.error('核对与执行不能是同一人')
  1494. return false
  1495. }
  1496. this.$confirm('确认提交核对?', '医嘱核对', {
  1497. confirmButtonText: '确定',
  1498. cancelButtonText: '取消',
  1499. closeOnClickModal: false,
  1500. type: 'warning'
  1501. })
  1502. .then(() => {
  1503. this.deleLoading = true
  1504. let mode = '7'
  1505. CheckDoctorAdvice(this.patient.id, this.currentRow.id, mode,this.currentRow.origin).then(
  1506. response => {
  1507. if (response.data.state == 0) {
  1508. this.$message.error(response.data.msg)
  1509. this.deleLoading = false
  1510. return false
  1511. } else {
  1512. this.$notify({
  1513. title: '成功',
  1514. message: '核对成功',
  1515. type: 'success',
  1516. duration: 2000
  1517. })
  1518. var exid = response.data.data.advice.id
  1519. if (response.data.data.advice.parent_id > 0) {
  1520. exid = response.data.data.advice.parent_id
  1521. }
  1522. // if (this.currentRow.parent_id > 0) {
  1523. // exid = this.currentRow.parent_id;
  1524. // }
  1525. this.currentRow.check_state = 1
  1526. this.currentRow.check_time =
  1527. response.data.data.advice.check_time
  1528. this.currentRow.checker = response.data.data.advice.checker
  1529. var alen = this.doctor_advices.length
  1530. for (var index in this.doctor_advices) {
  1531. if (
  1532. this.doctor_advices[index].id == exid ||
  1533. this.doctor_advices[index].parent_id == exid
  1534. ) {
  1535. this.doctor_advices[index].check_state = 1
  1536. this.doctor_advices[index].check_time =
  1537. response.data.data.advice.check_time
  1538. this.doctor_advices[index].checker =
  1539. response.data.data.advice.checker
  1540. // break;
  1541. }
  1542. }
  1543. this.deleLoading = false
  1544. }
  1545. }
  1546. )
  1547. })
  1548. .catch(() => {
  1549. this.deleLoading = false
  1550. })
  1551. }
  1552. ,
  1553. execAdvice() {
  1554. if (this.is_has_exce == false) {
  1555. this.$message.error('你没有执行医嘱的权限')
  1556. return false
  1557. }
  1558. this.execTimeDialogVisible = true
  1559. // if (this.currentAdvices.length <= 0) {
  1560. // return;
  1561. // }
  1562. if (this.current_select_object == 1) {
  1563. var isExecution = true
  1564. var adviceArr = this.advice_groups[this.current_group_index].advices
  1565. for (let i = 0; i < adviceArr.length; i++) {
  1566. if (
  1567. adviceArr[i].execution_state == 2 &&
  1568. adviceArr[i].is_selected == 1
  1569. ) {
  1570. isExecution = false
  1571. }
  1572. }
  1573. if (isExecution) {
  1574. this.$message.error('所选医嘱已停止或执行')
  1575. return false
  1576. }
  1577. for (let i = 0; i < adviceArr.length; i++) {
  1578. if (
  1579. adviceArr[i].is_selected == 1 &&
  1580. adviceArr[i].checker > 0 &&
  1581. adviceArr[i].checker == this.$store.getters.user.admin.id
  1582. ) {
  1583. this.$message.error('核对医嘱与执行不能是同一人')
  1584. return false
  1585. }
  1586. }
  1587. var currentAdviceIdArr = []
  1588. for (let i = 0; i < adviceArr.length; i++) {
  1589. if (adviceArr[i].is_selected == 1) {
  1590. currentAdviceIdArr.push(adviceArr[i].id)
  1591. }
  1592. }
  1593. this.currentAdviceIdsStr = currentAdviceIdArr.join(',')
  1594. this.nowExecTime = new Date(adviceArr[0].start_time * 1000)
  1595. } else {
  1596. if (!(this.current_group_index >= 0 && this.current_advice_index < 0)) {
  1597. return
  1598. }
  1599. var isExecution = true
  1600. var group_top_advice = this.advice_groups[this.current_group_index]
  1601. .advices[0]
  1602. var adviceArr = this.advice_groups[this.current_group_index].advices
  1603. for (let i = 0; i < adviceArr.length; i++) {
  1604. if (
  1605. adviceArr[i].is_selected == 1 &&
  1606. adviceArr[i].execution_state == 2
  1607. ) {
  1608. isExecution = false
  1609. }
  1610. }
  1611. if (isExecution) {
  1612. this.$message.error('所选医嘱已停止或执行')
  1613. return false
  1614. }
  1615. for (let i = 0; i < adviceArr.length; i++) {
  1616. if (
  1617. adviceArr[i].is_selected == 1 &&
  1618. adviceArr[i].checker > 0 &&
  1619. adviceArr[i].checker == this.$store.getters.user.admin.id
  1620. ) {
  1621. this.$message.error('核对与执行不能是同一人')
  1622. return false
  1623. }
  1624. }
  1625. this.nowExecTime = new Date(group_top_advice.start_time * 1000)
  1626. }
  1627. this.$refs.exec_time.open()
  1628. // if (this.currentRow == null) {
  1629. // this.$message.error("请先选择要执行的医嘱!");
  1630. // return false;
  1631. // }
  1632. //
  1633. // if (
  1634. // this.currentRow.stop_state == 1 ||
  1635. // this.currentRow.execution_state == 1
  1636. // ) {
  1637. // this.$message.error("所选医嘱已停止或执行");
  1638. // return false;
  1639. // }
  1640. //
  1641. // if (
  1642. // this.currentRow.checker > 0 &&
  1643. // this.currentRow.checker == this.$store.getters.xt_user.user.id
  1644. // ) {
  1645. // this.$message.error("核对与执行不能是同一人");
  1646. // return false;
  1647. // }
  1648. //
  1649. // this.execTimeDialogVisible = true;
  1650. // this.deleLoading = true;
  1651. }
  1652. ,
  1653. DeleteGroupAdvice(groupno) {
  1654. this.$confirm('确认删除这组医嘱?', '医嘱删除', {
  1655. confirmButtonText: '确定',
  1656. cancelButtonText: '取消',
  1657. type: 'warning'
  1658. })
  1659. .then(() => {
  1660. console.log(this.currentRow)
  1661. let mode = '4'
  1662. if (
  1663. this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id
  1664. ) {
  1665. mode = '5'
  1666. }
  1667. DeleteGroupAdvice(groupno, mode).then(response => {
  1668. if (response.data.state == 0) {
  1669. this.$message.error(response.data.msg)
  1670. return false
  1671. } else {
  1672. this.$notify({
  1673. title: '成功',
  1674. message: '医嘱已经删除',
  1675. type: 'success',
  1676. duration: 2000
  1677. })
  1678. var alen = this.doctor_advices.length
  1679. for (let index = alen - 1; index >= 0; index--) {
  1680. if (this.doctor_advices[index].groupno === groupno) {
  1681. this.doctor_advices.splice(index, 1)
  1682. }
  1683. }
  1684. }
  1685. })
  1686. })
  1687. .catch(() => {
  1688. })
  1689. // this.handleSpanTempArr()
  1690. }
  1691. ,
  1692. openDelete(index, row) {
  1693. this.currentRow = row
  1694. this.$confirm('确认删除此条医嘱?', '医嘱删除', {
  1695. confirmButtonText: '确定',
  1696. cancelButtonText: '取消',
  1697. closeOnClickModal: false,
  1698. type: 'warning'
  1699. })
  1700. .then(() => {
  1701. this.deleLoading = true
  1702. let mode = '4'
  1703. if (
  1704. this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id
  1705. ) {
  1706. mode = '5'
  1707. }
  1708. DeleteDoctorAdvice(this.currentRow.id, mode).then(response => {
  1709. this.deleLoading = false
  1710. if (response.data.state == 0) {
  1711. this.$message.error(response.data.msg)
  1712. return false
  1713. } else {
  1714. this.$notify({
  1715. title: '成功',
  1716. message: '医嘱已经删除',
  1717. type: 'success',
  1718. duration: 2000
  1719. })
  1720. this.deleteResetData(this.currentRow)
  1721. this.currentRow = null
  1722. this.setCurrent()
  1723. }
  1724. })
  1725. })
  1726. .catch(() => {
  1727. this.deleLoading = false
  1728. })
  1729. }
  1730. ,
  1731. deleteAdvice() {
  1732. if (this.currentRow == null) {
  1733. this.$message.error('请先选择要删除的医嘱!')
  1734. return false
  1735. }
  1736. this.$confirm('确认删除此条医嘱?', '医嘱删除', {
  1737. confirmButtonText: '确定',
  1738. cancelButtonText: '取消',
  1739. closeOnClickModal: false,
  1740. type: 'warning'
  1741. })
  1742. .then(() => {
  1743. this.deleLoading = true
  1744. let mode = '4'
  1745. if (
  1746. this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id
  1747. ) {
  1748. mode = '5'
  1749. }
  1750. DeleteDoctorAdvice(this.currentRow.id, mode).then(response => {
  1751. this.deleLoading = false
  1752. if (response.data.state == 0) {
  1753. this.$message.error(response.data.msg)
  1754. return false
  1755. } else {
  1756. this.$notify({
  1757. title: '成功',
  1758. message: '医嘱已经删除',
  1759. type: 'success',
  1760. duration: 2000
  1761. })
  1762. this.deleteResetData(this.currentRow)
  1763. this.currentRow = null
  1764. this.setCurrent()
  1765. }
  1766. })
  1767. })
  1768. .catch(() => {
  1769. this.deleLoading = false
  1770. })
  1771. }
  1772. ,
  1773. deleteResetData(row) {
  1774. if (row.parent_id > 0) {
  1775. for (var index in this.doctor_advices) {
  1776. if (this.doctor_advices[index].id == row.id) {
  1777. this.doctor_advices.splice(index, 1)
  1778. break
  1779. }
  1780. }
  1781. } else {
  1782. var spliceIndex = -1
  1783. var splitNums = 0
  1784. for (var index in this.doctor_advices) {
  1785. if (this.doctor_advices[index].id == row.id) {
  1786. spliceIndex = index
  1787. splitNums++
  1788. } else if (this.doctor_advices[index].parent_id == row.id) {
  1789. splitNums++
  1790. }
  1791. }
  1792. this.doctor_advices.splice(spliceIndex, splitNums)
  1793. }
  1794. }
  1795. ,
  1796. selectRow(row) {
  1797. this.currentRow = row
  1798. }
  1799. ,
  1800. getAdviceConfig() {
  1801. getAdviceConfig().then(response => {
  1802. if (response.data.state == 1) {
  1803. this.deliveryWayOptions =
  1804. response.data.data.drugways === null
  1805. ? []
  1806. : response.data.data.drugways
  1807. this.executionFrequencyOptions =
  1808. response.data.data.efs === null ? [] : response.data.data.efs
  1809. this.adviceTemplates =
  1810. response.data.data.advice_templates === null
  1811. ? []
  1812. : response.data.data.advice_templates
  1813. var templateLen = this.adviceTemplates.length
  1814. for (let index = 0; index < templateLen; index++) {
  1815. if (!this.adviceTemplates[index].DoctorAdviceTemplate) {
  1816. continue
  1817. }
  1818. var DoctorAdviceTemplate = this.adviceTemplates[index]
  1819. .DoctorAdviceTemplate
  1820. for (let i = 0; i < DoctorAdviceTemplate.length; i++) {
  1821. DoctorAdviceTemplate[i].selection = false
  1822. }
  1823. var item = this.adviceTemplates[index]
  1824. item.DoctorAdviceTemplate = []
  1825. var datMap = {}
  1826. for (const key in DoctorAdviceTemplate) {
  1827. if (DoctorAdviceTemplate[key].parent_id == 0) {
  1828. datMap[DoctorAdviceTemplate[key].id] =
  1829. DoctorAdviceTemplate[key]
  1830. }
  1831. }
  1832. for (const key in DoctorAdviceTemplate) {
  1833. if (DoctorAdviceTemplate[key].parent_id in datMap) {
  1834. if ('children' in datMap[DoctorAdviceTemplate[key].parent_id]) {
  1835. datMap[DoctorAdviceTemplate[key].parent_id].children.push(
  1836. DoctorAdviceTemplate[key]
  1837. )
  1838. } else {
  1839. datMap[DoctorAdviceTemplate[key].parent_id].children = []
  1840. datMap[DoctorAdviceTemplate[key].parent_id].children.push(
  1841. DoctorAdviceTemplate[key]
  1842. )
  1843. }
  1844. }
  1845. }
  1846. for (const key in datMap) {
  1847. item.DoctorAdviceTemplate.push(datMap[key])
  1848. }
  1849. this.$set(
  1850. this.adviceTemplateMaps,
  1851. this.adviceTemplates[index].id,
  1852. item
  1853. )
  1854. }
  1855. }
  1856. })
  1857. // this.handleSpanTempArr()
  1858. // this.handleStyle()
  1859. }
  1860. ,
  1861. getXuserName(id) {
  1862. if (id <= 0) {
  1863. return ''
  1864. }
  1865. var name = ''
  1866. if (
  1867. this.admin_users == null ||
  1868. typeof this.admin_users.length === 'undefined'
  1869. ) {
  1870. return name
  1871. }
  1872. var leng = this.admin_users.length
  1873. if (leng == 0) {
  1874. return name
  1875. }
  1876. for (let index = 0; index < leng; index++) {
  1877. if (this.admin_users[index].id == id) {
  1878. name = this.admin_users[index].name
  1879. break
  1880. }
  1881. }
  1882. return name
  1883. }
  1884. ,
  1885. addNewOrder() {
  1886. this.$refs.addGroupForm.open()
  1887. }
  1888. ,
  1889. show(his_is_open) {
  1890. this.his_is_open = his_is_open
  1891. console.log(this.his_is_open)
  1892. this.isVisibility = true
  1893. this.getPermission()
  1894. }
  1895. ,
  1896. hide() {
  1897. this.isVisibility = false
  1898. }
  1899. ,
  1900. hideForm() {
  1901. this.title = '临时医嘱'
  1902. this.showGroupForm = false
  1903. this.showAdviceForm = false
  1904. this.showAdvicePanel = true
  1905. }
  1906. ,
  1907. hideNameForm() {
  1908. this.title = '新增医嘱'
  1909. this.showGroupForm = true
  1910. this.showNameForm = false
  1911. }
  1912. ,
  1913. hideTemplateForm() {
  1914. this.title = '新增医嘱'
  1915. this.showGroupForm = true
  1916. this.showTemplateForm = false
  1917. }
  1918. ,
  1919. hideGroupForm() {
  1920. this.title = '临时医嘱'
  1921. this.showAdviceForm = false
  1922. this.showGroupForm = false
  1923. this.showAdvicePanel = true
  1924. }
  1925. ,
  1926. resetDialog() {
  1927. this.hoverOrderArr = []
  1928. this.title = '临时医嘱'
  1929. this.showAdviceForm = false
  1930. this.showGroupForm = false
  1931. this.showAdvicePanel = true
  1932. this.currentRow = null
  1933. this.groupSelectRow = null
  1934. this.setCurrent()
  1935. }
  1936. ,
  1937. closeTimePanel() {
  1938. this.execTimeDialogVisible = false
  1939. this.deleLoading = false
  1940. this.exceLoading = false
  1941. this.execTime = ''
  1942. }
  1943. ,
  1944. setCurrent(row) {
  1945. this.$refs.advices_list.setCurrentRow(row)
  1946. }
  1947. ,
  1948. isShowStartTime(index, row) {
  1949. if (row.parent_id > 0) {
  1950. return false
  1951. } else if (
  1952. index > 0 &&
  1953. row.groupno > 0 &&
  1954. row.groupno == this.doctor_advices[index - 1].groupno
  1955. ) {
  1956. return false
  1957. }
  1958. return true
  1959. }
  1960. ,
  1961. mergeSpan({ row, column, rowIndex, columnIndex }) {
  1962. if (columnIndex != 2) {
  1963. const _row = this.tempArr[rowIndex]
  1964. const _col = _row > 0 ? 1 : 0
  1965. return {
  1966. rowspan: _row,
  1967. colspan: _col
  1968. }
  1969. }
  1970. }
  1971. ,
  1972. handleSpanTempArr() {
  1973. this.tempArr = []
  1974. for (let i = 0; i < this.doctor_advices.length; i++) {
  1975. if (i === 0) {
  1976. this.tempArr.push(1)
  1977. this.pos = 0
  1978. } else {
  1979. // 判断当前元素与上一个元素是否相同
  1980. if (
  1981. this.doctor_advices[i].created_time ===
  1982. this.doctor_advices[i - 1].created_time
  1983. ) {
  1984. this.tempArr[this.pos] += 1
  1985. this.tempArr.push(0)
  1986. } else {
  1987. this.tempArr.push(1)
  1988. this.pos = i
  1989. }
  1990. }
  1991. }
  1992. },
  1993. cellMouseEnter: function(row, column, event) {
  1994. console.log("数据是",row)
  1995. this.currentRow = row
  1996. // this.groupSelectRow = row
  1997. // this.sameRowArr.forEach((arr, i) => {
  1998. // if (arr.indexOf(row.index) != -1) {
  1999. // this.hoverOrderArr = arr
  2000. // }
  2001. // })
  2002. }
  2003. ,
  2004. cellMouseLeave: function(row, column, cell, event) {
  2005. this.hoverOrderArr = []
  2006. }
  2007. ,
  2008. handleStyle() {
  2009. let sameRowArr = [],
  2010. sIdx = 0
  2011. this.doctor_advices.forEach((item, index) => {
  2012. item.index = index
  2013. if (index === 0) {
  2014. sameRowArr.push([index])
  2015. } else {
  2016. if (item.created_time === this.doctor_advices[index - 1].created_time) {
  2017. sameRowArr[sIdx].push(index)
  2018. } else {
  2019. sIdx = sIdx + 1
  2020. sameRowArr.push([index])
  2021. }
  2022. }
  2023. })
  2024. this.sameRowArr = sameRowArr
  2025. }
  2026. ,
  2027. getAdviceContent(row, isChild) {
  2028. let tempSingleDoseDesc = ''
  2029. let tempDrugSpecDesc = ''
  2030. let tempPrescribingNumberDesc = ''
  2031. if (row.prescribing_number) {
  2032. tempPrescribingNumberDesc =
  2033. row.prescribing_number + '' + row.prescribing_number_unit
  2034. }
  2035. if (row.single_dose) {
  2036. if (this.template_id != 6) {
  2037. tempSingleDoseDesc =
  2038. ' 单次用量 ' + ' ' + row.single_dose + '' + row.single_dose_unit
  2039. } else {
  2040. tempSingleDoseDesc = row.single_dose + '' + row.single_dose_unit
  2041. }
  2042. }
  2043. if (row.advice_desc) {
  2044. tempDrugSpecDesc = '(' + row.advice_desc + row.drug_spec_unit + ')' + " " + row.remark
  2045. }
  2046. if (isChild == 1) {
  2047. // 不是子药
  2048. return (
  2049. row.advice_name +
  2050. tempDrugSpecDesc +
  2051. ' ' +
  2052. tempPrescribingNumberDesc +
  2053. tempSingleDoseDesc +
  2054. ' ' +
  2055. row.delivery_way +
  2056. ' ' +
  2057. row.execution_frequency
  2058. )
  2059. } else {
  2060. // 是子药
  2061. return (
  2062. row.advice_name +
  2063. tempDrugSpecDesc +
  2064. ' ' +
  2065. tempPrescribingNumberDesc +
  2066. tempSingleDoseDesc
  2067. )
  2068. }
  2069. }
  2070. ,
  2071. getPermission() {
  2072. request
  2073. .get('/api/func_per/get', {
  2074. params: {
  2075. create_url: '/api/patients/advice/creategroup?mode=1',
  2076. modify_url: '/api/patients/advice/edit?mode=2',
  2077. modify_other_url: '/api/patients/advice/edit?mode=3',
  2078. del_url: '/api/patients/advice/delete?mode=4',
  2079. del_other_url: '/api/patients/advice/delete?mode=5',
  2080. exce_url: '/api/patients/advice/exec?mode=6',
  2081. check_url: '/api/patients/advice/check?mode=7',
  2082. module: 4
  2083. }
  2084. })
  2085. .then(res => {
  2086. console.log(res)
  2087. if (res.data.state == 0) {
  2088. this.hasPermission = false
  2089. } else if (res.data.state == 1) {
  2090. this.is_has_create = res.data.data.is_has_create
  2091. this.is_has_exce = res.data.data.is_has_exce
  2092. this.is_has_check = res.data.data.is_has_check
  2093. this.is_has_modify = res.data.data.is_has_modify
  2094. this.is_has_modify_other = res.data.data.is_has_modify_other
  2095. this.is_has_modify_exce = res.data.data.is_has_modify_exce
  2096. this.is_has_del = res.data.data.is_has_del
  2097. this.is_has_del_other = res.data.data.is_has_del_other
  2098. }
  2099. })
  2100. }
  2101. ,
  2102. arraySpanMethod({ row, column, rowIndex, columnIndex }) {
  2103. if (rowIndex % 2 === 0) {
  2104. if (columnIndex === 0) {
  2105. return [1, 2]
  2106. } else if (columnIndex === 1) {
  2107. return [0, 0]
  2108. }
  2109. }
  2110. }
  2111. ,
  2112. handleCurrentChange(row) {
  2113. this.currentRow = row;
  2114. // this.groupSelectRow = row;
  2115. // this.sameRowArr.forEach((arr, i) => {
  2116. // if (arr.indexOf(row.index) != -1) {
  2117. // this.hoverOrderArr = arr;
  2118. // }
  2119. // });
  2120. },
  2121. objectSpanMethod({ row, column, rowIndex, columnIndex }) {
  2122. if (columnIndex === 0) {
  2123. if (rowIndex % 2 === 0) {
  2124. return {
  2125. rowspan: 2,
  2126. colspan: 1
  2127. }
  2128. } else {
  2129. return {
  2130. rowspan: 0,
  2131. colspan: 0
  2132. }
  2133. }
  2134. }
  2135. if (columnIndex === 1) {
  2136. if (rowIndex % 2 === 0) {
  2137. return {
  2138. rowspan: 2,
  2139. colspan: 1
  2140. }
  2141. } else {
  2142. return {
  2143. rowspan: 0,
  2144. colspan: 0
  2145. }
  2146. }
  2147. }
  2148. }
  2149. ,
  2150. GetLastOrNextDoctorAdvice(params) {
  2151. GetLastOrNextDoctorAdvice(params).then(response => {
  2152. if (response.data.state == 1) {
  2153. var doctor_advices = response.data.data.advices
  2154. console.log("doctor_advices",doctor_advices)
  2155. this.other_doctor_advices = doctor_advices
  2156. this.request_record_date = uParseTime(this.other_doctor_advices[0].record_date, '{y}-{m}-{d}')
  2157. this.sch = response.data.data.schedule
  2158. } else {
  2159. this.$message.error(response.data.msg)
  2160. }
  2161. })
  2162. },
  2163. getDialysisScheduleDetail() {
  2164. if(this.$route.query.showView && this.$route.query.showView == true){
  2165. return
  2166. }
  2167. getDialysisScheduleDetail(this.patientid, this.record_date).then(response => {
  2168. if (response.data.state == 1) {
  2169. var doctor_advices = response.data.data.doctor_advices
  2170. this.doctorAdvices = doctor_advices
  2171. }
  2172. })
  2173. }
  2174. ,
  2175. openLast(val) {
  2176. if (val == 1) {
  2177. this.isLastOrNextVisible = true
  2178. this.isVisibility = false
  2179. this.request_record_date = this.record_date
  2180. let params = {
  2181. patient_id: this.patientid,
  2182. record_time: this.request_record_date,
  2183. type: 1
  2184. }
  2185. this.GetLastOrNextDoctorAdvice(params)
  2186. } else if (val == 3) {
  2187. let params = {
  2188. patient_id: this.patientid,
  2189. record_time: this.request_record_date,
  2190. type: 1
  2191. }
  2192. this.GetLastOrNextDoctorAdvice(params)
  2193. }
  2194. },
  2195. openNext(val) {
  2196. if (val == 2) {
  2197. this.isLastOrNextVisible = true
  2198. this.isVisibility = false
  2199. this.request_record_date = this.record_date
  2200. let params = {
  2201. patient_id: this.patientid,
  2202. record_time: this.request_record_date,
  2203. type: 2
  2204. }
  2205. this.GetLastOrNextDoctorAdvice(params)
  2206. } else if (val == 4) {
  2207. let params = {
  2208. patient_id: this.patientid,
  2209. record_time: this.request_record_date,
  2210. type: 2
  2211. }
  2212. this.GetLastOrNextDoctorAdvice(params)
  2213. }
  2214. },
  2215. getSelfMedicalList(){
  2216. const params = {
  2217. patient_id:this.$route.query.patient_id
  2218. }
  2219. getSelfMedicalList(params).then(response=>{
  2220. if (response.data.state == 1) {
  2221. this.arr_drug = []
  2222. var medicalList = response.data.data.private_drug_list
  2223. var base_drug_list = response.data.data.base_drug_list
  2224. var base_drug_cofig = response.data.data.base_drug_config
  2225. var private_drug_cofig = response.data.data.private_drug_config
  2226. if(private_drug_cofig != null&&private_drug_cofig.drug_start == 1) {
  2227. for (let i = 0; i < medicalList.length; i++) {
  2228. if(medicalList[i].drug_specs != null) {
  2229. for (let a = 0; a < medicalList[i].drug_specs.length; a++) {
  2230. medicalList[i].drug_specs[a]['type'] = 2
  2231. }
  2232. }
  2233. let obj = {
  2234. drug_name: "",
  2235. drug_desc: "",
  2236. delivery_way: "",
  2237. execution_frequency: "",
  2238. single_dose: "",
  2239. single_dose_unit: "",
  2240. prescribing_number: "",
  2241. prescribing_number_unit: "",
  2242. type_id: "",
  2243. type: "",
  2244. custom_id: "",
  2245. drug_specs: [],
  2246. }
  2247. medicalList[i].drug_name = medicalList[i].drug_name + "(自备药)"
  2248. obj.drug_name = medicalList[i].drug_name
  2249. obj.delivery_way = medicalList[i].delivery_way
  2250. obj.execution_frequency = medicalList[i].execution_frequency
  2251. obj.single_dose = medicalList[i].single_dose
  2252. obj.prescribing_number = medicalList[i].prescribing_number
  2253. obj.type_id = medicalList[i].id
  2254. obj.type = 2
  2255. obj.custom_id = this.rand(10000000, 99999999)
  2256. obj.drug_specs = medicalList[i].drug_specs
  2257. // console.log("222",this.all_drug)
  2258. this.all_drug.push(obj)
  2259. }
  2260. }
  2261. for (let i = 0; i < base_drug_list.length; i++) {
  2262. if(base_drug_list[i].drug_specs != null) {
  2263. for (let a = 0; a < base_drug_list[i].drug_specs.length; a++) {
  2264. base_drug_list[i].drug_specs[a]['type'] = 1
  2265. }
  2266. }
  2267. let obj = {
  2268. drug_name: "",
  2269. drug_desc: "",
  2270. delivery_way: "",
  2271. execution_frequency: "",
  2272. single_dose: "",
  2273. single_dose_unit: "",
  2274. prescribing_number: "",
  2275. prescribing_number_unit: "",
  2276. type_id: "",
  2277. type: "",
  2278. custom_id: "",
  2279. drug_specs: [],
  2280. }
  2281. obj.drug_name = base_drug_list[i].drug_name
  2282. obj.delivery_way = base_drug_list[i].delivery_way
  2283. obj.execution_frequency = base_drug_list[i].execution_frequency
  2284. obj.single_dose = base_drug_list[i].single_dose
  2285. obj.prescribing_number = base_drug_list[i].prescribing_number
  2286. obj.type_id = base_drug_list[i].id
  2287. obj.type = 1
  2288. obj.custom_id = this.rand(10000000, 99999999)
  2289. obj.drug_specs = base_drug_list[i].drug_specs
  2290. this.all_drug.push(obj)
  2291. // console.log("2222",this.all_drug)
  2292. }
  2293. }
  2294. })
  2295. },
  2296. changeDrugName(name){
  2297. this.current_drug_name = name
  2298. this.form.advice_desc = ""
  2299. this.$forceUpdate()
  2300. this.drugSpec = []
  2301. for (let i = 0; i < this.all_drug.length; i++) {
  2302. if (this.all_drug[i].drug_name == name) {
  2303. this.drugSpec = this.all_drug[i].drug_specs
  2304. }
  2305. }
  2306. },
  2307. changeDrugDesc(name) {
  2308. this.$forceUpdate()
  2309. this.current_drug_spec = name
  2310. for (let i = 0; i < this.drugSpec.length; i++) {
  2311. if (this.drugSpec[i].drug_spec == name) {
  2312. this.form.advice_desc = this.drugSpec[i].drug_spec
  2313. this.form.prescribing_number = this.drugSpec[i].prescribing_number.toString()
  2314. this.form.single_dose = this.drugSpec[i].single_dose.toString()
  2315. this.form.delivery_way = this.drugSpec[i].delivery_way.toString()
  2316. this.form.execution_frequency = this.drugSpec[i].execution_frequency.toString()
  2317. this.form.drug_id = this.drugSpec[i].id
  2318. this.src_type = this.drugSpec[i].type
  2319. this.form.drug_id = this.drugSpec[i].id
  2320. this.form.way = this.drugSpec[i].type
  2321. this.form.drug_spec_unit = this.drugSpec[i].min_unit
  2322. this.form.prescribing_number_unit = this.drugSpec[i].min_unit
  2323. this.form.single_dose_unit = this.drugSpec[i].min_unit
  2324. if(this.drugSpec[i].drug_name_id){
  2325. this.form.drug_name_id = this.drugSpec[i].drug_name_id
  2326. }else{
  2327. this.form.drug_name_id = 0
  2328. }
  2329. }
  2330. }
  2331. },
  2332. rand(min, max) {
  2333. return Math.floor(Math.random() * (max - min)) + min;
  2334. },
  2335. querySearch(queryString, cb) {
  2336. console.log('queryString',queryString)
  2337. var restaurants = this.all_drug;
  2338. restaurants.map(item => {
  2339. item.value = item.drug_name
  2340. })
  2341. var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
  2342. // 调用 callback 返回建议列表的数据
  2343. console.log('results',results)
  2344. cb(results);
  2345. },
  2346. createFilter(queryString) {
  2347. return (restaurant) => {
  2348. return (restaurant.drug_name.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
  2349. };
  2350. },
  2351. querySearch1(queryString, cb) {
  2352. console.log('queryString',queryString)
  2353. var restaurants = this.drugSpec;
  2354. console.log(restaurants)
  2355. restaurants.map(item => {
  2356. item.value = item.drug_spec
  2357. })
  2358. var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
  2359. // 调用 callback 返回建议列表的数据
  2360. console.log('results',results)
  2361. cb(results);
  2362. },
  2363. handleSelect(){
  2364. }
  2365. },
  2366. created() {
  2367. var date = this.$route.query && this.$route.query.date
  2368. this.record_date = uParseTime(date, '{y}-{m}-{d}')
  2369. this.form.advice_date = this.record_date
  2370. this.getAdviceConfig()
  2371. this.unitsOption = getDataConfig('hemodialysis', 'units')
  2372. this.template_id = this.$store.getters.xt_user.template_info.template_id
  2373. this.patientid = this.$route.query.patient_id
  2374. this.request_record_date = this.record_date
  2375. this.getDialysisScheduleDetail()
  2376. //获取自备药
  2377. this.getSelfMedicalList()
  2378. },mounted(){
  2379. console.log("~~~~~")
  2380. console.log(this.his_is_open)
  2381. console.log("~~~~~")
  2382. },
  2383. components: {
  2384. AddGroupAdvice,
  2385. EditGroupAdvice
  2386. }
  2387. }
  2388. </script>
  2389. <style>
  2390. @import "../../../../../static/css/table_row.css";
  2391. .txsj {
  2392. text-align: center;
  2393. margin-bottom: 20px;
  2394. }
  2395. .dialysisadvicenamedisplay .cell {
  2396. float: left;
  2397. text-align: left;
  2398. }
  2399. </style>
  2400. <style lang="scss" scoped>
  2401. .table {
  2402. width: 100%;
  2403. .tableTh {
  2404. th {
  2405. padding: 10px 0px;
  2406. background-color: rgb(245, 247, 250);
  2407. color: #909399;
  2408. font-weight: bold;
  2409. text-align: center;
  2410. }
  2411. }
  2412. tr {
  2413. th {
  2414. /*/ / background: $ main-color;*/
  2415. /*/ / color: #fff;*/
  2416. /*/ / height: 1.2 rem;*/
  2417. /*/ / line-height: 1.2 rem;*/
  2418. /*/ /*/
  2419. }
  2420. td {
  2421. line-height: 0.6rem;
  2422. .txt {
  2423. /*/ / float: left;*/
  2424. padding: 0 10px 0 10px;
  2425. /*/ / width: 75 %;*/
  2426. text-align: left;
  2427. }
  2428. .ico {
  2429. float: right;
  2430. width: 60px;
  2431. text-align: right;
  2432. padding-right: 3px;
  2433. }
  2434. .iconfont {
  2435. font-size: 20px;
  2436. padding: 0 2px;
  2437. color: #7b8a97;
  2438. }
  2439. .handle {
  2440. color: #409eff;
  2441. /*/ / padding: 0 7 px;*/
  2442. }
  2443. }
  2444. .advice_content {
  2445. /*/ / background: #eff6fc;*/
  2446. }
  2447. .subadvice_content {
  2448. /*/ / background: #fafcfe;*/
  2449. padding-left: 20px;
  2450. }
  2451. .td-active {
  2452. background: #badcff !important;
  2453. }
  2454. }
  2455. .row-class-active {
  2456. td {
  2457. background: #badcff;
  2458. }
  2459. }
  2460. }
  2461. </style>
  2462. <!--<style scoped>-->
  2463. <!--.txsj{-->
  2464. <!--text-align: center;-->
  2465. <!--margin-bottom: 20px;-->
  2466. <!--}-->
  2467. <!--</style>-->
  2468. <!--<style rel="stylesheet/scss" lang="scss" >-->
  2469. <!--.row-class-active {-->
  2470. <!--background: #badcff;-->
  2471. <!--}-->
  2472. <!--.doctor-advice-box .current-box-class .current-row>td{-->
  2473. <!--background: #6fb5fa;-->
  2474. <!--color:#fff;-->
  2475. <!--}-->
  2476. <!--.doctor-advice-box .current-box-class .current-row:hover>td{-->
  2477. <!--background: #6fb5fa;-->
  2478. <!--}-->
  2479. <!--// .doctor-advice-box .current-box-class .stoped-row>td{-->
  2480. <!--// background: #c9c9c9;-->
  2481. <!--// color:#000;-->
  2482. <!--// }-->
  2483. <!--// .doctor-advice-box .current-box-class .stoped-row:hover>td{-->
  2484. <!--// background: #c9c9c9;-->
  2485. <!--// }-->
  2486. <!--</style>-->