|
|
@ -1,6 +1,18 @@
|
|
|
|
<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="checkType">
|
|
|
|
|
|
|
|
<el-select v-model="queryParams.checkType" clearable placeholder="请选择检验节点">
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="dict in checkTypes"
|
|
|
|
|
|
|
|
:key="dict.id"
|
|
|
|
|
|
|
|
:label="dict.checkName"
|
|
|
|
|
|
|
|
:value="dict.id"
|
|
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="任务编号" prop="checkNo">
|
|
|
|
<el-form-item label="任务编号" prop="checkNo">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.checkNo"
|
|
|
|
v-model="queryParams.checkNo"
|
|
|
@ -43,7 +55,7 @@
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>-->
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="仓库名称" prop="supplierName">
|
|
|
|
<el-form-item label="仓库名称" prop="supplierName">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.supplierName"
|
|
|
|
v-model="queryParams.supplierName"
|
|
|
@ -51,7 +63,7 @@
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>-->
|
|
|
|
<el-form-item label="入库时间" prop="incomeTimeArray">
|
|
|
|
<el-form-item label="入库时间" prop="incomeTimeArray">
|
|
|
|
<el-date-picker
|
|
|
|
<el-date-picker
|
|
|
|
v-model="queryParams.incomeTimeArray"
|
|
|
|
v-model="queryParams.incomeTimeArray"
|
|
|
@ -131,7 +143,7 @@
|
|
|
|
v-hasPermi="['quality:qcWarehousing:edit']"
|
|
|
|
v-hasPermi="['quality:qcWarehousing:edit']"
|
|
|
|
>修改</el-button>
|
|
|
|
>修改</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<!-- <el-col :span="1.5">
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="danger"
|
|
|
|
type="danger"
|
|
|
|
plain
|
|
|
|
plain
|
|
|
@ -141,7 +153,7 @@
|
|
|
|
@click="handleDelete"
|
|
|
|
@click="handleDelete"
|
|
|
|
v-hasPermi="['quality:qcWarehousing:remove']"
|
|
|
|
v-hasPermi="['quality:qcWarehousing:remove']"
|
|
|
|
>删除</el-button>
|
|
|
|
>删除</el-button>
|
|
|
|
</el-col>-->
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="warning"
|
|
|
|
type="warning"
|
|
|
@ -166,15 +178,16 @@
|
|
|
|
}}</el-button>
|
|
|
|
}}</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<!--<el-table-column label="批次号" align="center" prop="incomeBatchNo" width="200" :show-overflow-tooltip="true"/>-->
|
|
|
|
|
|
|
|
<el-table-column label="订单号" align="center" prop="orderNo" width="130"/>
|
|
|
|
<el-table-column label="订单号" align="center" prop="orderNo" width="130"/>
|
|
|
|
|
|
|
|
<el-table-column label="批次号" align="center" prop="incomeBatchNo" width="200" :show-overflow-tooltip="true"/>
|
|
|
|
|
|
|
|
<el-table-column label="检验节点" align="center" prop="checkName" />
|
|
|
|
<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" />
|
|
|
|
<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="120"/>
|
|
|
|
<el-table-column label="车间名称" align="center" prop="supplierName" width="120"/>
|
|
|
|
<el-table-column label="入库时间" align="center" prop="incomeTime" width="180">
|
|
|
|
<el-table-column label="任务时间" align="center" prop="incomeTime" width="180">
|
|
|
|
<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} {h}:{i}:{s}') }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -205,14 +218,6 @@
|
|
|
|
@click="handleCheckProject(scope.row)"
|
|
|
|
@click="handleCheckProject(scope.row)"
|
|
|
|
v-hasPermi="['quality:qcWarehousing:edit']"
|
|
|
|
v-hasPermi="['quality:qcWarehousing:edit']"
|
|
|
|
>检验</el-button>
|
|
|
|
>检验</el-button>
|
|
|
|
<!--
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
|
|
|
|
v-hasPermi="['quality:qcWarehousing:remove']"
|
|
|
|
|
|
|
|
>删除</el-button>-->
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
@ -321,6 +326,7 @@
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="仓库名称" prop="supplierName">
|
|
|
|
<el-form-item label="仓库名称" prop="supplierName">
|
|
|
|
<el-input v-model="form.supplierName" placeholder="请选择仓库名称">
|
|
|
|
<el-input v-model="form.supplierName" placeholder="请选择仓库名称">
|
|
|
@ -332,8 +338,19 @@
|
|
|
|
<el-form-item label="仓库编码" prop="supplierCode">
|
|
|
|
<el-form-item label="仓库编码" prop="supplierCode">
|
|
|
|
<el-input v-model="form.supplierCode" placeholder="请输入仓库编码" disabled/>
|
|
|
|
<el-input v-model="form.supplierCode" placeholder="请输入仓库编码" disabled/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>-->
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="车间名称" prop="supplierName">
|
|
|
|
|
|
|
|
<el-input v-model="form.supplierName" placeholder="请输入所属车间名称" >
|
|
|
|
|
|
|
|
<el-button slot="append" @click="handleSelectWorkCenter" icon="el-icon-search"></el-button>
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<el-form-item label="车间编码" prop="supplierCode">
|
|
|
|
|
|
|
|
<el-input v-model="form.supplierCode" placeholder="请输入所属车间编码" disabled/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
@ -370,11 +387,16 @@
|
|
|
|
ref="itemSelectMaterial"
|
|
|
|
ref="itemSelectMaterial"
|
|
|
|
@onSelected="onSelectMaterial"
|
|
|
|
@onSelected="onSelectMaterial"
|
|
|
|
></ItemSelectMaterial>
|
|
|
|
></ItemSelectMaterial>
|
|
|
|
<!--仓库选择弹窗-->
|
|
|
|
<!--仓库选择弹窗
|
|
|
|
<ItemSelectLoc
|
|
|
|
<ItemSelectLoc
|
|
|
|
ref="itemSelectLoc"
|
|
|
|
ref="itemSelectLoc"
|
|
|
|
@onSelected="onSelectLoc"
|
|
|
|
@onSelected="onSelectLoc"
|
|
|
|
></ItemSelectLoc>
|
|
|
|
></ItemSelectLoc>-->
|
|
|
|
|
|
|
|
<!--工作中心(车间)选择弹窗-->
|
|
|
|
|
|
|
|
<ItemSelectWorkCenter
|
|
|
|
|
|
|
|
ref="itemSelectWorkCenter"
|
|
|
|
|
|
|
|
@onSelected="onSelectWorkCenter"
|
|
|
|
|
|
|
|
></ItemSelectWorkCenter>
|
|
|
|
<!--人员选择弹窗-->
|
|
|
|
<!--人员选择弹窗-->
|
|
|
|
<ItemSelectUser
|
|
|
|
<ItemSelectUser
|
|
|
|
ref="itemSelectUser"
|
|
|
|
ref="itemSelectUser"
|
|
|
@ -392,16 +414,18 @@
|
|
|
|
import { listWarehousing, getWarehousing, delWarehousing, addWarehousing, updateWarehousing } from "@/api/quality/warehousing";
|
|
|
|
import { listWarehousing, getWarehousing, delWarehousing, addWarehousing, updateWarehousing } from "@/api/quality/warehousing";
|
|
|
|
import { getBatchList} from "@/api/quality/qcProduce";
|
|
|
|
import { getBatchList} from "@/api/quality/qcProduce";
|
|
|
|
import { getCheckTypes } from "@/api/quality/qcProduce";
|
|
|
|
import { getCheckTypes } from "@/api/quality/qcProduce";
|
|
|
|
import ItemSelectWorkOrder from "./selectProductWorkOrder.vue";
|
|
|
|
//import ItemSelectWorkOrder from "./selectProductWorkOrder.vue";
|
|
|
|
|
|
|
|
import ItemSelectWorkOrder from "../qcProduce/selectWorkOrder.vue";
|
|
|
|
|
|
|
|
import ItemSelectWorkCenter from "../qcProduce/selectWorkCenter";
|
|
|
|
import ItemSelectMaterial from "../qcIncome/selectMaterial.vue";
|
|
|
|
import ItemSelectMaterial from "../qcIncome/selectMaterial.vue";
|
|
|
|
import ItemSelectLoc from "./selectLoc.vue";
|
|
|
|
//import ItemSelectLoc from "./selectLoc.vue";
|
|
|
|
import ItemSelectUser from "../qcIncome/selectUser.vue";
|
|
|
|
import ItemSelectUser from "../qcIncome/selectUser.vue";
|
|
|
|
import ItemSelectProject from "../qcIncome/checkProjectType.vue";
|
|
|
|
import ItemSelectProject from "../qcIncome/checkProjectType.vue";
|
|
|
|
import moment from 'moment';
|
|
|
|
import moment from 'moment';
|
|
|
|
import { getDefectTypeListByDefectType } from "@/api/quality/defectType.js";
|
|
|
|
import { getDefectTypeListByDefectType } from "@/api/quality/defectType.js";
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "Warehousing",
|
|
|
|
name: "Warehousing",
|
|
|
|
components: { ItemSelectMaterial,ItemSelectLoc,ItemSelectUser,ItemSelectProject,ItemSelectWorkOrder},
|
|
|
|
components: { ItemSelectMaterial,ItemSelectWorkCenter,ItemSelectUser,ItemSelectProject,ItemSelectWorkOrder},
|
|
|
|
dicts: ["unit","check_status","check_result"],
|
|
|
|
dicts: ["unit","check_status","check_result"],
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
@ -476,9 +500,9 @@ export default {
|
|
|
|
incomeTime: [
|
|
|
|
incomeTime: [
|
|
|
|
{ required: true, message: "入库时间不能为空", trigger: "blur" }
|
|
|
|
{ required: true, message: "入库时间不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
],
|
|
|
|
checkManName: [
|
|
|
|
//checkManName: [
|
|
|
|
{ required: true, message: "检测人不能为空", trigger: "blur" }
|
|
|
|
// { required: true, message: "检测人不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
//],
|
|
|
|
checkLoc: [
|
|
|
|
checkLoc: [
|
|
|
|
{ required: true, message: "检测地点不能为空", trigger: "blur" }
|
|
|
|
{ required: true, message: "检测地点不能为空", trigger: "blur" }
|
|
|
|
]
|
|
|
|
]
|
|
|
@ -677,6 +701,7 @@ export default {
|
|
|
|
this.form.quality = obj.quality;
|
|
|
|
this.form.quality = obj.quality;
|
|
|
|
this.form.unit = obj.unit;
|
|
|
|
this.form.unit = obj.unit;
|
|
|
|
this.form.incomeTime = obj.incomeTime;
|
|
|
|
this.form.incomeTime = obj.incomeTime;
|
|
|
|
|
|
|
|
this.form.checkLoc = obj.checkLocName;
|
|
|
|
getBatchList(obj.workorderCode).then(response => {
|
|
|
|
getBatchList(obj.workorderCode).then(response => {
|
|
|
|
this.batchList = response;
|
|
|
|
this.batchList = response;
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -691,6 +716,16 @@ export default {
|
|
|
|
this.form.materialName = obj.name;
|
|
|
|
this.form.materialName = obj.name;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**工作中心选择弹出框**/
|
|
|
|
|
|
|
|
handleSelectWorkCenter() {
|
|
|
|
|
|
|
|
this.$refs.itemSelectWorkCenter.showFlag = true;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
//工作中心选择确认
|
|
|
|
|
|
|
|
onSelectWorkCenter(obj) {
|
|
|
|
|
|
|
|
this.form.supplierCode = obj.code;
|
|
|
|
|
|
|
|
this.form.supplierName = obj.name;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
/**仓库选择弹出框**/
|
|
|
|
/**仓库选择弹出框**/
|
|
|
|
handleSelectLoc() {
|
|
|
|
handleSelectLoc() {
|
|
|
|
this.$refs.itemSelectLoc.showFlag = true;
|
|
|
|
this.$refs.itemSelectLoc.showFlag = true;
|
|
|
|