李林
2024-03-18 07506d995a2ecff9decc0b3545caf1052308a228
src/components/do/b1-ins-order/add.vue
@@ -220,7 +220,7 @@
            <el-table-column label="操作" width="65" align="center">
               <template slot-scope="scope">
                  {{scope.index}}
                  <el-button type="text" size="small" @click="sampleList.splice(scope.$index, 1)" :disabled="active!=1">删除</el-button>
                  <el-button type="text" size="small" @click="delSampleAndProduct" :disabled="active!=1">删除</el-button>
               </template>
            </el-table-column>
         </el-table>
@@ -756,6 +756,10 @@
          this.sampleList = obj.sampleList;
            })
      },
      delSampleAndProduct(){
        this.sampleList.splice(scope.$index, 1)
        this.productList = []
      }
      }
   }
</script>