jiaosong
2023-09-20 d7e6b515aa68e9d17d8cec9dd3e93d77bc9b2b6e
company_admin/src/views/business/goods.vue
@@ -42,6 +42,17 @@
          </el-select>
          <!-- <el-input v-model="searchForm.status" placeholder="请输入状态 0启用 1禁用" @keypress.enter.native="search"></el-input> -->
        </el-form-item>
        <el-form-item label="类型" prop="type">
          <el-select v-model="searchForm.type" clearable placeholder="请选择">
            <el-option
              v-for="item in typeList"
              :key="item.id"
              :label="item.name"
              :value="item.id">
            </el-option>
          </el-select>
          <!-- <el-input v-model="searchForm.status" placeholder="请输入状态 0启用 1禁用" @keypress.enter.native="search"></el-input> -->
        </el-form-item>
        <section>
          <el-button type="primary" @click="search">搜索</el-button>
          <el-button @click="reset">重置</el-button>
@@ -87,6 +98,12 @@
          </el-table-column>
          <el-table-column prop="brandName" label="品牌" min-width="100px"></el-table-column>
          <el-table-column prop="categoryName" label="类别" min-width="100px"></el-table-column>
          <el-table-column prop="categoryName" label="类型" min-width="100px">
            <template slot-scope="{row}">
              <span v-if="row.type == 0">自建</span>
              <span v-else>拉取</span>
            </template>
          </el-table-column>
          <el-table-column label="指导价(元)" min-width="100px">
            <template slot-scope="{row}">
              <span v-if="row.type == 0">{{ row.zdPrice }}</span>
@@ -155,7 +172,8 @@
          name: '',
          status: '',
          categoryId: '',
          brandId: ''
          brandId: '',
          type: ''
        },
        ids: '',
        categoryList: [],
@@ -163,6 +181,10 @@
        statusList: [
          { name: '启用', id: 0 },
          { name: '禁用', id: 1 }
        ],
        typeList: [
          { name: '自建', id: 0 },
          { name: '拉取', id: 1 }
        ]
      }
    },
@@ -264,7 +286,9 @@
        }).then(res => {
          this.$tip.apiSuccess('更新成功')
        }).finally(() => {
          // this.search()
          this.search()
        }).catch(err => {
          this.$message.warning({ message: err.message })
        })
      },
      turnNum (nums) {