zuozhengqing
2024-04-10 62d36f52a6058e0483feceb8819475b31bc1f102
src/views/productManage/product/components/bomDialog.vue
@@ -66,8 +66,8 @@
      thatEditRow:this.editRow,
      isTableShow: true,
      form: {},
      // BomTableData:[],
      BomTableData: this.editRow.BomTableData,
      BomTableData:[],
      // BomTableData: this.editRow.BomTableData,
      // BomTableData: JSON.parse(this.editRow.BomTableData),
      // BomTableData: [{ id: 303, createdAt: "2024-02-05 18:02:47", updatedAt: "2024-02-05 18:02:47",name: "kg", isDefault: false }],
      work: 1,
@@ -107,9 +107,9 @@
  watch: {
  },
  created() {
    console.log(this.thatEditRow,"thatEditRow")
  },
  mounted() { },
  mounted() {
  },
  methods: {
    handleAdd() {
      this.BomTableData=this.thatEditRow.BomTableData
@@ -148,6 +148,7 @@
      console.log(this.codenumberList.replace(/,/g, ""));
    },
    switchChange(scope, val) {
      this.BomTableData=this.thatEditRow.BomTableData
      let arr = [];
      for (let i in this.BomTableData) {
        if (this.BomTableData[i].isDefault) {