diff --git a/src/api/part/partInfo.js b/src/api/part/partInfo.js
index 89ea9d1..788dc8f 100644
--- a/src/api/part/partInfo.js
+++ b/src/api/part/partInfo.js
@@ -4,6 +4,7 @@ export const getPartList = data => createAPI('/part/list', 'POST', data)
export const searchPartList = data => createAPI('/part/searchPartList', 'POST', data)
export const createPart = data => createAPI('/part/save', 'POST', data)
export const updatePart = data => createAPI('/part/save', 'POST', data)
+export const copyPartByBase = data => createAPI('/part/copyByBasePartNo', 'POST', data)
export const searchPartInfo = data => createAPI('part/getPart','POST', data)
export const deletePart = id => createAPI('/part/delete', 'POST', { id: id })
//产品审批
diff --git a/src/views/modules/srmPart/com_part_BasicInfo.vue b/src/views/modules/srmPart/com_part_BasicInfo.vue
index c428b90..4a398f0 100644
--- a/src/views/modules/srmPart/com_part_BasicInfo.vue
+++ b/src/views/modules/srmPart/com_part_BasicInfo.vue
@@ -20,8 +20,8 @@
-
-
+
+
@@ -62,6 +62,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -125,9 +142,13 @@ export default {
dataListLoading: false,
currentpart: {
partNo: '',
+ basePartNo: '',
npc: '',
partDesc: '',
partSpec: '',
+ sku: '',
+ item: '',
+ defaultSupplierNo: '',
buyerName: '',
sourcingName: '',
category: '',
@@ -195,9 +216,13 @@ export default {
// 将查询到的数据赋值给currentpart对象
this.currentpart = {
partNo: data.data.partNo || '',
+ basePartNo: data.data.basePartNo || '',
npc: data.data.npc || '',
partDesc: data.data.partDesc || '',
partSpec: data.data.partSpec || '',
+ sku: data.data.sku || '',
+ item: data.data.item || '',
+ defaultSupplierNo: data.data.defaultSupplierNo || '',
buyerName: data.data.buyerName || '',
sourcingName: data.data.sourcingName || '',
category: data.data.category || '',
@@ -230,9 +255,13 @@ export default {
resetPartData() {
this.currentpart = {
partNo: '',
+ basePartNo: '',
npc: '',
partDesc: '',
partSpec: '',
+ sku: '',
+ item: '',
+ defaultSupplierNo: '',
buyerName: '',
sourcingName: '',
category: '',
diff --git a/src/views/modules/srmPart/partApprovalList.vue b/src/views/modules/srmPart/partApprovalList.vue
index a5baf29..390ecf0 100644
--- a/src/views/modules/srmPart/partApprovalList.vue
+++ b/src/views/modules/srmPart/partApprovalList.vue
@@ -264,24 +264,24 @@ export default {
status: true,
fixed: false
},
- {
- userId: this.$store.state.user.name,
- functionId: this.functionId,
- serialNumber: 'partTableNpc',
- tableId: 'partTable',
- tableName: '产品信息',
- columnProp: 'npc',
- headerAlign: 'center',
- align: 'center',
- columnLabel: 'NPC货号',
- columnWidth: '100',
- columnHidden: false,
- columnImage: false,
- columnSortable: false,
- sortLv: 0,
- status: true,
- fixed: false
- },
+ // {
+ // userId: this.$store.state.user.name,
+ // functionId: this.functionId,
+ // serialNumber: 'partTableNpc',
+ // tableId: 'partTable',
+ // tableName: '产品信息',
+ // columnProp: 'npc',
+ // headerAlign: 'center',
+ // align: 'center',
+ // columnLabel: 'NPC货号',
+ // columnWidth: '100',
+ // columnHidden: false,
+ // columnImage: false,
+ // columnSortable: false,
+ // sortLv: 0,
+ // status: true,
+ // fixed: false
+ // },
{
userId: this.$store.state.user.name,
functionId: this.functionId,
diff --git a/src/views/modules/srmPart/partInfoList.vue b/src/views/modules/srmPart/partInfoList.vue
index 50cf5a6..819a945 100644
--- a/src/views/modules/srmPart/partInfoList.vue
+++ b/src/views/modules/srmPart/partInfoList.vue
@@ -8,12 +8,24 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
查询
新增
+ 复制
@@ -127,19 +140,47 @@
+
+
+
+
+
+
+
+
+
+
+
+