|
|
@ -10,9 +10,15 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="工厂状态" prop="status">
|
|
|
|
<el-form-item label="工厂状态" prop="status">
|
|
|
|
<el-select v-model="form.status" placeholder="请选择是否启用" @change="$forceUpdate()" clearable>
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.status"
|
|
|
|
|
|
|
|
placeholder="请输入工厂状态(1/0)"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<!-- <el-select v-model="form.status" placeholder="请选择是否启用" @change="$forceUpdate()" clearable>
|
|
|
|
<el-option v-for="item in options" :key="item.status" :label="item.label" :value="item.status"></el-option>
|
|
|
|
<el-option v-for="item in options" :key="item.status" :label="item.label" :value="item.status"></el-option>
|
|
|
|
</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>
|
|
|
@ -51,16 +57,15 @@
|
|
|
|
: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" >
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
{{ scope.row.status == 1 ? "是" : "否" }}
|
|
|
|
{{ scope.row.status == 1 ? "是" : "否" }}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
@ -91,29 +96,29 @@
|
|
|
|
<!-- 添加或修改工厂模型对话框 -->
|
|
|
|
<!-- 添加或修改工厂模型对话框 -->
|
|
|
|
<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">
|
|
|
|
<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">
|
|
|
|
<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">
|
|
|
|
<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">
|
|
|
|
<el-form-item label="负责人" prop="leader" style="width:430px">
|
|
|
|
<el-input v-model="form.leader" placeholder="请输入负责人" />
|
|
|
|
<el-input v-model="form.leader" placeholder="请输入负责人" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="联系电话" prop="phone">
|
|
|
|
<el-form-item label="联系电话" prop="phone" style="width:430px">
|
|
|
|
<el-input v-model="form.phone" placeholder="请输入联系电话" />
|
|
|
|
<el-input v-model="form.phone" placeholder="请输入联系电话" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="邮箱" prop="email">
|
|
|
|
<el-form-item label="邮箱" prop="email" style="width:430px">
|
|
|
|
<el-input v-model="form.email" placeholder="请输入邮箱" />
|
|
|
|
<el-input v-model="form.email" placeholder="请输入邮箱" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="是否启用" prop="status">
|
|
|
|
<el-form-item label="是否启用" prop="status" >
|
|
|
|
<el-select v-model="form.status" placeholder="请选择是否启用" @change="$forceUpdate()" clearable>
|
|
|
|
<el-select v-model="form.status" placeholder="请选择是否启用" @change="$forceUpdate()" clearable style="width:350px">
|
|
|
|
<el-option v-for="item in options" :key="item.status" :label="item.label" :value="item.status"></el-option>
|
|
|
|
<el-option v-for="item in options" :key="item.status" :label="item.label" :value="item.status"></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
|