-
-
+
-
+
v),
+ ].filter((v) => v),
tableData: [],
formConfig: [
{
@@ -129,7 +126,9 @@ export default {
type: 'separate',
},
{
- type: this.$auth.hasPermi('warehouse:warehouse-area-setup:create') ? 'button' : '',
+ type: this.$auth.hasPermi('warehouse:warehouse-area-setup:create')
+ ? 'button'
+ : '',
btnName: '新增',
name: 'add',
color: 'success',
@@ -148,7 +147,7 @@ export default {
getWarehouseAreaListAll().then((response) => {
this.formConfig[1].selectOptions = response.data;
});
- },
+ },
methods: {
buttonClick(val) {
switch (val.btnName) {
@@ -180,6 +179,22 @@ export default {
console.log(val);
}
},
+ // 获取数据列表
+ getDataList() {
+ this.dataListLoading = true;
+ getWarehouseAreaListAll().then((response) => { //刷新搜索框库区
+ this.formConfig[1].selectOptions = response.data;
+ });
+ this.urlOptions.getDataListURL(this.listQuery).then(response => {
+ if (response.hasOwnProperty('data')) {
+ this.tableData = response.data.list;
+ this.listQuery.total = response.data.total;
+ } else {
+ this.tableData = []
+ }
+ this.dataListLoading = false;
+ });
+ },
},
};
diff --git a/src/views/warehouse/warehouse-base/warehouse-location-setup/add-or-updata.vue b/src/views/warehouse/warehouse-base/warehouse-location-setup/add-or-updata.vue
index 4eb9aaa7..47bf7fcb 100644
--- a/src/views/warehouse/warehouse-base/warehouse-location-setup/add-or-updata.vue
+++ b/src/views/warehouse/warehouse-base/warehouse-location-setup/add-or-updata.vue
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2023-08-01 13:52:10
* @LastEditors: zwq
- * @LastEditTime: 2024-08-21 10:26:21
+ * @LastEditTime: 2024-12-16 16:30:12
* @Description:
-->
@@ -35,7 +35,7 @@
{
- this.warehouseArr = response.data;
+ this.warehouseArr = response.data.filter((item) =>
+ item.type === 1
+ );
});
},
methods: {
- getAreaList(){
- getWarehouseAreaList(this.dataForm.warehouseId).then((response) => {
- this.areaArr = response.data;
- if(this.areaArr.length===0){
- this.$message('该仓库下暂无库区');
- }
- });
- },
+ getAreaList() {
+ getWarehouseAreaList(this.dataForm.warehouseId).then((response) => {
+ this.areaArr = response.data;
+ this.dataForm.areaId = null
+ this.dataForm.areaType = null
+ if (this.areaArr.length === 0) {
+ this.$message('该仓库下暂无库区');
+ }
+ });
+ },
setAreaType() {
if (this.dataForm.areaId) {
this.dataForm.areaType = this.areaArr.find(
diff --git a/src/views/warehouse/warehouse-manage/in&out/add-or-updata.vue b/src/views/warehouse/warehouse-manage/in&out/add-or-updata.vue
index 714e82b2..6bb5afb4 100644
--- a/src/views/warehouse/warehouse-manage/in&out/add-or-updata.vue
+++ b/src/views/warehouse/warehouse-manage/in&out/add-or-updata.vue
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2024-08-02 16:26:58
* @LastEditors: zwq
- * @LastEditTime: 2024-08-08 16:38:53
+ * @LastEditTime: 2024-12-19 14:15:06
* @Description:,
-->
@@ -103,7 +103,7 @@ export default {
},
created() {
getUserProfile().then((response) => {
- this.dataForm.operator = response.data.username;
+ this.dataForm.operator = response.data.nickname;
});
},
methods: {
diff --git a/src/views/warehouse/warehouse-manage/in&out/index.vue b/src/views/warehouse/warehouse-manage/in&out/index.vue
index 8d7e4828..73929ede 100644
--- a/src/views/warehouse/warehouse-manage/in&out/index.vue
+++ b/src/views/warehouse/warehouse-manage/in&out/index.vue
@@ -67,6 +67,14 @@ const tableProps = [
prop: 'warehouseName',
label: '仓库名称',
},
+ {
+ prop: 'areaName',
+ label: '库区名称',
+ },
+ {
+ prop: 'areaType',
+ label: '库区类型',
+ },
{
prop: 'name',
label: '库位名称',
@@ -95,6 +103,10 @@ const tableProps = [
filter: parseTime,
width: 150,
},
+ {
+ prop: 'goodsName',
+ label: '物品名称',
+ },
{
prop: 'remark',
label: '备注',
diff --git a/src/views/warehouse/warehouse-report/relocationHistory/index.vue b/src/views/warehouse/warehouse-report/relocationHistory/index.vue
index fb74a57d..0682953e 100644
--- a/src/views/warehouse/warehouse-report/relocationHistory/index.vue
+++ b/src/views/warehouse/warehouse-report/relocationHistory/index.vue
@@ -18,7 +18,7 @@
v-if="tableBtn.length"
slot="handleBtn"
:width="90"
- label="库位详情"
+ label="详情"
:method-list="tableBtn"
@clickBtn="handleClick" />
@@ -70,10 +70,12 @@ const tableProps = [
{
prop: 'oldCode',
label: '源库位编码',
+ width: 150,
},
{
prop: 'palletCode',
label: '移动托盘编码',
+ width: 150,
},
{
prop: 'goodName',