|
|
@@ -205,16 +205,41 @@ export default {
|
|
|
},
|
|
|
goSayPrice(id) {
|
|
|
if (this.user.logged) {
|
|
|
- this.$store.dispatch('applyPurchase/loadPurchaseManDetail', {
|
|
|
- itemId: id,
|
|
|
- enuu: this.$store.state.option.user.data.enterprise
|
|
|
- ? this.$store.state.option.user.data.enterprise.uu
|
|
|
- : null
|
|
|
- })
|
|
|
- this.showSayPriceBox = true
|
|
|
+ if (this.user.data.enterprise.uu) {
|
|
|
+ if (
|
|
|
+ this.user.data.enterprise.isVendor &&
|
|
|
+ this.user.data.enterprise.isVendor !== '1690'
|
|
|
+ ) {
|
|
|
+ this.$store.dispatch('applyPurchase/loadPurchaseManDetail', {
|
|
|
+ itemId: id,
|
|
|
+ enuu: this.$store.state.option.user.data.enterprise
|
|
|
+ ? this.$store.state.option.user.data.enterprise.uu
|
|
|
+ : null
|
|
|
+ })
|
|
|
+ this.showSayPriceBox = true
|
|
|
+ // this.activeIndex = index
|
|
|
+ } else {
|
|
|
+ this.onRemind('抱歉,您需开通卖家功能才可报价')
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.onRemind('个人账户暂不可报价')
|
|
|
+ }
|
|
|
} else {
|
|
|
this.showLoginBox = true
|
|
|
}
|
|
|
+ return false
|
|
|
+
|
|
|
+ // if (this.user.logged) {
|
|
|
+ // this.$store.dispatch('applyPurchase/loadPurchaseManDetail', {
|
|
|
+ // itemId: id,
|
|
|
+ // enuu: this.$store.state.option.user.data.enterprise
|
|
|
+ // ? this.$store.state.option.user.data.enterprise.uu
|
|
|
+ // : null
|
|
|
+ // })
|
|
|
+ // this.showSayPriceBox = true
|
|
|
+ // } else {
|
|
|
+ // this.showLoginBox = true
|
|
|
+ // }
|
|
|
},
|
|
|
sendApplyPurchase() {
|
|
|
console.log(this.user)
|