|
@@ -20,7 +20,7 @@
|
|
|
class="el-form-box"
|
|
class="el-form-box"
|
|
|
>
|
|
>
|
|
|
<headerTitle title="基本信息"></headerTitle>
|
|
<headerTitle title="基本信息"></headerTitle>
|
|
|
- <el-row gutter="12">
|
|
|
|
|
|
|
+ <el-row :gutter="12">
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item label="类型" prop="type">
|
|
<el-form-item label="类型" prop="type">
|
|
|
<el-select
|
|
<el-select
|
|
@@ -770,12 +770,13 @@ export default {
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
if (this.editType == 'copy') {
|
|
if (this.editType == 'copy') {
|
|
|
|
|
+ console.log('copy~~~~~~')
|
|
|
|
|
+ // 删除quoteProductList中每个对象的id属性
|
|
|
|
|
+ commitData.quoteProductList = commitData.quoteProductList.map(({ id, ...rest }) => rest);
|
|
|
|
|
+ // 删除commitData本身的id属性
|
|
|
delete commitData.id;
|
|
delete commitData.id;
|
|
|
- this.commitData.quoteProductList = commitData.quoteProductList.map((item) => {
|
|
|
|
|
- delete item.id;
|
|
|
|
|
- return item;
|
|
|
|
|
- })
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+ console.log('commitData~~~~~~~~', commitData)
|
|
|
addInformation(commitData)
|
|
addInformation(commitData)
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
this.loading = false;
|
|
this.loading = false;
|