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