From 007ebfd87c16063d2ab43e3b61dd3178f8f302f9 Mon Sep 17 00:00:00 2001
From: yuejiayang <146344614+YangLei105@users.noreply.github.com>
Date: Tue, 14 Nov 2023 17:59:48 +0800
Subject: [PATCH] =?UTF-8?q?2023.11.14=20=E5=88=86=E7=BB=84=E5=88=86?=
=?UTF-8?q?=E7=B1=BB=E7=9A=84=E5=A2=9E=E5=88=A0=E6=94=B9=E6=9F=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/part/manufacturerInformation.js | 26 +
src/api/part/partFamilyInformation.js | 26 +
src/api/part/partGroupInformation.js | 26 +
src/api/part/productGroupInformation.js | 26 +
.../base/propertiesItem/propertiesItem.vue | 8 +-
.../modules/part/manufacturerInformation.vue | 504 ++++++++++++++++++
.../modules/part/partFamilyInformation.vue | 504 ++++++++++++++++++
.../modules/part/partGroupInformation.vue | 504 ++++++++++++++++++
.../modules/part/productGroupInformation.vue | 504 ++++++++++++++++++
src/views/modules/part/umInformation.vue | 150 +++---
10 files changed, 2206 insertions(+), 72 deletions(-)
create mode 100644 src/api/part/manufacturerInformation.js
create mode 100644 src/api/part/partFamilyInformation.js
create mode 100644 src/api/part/partGroupInformation.js
create mode 100644 src/api/part/productGroupInformation.js
create mode 100644 src/views/modules/part/manufacturerInformation.vue
create mode 100644 src/views/modules/part/partFamilyInformation.vue
create mode 100644 src/views/modules/part/partGroupInformation.vue
create mode 100644 src/views/modules/part/productGroupInformation.vue
diff --git a/src/api/part/manufacturerInformation.js b/src/api/part/manufacturerInformation.js
new file mode 100644
index 0000000..94b3054
--- /dev/null
+++ b/src/api/part/manufacturerInformation.js
@@ -0,0 +1,26 @@
+import { createAPI } from "@/utils/httpRequest.js";
+
+/**
+ * 制造商信息列表查询
+ * @param data
+ * @returns {*}
+ */
+export const manufacturerInformationSearch = data => createAPI(`/plm/manufacturerInformation/manufacturerInformationSearch`,'post',data)
+/**
+ * 制造商信息新增
+ * @param data
+ * @returns {*}
+ */
+export const manufacturerInformationSave = data => createAPI(`/plm/manufacturerInformation/manufacturerInformationSave`,'post',data)
+/**
+ * 制造商信息编辑
+ * @param data
+ * @returns {*}
+ */
+export const manufacturerInformationEdit = data => createAPI(`/plm/manufacturerInformation/manufacturerInformationEdit`,'post',data)
+/**
+ * 制造商信息删除
+ * @param data
+ * @returns {*}
+ */
+export const manufacturerInformationDelete = data => createAPI(`/plm/manufacturerInformation/manufacturerInformationDelete`,'post',data)
diff --git a/src/api/part/partFamilyInformation.js b/src/api/part/partFamilyInformation.js
new file mode 100644
index 0000000..6ff1734
--- /dev/null
+++ b/src/api/part/partFamilyInformation.js
@@ -0,0 +1,26 @@
+import { createAPI } from "@/utils/httpRequest.js";
+
+/**
+ * 分类信息列表查询
+ * @param data
+ * @returns {*}
+ */
+export const partFamilyInformationSearch = data => createAPI(`/plm/partFamilyInformation/partFamilyInformationSearch`,'post',data)
+/**
+ * 分类信息新增
+ * @param data
+ * @returns {*}
+ */
+export const partFamilyInformationSave = data => createAPI(`/plm/partFamilyInformation/partFamilyInformationSave`,'post',data)
+/**
+ * 分类信息编辑
+ * @param data
+ * @returns {*}
+ */
+export const partFamilyInformationEdit = data => createAPI(`/plm/partFamilyInformation/partFamilyInformationEdit`,'post',data)
+/**
+ * 分类信息删除
+ * @param data
+ * @returns {*}
+ */
+export const partFamilyInformationDelete = data => createAPI(`/plm/partFamilyInformation/partFamilyInformationDelete`,'post',data)
diff --git a/src/api/part/partGroupInformation.js b/src/api/part/partGroupInformation.js
new file mode 100644
index 0000000..ebbb95c
--- /dev/null
+++ b/src/api/part/partGroupInformation.js
@@ -0,0 +1,26 @@
+import { createAPI } from "@/utils/httpRequest.js";
+
+/**
+ * 分组信息列表查询
+ * @param data
+ * @returns {*}
+ */
+export const partGroupInformationSearch = data => createAPI(`/plm/partGroupInformation/partGroupInformationSearch`,'post',data)
+/**
+ * 分组信息新增
+ * @param data
+ * @returns {*}
+ */
+export const partGroupInformationSave = data => createAPI(`/plm/partGroupInformation/partGroupInformationSave`,'post',data)
+/**
+ * 分组信息编辑
+ * @param data
+ * @returns {*}
+ */
+export const partGroupInformationEdit = data => createAPI(`/plm/partGroupInformation/partGroupInformationEdit`,'post',data)
+/**
+ * 分组信息删除
+ * @param data
+ * @returns {*}
+ */
+export const partGroupInformationDelete = data => createAPI(`/plm/partGroupInformation/partGroupInformationDelete`,'post',data)
diff --git a/src/api/part/productGroupInformation.js b/src/api/part/productGroupInformation.js
new file mode 100644
index 0000000..b987084
--- /dev/null
+++ b/src/api/part/productGroupInformation.js
@@ -0,0 +1,26 @@
+import { createAPI } from "@/utils/httpRequest.js";
+
+/**
+ * 商品信息列表查询
+ * @param data
+ * @returns {*}
+ */
+export const productGroupInformationSearch = data => createAPI(`/plm/productGroupInformation/productGroupInformationSearch`,'post',data)
+/**
+ * 商品信息新增
+ * @param data
+ * @returns {*}
+ */
+export const productGroupInformationSave = data => createAPI(`/plm/productGroupInformation/productGroupInformationSave`,'post',data)
+/**
+ * 商品信息编辑
+ * @param data
+ * @returns {*}
+ */
+export const productGroupInformationEdit = data => createAPI(`/plm/productGroupInformation/productGroupInformationEdit`,'post',data)
+/**
+ * 商品信息删除
+ * @param data
+ * @returns {*}
+ */
+export const productGroupInformationDelete = data => createAPI(`/plm/productGroupInformation/productGroupInformationDelete`,'post',data)
diff --git a/src/views/modules/base/propertiesItem/propertiesItem.vue b/src/views/modules/base/propertiesItem/propertiesItem.vue
index 8b7ca74..4ab6738 100644
--- a/src/views/modules/base/propertiesItem/propertiesItem.vue
+++ b/src/views/modules/base/propertiesItem/propertiesItem.vue
@@ -414,11 +414,11 @@
userId: this.$store.state.user.name,
functionId: 100002001,
serialNumber: '100002001TableValueChooseFlag',
- tableId: "100002001Table",
- tableName: "属性表",
+ tableId: '100002001Table',
+ tableName: '属性表',
columnProp: 'createdDate',
- headerAlign: "center",
- align: "center",
+ headerAlign: 'center',
+ align: 'center',
columnLabel: '创建时间',
columnHidden: false,
columnImage: false,
diff --git a/src/views/modules/part/manufacturerInformation.vue b/src/views/modules/part/manufacturerInformation.vue
new file mode 100644
index 0000000..cbab168
--- /dev/null
+++ b/src/views/modules/part/manufacturerInformation.vue
@@ -0,0 +1,504 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 新增
+
+ {{ "导出" }}
+
+
+
+
+
+
+
+ {{ scope.row[item.columnProp] }}
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/part/partFamilyInformation.vue b/src/views/modules/part/partFamilyInformation.vue
new file mode 100644
index 0000000..26dc9ad
--- /dev/null
+++ b/src/views/modules/part/partFamilyInformation.vue
@@ -0,0 +1,504 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 新增
+
+ {{ "导出" }}
+
+
+
+
+
+
+
+ {{ scope.row[item.columnProp] }}
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/part/partGroupInformation.vue b/src/views/modules/part/partGroupInformation.vue
new file mode 100644
index 0000000..d55cfcc
--- /dev/null
+++ b/src/views/modules/part/partGroupInformation.vue
@@ -0,0 +1,504 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 新增
+
+ {{ "导出" }}
+
+
+
+
+
+
+
+ {{ scope.row[item.columnProp] }}
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/part/productGroupInformation.vue b/src/views/modules/part/productGroupInformation.vue
new file mode 100644
index 0000000..13bf14d
--- /dev/null
+++ b/src/views/modules/part/productGroupInformation.vue
@@ -0,0 +1,504 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 新增
+
+ {{ "导出" }}
+
+
+
+
+
+
+
+ {{ scope.row[item.columnProp] }}
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/part/umInformation.vue b/src/views/modules/part/umInformation.vue
index 58b4a3e..1f621ff 100644
--- a/src/views/modules/part/umInformation.vue
+++ b/src/views/modules/part/umInformation.vue
@@ -34,7 +34,7 @@
-
+
-
+
@@ -161,7 +161,9 @@
site: this.$store.state.user.site,
umId: '',
umName: '',
- active: ''
+ active: '',
+ createBy: '',
+ updateBy: ''
},
// ======== 数据列表 ========
dataList: [],
@@ -221,6 +223,74 @@
fixed: '',
columnWidth: 120
},
+ {
+ userId: this.$store.state.user.name,
+ functionId: 100003,
+ serialNumber: '100003Table1CreateDate',
+ tableId: '100003Table1',
+ tableName: '单位信息表',
+ columnProp: 'createDate',
+ headerAlign: 'center',
+ align: 'center',
+ columnLabel: '创建时间',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 100003,
+ serialNumber: '100003Table1CreatedBy',
+ tableId: "100003Table1",
+ tableName: "单位信息表",
+ columnProp: 'createBy',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '创建人',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 100003,
+ serialNumber: '100003Table1UpdateDate',
+ tableId: "100003Table1",
+ tableName: "单位信息表",
+ columnProp: 'updateDate',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '更新时间',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 100003,
+ serialNumber: '100003Table1UpdateBy',
+ tableId: "100003Table1",
+ tableName: "单位信息表",
+ columnProp: 'updateBy',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '更新人',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ },
],
// ======== 必填规则 ========
rules: {
@@ -278,7 +348,6 @@
this.pageIndex = val
this.getDataList()
},
-
// ======== 列表数据刷新方法 ========
/**
* 获取数据列表
@@ -300,13 +369,14 @@
// ======== 新增/编辑模态框 ========
/**
- * 材料信息新增模态框
+ * 单位信息新增模态框
*/
addModal () {
this.modalData = {
flag: '1',
title: '单位新增',
site: this.$store.state.user.site,
+ createBy: this.$store.state.user.name,
umId: '',
umName: '',
active: 'Y',
@@ -315,7 +385,7 @@
this.modalFlag = true
},
/**
- * 材料信息编辑模态框
+ * 单位信息编辑模态框
* @param row
*/
updateModal (row) {
@@ -325,7 +395,8 @@
site: row.site,
umId: row.umId,
umName: row.umName,
- active: row.active
+ active: row.active,
+ updateBy: this.$store.state.user.name,
}
this.modalDisableFlag = true
this.modalFlag = true
@@ -333,7 +404,7 @@
// ======== 新增/编辑/删除方法 ========
/**
- * 材料信息新增/编辑
+ * 单位信息新增/编辑
*/
saveData () {
if (this.modalData.umId === '' || this.modalData.umId == null) {
@@ -385,10 +456,10 @@
}
},
/**
- * 材料信息删除
+ * 单位信息删除
*/
delModal (row) {
- this.$confirm(`是否删除这条材料信息?`, '提示', {
+ this.$confirm(`是否删除这条单位信息?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
@@ -413,64 +484,7 @@
})
},
- // ======== chooseList相关方法 ========
- /**
- * 获取基础数据列表S
- * @param val
- * @param type
- */
- getBaseList (val, type) {
- this.tagNo = val
- this.tagNo1 = type
- this.$nextTick(() => {
- let strVal = ''
- if (val === 107) {
- if(type === 1) {
- strVal = this.modalData.umId
- }
- }
- if (val === 108) {
- if(type === 1) {
- strVal = this.modalData.familyId
- }
- }
- if (val === 109) {
- if(type === 1) {
- strVal = this.modalData.groupId
- }
- }
- if (val === 110) {
- if(type === 1) {
- strVal = this.modalData.otherGroup1
- }
- }
- this.$refs.baseList.init(val, strVal)
- })
- },
- /**
- * 列表方法的回调
- * @param val
- */
- getBaseData (val) {
- if (this.tagNo === 107) {
- if(this.tagNo1 === 1) {
- this.modalData.umId = val.um_id
- this.modalData.umName = val.um_name
- }
- }
- if (this.tagNo === 108) {
- if(this.tagNo1 === 1) {
- this.modalData.familyId = val.family_id
- this.modalData.familyName = val.family_name
- }
- }
- if (this.tagNo === 109) {
- if(this.tagNo1 === 1) {
- this.modalData.groupId = val.group_id
- this.modalData.groupName = val.group_name
- }
- }
- },
+
// ======== 导出相关方法 ========
/**