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

PatientForm.vue 69KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074
  1. <template>
  2. <!-- 电子病历/新增患者 -->
  3. <div class="main-contain">
  4. <!-- 传染病(已隐藏) -->
  5. <el-dialog
  6. title="新增传染病检查"
  7. :visible.sync="dialogFormVisible"
  8. width="1000px"
  9. id="user-inspection-form"
  10. v-loading="formLoading"
  11. >
  12. <el-form :model="form" ref="form" label-position="top">
  13. <el-row>
  14. <el-col :span="1">&nbsp;</el-col>
  15. <template v-for="(item, index) in form.formItem">
  16. <el-col :span="7" ><!--:key="index"-->
  17. <el-form-item
  18. :label="item.item_name"
  19. v-if="item.range_type == 1"
  20. :key="item.item_id"
  21. :prop="'formItem.' + index + '.value'"
  22. >
  23. <el-input
  24. placeholder="请填入"
  25. v-model="item.value"
  26. style="width:95%"
  27. type="number"
  28. >
  29. <template slot="append">{{ item.unit }}</template>
  30. </el-input>
  31. </el-form-item><!--:key="item.item_id"-->
  32. <el-form-item
  33. :label="item.item_name"
  34. v-else
  35. :prop="'formItem.' + index + '.value'"
  36. >
  37. <el-select
  38. v-model="item.value"
  39. placeholder="请选择"
  40. style="width:95%"
  41. >
  42. <el-option
  43. v-for="(optionItem, oidex) in item.select_options"
  44. :key="oidex"
  45. :label="optionItem"
  46. :value="optionItem"
  47. ></el-option>
  48. </el-select>
  49. </el-form-item>
  50. </el-col>
  51. <el-col :span="1" >&nbsp;</el-col><!--:key="'form-col' + index"-->
  52. </template>
  53. </el-row>
  54. </el-form>
  55. <div slot="footer" class="dialog-footer">
  56. <el-button @click="dialogFormVisible = false">取 消</el-button>
  57. <el-button type="primary" @click="submitNew('form')">保 存</el-button>
  58. </div>
  59. </el-dialog>
  60. <div v-if="!isEdit" class="position">
  61. <bread-crumb :crumbs="crumbs"></bread-crumb>
  62. <div class style="float:right;color: white">
  63. <el-button
  64. :disabled="
  65. $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
  66. ? true
  67. : false
  68. "
  69. type="primary"
  70. v-if="this.isEdit == false"
  71. @click="resetForm('form')"
  72. icon="el-icon-circle-plus-outline"
  73. size="small"
  74. >新增</el-button
  75. >
  76. </div>
  77. </div>
  78. <div
  79. v-if="isEdit"
  80. class
  81. style="float:right;margin-right: 35px;margin-top: 10px"
  82. >
  83. <!-- <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
  84. <el-button :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" type="primary" v-if="this.isEdit==false" @click="resetForm('form')" icon="el-icon-circle-plus-outline" size="small">新增</el-button>
  85. <el-button :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" @click="onSubmit('form')" size="small" type="success" icon="el-icon-setting" >保存</el-button>
  86. <el-button v-if="isEdit==false" @click="onReSubmit('form')" :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" icon="el-icon-document-add" size="small" type="warning" >保存并继续新增</el-button>-->
  87. </div>
  88. <div class="app-container" v-loading="pageLoad">
  89. <el-form
  90. ref="form"
  91. :rules="rules"
  92. :model="form"
  93. label-width="124px"
  94. class="clearfix"
  95. popper-append-to-body="false"
  96. >
  97. <div class="dataTitle">一般资料</div>
  98. <el-row>
  99. <el-col :span="20" class="form-table">
  100. <el-row :span="20">
  101. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  102. <el-form-item label="姓名 : " class="is-required" prop="name">
  103. <el-input v-model="form.name"></el-input>
  104. </el-form-item>
  105. </el-col>
  106. <el-col
  107. :span="8"
  108. :style="isEdit ? 'width:360px' : ''"
  109. style="height:59px;"
  110. >
  111. <el-form-item label="性别 : " class="is-required" prop="gender">
  112. <el-radio-group v-model="form.gender" @change="changeGender">
  113. <el-radio
  114. v-for="item in sexOptions"
  115. :key="item.value"
  116. :label="item.value"
  117. :value="item.value"
  118. >{{ item.label }}</el-radio
  119. >
  120. </el-radio-group>
  121. </el-form-item>
  122. </el-col>
  123. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  124. <el-form-item
  125. label="身份证号 : "
  126. class="is-required"
  127. prop="idCardNo"
  128. >
  129. <el-input
  130. v-model="form.idCardNo"
  131. @blur="checkIdCardNo"
  132. ></el-input><!---->
  133. </el-form-item>
  134. </el-col>
  135. <el-col
  136. :span="8"
  137. :style="isEdit ? 'width:360px' : ''"
  138. style="height:59px;"
  139. >
  140. <el-form-item label="年龄 : " class="is-required" prop="age">
  141. <el-input
  142. v-model="form.age"
  143. placeholder="请填写年龄"
  144. ></el-input>
  145. </el-form-item>
  146. </el-col>
  147. <template v-if="isEdit">
  148. <!-- <el-col :span="8" :style="isEdit?'width:360px':''">
  149. <el-form-item label="患者类型 : " class="is-required" >
  150. <el-select v-model="form.patientType" placeholder="请选择患者类型" disabled >
  151. <el-option v-for="item in styleOptions" :key="item.id" :label="item.name" :value="item.id"/>
  152. </el-select>
  153. </el-form-item>
  154. </el-col>-->
  155. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  156. <el-form-item label="透析号 : " class="is-required">
  157. <el-input
  158. v-model="form.dialysisNo"
  159. placeholder="填写或自动生成"
  160. style="width:62%;float:left;margin-right: 2%;"
  161. ></el-input>
  162. <!-- <el-button style="width:36%;padding:10px 0;" disabled type="primary">自动生成</el-button> -->
  163. </el-form-item>
  164. </el-col>
  165. </template>
  166. <template v-else>
  167. <el-col :span="8">
  168. <el-form-item
  169. label="透析号 : "
  170. class="is-required"
  171. prop="dialysisNo"
  172. >
  173. <el-input
  174. v-model="form.dialysisNo"
  175. placeholder="填写或自动生成"
  176. style="width:62%;float:left;margin-right: 2%;"
  177. ></el-input>
  178. <el-button
  179. style="width:35%;padding:10px 0;"
  180. :disabled="
  181. $store.getters.xt_user.subscibe.state == 3 ||
  182. !subscibeFlag
  183. ? true
  184. : false
  185. "
  186. type="primary"
  187. @click="generatedialysisno"
  188. >自动生成</el-button
  189. >
  190. </el-form-item>
  191. </el-col>
  192. </template>
  193. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  194. <el-form-item
  195. label="出生日期 : "
  196. class="is-required"
  197. prop="birth"
  198. >
  199. <el-date-picker
  200. v-model="form.birth"
  201. type="date"
  202. placeholder="选择日期"
  203. :suffix-icon="'el-icon-menu'"
  204. @change="hadSelectBirth"
  205. format="yyyy-MM-dd"
  206. value-format="yyyy-MM-dd"
  207. ></el-date-picker>
  208. </el-form-item>
  209. </el-col>
  210. <el-col :span="6" :style="isEdit ? 'width:380px' : ''" v-if="org_id!=0 && org_id!=10138 && org_id!=10278">
  211. <el-form-item
  212. label="首次肾脏治疗时间:"
  213. prop="firstDialysisDate"
  214. label-width="150px"
  215. >
  216. <el-date-picker
  217. v-model="form.firstDialysisDate"
  218. type="date"
  219. format="yyyy-MM-dd"
  220. value-format="yyyy-MM-dd"
  221. ></el-date-picker>
  222. </el-form-item>
  223. </el-col>
  224. <el-col :span="6" :style="isEdit ? 'width:380px' : ''" v-if="org_id==0||org_id == 10138 || org_id == 10278">
  225. <el-form-item
  226. label="首次进入本院时间:"
  227. prop="firstDialysisDate"
  228. label-width="150px"
  229. >
  230. <el-date-picker
  231. v-model="form.firstDialysisDate"
  232. type="date"
  233. format="yyyy-MM-dd"
  234. value-format="yyyy-MM-dd"
  235. ></el-date-picker>
  236. </el-form-item>
  237. </el-col>
  238. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  239. <el-form-item
  240. label="本人电话 : "
  241. class="is-required"
  242. prop="phone"
  243. >
  244. <el-input v-model="form.phone" maxlength="20"></el-input>
  245. </el-form-item>
  246. </el-col>
  247. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  248. <el-form-item label="家属姓名 : ">
  249. <el-input
  250. v-model="form.contact_name"
  251. maxlength="20"
  252. ></el-input>
  253. </el-form-item>
  254. </el-col>
  255. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  256. <el-form-item label="家属电话 : " prop="homeTelephone" class="is-required">
  257. <el-input
  258. v-model="form.homeTelephone"
  259. maxlength="20"
  260. ></el-input>
  261. </el-form-item>
  262. </el-col>
  263. <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
  264. <el-form-item
  265. label="本院首次透析 : "
  266. prop="is_hospital_first_dialysis"
  267. >
  268. <el-radio-group v-model="form.is_hospital_first_dialysis">
  269. <el-radio
  270. v-for="item in isHospitalFirstDialysisOptions"
  271. :key="item.value"
  272. :label="item.value"
  273. :value="item.value"
  274. >{{ item.label }}</el-radio
  275. >
  276. </el-radio-group>
  277. </el-form-item>
  278. </el-col>
  279. <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
  280. <el-form-item
  281. label="系统前透析次数 : "
  282. prop="user_sys_before_count"
  283. >
  284. <el-input v-model="form.user_sys_before_count"></el-input>
  285. </el-form-item>
  286. </el-col>
  287. <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
  288. <el-form-item label="首次透析时间 : ">
  289. <el-date-picker
  290. v-model="form.first_treatment_date"
  291. type="date"
  292. format="yyyy-MM-dd"
  293. value-format="yyyy-MM-dd"
  294. ></el-date-picker>
  295. </el-form-item>
  296. </el-col>
  297. <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
  298. <el-form-item
  299. label="上家透析医院 : "
  300. prop="first_dialysis_hospital"
  301. >
  302. <el-input v-model="form.first_dialysis_hospital"></el-input>
  303. </el-form-item>
  304. </el-col>
  305. <el-col :span="24">
  306. <el-form-item
  307. label="透析之前情况 : "
  308. prop="predialysis_condition"
  309. >
  310. <el-checkbox-group v-model="form.predialysis_condition">
  311. <el-checkbox
  312. v-for="item in predialysisConditionOptions"
  313. :label="item.label"
  314. :key="item.value"
  315. :value="item.label"
  316. >{{ item.label }}</el-checkbox
  317. >
  318. </el-checkbox-group>
  319. </el-form-item>
  320. </el-col>
  321. <el-col :span="24">
  322. <el-form-item label="病历号 : " prop="record_number">
  323. <el-input
  324. style="width: 200px;"
  325. v-model="form.record_number"
  326. ></el-input>
  327. </el-form-item>
  328. </el-col>
  329. <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
  330. <el-form-item
  331. label="本院前透析频率 : "
  332. prop="pre_hospital_dialysis_frequency"
  333. >
  334. <el-input
  335. v-model="form.pre_hospital_dialysis_frequency"
  336. ></el-input>
  337. </el-form-item>
  338. </el-col>
  339. <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
  340. <el-form-item
  341. label="本院前透析次数 : "
  342. prop="pre_hospital_dialysis_times"
  343. >
  344. <el-input v-model="form.pre_hospital_dialysis_times"></el-input>
  345. </el-form-item>
  346. </el-col>
  347. <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
  348. <el-form-item
  349. label="本院首次透析 : "
  350. prop="hospital_first_dialysis_date"
  351. >
  352. <el-date-picker
  353. v-model="form.hospital_first_dialysis_date"
  354. type="date"
  355. format="yyyy-MM-dd"
  356. value-format="yyyy-MM-dd"
  357. ></el-date-picker>
  358. </el-form-item>
  359. </el-col>
  360. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  361. <el-form-item
  362. label="患者来源 : "
  363. class="is-required"
  364. prop="source"
  365. >
  366. <el-radio-group v-model="form.source">
  367. <el-radio
  368. v-for="item in sourceOptions"
  369. :key="item.value"
  370. :label="item.value"
  371. :value="item.value"
  372. >{{ item.label }}</el-radio
  373. >
  374. </el-radio-group>
  375. </el-form-item>
  376. </el-col>
  377. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  378. <el-form-item
  379. label="患者去向 : "
  380. >
  381. <el-radio-group v-model="form.patient_source">
  382. <el-radio
  383. v-for="item in patientSourceList"
  384. :key="item.value"
  385. :label="item.value"
  386. :value="item.value"
  387. >{{ item.label }}</el-radio
  388. >
  389. </el-radio-group>
  390. </el-form-item>
  391. </el-col>
  392. <el-col :span="8" style="margin-bottom: 20px;" :style="isEdit ? 'width:360px' : ''">
  393. <el-form-item
  394. label="备注 : "
  395. prop="sch_remark">
  396. <el-input
  397. type="textarea"
  398. :rows="3"
  399. v-model="form.sch_remark"
  400. resize="none"
  401. placeholder
  402. ></el-input>
  403. </el-form-item>
  404. </el-col>
  405. <el-col :span="24" :style="isEdit ? 'width:360px' : ''" v-show="showLapseto">
  406. <el-form-item
  407. label="治疗状态(转归) : "
  408. class="is-required"
  409. prop="lapseto"
  410. >
  411. <el-radio-group v-model="form.lapseto">
  412. <el-radio
  413. v-for="item in lapsetoOptions"
  414. :key="item.value"
  415. :label="item.value"
  416. :value="item.value"
  417. >{{ item.label }}</el-radio
  418. >
  419. </el-radio-group>
  420. </el-form-item>
  421. </el-col>
  422. <el-col :span="24">
  423. <el-form-item label="传染病 : " prop="contagions">
  424. <el-radio-group v-model="form.is_infectious" @change="changeInfectious">
  425. <el-radio :label="1">阴性</el-radio>
  426. <el-radio :label="2">阳性</el-radio>
  427. </el-radio-group>
  428. <el-checkbox-group
  429. v-model="form.contagions"
  430. v-if="form.is_infectious == '2'"
  431. >
  432. <el-checkbox
  433. v-for="item in contagionList"
  434. v-if="item.type == 2"
  435. :label="item.id"
  436. :key="item.id"
  437. name="contagions"
  438. :value="item.id"
  439. >{{ item.name }}</el-checkbox
  440. >
  441. </el-checkbox-group>
  442. </el-form-item>
  443. </el-col>
  444. <el-col :span="8">
  445. <el-form-item label="疑难内瘘 : " prop="contagions">
  446. <el-radio-group v-model="form.troble_shoot">
  447. <el-radio :label="1">是</el-radio>
  448. <el-radio :label="2">否</el-radio>
  449. </el-radio-group>
  450. </el-form-item>
  451. </el-col>
  452. <el-col :span="8">
  453. <el-form-item label="人员编码: ">
  454. <el-input
  455. v-model="form.zb_patient_id"
  456. ></el-input>
  457. </el-form-item>
  458. </el-col>
  459. <el-col :span="16" v-if="!isEdit">
  460. <el-form-item label="检查结果日期 : ">
  461. <!--<el-date-picker v-model="form.record_date" type="date" placeholder="选择日期" :suffix-icon="'el-icon-menu'"-->
  462. <!--format="yyyy-MM-dd"-->
  463. <!--style="width: 200px;"-->
  464. <!--disabled-->
  465. <!--value-format="yyyy-MM-dd" v-if="isEdit"></el-date-picker>-->
  466. <el-date-picker
  467. v-model="form.record_date"
  468. type="date"
  469. placeholder="选择日期"
  470. :suffix-icon="'el-icon-menu'"
  471. format="yyyy-MM-dd"
  472. style="width: 200px;"
  473. value-format="yyyy-MM-dd"
  474. v-if="!isEdit"
  475. ></el-date-picker>
  476. <el-button
  477. type="primary"
  478. @click="recordCheck()"
  479. v-if="!isEdit"
  480. >录入检验检查</el-button
  481. >
  482. <!--<el-button type="primary" v-if="isEdit">查看检验检查</el-button>-->
  483. </el-form-item>
  484. </el-col>
  485. <el-col :span="24">
  486. <el-form-item label="传染病周期提醒:">
  487. <el-radio-group
  488. v-model="form.remind_cycle"
  489. @change="changeCycle()"
  490. >
  491. <el-radio :label="1">一月一次</el-radio>
  492. <el-radio :label="2">两月一次</el-radio>
  493. <el-radio :label="3">三月一次</el-radio>
  494. <el-radio :label="4">半年一次</el-radio>
  495. <el-radio :label="5">一年一次</el-radio>
  496. </el-radio-group>
  497. </el-form-item>
  498. </el-col>
  499. <el-col :span="24">
  500. <el-form-item label="诊断 : " prop="diagnose">
  501. <el-input
  502. type="textarea"
  503. :rows="3"
  504. v-model="form.diagnose"
  505. resize="none"
  506. placeholder
  507. ></el-input>
  508. </el-form-item>
  509. </el-col>
  510. <el-col :span="24">
  511. <el-form-item label="诊疗计划 : " prop="diagnose">
  512. <el-input
  513. type="textarea"
  514. :rows="3"
  515. v-model="form.treatment_plan"
  516. resize="none"
  517. placeholder
  518. ></el-input>
  519. </el-form-item>
  520. </el-col>
  521. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  522. <el-form-item label="民族 : " prop="nation">
  523. <el-input v-model="form.nation" maxlength="30"></el-input>
  524. </el-form-item>
  525. </el-col>
  526. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  527. <el-form-item label="籍贯 : " prop="native_place">
  528. <el-input
  529. v-model="form.native_place"
  530. maxlength="30"
  531. ></el-input>
  532. </el-form-item>
  533. </el-col>
  534. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  535. <el-form-item label="家庭住址 : " prop="homeAddress" class="is-required">
  536. <el-input v-model="form.homeAddress"></el-input>
  537. </el-form-item>
  538. </el-col>
  539. <div v-show="!generic_info_fold">
  540. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  541. <el-form-item label="别名 : " prop="alias">
  542. <el-input v-model="form.alias"></el-input>
  543. </el-form-item>
  544. </el-col>
  545. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  546. <el-form-item label="身高(cm) : " prop="height">
  547. <el-input
  548. maxlength="5"
  549. v-model="form.height"
  550. @change="checkHeight"
  551. ></el-input>
  552. </el-form-item>
  553. </el-col>
  554. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  555. <el-form-item label="婚姻状况 : " prop="maritalStatus">
  556. <el-select
  557. v-model="form.maritalStatus"
  558. placeholder="请选择婚姻状况"
  559. >
  560. <el-option
  561. v-for="item in maritalOptions"
  562. :key="item.id"
  563. :label="item.name"
  564. :value="item.id"
  565. />
  566. </el-select>
  567. </el-form-item>
  568. </el-col>
  569. <el-col
  570. :span="8"
  571. style="clearfix"
  572. :style="isEdit ? 'width:360px' : ''"
  573. >
  574. <el-form-item label="子女情况(个) : " prop="children">
  575. <el-input maxlength="5" v-model="form.children"></el-input>
  576. </el-form-item>
  577. <!-- <el-form-item label=" " style="float:left;" label-width="30px">
  578. </el-form-item>-->
  579. </el-col>
  580. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  581. <el-form-item label="住院(门诊)号 : ">
  582. <el-input v-model="form.admissionNumber"></el-input>
  583. </el-form-item>
  584. </el-col>
  585. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  586. <el-form-item label="医保类型 : " prop="reimbursementWayID">
  587. <el-select v-model="form.reimbursementWayID">
  588. <el-option
  589. v-for="item in wayOptions"
  590. :key="item.id"
  591. :label="item.name"
  592. :value="item.id"
  593. />
  594. </el-select>
  595. </el-form-item>
  596. </el-col>
  597. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  598. <el-form-item label="医保号 : " prop="healthCareNo">
  599. <el-input v-model="form.healthCareNo"></el-input>
  600. </el-form-item>
  601. </el-col>
  602. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  603. <el-form-item label="教育程度 : " prop="educationOptions">
  604. <el-select v-model="form.education">
  605. <el-option
  606. v-for="item in educationOptions"
  607. :key="item.id"
  608. :label="item.name"
  609. :value="item.id"
  610. />
  611. </el-select>
  612. </el-form-item>
  613. </el-col>
  614. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  615. <el-form-item label="固定电话 : ">
  616. <el-input
  617. v-model="form.tell_phone"
  618. maxlength="20"
  619. ></el-input>
  620. </el-form-item>
  621. </el-col>
  622. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  623. <el-form-item label="费别 : ">
  624. <el-select v-model="form.expense_kind">
  625. <el-option
  626. v-for="item in expenseOptions"
  627. :key="item.id"
  628. :label="item.name"
  629. :value="item.id"
  630. />
  631. </el-select>
  632. </el-form-item>
  633. </el-col>
  634. <el-col
  635. :span="8"
  636. :style="isEdit ? 'width:360px' : ''"
  637. style="height:59px;"
  638. >
  639. <el-form-item label="透析龄(月): ">
  640. <el-input v-model="form.dialysis_age"></el-input>
  641. </el-form-item>
  642. </el-col>
  643. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  644. <el-form-item label="亲友电话 : " prop="relative_phone">
  645. <el-input
  646. v-model="form.relative_phone"
  647. maxlength="20"
  648. ></el-input>
  649. </el-form-item>
  650. </el-col>
  651. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  652. <el-form-item label="亲友关系 : " prop="relative_relations">
  653. <el-input
  654. v-model="form.relative_relations"
  655. maxlength="20"
  656. ></el-input>
  657. </el-form-item>
  658. </el-col>
  659. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  660. <el-form-item label="职业 : " prop="profession">
  661. <el-select v-model="form.profession">
  662. <el-option
  663. v-for="item in professionOptions"
  664. :key="item.id"
  665. :label="item.name"
  666. :value="item.id"
  667. />
  668. </el-select>
  669. </el-form-item>
  670. </el-col>
  671. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  672. <el-form-item label="工作单位 : " prop="work">
  673. <el-input v-model="form.work"></el-input>
  674. </el-form-item>
  675. </el-col>
  676. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  677. <el-form-item label="单位地址 : " prop="unit_address">
  678. <el-input v-model="form.unit_address"></el-input>
  679. </el-form-item>
  680. </el-col>
  681. </div>
  682. <el-col :span="24">
  683. <el-form-item>
  684. <el-button
  685. type="text"
  686. @click="generic_info_fold = !generic_info_fold"
  687. >
  688. {{ generic_info_fold ? "更多资料" : "收起" }}
  689. <i class="el-icon--right" :class="generic_fold_icon"></i>
  690. </el-button>
  691. </el-form-item>
  692. </el-col>
  693. </el-row>
  694. </el-col>
  695. <el-col :span="4" align="center">
  696. <el-upload
  697. style="width:100%;"
  698. :disabled="
  699. $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
  700. ? true
  701. : false
  702. "
  703. :data="uploadData"
  704. class="uploadHead"
  705. :multiple="false"
  706. action="https://upload.qiniup.com"
  707. :show-file-list="false"
  708. :on-error="handleAvatarError"
  709. :on-success="handleAvatarSuccess"
  710. list-type="picture-card"
  711. :before-upload="beforeAvatarUpload"
  712. >
  713. <img
  714. width="100%"
  715. height="100%"
  716. v-if="form.avatar"
  717. :src="form.avatar"
  718. class="avatar"
  719. />
  720. <i class="el-icon-plus" v-else></i>
  721. </el-upload>
  722. <el-dialog :visible.sync="dialogVisible">
  723. <img width="100%" :src="dialogImageUrl" alt />
  724. </el-dialog>
  725. <el-upload
  726. :disabled="
  727. $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
  728. ? true
  729. : false
  730. "
  731. :data="uploadData"
  732. :multiple="false"
  733. action="https://upload.qiniup.com"
  734. :show-file-list="false"
  735. :on-error="handleAvatarError"
  736. :on-success="handleAvatarSuccess"
  737. :before-upload="beforeAvatarUpload"
  738. >
  739. <el-button
  740. :disabled="
  741. $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
  742. ? true
  743. : false
  744. "
  745. class="uploadHeadBtn"
  746. type="primary"
  747. >上传头像</el-button
  748. >
  749. </el-upload>
  750. <el-form-item>
  751. <el-input
  752. v-model="form.avatar"
  753. type="hidden"
  754. placeholder
  755. ></el-input>
  756. </el-form-item>
  757. </el-col>
  758. </el-row>
  759. <div class="dataTitle">治疗信息</div>
  760. <div style="display: flex">
  761. <div style="flex: 1 1 9%;">
  762. <el-row :gutter="24">
  763. <el-col :span="24">
  764. <el-form-item label="主诉 : " prop="patient_complains">
  765. <el-input
  766. type="textarea"
  767. :rows="3"
  768. v-model="form.patient_complains"
  769. resize="none"
  770. placeholder=""
  771. ></el-input>
  772. </el-form-item>
  773. </el-col>
  774. </el-row>
  775. <el-row :gutter="24">
  776. <el-col :span="24">
  777. <el-form-item label="既往史 : " prop="past_history">
  778. <el-input
  779. type="textarea"
  780. :rows="3"
  781. v-model="form.past_history"
  782. resize="none"
  783. placeholder=""
  784. ></el-input>
  785. </el-form-item>
  786. </el-col>
  787. </el-row>
  788. <el-row :gutter="24">
  789. <el-col :span="24">
  790. <el-form-item label="体格检查">
  791. <el-input
  792. v-model="form.temperature"
  793. style="width: 200px"
  794. >
  795. <template slot="prepend">体温:</template>
  796. <template slot="append">℃</template>
  797. </el-input>
  798. <el-input v-model="form.pulse" style="width: 220px" >
  799. <template slot="prepend">脉搏: </template>
  800. <template slot="append">次/分</template>
  801. </el-input>
  802. <el-input
  803. v-model="form.respiratory"
  804. style="width: 220px"
  805. >
  806. <template slot="prepend">呼吸: </template>
  807. <template slot="append">次/分</template>
  808. </el-input>
  809. </el-form-item>
  810. </el-col>
  811. </el-row>
  812. <el-row :gutter="24">
  813. <el-col>
  814. <el-form-item>
  815. <el-input v-model="form.sbp" style="width: 240px" >
  816. <template slot="prepend">收缩压:</template>
  817. <template slot="append">mmHg</template>
  818. </el-input>
  819. <el-input v-model="form.dbp" style="width: 240px" >
  820. <template slot="prepend">舒张压:</template>
  821. <template slot="append">mmHg</template>
  822. </el-input>
  823. </el-form-item>
  824. </el-col>
  825. </el-row>
  826. </div>
  827. <div style="flex: 1;" class="now_his">
  828. <el-row :gutter="24" style="height:100%;">
  829. <el-col :span="24" style="height:100%;">
  830. <el-form-item label="现病史 : " prop="present_history" style="height:100%;">
  831. <el-input
  832. style="height:100%;"
  833. type="textarea"
  834. :rows="3"
  835. v-model="form.present_history"
  836. resize="none"
  837. placeholder=""
  838. ></el-input>
  839. </el-form-item>
  840. </el-col>
  841. </el-row>
  842. </div>
  843. </div>
  844. <el-row :span="24">
  845. <el-col>
  846. </el-col>
  847. <el-col></el-col>
  848. <el-col :span="24">
  849. <el-form-item label prop="remark">
  850. <el-input
  851. type="textarea"
  852. :rows="3"
  853. v-model="form.remark"
  854. resize="none"
  855. placeholder
  856. ></el-input>
  857. </el-form-item>
  858. </el-col>
  859. <!--<el-col :span="24">-->
  860. <!--<el-form-item label="传染病 : " prop="checkContagions">-->
  861. <!--<el-checkbox-group v-model="form.contagions">-->
  862. <!--<el-checkbox v-for="item in contagionList" v-if="item.type==2" :label="item.id" :key="item.id"-->
  863. <!--:value="item.id">{{item.name}}-->
  864. <!--</el-checkbox>-->
  865. <!--</el-checkbox-group>-->
  866. <!--</el-form-item>-->
  867. <!--</el-col>-->
  868. <!-- <el-col :span="24">
  869. <el-form-item label="慢性病 : " prop="diseases">
  870. <el-checkbox-group v-model="form.diseases">
  871. <el-checkbox
  872. v-for="item in checkDisease"
  873. :label="item.id"
  874. :key="item.id"
  875. :value="item.id"
  876. >{{ item.name }}</el-checkbox
  877. >
  878. </el-checkbox-group>
  879. </el-form-item>
  880. </el-col> -->
  881. <!-- <el-col :span="24">
  882. <el-form-item>
  883. <el-button
  884. type="text"
  885. @click="treat_info_fold = !treat_info_fold"
  886. >
  887. {{ treat_info_fold ? "更多治疗信息" : "收起" }}
  888. <i class="el-icon--right" :class="treat_fold_icon"></i>
  889. </el-button>
  890. </el-form-item>
  891. </el-col> -->
  892. <el-col :span="24">
  893. <el-form-item label="登记人员 : ">
  894. <span>{{ adminusername }}</span>
  895. </el-form-item>
  896. </el-col>
  897. <el-col :span="6">
  898. <el-form-item label="医生 : ">
  899. <el-select v-model="form.doctor">
  900. <el-option
  901. v-for="(item,index) in adminUserOptions"
  902. :key="index"
  903. :label="item.name"
  904. :value="item.id"
  905. />
  906. </el-select>
  907. </el-form-item>
  908. </el-col>
  909. <el-col :span="24" align="right" class="newCol">
  910. <el-form-item>
  911. <el-button
  912. @click="$router.back(-1)"
  913. icon="el-icon-refresh"
  914. size="small"
  915. >取消</el-button
  916. >
  917. <el-button
  918. :disabled="
  919. $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
  920. ? true
  921. : false
  922. "
  923. @click="onSubmit('form')"
  924. size="small"
  925. type="primary"
  926. icon="el-icon-setting"
  927. >保存</el-button
  928. >
  929. <el-button
  930. v-if="isEdit == false"
  931. @click="onReSubmit('form')"
  932. :disabled="
  933. $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
  934. ? true
  935. : false
  936. "
  937. icon="el-icon-document-add"
  938. size="small"
  939. type="success"
  940. >保存并继续新增</el-button
  941. >
  942. </el-form-item>
  943. </el-col>
  944. </el-row>
  945. </el-form>
  946. </div>
  947. </div>
  948. </template>
  949. <script>
  950. import { getToken } from "@/api/qiniu";
  951. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  952. import {
  953. dialysisAge,
  954. getFileExtension,
  955. isCardNo,
  956. isPositiveInteger,
  957. jsGetAge,
  958. uParseTime
  959. } from "@/utils/tools";
  960. import {
  961. createPatient,
  962. editPatient,
  963. fetchPatient,
  964. generateDialysisNo,
  965. GetPatientTotal
  966. } from "@/api/patient";
  967. import { fetchAllAdminUsers } from "@/api/doctor";
  968. // import { fetchAllDoctorAndNurse } from "@/api/doctor";
  969. import { getDataConfig } from "@/utils/data";
  970. const defaultForm = {
  971. avatar: "https://images.shengws.com/201809182128111.png",
  972. name: "",
  973. alias: "",
  974. idCardNo: "",
  975. dialysisNo: "",
  976. gender: "",
  977. birth: "",
  978. nation: "",
  979. native_place: "",
  980. height: "",
  981. maritalStatus: "",
  982. children: "",
  983. admissionNumber: "",
  984. reimbursementWayID: "",
  985. healthCareNo: "",
  986. phone: "",
  987. homeTelephone: "",
  988. relative_phone: "",
  989. relative_relations: "",
  990. lapseto: "",
  991. homeAddress: "",
  992. work: "",
  993. unit_address: "",
  994. profession: "",
  995. education: "",
  996. source: "",
  997. is_hospital_first_dialysis: "",
  998. firstDialysisDate: "",
  999. first_dialysis_hospital: "",
  1000. predialysis_condition: [],
  1001. pre_hospital_dialysis_frequency: "",
  1002. pre_hospital_dialysis_times: "",
  1003. hospital_first_dialysis_date: "",
  1004. contagions: [],
  1005. diseases: [],
  1006. remark: "",
  1007. sch_remark:"",
  1008. diagnose: "",
  1009. is_infectious: 1,
  1010. age: "",
  1011. record_number:"",
  1012. response_result: "",
  1013. remind_cycle: 0,
  1014. record_date: "",
  1015. tell_phone: "",
  1016. first_treatment_date: "",
  1017. dialysis_age: "",
  1018. expense_kind: "",
  1019. contact_name: "",
  1020. user_sys_before_count: "",
  1021. troble_shoot:2,
  1022. zb_patient_id:"",
  1023. doctor:"",
  1024. patient_source:0,
  1025. formItem: [
  1026. {
  1027. id: 0,
  1028. item: "",
  1029. item_id: 60,
  1030. item_name: "丙型肝炎病毒核心抗体(AntiHCV)",
  1031. project_id: 14,
  1032. project_name: "传染病检查",
  1033. range_type: 2,
  1034. select_options: ["阴性", "阳性", "弱阳性"],
  1035. unit: "",
  1036. value: ""
  1037. },
  1038. {
  1039. id: 0,
  1040. item: "",
  1041. item_id: 62,
  1042. item_name: "乙型肝炎病毒表面抗原(HBsAg)",
  1043. project_id: 14,
  1044. project_name: "传染病检查",
  1045. range_type: 2,
  1046. select_options: ["阴性", "阳性", "弱阳性"],
  1047. unit: "",
  1048. value: ""
  1049. },
  1050. {
  1051. id: 0,
  1052. item: "",
  1053. item_id: 63,
  1054. item_name: "乙型肝炎病毒表面抗体(AntiHBs)",
  1055. project_id: 14,
  1056. project_name: "传染病检查",
  1057. range_type: 2,
  1058. select_options: ["阴性", "阳性", "弱阳性"],
  1059. unit: "",
  1060. value: ""
  1061. },
  1062. {
  1063. id: 0,
  1064. item: "",
  1065. item_id: 64,
  1066. item_name: "乙型肝炎病毒E抗原(HBeAg)",
  1067. project_id: 14,
  1068. project_name: "传染病检查",
  1069. range_type: 2,
  1070. select_options: ["阴性", "阳性", "弱阳性"],
  1071. unit: "",
  1072. value: ""
  1073. },
  1074. {
  1075. id: 0,
  1076. item: "",
  1077. item_id: 65,
  1078. item_name: "乙型肝炎病毒E抗体(AntiHBe)",
  1079. project_id: 14,
  1080. project_name: "传染病检查",
  1081. range_type: 2,
  1082. select_options: ["阴性", "阳性", "弱阳性"],
  1083. unit: "",
  1084. value: ""
  1085. },
  1086. {
  1087. id: 0,
  1088. item: "",
  1089. item_id: 66,
  1090. item_name: "乙型肝炎病毒核心抗体(AntiHBc)",
  1091. project_id: 14,
  1092. project_name: "传染病检查",
  1093. range_type: 2,
  1094. select_options: ["阴性", "阳性", "弱阳性"],
  1095. unit: "",
  1096. value: ""
  1097. },
  1098. {
  1099. id: 0,
  1100. item: "",
  1101. item_id: 111,
  1102. item_name: "HIV抗体",
  1103. project_id: 14,
  1104. project_name: "传染病检查",
  1105. range_type: 2,
  1106. select_options: ["阴性", "阳性", "弱阳性"],
  1107. unit: "",
  1108. value: ""
  1109. },
  1110. {
  1111. id: 0,
  1112. item: "",
  1113. item_id: 112,
  1114. item_name: "梅毒",
  1115. project_id: 14,
  1116. project_name: "传染病检查",
  1117. range_type: 2,
  1118. select_options: ["阴性", "阳性", "弱阳性"],
  1119. unit: "",
  1120. value: ""
  1121. },
  1122. {
  1123. id: 0,
  1124. item: "",
  1125. item_id: 178,
  1126. item_name: "乙型病毒DNA测定(HBVDNH)",
  1127. project_id: 14,
  1128. project_name: "传染病检查",
  1129. range_type: 1,
  1130. select_options: 0,
  1131. unit: "",
  1132. value: ""
  1133. },
  1134. {
  1135. id: 0,
  1136. item: "",
  1137. item_id: 179,
  1138. item_name: "丙型病毒DNA测定(HCVDNH",
  1139. project_id: 14,
  1140. project_name: "传染病检查",
  1141. range_type: 1,
  1142. select_options: 0,
  1143. unit: "",
  1144. value: ""
  1145. }
  1146. ],
  1147. // patientType: "",
  1148. // partition: "",
  1149. // bed: "",
  1150. // age: "",
  1151. // healthCareDueDate: "",
  1152. // blood: "",
  1153. // rh: "",
  1154. // healthCareDueAlertDate: "",
  1155. // receivingDate: "",
  1156. // dialysisAge: "",
  1157. // induction: "",
  1158. // initial: "",
  1159. // dialysisTotal: "",
  1160. // doctor: "",
  1161. // nurse: "",
  1162. // assessment: "",
  1163. patient_complains: "",
  1164. present_history: "",
  1165. past_history: "",
  1166. temperature: "",
  1167. pulse: "",
  1168. respiratory: "",
  1169. sbp: "",
  1170. dbp: "",
  1171. showOne:true,
  1172. treatment_plan:"",
  1173. };
  1174. export default {
  1175. name: "patientForm",
  1176. props: {
  1177. isEdit: {
  1178. type: Boolean,
  1179. default: false
  1180. }
  1181. },
  1182. data() {
  1183. // var checkName = (rule, value, callback) => {
  1184. // const regName=/^([\u4E00-\u9FA5]{1,20}|[a-zA-Z\.\s])$/;
  1185. // if (regName.test(value)){
  1186. // return callback();
  1187. // }
  1188. // callback(new Error("请输入正确的名字"));
  1189. // };
  1190. var checkage = (rule, value, callback) =>{
  1191. const regage=/^(?:[1-9][0-9]?|1[01][0-9]|120)$/
  1192. if(regage.test(value)){
  1193. callback()
  1194. }else{
  1195. callback(new Error('年龄输入不合法'))
  1196. }
  1197. }
  1198. var checkidCard = (rule, value, callback) =>{
  1199. const regid=/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[0-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}([0-9Xx])$/
  1200. if(regid.test(value)){
  1201. callback()
  1202. }else{
  1203. callback(new Error('身份证输入有误'))
  1204. }
  1205. }
  1206. var checkContagions = (rule, value, callback) => {
  1207. if (this.form.is_infectious == '1') {
  1208. return callback();
  1209. }
  1210. if (this.form.is_infectious == "2" && value.length == 0) {
  1211. return callback(new Error("至少选择一项传染病"));
  1212. }
  1213. callback();
  1214. };
  1215. var checkPhone = (rule, value, callback) => {
  1216. if (value.length == 0) {
  1217. return callback(new Error("本人电话不能为空"));
  1218. }
  1219. if (
  1220. !value.match(
  1221. /^1\d{10}$/
  1222. )
  1223. ) {
  1224. return callback(new Error("请填写正确的电话(手机号码)"));
  1225. }
  1226. callback();
  1227. };
  1228. var checkFamilyPhone = (rule, value, callback) => {
  1229. if (value.length == 0) {
  1230. return callback(new Error("家属电话不能为空"));
  1231. }
  1232. if (
  1233. !value.match(
  1234. /^1\d{10}$/
  1235. )
  1236. ) {
  1237. return callback(new Error("请填写正确的电话(手机号码)"));
  1238. }
  1239. callback();
  1240. };
  1241. return {
  1242. crumbs: [
  1243. { path: false, name: "病人管理" },
  1244. { path: false, name: "新增病人" }
  1245. ],
  1246. generic_info_fold: true,
  1247. treat_info_fold: true,
  1248. patientTotal: 0,
  1249. pageLoad: true,
  1250. avatarFlag: false,
  1251. subscibeFlag: false,
  1252. orgname: "",
  1253. adminusername: "",
  1254. form: Object.assign({}, defaultForm),
  1255. formSubmit: true,
  1256. submitMethod: "",
  1257. uploadData: { token: "", key: "" },
  1258. dialogImageUrl: "",
  1259. qiniuDomain: "https://images.shengws.com/",
  1260. dialogVisible: false,
  1261. // typeOptions: null,
  1262. // styleOptions: null,
  1263. sourceOptions: [{ value: 1, label: "门诊" }, { value: 2, label: "住院" }],
  1264. patientSourceList:[
  1265. {value:1,label:"门诊"},
  1266. {value:2,label:"住院"},
  1267. {value:3,label:"请假"},
  1268. {value:4,label:"备注"}
  1269. ],
  1270. lapsetoOptions: [
  1271. { value: 1, label: "留治" },
  1272. { value: 2, label: "转出" }
  1273. ],
  1274. // partitionOptions: null,
  1275. sexOptions: [{ value: 1, label: "男" }, { value: 2, label: "女" }],
  1276. isHospitalFirstDialysisOptions: [
  1277. { value: 1, label: "是" },
  1278. { value: 2, label: "否" }
  1279. ],
  1280. predialysisConditionOptions: [
  1281. { value: 1, label: "腹膜透析" },
  1282. { value: 2, label: "肾移植" }
  1283. ],
  1284. maritalOptions: null,
  1285. wayOptions: null,
  1286. educationOptions: null,
  1287. professionOptions: null,
  1288. // inductionOptions: null,
  1289. // doctorOptions: null,
  1290. // nurseOptions: null,
  1291. // rhOptions: null,
  1292. checkDisease: null,
  1293. contagionList: null,
  1294. dialogFormVisible: false,
  1295. loading: null,
  1296. submitMsg: "",
  1297. patientID: 0,
  1298. formLoading: false,
  1299. expenseOptions: [
  1300. { id: 1, name: "基本医保" },
  1301. { id: 2, name: "新农合" },
  1302. { id: 3, name: "自费医疗" },
  1303. { id: 4, name: "公费医疗" },
  1304. { id: 5, name: "商业保险" },
  1305. { id: 6, name: "军队医疗" },
  1306. { id: 7, name: "其他" }
  1307. ],
  1308. subscibe: {},
  1309. showLapseto:true,
  1310. rules: {
  1311. contagions: [
  1312. {
  1313. type: "array",
  1314. required: true,
  1315. trigger: "change",
  1316. validator: checkContagions
  1317. }
  1318. ],
  1319. patientType: [
  1320. { required: true, message: "请选择患者类型", trigger: "blur" }
  1321. ],
  1322. dialysisNo: [
  1323. { required: true, message: "请填写透析号", trigger: "blur" }
  1324. // {type:'number', message:"透析号填写有误", trigger: 'blur'}
  1325. ],
  1326. phone: [{ validator: checkPhone, trigger: "blur" }],
  1327. source: [
  1328. { required: true, message: "请选择患者来源", trigger: "blur" }
  1329. ],
  1330. lapseto: [
  1331. { required: true, message: "请选择治疗状态", trigger: "blur" }
  1332. ],
  1333. name: [{ required: true, message: "请填写姓名", trigger: "blur" },
  1334. // { validator: checkName,min:2,max:5, message: '请输入正确的名字', trigger: 'blur'}
  1335. ],
  1336. gender: [{ required: true, message: "请选择性别", trigger: "blur" }],
  1337. idCardNo: [
  1338. { required: true, message: "请填写身份证号", trigger: "blur" },
  1339. {validator:checkidCard,trigger:'blur'}
  1340. ],
  1341. birth: [{ required: true, message: "请填写生日", trigger: "blur" }],
  1342. age: [{ required: true, message: "年龄不能为空", trigger: "blur" },
  1343. {validator: checkage,trigger:'blur'}],
  1344. firstDialysisDate: [
  1345. { required: true, message: "请选择日期", trigger: "blur" }
  1346. ],
  1347. homeTelephone: [{ validator: checkFamilyPhone, trigger: "blur" }],
  1348. homeAddress: [{ required: true, message: "请填写住址", trigger: "blur" }],
  1349. },
  1350. adminUserOptions:[],
  1351. org_id:0,
  1352. };
  1353. },
  1354. components: {
  1355. BreadCrumb
  1356. },
  1357. computed: {
  1358. generic_fold_icon: function() {
  1359. return this.generic_info_fold ? "el-icon-arrow-down" : "el-icon-arrow-up";
  1360. },
  1361. treat_fold_icon: function() {
  1362. return this.treat_info_fold ? "el-icon-arrow-down" : "el-icon-arrow-up";
  1363. }
  1364. },
  1365. created() {
  1366. this.fetchAllAdminUsers();
  1367. if(this.isEdit == true){
  1368. this.showLapseto = false
  1369. }
  1370. // this.styleOptions = this.$store.getters.patient_types;
  1371. // this.partitionOptions = this.$store.getters.partitions;
  1372. this.maritalOptions = getDataConfig("patient", "marital_options");
  1373. this.wayOptions = getDataConfig("patient", "reimbursement_ways");
  1374. // this.typeOptions = this.$store.getters.blood_types;
  1375. // this.rhOptions = this.$store.getters.rh;
  1376. this.educationOptions = getDataConfig("patient", "education_types");
  1377. this.professionOptions = getDataConfig("patient", "profession_options");
  1378. // this.inductionOptions = this.$store.getters.induction_options;
  1379. this.contagionList = this.$store.getters.contagions;
  1380. this.checkDisease = this.$store.getters.disease;
  1381. this.subscibe = this.$store.getters.xt_user.subscibe;
  1382. this.GetPatientTotal();
  1383. // this.fetchAllDoctorAndNurse();
  1384. this.pageLoad = false;
  1385. var xtuser = this.$store.getters.xt_user;
  1386. this.orgname = xtuser.org.org_name;
  1387. this.adminusername = xtuser.user.user_name;
  1388. this.org_id =this.$store.getters.xt_user.org.id
  1389. if (this.isEdit) {
  1390. this.submitMsg = "修改患者信息成功";
  1391. const id = this.$route.params && this.$route.params.id;
  1392. this.patientID = parseInt(id);
  1393. if (isNaN(this.patientID) || this.patientID <= 0) {
  1394. this.$notify.error({
  1395. title: "错误",
  1396. message: "无效的id"
  1397. });
  1398. this.$router.back(-1);
  1399. }
  1400. this.fetchPatient(id);
  1401. this.avatarFlag = true;
  1402. } else {
  1403. this.submitMsg = "新增患者成功";
  1404. this.form = Object.assign({}, defaultForm);
  1405. this.form.lapseto = 1
  1406. }
  1407. },
  1408. watch: {
  1409. // "form.record_date": function(val) {
  1410. // console.log(val);
  1411. // if (val == null || val == "") {
  1412. // console.log("111111");
  1413. // this.form.remind_cycle = "";
  1414. // }
  1415. // }
  1416. },
  1417. methods: {
  1418. fetchAllAdminUsers() {
  1419. fetchAllAdminUsers().then((response) => {
  1420. if (response.data.state === 1) {
  1421. this.form.doctor = this.$store.getters.xt_user.user.id
  1422. this.adminUserOptions = response.data.data.users;
  1423. }
  1424. });
  1425. },
  1426. recordCheck() {
  1427. if (this.form.record_date == "") {
  1428. this.$message.error("请先选择检验检查日期");
  1429. return;
  1430. } else {
  1431. this.dialogFormVisible = true;
  1432. }
  1433. },
  1434. GetPatientTotal() {
  1435. GetPatientTotal()
  1436. .then(response => {
  1437. if (response.data.state == 1) {
  1438. this.patientTotal = response.data.data.total;
  1439. this.subscibeFlag = true;
  1440. // if ((this.subscibe.state == 2 && this.patientTotal >= 100) || (this.subscibe.state == 1 && this.patientTotal >= 200)) {
  1441. // this.$alert('患者数已达到当前服务版本病人数,需要升级到更高的版本', '提示', {
  1442. // confirmButtonText: '确定',
  1443. // showClose: false,
  1444. // callback: action => {
  1445. // this.$router.push('/service/buy')
  1446. // }
  1447. // })
  1448. // } else {
  1449. // this.subscibeFlag = true
  1450. // }
  1451. } else {
  1452. this.$message.error(response.data.msg);
  1453. }
  1454. })
  1455. .catch(e => {});
  1456. },
  1457. changeGender(value) {
  1458. if (this.avatarFlag) {
  1459. return false;
  1460. }
  1461. if (value == 1) {
  1462. this.form.avatar = "https://images.shengws.com/201809182128111.png";
  1463. } else if (value == 2) {
  1464. this.form.avatar = "https://images.shengws.com/201809182128222.png";
  1465. } else {
  1466. }
  1467. },
  1468. resetForm(formName) {
  1469. this.$refs[formName].resetFields();
  1470. },
  1471. onReSubmit(formName) {
  1472. this.submitForm(formName, "renew");
  1473. },
  1474. onSubmit(formName) {
  1475. console.log("2222",this.form)
  1476. this.submitForm(formName, "redict");
  1477. },
  1478. submitForm(formName, action) {
  1479. if (!this.formSubmit) {
  1480. return false;
  1481. }
  1482. this.form.user_sys_before_count = this.form.user_sys_before_count.toString()
  1483. this.$refs[formName].validate(valid => {
  1484. if (valid) {
  1485. this.formSubmit = false;
  1486. if (this.isEdit) {
  1487. this.form.age = parseInt(this.form.age);
  1488. this.form.user_sys_before_count = this.form.user_sys_before_count.toString();
  1489. this.form.troble_shoot = parseInt(this.form.troble_shoot)
  1490. this.form.doctor = parseInt(this.form.doctor)
  1491. if(this.form.patient_source >0){
  1492. this.form.patient_source = parseInt(this.form.patient_source)
  1493. }else{
  1494. this.form.patient_source = 4
  1495. }
  1496. if(this.form.patient_source == "NaN"){
  1497. this.form.patient_source = 4
  1498. }
  1499. if(this.form.avatar.indexOf('?imageView2/2/w/500/h/500/q/90')!=-1){
  1500. this.form.avatar = this.form.avatar
  1501. }else{
  1502. this.form.avatar = this.form.avatar + "?imageView2/2/w/500/h/500/q/90"
  1503. }
  1504. console.log("form---",this.form)
  1505. editPatient(this.patientID, this.form)
  1506. .then(response => {
  1507. if (response.data.state == 0) {
  1508. this.$message.error(response.data.msg);
  1509. this.formSubmit = true;
  1510. return false;
  1511. } else {
  1512. this.formSubmit = false;
  1513. this.$notify({
  1514. title: "成功",
  1515. message: this.submitMsg,
  1516. type: "success",
  1517. duration: 2000
  1518. });
  1519. this.$refs[formName].resetFields();
  1520. if (action !== "renew") {
  1521. this.$router.back(-1);
  1522. }
  1523. this.formSubmit = true;
  1524. return false;
  1525. }
  1526. })
  1527. .catch(err => {
  1528. this.$message.error("网络异常");
  1529. this.formSubmit = true;
  1530. return false;
  1531. });
  1532. } else {
  1533. this.form.age = parseInt(this.form.age);
  1534. this.form.troble_shoot = parseInt(this.form.troble_shoot)
  1535. this.form.doctor = parseInt(this.form.doctor)
  1536. if(this.form.patient_source >0){
  1537. this.form.patient_source = parseInt(this.form.patient_source)
  1538. }else{
  1539. this.form.patient_source = 4
  1540. }
  1541. if(this.form.patient_source == "NaN"){
  1542. this.form.patient_source = 4
  1543. }
  1544. console.log("form233322332w",this.form)
  1545. createPatient(this.form)
  1546. .then(response => {
  1547. if (response.data.state == 0) {
  1548. this.$message.error(response.data.msg);
  1549. this.formSubmit = true;
  1550. return false;
  1551. } else {
  1552. this.formSubmit = true;
  1553. this.$notify({
  1554. title: "成功",
  1555. message: this.submitMsg,
  1556. type: "success",
  1557. duration: 2000
  1558. });
  1559. this.$refs[formName].resetFields();
  1560. this.$store.dispatch("SetSubscibePatients");
  1561. var sub = this.$store.getters.xt_user.subscibe;
  1562. if (action !== "renew") {
  1563. this.$router.back(-1);
  1564. }
  1565. return false;
  1566. }
  1567. })
  1568. .catch(err => {
  1569. this.$message.error("网络异常");
  1570. this.formSubmit = true;
  1571. return false;
  1572. });
  1573. }
  1574. } else {
  1575. this.formSubmit = true;
  1576. return false;
  1577. }
  1578. });
  1579. },
  1580. handlePictureCardPreview(file) {
  1581. this.dialogImageUrl = file.url;
  1582. this.dialogVisible = true;
  1583. },
  1584. handleAvatarError(err, file, fileList) {
  1585. this.$message.error(err);
  1586. this.loading.close();
  1587. return false;
  1588. },
  1589. handleAvatarSuccess(res, file) {
  1590. // this.imageUrl = URL.createObjectURL(file.raw);
  1591. this.form.avatar = this.qiniuDomain + res.url +"?imageView2/2/w/500/h/500/q/90";
  1592. console.log("上传成功地址",this.form.avatar)
  1593. this.avatarFlag = true;
  1594. this.loading.close();
  1595. },
  1596. beforeAvatarUpload(file) {
  1597. // const isJPG = file.type === "image/jpeg";
  1598. var fileType = file.type;
  1599. const isJPG = fileType.indexOf("image") > -1;
  1600. const isLt2M = file.size / 1024 / 1024 < 6;
  1601. if (!isJPG) {
  1602. this.$message.error("只能上传图片");
  1603. return false;
  1604. }
  1605. if (!isLt2M) {
  1606. this.$message.error("上传头像图片大小不能超过 6MB!");
  1607. return false;
  1608. }
  1609. var date = new Date();
  1610. var ext = getFileExtension(file.name);
  1611. var key =
  1612. date.getFullYear() +
  1613. "/" +
  1614. (date.getMonth() + 1) +
  1615. "/" +
  1616. date.getDate() +
  1617. "/" +
  1618. date.getHours() +
  1619. "/" +
  1620. date.getMinutes() +
  1621. "/" +
  1622. date.getSeconds() +
  1623. "/" +
  1624. "_s_" +
  1625. file.uid +
  1626. "." +
  1627. ext;
  1628. this.loading = this.$loading({
  1629. lock: true,
  1630. text: "上传中...",
  1631. spinner: "el-icon-loading",
  1632. background: "rgba(0, 0, 0, 0.7)"
  1633. });
  1634. const _self = this;
  1635. return new Promise((resolve, reject) => {
  1636. getToken()
  1637. .then(response => {
  1638. const token = response.data.data.uptoken;
  1639. _self._data.uploadData.token = token;
  1640. _self._data.uploadData.key = key;
  1641. resolve(true);
  1642. })
  1643. .catch(err => {
  1644. console.log(err);
  1645. reject(false);
  1646. this.loading.close();
  1647. });
  1648. });
  1649. },
  1650. generatedialysisno() {
  1651. generateDialysisNo().then(response => {
  1652. this.form.dialysisNo = response.data.data.no + "";
  1653. });
  1654. },
  1655. checkIdCardNo() {
  1656. // console.log(this.form.idCardNo);
  1657. if (!isCardNo(this.form.idCardNo)) {
  1658. // this.$message.error("身份证号码信息有误!");
  1659. this.form.birth = "";
  1660. return false;
  1661. }
  1662. var thisLen = this.form.idCardNo.length;
  1663. var birth = "";
  1664. if (thisLen == 15) {
  1665. birth = "19" + this.form.idCardNo.substr(6, 6);
  1666. } else {
  1667. birth = this.form.idCardNo.substr(6, 8);
  1668. }
  1669. this.form.birth =
  1670. birth.substr(0, 4) +
  1671. "-" +
  1672. birth.substr(4, 2) +
  1673. "-" +
  1674. birth.substr(6, 2);
  1675. this.form.age = jsGetAge(this.form.birth, "-");
  1676. },
  1677. hadSelectBirth() {
  1678. this.form.age = jsGetAge(this.form.birth, "-");
  1679. },
  1680. checkHeight() {
  1681. if (!isPositiveInteger(this.form.height)) {
  1682. this.$message.error("身高请填写正整数!");
  1683. return false;
  1684. }
  1685. },
  1686. selectFirstDialysisDate() {
  1687. this.form.dialysisAge = dialysisAge(this.form.firstDialysisDate);
  1688. },
  1689. fetchPatient(id) {
  1690. fetchPatient(id)
  1691. .then(response => {
  1692. if (response.data.state == 1) {
  1693. this.$emit("tran-patient-info", response.data.data.patient);
  1694. var patietInfo = response.data.data.patient;
  1695. console.log("9999999",response.data.data.patient)
  1696. this.form.avatar = patietInfo.avatar;
  1697. this.form.name = patietInfo.name;
  1698. this.form.alias = patietInfo.alias;
  1699. this.form.idCardNo = patietInfo.id_card_no;
  1700. this.form.dialysisNo = patietInfo.dialysis_no;
  1701. this.form.gender = patietInfo.gender;
  1702. if (patietInfo.gender == 1 || patietInfo.gender == 2) {
  1703. this.form.gender = patietInfo.gender;
  1704. }
  1705. this.form.birth = uParseTime(patietInfo.birthday, "{y}-{m}-{d}");
  1706. console.log("中共232323232322323我-------------",this.form.birth)
  1707. this.form.nation = patietInfo.nation;
  1708. this.form.native_place = patietInfo.native_place;
  1709. this.form.height = patietInfo.height + "";
  1710. console.log(this.form.birth);
  1711. if (patietInfo.marital_status > 0) {
  1712. this.form.maritalStatus = patietInfo.marital_status;
  1713. }
  1714. this.form.children = patietInfo.children;
  1715. this.form.admissionNumber = patietInfo.admission_number;
  1716. if (patietInfo.reimbursement_way_id > 0) {
  1717. this.form.reimbursementWayID = patietInfo.reimbursement_way_id;
  1718. }
  1719. this.form.healthCareNo = patietInfo.health_care_no;
  1720. this.form.phone = patietInfo.phone;
  1721. this.form.homeTelephone = patietInfo.home_telephone;
  1722. this.form.relative_phone = patietInfo.relative_phone;
  1723. this.form.relative_relations = patietInfo.relative_relations;
  1724. this.form.remind_cycle = patietInfo.remind_cycle;
  1725. this.form.homeAddress = patietInfo.home_address;
  1726. this.form.work = patietInfo.work_unit;
  1727. this.form.unit_address = patietInfo.unit_address;
  1728. this.form.user_sys_before_count = patietInfo.user_sys_before_count;
  1729. this.form.treatment_plan = patietInfo.treatment_plan
  1730. if (patietInfo.profession > 0) {
  1731. this.form.profession = patietInfo.profession;
  1732. }
  1733. if (patietInfo.education_level > 0) {
  1734. this.form.education = patietInfo.education_level;
  1735. }
  1736. if (patietInfo.source == 1 || patietInfo.source == 2) {
  1737. this.form.source = patietInfo.source;
  1738. }
  1739. if (patietInfo.lapseto == 1 || patietInfo.lapseto == 2 || patietInfo.lapseto == 3) {
  1740. this.form.lapseto = patietInfo.lapseto;
  1741. }
  1742. if (
  1743. patietInfo.is_hospital_first_dialysis == 1 ||
  1744. patietInfo.is_hospital_first_dialysis == 2
  1745. ) {
  1746. this.form.is_hospital_first_dialysis =
  1747. patietInfo.is_hospital_first_dialysis;
  1748. }
  1749. if (patietInfo.first_dialysis_date != 0) {
  1750. this.form.firstDialysisDate = uParseTime(
  1751. patietInfo.first_dialysis_date,
  1752. "{y}-{m}-{d}"
  1753. );
  1754. }
  1755. this.form.first_dialysis_hospital =
  1756. patietInfo.first_dialysis_hospital;
  1757. if (patietInfo.predialysis_condition.length > 0) {
  1758. this.form.predialysis_condition = patietInfo.predialysis_condition.split(
  1759. ","
  1760. );
  1761. }
  1762. this.form.pre_hospital_dialysis_frequency =
  1763. patietInfo.pre_hospital_dialysis_frequency;
  1764. this.form.pre_hospital_dialysis_times =
  1765. patietInfo.pre_hospital_dialysis_times;
  1766. if (patietInfo.hospital_first_dialysis_date != 0) {
  1767. this.form.hospital_first_dialysis_date = uParseTime(
  1768. patietInfo.hospital_first_dialysis_date,
  1769. "{y}-{m}-{d}"
  1770. );
  1771. }
  1772. this.form.contagions = response.data.data.contagions;
  1773. this.form.diseases = response.data.data.diseases;
  1774. this.form.remark = patietInfo.remark;
  1775. this.form.sch_remark = patietInfo.sch_remark;
  1776. this.form.diagnose = patietInfo.diagnose;
  1777. this.form.patient_complains = patietInfo.patient_complains;
  1778. this.form.present_history = patietInfo.present_history;
  1779. this.form.past_history = patietInfo.past_history;
  1780. this.form.temperature = patietInfo.temperature;
  1781. this.form.pulse = patietInfo.pulse;
  1782. this.form.respiratory = patietInfo.respiratory;
  1783. this.form.sbp = patietInfo.sbp;
  1784. this.form.dbp = patietInfo.dbp;
  1785. this.form.response_result = patietInfo.response_result;
  1786. this.form.is_infectious = patietInfo.is_infectious;
  1787. console.log("哈哈哈哈",patietInfo.is_infectious)
  1788. // if(this.form.is_infectious == 1){
  1789. // this.form.remind_cycle = 0
  1790. // }
  1791. this.form.tell_phone = patietInfo.tell_phone;
  1792. this.form.dialysis_age = patietInfo.dialysis_age;
  1793. this.form.contact_name = patietInfo.contact_name;
  1794. if (patietInfo.expense_kind == 0) {
  1795. this.form.expense_kind = "";
  1796. } else {
  1797. this.form.expense_kind = patietInfo.expense_kind;
  1798. }
  1799. this.form.troble_shoot = patietInfo.troble_shoot
  1800. this.form.zb_patient_id = patietInfo.zb_patient_id
  1801. this.form.first_treatment_date = uParseTime(
  1802. patietInfo.first_treatment_date,
  1803. "{y}-{m}-{d}"
  1804. );
  1805. if (patietInfo.age == 0) {
  1806. this.form.age = jsGetAge(this.form.birth, "-");
  1807. } else {
  1808. this.form.age = patietInfo.age;
  1809. }
  1810. // this.form.initial = patietInfo.initial_dialysis + "";
  1811. // this.form.dialysisTotal = patietInfo.total_dialysis + "";
  1812. // this.form.assessment = patietInfo.evaluate;
  1813. // if (patietInfo.patient_type > 0) {
  1814. // this.form.patientType = patietInfo.patient_type;
  1815. // }
  1816. // if (patietInfo.partition_id > 0) {
  1817. // this.form.partition = patietInfo.partition_id;
  1818. // }
  1819. // if (patietInfo.bed_id > 0) {
  1820. // this.form.bed = patietInfo.bed_id;
  1821. // }
  1822. // this.form.healthCareDueDate = uParseTime(
  1823. // patietInfo.health_care_due_date,
  1824. // "{y}-{m}-{d}"
  1825. // );
  1826. // if (patietInfo.blood_type > 0) {
  1827. // this.form.blood = patietInfo.blood_type;
  1828. // }
  1829. // if (patietInfo.rh > 0) {
  1830. // this.form.rh = patietInfo.rh;
  1831. // }
  1832. // this.form.healthCareDueAlertDate = uParseTime(
  1833. // patietInfo.health_care_due_alert_date,
  1834. // "{y}-{m}-{d}"
  1835. // );
  1836. // this.form.receivingDate = uParseTime(
  1837. // patietInfo.receiving_date,
  1838. // "{y}-{m}-{d}"
  1839. // );
  1840. // this.form.dialysisAge = dialysisAge(
  1841. // this.form.firstDialysisDate,
  1842. // "-"
  1843. // );
  1844. // if (patietInfo.induction_period > 0) {
  1845. // this.form.induction = patietInfo.induction_period;
  1846. // }
  1847. // if (patietInfo.attending_doctor_id > 0) {
  1848. // this.form.doctor = patietInfo.attending_doctor_id;
  1849. // }
  1850. // if (patietInfo.head_nurse_id > 0) {
  1851. // this.form.nurse = patietInfo.head_nurse_id;
  1852. // }
  1853. // if (patietInfo.registrars_id > 0) {
  1854. // this.form.registrars = patietInfo.registrars_id;
  1855. // }
  1856. this.form.record_number = patietInfo.record_number
  1857. this.form.doctor = patietInfo.doctor
  1858. if(this.form.doctor == 0){
  1859. this.form.doctor = ""
  1860. }
  1861. this.form.patient_source = patietInfo.patient_source
  1862. this.checkIdCardNo();
  1863. } else {
  1864. this.$notify.error({
  1865. title: "错误",
  1866. message: "网络异常"
  1867. });
  1868. this.$router.back(-1);
  1869. }
  1870. // this.postForm = response.data
  1871. // // Just for test
  1872. // this.postForm.title += ` Article Id:${this.postForm.id}`
  1873. // this.postForm.content_short += ` Article Id:${this.postForm.id}`
  1874. })
  1875. .catch(err => {
  1876. this.$notify.error({
  1877. title: "错误",
  1878. message: "网络异常"
  1879. });
  1880. this.$router.back(-1);
  1881. });
  1882. },
  1883. submitNew(formName) {
  1884. this.dialogFormVisible = false;
  1885. },
  1886. changeCycle(val) {
  1887. if (!this.isEdit) {
  1888. if (this.form.record_date == "" || this.form.record_date == null) {
  1889. this.$message.error("请先选择检查结果日期");
  1890. this.form.remind_cycle = "";
  1891. return;
  1892. }
  1893. }
  1894. },
  1895. changeInfectious(val){
  1896. if(val == 1){
  1897. this.showOne = false
  1898. }
  1899. if(val == 2){
  1900. this.showOne = true
  1901. }
  1902. }
  1903. // fetchAllDoctorAndNurse() {
  1904. // fetchAllDoctorAndNurse().then(response => {
  1905. // if (response.data.state == 1) {
  1906. // this.doctorOptions = response.data.data.doctors;
  1907. // this.nurseOptions = response.data.data.nursers;
  1908. // }
  1909. // });
  1910. // }
  1911. }
  1912. };
  1913. </script>
  1914. <style rel="stylesheet/scss" lang="scss" scoped>
  1915. .uploadHeadBtn {
  1916. width: 148px;
  1917. margin-top: 10px;
  1918. }
  1919. .el-form {
  1920. .el-col-6,
  1921. .el-col-8 {
  1922. width: 430px;
  1923. height: 59px !important;
  1924. }
  1925. .el-form-item {
  1926. .el-select {
  1927. width: 100%;
  1928. }
  1929. .el-date-editor.el-input {
  1930. width: 100%;
  1931. }
  1932. .textarea {
  1933. width: 100%;
  1934. height: 70px;
  1935. border-color: #dcdfe6;
  1936. padding: 5px;
  1937. }
  1938. }
  1939. }
  1940. .el-select-dropdown {
  1941. z-index: 998 !important;
  1942. }
  1943. .newCol {
  1944. position: fixed;
  1945. bottom: 0;
  1946. right: 50px;
  1947. }
  1948. /deep/ .now_his{
  1949. .el-row{
  1950. .el-col-24{
  1951. .el-form-item{
  1952. .el-form-item__content{
  1953. height: 100%;
  1954. .el-textarea{
  1955. .el-textarea__inner{
  1956. height: 93%;
  1957. }
  1958. }
  1959. }
  1960. }
  1961. }
  1962. }
  1963. }
  1964. </style>