Browse Source

手机求购bug处理

yangc 7 years ago
parent
commit
4f48f2cdf6

+ 1 - 1
components/mobile/applyPurchase/PublishSeek.vue

@@ -182,7 +182,7 @@
           inquiryItem.userTel = this.user.data.userTel
           inquiryItem.userTel = this.user.data.userTel
           inquiryItem.needquantity = this.applyObj.amount
           inquiryItem.needquantity = this.applyObj.amount
           inquiryItem.inbrand = this.applyObj.brand
           inquiryItem.inbrand = this.applyObj.brand
-          inquiryItem.currency = currency
+          inquiryItem.custCurrency = currency
           inquiryItem.cmpCode = (this.applyObj.code).toUpperCase()
           inquiryItem.cmpCode = (this.applyObj.code).toUpperCase()
           inquiryItem.unitPrice = this.applyObj.unitPrice
           inquiryItem.unitPrice = this.applyObj.unitPrice
           inquiryItem.produceDate = this.applyObj.produceDate
           inquiryItem.produceDate = this.applyObj.produceDate

+ 6 - 8
components/mobile/applyPurchase/SayPrice.vue

@@ -17,7 +17,7 @@
             采购数量:<span>{{purchaseDetail.needquantity || '-'}}</span>
             采购数量:<span>{{purchaseDetail.needquantity || '-'}}</span>
           </div>
           </div>
           <div class="content-line">
           <div class="content-line">
-            币种:<span>{{purchaseDetail.currency || '不限'}}</span>
+            币种:<span>{{purchaseDetail.custCurrency || '不限'}}</span>
           </div>
           </div>
           <div class="content-line">
           <div class="content-line">
             生产日期:<span>{{purchaseDetail.produceDate || '-'}}</span>
             生产日期:<span>{{purchaseDetail.produceDate || '-'}}</span>
@@ -31,10 +31,10 @@
             <span class="fl">价格梯度<span>(PCS)</span></span>
             <span class="fl">价格梯度<span>(PCS)</span></span>
             <span class="fr">
             <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.currency" v-text="sayPriceObj.currency" @click="setShowCurrencyList($event)"></span>
-          <span v-if="purchaseDetail.currency" v-text="purchaseDetail.currency"></span>
-          <img v-if="!purchaseDetail.currency && !showCurrencyList" src="/images/mobile/@2x/applyPurchase/currency-arrow-down.png" alt="">
-          <img v-if="!purchaseDetail.currency && showCurrencyList" src="/images/mobile/@2x/applyPurchase/currency-arrow-up.png" alt="">
+          <span v-if="!purchaseDetail.custCurrency" v-text="sayPriceObj.currency" @click="setShowCurrencyList($event)"></span>
+          <span v-if="purchaseDetail.custCurrency" v-text="purchaseDetail.custCurrency"></span>
+          <img v-if="!purchaseDetail.custCurrency && !showCurrencyList" src="/images/mobile/@2x/applyPurchase/currency-arrow-down.png" alt="">
+          <img v-if="!purchaseDetail.custCurrency && showCurrencyList" src="/images/mobile/@2x/applyPurchase/currency-arrow-up.png" alt="">
           <ul v-if="showCurrencyList">
           <ul v-if="showCurrencyList">
             <li @click="setCurrency('RMB')">RMB</li>
             <li @click="setCurrency('RMB')">RMB</li>
             <li @click="setCurrency('USD')">USD</li>
             <li @click="setCurrency('USD')">USD</li>
@@ -172,9 +172,7 @@
           purchaseMan.vendUU = this.user.data.enterprise.uu
           purchaseMan.vendUU = this.user.data.enterprise.uu
           purchaseMan.vendUserUU = this.user.data.userUU
           purchaseMan.vendUserUU = this.user.data.userUU
           purchaseMan.qutoApp = 'MALL'
           purchaseMan.qutoApp = 'MALL'
-          if (!purchaseMan.currency) {
-            purchaseMan.currency = this.sayPriceObj.currency
-          }
+          purchaseMan.currency = purchaseMan.custCurrency || this.sayPriceObj.currency
           this.$http.post('/inquiry/sale/item/save', purchaseMan).then(response => {
           this.$http.post('/inquiry/sale/item/save', purchaseMan).then(response => {
             this.showLoading = false
             this.showLoading = false
             if (response.data.success === false) {
             if (response.data.success === false) {

+ 2 - 2
components/mobile/applyPurchase/SayPriceInfo.vue

@@ -18,7 +18,7 @@
               采购数量:<span>{{purchaseDetail.needquantity || '-'}}</span>
               采购数量:<span>{{purchaseDetail.needquantity || '-'}}</span>
             </div>
             </div>
             <div class="content-line">
             <div class="content-line">
-              币种:<span>{{purchaseDetail.currency || '不限'}}</span>
+              币种:<span>{{purchaseDetail.custCurrency || '不限'}}</span>
             </div>
             </div>
             <div class="content-line">
             <div class="content-line">
               生产日期:<span>{{purchaseDetail.produceDate || '-'}}</span>
               生产日期:<span>{{purchaseDetail.produceDate || '-'}}</span>
@@ -81,7 +81,7 @@
               采购数量:<span>{{purchaseDetail.needquantity || '-'}}</span>
               采购数量:<span>{{purchaseDetail.needquantity || '-'}}</span>
             </div>
             </div>
             <div class="content-line">
             <div class="content-line">
-              币种:<span>{{purchaseDetail.currency || '不限'}}</span>
+              币种:<span>{{purchaseDetail.custCurrency || '不限'}}</span>
             </div>
             </div>
             <div class="content-line">
             <div class="content-line">
               生产日期:<span>{{purchaseDetail.produceDate || '-'}}</span>
               生产日期:<span>{{purchaseDetail.produceDate || '-'}}</span>