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