| | |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="附件"> |
| | | <el-table :data="configFileTableData" height="400px"> |
| | | <el-table-column |
| | | prop="orderNumber" |
| | | align="center" |
| | | label="订单号" |
| | | show-overflow-tooltip |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="originalFileName" |
| | | align="center" |
| | | label="原文件名" |
| | | width="200" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column prop="fileName" align="center" label="文件后缀"> |
| | | </el-table-column> |
| | | <el-table-column prop="createUser" align="center" label="上传人"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="createTime" |
| | | align="center" |
| | | label="上传时间" |
| | | show-overflow-tooltip |
| | | > |
| | | </el-table-column> |
| | | <el-table-column prop="updateUser" align="center" label="更新人"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="updateTime" |
| | | align="center" |
| | | label="更新时间" |
| | | show-overflow-tooltip |
| | | > |
| | | </el-table-column> |
| | | <el-table-column fixed="right" align="center" label="操作"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | @click="downloadProcessConfigFiles(scope.row)" |
| | | type="text" |
| | | size="small" |
| | | >下载</el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </div> |
| | | <div class="finishedProduct-result"> |
| | |
| | | deleteProcessConfigFile, |
| | | downloadProcessConfigFile |
| | | } from '@/api/quality/attachment' |
| | | import { getProcessConfigFile } from '@/api/plan/manufacturingorder' |
| | | import processPart from '@/views/common/processinspect-part' |
| | | import { selectDevice } from '@/api/quality/processInspect' |
| | | import qrCodeApp from '@/views/common/qrCodeApp' |
| | | import { validatePositiveInteger } from '@/util/validate' |
| | | import { getStore } from '@/util/store' |
| | | import * as customerorder from '@/api/plan/customerorder' |
| | | export default { |
| | | components:{ |
| | | qrCodeApp,processPart |
| | |
| | | }, |
| | | inspectionItems: [], // 新增检验项目表格 |
| | | inspectionResultForm: [], |
| | | configFileTableData:[], |
| | | dataForm:null |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | this.init() |
| | | }, |
| | | methods: { |
| | | getProcessConfigFile(){ |
| | | getProcessConfigFile({ |
| | | orderNumber: this.dataForm.orderNumber, |
| | | lineNumber: this.dataForm.customerNo |
| | | }).then((res)=>{ |
| | | this.configFileTableData = res.data.data |
| | | }) |
| | | }, |
| | | downloadProcessConfigFiles(row){ |
| | | customerorder.downloadProcessConfigFile( |
| | | row.fileName, |
| | | row.bucketName, |
| | | row.originalFileName |
| | | ) |
| | | }, |
| | | saveTable(){ |
| | | let processInsProduct = []; |
| | | this.inspectionItems.forEach((item) => { |
| | |
| | | queryById(id).then(res => { |
| | | let result = res.data.data |
| | | this.processInspectVo.moNo = result.moNo |
| | | this.dataForm = result; |
| | | this.processInspectVo.operationTaskId = result.technologyOperationName |
| | | this.processInspectVo.proInsNo = result.proInsNo |
| | | this.processInspectVo.projectName = result.projectName |
| | |
| | | userName: Array.from(new Set(userList)).join(","), |
| | | result: this.resultVal == null ? rVal : this.resultVal, |
| | | }] |
| | | this.getProcessConfigFile() |
| | | }).catch(error => { |
| | | console.log(error) |
| | | }) |
| | |
| | | if (_than.empiricalValueAddMaxNumber != _than.empiricalValueAdd - 1) { |
| | | _than.empiricalValueAdd = _than.empiricalValueAdd - 1; |
| | | // _than.changeRowResult() |
| | | _than.saveTable(); |
| | | _than.inspectionItems.forEach(i => { |
| | | if(i.children){ |
| | | i.children.forEach(ele=>{ |
| | |
| | | }) |
| | | } |
| | | }); |
| | | _than.saveTable(); |
| | | } |
| | | } |
| | | }, |