|
|
@@ -88,9 +88,9 @@
|
|
|
</p>
|
|
|
<p class="remain-time" v-else><span>已截止</span></p>
|
|
|
<!--<a v-if="!userType && item.quoted == 1">已报价</a>-->
|
|
|
- <a v-if="isSelfSeek(item)" class="self-publish" @click="onRemind('此为贵公司的求购')">我要报价</a>
|
|
|
+ <a v-if="isSelfSeek(item)" class="self-publish" @click="setRemindText('此为贵公司的求购')">我要报价</a>
|
|
|
<a v-if="canSayPrice(item)" @click="goSayPrice(item.itemId || item.id, index)">我要报价</a>
|
|
|
- <!--<a v-if="item.newId" class="self-publish" @click="onRemind('您已报价')">我要报价</a>-->
|
|
|
+ <!--<a v-if="item.newId" class="self-publish" @click="setRemindText('您已报价')">我要报价</a>-->
|
|
|
<a v-if="canSeeInfo(item)" @click="goSayPriceInfo(item.newId || item.quteId || item.id, item.agreed, index)">查看报价</a>
|
|
|
</template>
|
|
|
</div>
|
|
|
@@ -201,19 +201,21 @@ export default {
|
|
|
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.authorityInterceptor(this.baseUrls.vendorBusinessSayPrice, () => {
|
|
|
+ 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
|
|
|
})
|
|
|
- this.showSayPriceBox = true
|
|
|
- this.activeIndex = index
|
|
|
} else {
|
|
|
- this.onRemind('抱歉,您需开通卖家功能才可报价')
|
|
|
+ this.setRemindText('抱歉,您需开通卖家功能才可报价')
|
|
|
}
|
|
|
} else {
|
|
|
- this.onRemind('个人账户暂不可报价')
|
|
|
+ this.setRemindText('个人账户暂不可报价')
|
|
|
}
|
|
|
} else {
|
|
|
this.url = this.$route.fullPath
|
|
|
@@ -228,7 +230,7 @@ export default {
|
|
|
this.activeIndex = index
|
|
|
}, err => {
|
|
|
console.log(err)
|
|
|
- this.onRemind('获取报价信息失败')
|
|
|
+ this.setRemindText('获取报价信息失败')
|
|
|
})
|
|
|
// '/mobile/applyPurchase/list/' + (userType ? (item.quteId || item.id) + '?type=' + userType : (item.quteId || item.id)) + (userType ? '&' : '?') + 'status=' + item.agreed
|
|
|
},
|
|
|
@@ -249,18 +251,18 @@ export default {
|
|
|
if (flag) {
|
|
|
this.purchaseManListData[this.activeIndex].quoted = 1
|
|
|
this.purchaseManListData[this.activeIndex].quteId = quteId
|
|
|
- this.onRemind('感谢您参与报价,敬请期待回复')
|
|
|
+ this.setRemindText('感谢您参与报价,敬请期待回复')
|
|
|
}
|
|
|
this.showSayPriceBox = false
|
|
|
},
|
|
|
onSayPriceInfoCancel: function(flag) {
|
|
|
if (flag) {
|
|
|
this.purchaseManListData[this.activeIndex].agreed = 1
|
|
|
- this.onRemind('采纳成功')
|
|
|
+ this.setRemindText('采纳成功')
|
|
|
}
|
|
|
this.showSayPriceInfoBox = false
|
|
|
},
|
|
|
- onRemind: function(str) {
|
|
|
+ setRemindText: function(str) {
|
|
|
this.remindText = str
|
|
|
this.timeoutCount++
|
|
|
},
|