|
|
@ -1,6 +1,6 @@
|
|
|
|
<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="68px">
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="90px">
|
|
|
|
<el-form-item label="质检项编码" prop="qualityDefectCode">
|
|
|
|
<el-form-item label="质检项编码" prop="qualityDefectCode">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.qualityDefectCode"
|
|
|
|
v-model="queryParams.qualityDefectCode"
|
|
|
@ -9,16 +9,16 @@
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="物料大类" prop="materialCategories">
|
|
|
|
<!-- <el-form-item label="物料大类" prop="materialCategories">-->
|
|
|
|
<el-select v-model="queryParams.materialCategories" placeholder="请选择物料大类" clearable>
|
|
|
|
<!-- <el-select v-model="queryParams.materialCategories" placeholder="请选择物料大类" clearable>-->
|
|
|
|
<el-option
|
|
|
|
<!-- <el-option-->
|
|
|
|
v-for="dict in dict.type.material_categories"
|
|
|
|
<!-- v-for="dict in dict.type.material_categories"-->
|
|
|
|
:key="dict.value"
|
|
|
|
<!-- :key="dict.value"-->
|
|
|
|
:label="dict.label"
|
|
|
|
<!-- :label="dict.label"-->
|
|
|
|
:value="dict.value"
|
|
|
|
<!-- :value="dict.value"-->
|
|
|
|
/>
|
|
|
|
<!-- />-->
|
|
|
|
</el-select>
|
|
|
|
<!-- </el-select>-->
|
|
|
|
</el-form-item>
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<el-form-item label="物料小类" prop="materialSubclass">
|
|
|
|
<el-form-item label="物料小类" prop="materialSubclass">
|
|
|
|
<el-select v-model="queryParams.materialSubclass" placeholder="请选择物料大类" clearable>
|
|
|
|
<el-select v-model="queryParams.materialSubclass" placeholder="请选择物料大类" clearable>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
@ -29,24 +29,24 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="工厂编号" prop="plantCode">
|
|
|
|
<!-- <el-form-item label="工厂编号" prop="plantCode">-->
|
|
|
|
<el-input
|
|
|
|
<!-- <el-input-->
|
|
|
|
v-model="queryParams.plantCode"
|
|
|
|
<!-- v-model="queryParams.plantCode"-->
|
|
|
|
placeholder="请输入工厂编号"
|
|
|
|
<!-- placeholder="请输入工厂编号"-->
|
|
|
|
clearable
|
|
|
|
<!-- clearable-->
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
/>
|
|
|
|
<!-- />-->
|
|
|
|
</el-form-item>
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<el-form-item label="启用标识" prop="isFlag">
|
|
|
|
<!-- <el-form-item label="启用标识" prop="isFlag">-->
|
|
|
|
<el-select v-model="queryParams.isFlag" placeholder="请选择启用标识" clearable>
|
|
|
|
<!-- <el-select v-model="queryParams.isFlag" placeholder="请选择启用标识" clearable>-->
|
|
|
|
<el-option
|
|
|
|
<!-- <el-option-->
|
|
|
|
v-for="dict in dict.type.is_flag"
|
|
|
|
<!-- v-for="dict in dict.type.is_flag"-->
|
|
|
|
:key="dict.value"
|
|
|
|
<!-- :key="dict.value"-->
|
|
|
|
:label="dict.label"
|
|
|
|
<!-- :label="dict.label"-->
|
|
|
|
:value="dict.value"
|
|
|
|
<!-- :value="dict.value"-->
|
|
|
|
/>
|
|
|
|
<!-- />-->
|
|
|
|
</el-select>
|
|
|
|
<!-- </el-select>-->
|
|
|
|
</el-form-item>
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
@ -121,7 +121,7 @@
|
|
|
|
<dict-tag :options="dict.type.material_subclass" :value="scope.row.materialSubclass"/>
|
|
|
|
<dict-tag :options="dict.type.material_subclass" :value="scope.row.materialSubclass"/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="工厂编号" align="center" prop="plantCode" v-if="columns[6].visible"/>
|
|
|
|
<!-- <el-table-column label="工厂编号" align="center" prop="plantCode" v-if="columns[6].visible"/>-->
|
|
|
|
<el-table-column label="启用标识" align="center" prop="isFlag" v-if="columns[8].visible">
|
|
|
|
<el-table-column label="启用标识" align="center" prop="isFlag" v-if="columns[8].visible">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<dict-tag :options="dict.type.is_flag" :value="scope.row.isFlag"/>
|
|
|
|
<dict-tag :options="dict.type.is_flag" :value="scope.row.isFlag"/>
|
|
|
@ -181,7 +181,7 @@
|
|
|
|
<el-radio
|
|
|
|
<el-radio
|
|
|
|
v-for="dict in dict.type.material_categories"
|
|
|
|
v-for="dict in dict.type.material_categories"
|
|
|
|
:key="dict.value"
|
|
|
|
:key="dict.value"
|
|
|
|
:label="parseInt(dict.value)"
|
|
|
|
:label="dict.value"
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
</el-radio-group>
|
|
|
|
</el-radio-group>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
@ -190,13 +190,13 @@
|
|
|
|
<el-radio
|
|
|
|
<el-radio
|
|
|
|
v-for="dict in dict.type.material_subclass"
|
|
|
|
v-for="dict in dict.type.material_subclass"
|
|
|
|
:key="dict.value"
|
|
|
|
:key="dict.value"
|
|
|
|
:label="parseInt(dict.value)"
|
|
|
|
:label="dict.value"
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
</el-radio-group>
|
|
|
|
</el-radio-group>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="工厂编号" prop="plantCode">
|
|
|
|
<!-- <el-form-item label="工厂编号" prop="plantCode">-->
|
|
|
|
<el-input v-model="form.plantCode" placeholder="请输入工厂编号" />
|
|
|
|
<!-- <el-input v-model="form.plantCode" placeholder="请输入工厂编号" />-->
|
|
|
|
</el-form-item>
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="启用标识" prop="isFlag">
|
|
|
|
<el-form-item label="启用标识" prop="isFlag">
|
|
|
|
<el-radio-group v-model="form.isFlag">
|
|
|
|
<el-radio-group v-model="form.isFlag">
|
|
|
@ -271,7 +271,7 @@ export default {
|
|
|
|
{ key: 3, label: `父级编号`, visible: true },
|
|
|
|
{ key: 3, label: `父级编号`, visible: true },
|
|
|
|
{ key: 4, label: `物料大类`, visible: true },
|
|
|
|
{ key: 4, label: `物料大类`, visible: true },
|
|
|
|
{ key: 5, label: `物料小类`, visible: true },
|
|
|
|
{ key: 5, label: `物料小类`, visible: true },
|
|
|
|
{ key: 6, label: `工厂编号`, visible: true },
|
|
|
|
// { key: 6, label: `工厂编号`, visible: true },
|
|
|
|
{ key: 7, label: `备注`, visible: true },
|
|
|
|
{ key: 7, label: `备注`, visible: true },
|
|
|
|
{ key: 8, label: `启用标识`, visible: true },
|
|
|
|
{ key: 8, label: `启用标识`, visible: true },
|
|
|
|
{ key: 9, label: `创建人`, visible: true },
|
|
|
|
{ key: 9, label: `创建人`, visible: true },
|
|
|
|