|  | @@ -1,17 +1,17 @@
 | 
											
												
													
														|  |  <template>
 |  |  <template>
 | 
											
												
													
														|  |    <div class="app-container">
 |  |    <div class="app-container">
 | 
											
												
													
														|  |      <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch">
 |  |      <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch">
 | 
											
												
													
														|  | -      <el-form-item label="部门名称" prop="fName">
 |  | 
 | 
											
												
													
														|  | 
 |  | +      <el-form-item label="仓库名称" prop="fName">
 | 
											
												
													
														|  |          <el-input
 |  |          <el-input
 | 
											
												
													
														|  |            v-model="queryParams.fName"
 |  |            v-model="queryParams.fName"
 | 
											
												
													
														|  | -          placeholder="请输入部门名称"
 |  | 
 | 
											
												
													
														|  | 
 |  | +          placeholder="请输入仓库名称"
 | 
											
												
													
														|  |            clearable
 |  |            clearable
 | 
											
												
													
														|  |            size="small"
 |  |            size="small"
 | 
											
												
													
														|  |            @keyup.enter.native="handleQuery"
 |  |            @keyup.enter.native="handleQuery"
 | 
											
												
													
														|  |          />
 |  |          />
 | 
											
												
													
														|  |        </el-form-item>
 |  |        </el-form-item>
 | 
											
												
													
														|  |        <el-form-item label="状态" prop="status">
 |  |        <el-form-item label="状态" prop="status">
 | 
											
												
													
														|  | -        <el-select v-model="queryParams.status" placeholder="部门状态" clearable size="small">
 |  | 
 | 
											
												
													
														|  | 
 |  | +        <el-select v-model="queryParams.status" placeholder="仓库状态" clearable size="small">
 | 
											
												
													
														|  |            <el-option
 |  |            <el-option
 | 
											
												
													
														|  |              v-for="dict in statusOptions"
 |  |              v-for="dict in statusOptions"
 | 
											
												
													
														|  |              :key="dict.dictValue"
 |  |              :key="dict.dictValue"
 | 
											
										
											
												
													
														|  | @@ -46,7 +46,7 @@
 | 
											
												
													
														|  |        default-expand-all
 |  |        default-expand-all
 | 
											
												
													
														|  |        :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
 |  |        :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
 | 
											
												
													
														|  |      >
 |  |      >
 | 
											
												
													
														|  | -      <el-table-column prop="fName" label="部门名称" width="260"></el-table-column>
 |  | 
 | 
											
												
													
														|  | 
 |  | +      <el-table-column prop="fName" label="仓库名称" width="260"></el-table-column>
 | 
											
												
													
														|  |        <el-table-column prop="orderNum" label="排序" width="200"></el-table-column>
 |  |        <el-table-column prop="orderNum" label="排序" width="200"></el-table-column>
 | 
											
												
													
														|  |        <el-table-column prop="fStatus" label="状态" :formatter="statusFormat" width="100"></el-table-column>
 |  |        <el-table-column prop="fStatus" label="状态" :formatter="statusFormat" width="100"></el-table-column>
 | 
											
												
													
														|  |        <el-table-column label="创建时间" align="center" prop="createTime" width="200">
 |  |        <el-table-column label="创建时间" align="center" prop="createTime" width="200">
 | 
											
										
											
												
													
														|  | @@ -82,18 +82,18 @@
 | 
											
												
													
														|  |        </el-table-column>
 |  |        </el-table-column>
 | 
											
												
													
														|  |      </el-table>
 |  |      </el-table>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -    <!-- 添加或修改部门对话框 -->
 |  | 
 | 
											
												
													
														|  | 
 |  | +    <!-- 添加或修改仓库对话框 -->
 | 
											
												
													
														|  |      <el-dialog :title="title" :visible.sync="open" :close-on-click-modal="false" width="70%" append-to-body>
 |  |      <el-dialog :title="title" :visible.sync="open" :close-on-click-modal="false" width="70%" 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-row>
 |  |          <el-row>
 | 
											
												
													
														|  |            <el-col :span="8" v-if="form.parentId !== 0">
 |  |            <el-col :span="8" v-if="form.parentId !== 0">
 | 
											
												
													
														|  | -            <el-form-item label="上级部门" prop="parentId">
 |  | 
 | 
											
												
													
														|  | -              <treeselect v-model="form.parentId" :options="deptOptions" :normalizer="normalizer" placeholder="选择上级部门" />
 |  | 
 | 
											
												
													
														|  | 
 |  | +            <el-form-item label="上级仓库" prop="parentId">
 | 
											
												
													
														|  | 
 |  | +              <treeselect v-model="form.parentId" :options="deptOptions" :normalizer="normalizer" placeholder="选择上级仓库" />
 | 
											
												
													
														|  |              </el-form-item>
 |  |              </el-form-item>
 | 
											
												
													
														|  |            </el-col>
 |  |            </el-col>
 | 
											
												
													
														|  |            <el-col :span="8">
 |  |            <el-col :span="8">
 | 
											
												
													
														|  | -            <el-form-item label="部门名称" prop="fName">
 |  | 
 | 
											
												
													
														|  | -              <el-input v-model="form.fName" placeholder="请输入部门名称" />
 |  | 
 | 
											
												
													
														|  | 
 |  | +            <el-form-item label="仓库名称" prop="fName">
 | 
											
												
													
														|  | 
 |  | +              <el-input v-model="form.fName" placeholder="请输入仓库名称" />
 | 
											
												
													
														|  |              </el-form-item>
 |  |              </el-form-item>
 | 
											
												
													
														|  |            </el-col>
 |  |            </el-col>
 | 
											
												
													
														|  |            <el-col :span="8">
 |  |            <el-col :span="8">
 | 
											
										
											
												
													
														|  | @@ -108,11 +108,11 @@
 | 
											
												
													
														|  |                <el-input v-model="form.fNo"  placeholder="请输入编号" />
 |  |                <el-input v-model="form.fNo"  placeholder="请输入编号" />
 | 
											
												
													
														|  |              </el-form-item>
 |  |              </el-form-item>
 | 
											
												
													
														|  |            </el-col>
 |  |            </el-col>
 | 
											
												
													
														|  | -          <el-col :span="8">
 |  | 
 | 
											
												
													
														|  | -            <el-form-item label="名称" prop="fName">
 |  | 
 | 
											
												
													
														|  | -              <el-input v-model="form.fName" placeholder="请输入名称" />
 |  | 
 | 
											
												
													
														|  | -            </el-form-item>
 |  | 
 | 
											
												
													
														|  | -          </el-col>
 |  | 
 | 
											
												
													
														|  | 
 |  | +<!--          <el-col :span="8">-->
 | 
											
												
													
														|  | 
 |  | +<!--            <el-form-item label="名称" prop="fName">-->
 | 
											
												
													
														|  | 
 |  | +<!--              <el-input v-model="form.fName" placeholder="请输入名称" />-->
 | 
											
												
													
														|  | 
 |  | +<!--            </el-form-item>-->
 | 
											
												
													
														|  | 
 |  | +<!--          </el-col>-->
 | 
											
												
													
														|  |            <el-col :span="8">
 |  |            <el-col :span="8">
 | 
											
												
													
														|  |              <el-form-item label="地址" prop="fAddr">
 |  |              <el-form-item label="地址" prop="fAddr">
 | 
											
												
													
														|  |                <el-input v-model="form.fAddr" placeholder="请输入地址" />
 |  |                <el-input v-model="form.fAddr" placeholder="请输入地址" />
 | 
											
										
											
												
													
														|  | @@ -200,7 +200,7 @@ export default {
 | 
											
												
													
														|  |        showSearch: true,
 |  |        showSearch: true,
 | 
											
												
													
														|  |        // 表格树数据
 |  |        // 表格树数据
 | 
											
												
													
														|  |        deptList: [],
 |  |        deptList: [],
 | 
											
												
													
														|  | -      // 部门树选项
 |  | 
 | 
											
												
													
														|  | 
 |  | +      // 仓库树选项
 | 
											
												
													
														|  |        deptOptions: [],
 |  |        deptOptions: [],
 | 
											
												
													
														|  |        // 弹出层标题
 |  |        // 弹出层标题
 | 
											
												
													
														|  |        title: "",
 |  |        title: "",
 | 
											
										
											
												
													
														|  | @@ -217,22 +217,24 @@ export default {
 | 
											
												
													
														|  |        form: {},
 |  |        form: {},
 | 
											
												
													
														|  |        // 表单校验
 |  |        // 表单校验
 | 
											
												
													
														|  |        rules: {
 |  |        rules: {
 | 
											
												
													
														|  | 
 |  | +        fNo: [
 | 
											
												
													
														|  | 
 |  | +          { required: true, message: "编号不能为空", trigger: "blur" }
 | 
											
												
													
														|  | 
 |  | +        ],
 | 
											
												
													
														|  | 
 |  | +        fAddr: [
 | 
											
												
													
														|  | 
 |  | +          { required: true, message: "地址不能为空", trigger: "blur" }
 | 
											
												
													
														|  | 
 |  | +        ],
 | 
											
												
													
														|  | 
 |  | +        fTotalgross: [
 | 
											
												
													
														|  | 
 |  | +          { required: true, message: "库容不能为空", trigger: "blur" }
 | 
											
												
													
														|  | 
 |  | +        ],
 | 
											
												
													
														|  |          parentId: [
 |  |          parentId: [
 | 
											
												
													
														|  | -          { required: true, message: "上级部门不能为空", trigger: "blur" }
 |  | 
 | 
											
												
													
														|  | 
 |  | +          { required: true, message: "上级仓库不能为空", trigger: "blur" }
 | 
											
												
													
														|  |          ],
 |  |          ],
 | 
											
												
													
														|  |          fName: [
 |  |          fName: [
 | 
											
												
													
														|  | -          { required: true, message: "部门名称不能为空", trigger: "blur" }
 |  | 
 | 
											
												
													
														|  | 
 |  | +          { required: true, message: "仓库名称不能为空", trigger: "blur" }
 | 
											
												
													
														|  |          ],
 |  |          ],
 | 
											
												
													
														|  |          orderNum: [
 |  |          orderNum: [
 | 
											
												
													
														|  |            { required: true, message: "显示排序不能为空", trigger: "blur" }
 |  |            { required: true, message: "显示排序不能为空", trigger: "blur" }
 | 
											
												
													
														|  |          ],
 |  |          ],
 | 
											
												
													
														|  | -        email: [
 |  | 
 | 
											
												
													
														|  | -          {
 |  | 
 | 
											
												
													
														|  | -            type: "email",
 |  | 
 | 
											
												
													
														|  | -            message: "'请输入正确的邮箱地址",
 |  | 
 | 
											
												
													
														|  | -            trigger: ["blur", "change"]
 |  | 
 | 
											
												
													
														|  | -          }
 |  | 
 | 
											
												
													
														|  | -        ],
 |  | 
 | 
											
												
													
														|  |          phone: [
 |  |          phone: [
 | 
											
												
													
														|  |            {
 |  |            {
 | 
											
												
													
														|  |              pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
 |  |              pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
 | 
											
										
											
												
													
														|  | @@ -250,7 +252,7 @@ export default {
 | 
											
												
													
														|  |      });
 |  |      });
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    methods: {
 |  |    methods: {
 | 
											
												
													
														|  | -    /** 查询部门列表 */
 |  | 
 | 
											
												
													
														|  | 
 |  | +    /** 查询仓库列表 */
 | 
											
												
													
														|  |      getList() {
 |  |      getList() {
 | 
											
												
													
														|  |        this.loading = true;
 |  |        this.loading = true;
 | 
											
												
													
														|  |        listDept(this.queryParams).then(response => {
 |  |        listDept(this.queryParams).then(response => {
 | 
											
										
											
												
													
														|  | @@ -258,7 +260,7 @@ export default {
 | 
											
												
													
														|  |          this.loading = false;
 |  |          this.loading = false;
 | 
											
												
													
														|  |        });
 |  |        });
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  | -    /** 转换部门数据结构 */
 |  | 
 | 
											
												
													
														|  | 
 |  | +    /** 转换仓库数据结构 */
 | 
											
												
													
														|  |      normalizer(node) {
 |  |      normalizer(node) {
 | 
											
												
													
														|  |        if (node.children && !node.children.length) {
 |  |        if (node.children && !node.children.length) {
 | 
											
												
													
														|  |          delete node.children;
 |  |          delete node.children;
 | 
											
										
											
												
													
														|  | @@ -308,7 +310,7 @@ export default {
 | 
											
												
													
														|  |          this.form.parentId = row.fId;
 |  |          this.form.parentId = row.fId;
 | 
											
												
													
														|  |        }
 |  |        }
 | 
											
												
													
														|  |        this.open = true;
 |  |        this.open = true;
 | 
											
												
													
														|  | -      this.title = "添加部门";
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.title = "添加仓库";
 | 
											
												
													
														|  |        listDept().then(response => {
 |  |        listDept().then(response => {
 | 
											
												
													
														|  |  	        this.deptOptions = this.handleTree(response.data, "fId");
 |  |  	        this.deptOptions = this.handleTree(response.data, "fId");
 | 
											
												
													
														|  |        });
 |  |        });
 | 
											
										
											
												
													
														|  | @@ -319,7 +321,7 @@ export default {
 | 
											
												
													
														|  |        getDept(row.fId).then(response => {
 |  |        getDept(row.fId).then(response => {
 | 
											
												
													
														|  |          this.form = response.data;
 |  |          this.form = response.data;
 | 
											
												
													
														|  |          this.open = true;
 |  |          this.open = true;
 | 
											
												
													
														|  | -        this.title = "修改部门";
 |  | 
 | 
											
												
													
														|  | 
 |  | +        this.title = "修改仓库";
 | 
											
												
													
														|  |        });
 |  |        });
 | 
											
												
													
														|  |        listDeptExcludeChild(row.fId).then(response => {
 |  |        listDeptExcludeChild(row.fId).then(response => {
 | 
											
												
													
														|  |  	        this.deptOptions = this.handleTree(response.data, "fId");
 |  |  	        this.deptOptions = this.handleTree(response.data, "fId");
 |