yangfeng
2024-03-07 5de621e943d9605d10e2ac5d46658c0626a68caa
src/views/supplierManage/supplier/index.vue
@@ -356,7 +356,7 @@
    async enableClick(row, value) {
      let status = value === "启用" ? 1 : 0
      await changeSupplierStatus({
        id: row.ID,
        id:Number(row.id),
        status: status
      }).then((res) => {
        if (res.code === 200) {
@@ -385,7 +385,6 @@
    },
    // 修改产品
    editClick(row) {
      console.log(row)
      this.newProductConfig.visible = true
      this.newProductConfig.title = "修改"
      this.newProductConfig.infomation = { ...row }
@@ -418,7 +417,6 @@
      this.selValueList = list
    },
    tableRowClick(row) {
      console.log(row)
      this.productPagerOptions.currPage = 1
      this.selectRow = row
      this.supplierId = row.id
@@ -426,7 +424,7 @@
    },
    // 详情
    async selCommonClick(row) {
      await getPurchaseList({ pageSize: 10, page: 1, supplierId: row.ID }).then((res) => {
      await getPurchaseList({ pageSize: 10, page: 1, supplierId: Number(row.id) }).then((res) => {
        this.commonDetail.productListInfo = res.data.list
      })
      this.commonDetail.visible = true
@@ -448,6 +446,7 @@
      this.editPurchaseConfig.title = "新建"
      this.editPurchaseConfig.infomation = {
        supplierId: this.selectRow.id,
        purchaseTypeId:"2",
        supplierName: this.selectRow.name
      }
    }