| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { UnqualifiedList,pullInsUnapi,AuditSuggestion |
| | | } from '@/api/quality/unqualifiedprocess' |
| | | import { UnqualifiedList,pullInsUnapi,AuditSuggestion,UnqualifiedDisposal} from '@/api/quality/unqualifiedprocess' |
| | | import TableForm from './table-form' |
| | | import { mapGetters } from 'vuex' |
| | | // import { remote } from '@/api/admin/dict' |
| | | import { transform } from '@/util/fileTransform' |
| | | import ttable from '@/views/common/ztt-table.vue' |
| | | export default { |
| | | data() { |
| | |
| | | // return this.processModeOptions |
| | | // } |
| | | // }, |
| | | //发起人 |
| | | // { |
| | | // minWidth: '200', |
| | | // prop: 'originator', |
| | | // label: '发起人', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'text' |
| | | // }, |
| | | // 审核人 |
| | | // { |
| | | // minWidth: '140', |
| | | // prop: 'examiner', |
| | | // label: '审核人', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'text' |
| | | // }, |
| | | // 处理人 |
| | | // { |
| | | // minWidth: '120', |
| | | // prop: 'handler', |
| | | // label: '处理人', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'text' |
| | | // }, |
| | | |
| | | ], |
| | | toolbar: [ |
| | | { |
| | | text: '导出', |
| | | type: 'primary', |
| | | fun: this.handleExcel |
| | | fun: this.exportExcel |
| | | }, |
| | | ], |
| | | operator: [ |
| | |
| | | // this.getType() |
| | | }, |
| | | methods: { |
| | | async costPlannedAmountChange(value){ |
| | | this.resultData= value |
| | | }, |
| | | handleExcel() { |
| | | console.log(this.resultData); |
| | | console.log(this.table.column); |
| | | let arr = this.table.column.filter(item => item.isTrue == true).map(item => { |
| | | return{ |
| | | prop:item.prop, |
| | | label:item.label |
| | | } |
| | | }) |
| | | let opt = { |
| | | title: '文档标题', |
| | | column: [{ |
| | | label:'不合格处置', |
| | | prop:'header', |
| | | children:arr |
| | | }], |
| | | data: this.resultData |
| | | } |
| | | this.$Export.excel({ |
| | | title: opt.title, |
| | | columns: opt.column, |
| | | data: opt.data |
| | | }); |
| | | }, |
| | | exportExcel(){ |
| | | let queryParam=this.$refs.processconfiguration.getQueryParam(); |
| | | delete queryParam.criteria |
| | | console.log(queryParam); |
| | | UnqualifiedDisposal(queryParam).then((res)=>{ |
| | | transform(res) |
| | | }) |
| | | }, |
| | | //审核结果 |
| | | AuditResult(row){ |
| | | this.UserId = row.id |