pengjun 1 month ago
parent
commit
0fa77fd454
  1. 25
      src/components/doctorCheck/CheckPicture.vue
  2. 4
      src/components/report/TurnoverReport.vue
  3. 16
      src/views/fee-settings/cardBill.vue
  4. 16
      src/views/fee-settings/cardBillSum.vue

25
src/components/doctorCheck/CheckPicture.vue

@ -3,7 +3,7 @@
<div>
<div v-show="checkPagePriv(pagePriv.privs, '采图')">
<el-button type="primary" class="btnClass" @click="btnGetPic" :disabled="doctorBtnDisabled('btnGetPic')"
size="small">采图</el-button>
size="small" v-loading.fullscreen.lock="fullscreenLoading">采图</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '导图')">
<el-button type="primary" class="btnClass" @click="btnExpPic" :disabled="doctorBtnDisabled('btnExpPic')"
@ -269,6 +269,7 @@ export default {
cutPicParam: {},
pictureFileType: '1',
getPicing:false, //
fullscreenLoading:false, //
};
},
@ -462,16 +463,19 @@ export default {
age: (this.patient_register.age || '') + '',
asbitemName: this.doctorCheck.checkRequestNo || 'temp'
}
// console.log('this.$peisAPI.imageAcquisition', JSON.stringify(toOutShell))
let loading = Loading.service({
lock: true,
text: "正在加载中,请稍后",
spinner: "el-icon-loading",
background: "rgba(0, 0, 0, 0)",
customClass: "boxStyle"
});
// console.log('this.$peisAPI.imageAcquisition', JSON.stringify(toOutShell))
/* bug ,
// let loading = Loading.service({
// lock: true,
// text: "",
// spinner: "el-icon-loading",
// background: "rgba(0, 0, 0, 0)",
// customClass: "boxStyle"
// });
*/
this.fullscreenLoading = true
this.$peisAPI.imageAcquisition(JSON.stringify(toOutShell))
.then(async (res) => {
let lres = JSON.parse(res)
@ -526,7 +530,8 @@ export default {
}).catch(err => {
this.$message.error(err)
}).finally(() => {
loading.close()
// loading.close()
this.fullscreenLoading = false
});
},

4
src/components/report/TurnoverReport.vue

@ -82,11 +82,11 @@
<el-button type="primary" class="commonbutton" @click="btnQuery" size="small">查询</el-button>
</div>
<div style="margin-top: 5px;">
<el-button class="commonbutton" @click="btnExport('tableData')" size="small">导出</el-button>
<el-button class="commonbutton" @click="btnExport('TurnoverReport')" size="small">导出</el-button>
</div>
</div>
</div>
<div id="tableData">
<div id="TurnoverReport">
<el-table :data="tableData" border :height="window.pageHeight - 192" highlight-current-row size="small"
row-key="id" :summary-method="getSummaries" show-summary ref="refTable">
<el-table-column type="index" label="序号" width="50" align="center" />

16
src/views/fee-settings/cardBill.vue

@ -58,8 +58,11 @@
<div class="query">
<el-button class="commonbutton" @click="btnQuery">查询</el-button>
</div>
<div class="query">
<el-button class="commonbutton" @click="btnExport('cardBill')" size="small">导出</el-button>
</div>
</div>
<div style="background-color: #fff; padding: 15px; border-radius: 8px;">
<div style="background-color: #fff; padding: 15px; border-radius: 8px;" id="cardBill">
<el-table :data="dataList" width="100%" :height="window.pageHeight < 600 ? 330 : window.pageHeight - 250"
row-key="id" highlight-current-row ref="dataList" border show-summary :summary-method="getSummaries">
<el-table-column type="index" label="序号" width="50" align="center" />
@ -105,7 +108,7 @@ import moment from "moment";
import { mapState, mapActions } from "vuex";
import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { dddw, objCopy, arrayReduce, arrayExistObj, deepCopy } from "@/utlis/proFunc";
import FileSaver from 'file-saver';
export default {
components: {
@ -207,6 +210,15 @@ export default {
});
},
//
btnExport(elId) {
let table = document.getElementById(elId);
let tableData = table.innerHTML
let fileName = moment(new Date()).format('yyyyMMDDHHmmss') + '.xls'
let blob = new Blob([tableData], { type: "text/plain;charset=utf-8" });
FileSaver.saveAs(blob, fileName);
},
//
getSummaries(param) {
//console.log('getSummaries param', param)

16
src/views/fee-settings/cardBillSum.vue

@ -58,8 +58,11 @@
<div class="query">
<el-button class="commonbutton" @click="btnQuery">查询</el-button>
</div>
<div class="query">
<el-button class="commonbutton" @click="btnExport('cardBillSum')" size="small">导出</el-button>
</div>
</div>
<div style="background-color: #fff; padding: 15px; border-radius: 8px;">
<div style="background-color: #fff; padding: 15px; border-radius: 8px;" id="cardBillSum">
<el-table :data="dataList" width="100%" :height="window.pageHeight < 600 ? 330 : window.pageHeight - 250"
row-key="id" highlight-current-row ref="dataList" border show-summary :summary-method="getSummaries">
<el-table-column type="index" label="序号" width="50" align="center" />
@ -82,7 +85,7 @@ import moment from "moment";
import { mapState, mapActions } from "vuex";
import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { dddw, objCopy, arrayReduce, arrayExistObj, deepCopy } from "@/utlis/proFunc";
import FileSaver from 'file-saver';
export default {
components: {
@ -181,6 +184,15 @@ export default {
});
},
//
btnExport(elId) {
let table = document.getElementById(elId);
let tableData = table.innerHTML
let fileName = moment(new Date()).format('yyyyMMDDHHmmss') + '.xls'
let blob = new Blob([tableData], { type: "text/plain;charset=utf-8" });
FileSaver.saveAs(blob, fileName);
},
//
getSummaries(param) {
//console.log('getSummaries param', param)

Loading…
Cancel
Save