入库检验修改
This commit is contained in:
@@ -41,12 +41,15 @@
|
||||
<el-table :data="firstLevel_dataList" v-loading="loading" ref="table" border highlight-current-row>
|
||||
<!-- <el-table-column prop="id" label="主键" align="center" /> -->
|
||||
<el-table-column prop="workorder" label="工单号" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="productDescription" label="产品描述" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="specifications" label="规格" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="colour" label="颜色" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="productionNum" label="箱子里产品个数" align="center" />
|
||||
<el-table-column prop="partnumber" label="零件号" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="检验结果" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-progress
|
||||
width="100"
|
||||
:width="100"
|
||||
type="circle"
|
||||
:percentage="calculate_percentage(scope.row.result_good, scope.row.result_bad, scope.row.result_null)"
|
||||
></el-progress>
|
||||
@@ -75,7 +78,7 @@
|
||||
/>
|
||||
|
||||
<!-- 二级菜单区 -->
|
||||
<el-dialog :title="first_level.title" :lock-scroll="false" :visible.sync="first_level.open" width="1200px" :show-close="false">
|
||||
<el-dialog :title="first_level.title" :lock-scroll="false" :visible.sync="first_level.open" width="1200px" :show-close="false">
|
||||
<!-- 工具区 -->
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
@@ -87,8 +90,11 @@
|
||||
<el-col :span="1.5">
|
||||
<el-button type="success" round @click="allQualified">一键全部合格</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="danger" round @click="allUnQualified">一键全部不合格</el-button>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="10" :offset="6">
|
||||
<el-col :span="10">
|
||||
本页合格率
|
||||
<el-progress :text-inside="true" :stroke-width="24" :percentage="percentage" status="success"></el-progress>
|
||||
</el-col>
|
||||
@@ -108,6 +114,9 @@
|
||||
<el-table-column prop="packcode" label="外箱标签" align="center" width="190" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="machine" label="工位" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="productionNum" label="箱子里产品个数" align="center" />
|
||||
<el-table-column prop="productDescription" label="产品描述" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="specifications" label="规格" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="colour" label="颜色" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="partnumber" label="零件号" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="bfilled" label="是否满箱" align="center" />
|
||||
<el-table-column label="检验结果" align="center">
|
||||
@@ -140,6 +149,7 @@ import {
|
||||
listWmFgentryInspect_secondLevel,
|
||||
setTheBoxToBeQualified,
|
||||
setAllQualified,
|
||||
setAllUnQualified,
|
||||
setTheBoxToBeUnQualified,
|
||||
addWmFgentryInspect,
|
||||
delWmFgentryInspect,
|
||||
@@ -177,9 +187,9 @@ export default {
|
||||
},
|
||||
],
|
||||
},
|
||||
inputWidth: '180px',
|
||||
labelWidth: '100px',
|
||||
formLabelWidth: '100px',
|
||||
inputWidth: '180',
|
||||
labelWidth: '100',
|
||||
formLabelWidth: '100',
|
||||
// 选中id数组
|
||||
packcode_select: [],
|
||||
// 非单个禁用
|
||||
@@ -357,6 +367,16 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
//todo 一键全部合格
|
||||
allUnQualified() {
|
||||
const query = { workorder_selected: this.workorder_selected }
|
||||
setAllUnQualified(query).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.getList_second(this.workorder_selected)
|
||||
}
|
||||
})
|
||||
},
|
||||
//todo 计算合格率
|
||||
calculateQualificationRate() {
|
||||
let qualifiedQuantity = this.secondLevel_dataList.filter((it) => it.result == 1).length
|
||||
|
||||
Reference in New Issue
Block a user