|
|
|
@ -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="100px">
|
|
|
|
|
<el-form-item label="统计单元名称" prop="workUnitName">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.workUnitName"
|
|
|
|
@ -9,32 +9,32 @@
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="统计区域" prop="workUnitAddress">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.workUnitAddress"
|
|
|
|
|
placeholder="请输入统计区域"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="产线/工位" prop="productLineCode">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.productLineCode"
|
|
|
|
|
placeholder="请输入产线/工位"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="统计单元类型" prop="workUnitType">
|
|
|
|
|
<el-select v-model="queryParams.workUnitType" placeholder="请选择统计单元类型" clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.work_unit_type"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="统计区域" prop="workUnitAddress">-->
|
|
|
|
|
<!-- <el-input-->
|
|
|
|
|
<!-- v-model="queryParams.workUnitAddress"-->
|
|
|
|
|
<!-- placeholder="请输入统计区域"-->
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- <el-form-item label="产线/工位" prop="productLineCode">-->
|
|
|
|
|
<!-- <el-input-->
|
|
|
|
|
<!-- v-model="queryParams.productLineCode"-->
|
|
|
|
|
<!-- placeholder="请输入产线/工位"-->
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- <el-form-item label="统计单元类型" prop="workUnitType">-->
|
|
|
|
|
<!-- <el-select v-model="queryParams.workUnitType" placeholder="请选择统计单元类型" clearable>-->
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
<!-- v-for="dict in dict.type.work_unit_type"-->
|
|
|
|
|
<!-- :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>
|
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
@ -77,11 +77,11 @@
|
|
|
|
|
<el-table-column label="统计单元名称" align="center" prop="workUnitName" />
|
|
|
|
|
<el-table-column label="统计区域" align="center" prop="workUnitAddress" />
|
|
|
|
|
<el-table-column label="产线/工位" align="center" prop="productLineName"/>
|
|
|
|
|
<el-table-column label="统计单元类型" align="center" prop="workUnitType">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.work_unit_type" :value="scope.row.workUnitType"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column label="统计单元类型" align="center" prop="workUnitType">-->
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
<!-- <dict-tag :options="dict.type.work_unit_type" :value="scope.row.workUnitType"/>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="启用标识" align="center" prop="isFlag">-->
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
<!-- <dict-tag :options="dict.type.is_flag" :value="scope.row.isFlag"/>-->
|
|
|
|
@ -128,13 +128,13 @@
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改统计单元信息对话框 -->
|
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
|
|
<el-form-item label="统计单元编号" prop="workUnitCode">
|
|
|
|
|
<el-input v-model="form.workUnitCode" placeholder="请输入统计单元编号" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="110px">
|
|
|
|
|
<el-form-item label="父级编号" prop="parentId">
|
|
|
|
|
<treeselect v-model="form.parentId" :options="workUnitOptions" :normalizer="normalizer" placeholder="请选择父级编号" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="统计单元编号" prop="workUnitCode">
|
|
|
|
|
<el-input v-model="form.workUnitCode" placeholder="请输入统计单元编号" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="统计单元名称" prop="workUnitName">
|
|
|
|
|
<el-input v-model="form.workUnitName" placeholder="请输入统计单元名称" />
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -151,16 +151,16 @@
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="统计单元类型" prop="workUnitType">
|
|
|
|
|
<el-select v-model="form.workUnitType" placeholder="请选择统计单元类型">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.work_unit_type"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="parseInt(dict.value)"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="统计单元类型" prop="workUnitType">-->
|
|
|
|
|
<!-- <el-select v-model="form.workUnitType" placeholder="请选择统计单元类型">-->
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
<!-- v-for="dict in dict.type.work_unit_type"-->
|
|
|
|
|
<!-- :key="dict.value"-->
|
|
|
|
|
<!-- :label="dict.label"-->
|
|
|
|
|
<!-- :value="parseInt(dict.value)"-->
|
|
|
|
|
<!-- ></el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<el-form-item label="启用标识" prop="isFlag">
|
|
|
|
|
<el-radio-group v-model="form.isFlag">
|
|
|
|
|
<el-radio
|
|
|
|
|