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

DoctorAdviceDialog.vue 86KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685
  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 == 1){
  1211. var exid = response.data.data.advice.id
  1212. if (response.data.data.advice.parent_id > 0) {
  1213. exid = response.data.data.advice.parent_id
  1214. }
  1215. this.currentRow.execution_state = 1
  1216. this.currentRow.execution_staff =
  1217. response.data.data.advice.execution_staff
  1218. this.currentRow.execution_time =
  1219. response.data.data.advice.execution_time
  1220. var alen = this.doctor_advices.length
  1221. for (var index in this.doctor_advices) {
  1222. if (
  1223. this.doctor_advices[index].id == exid ||
  1224. this.doctor_advices[index].parent_id == exid
  1225. ) {
  1226. this.doctor_advices[index].execution_state = 1
  1227. this.doctor_advices[index].execution_staff =
  1228. response.data.data.advice.execution_staff
  1229. this.doctor_advices[index].execution_time =
  1230. response.data.data.advice.execution_time
  1231. // this.doctor_advices[index].checker = response.data.data.advice.checker;
  1232. break
  1233. }
  1234. }
  1235. this.execTimeDialogVisible = false
  1236. return false
  1237. }
  1238. if(msg == 2){
  1239. this.$message.error("库存不足,请入库")
  1240. this.execTimeDialogVisible = false
  1241. return false
  1242. }
  1243. if(msg == 3){
  1244. this.$message.error("无库存,请入库")
  1245. this.execTimeDialogVisible = false
  1246. return false
  1247. }
  1248. }
  1249. })
  1250. .catch(() => {
  1251. this.exceLoading = false
  1252. })
  1253. }
  1254. ,
  1255. submitAdvice() {
  1256. if (this.form.advice_name.length == 0) {
  1257. this.$message.error('请填写医嘱名称')
  1258. return
  1259. }
  1260. if (this.form.start_time.length == 0) {
  1261. this.$message.error('请选择开始时间')
  1262. return
  1263. }
  1264. if (!(this.patient.id > 0)) {
  1265. this.$message.error('没有选择患者')
  1266. return false
  1267. }
  1268. let mode = '1'
  1269. if(this.src_type == ""){
  1270. this.form.way = 0
  1271. this.form.drug_id = 0
  1272. this.form.drug_name_id = 0
  1273. }
  1274. if(this.src_type == 2){ //自备药
  1275. var arr = this.form.advice_name.split("(自备药)")
  1276. this.form.advice_name = arr[0]
  1277. }
  1278. console.log("新增医嘱子药",this.form)
  1279. CreateDoctorAdvice(this.patient.id, this.form, mode)
  1280. .then(response => {
  1281. this.loading = false
  1282. if (response.data.state == 0) {
  1283. this.$message.error(response.data.msg)
  1284. return false
  1285. } else {
  1286. this.$notify({
  1287. title: '成功',
  1288. message: '新增医嘱成功',
  1289. type: 'success',
  1290. duration: 2000
  1291. })
  1292. this.currentIndex = -1
  1293. this.currentRow = null
  1294. this.setCurrent()
  1295. this.hideForm()
  1296. if (this.form.parent_id > 0) {
  1297. var spliceIndex = -1
  1298. for (let index = this.doctor_advices.length - 1; ; index--) {
  1299. if (
  1300. this.doctor_advices[index].parent_id === this.form.parent_id
  1301. ) {
  1302. spliceIndex = index
  1303. break
  1304. } else if (
  1305. this.doctor_advices[index].id === this.form.parent_id
  1306. ) {
  1307. spliceIndex = index
  1308. break
  1309. }
  1310. }
  1311. if (spliceIndex > -1) {
  1312. spliceIndex += 1
  1313. if (spliceIndex === this.doctor_advices.length) {
  1314. this.doctor_advices.push(response.data.data.advice)
  1315. } else {
  1316. var swapData = this.doctor_advices.splice(spliceIndex)
  1317. this.doctor_advices.push(response.data.data.advice)
  1318. for (var index in swapData) {
  1319. this.doctor_advices.push(swapData[index]) // = this.doctor_advices.concat(swapData);
  1320. }
  1321. }
  1322. }
  1323. } else {
  1324. this.doctor_advices.unshift(response.data.data.advice)
  1325. }
  1326. // this.$emit("new_create", response.data.data.advice);
  1327. return false
  1328. }
  1329. })
  1330. .catch(v => {
  1331. this.loading = false
  1332. })
  1333. }
  1334. ,
  1335. openNewChildTwo(index, row) {
  1336. this.currentRow = row
  1337. if (this.currentRow == null) {
  1338. this.$message.error('请先选择要新增子药的医嘱!')
  1339. return false
  1340. }
  1341. if (
  1342. this.currentRow.stop_state == 1 ||
  1343. this.currentRow.execution_state == 1
  1344. ) {
  1345. this.$message.error('所选医嘱已停止或执行')
  1346. return false
  1347. }
  1348. this.title = '新增子药'
  1349. this.showAdviceForm = true
  1350. this.showAdvicePanel = false
  1351. this.form = {
  1352. id: 0,
  1353. advice_type: 2,
  1354. advice_date: this.record_date,
  1355. start_time: uParseTime(
  1356. this.currentRow.start_time,
  1357. '{y}-{m}-{d} {h}:{i}'
  1358. ),
  1359. advice_name: '',
  1360. drug_spec: '',
  1361. drug_spec_unit: '',
  1362. single_dose: '',
  1363. single_dose_unit: '',
  1364. prescribing_number: '',
  1365. prescribing_number_unit: '',
  1366. delivery_way: this.currentRow.delivery_way,
  1367. execution_frequency: this.currentRow.execution_frequency,
  1368. advice_doctor: '',
  1369. remark: '',
  1370. parent_id: this.currentRow.id,
  1371. drug_id:0,
  1372. drug_name_id:0,
  1373. way:0,
  1374. }
  1375. }
  1376. ,
  1377. openNewChild() {
  1378. if (this.currentRow == null) {
  1379. this.$message.error('请先选择要新增子药的医嘱!')
  1380. return false
  1381. }
  1382. if (
  1383. this.currentRow.stop_state == 1 ||
  1384. this.currentRow.execution_state == 1
  1385. ) {
  1386. this.$message.error('所选医嘱已停止或执行')
  1387. return false
  1388. }
  1389. this.title = '新增子药'
  1390. this.showAdviceForm = true
  1391. this.showAdvicePanel = false
  1392. this.form = {
  1393. id: 0,
  1394. advice_type: 2,
  1395. advice_date: this.record_date,
  1396. start_time: uParseTime(
  1397. this.currentRow.start_time,
  1398. '{y}-{m}-{d} {h}:{i}'
  1399. ),
  1400. advice_name: '',
  1401. drug_spec: '',
  1402. drug_spec_unit: '',
  1403. single_dose: '',
  1404. single_dose_unit: '',
  1405. prescribing_number: '',
  1406. prescribing_number_unit: '',
  1407. delivery_way: this.currentRow.delivery_way,
  1408. execution_frequency: this.currentRow.execution_frequency,
  1409. advice_doctor: '',
  1410. remark: '',
  1411. parent_id: this.currentRow.id
  1412. }
  1413. }
  1414. ,
  1415. openEdit(index, row) {
  1416. if (row.stop_state == 1 || row.execution_state == 1) {
  1417. this.$message.error('所选医嘱已停止或执行')
  1418. return false
  1419. }
  1420. this.title = row.parent_id > 0 ? '编辑子药' : '编辑医嘱'
  1421. this.showAdviceForm = true
  1422. this.showAdvicePanel = false
  1423. this.currentIndex = index
  1424. this.form = {
  1425. id: row.id,
  1426. advice_type: 2,
  1427. advice_date: uParseTime(row.advice_date, '{y}-{m}-{d}'),
  1428. start_time: uParseTime(row.start_time, '{y}-{m}-{d} {h}:{i}'),
  1429. advice_desc: row.advice_desc,
  1430. advice_name: row.advice_name,
  1431. drug_spec: row.drug_spec != 0 ? '' + row.drug_spec : '',
  1432. drug_spec_unit: row.drug_spec_unit,
  1433. single_dose: row.single_dose != 0 ? '' + row.single_dose : '',
  1434. single_dose_unit: row.single_dose_unit,
  1435. prescribing_number:
  1436. row.prescribing_number != 0 ? '' + row.prescribing_number : '',
  1437. prescribing_number_unit: row.prescribing_number_unit,
  1438. delivery_way: row.delivery_way,
  1439. execution_frequency: row.execution_frequency,
  1440. advice_doctor: row.advice_doctor,
  1441. remark: row.remark,
  1442. parent_id: row.parent_id,
  1443. drug_id:0,
  1444. way:0,
  1445. drug_name_id:0,
  1446. }
  1447. }
  1448. ,
  1449. openEditGroupAdvice() {
  1450. if (this.groupSelectRow === null) {
  1451. this.$message.error('未选择要修改的医嘱内容')
  1452. return
  1453. }
  1454. console.log("22222",this.groupSelectRow.groupno)
  1455. this.$refs.editGroupForm.open(this.groupSelectRow.groupno)
  1456. }
  1457. ,
  1458. openGroupFrom() {
  1459. this.$refs.addGroupForm.open()
  1460. // this.title="新增医嘱";
  1461. // this.showGroupForm = true;
  1462. // this.showAdviceForm = false;
  1463. // this.showAdvicePanel = false;
  1464. // this.$refs.advices_list.setCurrentRow(null);
  1465. // this.currentIndex = -1;
  1466. // this.currentRow = null;
  1467. // this.groupForm.advice_date = this.record_date;
  1468. // this.form = {
  1469. // id: 0,
  1470. // advice_type: 2,
  1471. // advice_date: this.record_date,
  1472. // start_time: "",
  1473. // advice_name: "",
  1474. // advice_desc: "",
  1475. // single_dose: "",
  1476. // single_dose_unit: "",
  1477. // prescribing_number: "",
  1478. // prescribing_number_unit: "",
  1479. // delivery_way: "",
  1480. // execution_frequency: "",
  1481. // advice_doctor: "",
  1482. // remark: "",
  1483. // parent_id: 0
  1484. // };
  1485. }
  1486. ,
  1487. checkAdvice() {
  1488. console.log(this.currentRow)
  1489. // console.log(this.$store.getters.xt_user)
  1490. if (this.currentRow == null) {
  1491. this.$message.error('请先选择要核对的医嘱!')
  1492. return false
  1493. }
  1494. if (this.currentRow.check_state == 1) {
  1495. this.$message.error('所选医嘱已核对')
  1496. return false
  1497. }
  1498. if (
  1499. this.currentRow.execution_staff > 0 &&
  1500. this.currentRow.execution_staff == this.$store.getters.xt_user.user.id
  1501. ) {
  1502. this.$message.error('核对与执行不能是同一人')
  1503. return false
  1504. }
  1505. this.$confirm('确认提交核对?', '医嘱核对', {
  1506. confirmButtonText: '确定',
  1507. cancelButtonText: '取消',
  1508. closeOnClickModal: false,
  1509. type: 'warning'
  1510. })
  1511. .then(() => {
  1512. this.deleLoading = true
  1513. let mode = '7'
  1514. CheckDoctorAdvice(this.patient.id, this.currentRow.id, mode,this.currentRow.origin).then(
  1515. response => {
  1516. if (response.data.state == 0) {
  1517. this.$message.error(response.data.msg)
  1518. this.deleLoading = false
  1519. return false
  1520. } else {
  1521. this.$notify({
  1522. title: '成功',
  1523. message: '核对成功',
  1524. type: 'success',
  1525. duration: 2000
  1526. })
  1527. var exid = response.data.data.advice.id
  1528. if (response.data.data.advice.parent_id > 0) {
  1529. exid = response.data.data.advice.parent_id
  1530. }
  1531. // if (this.currentRow.parent_id > 0) {
  1532. // exid = this.currentRow.parent_id;
  1533. // }
  1534. this.currentRow.check_state = 1
  1535. this.currentRow.check_time =
  1536. response.data.data.advice.check_time
  1537. this.currentRow.checker = response.data.data.advice.checker
  1538. var alen = this.doctor_advices.length
  1539. for (var index in this.doctor_advices) {
  1540. if (
  1541. this.doctor_advices[index].id == exid ||
  1542. this.doctor_advices[index].parent_id == exid
  1543. ) {
  1544. this.doctor_advices[index].check_state = 1
  1545. this.doctor_advices[index].check_time =
  1546. response.data.data.advice.check_time
  1547. this.doctor_advices[index].checker =
  1548. response.data.data.advice.checker
  1549. // break;
  1550. }
  1551. }
  1552. this.deleLoading = false
  1553. }
  1554. }
  1555. )
  1556. })
  1557. .catch(() => {
  1558. this.deleLoading = false
  1559. })
  1560. }
  1561. ,
  1562. execAdvice() {
  1563. if (this.is_has_exce == false) {
  1564. this.$message.error('你没有执行医嘱的权限')
  1565. return false
  1566. }
  1567. this.execTimeDialogVisible = true
  1568. // if (this.currentAdvices.length <= 0) {
  1569. // return;
  1570. // }
  1571. if (this.current_select_object == 1) {
  1572. var isExecution = true
  1573. var adviceArr = this.advice_groups[this.current_group_index].advices
  1574. for (let i = 0; i < adviceArr.length; i++) {
  1575. if (
  1576. adviceArr[i].execution_state == 2 &&
  1577. adviceArr[i].is_selected == 1
  1578. ) {
  1579. isExecution = false
  1580. }
  1581. }
  1582. if (isExecution) {
  1583. this.$message.error('所选医嘱已停止或执行')
  1584. return false
  1585. }
  1586. for (let i = 0; i < adviceArr.length; i++) {
  1587. if (
  1588. adviceArr[i].is_selected == 1 &&
  1589. adviceArr[i].checker > 0 &&
  1590. adviceArr[i].checker == this.$store.getters.user.admin.id
  1591. ) {
  1592. this.$message.error('核对医嘱与执行不能是同一人')
  1593. return false
  1594. }
  1595. }
  1596. var currentAdviceIdArr = []
  1597. for (let i = 0; i < adviceArr.length; i++) {
  1598. if (adviceArr[i].is_selected == 1) {
  1599. currentAdviceIdArr.push(adviceArr[i].id)
  1600. }
  1601. }
  1602. this.currentAdviceIdsStr = currentAdviceIdArr.join(',')
  1603. this.nowExecTime = new Date(adviceArr[0].start_time * 1000)
  1604. } else {
  1605. if (!(this.current_group_index >= 0 && this.current_advice_index < 0)) {
  1606. return
  1607. }
  1608. var isExecution = true
  1609. var group_top_advice = this.advice_groups[this.current_group_index]
  1610. .advices[0]
  1611. var adviceArr = this.advice_groups[this.current_group_index].advices
  1612. for (let i = 0; i < adviceArr.length; i++) {
  1613. if (
  1614. adviceArr[i].is_selected == 1 &&
  1615. adviceArr[i].execution_state == 2
  1616. ) {
  1617. isExecution = false
  1618. }
  1619. }
  1620. if (isExecution) {
  1621. this.$message.error('所选医嘱已停止或执行')
  1622. return false
  1623. }
  1624. for (let i = 0; i < adviceArr.length; i++) {
  1625. if (
  1626. adviceArr[i].is_selected == 1 &&
  1627. adviceArr[i].checker > 0 &&
  1628. adviceArr[i].checker == this.$store.getters.user.admin.id
  1629. ) {
  1630. this.$message.error('核对与执行不能是同一人')
  1631. return false
  1632. }
  1633. }
  1634. this.nowExecTime = new Date(group_top_advice.start_time * 1000)
  1635. }
  1636. this.$refs.exec_time.open()
  1637. // if (this.currentRow == null) {
  1638. // this.$message.error("请先选择要执行的医嘱!");
  1639. // return false;
  1640. // }
  1641. //
  1642. // if (
  1643. // this.currentRow.stop_state == 1 ||
  1644. // this.currentRow.execution_state == 1
  1645. // ) {
  1646. // this.$message.error("所选医嘱已停止或执行");
  1647. // return false;
  1648. // }
  1649. //
  1650. // if (
  1651. // this.currentRow.checker > 0 &&
  1652. // this.currentRow.checker == this.$store.getters.xt_user.user.id
  1653. // ) {
  1654. // this.$message.error("核对与执行不能是同一人");
  1655. // return false;
  1656. // }
  1657. //
  1658. // this.execTimeDialogVisible = true;
  1659. // this.deleLoading = true;
  1660. }
  1661. ,
  1662. DeleteGroupAdvice(groupno) {
  1663. this.$confirm('确认删除这组医嘱?', '医嘱删除', {
  1664. confirmButtonText: '确定',
  1665. cancelButtonText: '取消',
  1666. type: 'warning'
  1667. })
  1668. .then(() => {
  1669. console.log(this.currentRow)
  1670. let mode = '4'
  1671. if (
  1672. this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id
  1673. ) {
  1674. mode = '5'
  1675. }
  1676. DeleteGroupAdvice(groupno, mode).then(response => {
  1677. if (response.data.state == 0) {
  1678. this.$message.error(response.data.msg)
  1679. return false
  1680. } else {
  1681. this.$notify({
  1682. title: '成功',
  1683. message: '医嘱已经删除',
  1684. type: 'success',
  1685. duration: 2000
  1686. })
  1687. var alen = this.doctor_advices.length
  1688. for (let index = alen - 1; index >= 0; index--) {
  1689. if (this.doctor_advices[index].groupno === groupno) {
  1690. this.doctor_advices.splice(index, 1)
  1691. }
  1692. }
  1693. }
  1694. })
  1695. })
  1696. .catch(() => {
  1697. })
  1698. // this.handleSpanTempArr()
  1699. }
  1700. ,
  1701. openDelete(index, row) {
  1702. this.currentRow = row
  1703. this.$confirm('确认删除此条医嘱?', '医嘱删除', {
  1704. confirmButtonText: '确定',
  1705. cancelButtonText: '取消',
  1706. closeOnClickModal: false,
  1707. type: 'warning'
  1708. })
  1709. .then(() => {
  1710. this.deleLoading = true
  1711. let mode = '4'
  1712. if (
  1713. this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id
  1714. ) {
  1715. mode = '5'
  1716. }
  1717. DeleteDoctorAdvice(this.currentRow.id, mode).then(response => {
  1718. this.deleLoading = false
  1719. if (response.data.state == 0) {
  1720. this.$message.error(response.data.msg)
  1721. return false
  1722. } else {
  1723. this.$notify({
  1724. title: '成功',
  1725. message: '医嘱已经删除',
  1726. type: 'success',
  1727. duration: 2000
  1728. })
  1729. this.deleteResetData(this.currentRow)
  1730. this.currentRow = null
  1731. this.setCurrent()
  1732. }
  1733. })
  1734. })
  1735. .catch(() => {
  1736. this.deleLoading = false
  1737. })
  1738. }
  1739. ,
  1740. deleteAdvice() {
  1741. if (this.currentRow == null) {
  1742. this.$message.error('请先选择要删除的医嘱!')
  1743. return false
  1744. }
  1745. this.$confirm('确认删除此条医嘱?', '医嘱删除', {
  1746. confirmButtonText: '确定',
  1747. cancelButtonText: '取消',
  1748. closeOnClickModal: false,
  1749. type: 'warning'
  1750. })
  1751. .then(() => {
  1752. this.deleLoading = true
  1753. let mode = '4'
  1754. if (
  1755. this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id
  1756. ) {
  1757. mode = '5'
  1758. }
  1759. DeleteDoctorAdvice(this.currentRow.id, mode).then(response => {
  1760. this.deleLoading = false
  1761. if (response.data.state == 0) {
  1762. this.$message.error(response.data.msg)
  1763. return false
  1764. } else {
  1765. this.$notify({
  1766. title: '成功',
  1767. message: '医嘱已经删除',
  1768. type: 'success',
  1769. duration: 2000
  1770. })
  1771. this.deleteResetData(this.currentRow)
  1772. this.currentRow = null
  1773. this.setCurrent()
  1774. }
  1775. })
  1776. })
  1777. .catch(() => {
  1778. this.deleLoading = false
  1779. })
  1780. }
  1781. ,
  1782. deleteResetData(row) {
  1783. if (row.parent_id > 0) {
  1784. for (var index in this.doctor_advices) {
  1785. if (this.doctor_advices[index].id == row.id) {
  1786. this.doctor_advices.splice(index, 1)
  1787. break
  1788. }
  1789. }
  1790. } else {
  1791. var spliceIndex = -1
  1792. var splitNums = 0
  1793. for (var index in this.doctor_advices) {
  1794. if (this.doctor_advices[index].id == row.id) {
  1795. spliceIndex = index
  1796. splitNums++
  1797. } else if (this.doctor_advices[index].parent_id == row.id) {
  1798. splitNums++
  1799. }
  1800. }
  1801. this.doctor_advices.splice(spliceIndex, splitNums)
  1802. }
  1803. }
  1804. ,
  1805. selectRow(row) {
  1806. this.currentRow = row
  1807. }
  1808. ,
  1809. getAdviceConfig() {
  1810. getAdviceConfig().then(response => {
  1811. if (response.data.state == 1) {
  1812. this.deliveryWayOptions =
  1813. response.data.data.drugways === null
  1814. ? []
  1815. : response.data.data.drugways
  1816. this.executionFrequencyOptions =
  1817. response.data.data.efs === null ? [] : response.data.data.efs
  1818. this.adviceTemplates =
  1819. response.data.data.advice_templates === null
  1820. ? []
  1821. : response.data.data.advice_templates
  1822. var templateLen = this.adviceTemplates.length
  1823. for (let index = 0; index < templateLen; index++) {
  1824. if (!this.adviceTemplates[index].DoctorAdviceTemplate) {
  1825. continue
  1826. }
  1827. var DoctorAdviceTemplate = this.adviceTemplates[index]
  1828. .DoctorAdviceTemplate
  1829. for (let i = 0; i < DoctorAdviceTemplate.length; i++) {
  1830. DoctorAdviceTemplate[i].selection = false
  1831. }
  1832. var item = this.adviceTemplates[index]
  1833. item.DoctorAdviceTemplate = []
  1834. var datMap = {}
  1835. for (const key in DoctorAdviceTemplate) {
  1836. if (DoctorAdviceTemplate[key].parent_id == 0) {
  1837. datMap[DoctorAdviceTemplate[key].id] =
  1838. DoctorAdviceTemplate[key]
  1839. }
  1840. }
  1841. for (const key in DoctorAdviceTemplate) {
  1842. if (DoctorAdviceTemplate[key].parent_id in datMap) {
  1843. if ('children' in datMap[DoctorAdviceTemplate[key].parent_id]) {
  1844. datMap[DoctorAdviceTemplate[key].parent_id].children.push(
  1845. DoctorAdviceTemplate[key]
  1846. )
  1847. } else {
  1848. datMap[DoctorAdviceTemplate[key].parent_id].children = []
  1849. datMap[DoctorAdviceTemplate[key].parent_id].children.push(
  1850. DoctorAdviceTemplate[key]
  1851. )
  1852. }
  1853. }
  1854. }
  1855. for (const key in datMap) {
  1856. item.DoctorAdviceTemplate.push(datMap[key])
  1857. }
  1858. this.$set(
  1859. this.adviceTemplateMaps,
  1860. this.adviceTemplates[index].id,
  1861. item
  1862. )
  1863. }
  1864. }
  1865. })
  1866. // this.handleSpanTempArr()
  1867. // this.handleStyle()
  1868. }
  1869. ,
  1870. getXuserName(id) {
  1871. if (id <= 0) {
  1872. return ''
  1873. }
  1874. var name = ''
  1875. if (
  1876. this.admin_users == null ||
  1877. typeof this.admin_users.length === 'undefined'
  1878. ) {
  1879. return name
  1880. }
  1881. var leng = this.admin_users.length
  1882. if (leng == 0) {
  1883. return name
  1884. }
  1885. for (let index = 0; index < leng; index++) {
  1886. if (this.admin_users[index].id == id) {
  1887. name = this.admin_users[index].name
  1888. break
  1889. }
  1890. }
  1891. return name
  1892. }
  1893. ,
  1894. addNewOrder() {
  1895. this.$refs.addGroupForm.open()
  1896. }
  1897. ,
  1898. show(his_is_open) {
  1899. this.his_is_open = his_is_open
  1900. console.log(this.his_is_open)
  1901. this.isVisibility = true
  1902. this.getPermission()
  1903. }
  1904. ,
  1905. hide() {
  1906. this.isVisibility = false
  1907. }
  1908. ,
  1909. hideForm() {
  1910. this.title = '临时医嘱'
  1911. this.showGroupForm = false
  1912. this.showAdviceForm = false
  1913. this.showAdvicePanel = true
  1914. }
  1915. ,
  1916. hideNameForm() {
  1917. this.title = '新增医嘱'
  1918. this.showGroupForm = true
  1919. this.showNameForm = false
  1920. }
  1921. ,
  1922. hideTemplateForm() {
  1923. this.title = '新增医嘱'
  1924. this.showGroupForm = true
  1925. this.showTemplateForm = false
  1926. }
  1927. ,
  1928. hideGroupForm() {
  1929. this.title = '临时医嘱'
  1930. this.showAdviceForm = false
  1931. this.showGroupForm = false
  1932. this.showAdvicePanel = true
  1933. }
  1934. ,
  1935. resetDialog() {
  1936. this.hoverOrderArr = []
  1937. this.title = '临时医嘱'
  1938. this.showAdviceForm = false
  1939. this.showGroupForm = false
  1940. this.showAdvicePanel = true
  1941. this.currentRow = null
  1942. this.groupSelectRow = null
  1943. this.setCurrent()
  1944. }
  1945. ,
  1946. closeTimePanel() {
  1947. this.execTimeDialogVisible = false
  1948. this.deleLoading = false
  1949. this.exceLoading = false
  1950. this.execTime = ''
  1951. }
  1952. ,
  1953. setCurrent(row) {
  1954. this.$refs.advices_list.setCurrentRow(row)
  1955. }
  1956. ,
  1957. isShowStartTime(index, row) {
  1958. if (row.parent_id > 0) {
  1959. return false
  1960. } else if (
  1961. index > 0 &&
  1962. row.groupno > 0 &&
  1963. row.groupno == this.doctor_advices[index - 1].groupno
  1964. ) {
  1965. return false
  1966. }
  1967. return true
  1968. }
  1969. ,
  1970. mergeSpan({ row, column, rowIndex, columnIndex }) {
  1971. if (columnIndex != 2) {
  1972. const _row = this.tempArr[rowIndex]
  1973. const _col = _row > 0 ? 1 : 0
  1974. return {
  1975. rowspan: _row,
  1976. colspan: _col
  1977. }
  1978. }
  1979. }
  1980. ,
  1981. handleSpanTempArr() {
  1982. this.tempArr = []
  1983. for (let i = 0; i < this.doctor_advices.length; i++) {
  1984. if (i === 0) {
  1985. this.tempArr.push(1)
  1986. this.pos = 0
  1987. } else {
  1988. // 判断当前元素与上一个元素是否相同
  1989. if (
  1990. this.doctor_advices[i].created_time ===
  1991. this.doctor_advices[i - 1].created_time
  1992. ) {
  1993. this.tempArr[this.pos] += 1
  1994. this.tempArr.push(0)
  1995. } else {
  1996. this.tempArr.push(1)
  1997. this.pos = i
  1998. }
  1999. }
  2000. }
  2001. },
  2002. cellMouseEnter: function(row, column, event) {
  2003. console.log("数据是",row)
  2004. this.currentRow = row
  2005. // this.groupSelectRow = row
  2006. // this.sameRowArr.forEach((arr, i) => {
  2007. // if (arr.indexOf(row.index) != -1) {
  2008. // this.hoverOrderArr = arr
  2009. // }
  2010. // })
  2011. }
  2012. ,
  2013. cellMouseLeave: function(row, column, cell, event) {
  2014. this.hoverOrderArr = []
  2015. }
  2016. ,
  2017. handleStyle() {
  2018. let sameRowArr = [],
  2019. sIdx = 0
  2020. this.doctor_advices.forEach((item, index) => {
  2021. item.index = index
  2022. if (index === 0) {
  2023. sameRowArr.push([index])
  2024. } else {
  2025. if (item.created_time === this.doctor_advices[index - 1].created_time) {
  2026. sameRowArr[sIdx].push(index)
  2027. } else {
  2028. sIdx = sIdx + 1
  2029. sameRowArr.push([index])
  2030. }
  2031. }
  2032. })
  2033. this.sameRowArr = sameRowArr
  2034. }
  2035. ,
  2036. getAdviceContent(row, isChild) {
  2037. let tempSingleDoseDesc = ''
  2038. let tempDrugSpecDesc = ''
  2039. let tempPrescribingNumberDesc = ''
  2040. if (row.prescribing_number) {
  2041. tempPrescribingNumberDesc =
  2042. row.prescribing_number + '' + row.prescribing_number_unit
  2043. }
  2044. if (row.single_dose) {
  2045. if (this.template_id != 6) {
  2046. tempSingleDoseDesc =
  2047. ' 单次用量 ' + ' ' + row.single_dose + '' + row.single_dose_unit
  2048. } else {
  2049. tempSingleDoseDesc = row.single_dose + '' + row.single_dose_unit
  2050. }
  2051. }
  2052. if (row.advice_desc) {
  2053. tempDrugSpecDesc = '(' + row.advice_desc + row.drug_spec_unit + ')' + " " + row.remark
  2054. }
  2055. if (isChild == 1) {
  2056. // 不是子药
  2057. return (
  2058. row.advice_name +
  2059. tempDrugSpecDesc +
  2060. ' ' +
  2061. tempPrescribingNumberDesc +
  2062. tempSingleDoseDesc +
  2063. ' ' +
  2064. row.delivery_way +
  2065. ' ' +
  2066. row.execution_frequency
  2067. )
  2068. } else {
  2069. // 是子药
  2070. return (
  2071. row.advice_name +
  2072. tempDrugSpecDesc +
  2073. ' ' +
  2074. tempPrescribingNumberDesc +
  2075. tempSingleDoseDesc
  2076. )
  2077. }
  2078. }
  2079. ,
  2080. getPermission() {
  2081. request
  2082. .get('/api/func_per/get', {
  2083. params: {
  2084. create_url: '/api/patients/advice/creategroup?mode=1',
  2085. modify_url: '/api/patients/advice/edit?mode=2',
  2086. modify_other_url: '/api/patients/advice/edit?mode=3',
  2087. del_url: '/api/patients/advice/delete?mode=4',
  2088. del_other_url: '/api/patients/advice/delete?mode=5',
  2089. exce_url: '/api/patients/advice/exec?mode=6',
  2090. check_url: '/api/patients/advice/check?mode=7',
  2091. module: 4
  2092. }
  2093. })
  2094. .then(res => {
  2095. console.log(res)
  2096. if (res.data.state == 0) {
  2097. this.hasPermission = false
  2098. } else if (res.data.state == 1) {
  2099. this.is_has_create = res.data.data.is_has_create
  2100. this.is_has_exce = res.data.data.is_has_exce
  2101. this.is_has_check = res.data.data.is_has_check
  2102. this.is_has_modify = res.data.data.is_has_modify
  2103. this.is_has_modify_other = res.data.data.is_has_modify_other
  2104. this.is_has_modify_exce = res.data.data.is_has_modify_exce
  2105. this.is_has_del = res.data.data.is_has_del
  2106. this.is_has_del_other = res.data.data.is_has_del_other
  2107. }
  2108. })
  2109. }
  2110. ,
  2111. arraySpanMethod({ row, column, rowIndex, columnIndex }) {
  2112. if (rowIndex % 2 === 0) {
  2113. if (columnIndex === 0) {
  2114. return [1, 2]
  2115. } else if (columnIndex === 1) {
  2116. return [0, 0]
  2117. }
  2118. }
  2119. }
  2120. ,
  2121. handleCurrentChange(row) {
  2122. this.currentRow = row;
  2123. // this.groupSelectRow = row;
  2124. // this.sameRowArr.forEach((arr, i) => {
  2125. // if (arr.indexOf(row.index) != -1) {
  2126. // this.hoverOrderArr = arr;
  2127. // }
  2128. // });
  2129. },
  2130. objectSpanMethod({ row, column, rowIndex, columnIndex }) {
  2131. if (columnIndex === 0) {
  2132. if (rowIndex % 2 === 0) {
  2133. return {
  2134. rowspan: 2,
  2135. colspan: 1
  2136. }
  2137. } else {
  2138. return {
  2139. rowspan: 0,
  2140. colspan: 0
  2141. }
  2142. }
  2143. }
  2144. if (columnIndex === 1) {
  2145. if (rowIndex % 2 === 0) {
  2146. return {
  2147. rowspan: 2,
  2148. colspan: 1
  2149. }
  2150. } else {
  2151. return {
  2152. rowspan: 0,
  2153. colspan: 0
  2154. }
  2155. }
  2156. }
  2157. }
  2158. ,
  2159. GetLastOrNextDoctorAdvice(params) {
  2160. GetLastOrNextDoctorAdvice(params).then(response => {
  2161. if (response.data.state == 1) {
  2162. var doctor_advices = response.data.data.advices
  2163. console.log("doctor_advices",doctor_advices)
  2164. this.other_doctor_advices = doctor_advices
  2165. this.request_record_date = uParseTime(this.other_doctor_advices[0].record_date, '{y}-{m}-{d}')
  2166. this.sch = response.data.data.schedule
  2167. } else {
  2168. this.$message.error(response.data.msg)
  2169. }
  2170. })
  2171. },
  2172. getDialysisScheduleDetail() {
  2173. if(this.$route.query.showView && this.$route.query.showView == true){
  2174. return
  2175. }
  2176. getDialysisScheduleDetail(this.patientid, this.record_date).then(response => {
  2177. if (response.data.state == 1) {
  2178. var doctor_advices = response.data.data.doctor_advices
  2179. this.doctorAdvices = doctor_advices
  2180. }
  2181. })
  2182. }
  2183. ,
  2184. openLast(val) {
  2185. if (val == 1) {
  2186. this.isLastOrNextVisible = true
  2187. this.isVisibility = false
  2188. this.request_record_date = this.record_date
  2189. let params = {
  2190. patient_id: this.patientid,
  2191. record_time: this.request_record_date,
  2192. type: 1
  2193. }
  2194. this.GetLastOrNextDoctorAdvice(params)
  2195. } else if (val == 3) {
  2196. let params = {
  2197. patient_id: this.patientid,
  2198. record_time: this.request_record_date,
  2199. type: 1
  2200. }
  2201. this.GetLastOrNextDoctorAdvice(params)
  2202. }
  2203. },
  2204. openNext(val) {
  2205. if (val == 2) {
  2206. this.isLastOrNextVisible = true
  2207. this.isVisibility = false
  2208. this.request_record_date = this.record_date
  2209. let params = {
  2210. patient_id: this.patientid,
  2211. record_time: this.request_record_date,
  2212. type: 2
  2213. }
  2214. this.GetLastOrNextDoctorAdvice(params)
  2215. } else if (val == 4) {
  2216. let params = {
  2217. patient_id: this.patientid,
  2218. record_time: this.request_record_date,
  2219. type: 2
  2220. }
  2221. this.GetLastOrNextDoctorAdvice(params)
  2222. }
  2223. },
  2224. getSelfMedicalList(){
  2225. const params = {
  2226. patient_id:this.$route.query.patient_id
  2227. }
  2228. getSelfMedicalList(params).then(response=>{
  2229. if (response.data.state == 1) {
  2230. this.arr_drug = []
  2231. var medicalList = response.data.data.private_drug_list
  2232. var base_drug_list = response.data.data.base_drug_list
  2233. var base_drug_cofig = response.data.data.base_drug_config
  2234. var private_drug_cofig = response.data.data.private_drug_config
  2235. if(private_drug_cofig != null&&private_drug_cofig.drug_start == 1) {
  2236. for (let i = 0; i < medicalList.length; i++) {
  2237. if(medicalList[i].drug_specs != null) {
  2238. for (let a = 0; a < medicalList[i].drug_specs.length; a++) {
  2239. medicalList[i].drug_specs[a]['type'] = 2
  2240. }
  2241. }
  2242. let obj = {
  2243. drug_name: "",
  2244. drug_desc: "",
  2245. delivery_way: "",
  2246. execution_frequency: "",
  2247. single_dose: "",
  2248. single_dose_unit: "",
  2249. prescribing_number: "",
  2250. prescribing_number_unit: "",
  2251. type_id: "",
  2252. type: "",
  2253. custom_id: "",
  2254. drug_specs: [],
  2255. }
  2256. medicalList[i].drug_name = medicalList[i].drug_name + "(自备药)"
  2257. obj.drug_name = medicalList[i].drug_name
  2258. obj.delivery_way = medicalList[i].delivery_way
  2259. obj.execution_frequency = medicalList[i].execution_frequency
  2260. obj.single_dose = medicalList[i].single_dose
  2261. obj.prescribing_number = medicalList[i].prescribing_number
  2262. obj.type_id = medicalList[i].id
  2263. obj.type = 2
  2264. obj.custom_id = this.rand(10000000, 99999999)
  2265. obj.drug_specs = medicalList[i].drug_specs
  2266. // console.log("222",this.all_drug)
  2267. this.all_drug.push(obj)
  2268. }
  2269. }
  2270. for (let i = 0; i < base_drug_list.length; i++) {
  2271. if(base_drug_list[i].drug_specs != null) {
  2272. for (let a = 0; a < base_drug_list[i].drug_specs.length; a++) {
  2273. base_drug_list[i].drug_specs[a]['type'] = 1
  2274. }
  2275. }
  2276. let obj = {
  2277. drug_name: "",
  2278. drug_desc: "",
  2279. delivery_way: "",
  2280. execution_frequency: "",
  2281. single_dose: "",
  2282. single_dose_unit: "",
  2283. prescribing_number: "",
  2284. prescribing_number_unit: "",
  2285. type_id: "",
  2286. type: "",
  2287. custom_id: "",
  2288. drug_specs: [],
  2289. }
  2290. obj.drug_name = base_drug_list[i].drug_name
  2291. obj.delivery_way = base_drug_list[i].delivery_way
  2292. obj.execution_frequency = base_drug_list[i].execution_frequency
  2293. obj.single_dose = base_drug_list[i].single_dose
  2294. obj.prescribing_number = base_drug_list[i].prescribing_number
  2295. obj.type_id = base_drug_list[i].id
  2296. obj.type = 1
  2297. obj.custom_id = this.rand(10000000, 99999999)
  2298. obj.drug_specs = base_drug_list[i].drug_specs
  2299. this.all_drug.push(obj)
  2300. // console.log("2222",this.all_drug)
  2301. }
  2302. }
  2303. })
  2304. },
  2305. changeDrugName(name){
  2306. this.current_drug_name = name
  2307. this.form.advice_desc = ""
  2308. this.$forceUpdate()
  2309. this.drugSpec = []
  2310. for (let i = 0; i < this.all_drug.length; i++) {
  2311. if (this.all_drug[i].drug_name == name) {
  2312. this.drugSpec = this.all_drug[i].drug_specs
  2313. }
  2314. }
  2315. },
  2316. changeDrugDesc(name) {
  2317. this.$forceUpdate()
  2318. this.current_drug_spec = name
  2319. for (let i = 0; i < this.drugSpec.length; i++) {
  2320. if (this.drugSpec[i].drug_spec == name) {
  2321. this.form.advice_desc = this.drugSpec[i].drug_spec
  2322. this.form.prescribing_number = this.drugSpec[i].prescribing_number.toString()
  2323. this.form.single_dose = this.drugSpec[i].single_dose.toString()
  2324. this.form.delivery_way = this.drugSpec[i].delivery_way.toString()
  2325. this.form.execution_frequency = this.drugSpec[i].execution_frequency.toString()
  2326. this.form.drug_id = this.drugSpec[i].id
  2327. this.src_type = this.drugSpec[i].type
  2328. this.form.drug_id = this.drugSpec[i].id
  2329. this.form.way = this.drugSpec[i].type
  2330. this.form.drug_spec_unit = this.drugSpec[i].min_unit
  2331. this.form.prescribing_number_unit = this.drugSpec[i].min_unit
  2332. this.form.single_dose_unit = this.drugSpec[i].min_unit
  2333. if(this.drugSpec[i].drug_name_id){
  2334. this.form.drug_name_id = this.drugSpec[i].drug_name_id
  2335. }else{
  2336. this.form.drug_name_id = 0
  2337. }
  2338. }
  2339. }
  2340. },
  2341. rand(min, max) {
  2342. return Math.floor(Math.random() * (max - min)) + min;
  2343. },
  2344. querySearch(queryString, cb) {
  2345. console.log('queryString',queryString)
  2346. var restaurants = this.all_drug;
  2347. restaurants.map(item => {
  2348. item.value = item.drug_name
  2349. })
  2350. var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
  2351. // 调用 callback 返回建议列表的数据
  2352. console.log('results',results)
  2353. cb(results);
  2354. },
  2355. createFilter(queryString) {
  2356. return (restaurant) => {
  2357. return (restaurant.drug_name.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
  2358. };
  2359. },
  2360. querySearch1(queryString, cb) {
  2361. console.log('queryString',queryString)
  2362. var restaurants = this.drugSpec;
  2363. console.log(restaurants)
  2364. restaurants.map(item => {
  2365. item.value = item.drug_spec
  2366. })
  2367. var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
  2368. // 调用 callback 返回建议列表的数据
  2369. console.log('results',results)
  2370. cb(results);
  2371. },
  2372. handleSelect(){
  2373. }
  2374. },
  2375. created() {
  2376. var date = this.$route.query && this.$route.query.date
  2377. this.record_date = uParseTime(date, '{y}-{m}-{d}')
  2378. this.form.advice_date = this.record_date
  2379. this.getAdviceConfig()
  2380. this.unitsOption = getDataConfig('hemodialysis', 'units')
  2381. this.template_id = this.$store.getters.xt_user.template_info.template_id
  2382. this.patientid = this.$route.query.patient_id
  2383. this.request_record_date = this.record_date
  2384. this.getDialysisScheduleDetail()
  2385. //获取自备药
  2386. this.getSelfMedicalList()
  2387. },mounted(){
  2388. console.log("~~~~~")
  2389. console.log(this.his_is_open)
  2390. console.log("~~~~~")
  2391. },
  2392. components: {
  2393. AddGroupAdvice,
  2394. EditGroupAdvice
  2395. }
  2396. }
  2397. </script>
  2398. <style>
  2399. @import "../../../../../static/css/table_row.css";
  2400. .txsj {
  2401. text-align: center;
  2402. margin-bottom: 20px;
  2403. }
  2404. .dialysisadvicenamedisplay .cell {
  2405. float: left;
  2406. text-align: left;
  2407. }
  2408. </style>
  2409. <style lang="scss" scoped>
  2410. .table {
  2411. width: 100%;
  2412. .tableTh {
  2413. th {
  2414. padding: 10px 0px;
  2415. background-color: rgb(245, 247, 250);
  2416. color: #909399;
  2417. font-weight: bold;
  2418. text-align: center;
  2419. }
  2420. }
  2421. tr {
  2422. th {
  2423. /*/ / background: $ main-color;*/
  2424. /*/ / color: #fff;*/
  2425. /*/ / height: 1.2 rem;*/
  2426. /*/ / line-height: 1.2 rem;*/
  2427. /*/ /*/
  2428. }
  2429. td {
  2430. line-height: 0.6rem;
  2431. .txt {
  2432. /*/ / float: left;*/
  2433. padding: 0 10px 0 10px;
  2434. /*/ / width: 75 %;*/
  2435. text-align: left;
  2436. }
  2437. .ico {
  2438. float: right;
  2439. width: 60px;
  2440. text-align: right;
  2441. padding-right: 3px;
  2442. }
  2443. .iconfont {
  2444. font-size: 20px;
  2445. padding: 0 2px;
  2446. color: #7b8a97;
  2447. }
  2448. .handle {
  2449. color: #409eff;
  2450. /*/ / padding: 0 7 px;*/
  2451. }
  2452. }
  2453. .advice_content {
  2454. /*/ / background: #eff6fc;*/
  2455. }
  2456. .subadvice_content {
  2457. /*/ / background: #fafcfe;*/
  2458. padding-left: 20px;
  2459. }
  2460. .td-active {
  2461. background: #badcff !important;
  2462. }
  2463. }
  2464. .row-class-active {
  2465. td {
  2466. background: #badcff;
  2467. }
  2468. }
  2469. }
  2470. </style>
  2471. <!--<style scoped>-->
  2472. <!--.txsj{-->
  2473. <!--text-align: center;-->
  2474. <!--margin-bottom: 20px;-->
  2475. <!--}-->
  2476. <!--</style>-->
  2477. <!--<style rel="stylesheet/scss" lang="scss" >-->
  2478. <!--.row-class-active {-->
  2479. <!--background: #badcff;-->
  2480. <!--}-->
  2481. <!--.doctor-advice-box .current-box-class .current-row>td{-->
  2482. <!--background: #6fb5fa;-->
  2483. <!--color:#fff;-->
  2484. <!--}-->
  2485. <!--.doctor-advice-box .current-box-class .current-row:hover>td{-->
  2486. <!--background: #6fb5fa;-->
  2487. <!--}-->
  2488. <!--// .doctor-advice-box .current-box-class .stoped-row>td{-->
  2489. <!--// background: #c9c9c9;-->
  2490. <!--// color:#000;-->
  2491. <!--// }-->
  2492. <!--// .doctor-advice-box .current-box-class .stoped-row:hover>td{-->
  2493. <!--// background: #c9c9c9;-->
  2494. <!--// }-->
  2495. <!--</style>-->