yangc 7 жил өмнө
parent
commit
1422138f96

+ 1 - 1
assets/scss/mobileCommon.scss

@@ -281,7 +281,7 @@ input {
   //width: 7.17rem;
   margin: 0 auto .18rem;
   background: #fff;
-  padding: 0 29px;
+  padding: 0 .29rem;
   .content-line {
     height: .5rem;
     line-height: .5rem;

+ 10 - 0
components/mobile/applyPurchase/PublishSeek.vue

@@ -171,6 +171,16 @@
 //              this.$message.error('发布失败')
               this.setRemindText('发布失败')
             })
+        } else {
+          if (!this.validObj.code) {
+            this.setRemindText('型号不能为空')
+          } else if (!this.validObj.brand) {
+            this.setRemindText('品牌不能为空')
+          } else if (!this.validObj.deadline) {
+            this.setRemindText('截止日期不能为空')
+          } else if (!this.validObj.amount) {
+            this.setRemindText('请输入正确的数值')
+          }
         }
       },
       setCurrency: function (type) {

+ 9 - 6
components/mobile/applyPurchase/SayPriceInfo.vue

@@ -33,8 +33,8 @@
             </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="agreed != 1 && (!item.agreed || item.agreed !== 1) && activeIndex == index" src="/images/mobile/@2x/applyPurchase/say-price-check.png" alt="">
+            <img v-if="agreed != 1 && (!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}}
@@ -210,7 +210,7 @@
         height: 90%;
         .base-info {
           &.say-info {
-            height: 4.54rem;
+            /*height: 4.54rem;*/
             position: relative;
             > img {
               position: absolute;
@@ -236,11 +236,14 @@
             }
             .price-level {
               font-size: .26rem;
-              position: absolute;
-              top: 1.3rem;
-              right: .3rem;
+              /*position: absolute;*/
+              /*top: 1.3rem;*/
+              /*right: .3rem;*/
+              position: relative;
+              bottom: .3rem;
               width: 4rem;
               text-align: center;
+              margin-left: 2rem;
               p {
                 margin-bottom: .1rem;
                 span {

+ 4 - 2
components/mobile/applyPurchase/SeekList.vue

@@ -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