| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form-item label="工厂" prop="werks"> |
| | | <el-input |
| | | v-model.trim="queryParams.werks" |
| | | placeholder="请输入工厂" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="名称" prop="warehouseName"> |
| | | <el-input |
| | | v-model="queryParams.warehouseName" |
| | | v-model.trim="queryParams.warehouseName" |
| | | placeholder="请输入名称" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="工厂" prop="werks"> |
| | | |
| | | <el-form-item label="编号" prop="lgort"> |
| | | <el-input |
| | | v-model="queryParams.werks" |
| | | placeholder="请输入工厂" |
| | | v-model.trim="queryParams.lgort" |
| | | placeholder="请输入编号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="状态" prop="state"> |
| | | <el-input |
| | | v-model="queryParams.state" |
| | | v-model.trim="queryParams.state" |
| | | placeholder="请输入状态" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | |
| | | <el-table v-loading="loading" :data="warehouseList" @selection-change="handleSelectionChange"> |
| | | <el-table v-loading="loading" border :data="warehouseList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="仓库ID" align="center" prop="warehouseId" v-if="true"/> |
| | | <el-table-column |
| | | label="序号" |
| | | type="index" |
| | | fixed |
| | | width="50" /> |
| | | <!-- <el-table-column label="仓库ID" align="center" prop="warehouseId" v-if="true"/> --> |
| | | <el-table-column label="仓库编号" align="center" prop="lgort" /> |
| | | <el-table-column label="名称" align="center" prop="warehouseName" /> |
| | | <el-table-column label="工厂" align="center" prop="werks" /> |
| | | <el-table-column label="类别" align="center" prop="type" /> |
| | | <el-table-column label="0,不启用 |
| | | 1,启用" align="center" prop="isUseLocation" /> |
| | | <el-table-column label="管理员ID" align="center" prop="userId" /> |
| | | <el-table-column label="是否启用" align="center" prop="isUseLocation" > |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.isenable" :value="scope.row.isUseLocation"/> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column label="管理员ID" align="center" prop="userId" /> --> |
| | | <el-table-column label="管理员名称" align="center" prop="userName" /> |
| | | <el-table-column label="管理员电话" align="center" prop="userPhone" /> |
| | | <el-table-column label="坐标X" align="center" prop="coordinateX" /> |
| | | <el-table-column label="坐标Y" align="center" prop="coordinateY" /> |
| | | <el-table-column label="描述" align="center" prop="description" /> |
| | | <el-table-column label="状态" align="center" prop="state" /> |
| | | <!-- <el-table-column label="状态" align="center" prop="state" /> --> |
| | | <el-table-column label="最后更新人id" align="center" prop="lastUpdatedUserId" /> |
| | | <el-table-column label="最后更新人姓名" align="center" prop="lastUpdatedUserName" /> |
| | | <el-table-column label="最后更新时间" align="center" prop="lastUpdatedDateTime" width="180"> |
| | |
| | | /> |
| | | |
| | | <!-- 添加或修改仓库对话框 --> |
| | | <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> |
| | | <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="仓库编号" prop="lgort"> |
| | | <el-input v-model="form.lgort" placeholder="请输入仓库编号" /> |
| | | <el-input v-model.trim="form.lgort" placeholder="请输入仓库编号" /> |
| | | </el-form-item> |
| | | <el-form-item label="名称" prop="warehouseName"> |
| | | <el-input v-model="form.warehouseName" placeholder="请输入名称" /> |
| | | <el-input v-model.trim="form.warehouseName" placeholder="请输入名称" /> |
| | | </el-form-item> |
| | | <el-form-item label="工厂" prop="werks"> |
| | | <el-input v-model="form.werks" placeholder="请输入工厂" /> |
| | | <el-input v-model.trim="form.werks" placeholder="请输入工厂" /> |
| | | </el-form-item> |
| | | <el-form-item label="0,不启用 |
| | | 1,启用" prop="isUseLocation"> |
| | | <el-input v-model="form.isUseLocation" placeholder="请输入0,不启用 |
| | | 1,启用" /> |
| | | <el-form-item label="类别" prop="type"> |
| | | <el-input v-model.trim="form.type" placeholder="请输入类别" /> |
| | | </el-form-item> |
| | | <el-form-item label="管理员ID" prop="userId"> |
| | | <el-input v-model="form.userId" placeholder="请输入管理员ID" /> |
| | | <el-form-item label="是否启用" prop="isUseLocation"> |
| | | <!-- <el-input v-model.trim="form.isUseLocation" placeholder="请输入0,不启用 |
| | | 1,启用" /> --> |
| | | <el-select v-model="form.isUseLocation" placeholder="是否启用" clearable> |
| | | <el-option |
| | | v-for="dict in dict.type.isenable" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="管理员名称" prop="userId"> |
| | | <el-input v-model.trim="form.userName" placeholder="请输入管理员名称" /> |
| | | </el-form-item> |
| | | <el-form-item label="管理员电话" prop="userPhone"> |
| | | <el-input v-model="form.userPhone" placeholder="请输入管理员电话" /> |
| | | <el-input v-model.trim="form.userPhone" placeholder="请输入管理员电话" /> |
| | | </el-form-item> |
| | | <el-form-item label="坐标X" prop="coordinateX"> |
| | | <el-input v-model="form.coordinateX" placeholder="请输入坐标X" /> |
| | | <el-input v-model.trim="form.coordinateX" placeholder="请输入坐标X" /> |
| | | </el-form-item> |
| | | <el-form-item label="坐标Y" prop="coordinateY"> |
| | | <el-input v-model="form.coordinateY" placeholder="请输入坐标Y" /> |
| | | <el-input v-model.trim="form.coordinateY" placeholder="请输入坐标Y" /> |
| | | </el-form-item> |
| | | <el-form-item label="描述" prop="description"> |
| | | <el-input v-model="form.description" placeholder="请输入描述" /> |
| | | <el-input v-model.trim="form.description" placeholder="请输入描述" /> |
| | | </el-form-item> |
| | | <el-form-item label="状态" prop="state"> |
| | | <el-input v-model="form.state" placeholder="请输入状态" /> |
| | | </el-form-item> |
| | | <el-form-item label="最后更新人id" prop="lastUpdatedUserId"> |
| | | <el-input v-model="form.lastUpdatedUserId" placeholder="请输入最后更新人id" /> |
| | | <!-- <el-form-item label="状态" prop="state"> |
| | | <el-input v-model.trim="form.state" placeholder="请输入状态" /> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="最后更新人id" prop="lastUpdatedUserId"> |
| | | <el-input v-model.trim="form.lastUpdatedUserId" placeholder="请输入最后更新人id" /> |
| | | </el-form-item> |
| | | <el-form-item label="最后更新人姓名" prop="lastUpdatedUserName"> |
| | | <el-input v-model="form.lastUpdatedUserName" placeholder="请输入最后更新人姓名" /> |
| | | <el-input v-model.trim="form.lastUpdatedUserName" placeholder="请输入最后更新人姓名" /> |
| | | </el-form-item> |
| | | <el-form-item label="最后更新时间" prop="lastUpdatedDateTime"> |
| | | <el-date-picker clearable |
| | |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="请选择最后更新时间"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button> |
| | |
| | | |
| | | export default { |
| | | name: "Warehouse", |
| | | dicts: ['isenable'], |
| | | data() { |
| | | return { |
| | | // 按钮loading |
| | |
| | | state: [ |
| | | { required: true, message: "状态不能为空", trigger: "blur" } |
| | | ], |
| | | displayOrder: [ |
| | | { required: true, message: "排序不能为空", trigger: "blur" } |
| | | ], |
| | | createdUserId: [ |
| | | { required: true, message: "创建人id不能为空", trigger: "blur" } |
| | | ], |
| | | createdUserName: [ |
| | | { required: true, message: "创建人姓名不能为空", trigger: "blur" } |
| | | ], |
| | | createdDateTime: [ |
| | | { required: true, message: "创建日期时间不能为空", trigger: "blur" } |
| | | ], |
| | | lastUpdatedUserId: [ |
| | | { required: true, message: "最后更新人id不能为空", trigger: "blur" } |
| | | ], |
| | | lastUpdatedUserName: [ |
| | | { required: true, message: "最后更新人姓名不能为空", trigger: "blur" } |
| | | ], |
| | | lastUpdatedDateTime: [ |
| | | { required: true, message: "最后更新时间不能为空", trigger: "blur" } |
| | | ], |
| | | isDeleted: [ |
| | | { required: true, message: "是否删除不能为空", trigger: "blur" } |
| | | ] |
| | | |
| | | } |
| | | }; |
| | | }, |