|
@@ -4536,7 +4536,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
handleSelectProductMetail(row, rowIndex, $event, scope) {
|
|
|
- debugger
|
|
|
if ($event) {
|
|
|
|
|
|
const arr = $event.tag.split("_");
|
|
@@ -4602,18 +4601,10 @@ export default {
|
|
|
unit: "",
|
|
|
};
|
|
|
}
|
|
|
- console.log(rowIndex,"rowindex",obj)
|
|
|
- console.log(this.tableData,"前");
|
|
|
- // this.tableData.splice(rowIndex, 1, obj);
|
|
|
- this.tableData.map((m,index)=>{
|
|
|
- if(index == rowIndex){
|
|
|
- return {...m,...obj}
|
|
|
- }else{
|
|
|
- return m
|
|
|
- }
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.tableData.splice(rowIndex, 1, obj);
|
|
|
})
|
|
|
- console.log(this.tableData,"后");
|
|
|
- // this.handleTableAdd();
|
|
|
+ this.handleTableAdd();
|
|
|
if (arr[1] === "1") {
|
|
|
this.changeEditTableData(obj, rowIndex, $event, scope);
|
|
|
} else {
|
|
@@ -4727,7 +4718,6 @@ export default {
|
|
|
element.longCalc = element.long + "";
|
|
|
element.wideCalc = element.wide + "";
|
|
|
element.highCalc = element.high + "";
|
|
|
- console.log("这是继");
|
|
|
element.part_detail.forEach((elem) => {
|
|
|
elem.material_detail_title = elem.material_detail_list[0].title;
|
|
|
elem.material_detail_id =
|