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.

370 lines
13 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
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>
  3. <div>
  4. <div class="middlebox">
  5. <div class="contenttitle">
  6. 体检查询 /
  7. <span class="contenttitleBold"
  8. >组合项目检查状态</span
  9. >
  10. </div>
  11. </div>
  12. <div :style="'display: block;'">
  13. <div style="background-color: #fff; padding: 15px; border-radius: 8px;display: flex;flex-wrap: wrap; margin-bottom: 10px;height:35px;margin-top: 7px;">
  14. <div class="query">
  15. <span>体检单位</span>
  16. <el-input placeholder="请选择体检单位" v-model="patientRegister.query.cusOrgOCX" style="width:300px;" size="small"
  17. disabled>
  18. <el-button slot="append" icon="el-icon-search" @click="report.dialogCusOrgOCX = true"
  19. style="font-size: 20px;"></el-button>
  20. </el-input>
  21. </div>
  22. <div class="query">
  23. <span>组合项目</span>
  24. <el-input placeholder="请选择组合项目" v-model="patientRegister.query.asbitemOCX" style="width:240px;" size="small"
  25. disabled>
  26. <el-button slot="append" icon="el-icon-search" @click="report.dialogAsbitemOCX = true"
  27. style="font-size: 20px;"></el-button>
  28. </el-input>
  29. </div>
  30. <div class="query">
  31. <span>检查状态</span>
  32. <el-select v-model="patientRegister.query.checkCompleteFlag" placeholder="请选择" clearable style="width: 80px"
  33. size="small">
  34. <el-option v-for="item in dict.checkCompleteFlag" :key="item.id" :label="item.displayName" :value="item.id">
  35. </el-option>
  36. </el-select>
  37. </div>
  38. <div class="query">
  39. <el-button type="primary" @click="btnQuery" size="small" class="commonbutton">查询</el-button>
  40. </div>
  41. </div>
  42. <div style="background-color: #fff; padding: 15px; border-radius: 8px;">
  43. <el-table :data="dataList" border :height="window.pageHeight < 600 ? 415 : window.pageHeight - 185-20" row-key="id"
  44. size="small" highlight-current-row ref="dataList" :row-class-name="tableRowClassName">
  45. <el-table-column prop="asbitemName" label="组合项目名称" min-width="120" />
  46. <el-table-column prop="completeFlag" label="检查状态" min-width="70" align="center">
  47. <template slot-scope="scope">
  48. <div>{{ dddw(dict.checkCompleteFlag, 'id', scope.row.completeFlag, 'displayName') }}</div>
  49. </template>
  50. </el-table-column>
  51. <el-table-column prop="isCharge" label="收费状态" width="70" align="center">
  52. <template slot-scope="scope">
  53. <div>{{ scope.row.checkCompleteFlag == 'Y' ? '已收费' : '未收费' }}</div>
  54. </template>
  55. </el-table-column>
  56. <el-table-column prop="standardPrice" label="标准价格" width="70" align="center"/>
  57. <el-table-column prop="chargePrice" label="应收价格" width="70" align="center"/>
  58. <el-table-column prop="patientRegisterNo" label="人员条码号" width="130" />
  59. <el-table-column prop="patientNo" label="档案号" width="130" />
  60. <el-table-column prop="medicalTimes" label="体检次数" width="70" align="center"/>
  61. <el-table-column prop="customerOrgName" label="单位" width="180" />
  62. <!--
  63. <el-table-column prop="customerOrgParentName" label="单位" width="180">
  64. <template slot-scope="scope">
  65. <div>{{ scope.row.customerOrgParentName ? scope.row.customerOrgParentName : scope.row.customerOrgName }}</div>
  66. </template>
  67. </el-table-column>
  68. -->
  69. <el-table-column prop="departmentName" label="部门" width="180" />
  70. <!--
  71. <el-table-column prop="customerOrgName" label="部门" width="180">
  72. <template slot-scope="scope">
  73. <div>{{ scope.row.customerOrgParentName ? scope.row.customerOrgName : "" }}</div>
  74. </template>
  75. </el-table-column>
  76. -->
  77. <el-table-column label="分组/套餐" width="150">
  78. <template slot-scope="scope">
  79. <!--
  80. <div v-if="scope.row.medicalPackageId !== dict.personOrgId && scope.row.customerOrgId === dict.personOrgId">
  81. {{ dddw(dict.medicalPackage, "id", scope.row.medicalPackageId, "displayName") }}
  82. </div>
  83. <div v-if="scope.row.medicalPackageId !== dict.personOrgId && scope.row.customerOrgId !== dict.personOrgId">
  84. {{ dddw(dict.customerOrgGroupAll, "id", scope.row.customerOrgGroupId, "displayName") }}
  85. </div>
  86. -->
  87. <div v-if="scope.row.medicalPackageName">
  88. {{ scope.row.medicalPackageName }}
  89. </div>
  90. <div v-if="scope.row.customerOrgGroupName">
  91. {{ scope.row.customerOrgGroupName }}
  92. </div>
  93. </template>
  94. </el-table-column>
  95. <el-table-column prop="patientName" label="姓名" width="80" />
  96. <el-table-column prop="sexName" label="性别" />
  97. <!--
  98. <el-table-column prop="sexId" label="性别" >
  99. <template slot-scope="scope">
  100. <div>{{ dddw(dict.sex, "id", scope.row.sexId, "displayName") }}</div>
  101. </template>
  102. </el-table-column>
  103. -->
  104. <el-table-column prop="age" label="年龄" />
  105. <el-table-column prop="mobileTelephone" label="手机" width="120" />
  106. <el-table-column prop="telephone" label="电话" width="100" />
  107. </el-table>
  108. </div>
  109. </div>
  110. </div>
  111. <!--通用选单位体检次数分组的控件-->
  112. <el-dialog title="体检单位选择" :visible.sync="report.dialogCusOrgOCX" :close-on-click-modal="false" width="880px"
  113. height="600px">
  114. <CusOrgOCX />
  115. </el-dialog>
  116. <!--通用选组合项目的控件-->
  117. <el-dialog title="组合项目选择" :visible.sync="report.dialogAsbitemOCX" :close-on-click-modal="false" width="700px"
  118. height="600px">
  119. <AsbitemOCX />
  120. </el-dialog>
  121. </div>
  122. </template>
  123. <script>
  124. import moment from "moment";
  125. import { mapState, mapActions } from "vuex";
  126. import { getapi, postapi, putapi, deletapi } from "@/api/api";
  127. import { dddw, objCopy, arrayReduce, arrayExistObj, tcdate } from "@/utlis/proFunc";
  128. import CusOrgOCX from "../../components/report/CusOrgOCX.vue"
  129. import AsbitemOCX from "../../components/report/AsbitemOCX.vue"
  130. export default {
  131. components: {
  132. CusOrgOCX,
  133. AsbitemOCX,
  134. },
  135. data() {
  136. return {
  137. dataList: [], //列表数据
  138. };
  139. },
  140. created() {
  141. this.dictInit();
  142. },
  143. //挂载完成
  144. mounted() {
  145. // this.btnQuery();
  146. },
  147. computed: {
  148. ...mapState(["window", "dict", "patientRegister", "report"]),
  149. },
  150. methods: {
  151. moment, dddw,
  152. //数据初始化
  153. dictInit() {
  154. //性别
  155. getapi("/api/app/sex").then((res) => {
  156. if (res.code == 1) {
  157. this.dict.sex = res.data;
  158. }
  159. });
  160. //体检中心
  161. getapi("/api/app/organization-units/organization-unit-by-is-peis").then(
  162. (res) => {
  163. if (res.code == 1) {
  164. this.dict.organization = res.data;
  165. }
  166. }
  167. );
  168. //体检单位树
  169. getapi("/api/app/customerorg/getbycodeall").then((res) => {
  170. if (res.code == 1) {
  171. this.patientRegister.customerOrgTreeAll = res.data;
  172. tcdate(this.patientRegister.customerOrgTreeAll);
  173. }
  174. });
  175. //体检类别
  176. getapi("/api/app/medical-type/in-filter").then((res) => {
  177. if (res.code == 1) {
  178. this.dict.medicalType = res.data;
  179. }
  180. });
  181. //人员类别
  182. getapi("/api/app/personnel-type/in-filter").then((res) => {
  183. if (res.code == 1) {
  184. this.dict.personnelType = res.data;
  185. }
  186. });
  187. //婚姻状况
  188. getapi("/api/app/MaritalStatus/GetMaritalStatusList").then((res) => {
  189. if (res.code == 1) {
  190. this.dict.maritalStatus = res.data;
  191. }
  192. });
  193. //性激素期
  194. getapi("/api/app/sex-hormone-term/in-filter").then((res) => {
  195. if (res.code == 1) {
  196. this.dict.sexHormoneTerm = res.data;
  197. }
  198. });
  199. //民族
  200. getapi("/api/app/nation/in-filter").then((res) => {
  201. if (res.code == 1) {
  202. this.dict.nation = res.data;
  203. }
  204. });
  205. //籍惯 ,出生地
  206. getapi("/api/app/birth-place/in-filter").then((res) => {
  207. if (res.code == 1) {
  208. this.dict.birthPlace = res.data;
  209. }
  210. });
  211. //套餐
  212. postapi("/api/app/medicalpackage/GetBasicList",{}).then((res) => {
  213. if (res.code == 1) {
  214. this.dict.medicalPackage = res.data;
  215. }
  216. });
  217. //分组,所有分组,不限单位,不限次数
  218. getapi("/api/app/customer-org-group").then((res) => {
  219. if (res.code == 1) {
  220. this.dict.customerOrgGroupAll = res.data.items;
  221. }
  222. });
  223. //支付方式
  224. getapi("/api/app/pay-mode").then((res) => {
  225. if (res.code == 1) {
  226. this.dict.payMode = res.data;
  227. }
  228. });
  229. //体检类别 树结构
  230. getapi("/api/app/item-type/by-code-all").then((res) => {
  231. if (res.code == 1) {
  232. this.dict.itemTypeTree = res.data;
  233. tcdate(this.dict.itemTypeTree);
  234. }
  235. });
  236. postapi("/api/app/asbitem/GetBasicList",{}).then((res) => {
  237. if (res.code == 1) {
  238. this.dict.asbItemAll = res.data;
  239. }
  240. });
  241. console.log("dict", this.dict);
  242. },
  243. tableRowClassName({ row, rowIndex }) {
  244. switch (row.completeFlag) {
  245. case '0':
  246. return 'danger';
  247. case '2':
  248. return 'info';
  249. default:
  250. return '';
  251. }
  252. },
  253. //查询
  254. btnQuery() {
  255. let body = {}, customerOrgs = [], asbitemIds = [];
  256. // {
  257. // "customerOrgs": [
  258. // {
  259. // "customerOrgId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  260. // "customerOrgRegisterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  261. // "customerOrgGroupId": [
  262. // "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  263. // ],
  264. // "dateType": "string",
  265. // "startDate": "string",
  266. // "endDate": "string"
  267. // }
  268. // ],
  269. // "asbitemIds": [
  270. // "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  271. // ],
  272. // "completeFlag": "string"
  273. // }
  274. if (this.report.dataCusOrgOCX.length > 0) {
  275. this.report.dataCusOrgOCX.forEach(e => {
  276. let rd = {
  277. startDate: moment(e.startDate).format('yyyy-MM-DD'),
  278. endDate: moment(e.endDate).format('yyyy-MM-DD'),
  279. dateType: e.dateType == 'summaryDate' ? '3' : (e.dateType == 'medicalStartDate' ? '2' : '1')
  280. }
  281. if (e.customerOrgId) {
  282. rd.customerOrgId = e.customerOrgId
  283. if (e.customerOrgId == this.dict.personOrgId) {
  284. rd.customerOrgRegisterId = null
  285. rd.customerOrgGroupId = []
  286. } else {
  287. rd.customerOrgRegisterId = e.customerOrgRegister.id
  288. rd.customerOrgGroupId = e.customerOrgGroupIds
  289. }
  290. }
  291. customerOrgs.push(rd)
  292. })
  293. }
  294. if (this.report.dataAsbitemOCX.length > 0) {
  295. this.report.dataAsbitemOCX.forEach(e => {
  296. asbitemIds.push(e.id)
  297. })
  298. }
  299. body.customerOrgs = customerOrgs
  300. body.asbitemIds = asbitemIds
  301. if (this.patientRegister.query.checkCompleteFlag) body.completeFlag = this.patientRegister.query.checkCompleteFlag
  302. //console.log('/api/app/peisreport/getpatientregisterreport',body)
  303. postapi('/api/app/peisreport/getregisterasbitemregistercheckstatus', body).then(res => {
  304. if (res.code != -1) {
  305. this.dataList = res.data;
  306. }
  307. })
  308. },
  309. },
  310. //监听事件
  311. watch: {
  312. //触发查询事件
  313. // "patientRegister.query.times"(newVal, oldVal) {
  314. // if (newVal != oldVal) {
  315. // //alert('触发查询事件')
  316. // this.query();
  317. // }
  318. // },
  319. },
  320. };
  321. </script>
  322. <style scoped>
  323. @import '../../assets/css/global_button.css';
  324. @import '../../assets/css/global_card.css';
  325. @import '../../assets/css/global_input.css';
  326. @import '../../assets/css/global_table.css';
  327. @import '../../assets/css/global.css';
  328. .query {
  329. margin-left: 10px;
  330. font-size: 14px;
  331. color: #232748;
  332. font-weight: 400;
  333. font-family: "NotoSansSC-Regular";
  334. }
  335. ::v-deep .el-icon-search:before {
  336. color: #00F;
  337. }
  338. </style>