| | |
| | | }, |
| | | getAuthCode() { |
| | | this.$dingtalk.runtime.permission.requestAuthCode({ |
| | | corpId: "dingac30cec5f3570bbea39a90f97fcb1e09", |
| | | corpId: "dingd31f00f4fbc0ff5bf5bf40eda33b7ba0", |
| | | onSuccess: result => { |
| | | // 在这里处理授权成功后的逻辑,result中包含授权码等信息 |
| | | this.authCode = result.codde; |
| | | // this.authCode = result.codde; |
| | | this.$message.success("成功获取授权码:" + result.code); |
| | | this.avoidLogin(); |
| | | this.avoidLogin(result.code); |
| | | }, |
| | | onFail: err => { |
| | | // 在这里处理授权失败后的逻辑 |
| | |
| | | } |
| | | }); |
| | | }, |
| | | avoidLogin() { |
| | | avoidLogin(authCode) { |
| | | this.loading = true; |
| | | this.loginForm.authCode = this.authCode; |
| | | // this.$message.error(authCode, "1号位"); |
| | | this.loginForm.authCode = authCode; |
| | | this.$store |
| | | .dispatch("Login", this.loginForm) |
| | | .then(res => { |
| | | this.$message.error(this.$store.state); |
| | | if (this.$store.state.user.code == 200) { |
| | | this.$router.push({ path: this.redirect || "/" }).catch(() => {}); |
| | | } else { |
| | |
| | | :data="donationCaseTableData" |
| | | > |
| | | <el-table-column |
| | | label="报告时间" |
| | | label="案例时间" |
| | | align="center" |
| | | prop="reporttime" |
| | | width="150" |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="医疗机构" |
| | | label="专职人员" |
| | | align="center" |
| | | prop="reportername" |
| | | width="100" |
| | | /> |
| | | <el-table-column |
| | | label="业务组" |
| | | align="center" |
| | | prop="treatmenthospitalname" |
| | | /> |
| | | <el-table-column label="捐献进度" align="center" prop="recordstate"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag |
| | | :options="dict.type.sys_DonationStatus" |
| | | :value="scope.row.recordstate" |
| | | :options="dict.type.sys_donornode" |
| | | :value="scope.row.workflow" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | export default { |
| | | //import引入的组件需要注入到对象中才能使用 |
| | | components: { |
| | | FundSummary, |
| | | FundSummary |
| | | }, |
| | | dicts: [ |
| | | "sys_Organ", |
| | |
| | | "sys_IDType", |
| | | "sys_AgeUnit", |
| | | "sys_DonationStatus", |
| | | "sys_donornode" |
| | | ], |
| | | data() { |
| | | //这里存放数据 |
| | |
| | | name: "", |
| | | pageSize: 10, |
| | | name: null, |
| | | donorno: null, |
| | | donorno: null |
| | | }, |
| | | curdonorno: null, |
| | | showType: "list", |
| | | curCaseInfo: { |
| | | donorno: null, |
| | | name: null, |
| | | id: null, |
| | | id: null |
| | | }, |
| | | headers: { |
| | | Authorization: "Bearer " + getToken() |
| | | }, |
| | | } |
| | | }; |
| | | }, |
| | | //监听属性 类似于data概念 |
| | |
| | | if (this.queryParams.recordstate == "") { |
| | | this.queryParams.recordstate = null; |
| | | } |
| | | listDonatebaseinfo(this.queryParams).then((response) => { |
| | | listDonatebaseinfo(this.queryParams).then(response => { |
| | | this.donationCaseTableData = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | |
| | | }, |
| | | //导出汇总表 |
| | | exportSummary(id) { |
| | | exportFundCost(id).then((res) => { |
| | | exportFundCost(id).then(res => { |
| | | var fileUrl = res; |
| | | //获取当前网址 |
| | | var urlBase = process.env.VUE_APP_BASE_API; |
| | |
| | | console.log(url); |
| | | const link = document.createElement("a"); |
| | | link.href = url; |
| | | const name=fileUrl["downloadName"] |
| | | const name = fileUrl["downloadName"]; |
| | | link.setAttribute("download", name); // 替换file.pdf为实际的文件名 |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | | link.parentNode.removeChild(link); |
| | | }); |
| | | }); |
| | | }, |
| | | } |
| | | }, |
| | | //生命周期 - 创建完成(可以访问当前this实例) |
| | | created() { |
| | |
| | | updated() {}, //生命周期 - 更新之后 |
| | | beforeDestroy() {}, //生命周期 - 销毁之前 |
| | | destroyed() {}, //生命周期 - 销毁完成 |
| | | activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发 |
| | | activated() {} //如果页面有keep-alive缓存功能,这个函数会触发 |
| | | }; |
| | | </script> |
| | | <style scoped> |
| | |
| | | >各地区医院案例数据</span |
| | | > |
| | | </el-col> |
| | | |
| | | |
| | | </el-row> |
| | | <el-row> |
| | | |
| | | |
| | | </el-row> |
| | | <dv-scroll-board |
| | | :config="config" |
| | |
| | | isloading: false, |
| | | maxHeight: 0, |
| | | provinceData: [ |
| | | { label: "全部", value: "" }, |
| | | { label: "全部地市", value: "" }, |
| | | { label: "杭州市", value: "1" }, |
| | | { label: "宁波市", value: "2" }, |
| | | { label: "温州市", value: "3" }, |
| | |
| | | value: 0, |
| | | code: "C22" |
| | | }, |
| | | |
| | | |
| | | { |
| | | key: "leftRenal", |
| | | name: "左肾", |
| | |
| | | listDonatebaseinfo({}).then(res => { |
| | | let list = res.rows; |
| | | let reportlist = []; |
| | | reportlist.push({ reporterno: "", reportername: "全部" }); |
| | | reportlist.push({ reporterno: "", reportername: "全部人员" }); |
| | | list.forEach(element => { |
| | | reportlist.push({ |
| | | reporterno: element.reporterno, |
| | |
| | | |
| | | this.form.treatmenthospitalno = ""; |
| | | |
| | | this.queryParams = {}; |
| | | this.queryParams = { |
| | | pacasestate: "0" |
| | | }; |
| | | this.selecttime = []; |
| | | this.getTimeList(); |
| | | this.searchAddress = { |
| | |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="统计类型"> |
| | | <el-select |
| | | v-model="queryParams.pachageflag" |
| | | placeholder="请选择案例状态" |
| | | <el-col :span="12"> |
| | | <el-form-item label="统计日期"> |
| | | <el-date-picker |
| | | style="width: 100%" |
| | | v-model="selecttime" |
| | | type="monthrange" |
| | | range-separator="至" |
| | | start-placeholder="开始月份" |
| | | end-placeholder="结束月份" |
| | | value-format="yyyy-MM-dd" |
| | | @change="getTimeList" |
| | | > |
| | | <el-option |
| | | v-for="item in reportlist" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | }, |
| | | getTimeList(e) { |
| | | if (this.selecttime != 0) { |
| | | this.queryParams.pabegtime = this.selecttime[0]; |
| | | this.queryParams.paendtime = this.selecttime[1]; |
| | | // if (this.queryParams.paendtime == this.queryParams.pabegtime) { |
| | | let num = Number(this.queryParams.paendtime.slice(5, 7)); |
| | | if (num < 9) { |
| | | let mon = Number(this.queryParams.paendtime.slice(6, 7)); |
| | | this.queryParams.paendtime = |
| | | this.queryParams.paendtime.slice(0, 5) + |
| | | "0" + |
| | | (mon + 1) + |
| | | "-" + |
| | | "01" + |
| | | " " + |
| | | "00" + |
| | | ":" + |
| | | "00" + |
| | | ":" + |
| | | "00"; |
| | | } |
| | | // this.queryParams.paendtime=this.queryParams.paendtime.slice(0,5)年 |
| | | else if (num >= 10) { |
| | | this.queryParams.paendtime = |
| | | this.queryParams.paendtime.slice(0, 5) + |
| | | (num + 1) + |
| | | "-" + |
| | | "01" + |
| | | " " + |
| | | "00" + |
| | | ":" + |
| | | "00" + |
| | | ":" + |
| | | "00"; |
| | | } else { |
| | | this.queryParams.paendtime = |
| | | this.queryParams.paendtime.slice(0, 5) + |
| | | "10" + |
| | | "-" + |
| | | "01" + |
| | | " " + |
| | | "00" + |
| | | ":" + |
| | | "00" + |
| | | ":" + |
| | | "00"; |
| | | } |
| | | this.queryParams.pabegtime = |
| | | this.queryParams.pabegtime + " " + "00" + ":" + "00" + ":" + "00"; |
| | | // } |
| | | } else { |
| | | // this.queryParams.pabegtime = "1998-01-01 00:00:00"; |
| | | // this.queryParams.paendtime = "2998-01-01 00:00:00"; |
| | | } |
| | | }, |
| | | getSummaries(param) { |
| | | const { columns, data } = param; |
| | | const sums = []; |