|
|
@@ -32,7 +32,7 @@
|
|
|
<!--<a v-if="!userType && item.quoted == 1">已报价</a>-->
|
|
|
<!--<a v-if="!userType && item.remainingTime > 0 && (!item.quoted || item.quoted != 1) && (user.logged && ((item.inquiry.enterprise && user.data.enterprise && (item.inquiry.enterprise.uu === user.data.enterprise.uu)) || (!user.data.enterprise.uu && item.userUU == user.data.userUU && !item.inquiry.enterprise)))">自己发布的</a>-->
|
|
|
<a v-if="!(userType == 'saler' && seekType && seekType != 'wait') && (item.remainingTime > 0 && (!item.quoted || item.quoted != 1) && !(user.logged && ((item.inquiry.enterprise && user.data.enterprise && (item.inquiry.enterprise.uu === user.data.enterprise.uu)) || (!user.data.enterprise.uu && item.userUU == user.data.userUU && !item.inquiry.enterprise))))" @click="goSayPrice(item.id, index)">我要报价</a>
|
|
|
- <a v-if="((!userType || userType == 'buyer') && (seekType && seekType != 'wait')) || (userType == 'saler' && seekType && seekType != 'wait') || item.quoted == 1" @click="goSayPriceInfo(item.quteId || item.id, item.agreed)">查看报价</a>
|
|
|
+ <a v-if="((!userType || userType == 'buyer') && (seekType && seekType != 'wait')) || (userType == 'saler' && seekType && seekType != 'wait') || item.quoted == 1" @click="goSayPriceInfo(item.quteId || item.id, item.agreed, index)">查看报价</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</li>
|
|
|
@@ -114,10 +114,11 @@
|
|
|
this.showLoginBox = true
|
|
|
}
|
|
|
},
|
|
|
- goSayPriceInfo: function (id, agreed) {
|
|
|
+ goSayPriceInfo: function (id, agreed, index) {
|
|
|
this.userType === 'buyer' ? this.$store.dispatch('applyPurchase/loadBuyerInquiryDetail', {id: id}) : this.$store.dispatch('applyPurchase/loadVendorInquiryDetail', {id: id})
|
|
|
this.agreed = agreed
|
|
|
this.showSayPriceInfoBox = true
|
|
|
+ this.activeIndex = index
|
|
|
// '/mobile/applyPurchase/list/' + (userType ? (item.quteId || item.id) + '?type=' + userType : (item.quteId || item.id)) + (userType ? '&' : '?') + 'status=' + item.agreed
|
|
|
},
|
|
|
onSayPriceCancel: function (flag, quteId) {
|
|
|
@@ -130,6 +131,7 @@
|
|
|
},
|
|
|
onSayPriceInfoCancel: function (flag) {
|
|
|
if (flag) {
|
|
|
+ this.purchaseManList[this.activeIndex].agreed = 1
|
|
|
this.onRemind('采纳成功')
|
|
|
}
|
|
|
this.showSayPriceInfoBox = false
|