|
|
|
@ -56,6 +56,7 @@
|
|
|
|
|
</el-table>
|
|
|
|
|
</el-card>
|
|
|
|
|
<el-pagination
|
|
|
|
|
:current-page="filterQuery.page"
|
|
|
|
|
:page-size="filterQuery.limit"
|
|
|
|
|
@current-change="handleCurrentChange"
|
|
|
|
|
layout="prev, pager, next"
|
|
|
|
@ -65,7 +66,7 @@
|
|
|
|
|
<el-dialog
|
|
|
|
|
:title="formMap[formName]"
|
|
|
|
|
:visible.sync="modifySpaceVisible"
|
|
|
|
|
width="50%"
|
|
|
|
|
width="65%"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
append-to-body
|
|
|
|
@ -73,20 +74,20 @@
|
|
|
|
|
>
|
|
|
|
|
<el-form :model="formData" :rules="rules" ref="formData">
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
<el-col :span="2">
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
<span>货位编码:</span>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item prop="code">
|
|
|
|
|
<el-input v-model="formData.code" auto-complete="off"
|
|
|
|
|
placeholder="请输入货位编码"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="2">
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
<span>货位名称:</span>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item prop="name">
|
|
|
|
|
<el-input v-model="formData.name" auto-complete="off"
|
|
|
|
|
placeholder="请输入货位名称"></el-input>
|
|
|
|
@ -95,20 +96,20 @@
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
<el-col :span="2">
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
<span>货位分类:</span>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item prop="remark">
|
|
|
|
|
<el-input v-model="formData.type" auto-complete="off"
|
|
|
|
|
placeholder="请输入货位分类"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="2">
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
<span>启用状态:</span>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item prop="status">
|
|
|
|
|
<el-radio v-model="formData.status" :label="0">禁用</el-radio>
|
|
|
|
|
<el-radio v-model="formData.status" :label="1">启用</el-radio>
|
|
|
|
@ -117,10 +118,10 @@
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
<el-col :span="2">
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
<span>备注:</span>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item prop="remark">
|
|
|
|
|
<el-input v-model="formData.remark" auto-complete="off"
|
|
|
|
|
placeholder="请输入备注内容"></el-input>
|
|
|
|
@ -133,7 +134,7 @@
|
|
|
|
|
>提交
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button type="primary" size="small" icon="search" @click="modifySpaceVisible = false"
|
|
|
|
|
<el-button type="primary" size="small" icon="search" @click="cancelDialog"
|
|
|
|
|
>取消
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
@ -175,7 +176,6 @@ export default {
|
|
|
|
|
loading: true,
|
|
|
|
|
index: null,
|
|
|
|
|
dialogTableVisible: false,
|
|
|
|
|
invWarehouseDisabled: true,
|
|
|
|
|
statusMap: {
|
|
|
|
|
0: "禁用",
|
|
|
|
|
1: "启用"
|
|
|
|
@ -220,7 +220,6 @@ export default {
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 20,
|
|
|
|
|
};
|
|
|
|
|
this.invChange();
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
onSubmit() {
|
|
|
|
@ -259,13 +258,17 @@ export default {
|
|
|
|
|
this.$message.success("删除成功!");
|
|
|
|
|
this.getList();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.data);
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
cancelDialog() {
|
|
|
|
|
this.modifySpaceVisible = false
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
getStorage() {
|
|
|
|
|
this.storageList = [];
|
|
|
|
|
filterUplLocInv()
|
|
|
|
@ -275,24 +278,6 @@ export default {
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
invChange() {
|
|
|
|
|
this.filterQuery.invWarehouseCode = "";
|
|
|
|
|
this.subInvList = [];
|
|
|
|
|
if (this.filterQuery.invStorageCode != null && this.filterQuery.invStorageCode != "") {
|
|
|
|
|
this.invWarehouseDisabled = false;
|
|
|
|
|
let query = {
|
|
|
|
|
pcode: this.filterQuery.invStorageCode
|
|
|
|
|
};
|
|
|
|
|
filterSubByInv(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.subInvList = response.data || [];
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.invWarehouseDisabled = true;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
resetForm() {
|
|
|
|
|
if (this.$refs["formData"]) {
|
|
|
|
|
// 清空验证信息表单
|
|
|
|
@ -334,7 +319,7 @@ export default {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.modifySpaceVisible = false;
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.data.message);
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|