|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<ul class="seek-list">
|
|
|
- <li v-for="(item, index) in purchaseManList">
|
|
|
+ <li v-for="(item, index) in purchaseManListData">
|
|
|
<p>
|
|
|
<span v-if="item.inquiry.enterprise && item.inquiry.enterprise.enName">{{[item.inquiry.enterprise.enName, user.logged] | enterpriseFilter}}</span>
|
|
|
<span v-else>{{[item.userName, user.logged] | userNameFilter}}</span>
|
|
|
@@ -49,7 +49,7 @@
|
|
|
</div>
|
|
|
</li>
|
|
|
</ul>
|
|
|
- <div class="none-state" v-if="!purchaseManList || !purchaseManList.length && !isDataChange">
|
|
|
+ <div class="none-state" v-if="!purchaseManListData || !purchaseManListData.length && !isDataChange">
|
|
|
<img src="/images/mobile/@2x/car@2x.png">
|
|
|
<p v-text="'抱歉,暂无求购信息'"></p>
|
|
|
</div>
|
|
|
@@ -77,7 +77,8 @@ export default {
|
|
|
activeIndex: -1,
|
|
|
remindText: '',
|
|
|
timeoutCount: 0,
|
|
|
- agreed: 0
|
|
|
+ agreed: 0,
|
|
|
+ purchaseManListData: []
|
|
|
}
|
|
|
},
|
|
|
props: ['userType', 'seekType', 'purchaseManList', 'isDataChange'],
|
|
|
@@ -114,10 +115,15 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ 'purchaseManList': {
|
|
|
+ handler () {
|
|
|
+ this.purchaseManListData = JSON.parse(JSON.stringify(this.purchaseManList))
|
|
|
+ },
|
|
|
+ immediate: true
|
|
|
+ }
|
|
|
+ },
|
|
|
computed: {
|
|
|
- // purchaseManList () {
|
|
|
- // return this.$store.state.applyPurchase.purchaseManList.purchaseManList.data
|
|
|
- // },
|
|
|
user() {
|
|
|
return this.$store.state.option.user
|
|
|
}
|
|
|
@@ -170,15 +176,15 @@ export default {
|
|
|
},
|
|
|
onSayPriceCancel: function(flag, quteId) {
|
|
|
if (flag) {
|
|
|
- this.purchaseManList[this.activeIndex].quoted = 1
|
|
|
- this.purchaseManList[this.activeIndex].quteId = quteId
|
|
|
+ this.purchaseManListData[this.activeIndex].quoted = 1
|
|
|
+ this.purchaseManListData[this.activeIndex].quteId = quteId
|
|
|
this.onRemind('报价成功')
|
|
|
}
|
|
|
this.showSayPriceBox = false
|
|
|
},
|
|
|
onSayPriceInfoCancel: function(flag) {
|
|
|
if (flag) {
|
|
|
- this.purchaseManList[this.activeIndex].agreed = 1
|
|
|
+ this.purchaseManListData[this.activeIndex].agreed = 1
|
|
|
this.onRemind('采纳成功')
|
|
|
}
|
|
|
this.showSayPriceInfoBox = false
|