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

templateSummary.vue 76KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982
  1. <template>
  2. <div class="patient-container">
  3. <patient-sidebar :id="patient_id" defaultActive="1-9"></patient-sidebar>
  4. <div v-loading="loading">
  5. <div class="patient-app-container advice-container app-container">
  6. <div>
  7. <span style="margin-left: 10px;float:right;">
  8. <el-button type="primary" icon="el-icon-circle-plus-outline" size="small"
  9. @click="show_dialog = true">新增</el-button>
  10. <el-button type="primary" icon="el-icon-edit-outline" size="small"
  11. @click="showEdit">修改</el-button>
  12. <el-button type="primary" icon="el-icon-printer" size="small"
  13. @click="print">打印</el-button>
  14. <el-button size="small" type="danger" @click="deleteAction">删除</el-button>
  15. </span>
  16. </div>
  17. <!--<div></div>-->
  18. <div class="cell clearfix">
  19. <label class="title"><span class="name">日期查询</span> : </label>
  20. <el-date-picker v-model="start_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
  21. type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
  22. value-format="yyyy-MM-dd" @change="startTimeChange"></el-date-picker>
  23. <span class="">-</span>
  24. <el-date-picker v-model="end_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
  25. type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
  26. value-format="yyyy-MM-dd" @change="endTimeChange"></el-date-picker>
  27. </div>
  28. <div class="record">
  29. <el-row :gutter="15">
  30. <el-col :span="10">
  31. <el-table :header-cell-style="{
  32. backgroundColor: 'rgb(245, 247, 250)',
  33. color: '#606266'
  34. }"
  35. :row-style="{ color: '#303133' }" ref="inspection_table" :data="inspectionList"
  36. border highlight-current-row @current-change="changeCurrentRecordTwo"
  37. @selection-change="selectSummary"
  38. :row-class-name="tableRow"
  39. >
  40. <el-table-column type="selection" width="60" align="center"></el-table-column>
  41. <el-table-column label="阶段小结名称" align="center">
  42. <template slot-scope="scope">
  43. {{scope.row.title}}
  44. </template>
  45. </el-table-column>
  46. <el-table-column label="记录时间" align="center">
  47. <template slot-scope="scope">
  48. {{getTime(scope.row.record_time)}}
  49. </template>
  50. </el-table-column>
  51. <el-table-column label="记录医生" align="center">
  52. <template slot-scope="scope">
  53. {{getDoctor(scope.row.admin_user_id)}}
  54. </template>
  55. </el-table-column>
  56. </el-table>
  57. </el-col>
  58. <el-col :span="14">
  59. <div class="record_content_panel">
  60. <div style="background-color:rgb(245, 247, 250)" class="title">阶段小结内容</div>
  61. <div style="padding:10px;border-bottom:1px solid #DCDFE6;">阶段小结时间:<span v-if="editObj.record_time!=''">{{getTime(editObj.record_time)}}</span></div>
  62. <!-- <div style="padding: 10px 10px 0;">阶段小结概要:</div>
  63. <div style="padding:10px;border-bottom:1px solid #DCDFE6;">
  64. <span style="margin-right:10px;line-height:30px;">干体重(kg):{{editObj.dry_weight}}</span>
  65. <span style="margin-right:10px;line-height:30px;">共透析:{{editObj.dialysis_count}}次</span>
  66. <span style="margin-right:10px;line-height:30px;">HD:{{editObj.hd_count}}次</span>
  67. <br>
  68. <span style="margin-right:10px;line-height:30px;">HDF:{{editObj.hdf_count}}次</span>
  69. <span style="margin-right:10px;line-height:30px;">HP:{{editObj.hp_count}}次</span>
  70. <span style="margin-right:10px;line-height:30px;">其他:{{editObj.other_count}}次</span>
  71. <br>
  72. <span style="margin-right:10px;line-height:30px;">透析器:{{editObj.dialzer_apparatus}}</span>
  73. <span style="margin-right:10px;line-height:30px;">灌流器:{{editObj.perfusion_apparatus}}</span>
  74. <span style="margin-right:10px;line-height:30px;">抗凝剂:
  75. <span> {{getAnticoagulant(editObj.anticoagulant)}}</span>
  76. </span>
  77. <span style="margin-right:10px;line-height:30px;">透析液:(钾:{{editObj.kalium}} 钙:{{editObj.autunite}} Na:{{editObj.natrium}})</span>
  78. <br>
  79. <span style="margin-right:10px;line-height:30px;">每次透析:<span v-if="editObj.hour!=''"> {{editObj.hour}}小时</span>
  80. <span v-if="editObj.minute!=0">{{editObj.minute}}分</span></span>
  81. <span style="margin-right:10px;line-height:30px;">透前体重(kg):{{editObj.befor_weight}}</span>
  82. <span style="margin-right:10px;line-height:30px;">透后体重(kg):{{editObj.after_weight}}</span>
  83. <br>
  84. <span style="margin-right:10px;line-height:30px;">透前血压(mmHg):{{editObj.befor_pressure}}</span>
  85. <span style="margin-right:10px;line-height:30px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
  86. </div> -->
  87. <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结总结:
  88. <span v-html="editObj.template_summary_content"></span>
  89. </div>
  90. <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结化验结果:
  91. <div>
  92. <div v-for="item in editObj.template_inspection_content">
  93. <p style="font-weight: bold;margin: 10px 0;">{{ item.project_name }} 检查日期:{{getTime(item.arr[0].inspect_date)}}</p>
  94. <div style="display:flex;flex-wrap: wrap;">
  95. <div v-for="it in item.arr" style="width:33%;margin-bottom:5px;">
  96. {{ it.item_name }} <span v-if="it.unit!=''">[{{it.unit}}]</span>:
  97. {{it.inspect_value}}
  98. <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
  99. </span>
  100. <span v-if="parseInt(it.inspect_value) > parseInt(it.range_max)">
  101. </span>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. <!-- <div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:
  108. <span v-html="editObj.template_plan_content"></span>
  109. </div> -->
  110. </div>
  111. </el-col>
  112. </el-row>
  113. </div>
  114. </div>
  115. <el-dialog title="新增阶段小结" width="80%" top="5vh" :visible.sync="show_dialog">
  116. <div>
  117. <div class="new_record_form">
  118. <div class="cell clearfix">
  119. <el-form :model="form" ref="form">
  120. <el-row :gutter="24">
  121. <el-col :span="20">
  122. <el-form-item label="阶段小结名称:">
  123. <el-input v-model="form.title" style="width:200px"></el-input>
  124. </el-form-item>
  125. </el-col>
  126. </el-row>
  127. <!-- <el-row :gutter="24">
  128. <el-col :span="8">
  129. <el-form-item label="阶段小结时间:">
  130. <el-date-picker
  131. @change="changeStartYear"
  132. v-model="form.start_year"
  133. type="year"
  134. value-format="yyyy"
  135. placeholder="选择年">
  136. </el-date-picker>
  137. </el-form-item>
  138. </el-col>
  139. <el-col :span="8">
  140. <el-form-item>
  141. <el-radio-group v-model="form.radio">
  142. <el-radio :label="1" >月份</el-radio>
  143. <el-radio :label="2" >季度</el-radio>
  144. </el-radio-group>
  145. </el-form-item>
  146. </el-col>
  147. <el-col :span="8" v-if="form.radio == 1">
  148. <el-form-item>
  149. <el-date-picker
  150. @change="changeStartMonth"
  151. value-format="MM"
  152. v-model="form.start_month"
  153. type="month"
  154. placeholder="选择月">
  155. </el-date-picker>
  156. </el-form-item>
  157. </el-col>
  158. <el-col :span="8" v-if="form.radio == 2">
  159. <el-form-item>
  160. <el-select v-model="form.quarter" placeholder="请选择" @change="changeQuarter">
  161. <el-option
  162. v-for="item in timeType"
  163. :key="item.id"
  164. :label="item.name"
  165. :value="item.id">
  166. </el-option>
  167. </el-select>
  168. </el-form-item>
  169. </el-col>
  170. </el-row> -->
  171. </el-form>
  172. </div>
  173. <div class="cell clearfix" style="margin-top: 10px">
  174. <!-- <label class="title"><span class="name">阶段小结摘要</span> : </label> -->
  175. <el-form>
  176. <!-- <el-row :gutter="24">
  177. <el-col :span="8">
  178. <el-form-item label="干体重">
  179. <el-input v-model="form.dry_weight"></el-input>
  180. </el-form-item>
  181. </el-col>
  182. <el-col :span="8">
  183. <el-form-item label="共透析(次)">
  184. <el-input v-model="form.dialysis_count"></el-input>
  185. </el-form-item>
  186. </el-col>
  187. <el-col :span="8">
  188. <el-form-item label="HD(次)">
  189. <el-input v-model="form.hd_count"></el-input>
  190. </el-form-item>
  191. </el-col>
  192. </el-row>
  193. <el-row :gutter="24">
  194. <el-col :span="8">
  195. <el-form-item label="HDF(次)">
  196. <el-input v-model="form.hdf_count"></el-input>
  197. </el-form-item>
  198. </el-col>
  199. <el-col :span="8">
  200. <el-form-item label="HP(次)">
  201. <el-input v-model="form.hp_count"></el-input>
  202. </el-form-item>
  203. </el-col>
  204. <el-col :span="8">
  205. <el-form-item label="其他(次)">
  206. <el-input v-model="form.other_count"></el-input>
  207. </el-form-item>
  208. </el-col>
  209. </el-row>
  210. <el-row :gutter="24">
  211. <el-col :span="8">
  212. <el-form-item label="透析器">
  213. <el-input v-model="form.dialzer_apparatus" @focus="showInnerDialog('7')"></el-input>
  214. </el-form-item>
  215. </el-col>
  216. <el-col :span="8">
  217. <el-form-item label="灌流器">
  218. <el-input v-model="form.perfusion_apparatus" @focus="showInnerDialog('8')"></el-input>
  219. </el-form-item>
  220. </el-col>
  221. <el-col :span="8">
  222. <el-form-item label="抗凝剂">
  223. <el-select v-model="form.anticoagulant" placeholder="请选择" style="width:100%;">
  224. <el-option :key="0" label="请选择" :value="0"></el-option>
  225. <el-option v-for="(item, index) in anticoagulantList" :label="item.name" :key="index + 'e'"
  226. :value="item.id"></el-option>
  227. </el-select>
  228. </el-form-item>
  229. </el-col>
  230. </el-row>
  231. <div>透析液</div>
  232. <el-row :gutter="24">
  233. <el-col :span="8">
  234. <el-form-item label="钾">
  235. <el-input v-model="form.kalium"></el-input>
  236. </el-form-item>
  237. </el-col>
  238. <el-col :span="8">
  239. <el-form-item label="钙">
  240. <el-input v-model="form.autunite"></el-input>
  241. </el-form-item>
  242. </el-col>
  243. <el-col :span="8">
  244. <el-form-item label="钠">
  245. <el-input v-model="form.natrium"></el-input>
  246. </el-form-item>
  247. </el-col>
  248. </el-row>
  249. <div>透析时长</div>
  250. <el-row :gutter="24">
  251. <el-col :span="8">
  252. <el-form-item label="时">
  253. <el-input v-model="form.hour"></el-input>
  254. </el-form-item>
  255. </el-col>
  256. <el-col :span="8">
  257. <el-form-item label="分">
  258. <el-input v-model="form.minute"></el-input>
  259. </el-form-item>
  260. </el-col>
  261. </el-row>
  262. <el-row :gutter="24">
  263. <el-col :span="8">
  264. <el-form-item label="透前体重(kg)">
  265. <el-input v-model="form.befor_weight"></el-input>
  266. </el-form-item>
  267. </el-col>
  268. <el-col :span="8">
  269. <el-form-item label="透后体重(kg)">
  270. <el-input v-model="form.after_weight"></el-input>
  271. </el-form-item>
  272. </el-col>
  273. </el-row>
  274. <el-row :gutter="24">
  275. <el-col :span="8">
  276. <el-form-item label="透前血压(mmHg)">
  277. <el-input v-model="form.befor_pressure"></el-input>
  278. </el-form-item>
  279. </el-col>
  280. <el-col :span="8">
  281. <el-form-item label="透后血压(mmHg)">
  282. <el-input v-model="form.after_pressure"></el-input>
  283. </el-form-item>
  284. </el-col>
  285. </el-row> -->
  286. <el-row>
  287. <label class="title"><span class="name">阶段小结总结</span> : </label>
  288. <el-select v-model="form.template_summary_id" placeholder="请选择" @change="changeSummary">
  289. <el-option
  290. v-for="item in summaryList"
  291. :key="item.value"
  292. :label="item.content"
  293. :value="item.value">
  294. </el-option>
  295. </el-select>
  296. <keep-alive>
  297. <editor ref="edit_neditor"
  298. id="edit_editor1"
  299. style="width: 1200px"
  300. v-bind:r_content="form.template_summary_content">
  301. </editor>
  302. </keep-alive>
  303. <!-- <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_summary_content"></el-input> -->
  304. </el-row>
  305. <!-- <el-row>
  306. <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
  307. <el-select v-model="form.template_plan_id" placeholder="请选择" @change="changeTempalte">
  308. <el-option
  309. v-for="item in planList"
  310. :key="item.value"
  311. :label="item.content"
  312. :value="item.value">
  313. </el-option>
  314. </el-select>
  315. <keep-alive>
  316. <editor ref="edit_neditorOne"
  317. id="edit_editor"
  318. style="width: 800px"
  319. v-bind:r_content="form.template_plan_content">
  320. </editor>
  321. </keep-alive>
  322. </el-row> -->
  323. <el-row>
  324. <label class="title"><span class="name">阶段小结化验结果</span> : </label>
  325. <el-button type="primary" @click="toInspection">选择检验检查</el-button>
  326. <div class="borderBox">
  327. <div v-for="item in form.template_inspection_content">
  328. <p>{{ item.project_name }}</p>
  329. <div style="display:flex;flex-wrap: wrap;">
  330. <div v-for="it in item.arr" style="width:33%;">
  331. {{ it.item_name }} <span v-if="it.unit!=''"> [{{it.unit}}] </span>:
  332. {{it.inspect_value}}
  333. <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
  334. </span>
  335. <span v-if="parseInt(it.inspect_value) > parseInt(it.range_max)">
  336. </span>
  337. </div>
  338. </div>
  339. </div>
  340. </div>
  341. </el-row>
  342. <el-row style="margin:10px 0 0;">
  343. <el-col :span="8">
  344. <el-form-item label="记录医生">
  345. <el-select v-model="form.admin_user_id" placeholder="请选择">
  346. <el-option
  347. v-for="item in docList"
  348. :key="item.admin_user_id"
  349. :label="item.user_name"
  350. :value="item.admin_user_id">
  351. </el-option>
  352. </el-select>
  353. </el-form-item>
  354. </el-col>
  355. <el-col :span="8">
  356. <el-form-item label="记录时间">
  357. <el-date-picker
  358. v-model="form.record_time"
  359. type="datetime"
  360. value-format="yyyy-MM-dd HH:mm:ss"
  361. placeholder="选择日期时间">
  362. </el-date-picker>
  363. </el-form-item>
  364. </el-col>
  365. </el-row>
  366. </el-form>
  367. </div>
  368. <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
  369. <el-button @click="show_dialog = false">取消</el-button>
  370. <el-button type="primary" @click="saveCreation()">保存
  371. </el-button>
  372. </div>
  373. </div>
  374. </div>
  375. </el-dialog>
  376. <!-- 编辑阶段小结 -->
  377. <el-dialog title="编辑阶段小结" width="80%" top="5vh" :visible.sync="edit_show_dialog">
  378. <div>
  379. <div class="new_record_form">
  380. <div class="cell clearfix">
  381. <el-form :model="form" ref="form">
  382. <el-row :gutter="24">
  383. <el-col :span="20">
  384. <el-form-item label="阶段小结名称:">
  385. <el-input v-model="form.title" style="width:200px"></el-input>
  386. </el-form-item>
  387. </el-col>
  388. </el-row>
  389. <!-- <el-row :gutter="24">
  390. <el-col :span="8">
  391. <el-form-item label="阶段小结时间:">
  392. <el-date-picker
  393. v-model="form.start_year"
  394. type="year"
  395. value-format="yyyy-MM-dd"
  396. placeholder="选择年">
  397. </el-date-picker>
  398. </el-form-item>
  399. </el-col>
  400. <el-col :span="8">
  401. <el-form-item>
  402. <el-radio-group v-model="form.radio">
  403. <el-radio :label="1" >月份</el-radio>
  404. <el-radio :label="2" >季度</el-radio>
  405. </el-radio-group>
  406. </el-form-item>
  407. </el-col>
  408. <el-col :span="8" v-if="form.radio == 1">
  409. <el-form-item>
  410. <el-date-picker
  411. @change="changeStartMonth"
  412. value-format="MM"
  413. v-model="form.start_month"
  414. type="month"
  415. placeholder="选择月">
  416. </el-date-picker>
  417. </el-form-item>
  418. </el-col>
  419. <el-col :span="8" v-if="form.radio == 2">
  420. <el-form-item>
  421. <el-select v-model="form.quarter" placeholder="请选择" @change="changeQuarter">
  422. <el-option
  423. v-for="item in timeType"
  424. :key="item.id"
  425. :label="item.name"
  426. :value="item.id">
  427. </el-option>
  428. </el-select>
  429. </el-form-item>
  430. </el-col>
  431. </el-row> -->
  432. </el-form>
  433. </div>
  434. <div class="cell clearfix" style="margin-top: 10px">
  435. <!-- <label class="title"><span class="name">阶段小结摘要</span> : </label> -->
  436. <el-form>
  437. <!-- <el-row :gutter="24">
  438. <el-col :span="8">
  439. <el-form-item label="干体重">
  440. <el-input v-model="form.dry_weight"></el-input>
  441. </el-form-item>
  442. </el-col>
  443. <el-col :span="8">
  444. <el-form-item label="共透析(次)">
  445. <el-input v-model="form.dialysis_count"></el-input>
  446. </el-form-item>
  447. </el-col>
  448. <el-col :span="8">
  449. <el-form-item label="HD(次)">
  450. <el-input v-model="form.hd_count"></el-input>
  451. </el-form-item>
  452. </el-col>
  453. </el-row> -->
  454. <!-- <el-row :gutter="24">
  455. <el-col :span="8">
  456. <el-form-item label="HDF(次)">
  457. <el-input v-model="form.hdf_count"></el-input>
  458. </el-form-item>
  459. </el-col>
  460. <el-col :span="8">
  461. <el-form-item label="HP(次)">
  462. <el-input v-model="form.hp_count"></el-input>
  463. </el-form-item>
  464. </el-col>
  465. <el-col :span="8">
  466. <el-form-item label="其他(次)">
  467. <el-input v-model="form.other_count"></el-input>
  468. </el-form-item>
  469. </el-col>
  470. </el-row> -->
  471. <!-- <el-row :gutter="24">
  472. <el-col :span="8">
  473. <el-form-item label="透析器">
  474. <el-input v-model="form.dialzer_apparatus" @focus="showInnerDialog('7')"></el-input>
  475. </el-form-item>
  476. </el-col>
  477. <el-col :span="8">
  478. <el-form-item label="灌流器">
  479. <el-input v-model="form.perfusion_apparatus" @focus="showInnerDialog('8')"></el-input>
  480. </el-form-item>
  481. </el-col>
  482. <el-col :span="8">
  483. <el-form-item label="抗凝剂">
  484. <el-select v-model="form.anticoagulant" placeholder="请选择" style="width:100%;">
  485. <el-option :key="0" label="请选择" :value="0"></el-option>
  486. <el-option v-for="(item, index) in anticoagulantList" :label="item.name" :key="index + 'e'"
  487. :value="item.id"></el-option>
  488. </el-select>
  489. </el-form-item>
  490. </el-col>
  491. </el-row> -->
  492. <!-- <div>透析液</div>
  493. <el-row :gutter="24">
  494. <el-col :span="8">
  495. <el-form-item label="钾">
  496. <el-input v-model="form.kalium"></el-input>
  497. </el-form-item>
  498. </el-col>
  499. <el-col :span="8">
  500. <el-form-item label="钙">
  501. <el-input v-model="form.autunite"></el-input>
  502. </el-form-item>
  503. </el-col>
  504. <el-col :span="8">
  505. <el-form-item label="钠">
  506. <el-input v-model="form.natrium"></el-input>
  507. </el-form-item>
  508. </el-col>
  509. </el-row> -->
  510. <!-- <div>透析时长</div>
  511. <el-row :gutter="24">
  512. <el-col :span="8">
  513. <el-form-item label="时">
  514. <el-input v-model="form.hour"></el-input>
  515. </el-form-item>
  516. </el-col>
  517. <el-col :span="8">
  518. <el-form-item label="分">
  519. <el-input v-model="form.minute"></el-input>
  520. </el-form-item>
  521. </el-col>
  522. </el-row> -->
  523. <!-- <el-row :gutter="24">
  524. <el-col :span="8">
  525. <el-form-item label="透前体重(kg)">
  526. <el-input v-model="form.befor_weight"></el-input>
  527. </el-form-item>
  528. </el-col>
  529. <el-col :span="8">
  530. <el-form-item label="透后体重(kg)">
  531. <el-input v-model="form.after_weight"></el-input>
  532. </el-form-item>
  533. </el-col>
  534. </el-row> -->
  535. <!-- <el-row :gutter="24">
  536. <el-col :span="8">
  537. <el-form-item label="透前血压(mmHg)">
  538. <el-input v-model="form.befor_pressure"></el-input>
  539. </el-form-item>
  540. </el-col>
  541. <el-col :span="8">
  542. <el-form-item label="透后血压(mmHg)">
  543. <el-input v-model="form.after_pressure"></el-input>
  544. </el-form-item>
  545. </el-col>
  546. </el-row> -->
  547. <el-row>
  548. <label class="title"><span class="name">阶段小结总结</span> : </label>
  549. <el-select v-model="form.template_summary_id" placeholder="请选择" @change="changeSummaryOne">
  550. <el-option
  551. v-for="item in summaryList"
  552. :key="item.value"
  553. :label="item.content"
  554. :value="item.value">
  555. </el-option>
  556. </el-select>
  557. <keep-alive>
  558. <editor ref="edit_neditor"
  559. id="edit_editor2"
  560. style="width: 1200px"
  561. v-bind:r_content="form.template_summary_content">
  562. </editor>
  563. </keep-alive>
  564. <!-- <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_summary_content"></el-input> -->
  565. </el-row>
  566. <!-- <el-row>
  567. <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
  568. <el-select v-model="form.template_plan_id" placeholder="请选择" @change="changeTempalte">
  569. <el-option
  570. v-for="item in planList"
  571. :key="item.value"
  572. :label="item.content"
  573. :value="item.value">
  574. </el-option>
  575. </el-select>
  576. <keep-alive>
  577. <editor ref="editorOne"
  578. id="edit_editor"
  579. style="width: 800px"
  580. v-bind:r_content="form.template_plan_content">
  581. </editor>
  582. </keep-alive>
  583. </el-row> -->
  584. <el-row>
  585. <label class="title"><span class="name">阶段小结化验结果</span> : </label>
  586. <el-button type="primary" @click="toInspection">选择检验检查</el-button>
  587. <div class="borderBox">
  588. <div v-for="item in form.template_inspection_content">
  589. <p>{{ item.project_name }}</p>
  590. <div style="display:flex;flex-wrap: wrap;">
  591. <div v-for="it in item.arr" style="width:33%;">
  592. {{ it.item_name }} <span v-if="it.unit!=''"> [{{it.unit}}] </span>:
  593. {{it.inspect_value}}
  594. <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
  595. </span>
  596. <span v-if="parseInt(it.inspect_value) > parseInt(it.range_max)">
  597. </span>
  598. </div>
  599. </div>
  600. </div>
  601. </div>
  602. </el-row>
  603. <el-row style="margin-top:10px;">
  604. <el-col :span="8">
  605. <el-form-item label="记录医生">
  606. <el-select v-model="form.admin_user_id" placeholder="请选择">
  607. <el-option
  608. v-for="item in docList"
  609. :key="item.admin_user_id"
  610. :label="item.user_name"
  611. :value="item.admin_user_id">
  612. </el-option>
  613. </el-select>
  614. </el-form-item>
  615. </el-col>
  616. <el-col :span="8">
  617. <el-form-item label="记录时间">
  618. <el-date-picker
  619. v-model="form.record_time"
  620. type="datetime"
  621. value-format="yyyy-MM-dd HH:mm:ss"
  622. placeholder="选择日期时间">
  623. </el-date-picker>
  624. </el-form-item>
  625. </el-col>
  626. </el-row>
  627. </el-form>
  628. </div>
  629. <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
  630. <el-button @click="edit_show_dialog = false">取消</el-button>
  631. <el-button type="primary" @click="editCreation()">保存
  632. </el-button>
  633. </div>
  634. </div>
  635. </div>
  636. </el-dialog>
  637. <el-dialog
  638. title="提示"
  639. :visible.sync="dialogVisibleInspection"
  640. width="80%"
  641. >
  642. <span>
  643. <el-form>
  644. <el-row>
  645. <el-form-item>
  646. <span>选择检验检查时间:</span>
  647. <div>
  648. <el-form-item label="时间:">
  649. <el-radio-group style="padding: 10px;" v-model="radio" @change="changeRadio">
  650. <el-radio :label="1">月份</el-radio>
  651. <el-radio :label="2">季度</el-radio>
  652. </el-radio-group>
  653. </el-form-item>
  654. <el-form-item v-show="showquarty">
  655. <el-select v-model="quartype" placeholder="请选择" @change="changetype">
  656. <el-option
  657. v-for="item in quarterType"
  658. :key="item.id"
  659. :label="item.name"
  660. :value="item.id">
  661. </el-option>
  662. </el-select>
  663. </el-form-item>
  664. <el-form-item v-show="showtime">
  665. <el-date-picker
  666. @change="changeYear"
  667. v-model="startYear"
  668. class="timePicker"
  669. type="month"
  670. placeholder=""
  671. format="yyyy-MM"
  672. value-format="yyyy-MM">
  673. </el-date-picker>
  674. </el-form-item>
  675. <!-- <el-form-item label="月份:"
  676. prop="startYear"
  677. style="width:100%;">
  678. <el-date-picker
  679. v-model="startMonth"
  680. type="month"
  681. format="MM"
  682. value-format="MM"
  683. placeholder="请选择">
  684. </el-date-picker>
  685. </el-form-item> -->
  686. </div>
  687. </el-form-item>
  688. </el-row>
  689. <el-row>
  690. <span>选择检验检查项目:</span>
  691. <div class="record">
  692. <el-row :gutter="15">
  693. <el-col :span="10">
  694. <el-table :header-cell-style="{
  695. backgroundColor: 'rgb(245, 247, 250)',
  696. color: '#606266'
  697. }"
  698. :row-style="{ color: '#303133' }"
  699. ref="single_table"
  700. :data="tableList"
  701. border highlight-current-row
  702. @current-change="changeCurrentRecord"
  703. @selection-change="selectionChangeOne"
  704. :row-class-name="tableRow"
  705. @row-click="onRowClick"
  706. >
  707. <el-table-column type="selection" width="60" align="center"></el-table-column>
  708. <el-table-column label="检验项目" align="center">
  709. <template slot-scope="scope">
  710. {{scope.row.project_name}}
  711. </template>
  712. </el-table-column>
  713. </el-table>
  714. </el-col>
  715. <el-col :span="14">
  716. <div class="record_content_panel">
  717. <el-table :header-cell-style="{
  718. backgroundColor: 'rgb(245, 247, 250)',
  719. color: '#606266'
  720. }"
  721. :row-style="{ color: '#303133' }" :data="tableData"
  722. border highlight-current-row @current-change="didChangeCurrentRecord"
  723. @selection-change="selectionChange"
  724. :row-class-name="tableRow"
  725. >
  726. <el-table-column label="检验项目" align="center">
  727. <template slot-scope="scope">
  728. {{scope.row.item_name}}
  729. </template>
  730. </el-table-column>
  731. <el-table-column label="结果" align="center">
  732. <template slot-scope="scope">
  733. {{scope.row.inspect_value}}
  734. <span v-if="parseInt(scope.row.inspect_value) < parseInt(scope.row.range_min)">
  735. </span>
  736. <span v-if="parseInt(scope.row.inspect_value) > parseInt(scope.row.range_max)">
  737. </span>
  738. </template>
  739. </el-table-column>
  740. <el-table-column label="参考值" align="center">
  741. <template slot-scope="scope">
  742. {{scope.row.range_min}} ~ {{scope.row.range_max}}
  743. </template>
  744. </el-table-column>
  745. <el-table-column label="单位" align="center">
  746. <template slot-scope="scope">
  747. {{scope.row.unit}}
  748. </template>
  749. </el-table-column>
  750. </el-table>
  751. </div>
  752. </el-col>
  753. </el-row>
  754. </div>
  755. </el-row>
  756. </el-form>
  757. </span>
  758. <span slot="footer" class="dialog-footer">
  759. <el-button @click="dialogVisibleInspection = false">取 消</el-button>
  760. <el-button type="primary" @click="toContent">确 定</el-button>
  761. </span>
  762. </el-dialog>
  763. <multi-select-box
  764. :propsForm="InnerDialogProps"
  765. v-on:dialog-comfirm="innerDialogComfirm"
  766. v-on:dialog-cancle="innerDialogCancle"
  767. ></multi-select-box>
  768. </div>
  769. </div>
  770. <!-- </div> -->
  771. </template>
  772. <script>
  773. import PatientSidebar from './components/PatientSidebar'
  774. import Editor from '@/components/Editor'
  775. import { getInitDataList,getInspectionMajorItem,getInspectionDetail,getInspectionItemList,saveCreation,getTemplateSummaryList,getTemplateSummaryDetail,UpdateTemplateSummary,deleteSummary } from '@/api/patient'
  776. import { parseTime } from '@/utils'
  777. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  778. import { uParseTime } from '@/utils/tools'
  779. import { getDataConfig } from '@/utils/data'
  780. import multiSelectBox from '../dialysis/details/dialog/MultiSelectBox'
  781. import MsgTip from '../dialysis/details/dialog/MsgTip'
  782. const moment = require('moment')
  783. export default {
  784. name: 'templateSummary',
  785. components: {
  786. PatientSidebar,
  787. BreadCrumb,
  788. Editor,
  789. MsgTip,
  790. multiSelectBox,
  791. },
  792. data() {
  793. return {
  794. InnerDialogProps: {
  795. values: [],
  796. visibility: false,
  797. isShowTextArea: true,
  798. customContent: '',
  799. titles: '',
  800. type: '' // 不同弹框类型,用来匹配数据
  801. },
  802. loading: false,
  803. title: '',
  804. patient_id: 0,
  805. date: [],
  806. start_time: '',
  807. end_time: '',
  808. course_of_disease_time: '',
  809. records: [],
  810. doctors: [],
  811. current_select_record: null,
  812. show_dialog: false,
  813. show_edit_dialog: false,
  814. uploading_new_record: false,
  815. templates: this.$store.getters.configlist.course_disease,
  816. select_template: '',
  817. new_content: '',
  818. edit_new_content: '',
  819. edit_course_of_disease_time: '',
  820. selectingRows: [],
  821. table_current_index: -1,
  822. edit_current_id: 0,
  823. edit_title: '',
  824. value:'',
  825. form:{
  826. id:0,
  827. title:"",
  828. start_year:new Date(),
  829. start_month:new Date(),
  830. radio:1,
  831. quarter:1,
  832. dry_weight:"",
  833. dialysis_count:"",
  834. hd_count:"",
  835. hdf_count:"",
  836. hp_count:"",
  837. other_count:"",
  838. dialzer_apparatus:"",
  839. perfusion_apparatus:"",
  840. anticoagulant:"",
  841. kalium:"",
  842. autunite:"",
  843. natrium:"",
  844. hour:"",
  845. minute:"",
  846. befor_weight:"",
  847. after_weight:"",
  848. befor_pressure:"",
  849. after_pressure:"",
  850. template_summary_id:"",
  851. template_summary_content:"",
  852. template_plan_id:"",
  853. template_inspection_id:0,
  854. template_inspection_content:"",
  855. admin_user_id:this.$store.getters.xt_user.user.id,
  856. record_time: moment().locale('zh-cn').format('YYYY-MM-DD HH:mm:ss'),
  857. patient_id:"",
  858. start_time:"",
  859. end_time:"",
  860. template_plan_content:"",
  861. inspect_date:"",
  862. },
  863. timeType:[
  864. {id:1,name:"第一季度"},
  865. {id:2,name:"第二季度"},
  866. {id:3,name:"第三季度"},
  867. {id:4,name:"第四季度"},
  868. ],
  869. monthType:[
  870. {id:1,name:"一月"},
  871. {id:2,name:"二月"},
  872. {id:3,name:"三月"},
  873. {id:4,name:"四月"},
  874. {id:5,name:"五月"},
  875. {id:6,name:"六月"},
  876. {id:7,name:"七月"},
  877. {id:8,name:"八月"},
  878. {id:9,name:"九月"},
  879. {id:10,name:"十月"},
  880. {id:11,name:"十一月"},
  881. {id:12,name:"十二月"},
  882. ],
  883. options:[],
  884. dialogVisibleInspection:false,
  885. editDialogVisible:false,
  886. edit_show_dialog:false,
  887. InspectionMajor:[],
  888. other_start_time:"",
  889. startYear:moment(new Date()).endOf('month').subtract('month', +1).endOf('month').format("YYYY-MM-DD") ,
  890. // startMonth:(new Date().getMonth - 1).toString(),
  891. tableList:[],
  892. tableData:[],
  893. inspectDataList:[],
  894. projectList:[],
  895. docList:[],
  896. inspectionList:[],
  897. editObj:{},
  898. anticoagulantList:[],
  899. dialyzerPerfusionApparatus:[],
  900. irrigations:[],
  901. dialyzerList:[],
  902. irrigationList:[],
  903. stockType:[],
  904. summaryList:[],
  905. planList:[],
  906. projectStr:"",
  907. projectIndate:"",
  908. start_year:"2021",
  909. start_month:"",
  910. start_date: moment(new Date()).startOf("month").format("YYYY-MM-DD"),
  911. end_date: moment(new Date()).endOf('month').format("YYYY-MM-DD"),
  912. ids:"",
  913. lastYear:new moment().subtract(1,'months').date(1).format("YYYY-MM-DD"),
  914. quarterType: [
  915. { id: 1, name: "第一季度"},
  916. { id: 2, name: "第二季度"},
  917. { id: 3, name: "第三季度"},
  918. { id: 4, name: "第四季度"}
  919. ],
  920. quartype:1,
  921. radio:1,
  922. showtime:true,
  923. showquarty:false,
  924. }
  925. },
  926. created() {
  927. console.log("this.$store.getters.xt_user.user.id",this.$store.getters.xt_user.user.id)
  928. this.patient_id = this.$route.params && this.$route.params.id
  929. var now = new Date()
  930. this.date = [now.getTime() - (7 * 24 * 60 * 60 * 1000), now.getTime()]
  931. var nowDate = new Date()
  932. var nowYear = nowDate.getFullYear()
  933. var nowMonth = nowDate.getMonth() + 1
  934. var nowDay = nowDate.getDate()
  935. this.end_time =
  936. nowYear +
  937. '-' +
  938. (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
  939. '-' +
  940. (nowDay < 10 ? '0' + nowDay : nowDay)
  941. nowDate.setMonth(nowDate.getMonth() - 1)
  942. nowYear = nowDate.getFullYear()
  943. nowMonth = nowDate.getMonth() + 1
  944. nowDay = nowDate.getDate()
  945. this.start_time =
  946. nowYear +
  947. '-' +
  948. (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
  949. '-' +
  950. (nowDay < 10 ? '0' + nowDay : nowDay)
  951. this.other_start_time = nowYear +'-' +(nowMonth < 10 ? '0' + nowMonth : nowMonth) +'-' + (nowDay < 10 ? '0' + nowDay : nowDay)
  952. var anticoagulantsConfitOne = this.$store.getters.anticoagulants_confit
  953. const arrFour = []
  954. Object.keys(anticoagulantsConfitOne).map((item, index) => {
  955. if (index != 2) {
  956. arrFour.push(anticoagulantsConfitOne[item])
  957. }
  958. })
  959. this.anticoagulantList = arrFour
  960. console.log("抗凝剂量",this.anticoagulantList)
  961. var endtime= moment(new Date()).endOf('month').subtract('month', +1).endOf('month').format("YYYY-MM-DD")
  962. console.log("endtime",endtime)
  963. this.getlist()
  964. this.getInspectionMajor()
  965. this.getTemplateSummaryList()
  966. },
  967. methods: {
  968. getTime(val) {
  969. console.log("val2322332322323223",val)
  970. if(val == "" || val == undefined){
  971. return ""
  972. }else {
  973. return uParseTime(val, '{y}-{m}-{d}')
  974. }
  975. },
  976. getTimeTwo(val) {
  977. if(val == ""){
  978. return ""
  979. }else {
  980. return uParseTime(val, '{y}-{m}-{d} {h}:{i}:{s}')
  981. }
  982. },
  983. getTimeOne(val) {
  984. if(val < 0){
  985. return ""
  986. }
  987. if(val == ""){
  988. return ""
  989. }else {
  990. return uParseTime(val, '{m}')
  991. }
  992. },
  993. showEdit(){
  994. this.getCurrentRecordDetailOne()
  995. },
  996. onRowClick(){
  997. },
  998. didChangeCurrentRecord(){
  999. },
  1000. changeCurrentRecord(val){
  1001. this.tableData = []
  1002. this.getInspectionDetai(val)
  1003. },
  1004. selectionChangeOne(val){
  1005. // console.log("hhhhhhhhh",val)
  1006. this.getInspectionItemList(val)
  1007. },
  1008. startTimeChange(val){
  1009. console.log("val",val)
  1010. this.start_time = val
  1011. this.getTemplateSummaryList()
  1012. },
  1013. endTimeChange(val){
  1014. this.end_time = val
  1015. this.getTemplateSummaryList()
  1016. },
  1017. print(){
  1018. this.$router.push({path:"/patient/patient/templateSummary/print?id="+this.form.id})
  1019. },
  1020. tableRow(){
  1021. },
  1022. getQuarter(year,quarter){
  1023. var start_time = ""
  1024. if(quarter == 1){
  1025. }
  1026. },
  1027. didSelectionChange(){
  1028. },
  1029. changeCurrentRecordTwo(val){
  1030. console.log("val232232",val.id)
  1031. this.form.id = val.id
  1032. this.getCurrentRecordDetail(val.id)
  1033. },
  1034. changeCurrentRecordOne(){
  1035. },
  1036. getlist(){
  1037. var params={
  1038. start_year:this.getTime(this.form.start_year),
  1039. start_month:this.getTime(this.form.start_month),
  1040. quarter:this.form.quarter,
  1041. patient_id:this.patient_id,
  1042. start_time:this.start_date,
  1043. end_time:this.end_date,
  1044. }
  1045. // console.log("世纪时间",params)
  1046. console.log(moment(moment(2020 + '-01-01').toDate()).quarter(2).format("YYYY-MM-DD"))
  1047. getInitDataList(params).then(response=>{
  1048. if(response.data.state == 1){
  1049. var prescription_list = response.data.data.prescription_list
  1050. this.form.dialzer_apparatus = prescription_list.dialysis_dialyszers
  1051. this.form.perfusion_apparatus = prescription_list.dialysis_irrigation
  1052. this.form.anticoagulant = prescription_list.anticoagulant
  1053. this.form.hour = prescription_list.dialysis_duration_hour
  1054. this.form.minute = prescription_list.dialysis_duration_minute
  1055. this.form.kalium = prescription_list.kalium
  1056. this.form.natrium = prescription_list.sodium
  1057. this.form.autunite = prescription_list.calcium
  1058. var beforlist = response.data.data.beforlist
  1059. // console.log("透前数据565665565656",beforlist)
  1060. this.form.befor_weight = beforlist.weight_before
  1061. this.form.dry_weight = beforlist.dry_weight
  1062. var afterlist = response.data.data.after_list
  1063. // console.log("透后数据232332323232",afterlist)
  1064. this.form.after_weight = afterlist.weight_after
  1065. this.form.after_pressure = afterlist.systolic_blood_pressure + "/"+afterlist.diastolic_blood_pressure
  1066. this.form.befor_pressure = beforlist.systolic_blood_pressure +"/"+beforlist.diastolic_blood_pressure
  1067. var modelist = response.data.data.modelist
  1068. console.log("modelist",modelist)
  1069. var docList = response.data.data.docList
  1070. // console.log("doctlist",docList)
  1071. this.docList = docList
  1072. var stockType = response.data.data.stockType
  1073. var arr = []
  1074. var arrTwo = []
  1075. for(let i=0;i<stockType.length;i++){
  1076. if(stockType[i].stock_attribute == 2){
  1077. arr.push(stockType[i])
  1078. }
  1079. if(stockType[i].stock_attribute == 3){
  1080. arrTwo.push(stockType[i])
  1081. }
  1082. }
  1083. var dialyzator = []
  1084. var irrigation = []
  1085. for(let i=0;i<arr.length;i++){
  1086. for(let j=0;j<arr[i].GoodInfo.length;j++){
  1087. dialyzator.push(arr[i].GoodInfo[j])
  1088. }
  1089. }
  1090. this.dialyzerList = dialyzator
  1091. // console.log("arrtt2323232332232323",arrTwo)
  1092. for(let i=0;i<arrTwo.length;i++){
  1093. for(let j=0;j<arrTwo[i].GoodInfo.length;j++){
  1094. irrigation.push(arrTwo[i].GoodInfo[j])
  1095. }
  1096. }
  1097. this.irrigationList = irrigation
  1098. // console.log("透析器233223",this.dialyzerList)
  1099. // console.log("灌流器323323223",this.irrigationList)
  1100. var count = ""
  1101. var total_count = 0
  1102. for(let i=0;i<modelist.length;i++){
  1103. total_count += modelist[i].count
  1104. if(modelist[i].mode_id == 1){
  1105. this.form.hd_count = modelist[i].count
  1106. }
  1107. if(modelist[i].mode_id == 2){
  1108. this.form.hdf_count = modelist[i].count
  1109. }
  1110. if(modelist[i].mode_id == 4){
  1111. this.form.hp_count = modelist[i].count
  1112. }
  1113. if(modelist[i].mode_id!=1&&modelist[i].mode_id!=2 && modelist[i].mode_id!=4){
  1114. count += modelist[i].count
  1115. }
  1116. }
  1117. this.form.other_count = count
  1118. this.form.dialysis_count = total_count
  1119. // console.log("modelist",modelist)
  1120. var summaryList = response.data.data.summaryList
  1121. // console.log("summaryList",summaryList)
  1122. this.summaryList = summaryList
  1123. var planList = response.data.data.planList
  1124. // console.log("planlist",planList)
  1125. this.planList = planList
  1126. }
  1127. })
  1128. },
  1129. toInspection(){
  1130. this.dialogVisibleInspection = true
  1131. },
  1132. changetype(){
  1133. this.getInspectionMajor()
  1134. },
  1135. //获取大项数据来源
  1136. getInspectionMajor(){
  1137. var start_time = ""
  1138. var end_time = ""
  1139. console.log("radio2332322332",this.radio)
  1140. if(this.radio == 1){
  1141. console.log("start_year",this.startYear)
  1142. console.log("endyaer",this.lastYear)
  1143. end_time = this.startYear
  1144. start_time = this.lastYear
  1145. }
  1146. if(this.radio == 2){
  1147. if(this.quartype == 1){
  1148. start_time = moment().startOf('year').format('YYYY-MM-DD')
  1149. end_time = moment().month(2).endOf('month').format("YYYY-MM-DD")
  1150. }
  1151. if(this.quartype == 2){
  1152. start_time = moment().month(3).startOf('month').format("YYYY-MM-DD")
  1153. end_time = moment().month(5).endOf('month').format("YYYY-MM-DD")
  1154. }
  1155. if(this.quartype == 3){
  1156. start_time = moment().month(6).startOf('month').format("YYYY-MM-DD")
  1157. end_time = moment().month(8).endOf('month').format("YYYY-MM-DD")
  1158. }
  1159. if(this.quartype == 4){
  1160. start_time = moment().month(9).startOf('month').format("YYYY-MM-DD")
  1161. end_time = moment().month(11).endOf('month').format("YYYY-MM-DD")
  1162. }
  1163. }
  1164. console.log("start_time",start_time)
  1165. console.log("end_time",end_time)
  1166. var params = {
  1167. other_start_time:end_time,
  1168. patient_id:this.patient_id,
  1169. last_time:start_time,
  1170. }
  1171. console.log("开始数据",params)
  1172. getInspectionMajorItem(params).then(response=>{
  1173. if(response.data.state == 1){
  1174. var list = response.data.data.list
  1175. console.log("列表23232232323",list)
  1176. // this.$refs.single_table.setCurrentRow(list[0])
  1177. this.tableList = list
  1178. }
  1179. })
  1180. },
  1181. //获取小项的值
  1182. getInspectionDetai(val){
  1183. console.log("val2332232",val)
  1184. var params = {
  1185. project_id:val.project_id,
  1186. patient_id:val.patient_id,
  1187. inspect_date:val.inspect_date,
  1188. }
  1189. // console.log("param2233233223",params)
  1190. getInspectionDetail(params).then(response=>{
  1191. if(response.data.state ==1){
  1192. var list = response.data.data.list
  1193. // console.log("详情222",list)
  1194. this.tableData = list
  1195. }
  1196. })
  1197. },
  1198. selectionChange(val){
  1199. // console.log("val233223",val)
  1200. selectionChange().then(response=>{
  1201. })
  1202. },
  1203. getInspectionItemList(val){
  1204. this.projectList = []
  1205. this.inspectDataList = []
  1206. for(let i=0;i<val.length;i++){
  1207. this.projectList.push(val[i].project_id)
  1208. this.inspectDataList.push(val[i].inspect_date)
  1209. }
  1210. },
  1211. toContent(){
  1212. var str = this.projectList.join(",")
  1213. this.projectStr = str
  1214. var inspe_date = this.inspectDataList.join(",")
  1215. this.projectIndate = inspe_date
  1216. var params = {
  1217. ids:str,
  1218. inspect_date:inspe_date,
  1219. patient_id:this.patient_id,
  1220. }
  1221. // console.log("params",params)
  1222. getInspectionItemList(params).then(response=>{
  1223. if(response.data.state == 1){
  1224. var list = response.data.data.list
  1225. let arr = this.unique(list,'project_name')
  1226. // console.log("选择检验检查",arr)
  1227. this.form.template_inspection_content = arr
  1228. this.dialogVisibleInspection = false
  1229. }
  1230. })
  1231. },
  1232. saveCreation(){
  1233. if (this.form.dry_weight == ""){
  1234. this.form.dry_weight = 0
  1235. }
  1236. if (this.form.dialysis_count == ""){
  1237. this.form.dialysis_count = 0
  1238. }
  1239. if (this.form.hd_count == ""){
  1240. this.form.hd_count = 0
  1241. }
  1242. if (this.form.hdf_count == ""){
  1243. this.form.hdf_count = 0
  1244. }
  1245. if (this.form.hp_count == ""){
  1246. this.form.hp_count = 0
  1247. }
  1248. if (this.form.other_count == ""){
  1249. this.form.other_count = 0
  1250. }
  1251. if (this.form.kalium == ""){
  1252. this.form.kalium = 0
  1253. }
  1254. if (this.form.autunite == ""){
  1255. this.form.autunite = 0
  1256. }
  1257. if (this.form.natrium == ""){
  1258. this.form.natrium = 0
  1259. }
  1260. if (this.form.hour == ""){
  1261. this.form.hour = 0
  1262. }
  1263. if (this.form.minute == ""){
  1264. this.form.minute = 0
  1265. }
  1266. if(this.form.befor_weight == ""){
  1267. this.form.befor_weight = 0
  1268. }
  1269. if(this.form.after_weight == ""){
  1270. this.form.after_weight = 0
  1271. }
  1272. if(this.form.befor_pressure == ""){
  1273. this.form.befor_pressure = 0
  1274. }
  1275. if(this.form.template_plan_id == ""){
  1276. this.form.template_plan_id = 0
  1277. }
  1278. if(this.form.template_summary_id == ""){
  1279. this.form.template_summary_id = 0
  1280. }
  1281. var year = this.form.start_year+"-"+"01"+"-"+"01"
  1282. console.log("年",year)
  1283. var month = this.form.start_year+"-"+this.form.start_month+"-"+"01"
  1284. console.log("月",this.$refs)
  1285. var params = {
  1286. title:this.form.title,
  1287. dry_weight:this.form.dry_weight.toString(),
  1288. dialysis_count:parseInt(this.form.dialysis_count),
  1289. hd_count:parseInt(this.form.hd_count),
  1290. hdf_count:parseInt(this.form.hdf_count),
  1291. hp_count:parseInt(this.form.hp_count),
  1292. other_count:parseInt(this.form.other_count),
  1293. dialzer_apparatus:this.form.dialzer_apparatus,
  1294. perfusion_apparatus:this.form.perfusion_apparatus,
  1295. anticoagulant:this.form.anticoagulant,
  1296. kalium:this.form.kalium.toString(),
  1297. autunite:this.form.autunite.toString(),
  1298. natrium:this.form.natrium.toString(),
  1299. hour:parseInt(this.form.hour),
  1300. minute:parseInt(this.form.minute),
  1301. befor_weight:this.form.befor_weight.toString(),
  1302. after_weight:this.form.after_weight.toString(),
  1303. befor_pressure:this.form.befor_pressure,
  1304. template_plan_content:"",
  1305. admin_user_id:this.form.admin_user_id,
  1306. record_time:this.form.record_time,
  1307. after_pressure:this.form.after_pressure,
  1308. template_summary_id:this.form.template_summary_id,
  1309. template_summary_content:this.$refs.edit_neditor.content,
  1310. template_plan_id:this.form.template_plan_id,
  1311. template_inspection_id:this.form.template_inspection_id,
  1312. patient_id:parseInt(this.patient_id),
  1313. project_id:this.projectStr,
  1314. inspect_date:this.projectIndate,
  1315. start_year:year,
  1316. start_month:month,
  1317. radio:this.form.radio,
  1318. }
  1319. console.log("parawm232323223",params)
  1320. saveCreation(params).then(response=>{
  1321. if(response.data.state ==1){
  1322. var summary = response.data.data.summary
  1323. // console.log("summary",summary)
  1324. this.getTemplateSummaryList()
  1325. this.$message.success("保存成功!");
  1326. this.show_dialog = false
  1327. this.form.title = ""
  1328. this.form.dry_weight = ""
  1329. this.form.dialysis_count =""
  1330. this.form.hd_count= ""
  1331. this.form.hdf_count = ""
  1332. this.form.hp_count = ""
  1333. this.form.other_count =""
  1334. this.form.dialzer_apparatus = ""
  1335. this.form.perfusion_apparatus = ""
  1336. this.form.anticoagulant = ""
  1337. this.form.kalium = ""
  1338. this.form.autunite = ""
  1339. this.form.natrium = ""
  1340. this.form.hour =""
  1341. this.form.minute = ""
  1342. this.form.befor_weight = ""
  1343. this.form.after_weight = ""
  1344. this.form.befor_pressure = ""
  1345. this.form.template_summary_content = ""
  1346. this.form.template_plan_content = ""
  1347. this.form.template_inspection_content = ""
  1348. this.from.after_pressure = ""
  1349. this.form.template_summary_id = ""
  1350. this.form.template_plan_id = ""
  1351. this.form.template_inspection_id = ""
  1352. }
  1353. })
  1354. },
  1355. getTemplateSummaryList(){
  1356. var params = {
  1357. patient_id:this.patient_id,
  1358. start_time:this.start_time,
  1359. end_time:this.end_time,
  1360. }
  1361. console.log("param2222",params)
  1362. getTemplateSummaryList(params).then(response=>{
  1363. if(response.data.state ==1){
  1364. var list = response.data.data.list
  1365. this.inspectionList = list
  1366. this.$refs.inspection_table.setCurrentRow(this.inspectionList[0])
  1367. if (list.length > 0) {
  1368. this.getCurrentRecordDetail(this.inspectionList[0].id)
  1369. }
  1370. }
  1371. })
  1372. },
  1373. getCurrentRecordDetail(id){
  1374. var params = {
  1375. id:id
  1376. }
  1377. getTemplateSummaryDetail(params).then(response=>{
  1378. if(response.data.state == 1){
  1379. var list = response.data.data.list
  1380. var inspectlist = response.data.data.inspectlist
  1381. console.log("列表数据",list)
  1382. let arr = this.unique(inspectlist,'project_name')
  1383. console.log("内容233323232323223",arr)
  1384. list.template_inspection_content = arr
  1385. this.editObj = list
  1386. }
  1387. })
  1388. },
  1389. getTime(val) {
  1390. if(val < 0){
  1391. return ""
  1392. }
  1393. if(val == ""){
  1394. return ""
  1395. }else {
  1396. return uParseTime(val, '{y}-{m}-{d}')
  1397. }
  1398. },
  1399. showInnerDialog: function(val) {
  1400. this.InnerDialogProps.visibility = true
  1401. switch (val) {
  1402. case '7': // 透析器
  1403. for(let i=0;i<this.dialyzerList.length;i++){
  1404. this.dialyzerList[i].name = this.dialyzerList[i].specification_name
  1405. }
  1406. this.InnerDialogProps.values = this.dialyzerList
  1407. this.InnerDialogProps.titles = '透析器'
  1408. this.InnerDialogProps.type = 'dialyzers'
  1409. this.InnerDialogProps.selected = this.form.dialzer_apparatus
  1410. this.InnerDialogProps.isShowTextArea = false
  1411. break
  1412. case '8':
  1413. for(let i=0;i<this.irrigationList.length;i++){
  1414. this.irrigationList[i].name = this.irrigationList[i].specification_name
  1415. }
  1416. this.InnerDialogProps.values = this.irrigationList
  1417. this.InnerDialogProps.titles = '灌流器'
  1418. this.InnerDialogProps.type = 'irrigations'
  1419. this.InnerDialogProps.selected = this.form.perfusion_apparatus
  1420. this.InnerDialogProps.isShowTextArea = false
  1421. break
  1422. }
  1423. },
  1424. innerDialogComfirm: function(val) {
  1425. this.InnerDialogProps.visibility = false
  1426. switch (val.type) {
  1427. case 'dialyzers':
  1428. this.form.dialzer_apparatus = val.value.join(',')
  1429. break
  1430. case 'irrigations':
  1431. this.form.perfusion_apparatus = val.value.join(',')
  1432. break
  1433. }
  1434. },
  1435. innerDialogCancle: function() {
  1436. this.InnerDialogProps.visibility = false
  1437. },
  1438. getCurrentRecordDetailOne(){
  1439. var params = {
  1440. id:this.form.id
  1441. }
  1442. getTemplateSummaryDetail(params).then(response=>{
  1443. if(response.data.state == 1){
  1444. var list = response.data.data.list
  1445. var inspectlist = response.data.data.inspectlist
  1446. console.log("详情232332233223232323",list)
  1447. let arr = this.unique(inspectlist,'project_name')
  1448. this.form.template_inspection_content = arr
  1449. this.edit_show_dialog = true
  1450. this.form.title = list.title
  1451. this.form.id = list.id
  1452. this.form.admin_user_id = list.admin_user_id
  1453. this.form.after_pressure = list.after_pressure
  1454. this.form.after_weight = list.after_weight
  1455. this.form.anticoagulant = list.anticoagulant
  1456. this.form.autunite = list.autunite
  1457. this.form.befor_pressure = list.befor_pressure
  1458. this.projectIndate = list.inspect_date
  1459. if( list.befor_weight == 0){
  1460. this.form.befor_weight = ""
  1461. }else{
  1462. this.form.befor_weight = list.befor_weight
  1463. }
  1464. if(list.dialysis_count == 0){
  1465. this.form.dialysis_count = ""
  1466. }else{
  1467. this.form.dialysis_count = list.dialysis_count
  1468. }
  1469. this.form.dialzer_apparatus = list.dialzer_apparatus
  1470. this.form.dry_weight = list.dry_weight
  1471. this.form.hd_count= list.hd_count
  1472. this.form.hdf_count= list.hdf_count
  1473. this.form.hour = list.hour
  1474. this.form.hp_count = list.hp_count
  1475. this.form.kalium= list.kalium
  1476. this.form.minute = list.minute
  1477. this.form.natrium =list.natrium
  1478. this.form.perfusion_apparatus= list.perfusion_apparatus
  1479. this.form.other_count = list.other_count
  1480. console.log("时间232233232",list.record_time)
  1481. if(list.template_inspection_id == 0){
  1482. list.template_inspection_id = ""
  1483. }else{
  1484. this.form.template_inspection_id = list.template_inspection_id
  1485. }
  1486. this.form.template_plan_content = list.template_plan_content
  1487. if(list.template_plan_id == 0){
  1488. this.form.template_plan_id = ""
  1489. }else{
  1490. this.form.template_plan_id = list.template_plan_id
  1491. }
  1492. this.form.template_summary_content =list.template_summary_content
  1493. if(list.template_summary_id == 0){
  1494. this.form.template_summary_id = ""
  1495. }else{
  1496. this.form.template_summary_id = list.template_summary_id
  1497. }
  1498. this.projectStr = list.project_id
  1499. }
  1500. })
  1501. },
  1502. changeSummary(){
  1503. for(let i=0;i<this.summaryList.length;i++){
  1504. if(this.form.template_summary_id == this.summaryList[i].value){
  1505. this.form.template_summary_content = this.summaryList[i].content
  1506. }
  1507. }
  1508. },
  1509. changeSummaryOne(){
  1510. for(let i=0;i<this.summaryList.length;i++){
  1511. if(this.form.template_summary_id == this.summaryList[i].value){
  1512. this.form.template_summary_content = this.summaryList[i].content
  1513. }
  1514. }
  1515. },
  1516. changeTempalte(){
  1517. for(let i=0;i<this.planList.length;i++){
  1518. if(this.form.template_plan_id == this.planList[i].value){
  1519. this.form.template_plan_content = this.planList[i].content
  1520. }
  1521. }
  1522. },
  1523. editCreation(){
  1524. if(this.form.template_summary_id == ""){
  1525. this.form.template_summary_id = 0
  1526. }
  1527. if(this.form.template_inspection_id == ""){
  1528. this.form.template_inspection_id = 0
  1529. }
  1530. if(this.form.template_plan_id == ""){
  1531. this.form.template_plan_id = 0
  1532. }
  1533. if(this.form.dialysis_count == ""){
  1534. this.form.dialysis_count = 0
  1535. }
  1536. var params = {
  1537. id:this.form.id,
  1538. title:this.form.title,
  1539. dry_weight:this.form.dry_weight.toString(),
  1540. dialysis_count:parseInt(this.form.dialysis_count),
  1541. hd_count:parseInt(this.form.hd_count),
  1542. hdf_count:parseInt(this.form.hdf_count),
  1543. hp_count:parseInt(this.form.hp_count),
  1544. other_count:parseInt(this.form.other_count),
  1545. dialzer_apparatus:this.form.dialzer_apparatus,
  1546. perfusion_apparatus:this.form.perfusion_apparatus,
  1547. anticoagulant:this.form.anticoagulant,
  1548. kalium:this.form.kalium.toString(),
  1549. autunite:this.form.autunite.toString(),
  1550. natrium:this.form.natrium.toString(),
  1551. hour:parseInt(this.form.hour),
  1552. minute:parseInt(this.form.minute),
  1553. befor_weight:this.form.befor_weight.toString(),
  1554. after_weight:this.form.after_weight.toString(),
  1555. befor_pressure:this.form.befor_pressure,
  1556. template_plan_content:"",
  1557. template_summary_content:this.$refs.edit_neditor.content,
  1558. admin_user_id:this.form.admin_user_id,
  1559. record_time:this.form.record_time,
  1560. after_pressure:this.form.after_pressure,
  1561. template_summary_id:this.form.template_summary_id,
  1562. template_plan_id:this.form.template_plan_id,
  1563. template_inspection_id:this.form.template_inspection_id,
  1564. patient_id:parseInt(this.patient_id),
  1565. project_id:this.projectStr,
  1566. inspect_date:this.projectIndate,
  1567. }
  1568. console.log("parawm232323223",params)
  1569. UpdateTemplateSummary(params).then(response=>{
  1570. if(response.data.state == 1){
  1571. var list = response.data.data.list
  1572. this.$message.success("保存成功")
  1573. this.edit_show_dialog = false
  1574. this.getTemplateSummaryList()
  1575. }
  1576. })
  1577. },
  1578. unique(data, key) {
  1579. let lastData = [];
  1580. data.forEach(item => {
  1581. let status = lastData.some(project_name => project_name[key] == item[key]);
  1582. if (!status) {
  1583. let obj = {
  1584. project_name:'',
  1585. arr:[]
  1586. }
  1587. obj.project_name = item.project_name
  1588. obj.arr.push(item);
  1589. lastData.push(obj);
  1590. } else {
  1591. lastData.forEach((project_name, index) => {
  1592. if (project_name[key] === item[key]) {
  1593. project_name.arr.push(item);
  1594. }
  1595. });
  1596. }
  1597. });
  1598. return lastData;
  1599. },
  1600. getDoctor(id){
  1601. var user_name = ""
  1602. for(let i=0;i<this.docList.length;i++){
  1603. if(id == this.docList[i].admin_user_id){
  1604. user_name = this.docList[i].user_name
  1605. }
  1606. }
  1607. return user_name
  1608. },
  1609. changeStartYear(){
  1610. this.form.title = ""
  1611. this.form.dry_weight = ""
  1612. this.form.dialysis_count =""
  1613. this.form.hd_count= ""
  1614. this.form.hdf_count = ""
  1615. this.form.hp_count = ""
  1616. this.form.other_count =""
  1617. this.form.dialzer_apparatus = ""
  1618. this.form.perfusion_apparatus = ""
  1619. this.form.anticoagulant = ""
  1620. this.form.kalium = ""
  1621. this.form.autunite = ""
  1622. this.form.natrium = ""
  1623. this.form.hour =""
  1624. this.form.minute = ""
  1625. this.form.befor_weight = ""
  1626. this.form.after_weight = ""
  1627. this.form.befor_pressure = ""
  1628. this.form.template_summary_content = ""
  1629. this.form.template_plan_content = ""
  1630. this.form.template_inspection_content = ""
  1631. this.from.after_pressure = ""
  1632. this.form.template_summary_id = ""
  1633. this.form.template_plan_id = ""
  1634. this.form.template_inspection_id = ""
  1635. this.start_year = this.form.start_year
  1636. console.log("年份",this.form.start_year)
  1637. console.log("月份",this.getTimeOne(this.form.start_month))
  1638. var start = this.form.start_year + "-" + this.getTimeOne(this.form.start_month) + "-"+"01"
  1639. var end = this.form.start_year + "-" + this.getTimeOne(this.form.start_month) + "-"+"30"
  1640. this.start_date = start
  1641. this.end_date = end
  1642. this.getlist()
  1643. },
  1644. changeStartMonth(){
  1645. this.form.title = ""
  1646. this.form.dry_weight = ""
  1647. this.form.dialysis_count =""
  1648. this.form.hd_count= ""
  1649. this.form.hdf_count = ""
  1650. this.form.hp_count = ""
  1651. this.form.other_count =""
  1652. this.form.dialzer_apparatus = ""
  1653. this.form.perfusion_apparatus = ""
  1654. this.form.anticoagulant = ""
  1655. this.form.kalium = ""
  1656. this.form.autunite = ""
  1657. this.form.natrium = ""
  1658. this.form.hour =""
  1659. this.form.minute = ""
  1660. this.form.befor_weight = ""
  1661. this.form.after_weight = ""
  1662. this.form.befor_pressure = ""
  1663. this.form.template_summary_content = ""
  1664. this.form.template_plan_content = ""
  1665. this.form.template_inspection_content = ""
  1666. this.form.after_pressure = ""
  1667. this.form.template_summary_id = ""
  1668. this.form.template_plan_id = ""
  1669. this.form.template_inspection_id = ""
  1670. console.log("sart",this.form.start_month)
  1671. var end = ""
  1672. if(this.form.start_month == "02"){
  1673. end = this.start_year +"-"+ this.form.start_month + "-"+"28"
  1674. }else{
  1675. end = this.start_year +"-"+ this.form.start_month + "-"+"30"
  1676. }
  1677. var start = this.start_year +"-"+ this.form.start_month+"-"+"01"
  1678. this.start_date = start
  1679. this.end_date = end
  1680. console.log("开始时间",this.start_date)
  1681. console.log("结束时间",this.end_date)
  1682. this.getlist()
  1683. },
  1684. changeQuarter(val){
  1685. this.form.title = ""
  1686. this.form.dry_weight = ""
  1687. this.form.dialysis_count =""
  1688. this.form.hd_count= ""
  1689. this.form.hdf_count = ""
  1690. this.form.hp_count = ""
  1691. this.form.other_count =""
  1692. this.form.dialzer_apparatus = ""
  1693. this.form.perfusion_apparatus = ""
  1694. this.form.anticoagulant = ""
  1695. this.form.kalium = ""
  1696. this.form.autunite = ""
  1697. this.form.natrium = ""
  1698. this.form.hour =""
  1699. this.form.minute = ""
  1700. this.form.befor_weight = ""
  1701. this.form.after_weight = ""
  1702. this.form.befor_pressure = ""
  1703. this.form.template_summary_content = ""
  1704. this.form.template_plan_content = ""
  1705. this.form.template_inspection_content = ""
  1706. this.form.after_pressure = ""
  1707. this.form.template_summary_id = ""
  1708. this.form.template_plan_id = ""
  1709. this.form.template_inspection_id = ""
  1710. if(val == 1){
  1711. this.start_date = this.start_year+"-"+"01"+"-"+"01"
  1712. this.end_date = this.start_year +"-"+"03"+"-"+"31"
  1713. }
  1714. if(val == 2){
  1715. this.start_date = this.start_year +"-"+ "04"+"-"+"01"
  1716. this.end_date = this.start_year +"-"+ "06"+"-"+"30"
  1717. }
  1718. if(val == 3){
  1719. this.start_date = this.start_year +"-"+ "07"+"-"+"01"
  1720. this.end_date = this.start_year +"-"+ "09"+"-"+"30"
  1721. }
  1722. if(val == 4){
  1723. this.start_date = this.start_year +"-"+ "09"+"-"+"01"
  1724. this.end_date = this.start_year +"-"+ "12"+"-"+"31"
  1725. }
  1726. this.getlist()
  1727. },
  1728. getAnticoagulant(id){
  1729. var name = ""
  1730. for(let i=0;i<this.anticoagulantList.length;i++){
  1731. if(id == this.anticoagulantList[i].id){
  1732. name = this.anticoagulantList[i].name
  1733. }
  1734. }
  1735. return name
  1736. },
  1737. changeYear(val){
  1738. console.log("val2323323223",val)
  1739. if(val == "2021-02"){
  1740. this.startYear = val+"-" + "28"
  1741. }else if(val == "2021-08"){
  1742. this.startYear = val+"-" + "31"
  1743. }else if(val == "2021-10"){
  1744. this.startYear = val+"-" + "31"
  1745. }else if(val == "2021-12"){
  1746. this.startYear = val+"-" + "31"
  1747. }else{
  1748. this.startYear = val+"-" + "30"
  1749. }
  1750. this.lastYear = val+"-"+"01"
  1751. this.getInspectionMajor()
  1752. },
  1753. selectSummary(val){
  1754. console.log("val23232",val)
  1755. var arr = []
  1756. for( let i=0;i<val.length;i++){
  1757. arr.push(val[i].id)
  1758. }
  1759. var str = arr.join(",")
  1760. console.log("str",str)
  1761. this.ids = str
  1762. },
  1763. deleteAction(){
  1764. if(this.ids == ""){
  1765. this.$message.error("请勾选需要删除的数据")
  1766. return
  1767. }
  1768. this.$confirm('确认删除这条记录?', '删除记录', {
  1769. confirmButtonText: '确定',
  1770. cancelButtonText: '取消',
  1771. type: 'warning'
  1772. }).then(() => {
  1773. let params = {
  1774. ids: this.ids,
  1775. }
  1776. console.log("params2323",params)
  1777. deleteSummary(params).then(response => {
  1778. if (response.data.state == 0) {
  1779. this.$message.error(response.data.msg)
  1780. return false
  1781. } else {
  1782. var msg =response.data.data.msg
  1783. this.getTemplateSummaryList()
  1784. }
  1785. })
  1786. })
  1787. .catch(() => {
  1788. })
  1789. },
  1790. changeRadio(val){
  1791. if(val == 1){
  1792. this.showtime = true
  1793. this.showquarty = false
  1794. this.getInspectionMajor()
  1795. }
  1796. if(val == 2){
  1797. this.showquarty = true
  1798. this.showtime = false
  1799. this.getInspectionMajor()
  1800. }
  1801. }
  1802. },
  1803. // watch: {
  1804. // inspectionList: function() {
  1805. // this.$nextTick(function() {
  1806. // this.$refs.inspection_table.setCurrentRow(this.inspectionList[0])
  1807. // })
  1808. // },
  1809. // },
  1810. }
  1811. </script>
  1812. <style rel="stylesheet/css" lang="scss" scoped>
  1813. .borderBox{
  1814. border: 1px solid #DCDFE6;
  1815. padding: 10px;
  1816. margin-top: 10px;
  1817. border-radius: 4px;
  1818. p{
  1819. font-weight: bold;
  1820. font-size: 20px;
  1821. margin: 10px 0;
  1822. }
  1823. }
  1824. .container {
  1825. margin-left: 180px;
  1826. padding: 20px;
  1827. background: #fff;
  1828. min-height: calc(100vh - 173px);
  1829. margin-bottom: 15px;
  1830. .record {
  1831. padding-top: 20px;
  1832. }
  1833. }
  1834. .record_content_panel {
  1835. border-width: 1px;
  1836. border-style: solid;
  1837. border-color: #ebeef5;
  1838. min-height: 200px;
  1839. .title {
  1840. font-size: 14px;
  1841. font-weight: 500;
  1842. color: #909399;
  1843. line-height: 44px;
  1844. height: 44px;
  1845. text-align: center;
  1846. border-bottom-width: 1px;
  1847. border-bottom-style: solid;
  1848. border-bottom-color: #ebeef5;
  1849. }
  1850. .content {
  1851. padding: 12px 15px;
  1852. font-size: 15px;
  1853. color: gray;
  1854. line-height: 22px;
  1855. }
  1856. }
  1857. .new_record_form {
  1858. /*/ / padding: 10 px, 25 px;*/
  1859. .textarea_panel {
  1860. margin-top: 10px;
  1861. }
  1862. }
  1863. </style>
  1864. <style>
  1865. .el-table td,
  1866. .el-table th.is-leaf,
  1867. .el-table--border,
  1868. .el-table--group {
  1869. border-color: #d0d3da;
  1870. }
  1871. .el-table--border::after,
  1872. .el-table--group::after,
  1873. .el-table::before {
  1874. background-color: #d0d3da;
  1875. }
  1876. .el-select-dropdown {
  1877. max-width: 1000px !important;
  1878. }
  1879. </style>