|
@@ -467,7 +467,8 @@ export default {
|
|
|
groupTreeData: [],
|
|
groupTreeData: [],
|
|
|
// 组织机构平铺数据
|
|
// 组织机构平铺数据
|
|
|
groupData: [],
|
|
groupData: [],
|
|
|
- enterprisePage: []
|
|
|
|
|
|
|
+ enterprisePage: [],
|
|
|
|
|
+ editType: ''
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -627,7 +628,8 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
async open(type, row, contactCategoryId) {
|
|
async open(type, row, contactCategoryId) {
|
|
|
- this.title = type === 'add' ? '新增' : '修改';
|
|
|
|
|
|
|
+ this.title = type === 'add' ? '新增' : type === 'copy' ? '复制' : '修改';
|
|
|
|
|
+ this.editType = type;
|
|
|
this.row = row;
|
|
this.row = row;
|
|
|
this.visible = true;
|
|
this.visible = true;
|
|
|
if (this.enterprisePage.length == 0) {
|
|
if (this.enterprisePage.length == 0) {
|
|
@@ -750,7 +752,7 @@ export default {
|
|
|
quoteProductList: this.$refs.inventoryTable.getTableValue(),
|
|
quoteProductList: this.$refs.inventoryTable.getTableValue(),
|
|
|
totalPrice: this.$refs.inventoryTable.getPrice()[0]
|
|
totalPrice: this.$refs.inventoryTable.getPrice()[0]
|
|
|
});
|
|
});
|
|
|
- if (this.isUpdate) {
|
|
|
|
|
|
|
+ if (this.isUpdate && this.editType == 'edit') {
|
|
|
UpdateInformation(commitData)
|
|
UpdateInformation(commitData)
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
@@ -767,6 +769,9 @@ export default {
|
|
|
//this.loading = false;
|
|
//this.loading = false;
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ if (this.editType == 'copy') {
|
|
|
|
|
+ delete commitData.id;
|
|
|
|
|
+ }
|
|
|
addInformation(commitData)
|
|
addInformation(commitData)
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
this.loading = false;
|
|
this.loading = false;
|