|
@@ -108,7 +108,7 @@
|
|
|
<script>
|
|
|
import { STable } from '@/components'
|
|
|
import { productBrandQuery } from '@/api/productBrand'
|
|
|
-import { productTypeQuery } from '@/api/productType'
|
|
|
+import { productTypeQuery, productTypeQueryAll } from '@/api/productType'
|
|
|
import { dealerScopeValidProduct } from '@/api/dealerScope'
|
|
|
import { productPricedList, productPricingList } from '@/api/product'
|
|
|
export default {
|
|
@@ -368,13 +368,23 @@ export default {
|
|
|
},
|
|
|
// 产品分类 列表
|
|
|
getProductType () {
|
|
|
- productTypeQuery({}).then(res => {
|
|
|
- if (res.status == 200) {
|
|
|
- this.productTypeList = res.data
|
|
|
- } else {
|
|
|
- this.productTypeList = []
|
|
|
- }
|
|
|
- })
|
|
|
+ if (this.type != 'supplier' && this.type != 'dealership') { // 促销
|
|
|
+ productTypeQueryAll({}).then(res => {
|
|
|
+ if (res.status == 200) {
|
|
|
+ this.productTypeList = res.data
|
|
|
+ } else {
|
|
|
+ this.productTypeList = []
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ productTypeQuery({}).then(res => {
|
|
|
+ if (res.status == 200) {
|
|
|
+ this.productTypeList = res.data
|
|
|
+ } else {
|
|
|
+ this.productTypeList = []
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
watch: {
|