|
|
|
@ -24,13 +24,13 @@
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="检验方式" align="left" prop="checkMode" " />
|
|
|
|
|
<el-table-column label="检验方式" align="left" prop="checkMode" />
|
|
|
|
|
<el-table-column label="检验工具" align="left" prop="checkTool" />
|
|
|
|
|
<el-table-column label="检验标准" align="left" prop="checkStandard" />
|
|
|
|
|
<el-table-column label="上差值" align="left" prop="upperDiff" />
|
|
|
|
|
<el-table-column label="下差值" align="left" prop="downDiff" />
|
|
|
|
|
<el-table-column label="单位" align="left" prop="unitCode" width="80"/>
|
|
|
|
|
<el-table-column label="检测结果" key="status" align="center" prop="status" width="90">
|
|
|
|
|
<el-table-column label="检测结果" key="status" align="center" prop="status" width="90" v-if="this.viewStatus != '1' ">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-switch
|
|
|
|
|
v-model="scope.row.status"
|
|
|
|
@ -40,8 +40,10 @@
|
|
|
|
|
></el-switch>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="测量值" align="left" prop="actualValue" width="120" v-if="checkStatus == '0' "/>
|
|
|
|
|
<el-table-column label="不良项目" align="left" prop="defectCode" width="120" v-if="checkStatus == '0' ">
|
|
|
|
|
<el-table-column label="检测结果" key="status" align="center" prop="status" width="90" v-if="this.viewStatus == '1' ">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="测量值" align="left" prop="actualValue" width="120" v-if="this.viewStatus != '1' "/>
|
|
|
|
|
<el-table-column label="不良项目" align="left" prop="defectCode" width="120" v-if="this.viewStatus != '1' ">
|
|
|
|
|
<template scope="scope">
|
|
|
|
|
<el-select v-model="scope.row.defectCode">
|
|
|
|
|
<el-option v-for="item in defectList" :key="item.defectCode" :label="item.defectSubclass" :value="item.defectCode">
|
|
|
|
@ -49,7 +51,7 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" v-if="checkStatus == '0' ">
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" v-if="this.viewStatus != '1' ">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
@ -72,7 +74,7 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button type="primary" @click="submitBomForm" v-if="checkStatus == '0' ">确 定</el-button>
|
|
|
|
|
<el-button type="primary" @click="submitBomForm" v-if="this.viewStatus != '1' ">确 定</el-button>
|
|
|
|
|
<el-button @click="cancelForm" >取 消</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
@ -108,7 +110,8 @@ export default {
|
|
|
|
|
dicts: ["check_result","qc_rule_prop"],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
showFlag:false,
|
|
|
|
|
viewStatus : '0',
|
|
|
|
|
showFlag : false,
|
|
|
|
|
// 选中数组
|
|
|
|
|
selectedRows: {},
|
|
|
|
|
// 非单个禁用
|
|
|
|
@ -153,9 +156,6 @@ export default {
|
|
|
|
|
created() {
|
|
|
|
|
this.getDefect();
|
|
|
|
|
},
|
|
|
|
|
props: {
|
|
|
|
|
checkStatus : undefined,
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
getDefect(){
|
|
|
|
@ -170,6 +170,19 @@ export default {
|
|
|
|
|
this.typeCode = typeCode;
|
|
|
|
|
this.checkType = this.data.checkType;
|
|
|
|
|
this.orderNo = this.data.orderNo;
|
|
|
|
|
this.viewStatus = this.data.checkStatus;
|
|
|
|
|
this.queryParams.pageNum = 1;
|
|
|
|
|
this.queryParams.pageSize = 10;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
view(rowdata,typeCode){
|
|
|
|
|
this.data=rowdata;
|
|
|
|
|
this.queryParams.belongTo = this.data.recordId;
|
|
|
|
|
this.typeCode = typeCode;
|
|
|
|
|
this.checkType = this.data.checkType;
|
|
|
|
|
this.orderNo = this.data.orderNo;
|
|
|
|
|
this.viewStatus = "1";
|
|
|
|
|
this.queryParams.pageNum = 1;
|
|
|
|
|
this.queryParams.pageSize = 10;
|
|
|
|
|
this.getList();
|
|
|
|
|