Browse Source

2024-08-27

检验明细导出
java8
fengyuan_yang 2 years ago
parent
commit
d743301bc5
  1. 3
      src/api/qc/qc_report.js
  2. 4
      src/utils/httpRequest.js
  3. 51
      src/views/modules/outReport/report081.vue
  4. 51
      src/views/modules/outReport/report082.vue
  5. 51
      src/views/modules/outReport/report083.vue
  6. 51
      src/views/modules/outReport/report084.vue
  7. 51
      src/views/modules/outReport/report085.vue
  8. 51
      src/views/modules/outReport/report086.vue
  9. 51
      src/views/modules/outReport/report087.vue
  10. 51
      src/views/modules/outReport/report088.vue
  11. 51
      src/views/modules/outReport/report089.vue
  12. 51
      src/views/modules/outReport/report090.vue
  13. 51
      src/views/modules/outReport/report091.vue
  14. 51
      src/views/modules/outReport/report092.vue
  15. 51
      src/views/modules/outReport/report093.vue
  16. 51
      src/views/modules/outReport/report094.vue
  17. 51
      src/views/modules/outReport/report095.vue
  18. 52
      src/views/modules/outReport/report096.vue
  19. 51
      src/views/modules/outReport/report097.vue
  20. 51
      src/views/modules/outReport/report098.vue
  21. 51
      src/views/modules/outReport/report099.vue
  22. 51
      src/views/modules/outReport/report100.vue
  23. 1238
      src/views/modules/report/IPQC_detail_report.vue
  24. 6
      src/views/modules/report/IPQC_report.vue
  25. 214
      src/views/modules/report/IQC_detail_report.vue
  26. 2
      src/views/modules/report/IQC_report.vue

3
src/api/qc/qc_report.js

@ -17,3 +17,6 @@ export const getIPQCDetailReport = data => createAPI('/pms/qcReport/getIPQCDetai
export const getFAIDetailReport = data => createAPI('/pms/qcReport/getFAIDetailReport','post',data)
// FQC报表明细查询
export const getFQCDetailReport = data => createAPI('/pms/qcReport/getFQCDetailReport','post',data)
// 导出
export const downloadQcDetailRecord = data => createAPI('/pms/qcReport/downloadQcDetailRecord','post',data, 'download')

4
src/utils/httpRequest.js

@ -146,14 +146,14 @@ instance2.interceptors.response.use(response => {
})
export const createAPI = (url, method, data) => {
export const createAPI = (url, method, data, type) => {
let config = {}
if (method === 'get') {
config.params = data
} else {
config.data = data
}
if (data === 777){ // 下载功能的请求
if (data === 777 || type === 'download'){ // 下载功能的请求
return instance2({
url,
method,

51
src/views/modules/outReport/report081.vue

@ -0,0 +1,51 @@
<template>
<div>
<iframe :src="address" class="fullscreen-iframe"></iframe>
</div>
</template>
<script>
import {
searchBIAddress,
} from "@/api/outReport/outReport.js"
export default {
name: "report81",
data() {
return {
searchData:{
//menuid
menuId:this.$route.meta.menuId,
},
address:'',
}
},
methods: {
searchAddress(){
//menuidbi
searchBIAddress(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.address = data.row.address
} else {
this.address = '';
}
});
},
},
created() {
this.searchAddress();
},
}
</script>
<style scoped>
.fullscreen-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none; /* 可选,根据需要设置边框 */
}
</style>

51
src/views/modules/outReport/report082.vue

@ -0,0 +1,51 @@
<template>
<div>
<iframe :src="address" class="fullscreen-iframe"></iframe>
</div>
</template>
<script>
import {
searchBIAddress,
} from "@/api/outReport/outReport.js"
export default {
name: "report82",
data() {
return {
searchData:{
//menuid
menuId:this.$route.meta.menuId,
},
address:'',
}
},
methods: {
searchAddress(){
//menuidbi
searchBIAddress(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.address = data.row.address
} else {
this.address = '';
}
});
},
},
created() {
this.searchAddress();
},
}
</script>
<style scoped>
.fullscreen-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none; /* 可选,根据需要设置边框 */
}
</style>

51
src/views/modules/outReport/report083.vue

@ -0,0 +1,51 @@
<template>
<div>
<iframe :src="address" class="fullscreen-iframe"></iframe>
</div>
</template>
<script>
import {
searchBIAddress,
} from "@/api/outReport/outReport.js"
export default {
name: "report83",
data() {
return {
searchData:{
//menuid
menuId:this.$route.meta.menuId,
},
address:'',
}
},
methods: {
searchAddress(){
//menuidbi
searchBIAddress(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.address = data.row.address
} else {
this.address = '';
}
});
},
},
created() {
this.searchAddress();
},
}
</script>
<style scoped>
.fullscreen-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none; /* 可选,根据需要设置边框 */
}
</style>

51
src/views/modules/outReport/report084.vue

@ -0,0 +1,51 @@
<template>
<div>
<iframe :src="address" class="fullscreen-iframe"></iframe>
</div>
</template>
<script>
import {
searchBIAddress,
} from "@/api/outReport/outReport.js"
export default {
name: "report84",
data() {
return {
searchData:{
//menuid
menuId:this.$route.meta.menuId,
},
address:'',
}
},
methods: {
searchAddress(){
//menuidbi
searchBIAddress(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.address = data.row.address
} else {
this.address = '';
}
});
},
},
created() {
this.searchAddress();
},
}
</script>
<style scoped>
.fullscreen-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none; /* 可选,根据需要设置边框 */
}
</style>

51
src/views/modules/outReport/report085.vue

@ -0,0 +1,51 @@
<template>
<div>
<iframe :src="address" class="fullscreen-iframe"></iframe>
</div>
</template>
<script>
import {
searchBIAddress,
} from "@/api/outReport/outReport.js"
export default {
name: "report85",
data() {
return {
searchData:{
//menuid
menuId:this.$route.meta.menuId,
},
address:'',
}
},
methods: {
searchAddress(){
//menuidbi
searchBIAddress(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.address = data.row.address
} else {
this.address = '';
}
});
},
},
created() {
this.searchAddress();
},
}
</script>
<style scoped>
.fullscreen-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none; /* 可选,根据需要设置边框 */
}
</style>

51
src/views/modules/outReport/report086.vue

@ -0,0 +1,51 @@
<template>
<div>
<iframe :src="address" class="fullscreen-iframe"></iframe>
</div>
</template>
<script>
import {
searchBIAddress,
} from "@/api/outReport/outReport.js"
export default {
name: "report86",
data() {
return {
searchData:{
//menuid
menuId:this.$route.meta.menuId,
},
address:'',
}
},
methods: {
searchAddress(){
//menuidbi
searchBIAddress(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.address = data.row.address
} else {
this.address = '';
}
});
},
},
created() {
this.searchAddress();
},
}
</script>
<style scoped>
.fullscreen-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none; /* 可选,根据需要设置边框 */
}
</style>

51
src/views/modules/outReport/report087.vue

@ -0,0 +1,51 @@
<template>
<div>
<iframe :src="address" class="fullscreen-iframe"></iframe>
</div>
</template>
<script>
import {
searchBIAddress,
} from "@/api/outReport/outReport.js"
export default {
name: "report87",
data() {
return {
searchData:{
//menuid
menuId:this.$route.meta.menuId,
},
address:'',
}
},
methods: {
searchAddress(){
//menuidbi
searchBIAddress(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.address = data.row.address
} else {
this.address = '';
}
});
},
},
created() {
this.searchAddress();
},
}
</script>
<style scoped>
.fullscreen-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none; /* 可选,根据需要设置边框 */
}
</style>

51
src/views/modules/outReport/report088.vue

@ -0,0 +1,51 @@
<template>
<div>
<iframe :src="address" class="fullscreen-iframe"></iframe>
</div>
</template>
<script>
import {
searchBIAddress,
} from "@/api/outReport/outReport.js"
export default {
name: "report88",
data() {
return {
searchData:{
//menuid
menuId:this.$route.meta.menuId,
},
address:'',
}
},
methods: {
searchAddress(){
//menuidbi
searchBIAddress(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.address = data.row.address
} else {
this.address = '';
}
});
},
},
created() {
this.searchAddress();
},
}
</script>
<style scoped>
.fullscreen-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none; /* 可选,根据需要设置边框 */
}
</style>

51
src/views/modules/outReport/report089.vue

@ -0,0 +1,51 @@
<template>
<div>
<iframe :src="address" class="fullscreen-iframe"></iframe>
</div>
</template>
<script>
import {
searchBIAddress,
} from "@/api/outReport/outReport.js"
export default {
name: "report89",
data() {
return {
searchData:{
//menuid
menuId:this.$route.meta.menuId,
},
address:'',
}
},
methods: {
searchAddress(){
//menuidbi
searchBIAddress(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.address = data.row.address
} else {
this.address = '';
}
});
},
},
created() {
this.searchAddress();
},
}
</script>
<style scoped>
.fullscreen-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none; /* 可选,根据需要设置边框 */
}
</style>

51
src/views/modules/outReport/report090.vue

@ -0,0 +1,51 @@
<template>
<div>
<iframe :src="address" class="fullscreen-iframe"></iframe>
</div>
</template>
<script>
import {
searchBIAddress,
} from "@/api/outReport/outReport.js"
export default {
name: "report90",
data() {
return {
searchData:{
//menuid
menuId:this.$route.meta.menuId,
},
address:'',
}
},
methods: {
searchAddress(){
//menuidbi
searchBIAddress(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.address = data.row.address
} else {
this.address = '';
}
});
},
},
created() {
this.searchAddress();
},
}
</script>
<style scoped>
.fullscreen-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none; /* 可选,根据需要设置边框 */
}
</style>

51
src/views/modules/outReport/report091.vue

@ -0,0 +1,51 @@
<template>
<div>
<iframe :src="address" class="fullscreen-iframe"></iframe>
</div>
</template>
<script>
import {
searchBIAddress,
} from "@/api/outReport/outReport.js"
export default {
name: "report91",
data() {
return {
searchData:{
//menuid
menuId:this.$route.meta.menuId,
},
address:'',
}
},
methods: {
searchAddress(){
//menuidbi
searchBIAddress(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.address = data.row.address
} else {
this.address = '';
}
});
},
},
created() {
this.searchAddress();
},
}
</script>
<style scoped>
.fullscreen-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none; /* 可选,根据需要设置边框 */
}
</style>

51
src/views/modules/outReport/report092.vue

@ -0,0 +1,51 @@
<template>
<div>
<iframe :src="address" class="fullscreen-iframe"></iframe>
</div>
</template>
<script>
import {
searchBIAddress,
} from "@/api/outReport/outReport.js"
export default {
name: "report92",
data() {
return {
searchData:{
//menuid
menuId:this.$route.meta.menuId,
},
address:'',
}
},
methods: {
searchAddress(){
//menuidbi
searchBIAddress(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.address = data.row.address
} else {
this.address = '';
}
});
},
},
created() {
this.searchAddress();
},
}
</script>
<style scoped>
.fullscreen-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none; /* 可选,根据需要设置边框 */
}
</style>

51
src/views/modules/outReport/report093.vue

@ -0,0 +1,51 @@
<template>
<div>
<iframe :src="address" class="fullscreen-iframe"></iframe>
</div>
</template>
<script>
import {
searchBIAddress,
} from "@/api/outReport/outReport.js"
export default {
name: "report93",
data() {
return {
searchData:{
//menuid
menuId:this.$route.meta.menuId,
},
address:'',
}
},
methods: {
searchAddress(){
//menuidbi
searchBIAddress(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.address = data.row.address
} else {
this.address = '';
}
});
},
},
created() {
this.searchAddress();
},
}
</script>
<style scoped>
.fullscreen-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none; /* 可选,根据需要设置边框 */
}
</style>

51
src/views/modules/outReport/report094.vue

@ -0,0 +1,51 @@
<template>
<div>
<iframe :src="address" class="fullscreen-iframe"></iframe>
</div>
</template>
<script>
import {
searchBIAddress,
} from "@/api/outReport/outReport.js"
export default {
name: "report94",
data() {
return {
searchData:{
//menuid
menuId:this.$route.meta.menuId,
},
address:'',
}
},
methods: {
searchAddress(){
//menuidbi
searchBIAddress(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.address = data.row.address
} else {
this.address = '';
}
});
},
},
created() {
this.searchAddress();
},
}
</script>
<style scoped>
.fullscreen-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none; /* 可选,根据需要设置边框 */
}
</style>

51
src/views/modules/outReport/report095.vue

@ -0,0 +1,51 @@
<template>
<div>
<iframe :src="address" class="fullscreen-iframe"></iframe>
</div>
</template>
<script>
import {
searchBIAddress,
} from "@/api/outReport/outReport.js"
export default {
name: "report95",
data() {
return {
searchData:{
//menuid
menuId:this.$route.meta.menuId,
},
address:'',
}
},
methods: {
searchAddress(){
//menuidbi
searchBIAddress(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.address = data.row.address
} else {
this.address = '';
}
});
},
},
created() {
this.searchAddress();
},
}
</script>
<style scoped>
.fullscreen-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none; /* 可选,根据需要设置边框 */
}
</style>

52
src/views/modules/outReport/report096.vue

@ -0,0 +1,52 @@
<template>
<div>
<iframe :src="address" class="fullscreen-iframe"></iframe>
</div>
</template>
<script>
import {
searchBIAddress,
} from "@/api/outReport/outReport.js"
export default {
name: "report96",
data() {
return {
searchData:{
//menuid
menuId:this.$route.meta.menuId,
},
address:'',
}
},
methods: {
searchAddress(){
//menuidbi
searchBIAddress(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.address = data.row.address
} else {
this.address = '';
}
});
},
},
created() {
this.searchAddress();
},
}
</script>
<style scoped>
.fullscreen-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none; /* 可选,根据需要设置边框 */
}
</style>

51
src/views/modules/outReport/report097.vue

@ -0,0 +1,51 @@
<template>
<div>
<iframe :src="address" class="fullscreen-iframe"></iframe>
</div>
</template>
<script>
import {
searchBIAddress,
} from "@/api/outReport/outReport.js"
export default {
name: "report97",
data() {
return {
searchData:{
//menuid
menuId:this.$route.meta.menuId,
},
address:'',
}
},
methods: {
searchAddress(){
//menuidbi
searchBIAddress(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.address = data.row.address
} else {
this.address = '';
}
});
},
},
created() {
this.searchAddress();
},
}
</script>
<style scoped>
.fullscreen-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none; /* 可选,根据需要设置边框 */
}
</style>

51
src/views/modules/outReport/report098.vue

@ -0,0 +1,51 @@
<template>
<div>
<iframe :src="address" class="fullscreen-iframe"></iframe>
</div>
</template>
<script>
import {
searchBIAddress,
} from "@/api/outReport/outReport.js"
export default {
name: "report98",
data() {
return {
searchData:{
//menuid
menuId:this.$route.meta.menuId,
},
address:'',
}
},
methods: {
searchAddress(){
//menuidbi
searchBIAddress(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.address = data.row.address
} else {
this.address = '';
}
});
},
},
created() {
this.searchAddress();
},
}
</script>
<style scoped>
.fullscreen-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none; /* 可选,根据需要设置边框 */
}
</style>

51
src/views/modules/outReport/report099.vue

@ -0,0 +1,51 @@
<template>
<div>
<iframe :src="address" class="fullscreen-iframe"></iframe>
</div>
</template>
<script>
import {
searchBIAddress,
} from "@/api/outReport/outReport.js"
export default {
name: "report99",
data() {
return {
searchData:{
//menuid
menuId:this.$route.meta.menuId,
},
address:'',
}
},
methods: {
searchAddress(){
//menuidbi
searchBIAddress(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.address = data.row.address
} else {
this.address = '';
}
});
},
},
created() {
this.searchAddress();
},
}
</script>
<style scoped>
.fullscreen-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none; /* 可选,根据需要设置边框 */
}
</style>

51
src/views/modules/outReport/report100.vue

@ -0,0 +1,51 @@
<template>
<div>
<iframe :src="address" class="fullscreen-iframe"></iframe>
</div>
</template>
<script>
import {
searchBIAddress,
} from "@/api/outReport/outReport.js"
export default {
name: "report100",
data() {
return {
searchData:{
//menuid
menuId:this.$route.meta.menuId,
},
address:'',
}
},
methods: {
searchAddress(){
//menuidbi
searchBIAddress(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.address = data.row.address
} else {
this.address = '';
}
});
},
},
created() {
this.searchAddress();
},
}
</script>
<style scoped>
.fullscreen-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none; /* 可选,根据需要设置边框 */
}
</style>

1238
src/views/modules/report/IPQC_detail_report.vue
File diff suppressed because it is too large
View File

6
src/views/modules/report/IPQC_report.vue

@ -613,13 +613,13 @@
{
userId: this.$store.state.user.name,
functionId: 107001003,
serialNumber: '107001003Table1UmName',
serialNumber: '107001003Table1UmId',
tableId: "107001003Table1",
tableName: "IPQC报表",
columnProp: 'umName',
columnProp: 'umId',
headerAlign: "center",
align: "left",
columnLabel: '单位',
columnLabel: '计量单位',
columnHidden: false,
columnImage: false,
columnSortable: false,

214
src/views/modules/report/IQC_detail_report.vue

@ -116,21 +116,8 @@
<el-date-picker style="width: 150px" v-model="searchData.endDate" type="datetime" value-format='yyyy-MM-dd HH:mm' format='yyyy-MM-dd HH:mm' placeholder="结束日期"></el-date-picker>
</el-form-item>
<el-form-item :label="' '">
<el-button v-if="!authSearch" type="primary" @click="getDataList">查询</el-button>
<download-excel
:fields="fields()"
:data="exportData"
type="xls"
:name="exportName"
:header="exportHeader"
:footer="exportFooter"
:fetch="createExportData"
:before-generate="startDownload"
:before-finish="finishDownload"
worksheet="导出信息"
class="el-button el-button--primary el-button--medium">
{{ "导出" }}
</download-excel>
<el-button v-if="!authSearch" type="primary" :loading="searchLoading" @click="getDataList">查询</el-button>
<el-button v-if="!authSearch" type="primary" :loading="downLoading" @click="downloadQcDetailRecord">导出</el-button>
</el-form-item>
</el-form>
@ -139,6 +126,8 @@
:height="height"
:data="dataList"
border
v-loading="searchLoading"
element-loading-text="拼命加载中"
@row-click="IQCClickRow"
:row-style="rowStyle"
style="width: 100%;">
@ -174,21 +163,18 @@
</template>
<script>
import {
getIQCDetailReport, // IQC
} from "@/api/qc/qc_report.js"
import {
getSiteAndBuByUserName2, // site bu
selectIQCSubDetailedRecord, //
disposalMeasuresSearch, //
orderTypeSearch, //
} from "@/api/qc/qc.js"
import {getFileContentList} from '@/api/eam/eam_object_list.js'
import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js"
import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js'
import Chooselist from '@/views/modules/common/Chooselist_eam'
import QcReportFileTable from "../qc/QCReportFileTable.vue";
export default {
import {
getIQCDetailReport, //
downloadQcDetailRecord, //
} from "@/api/qc/qc_report.js"
import {disposalMeasuresSearch, getSiteAndBuByUserName2, orderTypeSearch,} from "@/api/qc/qc.js"
import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js"
import {removeUserFavorite, saveUserFavorite, userFavoriteList} from '@/api/userFavorite.js'
import Chooselist from '@/views/modules/common/Chooselist_eam'
import QcReportFileTable from "../qc/QCReportFileTable.vue";
import axios from "axios";
export default {
components: {
QcReportFileTable,
Chooselist
@ -233,7 +219,8 @@
submissionType: '',
operatorName: '',
responsiblePersonName: '',
itemResult: ''
itemResult: '',
downloadType: 'iqc'
},
pageIndex: 1,
pageSize: 20,
@ -944,6 +931,132 @@
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 107001002,
serialNumber: '107001002Table1SamplingLocation',
tableId: "107001002Table1",
tableName: "IQC明细报表",
columnProp: 'samplingLocation',
headerAlign: "center",
align: "left",
columnLabel: '默认抽样位置A',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 107001002,
serialNumber: '107001002Table1SamplingLocationB',
tableId: "107001002Table1",
tableName: "IQC明细报表",
columnProp: 'samplingLocationB',
headerAlign: "center",
align: "left",
columnLabel: '默认抽样位置B',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 107001002,
serialNumber: '107001002Table1SubDetailValue',
tableId: "107001002Table1",
tableName: "IQC明细报表",
columnProp: 'subDetailValue',
headerAlign: "center",
align: "right",
columnLabel: '实测值A',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 107001002,
serialNumber: '107001002Table1SubDetailValueB',
tableId: "107001002Table1",
tableName: "IQC明细报表",
columnProp: 'subDetailValueB',
headerAlign: "center",
align: "right",
columnLabel: '实测值B',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 107001002,
serialNumber: '107001002Table1SubDetailValueC',
tableId: "107001002Table1",
tableName: "IQC明细报表",
columnProp: 'subDetailValueC',
headerAlign: "center",
align: "right",
columnLabel: '实测值C',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 107001002,
serialNumber: '107001002Table1SubDetailValueD',
tableId: "107001002Table1",
tableName: "IQC明细报表",
columnProp: 'subDetailValueD',
headerAlign: "center",
align: "right",
columnLabel: '实测值D',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 107001002,
serialNumber: '107001002Table1SubDetailValueE',
tableId: "107001002Table1",
tableName: "IQC明细报表",
columnProp: 'subDetailValueE',
headerAlign: "center",
align: "right",
columnLabel: '实测值E',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
],
buList: [],
authSearch: false,
@ -951,6 +1064,8 @@
currentRow: {},
disposalMeasuresOptions: [],
orderTypeList: [],
searchLoading: false,
downLoading: false
}
},
@ -980,6 +1095,24 @@
methods: {
//
downloadQcDetailRecord () {
this.downLoading = true
downloadQcDetailRecord(this.searchData)
.then(response => {
const blob = new Blob([response.data],{ type: 'application/vnd.ms-excel'});
const url = window.URL.createObjectURL(blob);
const link= document.createElement('a');
link.href = url;
link.download='IQC检验单明细.xlsx';//
link.click();
window.URL.revokeObjectURL(url);//URL
this.downLoading = false
}).catch(()=>{
this.downLoading = false
})
},
//
orderTypeSearch () {
orderTypeSearch().then(({data}) => {
@ -1027,6 +1160,7 @@
//
getDataList () {
this.searchLoading = true
this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex
getIQCDetailReport(this.searchData).then(({data}) => {
@ -1036,6 +1170,9 @@
this.pageSize = data.page.pageSize
this.totalPage = data.page.totalCount
}
this.searchLoading = false
}).catch(()=>{
this.searchLoading = false
})
},
@ -1127,17 +1264,10 @@
finishDownload() {},
fields () {
let json = "{"
this.columnList.forEach((item, index) => {
if (index == this.columnList.length - 1) {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
} else {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
}
})
json += "}"
let s = eval("(" + json + ")")
return s
return this.columnList.reduce((acc, item, index) => {
acc[item.columnLabel] = item.columnProp;
return acc;
}, {});
},
//

2
src/views/modules/report/IQC_report.vue

@ -529,7 +529,7 @@
{
userId: this.$store.state.user.name,
functionId: 107001001,
serialNumber: '107001001Table1Umid',
serialNumber: '107001001Table1UmId',
tableId: "107001001Table1",
tableName: "IQC报表",
columnProp: 'umId',

Loading…
Cancel
Save