|
|
@@ -1,117 +1,122 @@
|
|
|
<template>
|
|
|
- <div class="say-price-info">
|
|
|
- <div v-if="isBuyer">
|
|
|
- <div class="base-info">
|
|
|
- <div class="content-line">
|
|
|
- 型号:<span>{{purchaseDetail.cmpCode || '-'}}</span>
|
|
|
+ <div class="mobile-modal">
|
|
|
+ <div class="mobile-modal-box">
|
|
|
+ <div class="mobile-modal-header">{{agreed == 1 ? '已采纳' : '已报价'}}<i class="icon-guanbi iconfont" @click="cancel"></i></div>
|
|
|
+ <div class="say-price-info">
|
|
|
+ <div v-if="isBuyer">
|
|
|
+ <div class="base-info">
|
|
|
+ <div class="content-line">
|
|
|
+ 型号:<span>{{purchaseDetail.cmpCode || '-'}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="content-line">
|
|
|
+ 品牌:<span>{{purchaseDetail.inbrand || '-'}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="content-line">
|
|
|
+ 规格:<span>{{purchaseDetail.spec || '-'}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="content-line">
|
|
|
+ 采购数量:<span>{{purchaseDetail.offerAmount || '-'}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="content-line">
|
|
|
+ 币种:<span>{{purchaseDetail.currency || '不限'}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="content-line">
|
|
|
+ 截止日期:<span>{{purchaseDetail.endDate | date}}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="base-info">
|
|
|
+ <div class="content-line">
|
|
|
+ 买家:<span>{{purchaseDetail.inquiry.enterprise.enName || purchaseDetail.userName}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="content-line">
|
|
|
+ 联系电话:<span>{{purchaseDetail.userTel || '-'}}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="base-info say-info" v-for="(item, index) in purchaseDetail.qutations" @click="selectQutation(index)">
|
|
|
+ <img v-if="(!item.agreed || item.agreed !== 1) && activeIndex == index" src="/images/mobile/@2x/applyPurchase/say-price-check.png" alt="">
|
|
|
+ <img v-if="(!item.agreed || item.agreed !== 1) && activeIndex != index" src="/images/mobile/@2x/applyPurchase/say-price-default.png" alt="">
|
|
|
+ <img v-if="item.agreed == 1" src="/images/mobile/@2x/applyPurchase/say-price-accept.png" alt="">
|
|
|
+ <div class="content-line">
|
|
|
+ {{item.vendName}}
|
|
|
+ </div>
|
|
|
+ <div class="content-line">
|
|
|
+ 报价人:<span v-if="item.user">{{item.user.userName | userNameFilter}}</span>
|
|
|
+ <span v-else>-</span>
|
|
|
+ </div>
|
|
|
+ <div class="content-line">
|
|
|
+ 电话:<span v-if="item.user">{{item.user.userTel}}</span>
|
|
|
+ <span v-else>-</span>
|
|
|
+ </div>
|
|
|
+ <div class="content-line date">
|
|
|
+ 交期(天):<span>{{item.leadtime}}</span>
|
|
|
+ </div>
|
|
|
+ <p>{{item.offerTime | date}}</p>
|
|
|
+ <div class="price-level">
|
|
|
+ <p>价格梯度:<span>(pcs)</span></p>
|
|
|
+ <ul>
|
|
|
+ <li v-for="replie in item.replies">
|
|
|
+ <span>{{replie.lapQty ? replie.lapQty + '+' : '-'}}</span>
|
|
|
+ <span>{{replie.price ? (purchaseDetail.currency == 'USD' ? '$' : '¥') + replie.price : '-'}}</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <a class="say-price-btn" v-if="purchaseDetail.agreed != 1" @click="acceptQutation">采纳报价</a>
|
|
|
</div>
|
|
|
- <div class="content-line">
|
|
|
- 品牌:<span>{{purchaseDetail.inbrand || '-'}}</span>
|
|
|
- </div>
|
|
|
- <div class="content-line">
|
|
|
- 规格:<span>{{purchaseDetail.spec || '-'}}</span>
|
|
|
- </div>
|
|
|
- <div class="content-line">
|
|
|
- 采购数量:<span>{{purchaseDetail.offerAmount || '-'}}</span>
|
|
|
- </div>
|
|
|
- <div class="content-line">
|
|
|
- 币种:<span>{{purchaseDetail.currency || '不限'}}</span>
|
|
|
- </div>
|
|
|
- <div class="content-line">
|
|
|
- 截止日期:<span>{{purchaseDetail.endDate | date}}</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="base-info">
|
|
|
- <div class="content-line">
|
|
|
- 买家:<span>{{purchaseDetail.inquiry.enterprise.enName || purchaseDetail.userName}}</span>
|
|
|
- </div>
|
|
|
- <div class="content-line">
|
|
|
- 联系电话:<span>{{purchaseDetail.userTel || '-'}}</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="base-info say-info" v-for="(item, index) in purchaseDetail.qutations" @click="selectQutation(index)">
|
|
|
- <img v-if="(!item.agreed || item.agreed !== 1) && activeIndex == index" src="/images/mobile/@2x/applyPurchase/say-price-check.png" alt="">
|
|
|
- <img v-if="(!item.agreed || item.agreed !== 1) && activeIndex != index" src="/images/mobile/@2x/applyPurchase/say-price-default.png" alt="">
|
|
|
- <img v-if="item.agreed == 1" src="/images/mobile/@2x/applyPurchase/say-price-accept.png" alt="">
|
|
|
- <div class="content-line">
|
|
|
- {{item.vendName}}
|
|
|
- </div>
|
|
|
- <div class="content-line">
|
|
|
- 报价人:<span v-if="item.user">{{item.user.userName | userNameFilter}}</span>
|
|
|
- <span v-else>-</span>
|
|
|
- </div>
|
|
|
- <div class="content-line">
|
|
|
- 电话:<span v-if="item.user">{{item.user.userTel}}</span>
|
|
|
- <span v-else>-</span>
|
|
|
- </div>
|
|
|
- <div class="content-line date">
|
|
|
- 交期(天):<span>{{item.leadtime}}</span>
|
|
|
- </div>
|
|
|
- <p>{{item.offerTime | date}}</p>
|
|
|
- <div class="price-level">
|
|
|
- <p>价格梯度:<span>(pcs)</span></p>
|
|
|
- <ul>
|
|
|
- <li v-for="replie in item.replies">
|
|
|
- <span>{{replie.lapQty ? replie.lapQty + '+' : '-'}}</span>
|
|
|
- <span>{{replie.price ? (purchaseDetail.currency == 'USD' ? '$' : '¥') + replie.price : '-'}}</span>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <a class="say-price-btn" v-if="purchaseDetail.agreed != 1" @click="acceptQutation">采纳报价</a>
|
|
|
- </div>
|
|
|
- <div v-if="!isBuyer">
|
|
|
- <div class="base-info">
|
|
|
- <div class="content-line">
|
|
|
- 型号:<span>{{purchaseDetail.cmpCode || '-'}}</span>
|
|
|
- </div>
|
|
|
- <div class="content-line">
|
|
|
- 品牌:<span>{{purchaseDetail.inbrand || '-'}}</span>
|
|
|
- </div>
|
|
|
- <div class="content-line">
|
|
|
- 规格:<span>{{purchaseDetail.spec || '-'}}</span>
|
|
|
- </div>
|
|
|
- <div class="content-line">
|
|
|
- 采购数量:<span>{{purchaseDetail.offerAmount || '-'}}</span>
|
|
|
- </div>
|
|
|
- <div class="content-line">
|
|
|
- 币种:<span>{{purchaseDetail.currency || '不限'}}</span>
|
|
|
- </div>
|
|
|
- <div class="content-line">
|
|
|
- 截止日期:<span>{{purchaseDetail.endDate | date}}</span>
|
|
|
- </div>
|
|
|
- <div class="content-line">
|
|
|
- 买家:<span>{{purchaseDetail.inquiry.enterprise.enName || purchaseDetail.userName}}</span>
|
|
|
- </div>
|
|
|
- <div class="content-line">
|
|
|
- 联系电话:<span>{{purchaseDetail.userTel || '-'}}</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="base-info">
|
|
|
- <div class="content-line">
|
|
|
- 报价人:<span>{{purchaseDetail.vendName || purchaseDetail.enterprise.enName}}</span>
|
|
|
- </div>
|
|
|
- <div class="content-line">
|
|
|
- 联系电话:<span>{{purchaseDetail.enterprise.enTel || '-'}}</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="base-info say-info">
|
|
|
- <div class="content-line date">
|
|
|
- 交期(天):<span>{{purchaseDetail.leadtime}}</span>
|
|
|
- </div>
|
|
|
- <p>{{purchaseDetail.offerTime | date}}</p>
|
|
|
- <div class="price-level vendor">
|
|
|
- <p>价格梯度:<span>(pcs)</span></p>
|
|
|
- <ul>
|
|
|
- <li v-for="replie in purchaseDetail.replies">
|
|
|
- <span>{{replie.lapQty ? replie.lapQty + '+' : '-'}}</span>
|
|
|
- <span>{{replie.price ? (purchaseDetail.currency == 'USD' ? '$' : '¥') + replie.price : '-'}}</span>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
+ <div v-if="!isBuyer">
|
|
|
+ <div class="base-info">
|
|
|
+ <div class="content-line">
|
|
|
+ 型号:<span>{{purchaseDetail.cmpCode || '-'}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="content-line">
|
|
|
+ 品牌:<span>{{purchaseDetail.inbrand || '-'}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="content-line">
|
|
|
+ 规格:<span>{{purchaseDetail.spec || '-'}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="content-line">
|
|
|
+ 采购数量:<span>{{purchaseDetail.offerAmount || '-'}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="content-line">
|
|
|
+ 币种:<span>{{purchaseDetail.currency || '不限'}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="content-line">
|
|
|
+ 截止日期:<span>{{purchaseDetail.endDate | date}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="content-line">
|
|
|
+ 买家:<span>{{purchaseDetail.inquiry.enterprise.enName || purchaseDetail.userName}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="content-line">
|
|
|
+ 联系电话:<span>{{purchaseDetail.userTel || '-'}}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="base-info">
|
|
|
+ <div class="content-line">
|
|
|
+ 报价人:<span>{{purchaseDetail.vendName || purchaseDetail.enterprise.enName}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="content-line">
|
|
|
+ 联系电话:<span>{{purchaseDetail.enterprise.enTel || '-'}}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="base-info say-info">
|
|
|
+ <div class="content-line date">
|
|
|
+ 交期(天):<span>{{purchaseDetail.leadtime}}</span>
|
|
|
+ </div>
|
|
|
+ <p>{{purchaseDetail.offerTime | date}}</p>
|
|
|
+ <div class="price-level vendor">
|
|
|
+ <p>价格梯度:<span>(pcs)</span></p>
|
|
|
+ <ul>
|
|
|
+ <li v-for="replie in purchaseDetail.replies">
|
|
|
+ <span>{{replie.lapQty ? replie.lapQty + '+' : '-'}}</span>
|
|
|
+ <span>{{replie.price ? (purchaseDetail.currency == 'USD' ? '$' : '¥') + replie.price : '-'}}</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+ <remind-box :title="remindText" :timeoutCount="timeoutCount"></remind-box>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <remind-box :title="remindText" :timeoutCount="timeoutCount"></remind-box>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -127,6 +132,7 @@
|
|
|
components: {
|
|
|
RemindBox
|
|
|
},
|
|
|
+ props: ['agreed'],
|
|
|
filters: {
|
|
|
date: function (date) {
|
|
|
if (date) {
|
|
|
@@ -156,6 +162,9 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ cancel: function () {
|
|
|
+ this.$emit('cancelSayPriceInfoAction', false)
|
|
|
+ },
|
|
|
selectQutation: function (index) {
|
|
|
this.activeIndex = this.activeIndex === index ? -1 : index
|
|
|
},
|
|
|
@@ -165,8 +174,9 @@
|
|
|
this.$http.post('/inquiry/buyer/decide?id=' + obj.id + '&status=1')
|
|
|
.then(response => {
|
|
|
// this.$message.success('采纳成功')
|
|
|
- this.onRemind('采纳成功')
|
|
|
- this.$route.query.type === 'saler' ? this.$store.dispatch('applyPurchase/loadVendorInquiryDetail', {id: this.$route.params.id}) : this.$store.dispatch('applyPurchase/loadBuyerInquiryDetail', {id: this.$route.params.id})
|
|
|
+// this.onRemind('采纳成功')
|
|
|
+ this.$emit('cancelSayPriceInfoAction', true)
|
|
|
+// this.$route.query.type === 'saler' ? this.$store.dispatch('applyPurchase/loadVendorInquiryDetail', {id: this.$route.params.id}) : this.$store.dispatch('applyPurchase/loadBuyerInquiryDetail', {id: this.$route.params.id})
|
|
|
}, err => {
|
|
|
console.log(err)
|
|
|
// this.$message.success('系统错误')
|
|
|
@@ -185,89 +195,94 @@
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
- .say-price-info {
|
|
|
- background: #f3f3f3;
|
|
|
- padding: .18rem 0;
|
|
|
- position: absolute;
|
|
|
- top: .88rem;
|
|
|
- bottom: 1rem;
|
|
|
- width: 100%;
|
|
|
- overflow-y: auto;
|
|
|
- .base-info {
|
|
|
- &.say-info {
|
|
|
- height: 4.54rem;
|
|
|
- position: relative;
|
|
|
- > img {
|
|
|
- position: absolute;
|
|
|
- right: 0;
|
|
|
- top: 0;
|
|
|
- width: 1rem;
|
|
|
- height: 1rem;
|
|
|
- }
|
|
|
- .content-line {
|
|
|
- width: 4.55rem;
|
|
|
- span {
|
|
|
- color: #333;
|
|
|
- }
|
|
|
- &.date {
|
|
|
- span {
|
|
|
- color: #ef5042;
|
|
|
+ .mobile-modal {
|
|
|
+ .mobile-modal-box {
|
|
|
+ top: 5%;
|
|
|
+ left: 3%;
|
|
|
+ right: 3%;
|
|
|
+ width: auto;
|
|
|
+ .say-price-info {
|
|
|
+ background: #f3f3f3;
|
|
|
+ padding: .18rem 0;
|
|
|
+ width: 100%;
|
|
|
+ overflow-y: auto;
|
|
|
+ .base-info {
|
|
|
+ &.say-info {
|
|
|
+ height: 4.54rem;
|
|
|
+ position: relative;
|
|
|
+ > img {
|
|
|
+ position: absolute;
|
|
|
+ right: 0;
|
|
|
+ top: 0;
|
|
|
+ width: 1rem;
|
|
|
+ height: 1rem;
|
|
|
}
|
|
|
- }
|
|
|
- }
|
|
|
- > p {
|
|
|
- font-size: .24rem;
|
|
|
- color: #999;
|
|
|
- }
|
|
|
- .price-level {
|
|
|
- font-size: .26rem;
|
|
|
- position: absolute;
|
|
|
- top: 1.3rem;
|
|
|
- right: .3rem;
|
|
|
- width: 4rem;
|
|
|
- text-align: center;
|
|
|
- p {
|
|
|
- margin-bottom: .1rem;
|
|
|
- span {
|
|
|
- color: #666;
|
|
|
- }
|
|
|
- }
|
|
|
- ul {
|
|
|
- li {
|
|
|
- height: .52rem;
|
|
|
+ .content-line {
|
|
|
+ width: 4.55rem;
|
|
|
span {
|
|
|
- height: .52rem;
|
|
|
- line-height: .52rem;
|
|
|
- padding-left: .22rem;
|
|
|
- text-align: left;
|
|
|
- display: inline-block;
|
|
|
- border-top: .02rem solid #7e7e7e;
|
|
|
- border-left: .02rem solid #7e7e7e;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- white-space: nowrap;
|
|
|
- &:first-child {
|
|
|
- width: 45%;
|
|
|
+ color: #333;
|
|
|
+ }
|
|
|
+ &.date {
|
|
|
+ span {
|
|
|
+ color: #ef5042;
|
|
|
}
|
|
|
- &:last-child {
|
|
|
- width: 55%;
|
|
|
- border-right: .02rem solid #7e7e7e;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ > p {
|
|
|
+ font-size: .24rem;
|
|
|
+ color: #999;
|
|
|
+ }
|
|
|
+ .price-level {
|
|
|
+ font-size: .26rem;
|
|
|
+ position: absolute;
|
|
|
+ top: 1.3rem;
|
|
|
+ right: .3rem;
|
|
|
+ width: 4rem;
|
|
|
+ text-align: center;
|
|
|
+ p {
|
|
|
+ margin-bottom: .1rem;
|
|
|
+ span {
|
|
|
+ color: #666;
|
|
|
}
|
|
|
}
|
|
|
- &:last-child {
|
|
|
- border-bottom: .02rem solid #7e7e7e;
|
|
|
+ ul {
|
|
|
+ li {
|
|
|
+ height: .52rem;
|
|
|
+ span {
|
|
|
+ height: .52rem;
|
|
|
+ line-height: .52rem;
|
|
|
+ padding-left: .22rem;
|
|
|
+ text-align: left;
|
|
|
+ display: inline-block;
|
|
|
+ border-top: .02rem solid #7e7e7e;
|
|
|
+ border-left: .02rem solid #7e7e7e;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
+ &:first-child {
|
|
|
+ width: 45%;
|
|
|
+ }
|
|
|
+ &:last-child {
|
|
|
+ width: 55%;
|
|
|
+ border-right: .02rem solid #7e7e7e;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &:last-child {
|
|
|
+ border-bottom: .02rem solid #7e7e7e;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &.vendor {
|
|
|
+ position: unset;
|
|
|
+ margin: .15rem auto 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- &.vendor {
|
|
|
- position: unset;
|
|
|
- margin: .15rem auto 0;
|
|
|
- }
|
|
|
+ }
|
|
|
+ .say-price-btn {
|
|
|
+ margin: .37rem auto .7rem;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .say-price-btn {
|
|
|
- margin: .37rem auto .7rem;
|
|
|
- }
|
|
|
}
|
|
|
</style>
|