|
|
@@ -874,6 +874,7 @@
|
|
|
import processSubmitDialog from '@/BIZComponents/processSubmitDialog/processSubmitDialog.vue';
|
|
|
import certificateManagement from '@/views/saleManage/contact/components/certificateManagement/index.vue';
|
|
|
import { parameterGetByCode } from '@/api/main/index.js';
|
|
|
+ import { saveOrEdit } from '@/api/saleManage/contact';
|
|
|
export default {
|
|
|
props: {
|
|
|
categoryTreeList: Array
|
|
|
@@ -1709,6 +1710,7 @@
|
|
|
linkList: this.tableLinkData,
|
|
|
productList: this.supplyList
|
|
|
};
|
|
|
+ this.tableCertificateDataList = this.$refs.certificateManagementRef.getTableValue();
|
|
|
if (this.isUpdate) {
|
|
|
contactUpdate(data)
|
|
|
.then((res) => {
|
|
|
@@ -1730,9 +1732,9 @@
|
|
|
this.loading = false;
|
|
|
this.$message.success('新增成功');
|
|
|
this.tableCertificateDataList.forEach((item) => {
|
|
|
- item['relationId'] = id;
|
|
|
- item['relationName'] = this.form.name;
|
|
|
- contactQcPackSaveAPI(item);
|
|
|
+ item['holderId'] = id;
|
|
|
+ item['holder'] = this.form.name;
|
|
|
+ saveOrEdit(item);
|
|
|
});
|
|
|
|
|
|
if (type == 'sub') {
|