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

yangwl
A0010407 10 months ago
parent 6a961ef4ae
commit 617a3df003

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

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

Loading…
Cancel
Save