Merge remote-tracking branch 'origin/master'

master
mengjiao 11 months ago
commit a12df41696

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<el-col :span="4" :xs="24"> <el-col :span="6" :xs="24">
<!-- 新增按钮 --> <!-- 新增按钮 -->
<el-button class="groupAdd" type="primary" @click="handleAdd" <el-button class="groupAdd" type="primary" @click="handleAdd"
>新增物料组</el-button> >新增物料组</el-button>
@ -27,7 +27,7 @@
@node-click="handleNodeClick" @node-click="handleNodeClick"
> >
<span class="custom-tree-node" slot-scope="{ node, data }"> <span class="custom-tree-node" slot-scope="{ node, data }">
<span style="width:110px; display:block; word-break:keep-all; white-space:nowrap; overflow:hidden; text-overflow:ellipsis" <span style="width:220px; display:block; word-break:keep-all; white-space:nowrap; overflow:hidden; text-overflow:ellipsis"
v-bind:title="node.label" v-bind:title="node.label"
>{{node.label}}</span> >{{node.label}}</span>
<span> <span>

@ -2,7 +2,7 @@
<div class="app-container"> <div class="app-container">
<el-row :gutter="20"> <el-row :gutter="20">
<MaterialGroupAdd ref="MaterialGroupAdd" @onNodeClick="onNodeClick" @child-event="getCheckTypeList"></MaterialGroupAdd> <MaterialGroupAdd ref="MaterialGroupAdd" @onNodeClick="onNodeClick" @child-event="getCheckTypeList"></MaterialGroupAdd>
<el-col :span="20" :xs="24"> <el-col :span="18" :xs="24">
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="23" :xs="24"> <el-col :span="23" :xs="24">
<el-tabs v-model="editableTabsValue" type="card" @tab-click="handleClick"> <el-tabs v-model="editableTabsValue" type="card" @tab-click="handleClick">
@ -176,14 +176,9 @@
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> <el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-form-item label="规则名称" prop="projectId"> <el-form-item label="规则名称" prop="projectId">
<el-select filterable v-model="form.projectId" @change="handleChange" placeholder="请选择检验规则属性" > <el-input v-model="form.projectId" v-if="false"/>
<el-option <el-input v-model="form.id" v-if="false"/>
v-for="item in checkRuleList" <el-input v-model="form.ruleName" disabled/>
:key="item.id"
:label="item.ruleName"
:value="item.id"
></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="抽样比例" prop="sample"> <el-form-item label="抽样比例" prop="sample">
<el-input v-model="form.sample" placeholder="请输入抽样比例" /> <el-input v-model="form.sample" placeholder="请输入抽样比例" />

@ -20,7 +20,7 @@
</el-form-item> </el-form-item>
<el-form-item label="检测方案名称"> <el-form-item label="检测方案名称">
<el-select v-model="queryParams.projectType" filterable placeholder="请选择检测方案"> <el-select v-model="queryParams.projectType" filterable clearable placeholder="请选择检测方案">
<el-option <el-option
v-for="item in projectTypeOptions" v-for="item in projectTypeOptions"
:key="item.projectTypeCode" :key="item.projectTypeCode"
@ -65,7 +65,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="测量单位" align="left" prop="unitCode" width="90"/> <el-table-column label="测量单位" align="left" prop="unitCode" width="90"/>
<el-table-column label="抽样方案" align="left" prop="samplePlan" width="100"/> <el-table-column label="抽样方案" align="left" prop="samplePlan" width="100" :show-overflow-tooltip="true"/>
<el-table-column label="合格判定" align="left" prop="judge"/ width="100"> <el-table-column label="合格判定" align="left" prop="judge"/ width="100">
<el-table-column label="缺陷等级" align="left" prop="defectLevel" width="90"/> <el-table-column label="缺陷等级" align="left" prop="defectLevel" width="90"/>
<el-table-column label="检验方式" align="left" prop="checkMode" width="90" :show-overflow-tooltip="true"/> <el-table-column label="检验方式" align="left" prop="checkMode" width="90" :show-overflow-tooltip="true"/>

@ -1,13 +1,15 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="80px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="80px">
<el-form-item label="任务编号" prop="checkNo"> <el-form-item label="检验节点" prop="checkType">
<el-input <el-select v-model="queryParams.checkType" clearable placeholder="请选择检验节点">
v-model="queryParams.checkNo" <el-option
placeholder="请输入检验任务编号" v-for="dict in checkTypes"
clearable :key="dict.id"
@keyup.enter.native="handleQuery" :label="dict.checkName"
/> :value="dict.id"
></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="批次号" prop="incomeBatchNo"> <el-form-item label="批次号" prop="incomeBatchNo">
<el-input <el-input
@ -163,7 +165,7 @@
<el-table-column label="checkType" align="center" prop="checkType" v-if="false"/> <el-table-column label="checkType" align="center" prop="checkType" v-if="false"/>
<el-table-column label="任务编号" align="center" prop="checkNo" width="120"/> <el-table-column label="任务编号" align="center" prop="checkNo" width="120"/>
<el-table-column label="批次号" align="center" prop="incomeBatchNo" width="200" :show-overflow-tooltip="true" /> <el-table-column label="批次号" align="center" prop="incomeBatchNo" width="200" :show-overflow-tooltip="true" />
<el-table-column label="订单号" align="center" prop="orderNo" width="120"/> <el-table-column label="订单号" align="center" prop="orderNo" width="130"/>
<el-table-column label="物料号" align="center" prop="materialCode" width="170"/> <el-table-column label="物料号" align="center" prop="materialCode" width="170"/>
<el-table-column label="物料名称" align="center" prop="materialName" width="250" :show-overflow-tooltip="true" /> <el-table-column label="物料名称" align="center" prop="materialName" width="250" :show-overflow-tooltip="true" />
<el-table-column label="数量" align="center" prop="quality" /> <el-table-column label="数量" align="center" prop="quality" />
@ -171,10 +173,10 @@
<el-table-column label="不合格数量" align="center" prop="noOkQuality" width="120"/> <el-table-column label="不合格数量" align="center" prop="noOkQuality" width="120"/>
<el-table-column label="单位" align="center" prop="unit" /> <el-table-column label="单位" align="center" prop="unit" />
<el-table-column label="车间编码" align="center" prop="supplierCode" width="120"/> <el-table-column label="车间编码" align="center" prop="supplierCode" width="120"/>
<el-table-column label="车间名称" align="center" prop="supplierName" width="240"/> <el-table-column label="车间名称" align="center" prop="supplierName" width="170"/>
<el-table-column label="生产时间" align="center" prop="incomeTime" width="180"> <el-table-column label="生产时间" align="center" prop="incomeTime" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.incomeTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span> <span>{{ parseTime(scope.row.incomeTime, '{y}-{m}-{d}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="检测地点" align="center" prop="checkLoc" width="120"/> <el-table-column label="检测地点" align="center" prop="checkLoc" width="120"/>
@ -186,8 +188,8 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="检测人工号" align="center" prop="checkManCode" width="180" :show-overflow-tooltip="true"/> <el-table-column label="检测人工号" align="center" prop="checkManCode" width="100" />
<el-table-column label="检测人姓名" align="center" prop="checkManName" width="180" :show-overflow-tooltip="true"/> <el-table-column label="检测人姓名" align="center" prop="checkManName" width="100"/>
<el-table-column label="检验时间" align="center" prop="checkTime" width="180"> <el-table-column label="检验时间" align="center" prop="checkTime" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.checkTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span> <span>{{ parseTime(scope.row.checkTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
@ -195,7 +197,7 @@
</el-table-column> </el-table-column>
<el-table-column label="检验节点" align="center" prop="checkName" /> <el-table-column label="检验节点" align="center" prop="checkName" />
<el-table-column label="检验结果" align="center" prop="checkResult" /> <el-table-column label="检验结果" align="center" prop="checkResult" />
<el-table-column label="是否启用" align="center" width="100"> <el-table-column label="是否启用" align="center" width="100" v-if="false">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch
v-model="scope.row.status" v-model="scope.row.status"
@ -437,6 +439,7 @@ export default {
total: 0, total: 0,
// //
qcProduceList: [], qcProduceList: [],
checkTypeList:[],
// //
title: "", title: "",
// //
@ -517,6 +520,7 @@ export default {
}, },
methods: { methods: {
/****/ /****/
//
getCheckTypes() { getCheckTypes() {
getCheckTypes('produce').then(response => { getCheckTypes('produce').then(response => {
this.checkTypes = response; this.checkTypes = response;

@ -423,6 +423,7 @@ export default {
total: 0, total: 0,
// //
warehousingList: [], warehousingList: [],
batchList:[],
// //
title: "", title: "",
// //

@ -1,13 +1,25 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
<el-form-item label="任务编码" prop="checkNo"> <el-form-item label="检验类型" prop="typeCode">
<el-input <el-select v-model="queryParams.typeCode" clearable placeholder="请选择检验类型" @change="getCheckTypeList">
v-model="queryParams.checkNo" <el-option
placeholder="请输入所属任务编码" v-for="dict in dict.type.check_type"
clearable :key="dict.value"
@keyup.enter.native="handleQuery" :label="dict.label"
/> :value="dict.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="检验节点" prop="checkType">
<el-select v-model="queryParams.checkType" clearable placeholder="请选择检验节点">
<el-option
v-for="dict in checkTypeList"
:key="dict.checkType"
:label="dict.checkName"
:value="dict.checkType"
></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="订单编码" prop="orderNo"> <el-form-item label="订单编码" prop="orderNo">
<el-input <el-input
@ -25,14 +37,7 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="物料名称" prop="materialName"> <!--
<el-input
v-model="queryParams.materialName"
placeholder="请输入物料名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="检测地点" prop="checkLoc"> <el-form-item label="检测地点" prop="checkLoc">
<el-input <el-input
v-model="queryParams.checkLoc" v-model="queryParams.checkLoc"
@ -48,7 +53,7 @@
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>-->
<el-form-item label="检验时间" prop="checkTime"> <el-form-item label="检验时间" prop="checkTime">
<el-date-picker <el-date-picker
v-model="queryParams.checkTimeArray" v-model="queryParams.checkTimeArray"
@ -107,15 +112,14 @@
<el-table v-loading="loading" :data="unqualifiedList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="unqualifiedList" @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="id" align="center" prop="id" v-if="false"/> <el-table-column label="id" align="center" prop="id" v-if="false"/>
<el-table-column label="检查任务编码" align="center" prop="checkNo" width="150"/> <el-table-column label="检查任务编码" align="center" prop="checkNo" width="130"/>
<el-table-column label="订单编码" align="center" prop="orderNo" width="150"/> <el-table-column label="订单编码" align="center" prop="orderNo" width="130"/>
<el-table-column label="批次号" align="center" prop="incomeBatchNo" width="100"/> <el-table-column label="批次号" align="center" prop="incomeBatchNo" width="150" :show-overflow-tooltip="true"/>
<el-table-column label="质检项目" align="center" prop="checkName" width="80"/> <el-table-column label="质检项目" align="center" prop="checkName" width="80"/>
<el-table-column label="物料编码" align="center" prop="materialCode" width="150"/> <el-table-column label="物料编码" align="center" prop="materialCode" width="150" :formatter="productCodeFormate"/>
<el-table-column label="物料名称" align="center" prop="materialName" width="150"/> <el-table-column label="物料名称" align="center" prop="materialName" width="150" :show-overflow-tooltip="true"/>
<el-table-column label="订单数量" align="center" prop="quality" /> <el-table-column label="订单数量" align="center" prop="quality" />
<el-table-column label="单位" align="center" prop="unit" /> <el-table-column label="单位" align="center" prop="unit" />
<el-table-column label="异常时间" align="center" prop="checkTime" width="120"/>
<el-table-column label="状态" align="center" prop="status" > <el-table-column label="状态" align="center" prop="status" >
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag <dict-tag
@ -126,7 +130,11 @@
</el-table-column> </el-table-column>
<el-table-column label="下一节点编码" align="center" prop="nextNodeCode" width="120"/> <el-table-column label="下一节点编码" align="center" prop="nextNodeCode" width="120"/>
<el-table-column label="下一节点名称" align="center" prop="nextNodeName" width="120"/> <el-table-column label="下一节点名称" align="center" prop="nextNodeName" width="120"/>
<el-table-column label="提报时间" align="center" prop="createTime" width="120"/> <el-table-column label="流程发起时间" align="center" prop="createTime" width="150">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
</template>
</el-table-column>
<el-table-column label="不合格描述" align="center" prop="remark" width="120"/> <el-table-column label="不合格描述" align="center" prop="remark" width="120"/>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
@ -276,10 +284,11 @@
<script> <script>
import { listUnqualified, getUnqualified, delUnqualified, addUnqualified, updateUnqualified } from "@/api/quality/unqualified"; import { listUnqualified, getUnqualified, delUnqualified, addUnqualified, updateUnqualified } from "@/api/quality/unqualified";
import { getCheckTypeList} from "@/api/quality/qcTable";
import moment from 'moment'; import moment from 'moment';
export default { export default {
name: "Unqualified", name: "Unqualified",
dicts: ["do_result"], dicts: ["do_result","check_type"],
data() { data() {
return { return {
// //
@ -314,12 +323,16 @@ export default {
attr3: null, attr3: null,
attr4: null, attr4: null,
factoryCode: null, factoryCode: null,
typeCode:null,
checkType:null,
}, },
// //
form: {}, form: {},
// //
rules: { rules: {
} },
checkTypeList:[],
checkTypes:[]
}; };
}, },
created() { created() {
@ -330,7 +343,7 @@ export default {
methods: { methods: {
/****/ /****/
getCheckTypes() { getCheckTypes() {
getCheckTypes('material').then(response => { getCheckTypes('').then(response => {
this.checkTypes = response; this.checkTypes = response;
}); });
}, },
@ -443,15 +456,15 @@ export default {
} }
}); });
}, },
/** 删除按钮操作 */ getCheckTypeList(val){
handleDelete(row) { //
const ids = row.id || this.ids; getCheckTypeList(val).then(response => {
this.$modal.confirm('是否确认删除不合格处理编号为"' + ids + '"的数据项?').then(function() { this.checkTypeList = response
return delUnqualified(ids); });
}).then(() => { },
this.getList(); //
this.$modal.msgSuccess("删除成功"); productCodeFormate(row, column, cellValue){
}).catch(() => {}); return cellValue.slice(7,18); //
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {

Loading…
Cancel
Save