zuozhengqing
2024-03-29 bc0b37e98ba17b8a4c97d853c87e2b12e447b012
src/views/supplierManage/supplier/index.vue
@@ -58,7 +58,7 @@
            :amount-view="false"
            :show-screen="false"
            :show-action-btn="false"
            :placeholder="'请输入产品名称'"
            :placeholder="'请输入产品名称/产品规格/产品编码'"
            @searchClick="onProductFilterSearch"
          >
            <template slot="leftButton">
@@ -341,7 +341,7 @@
    // 搜索产品
    onProductFilterSearch(searchText) {
      this.productPagerOptions.currPage = 1
      this.getProductList("name", searchText)
      this.getProductList("keyword", searchText)
    },
    // 新建供应商
    addBtnClick() {
@@ -356,7 +356,7 @@
    async enableClick(row, value) {
      let status = value === "启用" ? 1 : 0
      await changeSupplierStatus({
        id:Number(row.id),
        id: Number(row.id),
        status: status
      }).then((res) => {
        if (res.code === 200) {
@@ -446,7 +446,7 @@
      this.editPurchaseConfig.title = "新建"
      this.editPurchaseConfig.infomation = {
        supplierId: this.selectRow.id,
        purchaseTypeId:"2",
        purchaseTypeId: "2",
        supplierName: this.selectRow.name
      }
    }