| | |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" width="120px" fixed="right"> |
| | | <template slot-scope="scope"> |
| | | <el-button fixed="right" title="处方" type="text" size="mini" @click.stop="rowClick(scope.row)" |
| | | icon="el-icon-edit-outline"></el-button> |
| | | <el-button fixed="right" title="详情" type="text" size="mini" @click.stop="handleClick(scope.row)" |
| | | icon="el-icon-document-copy"></el-button> |
| | | <el-button fixed="right" title="同步" type="text" size="mini" @click.stop="tongbu(scope.row)" |
| | | icon="el-icon-upload2"></el-button> |
| | | <el-button fixed="right" title="处方" type="text" size="mini" @click.stop="rowClick(scope.row)" |
| | | icon="el-icon-edit-outline"></el-button> |
| | | |
| | | <!-- <el-button type="text" size="mini" @click="generate(scope.row)" v-if="scope.row.tjStatus=='1'">生成</el-button> --> |
| | | <el-button type="text" size="mini" @click.stop="viewReport(scope.row)" v-if="scope.row.tjStatus == '1'" |
| | | title="预览" icon="el-icon-view"></el-button> |
| | |
| | | import { getCompany, queryCompany } from "@/api/team/tuanti"; |
| | | import { reportHistory, yichang, shanchu } from "@/api/doctor/check"; |
| | | import { getPdf, revoke } from "@/api/hosp/order"; |
| | | import { cSWebGetPro } from "@/api/doctor/examination"; |
| | | import { cSWebGetPro,dataSynchronization } from "@/api/doctor/examination"; |
| | | import ViewPdf from "@/components/ViewPdf"; |
| | | import Historicalreport from "@/components/Historicalreport"; |
| | | import { getDicts } from "@/api/system/dict/data"; |
| | |
| | | status1: 0, // 0展示异常1展示项目情况 |
| | | viewportHeight: 0, |
| | | expends: [], |
| | | clearTimeSet: null, |
| | | }; |
| | | }, |
| | | |
| | |
| | | }); |
| | | }, |
| | | methods: { |
| | | setTime() { |
| | | //设置定时器 |
| | | this.clearTimeSet = setInterval(() => { |
| | | this.$modal.closeLoading(); |
| | | }, 300000); |
| | | }, |
| | | tongbu(row) { |
| | | this.$modal.loading("正在同步,请稍候..."); |
| | | this.setTime(); |
| | | let tjNumber = row.tjNumber; |
| | | dataSynchronization(tjNumber) |
| | | .then((res, error) => { |
| | | if (res.code == 200) { |
| | | |
| | | this.clearTimeSet = null; |
| | | this.$modal.closeLoading(); |
| | | this.$modal.msgSuccess("同步成功!"); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | |
| | | this.clearTimeSet = null; |
| | | this.$modal.closeLoading(); |
| | | }); |
| | | }, |
| | | shanchu(row) { |
| | | console.log(row) |
| | | shanchu({ |