|
@@ -63,6 +63,16 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="供应商:">
|
|
|
+ <el-select v-model="listQuery.compId" placeholder="全部" clearable>
|
|
|
+ <el-option
|
|
|
+ v-for="item in compList"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
</el-card>
|
|
@@ -293,12 +303,13 @@
|
|
|
updateRecommendStatus,
|
|
|
updatePublishStatus,
|
|
|
updateVerifyStatus,
|
|
|
- } from '@/api/product'
|
|
|
- import {fetchList as fetchSkuStockList,update as updateSkuStockList} from '@/api/skuStock'
|
|
|
- import {fetchList as fetchProductAttrList} from '@/api/productAttr'
|
|
|
- import {fetchList as fetchBrandList} from '@/api/brand'
|
|
|
- import {fetchListWithChildren} from '@/api/productCate'
|
|
|
- import {verifyproduct,delproduct,updateproduct,createproduct} from '@/api/permissions'
|
|
|
+ } from '@/api/product';
|
|
|
+ import {fetchList as fetchSkuStockList,update as updateSkuStockList} from '@/api/skuStock';
|
|
|
+ import {fetchList as fetchProductAttrList} from '@/api/productAttr';
|
|
|
+ import {fetchList as fetchBrandList} from '@/api/brand';
|
|
|
+ import {fetchListWithChildren} from '@/api/productCate';
|
|
|
+ import {selectCompList} from '@/api/product';
|
|
|
+ import {verifyproduct,delproduct,updateproduct,createproduct} from '@/api/permissions';
|
|
|
const defaultListQuery = {
|
|
|
keyword: null,
|
|
|
pageNum: 1,
|
|
@@ -307,7 +318,8 @@
|
|
|
verifyStatus: null,
|
|
|
productSn: null,
|
|
|
productCategoryId: null,
|
|
|
- brandId: null
|
|
|
+ brandId: null,
|
|
|
+ compId:null,
|
|
|
};
|
|
|
export default {
|
|
|
name: "productList",
|
|
@@ -318,6 +330,7 @@
|
|
|
updateproduct,
|
|
|
delproduct,
|
|
|
verifyproduct,
|
|
|
+ compList:[],
|
|
|
editSkuInfo:{
|
|
|
dialogVisible:false,
|
|
|
productId:null,
|
|
@@ -391,6 +404,7 @@
|
|
|
this.getList();
|
|
|
this.getBrandList();
|
|
|
this.getProductCateList();
|
|
|
+ this.getcompList();
|
|
|
},
|
|
|
watch: {
|
|
|
selectProductCateValue: function (newValue) {
|
|
@@ -412,6 +426,13 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ /** 获取供应商下拉列表 */
|
|
|
+ getcompList() {
|
|
|
+ selectCompList().then(response => {
|
|
|
+ // console.log("获取供应商下拉列表",response);
|
|
|
+ this.compList = response.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
getProductSkuSp(row, index) {
|
|
|
let spData = JSON.parse(row.spData);
|
|
|
if(spData!=null&&index<spData.length){
|
|
@@ -589,6 +610,7 @@
|
|
|
handleResetSearch() {
|
|
|
this.selectProductCateValue = [];
|
|
|
this.listQuery = Object.assign({}, defaultListQuery);
|
|
|
+ this.getList();
|
|
|
},
|
|
|
handleDelete(index, row){
|
|
|
this.$confirm('是否要进行删除操作?', '提示', {
|