2024-1-15-1 质量模块-生产过程检验-检验项目查看4

yangwl
A0010407 10 months ago
parent 6a961ef4ae
commit 617a3df003

@ -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();

@ -227,12 +227,6 @@
@click="handleCheckProject(scope.row)"
v-hasPermi="['quality:qcProduce:edit']"
>检验</el-button>
<!--检验项目弹窗-->
<ItemSelectProject
ref="itemSelectProject"
@saveCheck="saveCheck"
:checkStatus = "scope.row.checkStatus"
></ItemSelectProject>
<!--
<el-button
size="mini"
@ -409,6 +403,11 @@
ref="itemSelectUser"
@onSelected="onSelectUser"
></ItemSelectUser>
<!--检验项目弹窗-->
<ItemSelectProject
ref="itemSelectProject"
@saveCheck="saveCheck"
></ItemSelectProject>
</div>
</template>
@ -428,7 +427,7 @@ export default {
dicts: ["unit","check_status","check_result"],
data() {
return {
showFlag:false,
showFlag:false,
//
loading: true,
//
@ -699,7 +698,7 @@ export default {
},
//
onSelectWorkOrder(obj) {
this.form.orderNo = obj.workorderCode;
this.form.orderNo = obj.orderNo;
this.form.materialName = obj.materialName;
this.form.materialCode = obj.materialCode;
this.form.quality = obj.quality;
@ -742,7 +741,7 @@ export default {
//
handleView(row){
this.$refs.itemSelectProject.showFlag = true;
this.$refs.itemSelectProject.init(row,'produce');
this.$refs.itemSelectProject.view(row,'produce');
},
//
saveCheck(){

Loading…
Cancel
Save