shenjj 7 жил өмнө
parent
commit
4adfebf826

+ 9 - 5
components/mobile/applyPurchase/SayPrice.vue

@@ -79,12 +79,12 @@
               <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 style="position: relative;height: 1rem;"></div>
           </div>
         </div>
         <remind-box :title="remindText" :timeoutCount="timeoutCount"></remind-box>
       </div>
+      <a class="say-price-btn" @click="commitSayPrice">确定</a>
     </div>
   </div>
 </template>
@@ -377,7 +377,7 @@
       margin: 0 auto;
       .say-price {
         background: #f3f3f3;
-        padding: .18rem 0;
+        padding: .18rem 0 1rem;
         width: 100%;
         overflow: hidden;
         height: 90%;
@@ -503,11 +503,15 @@
               }
             }
           }
-          .say-price-btn {
-            width: 6.44rem;
-          }
         }
       }
+      .say-price-btn {
+        width: 6.44rem;
+        position: absolute;
+        bottom: 0.1rem;
+        left: 0;
+        right: 0;
+      }
     }
   }
 </style>

+ 3 - 0
pages/mobile/center/user/invoice/index.vue

@@ -255,6 +255,9 @@
           this.setRemindText('删除成功')
           this.showDeleteAlert = false
           this.invoiceList.splice(this.$index, 1)
+          if (this.invoiceList.length === 0) {
+            this.addInvoiceNew()
+          }
         })
       },
       setRemindText(str) {

+ 9 - 2
pages/mobile/center/vendor/invoice/index.vue

@@ -12,7 +12,7 @@
       </div>
     </div>
     <div class="search-content mi-search-content">
-      <input type="text" v-model="filterParams.keyword" @keyup.13="onFilter" placeholder="订单号/发票抬头/收票人/联系电话">
+      <input type="text" v-model="filterParams.keyword" @keyup.13="onFilter" placeholder="买家/订单号/收票人/联系电话">
       <span @click="onFilter"><i class="iconfont icon-sousuo"></i></span>
     </div>
     <div class="mi-remind-area" :class="{less: !showMoreRemind}" v-if="switchType == 'apply'">
@@ -137,7 +137,14 @@
                 </div>
               </div>
             </div>
-
+            <div class="list ">
+              <div class="clearfix">
+                <div class="pull-left">买家:</div>
+                <div class="pull-left" style="width: 5rem;">
+                  {{inv.submiter.userName}}
+                </div>
+              </div>
+            </div>
             <div class="list ">
               <div class="clearfix">
                 <div class="pull-left">订单号:</div>

+ 24 - 4
utils/mixin.js

@@ -28,9 +28,19 @@ export const sayPriceReplace = {
       this.validSayPrice.replaceBrand = this.sayPriceObj.replaceBrand && this.sayPriceObj.replaceBrand !== '' && nullStrFlag
       if (!this.validSayPrice.replaceBrand) {
         if (!nullStrFlag) {
-          this.$message.error('品牌输入不合法')
+          if (this.$store.state.option.isMobile === true) {
+            this.remindText = '品牌输入不合法'
+            this.timeoutCount++
+          } else {
+            this.$message.error('品牌输入不合法')
+          }
         } else {
-          this.$message.error('品牌不能为空')
+          if (this.$store.state.option.isMobile === true) {
+            this.remindText = '品牌不能为空'
+            this.timeoutCount++
+          } else {
+            this.$message.error('品牌不能为空')
+          }
         }
       }
       return this.validSayPrice.brand
@@ -41,9 +51,19 @@ export const sayPriceReplace = {
       this.validSayPrice.replaceCmpCode = code && code !== '' && nullStrFlag
       if (!this.validSayPrice.replaceCmpCode) {
         if (!nullStrFlag) {
-          this.$message.error('型号输入不合法')
+          if (this.$store.state.option.isMobile === true) {
+            this.remindText = '型号输入不合法'
+            this.timeoutCount++
+          } else {
+            this.$message.error('型号输入不合法')
+          }
         } else {
-          this.$message.error('型号不能为空')
+          if (this.$store.state.option.isMobile === true) {
+            this.remindText = '型号不能为空'
+            this.timeoutCount++
+          } else {
+            this.$message.error('型号不能为空')
+          }
         }
       }
       return this.validSayPrice.replaceCmpCode