followup_newplan.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>新建随访计划</title>
  6. <link rel="shortcut icon" href="../../favicon.ico">
  7. <link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css" />
  8. <link rel="stylesheet" type="text/css" href="../../../css/style.min.css" />
  9. <link rel="stylesheet" type="text/css" href="../../../css/cross.css" />
  10. <link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
  11. <link rel="stylesheet" type="text/css" href="../css/date.css" />
  12. <link rel="stylesheet" href="../../../plugins/element-ui/element-ui.css" />
  13. <link rel="stylesheet" href="../css/followup_newplan.css" />
  14. </head>
  15. <body>
  16. <div id="app" v-cloak>
  17. <div class="newPlan">
  18. <div class="pt20 pl20 pr15">
  19. <el-form ref="form" :model="followUpItem" label-width="100px">
  20. <el-form-item label="计划类型:" required>
  21. <el-select v-model="itemType" placeholder="请选择计划类型" style="width:220px;" @change="changePlanType" size="mini">
  22. <el-option label="随访计划" value="1"></el-option>
  23. <el-option label="临时随访" value="2"></el-option>
  24. <el-option label="入户访视" value="3" v-show="loginDoctor.hospital.indexOf('350203')>-1||loginDoctor.hospital=='ac02a9b87a3611e69f7c005056850d66'"></el-option>
  25. </el-select>
  26. </el-form-item>
  27. <el-form-item v-if="itemType!=3" label="选择居民:" prop="patientName" :rules="{required: true, message: '请选择居民', trigger: 'change'}">
  28. <el-input v-model="followUpItem.patientName" style="width:220px;" readonly>
  29. </el-input>
  30. </el-form-item>
  31. <div v-if="itemType=='1'">
  32. <div v-for="(item,index) in followUpItem.planList" :key="index">
  33. <el-form-item label="随访次数:">
  34. <div class="flex listDo" style="width:220px;">
  35. <div class="f_g_1" style="height: 28px;line-height: 28px;">第{{index+1}}次</div>
  36. <div v-if="index==0" class="f_s_0 c-12b7f5" @click="addListItem"><img src="../image/tianjia_icon.png" class="pt7 pr5"/>新增一次计划</div>
  37. <div v-else class="f_s_0 c-ff3b30" @click="removeListItem(index)"><img src="../image/shanchujihua_icon.png" class="pt7 pr5"/>删除本次计划</div>
  38. </div>
  39. </el-form-item>
  40. <el-form-item label="随访时间:" :prop="'planList.' + index + '.date'" :rules="[{required: true, message: '请选择随访时间',trigger:'change'}]">
  41. <el-date-picker style="width:220px;"
  42. v-model="item.date"
  43. type="datetime"
  44. placeholder="选择日期时间"
  45. clearable
  46. format="yyyy-MM-dd HH:mm"
  47. value-format="yyyy-MM-dd HH:mm:ss">
  48. </el-date-picker>
  49. </el-form-item>
  50. <el-form-item label="随访医生:" :prop="'planList.' + index + '.doctor'" :rules="{required: true, message: '请选择随访医生', trigger: 'change'}">
  51. <el-select v-model="item.doctor" placeholder="请选择随访医生" style="width:220px;">
  52. <el-option v-for="(ditem, dindex) in doctorList" :key="dindex" :label="ditem.name" :value="ditem.uid"></el-option>
  53. </el-select>
  54. </el-form-item>
  55. <el-form-item label="随访方式:" :prop="'planList.' + index + '.type'" :rules="{required: true, message: '请选择随访方式', trigger: 'change'}">
  56. <el-select v-model="item.type" placeholder="请选择随访方式" style="width:220px;">
  57. <!-- <el-option label="门诊" value="1"></el-option> -->
  58. <el-option label="家庭" value="2"></el-option>
  59. <!-- <el-option label="健管师随访" value="10"></el-option> -->
  60. <el-option label="电话" value="3"></el-option>
  61. </el-select>
  62. </el-form-item>
  63. <el-form-item label="随访类型:" :prop="'planList.' + index + '.followupClass'" :rules="{required: true, message: '请选择随访类型', trigger: 'change'}">
  64. <el-select v-model="item.followupClass" placeholder="请选择" style="width:220px;">
  65. <el-option label="请选择" value=""></el-option>
  66. <el-option v-for="(o, i) in followTypeList" :key="i" :label="o.name" :value="o.code"></el-option>
  67. </el-select>
  68. </el-form-item>
  69. </div>
  70. <div class="ml100 pt20">
  71. <el-button class="c-btn c-btn-12b7f5" type="primary" @click="addFollowupPlan">保存</el-button>
  72. <el-button class="c-btn c-btn-f96565" type="primary" @click="back">取消</el-button>
  73. </div>
  74. </div>
  75. <div v-if="itemType=='2'">
  76. <el-form-item label="随访时间:" prop="date" :rules="{required: true, message: '请选择随访时间', trigger: 'change'}">
  77. <el-date-picker style="width:220px;"
  78. v-model="followUpItem.date"
  79. type="datetime"
  80. placeholder="选择日期时间"
  81. clearable
  82. format="yyyy-MM-dd HH:mm"
  83. value-format="yyyy-MM-dd HH:mm:ss">
  84. </el-date-picker>
  85. </el-form-item>
  86. <el-form-item label="随访方式:" prop="followupType" :rules="{required: true, message: '请选择随访方式', trigger: 'change'}">
  87. <el-select v-model="followUpItem.followupType" placeholder="请选择随访方式" style="width:220px;">
  88. <el-option label="家庭" value="2"></el-option>
  89. <!-- <el-option label="门诊" value="1"></el-option>
  90. <el-option label="健管师随访" value="10"></el-option> -->
  91. <el-option label="电话" value="3"></el-option>
  92. </el-select>
  93. </el-form-item>
  94. <el-form-item label="随访类型:" prop="followupClass" :rules="{required: true, message: '请选择随访类型', trigger: 'change'}">
  95. <el-select v-model="followUpItem.followupClass" placeholder="请选择随访类型" style="width:220px;">
  96. <el-option label="请选择" value=""></el-option>
  97. <el-option v-for="(o, i) in followTypeList" :key="i" :label="o.name" :value="o.code"></el-option>
  98. </el-select>
  99. </el-form-item>
  100. <el-form-item label="随访状态:">
  101. <el-select v-model="followUpItem.followupManagerStatus" placeholder="请选择随访状态" style="width:220px;">
  102. <el-option label="请选择" value=""></el-option>
  103. <el-option v-for="(item, index) in followupManagerStatusList" :key="index" :label="item.value" :value="item.code"></el-option>
  104. </el-select>
  105. </el-form-item>
  106. <el-form-item label="下次随访:" prop="plandate">
  107. <el-date-picker style="width:220px;"
  108. v-model="followUpItem.plandate"
  109. type="datetime"
  110. placeholder="选择日期时间"
  111. clearable
  112. format="yyyy-MM-dd HH:mm"
  113. value-format="yyyy-MM-dd HH:mm:ss">
  114. </el-date-picker>
  115. </el-form-item>
  116. <div class="ml100 pt20">
  117. <el-button class="c-btn c-btn-12b7f5" type="primary" @click="addFollowup">登记结果</el-button>
  118. <el-button class="c-btn c-btn-f96565" type="primary" @click="back">取消</el-button>
  119. </div>
  120. </div>
  121. <div v-if="itemType=='3'">
  122. <el-form-item label="随访类型:" prop="followupClass" :rules="{required: true, message: '请选择随访类型', trigger: 'change'}">
  123. <el-select v-model="followUpItem.followupClass" placeholder="请选择随访类型" style="width:220px;"> <!-- @change="fsClassChange" -->
  124. <el-option label="请选择" value=""></el-option>
  125. <el-option label="肺结核" value="9"></el-option>
  126. <el-option label="孕产妇" value="5"></el-option>
  127. <el-option label="新生儿" value="6"></el-option>
  128. <el-option label="严重精神障碍患者" value="7"></el-option>
  129. <el-option label="80岁以上老人" value="8"></el-option>
  130. </el-select>
  131. </el-form-item>
  132. <el-form-item label="随访时间:" prop="followupDate" :rules="{required: true, message: '请选择随访时间', trigger: 'change'}">
  133. <el-date-picker style="width:220px;"
  134. v-model="followUpItem.followupDate"
  135. type="datetime"
  136. placeholder="选择日期时间"
  137. clearable
  138. format="yyyy-MM-dd HH:mm"
  139. value-format="yyyy-MM-dd HH:mm:ss">
  140. </el-date-picker>
  141. </el-form-item>
  142. <div v-if="true"> <!--followUpItem.followupClass=='7'||followUpItem.followupClass=='8'||followUpItem.followupClass=='9'-->
  143. <el-form-item label="选择居民:" prop="patientName" :rules="{required: true, message: '请选择居民', trigger: 'change'}">
  144. <el-input readonly v-model="followUpItem.patientName" style="width:220px;">
  145. </el-input>
  146. </el-form-item>
  147. <div id="div_items">
  148. <div class="div_item" @click="clicksingleItem(sfPatientList)" v-if="sfPatientList.idCard">
  149. <div>{{sfPatientList.sickName}}({{sfPatientList.sex!=1?'男':'女'}} {{sfPatientList.age}}岁)</div>
  150. <div>{{sfPatientList.idcardEncrypt}}</div>
  151. </div>
  152. <div v-else class="div_item" @click="clicksingleItem(sfPatientList)">
  153. <div></div>
  154. </div>
  155. </div>
  156. </div>
  157. <el-form-item v-else label="选择居民:" prop="patientName" :rules="{required: true, message: '请选择居民', trigger: 'change'}">
  158. <el-input placeholder="请选择居民" readonly v-model="followUpItem.patientName" style="width:220px;" readonly @click.native="showPatientList">
  159. </el-input>
  160. </el-form-item>
  161. <el-form-item label="随访医生:">
  162. <el-input v-model="loginDoctor.name" style="width:220px;" readonly>
  163. </el-input>
  164. </el-form-item>
  165. <el-form-item label="随访方式:" prop="followupType" :rules="{required: true, message: '请选择随访方式', trigger: 'change'}">
  166. <el-select v-model="followUpItem.followupType" placeholder="请选择随访方式" style="width:220px;">
  167. <el-option label="家庭" value="2"></el-option>
  168. <!-- <el-option label="门诊" value="1"></el-option>
  169. <el-option label="健管师随访" value="10"></el-option> -->
  170. <el-option label="电话" value="3"></el-option>
  171. </el-select>
  172. </el-form-item>
  173. <div class="ml100 pt20">
  174. <el-button class="c-btn c-btn-12b7f5" type="primary" @click="saveFollowup">保存</el-button>
  175. <el-button class="c-btn c-btn-f96565" type="primary" @click="back">取消</el-button>
  176. </div>
  177. </div>
  178. </el-form>
  179. </div>
  180. </div>
  181. </div>
  182. <script type="text/javascript" src="../../../js/vue.js"></script>
  183. <script type="text/javascript" src="../../../js/jquery-2.2.4.js"></script>
  184. <script type="text/javascript" src="../../../plugins/element-ui/element-ui.js"></script>
  185. <script src="../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
  186. <script src="../../../plugins/toastr/toastr.min.js"></script>
  187. <script type="text/javascript" src="../../../api/http-request.js"></script>
  188. <script type="text/javascript" src="../../../plugins/layer/layer.min.js"></script>
  189. <script type="text/javascript" src="../../../api/sign_api.js"></script>
  190. <script type="text/javascript" src="../../../api/followup_api.js"></script>
  191. <script type="text/javascript" src="../../../js/underscore-1.9.1.js"></script>
  192. <script src="../../../js/util.js" type="text/javascript" charset="utf-8"></script>
  193. <script type="text/javascript" src="../js/followup_newplan.js"></script>
  194. </body>
  195. </html>