|
|
|
@ -165,7 +165,6 @@
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
:visible.sync="formVisible"
|
|
|
|
|
:before-close="hideForm"
|
|
|
|
|
width="45%"
|
|
|
|
|
top="5vh"
|
|
|
|
|
>
|
|
|
|
@ -218,7 +217,7 @@
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<!-- 分库弹窗编辑页面-->
|
|
|
|
|
<!-- 仓库弹窗编辑页面-->
|
|
|
|
|
<el-dialog
|
|
|
|
|
:title="subMap[subFromName]"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
@ -244,13 +243,13 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="分库编码" prop="title" class="query-form-item">
|
|
|
|
|
<el-form-item label="仓库编码" prop="title" class="query-form-item">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="subData.code" style="width: 80%"
|
|
|
|
|
auto-complete="off"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="分库名称" prop="name" class="query-form-item">
|
|
|
|
|
<el-form-item label="仓库名称" prop="name" class="query-form-item">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="subData.name" style="width: 80%"
|
|
|
|
|
auto-complete="off"
|
|
|
|
@ -331,9 +330,9 @@ export default {
|
|
|
|
|
index: null,
|
|
|
|
|
formName: null,
|
|
|
|
|
formMap: {
|
|
|
|
|
addTop: "仓库信息-新增",
|
|
|
|
|
addTop: "部门信息-新增",
|
|
|
|
|
add: "添加货位",
|
|
|
|
|
edit: "仓库信息-编辑"
|
|
|
|
|
edit: "部门信息-编辑"
|
|
|
|
|
},
|
|
|
|
|
subMap: {
|
|
|
|
|
add: "仓库信息-添加",
|
|
|
|
@ -453,10 +452,10 @@ export default {
|
|
|
|
|
// 更改值
|
|
|
|
|
this.formVisible = false;
|
|
|
|
|
this.subFormVisible = false;
|
|
|
|
|
let Item = JSON.parse(localStorage.getItem('obj'))
|
|
|
|
|
this.subData=Item;
|
|
|
|
|
this.getSubList();
|
|
|
|
|
return true;
|
|
|
|
|
// let Item = JSON.parse(localStorage.getItem('obj'))
|
|
|
|
|
// this.subData = Item;
|
|
|
|
|
// this.getSubList();
|
|
|
|
|
// return true;
|
|
|
|
|
},
|
|
|
|
|
// 显示表单
|
|
|
|
|
handleForm(node, data, formName) {
|
|
|
|
@ -502,7 +501,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
handleSubDel(row) {
|
|
|
|
|
if (row.id) {
|
|
|
|
|
this.$confirm("确认删除该分库吗?", "提示", {
|
|
|
|
|
this.$confirm("确认删除该仓库吗?", "提示", {
|
|
|
|
|
type: "warning",
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
@ -532,14 +531,14 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//添加分库
|
|
|
|
|
//添加仓库
|
|
|
|
|
forSubSubmit() {
|
|
|
|
|
if (this.$isBlank(this.subData.code)) {
|
|
|
|
|
this.$message.error("分库编码不能为空!");
|
|
|
|
|
this.$message.error("仓库编码不能为空!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (this.$isBlank(this.subData.name)) {
|
|
|
|
|
this.$message.error("分库名称不能为空!");
|
|
|
|
|
this.$message.error("仓库名称不能为空!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|