|
|
@ -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,7 +57,6 @@
|
|
|
|
: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" />
|
|
|
@ -91,26 +96,26 @@
|
|
|
|
<!-- 添加或修改工厂模型对话框 -->
|
|
|
|
<!-- 添加或修改工厂模型对话框 -->
|
|
|
|
<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>
|
|
|
|