| | |
| | | <el-row> |
| | | <el-col :span="20"> |
| | | <el-card style="margin-top: 10px; height: 490px;" class="box-card"> |
| | | <el-tabs v-model="activeName" @tab-click="handleClick"> |
| | | <el-tabs v-model="activeName"> |
| | | <el-tab-pane label="过站采集" name="first"> |
| | | <el-table max-height="410px" border ref="multipleTable" :data="passingStationCollectionList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="工单编号" width="120" align="center" prop="workOrderNo"> |
| | | <!-- <el-table-column label="工单编号" width="120" align="center" prop="workOrderNo"> |
| | | </el-table-column>--> |
| | | <el-table-column label="发动机号" min-width="160" align="center" prop="sfcCode"> |
| | | </el-table-column> |
| | | <el-table-column label="总成序列号" width="150" align="center" prop="sfcCode"> |
| | | </el-table-column> |
| | | <el-table-column label="产品编号" align="center" prop="productCode"> |
| | | <!-- <el-table-column label="产品编号" align="center" prop="productCode"> |
| | | </el-table-column> |
| | | <el-table-column label="产线编号" align="center" prop="productionLine"> |
| | | </el-table-column> |
| | | </el-table-column>--> |
| | | <el-table-column label="工位编号" align="center" prop="locationCode"> |
| | | </el-table-column> |
| | | <el-table-column label="入站时间" align="center" prop="inboundTime" width="160"> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="是否合格" align="center" prop="outRsSign"> |
| | | </el-table-column> |
| | | <el-table-column label="NG原因" align="center" prop="outMsgSign"> |
| | | </el-table-column> |
| | | <!-- <el-table-column label="NG原因" align="center" prop="outMsgSign"> |
| | | </el-table-column>--> |
| | | <el-table-column label="采集时间" align="center" prop="collectionTime" width="160"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.collectionTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="节拍时间" align="center" prop="beatTime"> |
| | | </el-table-column> |
| | | <!-- <el-table-column label="节拍时间" align="center" prop="beatTime"> |
| | | </el-table-column>--> |
| | | </el-table> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="返修记录" name="second"> |
| | | <el-tab-pane label="返修记录" name="second" @tab-click="handleClick"> |
| | | <el-table max-height="410px" border :data="repairRecordList"> |
| | | <el-table-column label="发动机号" width="150" align="center" prop="boxCode" /> |
| | | <el-table-column label="发动机号" min-width="160" align="center" prop="boxCode" /> |
| | | <el-table-column label="工位号" align="center" prop="processesCode" /> |
| | | <el-table-column label="返修结果" align="center" prop="repairResults" /> |
| | | <el-table-column label="原结果" align="center" prop="originalResult" /> |
| | | <el-table-column label="返修时间" align="center" width="160" prop="repairTime" /> |
| | | <el-table-column label="返修时间" align="center" prop="repairTime" /> |
| | | </el-table> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | |
| | | ids: [], |
| | | allSelected: false, |
| | | boxCode: '', |
| | | |
| | | // rules: { |
| | | // boxCode: [ |
| | | // { required: true, message: "状态不能为空", trigger: "blur" } |
| | | // ] |
| | | // }, |
| | | } |
| | | }, |
| | | mounted() { |
| | | // this.getList() |
| | | }, |
| | | methods:{ |
| | | handleClick(tab, event) { |
| | | console.log(tab, event); |
| | | this.$modal.msgSuccess(tab,event); |
| | | |
| | | }, |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | |
| | | let queryParams = { |
| | | ids: this.ids |
| | | } |
| | | this.repairRecordList = [] |
| | | insertRepairRecordByIds(queryParams).then(response => { |
| | | |
| | | }); |
| | | // this.initRepairRecord() |
| | | // this.getList(); |
| | | } |
| | | this. handleQuery(); |
| | | }, |
| | | repairRecord(){ |
| | | this.$modal.msgSuccess('返修记录'); |
| | |
| | | let queryParams = { |
| | | boxCode: this.queryParams.sfcCode |
| | | } |
| | | |
| | | noPagelist(queryParams).then(response => { |
| | | this.repairRecordList = response.rows; |
| | | }); |
| | | |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.getList(); |
| | | this.initRepairRecord(); |
| | | let sfcCode = this.queryParams.sfcCode |
| | | if(sfcCode === null||sfcCode ===''){ |
| | | this.$message({ |
| | | message: '请填写发动机号!', |
| | | type: 'warning' |
| | | }); |
| | | }else { |
| | | this.$modal.msgSuccess('搜索'); |
| | | this.getList(); |
| | | this.initRepairRecord(); |
| | | } |
| | | }, |
| | | /** 查询产品过站采集列表 */ |
| | | getList() { |
| | | noPageList(this.queryParams).then(response => { |
| | | this.passingStationCollectionList = response.rows; |
| | | this.total = response.total; |
| | | }); |
| | | }, |
| | | |