Browse Source

新增买家订单

shenjj 7 years ago
parent
commit
b3b3f9d128

+ 3 - 1
components/mobile/center/addinvoice.vue

@@ -150,7 +150,9 @@
       } else if (this.isSaveinvoiceType === 1206) {
         this.invoiceType = 'speci'
       } else {
-        this.invoiceType = this.chooseItem.kind === 1205 ? 'speci' : 'normal'
+        if (this.chooseItem.kind) {
+          this.invoiceType = this.chooseItem.kind === 1205 ? 'speci' : 'normal'
+        }
         if (this.chooseItem.kind) {
           this.agreeInfo = true
         }

+ 7 - 3
pages/mobile/center/user/invoice/waitinvoice.vue

@@ -161,7 +161,7 @@
                 </div>
               </div>
             </div>
-            <div class="applyinvoice-ul">
+            <div class="applyinvoice-ul" v-else>
               <div class="addinvoice-focus clearfix">
                 <div class="pull-left addinvoice-focus-name">暂无发票信息:</div>
                 <div class="pull-left clearfix" @click="addInvoiceNew()">
@@ -274,11 +274,13 @@
         return item.kind === 1205
       })
       let chooseItem = showSpeciBtn ? showSpeciBtn : showNormalBtn
+      let waitinvoiceType = showSpeciBtn ? 'speci' : 'normal'
       return {
         invoiceArr: data,
         showNormalBtn: showNormalBtn ? true: false,
         showSpeciBtn: showSpeciBtn ? true : false,
-        chooseItem: chooseItem
+        chooseItem: chooseItem,
+        waitinvoiceType: waitinvoiceType
       }
     },
     methods: {
@@ -311,10 +313,12 @@
             return item.kind === 1205
           })
           let chooseItem = showSpeciBtn ? showSpeciBtn : showNormalBtn
+          let waitinvoiceType = showSpeciBtn ? 'speci' : 'normal'
           this.invoiceArr = data
           this.showNormalBtn = showNormalBtn ? true: false
           this.showSpeciBtn = showSpeciBtn ? true : false
           this.chooseItem = chooseItem
+          this.waitinvoiceType = waitinvoiceType
         }
         this.showSend = true
       },
@@ -374,7 +378,7 @@
           str === '' ? str += obj.orderid : str += ',' + obj.orderid
         })
         let json = {
-          invoiceid: 3034,
+          invoiceid: this.chooseItem.id,
           orderids: str
         }
         this.$http.post('/trade/billSubmit', json).then(res => {