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

statisticalConfiguration.vue 8.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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" ref="form">
  31. <el-form-item label="检查大项" :label-width="formLabelWidth">
  32. <el-select v-model="form.inspectionMajor" placeholder="请选择活动区域">
  33. <el-option
  34. v-for="patient in InspectionMajor"
  35. :key="patient.id"
  36. :value="patient.id"
  37. :label="patient.name"
  38. >
  39. </el-option>
  40. </el-select>
  41. </el-form-item>
  42. <el-form-item label="检查小项" :label-width="formLabelWidth">
  43. <el-select v-model="form.inspectionMinor" placeholder="请选择活动区域">
  44. <el-option
  45. v-for="patient in InspectionMinor"
  46. :key="patient.id"
  47. :value="patient.id"
  48. :label="patient.name"
  49. >
  50. </el-option>
  51. </el-select>
  52. </el-form-item>
  53. <el-form-item label="指控范围" :label-width="formLabelWidth">
  54. <el-input style="width:200px" v-model="form.min_range"></el-input>&nbsp;
  55. -
  56. <el-input style="width:200px" v-model="form.large_range"></el-input>
  57. </el-form-item>
  58. <el-form-item label="排序" :label-width="formLabelWidth">
  59. <el-input style="width:200px" v-model="form.sort"></el-input>
  60. </el-form-item>
  61. </el-form>
  62. <div slot="footer" class="dialog-footer">
  63. <el-button @click="newDialog = false">取 消</el-button>
  64. <el-button type="primary" @click="newDialog = false">保存</el-button>
  65. </div>
  66. </el-dialog>
  67. <el-dialog title="编辑" :visible.sync="editDialog">
  68. <el-form :model="form">
  69. <el-form-item label="检查大项" :label-width="formLabelWidth">
  70. <el-select v-model="form.inspectionMajor" placeholder="请选择活动区域">
  71. <el-option
  72. v-for="patient in InspectionMajor"
  73. :key="patient.id"
  74. :value="patient.id"
  75. :label="patient.name"
  76. >
  77. </el-option>
  78. </el-select>
  79. </el-form-item>
  80. <el-form-item label="检查小项" :label-width="formLabelWidth">
  81. <el-select v-model="form.inspectionMinor" placeholder="请选择活动区域">
  82. <el-option
  83. v-for="patient in InspectionMinor"
  84. :key="patient.id"
  85. :value="patient.id"
  86. :label="patient.name"
  87. >
  88. </el-option>
  89. </el-select>
  90. </el-form-item>
  91. <el-form-item label="指控范围" :label-width="formLabelWidth">
  92. <el-input style="width:200px" v-model="form.min_range"></el-input>&nbsp;
  93. -
  94. <el-input style="width:200px" v-model="form.large_range"></el-input>
  95. </el-form-item>
  96. <el-form-item label="排序" :label-width="formLabelWidth">
  97. <el-input style="width:200px" v-model="form.sort"></el-input>
  98. </el-form-item>
  99. </el-form>
  100. <div slot="footer" class="dialog-footer">
  101. <el-button @click="editDialog = false">取 消</el-button>
  102. <el-button type="primary" @click="editDialog = false">保存</el-button>
  103. </div>
  104. </el-dialog>
  105. </div>
  106. </div>
  107. </template>
  108. <script>
  109. import { GetOICData } from "@/api/qcd";
  110. import PieChart from "../qcd/components/BarChart";
  111. import { uParseTime } from "@/utils/tools";
  112. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  113. export default {
  114. name: "dialysisTotal",
  115. data() {
  116. return {
  117. crumbs: [
  118. { path: false, name: "科室质控" },
  119. { path: false, name: "统计配置" },
  120. { path: false, name: "质控达标统计配置" }
  121. ],
  122. tabActiveName: "control",
  123. InspectionMajor:[],
  124. InspectionMinor:[],
  125. tableData: [
  126. {
  127. date: "2016-05-02",
  128. name: "王小虎",
  129. address: "上海市普陀区金沙江路 1518 弄"
  130. },
  131. {
  132. date: "2016-05-04",
  133. name: "王小虎",
  134. address: "上海市普陀区金沙江路 1517 弄"
  135. },
  136. {
  137. date: "2016-05-01",
  138. name: "王小虎",
  139. address: "上海市普陀区金沙江路 1519 弄"
  140. },
  141. {
  142. date: "2016-05-03",
  143. name: "王小虎",
  144. address: "上海市普陀区金沙江路 1516 弄"
  145. }
  146. ],
  147. newDialog: false,
  148. editDialog: false,
  149. formLabelWidth: "120px",
  150. form: {
  151. inspectionMajor: "",
  152. inspectionMinor: "",
  153. min_range: "",
  154. large_range: "",
  155. sort:"",
  156. delivery: false,
  157. type: [],
  158. resource: "",
  159. desc: ""
  160. }
  161. };
  162. },
  163. created() {},
  164. methods: {
  165. handleTabClick(tab, event) {
  166. if (this.tabActiveName == "query") {
  167. this.$router.push({ path: "/qcd/patientanalysis/checkStatistical" });
  168. }
  169. },
  170. handleEdit() {
  171. this.editDialog = true;
  172. }
  173. },
  174. components: {
  175. PieChart,
  176. BreadCrumb
  177. }
  178. };
  179. </script>
  180. <style lang="scss">
  181. #oictable ::-webkit-scrollbar {
  182. height: 15px;
  183. }
  184. .configTable {
  185. .el-table td,
  186. .el-table th {
  187. text-align: center;
  188. }
  189. }
  190. </style>
  191. <style rel="stylesheet/scss" lang="scss" scoped>
  192. .newadd {
  193. margin-bottom: 10px;
  194. }
  195. // .app-container {
  196. // // margin: 20px;
  197. // font-size: 15px;
  198. // .filter-container {
  199. // padding-bottom: 5px;
  200. // }
  201. // .cqd-dataTitle {
  202. // color: #303133;
  203. // font-size: 14px;
  204. // border-bottom: 2px #e4e7ed solid;
  205. // height: 36px;
  206. // line-height: 36px;
  207. // margin: 0 0 25px 0;
  208. // position: relative;
  209. // }
  210. // .cqd-dataTitle::before {
  211. // position: absolute;
  212. // left: 0;
  213. // bottom: -2px;
  214. // content: "";
  215. // width: 42px;
  216. // height: 2px;
  217. // background: #409eff;
  218. // }
  219. // .search-component {
  220. // width: 500px;
  221. // .searchBox {
  222. // width: 300px;
  223. // height: 36px;
  224. // line-height: 36px;
  225. // padding-left: 15px;
  226. // border: 1px #dcdfe6 solid;
  227. // border-right: none;
  228. // outline: none;
  229. // float: left;
  230. // border-radius: 6px 0 0 6px;
  231. // font-size: 14px;
  232. // color: #333;
  233. // background: #fff;
  234. // box-shadow: 3px 3px 4px rgba(135, 135, 135, 0.05);
  235. // }
  236. // .searchBtn {
  237. // background-color: #409eff;
  238. // color: #fff;
  239. // font-size: 15px;
  240. // text-align: center;
  241. // height: 36px;
  242. // line-height: 36px;
  243. // float: left;
  244. // outline: none;
  245. // width: 70px;
  246. // border: none;
  247. // border-radius: 0 6px 6px 0;
  248. // font-family: "Microsoft Yahei";
  249. // cursor: pointer;
  250. // }
  251. // }
  252. // .amount {
  253. // font-weight: normal;
  254. // padding: 10px 0 0 0;
  255. // color: #606266;
  256. // font-size: 14px;
  257. // span {
  258. // color: #ef2525;
  259. // font-family: "Arial";
  260. // padding: 0 2px;
  261. // }
  262. // }
  263. // }
  264. //
  265. </style>