haoxuan
2024-04-19 75b4bf4554da6622cfe00f577829b256fc44f32c
src/views/productManage/product/index.vue
@@ -160,6 +160,12 @@
    setTableColumn(showcol) {
      let tableColumn = [
        {
          label: "产品编码",
          prop: "id",
          isShowColumn: true,
          default: true
        },
        {
          label: "产品名称",
          prop: "name",
          isShowColumn: true,
@@ -167,7 +173,7 @@
        },
        {
          label: "产品规格",
          prop: "spex",
          prop: "specs",
          isShowColumn: showcol.includes("产品规格"),
          default: false
        },
@@ -286,7 +292,9 @@
    // 新建
    addBtnClick() {
      this.editConfig.title = "新建"
      this.editConfig.infomation = {}
      this.editConfig.infomation = {
        purchaseTypeList:[]
      }
      this.editConfig.visible = true
    },
    // 详情
@@ -303,7 +311,7 @@
      this.editConfig.autoEdit = true
      this.editConfig.title = "编辑"
      let imageSrc = row.attachmentList?.length > 0 ? row.attachmentList[0].FileUrl : ""
      this.editConfig.infomation = { ...row, imageSrc: imageSrc }
      this.editConfig.infomation = { ...row, imageSrc: imageSrc,moreUnitList:row.moreUnitList?row.moreUnitList:[] }
      this.editConfig.visible = true
    },
    // 切换列表展现形式