| | |
| | | </template> |
| | | |
| | | <script> |
| | | // import ValueTable from '../../tool/value-table.vue' |
| | | import file from '@/utils/file' |
| | | import excelFunction from '@/utils/excelFountion' |
| | | import UnPassDialog from "@/views/business/unpass/components/unPassDialog.vue"; |
| | | import AddUnPass from "@/views/business/unpass/components/addUnPass.vue"; |
| | | import { |
| | | checkSubmitPlan, |
| | | determineWhetherToCollectData, |
| | | doInsOrder, downFile, |
| | | getInsProductUnqualifiedRetest, |
| | | search, selectUserCondition, |
| | | submitPlan, |
| | | verifyPlan |
| | | } from "@/api/business/inspectionTask"; |
| | | } from '@/api/business/inspectionTask' |
| | | import { getUserNow, saveUnqualifiedContext } from "@/api/business/rawMaterialOrder"; |
| | | export default { |
| | | props: ['sonLaboratory', 'orderId', 'state', 'inspectorList', 'typeSource', 'unPassCheck', 'rawMaterialTag'], |
| | |
| | | retestTag: this.retestTag, |
| | | rawMaterialTag: this.rawMaterialTag, |
| | | } |
| | | let res = getInsProductUnqualifiedRetest(params) |
| | | let res = await getInsProductUnqualifiedRetest(params) |
| | | if (res.code === 200 && res.data.length > 0) { |
| | | this.tableLoading = false; |
| | | this.scrollInit() |
| | |
| | | } |
| | | }) |
| | | // 以下是样式处理逻辑 |
| | | set = Array.sort(set) |
| | | // set = Array.sort(set) |
| | | set.forEach(b => { |
| | | let arr = [] |
| | | a.template.forEach(c => { |
| | |
| | | } |
| | | }, |
| | | getAuthorizedPerson() { |
| | | selectUserCondition({ type: 0 }).then((res) => { |
| | | selectUserCondition({ type: 1 }).then((res) => { |
| | | let data = []; |
| | | res.data.forEach((a) => { |
| | | data.push({ |
| | |
| | | downFile({ |
| | | id: row.id, |
| | | }).then(res => { |
| | | this.$download.downloadFileFromUrl(res.data.fileUrl, row.fileName); |
| | | this.$download.saveAs(res.data.fileUrl, row.fileName); |
| | | }).catch(error => { |
| | | |
| | | }) |