|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
<template>
|
|
|
|
|
<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-input
|
|
|
|
|
v-model="queryParams.qualityDefectCode"
|
|
|
|
@ -9,16 +9,16 @@
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="物料大类" prop="materialCategories">
|
|
|
|
|
<el-select v-model="queryParams.materialCategories" placeholder="请选择物料大类" clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.material_categories"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="物料大类" prop="materialCategories">-->
|
|
|
|
|
<!-- <el-select v-model="queryParams.materialCategories" placeholder="请选择物料大类" clearable>-->
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
<!-- v-for="dict in dict.type.material_categories"-->
|
|
|
|
|
<!-- :key="dict.value"-->
|
|
|
|
|
<!-- :label="dict.label"-->
|
|
|
|
|
<!-- :value="dict.value"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<el-form-item label="物料小类" prop="materialSubclass">
|
|
|
|
|
<el-select v-model="queryParams.materialSubclass" placeholder="请选择物料大类" clearable>
|
|
|
|
|
<el-option
|
|
|
|
@ -29,24 +29,24 @@
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="工厂编号" prop="plantCode">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.plantCode"
|
|
|
|
|
placeholder="请输入工厂编号"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="启用标识" prop="isFlag">
|
|
|
|
|
<el-select v-model="queryParams.isFlag" placeholder="请选择启用标识" clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.is_flag"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="工厂编号" prop="plantCode">-->
|
|
|
|
|
<!-- <el-input-->
|
|
|
|
|
<!-- v-model="queryParams.plantCode"-->
|
|
|
|
|
<!-- placeholder="请输入工厂编号"-->
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- <el-form-item label="启用标识" prop="isFlag">-->
|
|
|
|
|
<!-- <el-select v-model="queryParams.isFlag" placeholder="请选择启用标识" clearable>-->
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
<!-- v-for="dict in dict.type.is_flag"-->
|
|
|
|
|
<!-- :key="dict.value"-->
|
|
|
|
|
<!-- :label="dict.label"-->
|
|
|
|
|
<!-- :value="dict.value"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<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"/>
|
|
|
|
|
</template>
|
|
|
|
|
</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">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.is_flag" :value="scope.row.isFlag"/>
|
|
|
|
@ -181,7 +181,7 @@
|
|
|
|
|
<el-radio
|
|
|
|
|
v-for="dict in dict.type.material_categories"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="parseInt(dict.value)"
|
|
|
|
|
:label="dict.value"
|
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -190,13 +190,13 @@
|
|
|
|
|
<el-radio
|
|
|
|
|
v-for="dict in dict.type.material_subclass"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="parseInt(dict.value)"
|
|
|
|
|
:label="dict.value"
|
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="工厂编号" prop="plantCode">
|
|
|
|
|
<el-input v-model="form.plantCode" placeholder="请输入工厂编号" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="工厂编号" prop="plantCode">-->
|
|
|
|
|
<!-- <el-input v-model="form.plantCode" placeholder="请输入工厂编号" />-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
|
|
<el-form-item label="启用标识" prop="isFlag">
|
|
|
|
|
<el-radio-group v-model="form.isFlag">
|
|
|
|
@ -271,7 +271,7 @@ export default {
|
|
|
|
|
{ key: 3, label: `父级编号`, visible: true },
|
|
|
|
|
{ key: 4, label: `物料大类`, visible: true },
|
|
|
|
|
{ key: 5, label: `物料小类`, visible: true },
|
|
|
|
|
{ key: 6, label: `工厂编号`, visible: true },
|
|
|
|
|
// { key: 6, label: `工厂编号`, visible: true },
|
|
|
|
|
{ key: 7, label: `备注`, visible: true },
|
|
|
|
|
{ key: 8, label: `启用标识`, visible: true },
|
|
|
|
|
{ key: 9, label: `创建人`, visible: true },
|
|
|
|
|