|
|
@ -1,18 +1,19 @@
|
|
|
|
<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="68px">
|
|
|
|
<el-form-item label="工厂名称" prop="factoryName">
|
|
|
|
<el-form-item label="组织名称" prop="factoryName">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.factoryName"
|
|
|
|
v-model="queryParams.factoryName"
|
|
|
|
placeholder="请输入工厂名称"
|
|
|
|
placeholder="请输入组织名称"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="工厂状态" prop="status">
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="启用状态" prop="status">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.status"
|
|
|
|
v-model="queryParams.status"
|
|
|
|
placeholder="请输入工厂状态(1/0)"
|
|
|
|
placeholder="请输入启用状态(1/0)"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
@ -57,8 +58,8 @@
|
|
|
|
:default-expand-all="isExpandAll"
|
|
|
|
:default-expand-all="isExpandAll"
|
|
|
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
|
|
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-table-column label="工厂名称" align="center" prop="factoryName" />
|
|
|
|
<el-table-column label="组织名称" align="center" prop="factoryName" />
|
|
|
|
<el-table-column label="工厂编码" align="center" prop="factoryCode" />
|
|
|
|
<el-table-column label="组织编码" align="center" prop="factoryCode" />
|
|
|
|
<el-table-column label="创建人" align="center" prop="createBy" />
|
|
|
|
<el-table-column label="创建人" align="center" prop="createBy" />
|
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" />
|
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" />
|
|
|
|
<el-table-column prop="status" label="是否启用" align="center" >
|
|
|
|
<el-table-column prop="status" label="是否启用" align="center" >
|
|
|
@ -96,14 +97,14 @@
|
|
|
|
<!-- 添加或修改工厂模型对话框 -->
|
|
|
|
<!-- 添加或修改工厂模型对话框 -->
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
<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 ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
|
<el-form-item label="父工厂名" prop="parentId" style="width:430px">
|
|
|
|
<el-form-item label="父组织名" prop="parentId" style="width:430px">
|
|
|
|
<treeselect v-model="form.parentId" :options="factoryOptions" :normalizer="normalizer" placeholder="请选择父工厂id" />
|
|
|
|
<treeselect v-model="form.parentId" :options="factoryOptions" :normalizer="normalizer" placeholder="请选择父组织id" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="工厂名称" prop="factoryName" style="width:430px">
|
|
|
|
<el-form-item label="组织名称" prop="factoryName" style="width:430px">
|
|
|
|
<el-input v-model="form.factoryName" placeholder="请输入工厂名称" />
|
|
|
|
<el-input v-model="form.factoryName" placeholder="请输入组织名称" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="工厂编码" prop="factoryCode" style="width:430px">
|
|
|
|
<el-form-item label="组织编码" prop="factoryCode" style="width:430px">
|
|
|
|
<el-input v-model="form.factoryCode" placeholder="请输入工厂编码" />
|
|
|
|
<el-input v-model="form.factoryCode" placeholder="请输入组织编码" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="负责人" prop="leader" style="width:430px">
|
|
|
|
<el-form-item label="负责人" prop="leader" style="width:430px">
|
|
|
|
<el-input v-model="form.leader" placeholder="请输入负责人" />
|
|
|
|
<el-input v-model="form.leader" placeholder="请输入负责人" />
|
|
|
|