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

DoctorAdviceDialog.vue 85KB

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