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

DoctorAdviceDialog.vue 88KB

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