checkStatistical.vue 6.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  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="tabActiveName" @tab-click="handleTabClick" style="margin-bottom:10px">
  8. <el-tab-pane label="质控达标统计配置" name="control"></el-tab-pane>
  9. <el-tab-pane label="检验检查统计配置" name="query"></el-tab-pane>
  10. </el-tabs>
  11. <el-row :gutter="20">
  12. <el-col :span="2" :offset="22">
  13. <el-button type="primary" class="newadd" @click="newDialog = true">新增</el-button>
  14. </el-col>
  15. </el-row>
  16. <div class="configTable">
  17. <el-table :data="tableData" border style="width: 100%">
  18. <el-table-column prop="date" label="日期" width="180"></el-table-column>
  19. <el-table-column prop="name" label="姓名" width="180"></el-table-column>
  20. <el-table-column prop="address" label="地址"></el-table-column>
  21. <el-table-column label="操作" width="180">
  22. <template slot-scope="scope">
  23. <el-button size="mini" type="primary" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
  24. <el-button size="mini" type="danger" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
  25. </template>
  26. </el-table-column>
  27. </el-table>
  28. </div>
  29. <el-dialog title="新增" :visible.sync="newDialog">
  30. <el-form :model="form">
  31. <el-form-item label="检查大项" :label-width="formLabelWidth">
  32. <el-select v-model="form.region" placeholder="请选择活动区域">
  33. <el-option label="区域一" value="shanghai"></el-option>
  34. <el-option label="区域二" value="beijing"></el-option>
  35. </el-select>
  36. </el-form-item>
  37. <el-form-item label="检查频次(天)" :label-width="formLabelWidth">
  38. <el-input style="width:200px" v-model="form.name"></el-input>
  39. </el-form-item>
  40. <el-form-item label="排序" :label-width="formLabelWidth">
  41. <el-input style="width:200px" v-model="form.name"></el-input>
  42. </el-form-item>
  43. </el-form>
  44. <div slot="footer" class="dialog-footer">
  45. <el-button @click="newDialog = false">取 消</el-button>
  46. <el-button type="primary" @click="newDialog = false">确 定</el-button>
  47. </div>
  48. </el-dialog>
  49. <el-dialog title="编辑" :visible.sync="editDialog">
  50. <el-form :model="form">
  51. <el-form-item label="检查大项" :label-width="formLabelWidth">
  52. <el-select v-model="form.region" placeholder="请选择活动区域">
  53. <el-option label="区域一" value="shanghai"></el-option>
  54. <el-option label="区域二" value="beijing"></el-option>
  55. </el-select>
  56. </el-form-item>
  57. <el-form-item label="检查频次(天)" :label-width="formLabelWidth">
  58. <el-input style="width:200px" v-model="form.name"></el-input>
  59. </el-form-item>
  60. <el-form-item label="排序" :label-width="formLabelWidth">
  61. <el-input style="width:200px" v-model="form.name"></el-input>
  62. </el-form-item>
  63. </el-form>
  64. <div slot="footer" class="dialog-footer">
  65. <el-button @click="editDialog = false">取 消</el-button>
  66. <el-button type="primary" @click="editDialog = false">确 定</el-button>
  67. </div>
  68. </el-dialog>
  69. </div>
  70. </div>
  71. </template>
  72. <script>
  73. import { GetOICData } from "@/api/qcd";
  74. import PieChart from "../qcd/components/BarChart";
  75. import { uParseTime } from "@/utils/tools";
  76. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  77. export default {
  78. name: "dialysisTotal",
  79. data() {
  80. return {
  81. crumbs: [
  82. { path: false, name: "科室质控" },
  83. { path: false, name: "统计配置" },
  84. { path: false, name: "检验检查统计配置" }
  85. ],
  86. tabActiveName: "query",
  87. tableData: [
  88. {
  89. date: "2016-05-02",
  90. name: "王小虎",
  91. address: "上海市普陀区金沙江路 1518 弄"
  92. },
  93. {
  94. date: "2016-05-04",
  95. name: "王小虎",
  96. address: "上海市普陀区金沙江路 1517 弄"
  97. },
  98. {
  99. date: "2016-05-01",
  100. name: "王小虎",
  101. address: "上海市普陀区金沙江路 1519 弄"
  102. },
  103. {
  104. date: "2016-05-03",
  105. name: "王小虎",
  106. address: "上海市普陀区金沙江路 1516 弄"
  107. }
  108. ],
  109. newDialog: false,
  110. editDialog: false,
  111. formLabelWidth: "120px",
  112. form: {
  113. name: "",
  114. region: "",
  115. date1: "",
  116. date2: "",
  117. delivery: false,
  118. type: [],
  119. resource: "",
  120. desc: ""
  121. }
  122. };
  123. },
  124. created() {},
  125. methods: {
  126. handleTabClick(tab, event) {
  127. if (this.tabActiveName == "control") {
  128. this.$router.push({ path: "/qcd/patientanalysis/statisticalConfig" });
  129. }
  130. },
  131. handleEdit() {
  132. this.editDialog = true;
  133. }
  134. },
  135. components: {
  136. PieChart,
  137. BreadCrumb
  138. }
  139. };
  140. </script>
  141. <style lang="scss">
  142. #oictable ::-webkit-scrollbar {
  143. height: 15px;
  144. }
  145. .configTable {
  146. .el-table td,
  147. .el-table th {
  148. text-align: center;
  149. }
  150. }
  151. </style>
  152. <style rel="stylesheet/scss" lang="scss" scoped>
  153. .newadd {
  154. margin-bottom: 10px;
  155. }
  156. // .app-container {
  157. // // margin: 20px;
  158. // font-size: 15px;
  159. // .filter-container {
  160. // padding-bottom: 5px;
  161. // }
  162. // .cqd-dataTitle {
  163. // color: #303133;
  164. // font-size: 14px;
  165. // border-bottom: 2px #e4e7ed solid;
  166. // height: 36px;
  167. // line-height: 36px;
  168. // margin: 0 0 25px 0;
  169. // position: relative;
  170. // }
  171. // .cqd-dataTitle::before {
  172. // position: absolute;
  173. // left: 0;
  174. // bottom: -2px;
  175. // content: "";
  176. // width: 42px;
  177. // height: 2px;
  178. // background: #409eff;
  179. // }
  180. // .search-component {
  181. // width: 500px;
  182. // .searchBox {
  183. // width: 300px;
  184. // height: 36px;
  185. // line-height: 36px;
  186. // padding-left: 15px;
  187. // border: 1px #dcdfe6 solid;
  188. // border-right: none;
  189. // outline: none;
  190. // float: left;
  191. // border-radius: 6px 0 0 6px;
  192. // font-size: 14px;
  193. // color: #333;
  194. // background: #fff;
  195. // box-shadow: 3px 3px 4px rgba(135, 135, 135, 0.05);
  196. // }
  197. // .searchBtn {
  198. // background-color: #409eff;
  199. // color: #fff;
  200. // font-size: 15px;
  201. // text-align: center;
  202. // height: 36px;
  203. // line-height: 36px;
  204. // float: left;
  205. // outline: none;
  206. // width: 70px;
  207. // border: none;
  208. // border-radius: 0 6px 6px 0;
  209. // font-family: "Microsoft Yahei";
  210. // cursor: pointer;
  211. // }
  212. // }
  213. // .amount {
  214. // font-weight: normal;
  215. // padding: 10px 0 0 0;
  216. // color: #606266;
  217. // font-size: 14px;
  218. // span {
  219. // color: #ef2525;
  220. // font-family: "Arial";
  221. // padding: 0 2px;
  222. // }
  223. // }
  224. // }
  225. //
  226. </style>