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

index.vue 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs"></bread-crumb>
  5. </div>
  6. <div class="app-container">
  7. <el-tabs v-model="activeName" @tab-click="handleClick">
  8. <el-tab-pane label="未审核" name="first">
  9. <el-table
  10. :data="list"
  11. border
  12. style="width: 100%">
  13. <el-table-column prop="date" label="序号" min-width="50" align="center">
  14. <template slot-scope="scope" >
  15. {{scope.$index + 1 }}
  16. </template>
  17. </el-table-column>
  18. <el-table-column prop="name" label="信息模块" min-width="120" align="center">
  19. <template slot-scope="scope" >
  20. <span v-if="scope.row.module == 1">透析处方</span>
  21. <span v-if="scope.row.module == 2">接诊评估</span>
  22. <span v-if="scope.row.module == 3">透前评估</span>
  23. <span v-if="scope.row.module == 4">临时医嘱</span>
  24. <span v-if="scope.row.module == 5">双人核对</span>
  25. <span v-if="scope.row.module == 6">透析上机</span>
  26. <span v-if="scope.row.module == 7">透析监测</span>
  27. <span v-if="scope.row.module == 8">透析下机</span>
  28. <span v-if="scope.row.module == 9">透后评估</span>
  29. <span v-if="scope.row.module == 10">治疗小结</span>
  30. <span v-if="scope.row.module == 11">耗材出库</span>
  31. </template>
  32. </el-table-column>
  33. <el-table-column prop="address" label="患者姓名" min-width="100" align="center">
  34. <template slot-scope="scope">
  35. {{getPatientName(scope.row.patient_id) }}
  36. </template>
  37. </el-table-column>
  38. <el-table-column prop="date" label="治疗日期" min-width="100" align="center">
  39. <template slot-scope="scope" >
  40. {{getTimeOne(scope.row.record_date) }}
  41. </template>
  42. </el-table-column>
  43. <el-table-column prop="name" label="申请人" min-width="100" align="center">
  44. <template slot-scope="scope">
  45. {{getUserName(scope.row.creater) }}
  46. </template>
  47. </el-table-column>
  48. <el-table-column prop="address" label="申请时间" min-width="150" align="center">
  49. <template slot-scope="scope" >
  50. {{getTimeTwo(scope.row.application_date) }}
  51. </template>
  52. </el-table-column>
  53. <el-table-column prop="date" label="状态" align="center" min-width="100">
  54. <template slot-scope="scope" >
  55. <span v-if="scope.row.application_status == 1">已审核</span>
  56. <span v-if="scope.row.application_status == 2">未审核</span>
  57. <span v-if="scope.row.application_status == 3">拒绝</span>
  58. </template>
  59. </el-table-column>
  60. <el-table-column prop="address" label="备注" min-width="100" align="center">
  61. <template slot-scope="scope">
  62. {{scope.row.remark }}
  63. </template>
  64. </el-table-column>
  65. <el-table-column prop="address" label="操作" min-width="150" align="center">
  66. <template slot-scope="scope">
  67. <el-tooltip
  68. class="item"
  69. effect="dark"
  70. content="审核"
  71. placement="top"
  72. >
  73. <el-button
  74. size="small"
  75. type="primary"
  76. icon="el-icon-edit-outline"
  77. @click="handleEdit(scope.$index, scope.row)"
  78. >
  79. </el-button>
  80. </el-tooltip>
  81. <el-tooltip
  82. class="item"
  83. effect="dark"
  84. content="拒绝"
  85. placement="top"
  86. >
  87. <el-button
  88. size="small"
  89. type="danger"
  90. icon="el-icon-delete"
  91. @click="handleDelete(scope.$index, scope.row)"
  92. >
  93. </el-button>
  94. </el-tooltip>
  95. </template>
  96. </el-table-column>
  97. </el-table>
  98. <el-pagination
  99. @size-change="handleSizeChange"
  100. @current-change="handleCurrentChange"
  101. :page-size="10"
  102. background
  103. style="margin-top:20px;float: right"
  104. :total="total"
  105. ></el-pagination>
  106. </el-tab-pane>
  107. <el-tab-pane label="全部" name="second">
  108. <el-table
  109. :data="inforList"
  110. border
  111. style="width: 100%">
  112. <el-table-column prop="date" label="序号" min-width="50" align="center">
  113. <template slot-scope="scope" >
  114. {{scope.$index + 1 }}
  115. </template>
  116. </el-table-column>
  117. <el-table-column prop="name" label="信息模块" min-width="100" align="center">
  118. <template slot-scope="scope" >
  119. <span v-if="scope.row.module == 1">透析处方</span>
  120. <span v-if="scope.row.module == 2">接诊评估</span>
  121. <span v-if="scope.row.module == 3">透前评估</span>
  122. <span v-if="scope.row.module == 4">临时医嘱</span>
  123. <span v-if="scope.row.module == 5">双人核对</span>
  124. <span v-if="scope.row.module == 6">透析上机</span>
  125. <span v-if="scope.row.module == 7">透析监测</span>
  126. <span v-if="scope.row.module == 8">透析下机</span>
  127. <span v-if="scope.row.module == 9">透后评估</span>
  128. <span v-if="scope.row.module == 10">治疗小结</span>
  129. <span v-if="scope.row.module == 11">耗材出库</span>
  130. </template>
  131. </el-table-column>
  132. <el-table-column prop="address" label="患者姓名" min-width="100" align="center">
  133. <template slot-scope="scope">
  134. {{getPatientName(scope.row.patient_id) }}
  135. </template>
  136. </el-table-column>
  137. <el-table-column prop="date" label="治疗日期" min-width="100" align="center">
  138. <template slot-scope="scope" >
  139. {{getTimeOne(scope.row.record_date) }}
  140. </template>
  141. </el-table-column>
  142. <el-table-column prop="name" label="申请人" min-width="100" align="center">
  143. <template slot-scope="scope">
  144. {{getUserName(scope.row.creater) }}
  145. </template>
  146. </el-table-column>
  147. <el-table-column prop="address" label="申请时间" min-width="180" align="center">
  148. <template slot-scope="scope" >
  149. {{getTimeTwo(scope.row.application_date) }}
  150. </template>
  151. </el-table-column>
  152. <el-table-column prop="date" label="状态" min-width="100" align="center">
  153. <template slot-scope="scope" >
  154. <span v-if="scope.row.application_status == 1">已审核</span>
  155. <span v-if="scope.row.application_status == 2">未审核</span>
  156. <span v-if="scope.row.application_status == 3">拒绝</span>
  157. </template>
  158. </el-table-column>
  159. <el-table-column prop="name" label="审批人" min-width="100" align="center">
  160. <template slot-scope="scope" >
  161. {{getUserName(scope.row.checker) }}
  162. </template>
  163. </el-table-column>
  164. <el-table-column prop="address" label="审批时间" min-width="180" align="center">
  165. <template slot-scope="scope">
  166. {{getTimeOne(scope.row.check_time) }}
  167. </template>
  168. </el-table-column>
  169. <el-table-column prop="address" label="备注" min-width="260" align="center">
  170. <template slot-scope="scope">
  171. {{scope.row.remark }}
  172. </template>
  173. </el-table-column>
  174. </el-table>
  175. <el-pagination
  176. @size-change="handleSizeChangeOne"
  177. @current-change="handleCurrentChangeOne"
  178. :page-size="10"
  179. background
  180. style="margin-top:20px;float: right"
  181. :total="totalOne"
  182. ></el-pagination>
  183. </el-tab-pane>
  184. <el-tab-pane label="信息归档设置" name="third">
  185. <el-button type="primary" size="small" style="margin-bottom:20px" @click="toSeeting">设置</el-button>
  186. <el-table
  187. :data="tableData"
  188. style="width: 350px"
  189. border
  190. lazy>
  191. <el-table-column prop="date" label="序号" width="180" align="center">
  192. <template slot-scope="scope" >
  193. {{scope.$index + 1 }}
  194. </template>
  195. </el-table-column>
  196. <el-table-column
  197. prop="name"
  198. label="归档天数"
  199. width="180"
  200. align="center">
  201. <template slot-scope="scope" >
  202. {{scope.row.week_day }}
  203. </template>
  204. </el-table-column>
  205. </el-table>
  206. </el-tab-pane>
  207. </el-tabs>
  208. </div>
  209. <el-dialog
  210. title="信息归档设置"
  211. :visible.sync="dialogVisible"
  212. width="30%">
  213. <span>
  214. <span>归档天数:</span> <el-input v-model="week_day" style="width:200px"></el-input>
  215. </span>
  216. <span slot="footer" class="dialog-footer">
  217. <el-button @click="dialogVisible = false">取 消</el-button>
  218. <el-button type="primary" @click="SaveDialysisInformationSetting">保 存</el-button>
  219. </span>
  220. </el-dialog>
  221. </div>
  222. </template>
  223. <script>
  224. import { SaveDialysisInformationSetting,getDialysisInformationSetting,checkDialysisInformation } from "@/api/dialysis"
  225. import { uParseTime } from '@/utils/tools'
  226. export default {
  227. data() {
  228. return {
  229. activeName: 'first',
  230. dialogVisible:false,
  231. id:0,
  232. week_day:"",
  233. crumbs: [
  234. { path: false, name: "信息归档" },
  235. ],
  236. tableData:[],
  237. limit:10,
  238. page:1,
  239. list:[],
  240. total:0,
  241. totalOne:0,
  242. inforList:0,
  243. patients:[],
  244. adminList:[],
  245. id:0,
  246. };
  247. },
  248. methods: {
  249. handleClick(val){
  250. this.getlist()
  251. },
  252. toSeeting(){
  253. var params = {
  254. limit:this.limit,
  255. page:this.page
  256. }
  257. getDialysisInformationSetting(params).then(response=>{
  258. if(response.data.state == 1){
  259. this.dialogVisible = true
  260. var informaitonSetting = response.data.data.informaitonSetting
  261. if (informaitonSetting!=null && informaitonSetting.length > 0) {
  262. this.week_day = informaitonSetting[0].week_day
  263. }
  264. }
  265. })
  266. },
  267. SaveDialysisInformationSetting(){
  268. var params = {
  269. week_day:parseInt(this.week_day),
  270. id:parseInt(this.id),
  271. }
  272. SaveDialysisInformationSetting(params).then(response=>{
  273. if(response.data.state == 1){
  274. var informaitonSetting = response.data.data.informaitonSetting
  275. this.$message.success("保存成功!")
  276. this.dialogVisible = false
  277. this.toSeetingOne()
  278. }
  279. })
  280. },
  281. getlist(){
  282. var params = {
  283. limit:this.limit,
  284. page:this.page
  285. }
  286. console.log("params23433232wo",params)
  287. getDialysisInformationSetting(params).then(response=>{
  288. if(response.data.state == 1){
  289. var informaitonSetting = response.data.data.informaitonSetting
  290. this.tableData = informaitonSetting
  291. //未审核
  292. this.list = response.data.data.infor
  293. this.total = response.data.data.total
  294. //已审核
  295. this.totalOne = response.data.data.totalOne
  296. this.inforList = response.data.data.inforList
  297. this.patients = response.data.data.patients
  298. this.adminList= response.data.data.adminList
  299. }
  300. })
  301. },
  302. handleSizeChange(val){
  303. this.limit = val;
  304. this.getList();
  305. },
  306. handleCurrentChange(val){
  307. this.page =val
  308. this.getlist()
  309. },
  310. handleSizeChangeOne(val){
  311. this.limit=val
  312. this.getlist()
  313. },
  314. handleCurrentChangeOne(val){
  315. this.page =val
  316. this.getlist()
  317. },
  318. getPatientName(patient_id){
  319. var name = ""
  320. for(let i=0;i<this.patients.length;i++){
  321. if(patient_id == this.patients[i].id){
  322. name = this.patients[i].name
  323. }
  324. }
  325. return name
  326. },
  327. getTimeOne(val) {
  328. if(val == ""){
  329. return ""
  330. }else {
  331. return uParseTime(val, '{y}-{m}-{d}')
  332. }
  333. },
  334. getTimeTwo(val) {
  335. if(val == ""){
  336. return ""
  337. }else {
  338. return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
  339. }
  340. },
  341. getUserName(admin_user_id){
  342. var user_name = ""
  343. for(let i=0;i<this.adminList.length;i++){
  344. if(admin_user_id == this.adminList[i].admin_user_id){
  345. user_name = this.adminList[i].user_name
  346. }
  347. }
  348. return user_name
  349. },
  350. handleEdit(index,row) {
  351. this.$confirm("确认审核吗?", "审核", {
  352. confirmButtonText: "确 定",
  353. cancelButtonText: "取 消",
  354. type: "warning"
  355. }).then(() => {
  356. var params = {
  357. id:row.id,
  358. application_status:1,
  359. }
  360. checkDialysisInformation(params).then(response => {
  361. if (response.data.state == 0) {
  362. this.$message.error(response.data.msg);
  363. return false;
  364. } else {
  365. this.$notify({
  366. title: "成功",
  367. message: "审核成功",
  368. type: "success",
  369. duration: 2000
  370. });
  371. this.getlist()
  372. }
  373. });
  374. })
  375. .catch(() => {});
  376. },
  377. handleDelete(index,row){
  378. this.$confirm("确认审核吗?", "审核", {
  379. confirmButtonText: "确 定",
  380. cancelButtonText: "取 消",
  381. type: "warning"
  382. }).then(() => {
  383. var params = {
  384. id:row.id,
  385. application_status:3,
  386. }
  387. checkDialysisInformation(params).then(response => {
  388. if (response.data.state == 0) {
  389. this.$message.error(response.data.msg);
  390. return false;
  391. } else {
  392. this.$notify({
  393. title: "成功",
  394. message: "拒绝成功",
  395. type: "success",
  396. duration: 2000
  397. });
  398. this.getlist()
  399. }
  400. });
  401. }).catch(() => {});
  402. },
  403. toSeetingOne(){
  404. var params = {
  405. limit:this.limit,
  406. page:this.page
  407. }
  408. getDialysisInformationSetting(params).then(response=>{
  409. if(response.data.state == 1){
  410. var informaitonSetting = response.data.data.informaitonSetting
  411. this.tableData = []
  412. this.tableData = informaitonSetting
  413. }
  414. })
  415. },
  416. },
  417. created(){
  418. this.getlist()
  419. }
  420. };
  421. </script>