You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

131 lines
4.1 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div style="display: flex;height:32px;">
  3. <div style="display: flex; flex-wrap: wrap;height:32px; width: 100%">
  4. <div>
  5. <span class="query">检查医生</span>
  6. <el-select v-model="doctorCheck.RegisterCheckEdit.checkDoctorId" filterable clearable placeholder="请选择"
  7. style="width: 80px" size="small">
  8. <el-option v-for="item in users" :key="item.id" :label="item.surname" :value="item.id" />
  9. </el-select>
  10. </div>
  11. <div>
  12. <span class="query">检查日期</span>
  13. <el-date-picker v-model="doctorCheck.RegisterCheckEdit.checkDate" type="datetime" style="width: 90px" size="small" />
  14. </div>
  15. <div>
  16. <span class="query">操作者</span>
  17. <el-input v-model="doctorCheck.RegisterCheckEdit.LastModifierId" size="small" style="width: 80px" disabled />
  18. </div>
  19. <div>
  20. <span class="query">操作日期</span>
  21. <el-input
  22. :value="doctorCheck.RegisterCheckEdit.LastModificationTime ? lmoment(doctorCheck.RegisterCheckEdit.LastModificationTime, 'yyyy-MM-DD') : ''"
  23. style="width: 90px" size="small" disabled></el-input>
  24. </div>
  25. <div>
  26. <span class="query">状态</span>
  27. <el-select v-model="doctorCheck.RegisterCheckEdit.completeFlag" style="width: 60px" size="small" disabled>
  28. <el-option v-for="item in dict.checkCompleteFlag" :key="item.id" :label="item.displayName" :value="item.id" />
  29. </el-select>
  30. </div>
  31. </div>
  32. </div>
  33. </template>
  34. <script>
  35. import moment from "moment";
  36. import { mapState } from "vuex";
  37. import { getapi, postapi, putapi, deletapi } from "@/api/api";
  38. import { arrayExistObj } from '@/utlis/proFunc';
  39. export default {
  40. components: {},
  41. props: ["registerCheckId"],
  42. data() {
  43. return {
  44. users: [],
  45. dialogVisible: false,
  46. };
  47. },
  48. created() { },
  49. //挂载完成
  50. mounted() {
  51. this.dictInit()
  52. },
  53. computed: {
  54. ...mapState(["window", "dataTransOpts", "dict", "doctorCheck", "patientRegister", "customerOrg"]),
  55. lmoment(date, forMat) {
  56. return moment(new Date(date)).format(forMat);
  57. },
  58. },
  59. methods: {
  60. // 初始化字典数据
  61. dictInit() {
  62. getapi('/api/identity/users/getlist?SkipCount=0&MaxResultCount=1000')
  63. .then(res => {
  64. if (res.code > -1) {
  65. this.users = res.data.items
  66. }
  67. })
  68. },
  69. // 放在 明细中获取,否则要获取两次
  70. // getRegisterCheck(id){
  71. // if(id){
  72. // getapi(`/api/app/registercheck/getregistercheck?id=${id}`).then(res =>{
  73. // if(res.code != -1){
  74. // this.doctorCheck.RegisterCheckEdit = res.data
  75. // // 外部接口传入的数据,医生名字或能是具体的名称,而不是系统中的 userId ,故需添加一条外部记录
  76. // if(res.data.checkDoctorId){
  77. // let lfind = arrayExistObj(this.users,'id',res.data.checkDoctorId)
  78. // if(lfind == -1){
  79. // this.users.push({id:res.data.checkDoctorId,userName:res.data.checkDoctorId})
  80. // }
  81. // }
  82. // }
  83. // })
  84. // }else{
  85. // this.doctorCheck.RegisterCheckEdit = {
  86. // id:'',
  87. // checkDoctorId:'',
  88. // checkDate:'',
  89. // LastModifierId:'',
  90. // LastModificationTime:'',
  91. // completeFlag:''
  92. // }
  93. // }
  94. // }
  95. },
  96. watch: {
  97. // "doctorCheck.RegisterCheckId":{
  98. // immediate:true,
  99. // handler(newVal,oldVal){
  100. // this.getRegisterCheck(newVal)
  101. // }
  102. // },
  103. //检查项目未切换换时 也可以强制刷新数据
  104. // "dataTransOpts.refresh.register_check.S":{
  105. // immediate:true,
  106. // handler(newVal, oldVal) {
  107. // console.log(`watch 检查医生信息 newVal:${newVal} oldVal:${oldVal} registerCheckId: ${this.dataTransOpts.tableS.register_check.id}`);
  108. // this.getRegisterCheck(this.dataTransOpts.tableS.register_check.id);
  109. // }
  110. // },
  111. },
  112. };
  113. </script>
  114. <style scoped>
  115. .query {
  116. font-size: 14px;
  117. margin-left: 10px;
  118. margin-right: 2px;
  119. padding: 1px 1px;
  120. }
  121. </style>