From 623efa584fd02ab4a592ce0d3b923f3c79bee89e Mon Sep 17 00:00:00 2001
From: yuejiayang <146344614+YangLei105@users.noreply.github.com>
Date: Wed, 31 Jan 2024 15:53:14 +0800
Subject: [PATCH] =?UTF-8?q?2024.1.31=20=E5=A4=87=E5=93=81=E5=A4=87?=
=?UTF-8?q?=E4=BB=B6=E7=AE=A1=E7=90=86=EF=BC=9A=E5=8A=A8=E6=80=81=E5=88=97?=
=?UTF-8?q?=E6=96=B0=E5=A2=9E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/partspare/partSpareLocation.vue | 115 ++++++++-
src/views/modules/partspare/partspare.vue | 225 +++++++++++-------
.../modules/partspare/repairtransdetail.vue | 139 ++++++++++-
src/views/modules/partspare/resourcespare.vue | 116 +++++++--
4 files changed, 486 insertions(+), 109 deletions(-)
diff --git a/src/views/modules/partspare/partSpareLocation.vue b/src/views/modules/partspare/partSpareLocation.vue
index 0634f56..9a1f5b6 100644
--- a/src/views/modules/partspare/partSpareLocation.vue
+++ b/src/views/modules/partspare/partSpareLocation.vue
@@ -157,7 +157,7 @@ import {
deletePartSpareLocation, // 删除货位
partSpareLocationTemp, // 打印
} from '@/api/partspare/partSpareLocation.js'
-
+import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js"
import {
getWareHouseList,
} from '@/api/partspare/wareHouseEntity.js'
@@ -197,6 +197,11 @@ export default {
height: 200,
columnList: [
{
+ userId: this.$store.state.user.name,
+ functionId: 200101105,
+ serialNumber: '200101105TableLocationId',
+ tableId: "200101105Table",
+ tableName: "货位管理表",
columnProp: 'locationId',
headerAlign: "center",
align: "center",
@@ -210,6 +215,11 @@ export default {
columnWidth: 140,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 200101105,
+ serialNumber: '200101105TableLocationName',
+ tableId: "200101105Table",
+ tableName: "货位管理表",
columnProp: 'locationName',
headerAlign: "center",
align: "center",
@@ -223,6 +233,11 @@ export default {
columnWidth: 140,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 200101105,
+ serialNumber: '200101105TableWarehouseId',
+ tableId: "200101105Table",
+ tableName: "货位管理表",
columnProp: 'warehouseId',
headerAlign: "center",
align: "center",
@@ -236,6 +251,11 @@ export default {
columnWidth: 140,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 200101105,
+ serialNumber: '200101105TableWarehouseName',
+ tableId: "200101105Table",
+ tableName: "货位管理表",
columnProp: 'warehouseName',
headerAlign: "center",
align: "center",
@@ -249,6 +269,11 @@ export default {
columnWidth: 140,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 200101105,
+ serialNumber: '200101105TableMaxCapacity',
+ tableId: "200101105Table",
+ tableName: "货位管理表",
columnProp: 'maxCapacity',
headerAlign: "center",
align: "right",
@@ -262,6 +287,11 @@ export default {
columnWidth: 140,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 200101105,
+ serialNumber: '200101105TableActive',
+ tableId: "200101105Table",
+ tableName: "货位管理表",
columnProp: 'active',
headerAlign: "center",
align: "center",
@@ -275,6 +305,11 @@ export default {
columnWidth: 140,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 200101105,
+ serialNumber: '200101105TableCreateDate',
+ tableId: "200101105Table",
+ tableName: "货位管理表",
columnProp: 'createDate',
headerAlign: "center",
align: "center",
@@ -288,6 +323,11 @@ export default {
columnWidth: 140,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 200101105,
+ serialNumber: '200101105TableCreateBy',
+ tableId: "200101105Table",
+ tableName: "货位管理表",
columnProp: 'createBy',
headerAlign: "center",
align: "center",
@@ -301,6 +341,11 @@ export default {
columnWidth: 140,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 200101105,
+ serialNumber: '200101105TableUpdateDate',
+ tableId: "200101105Table",
+ tableName: "货位管理表",
columnProp: 'updateDate',
headerAlign: "center",
align: "center",
@@ -314,6 +359,11 @@ export default {
columnWidth: 140,
},
{
+ userId: this.$store.state.user.name,
+ functionId: 200101105,
+ serialNumber: '200101105TableUpdateBy',
+ tableId: "200101105Table",
+ tableName: "货位管理表",
columnProp: 'updateBy',
headerAlign: "center",
align: "center",
@@ -392,6 +442,8 @@ export default {
created() {
this.getDataList()
this.getWareHouseList()
+ // 动态列
+ this.getTableUserColumn(this.$route.meta.menuId+'table',1)
},
components: {
@@ -656,6 +708,67 @@ export default {
let s = eval("(" + json + ")")
return s
},
+
+ // 动态列开始 获取 用户保存的 格式列
+ async getTableUserColumn (tableId, columnId) {
+ let queryTableUser = {
+ userId: this.$store.state.user.name,
+ functionId: this.$route.meta.menuId,
+ tableId: tableId,
+ status: true,
+ languageCode: this.$i18n.locale
+ }
+ await getTableUserListLanguage(queryTableUser).then(({data}) => {
+ if (data.rows.length > 0) {
+ //this.columnList1 = []
+ switch (columnId) {
+ case 1:
+ this.columnList = data.rows
+ break;
+ // case 2:
+ // this.columnDetailList = data.rows
+ // break;
+ // case 3:
+ // this.columnList2 = data.rows
+ // break;
+ // case 4:
+ // this.columnList3 = data.rows
+ // break;
+ }
+ } else {
+ this.getColumnList(tableId, columnId)
+ }
+ })
+ },
+
+ // 获取 tableDefault 列
+ async getColumnList (tableId, columnId) {
+ let queryTable = {
+ functionId: this.$route.meta.menuId,
+ tableId: tableId,
+ languageCode: this.$i18n.locale
+ }
+ await getTableDefaultListLanguage(queryTable).then(({data}) => {
+ if (!data.rows.length == 0) {
+ switch (columnId) {
+ case 1:
+ this.columnList = data.rows
+ break;
+ // case 2:
+ // this.columnDetailList = data.rows
+ // break;
+ // case 3:
+ // this.columnList2 = data.rows
+ // break;
+ // case 4:
+ // this.columnList3 = data.rows
+ // break;
+ }
+ } else {
+ // this.showDefault = true.
+ }
+ })
+ },
}
}
diff --git a/src/views/modules/partspare/partspare.vue b/src/views/modules/partspare/partspare.vue
index 77b7c08..b3f5929 100644
--- a/src/views/modules/partspare/partspare.vue
+++ b/src/views/modules/partspare/partspare.vue
@@ -132,6 +132,7 @@
diff --git a/src/views/modules/partspare/resourcespare.vue b/src/views/modules/partspare/resourcespare.vue
index 139e0b6..6d6de24 100644
--- a/src/views/modules/partspare/resourcespare.vue
+++ b/src/views/modules/partspare/resourcespare.vue
@@ -94,6 +94,7 @@