| | |
| | | }, |
| | | { |
| | | minWidth: '120', |
| | | prop: 'createTime', |
| | | prop: 'startTime', |
| | | label: '报检日期', |
| | | isTrue: true, |
| | | sort: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | searchInfoType: 'datetimerange', |
| | | formatter: this.formatDateTime, |
| | | }, |
| | | { |
| | |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | searchInfoType: 'datetimerange', |
| | | formatter: this.formatDateTime, |
| | | }, |
| | | { |
| | |
| | | optList: () => { |
| | | return this.StateList |
| | | } |
| | | }, |
| | | { |
| | | minWidth: '120', |
| | | prop: 'remark', |
| | | label: '备注', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | }, |
| | | ], |
| | | toolbar: [], |
| | |
| | | cancelButtonText: '不通过', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | checkPutIFS(val.id,{result: 1}).then(res=>{ |
| | | if(res.status===200){ |
| | | console.log(res) |
| | | } |
| | | }).catch(error=>{ |
| | | console.error(error) |
| | | }) |
| | | this.checkPutIFSFun(val.id,1); |
| | | }).catch((action) => { |
| | | if(action === 'cancel'){ |
| | | checkPutIFS(val.id,{result: 2}).then(res=>{ |
| | | if(res.status===200){ |
| | | console.log(res) |
| | | } |
| | | }).catch(error=>{ |
| | | console.error(error) |
| | | }) |
| | | this.checkPutIFSFun(val.id,2); |
| | | } |
| | | }); |
| | | }, |
| | | checkPutIFSFun(id,result){ |
| | | checkPutIFS(id, result).then(res=>{ |
| | | if(res.status===200){ |
| | | this.getData() |
| | | } |
| | | }).catch(error=>{ |
| | | console.error(error) |
| | | }) |
| | | }, |
| | | downloadReport(){ |
| | | let selection = this.multipleSelection |
| | |
| | | type: "html", |
| | | // header: "原材料检测报告", |
| | | targetStyles: ["*"], |
| | | style: `@page {margin: 0mm 5mm;size: A4;} |
| | | style: `@page {margin: 0mm 5mm;size: A4 landscape;} |
| | | html {zoom:100%;} |
| | | @media print { |
| | | html,body{ |