|
@@ -43,11 +43,6 @@
|
|
|
<productBrand id="subsidyAdd-productBrandSn" v-model="queryParam.productBrandSn"></productBrand>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
- <a-form-model-item label="商城类目">
|
|
|
- <mallCategory id="subsidyAdd-category" @change="changeProductsCategory" v-model="category"></mallCategory>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
<a-col flex="auto" style="margin-bottom: 10px;">
|
|
|
<a-button type="primary" @click="$refs.table.refresh(true)" id="subsidyAdd-refresh">查询</a-button>
|
|
|
<a-button style="margin-left: 5px" @click="resetSearchForm" id="subsidyAdd-reset">重置</a-button>
|
|
@@ -61,6 +56,7 @@
|
|
|
id="subsidyAdd-name"
|
|
|
v-model.trim="subsidyAmount"
|
|
|
style="width: 20%;margin:0 10px;"
|
|
|
+ :min="0.01"
|
|
|
:max="99999999"
|
|
|
:precision="2"
|
|
|
:step="1"
|
|
@@ -103,12 +99,11 @@ import { STable } from '@/components'
|
|
|
// 组件
|
|
|
import productType from '@/views/common/productType.js'
|
|
|
import productBrand from '@/views/common/productBrand.js'
|
|
|
-import mallCategory from '@/views/common/mallCategory.js'
|
|
|
// 接口
|
|
|
import { queryProductPageList } from '@/api/shopProductSubsidy'
|
|
|
export default {
|
|
|
name: 'SubsidyAddModal',
|
|
|
- components: { STable, productType, productBrand, mallCategory },
|
|
|
+ components: { STable, productType, productBrand },
|
|
|
mixins: [commonMixin],
|
|
|
props: {
|
|
|
openModal: {
|
|
@@ -132,8 +127,7 @@ export default {
|
|
|
productBrandSn: undefined, // 产品品牌
|
|
|
productTypeSn1: '', // 产品一级分类
|
|
|
productTypeSn2: '', // 产品二级分类
|
|
|
- productTypeSn3: '', // 产品三级分类
|
|
|
- categorySn: undefined // 商城类目
|
|
|
+ productTypeSn3: '' // 产品三级分类
|
|
|
},
|
|
|
subsidyAmount: undefined, // 产品抵扣
|
|
|
rowSelectionInfo: null, // 已选产品
|
|
@@ -187,10 +181,6 @@ export default {
|
|
|
this.queryParam.productTypeSn2 = val[1] ? val[1] : ''
|
|
|
this.queryParam.productTypeSn3 = val[2] ? val[2] : ''
|
|
|
},
|
|
|
- // 商城类目
|
|
|
- changeProductsCategory (val) {
|
|
|
- this.queryParam.categorySn = (val[0] && val[1]) ? val[1] : (val[0] && !val[1]) ? val[0] : undefined
|
|
|
- },
|
|
|
// 批量添加
|
|
|
handlePlAdd () {
|
|
|
if (!this.selectTotal) {
|
|
@@ -216,7 +206,6 @@ export default {
|
|
|
this.queryParam.productTypeSn1 = ''
|
|
|
this.queryParam.productTypeSn2 = ''
|
|
|
this.queryParam.productTypeSn3 = ''
|
|
|
- this.queryParam.categorySn = undefined
|
|
|
this.productType = []
|
|
|
this.category = []
|
|
|
this.rowSelectionInfo = null
|