|
@@ -1,61 +1,63 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <div class="mobile-modal" v-if="showSayPriceBox">
|
|
|
|
|
|
|
+ <div class="mobile-modal" v-show="showSayPriceBox" @touchmove.self="preventTouchMove($event)">
|
|
|
<div class="mobile-modal-box">
|
|
<div class="mobile-modal-box">
|
|
|
<div class="mobile-modal-header">编辑报价<i class="icon-guanbi iconfont" @click="cancel"></i></div>
|
|
<div class="mobile-modal-header">编辑报价<i class="icon-guanbi iconfont" @click="cancel"></i></div>
|
|
|
- <div class="say-price">
|
|
|
|
|
- <div class="base-info">
|
|
|
|
|
- <div class="content-line">
|
|
|
|
|
- 类目(产品名称):<span>{{purchaseDetail.prodTitle || '-'}}</span>
|
|
|
|
|
|
|
+ <div class="say-price" ref="mobileModalBox">
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <div class="base-info">
|
|
|
|
|
+ <div class="content-line">
|
|
|
|
|
+ 类目(产品名称):<span>{{purchaseDetail.prodTitle || '-'}}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <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">
|
|
|
|
|
+ 采购数量(PCS):<span>{{purchaseDetail.needquantity || '-'}}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!--<div class="content-line">
|
|
|
|
|
+ 币种:<span>{{purchaseDetail.custCurrency || '不限'}}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="content-line">
|
|
|
|
|
+ 生产日期:<span>{{purchaseDetail.produceDate || '-'}}</span>
|
|
|
|
|
+ </div>-->
|
|
|
|
|
+ <div class="content-line">
|
|
|
|
|
+ 截止日期:<span>{{purchaseDetail.endDate | date}}</span>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
- <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">
|
|
|
|
|
- 采购数量(PCS):<span>{{purchaseDetail.needquantity || '-'}}</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- <!--<div class="content-line">
|
|
|
|
|
- 币种:<span>{{purchaseDetail.custCurrency || '不限'}}</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="content-line">
|
|
|
|
|
- 生产日期:<span>{{purchaseDetail.produceDate || '-'}}</span>
|
|
|
|
|
- </div>-->
|
|
|
|
|
- <div class="content-line">
|
|
|
|
|
- 截止日期:<span>{{purchaseDetail.endDate | date}}</span>
|
|
|
|
|
|
|
+ <div class="form-list">
|
|
|
|
|
+ <div class="form-title">
|
|
|
|
|
+ <span class="fl">价格梯度<span>(PCS)</span></span>
|
|
|
|
|
+ <span class="fr">
|
|
|
|
|
+ <!--<span v-text="sayPriceObj.currency" @click="setShowCurrencyList($event)"></span>-->
|
|
|
|
|
+ <span v-text="sayPriceObj.currency" @click="setShowCurrencyList($event)"></span>
|
|
|
|
|
+ <!--<span v-if="purchaseDetail.custCurrency" v-text="purchaseDetail.custCurrency"></span>-->
|
|
|
|
|
+ <img v-if="!showCurrencyList" src="/images/mobile/@2x/applyPurchase/currency-arrow-down.png" alt="">
|
|
|
|
|
+ <img v-if="showCurrencyList" src="/images/mobile/@2x/applyPurchase/currency-arrow-up.png" alt="">
|
|
|
|
|
+ <ul v-if="showCurrencyList">
|
|
|
|
|
+ <li @click="setCurrency('RMB')">RMB</li>
|
|
|
|
|
+ <li @click="setCurrency('USD')">USD</li>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="form-item" v-for="(reply, index) in sayPriceObj.replies">
|
|
|
|
|
+ <input type="text" placeholder="分段数量" class="fl" @blur="onReplyLapQtyBlur(index)" @input="onReplyLapQtyInput(index)" v-model="reply.lapQty">
|
|
|
|
|
+ <input type="text" placeholder="分段单价" class="fr" @input="onReplyPriceInput(index)" @blur="onReplyPriceBlur(index)" v-model="reply.price">
|
|
|
|
|
+ <i class="iconfont icon-minus" v-if="index > 0" @click="setReplies('sub', index)"></i>
|
|
|
|
|
+ <i class="iconfont icon-add" v-if="index == 0 && sayPriceObj.replies.length < 5" @click="setReplies('add', index)"></i>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="date">
|
|
|
|
|
+ <span>交期(天)</span>
|
|
|
|
|
+ <input type="text" placeholder="最大值" @input="onLeadtimeInput" @blur="onLeadtimeBlur" v-model="sayPriceObj.leadtime" class="fr">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <a class="say-price-btn" @click="commitSayPrice">确定</a>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="form-list">
|
|
|
|
|
- <div class="form-title">
|
|
|
|
|
- <span class="fl">价格梯度<span>(PCS)</span></span>
|
|
|
|
|
- <span class="fr">
|
|
|
|
|
- <!--<span v-text="sayPriceObj.currency" @click="setShowCurrencyList($event)"></span>-->
|
|
|
|
|
- <span v-text="sayPriceObj.currency" @click="setShowCurrencyList($event)"></span>
|
|
|
|
|
- <!--<span v-if="purchaseDetail.custCurrency" v-text="purchaseDetail.custCurrency"></span>-->
|
|
|
|
|
- <img v-if="!showCurrencyList" src="/images/mobile/@2x/applyPurchase/currency-arrow-down.png" alt="">
|
|
|
|
|
- <img v-if="showCurrencyList" src="/images/mobile/@2x/applyPurchase/currency-arrow-up.png" alt="">
|
|
|
|
|
- <ul v-if="showCurrencyList">
|
|
|
|
|
- <li @click="setCurrency('RMB')">RMB</li>
|
|
|
|
|
- <li @click="setCurrency('USD')">USD</li>
|
|
|
|
|
- </ul>
|
|
|
|
|
- </span>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="form-item" v-for="(reply, index) in sayPriceObj.replies">
|
|
|
|
|
- <input type="text" placeholder="分段数量" class="fl" @blur="onReplyLapQtyBlur(index)" @input="onReplyLapQtyInput(index)" v-model="reply.lapQty">
|
|
|
|
|
- <input type="text" placeholder="分段单价" class="fr" @input="onReplyPriceInput(index)" @blur="onReplyPriceBlur(index)" v-model="reply.price">
|
|
|
|
|
- <i class="iconfont icon-minus" v-if="index > 0" @click="setReplies('sub', index)"></i>
|
|
|
|
|
- <i class="iconfont icon-add" v-if="index == 0 && sayPriceObj.replies.length < 5" @click="setReplies('add', index)"></i>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="date">
|
|
|
|
|
- <span>交期(天)</span>
|
|
|
|
|
- <input type="text" placeholder="最大值" @input="onLeadtimeInput" @blur="onLeadtimeBlur" v-model="sayPriceObj.leadtime" class="fr">
|
|
|
|
|
- </div>
|
|
|
|
|
- <a class="say-price-btn" @click="commitSayPrice">确定</a>
|
|
|
|
|
- </div>
|
|
|
|
|
<remind-box :title="remindText" :timeoutCount="timeoutCount"></remind-box>
|
|
<remind-box :title="remindText" :timeoutCount="timeoutCount"></remind-box>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -112,6 +114,7 @@
|
|
|
mounted () {
|
|
mounted () {
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
document.addEventListener('click', this.checkCurrencySelect)
|
|
document.addEventListener('click', this.checkCurrencySelect)
|
|
|
|
|
+ this._initscroll()
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
filters: {
|
|
filters: {
|
|
@@ -137,6 +140,9 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ touchmove(e) {
|
|
|
|
|
+ e.preventDefault()
|
|
|
|
|
+ },
|
|
|
cancel: function () {
|
|
cancel: function () {
|
|
|
this.$emit('cancelSayPriceAction', false)
|
|
this.$emit('cancelSayPriceAction', false)
|
|
|
},
|
|
},
|
|
@@ -172,6 +178,7 @@
|
|
|
} else if (type === 'sub' && this.sayPriceObj.replies.length > 1) {
|
|
} else if (type === 'sub' && this.sayPriceObj.replies.length > 1) {
|
|
|
this.sayPriceObj.replies.splice(index, 1)
|
|
this.sayPriceObj.replies.splice(index, 1)
|
|
|
}
|
|
}
|
|
|
|
|
+ this._initscroll()
|
|
|
},
|
|
},
|
|
|
commitSayPrice: function () {
|
|
commitSayPrice: function () {
|
|
|
if (this.checkValid()) {
|
|
if (this.checkValid()) {
|
|
@@ -315,7 +322,7 @@
|
|
|
background: #f3f3f3;
|
|
background: #f3f3f3;
|
|
|
padding: .18rem 0;
|
|
padding: .18rem 0;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
- overflow-y: auto;
|
|
|
|
|
|
|
+ overflow: hidden;
|
|
|
height: 90%;
|
|
height: 90%;
|
|
|
.form-list {
|
|
.form-list {
|
|
|
height: 7.53rem;
|
|
height: 7.53rem;
|