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

DoctorAdviceDialog.vue 87KB

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