Commit 9f3bf721 authored by chenzj's avatar chenzj

Merge branch 'dev' of http://git.local.topsunit.com/mes/mes-ui into dev

parents 5a5c762d a4085fd6
...@@ -156,17 +156,17 @@ ...@@ -156,17 +156,17 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<WorkuintSelect ref="WorkuintSelect" @onSelected="val => onWorkstationSelected(val)"></WorkuintSelect>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="工作中心编号" prop="workstationCode"> <el-form-item label="工作单元编号" prop="workunitCode">
<el-input v-model="form.workstationCode" placeholder="请输入工作中心编号"> <el-input v-model="form.workunitCode" placeholder="工作单元编号" >
<el-button slot="append" icon="el-icon-search" @click="handleWorkstationSelect"></el-button> <el-button slot="append" icon="el-icon-search" @click="$refs.WorkuintSelect.showFlag = true"></el-button>
</el-input> </el-input>
</el-form-item> </el-form-item>
<WorkstationSelect ref="wsSelect" @onSelected="onWorkstationSelected"> </WorkstationSelect>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="工作中心名称" prop="workstationName"> <el-form-item label="工作单元名称" prop="workunitName">
<el-input v-model="form.workstationName" readonly="readonly" /> <el-input v-model="form.workunitName" readonly="readonly" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
...@@ -308,12 +308,12 @@ ...@@ -308,12 +308,12 @@
import { listIpqc, getIpqc, delIpqc, addIpqc, updateIpqc } from "@/api/mes/qc/ipqc"; import { listIpqc, getIpqc, delIpqc, addIpqc, updateIpqc } from "@/api/mes/qc/ipqc";
import { genCode } from "@/api/system/autocode/rule" import { genCode } from "@/api/system/autocode/rule"
import WorkorderSelect from "@/components/workorderSelect/single.vue" import WorkorderSelect from "@/components/workorderSelect/single.vue"
import WorkstationSelect from "@/components/workstationSelect/simpletableSingle.vue" import WorkuintSelect from "@/components/workunitSelect/single.vue";
import Ipqcline from "./line.vue" import Ipqcline from "./line.vue"
import dayjs from 'dayjs'; import dayjs from 'dayjs';
export default { export default {
name: "Ipqc", name: "Ipqc",
components: { WorkorderSelect, WorkstationSelect, Ipqcline }, components: { WorkorderSelect, WorkuintSelect, Ipqcline },
dicts: ['mes_ipqc_type_pc', 'mes_qc_result', 'mes_order_status'], dicts: ['mes_ipqc_type_pc', 'mes_qc_result', 'mes_order_status'],
data() { data() {
return { return {
...@@ -353,9 +353,9 @@ export default { ...@@ -353,9 +353,9 @@ export default {
taskId: null, taskId: null,
taskCode: null, taskCode: null,
taskName: null, taskName: null,
workstationId: null, workunitId: null,
workstationCode: null, workunitCode: null,
workstationName: null, workunitName: null,
processId: null, processId: null,
processCode: null, processCode: null,
processName: null, processName: null,
...@@ -388,7 +388,7 @@ export default { ...@@ -388,7 +388,7 @@ export default {
ipqcType: [ ipqcType: [
{ required: true, message: "请选择检验类型", trigger: "change" } { required: true, message: "请选择检验类型", trigger: "change" }
], ],
workstationCode: [ workunitCode: [
{ required: true, message: "请选择工作中心", trigger: "blur" } { required: true, message: "请选择工作中心", trigger: "blur" }
], ],
...@@ -449,9 +449,9 @@ export default { ...@@ -449,9 +449,9 @@ export default {
taskId: null, taskId: null,
taskCode: null, taskCode: null,
taskName: null, taskName: null,
workstationId: null, workunitId: null,
workstationCode: null, workunitCode: null,
workstationName: null, workunitName: null,
processId: null, processId: null,
processCode: null, processCode: null,
processName: null, processName: null,
...@@ -626,9 +626,9 @@ export default { ...@@ -626,9 +626,9 @@ export default {
}, },
onWorkstationSelected(row) { onWorkstationSelected(row) {
if (row != undefined && row != null) { if (row != undefined && row != null) {
this.form.workstationId = row.workstationId; this.form.workunitCode = row.workunitCode;
this.form.workstationCode = row.workstationCode; this.form.workunitId = row.workunitId;
this.form.workstationName = row.workstationName; this.form.workunitName = row.workunitName;
} }
}, },
//自动生成编码 //自动生成编码
......
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
<div class="app-container"> <div class="app-container">
<el-table v-loading="loading" :data="ipqclineList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="ipqclineList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="质检项目" width="110" align="center" prop="indexName" /> <el-table-column label="检验名称" width="110" align="center" prop="qcTool" />
<el-table-column label="检验要求" align="center" prop="checkMethod" /> <el-table-column label="检验要求" align="center" prop="indexName" />
<el-table-column label="检验结果" width="300" align="center" prop="qualityCheckResults"> <el-table-column label="项目判定" width="300" align="center" prop="qualityCheckResults">
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
<el-radio-group v-if="scope.row.inputType == 2" v-model="scope.row.qualityCheckResults"> <el-radio-group v-if="scope.row.inputType == 2" v-model="scope.row.qualityCheckResults">
<el-radio v-for="(item, index) in scope.row.selectValues" :key="index" :label="item.name"></el-radio> <el-radio v-for="(item, index) in jcResultOpt" :key="index" :label="item.text"></el-radio>
</el-radio-group> </el-radio-group>
<el-input v-else v-model="scope.row.qualityCheckResults" placeholder="请输入检验结果"></el-input> <el-input v-else v-model="scope.row.qualityCheckResults" placeholder="请输入检验结果"></el-input>
</div> </div>
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
<el-table-column label="判定" width="120" align="center"> <el-table-column label="判定" width="120" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
<el-radio-group v-model="scope.row.status"> <el-radio-group v-model.number="scope.row.status">
<el-radio v-for="(item, index) in dict.type.ver_item_determination" :key="index" :label="item.value" style="margin-right: 0">{{item.label}}</el-radio> <el-radio v-for="(item, index) in dict.type.ver_item_determination" :key="index" :label="Number(item.value)" style="margin-right: 0">{{item.label}}</el-radio>
</el-radio-group> </el-radio-group>
</div> </div>
</template> </template>
...@@ -78,6 +78,20 @@ export default { ...@@ -78,6 +78,20 @@ export default {
total: 0, total: 0,
// 过程检验单行表格数据 // 过程检验单行表格数据
ipqclineList: [], ipqclineList: [],
jcResultOpt: [
{
text: 'OK',
value: 'OK',
},
{
text: 'NG',
value: 'NG',
},
{
text: 'NA',
value: 'NA',
},
],
// 弹出层标题 // 弹出层标题
title: "", title: "",
// 是否显示弹出层 // 是否显示弹出层
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment