Forráskód Böngészése

Merge branch 'dev/v1.0.40_wmh' of jianyu/web into feature/v1.0.40

wenmenghao 1 éve
szülő
commit
eb8cb4c62b

+ 1 - 0
apps/mobile/src/views/invoice/Invoicing.vue

@@ -601,6 +601,7 @@ export default {
             this.infoMap.price = data.invoice_money
             this.infoMap.price = data.invoice_money
               ? data.invoice_money / 100
               ? data.invoice_money / 100
               : 0
               : 0
+            this.infoMap.code = data.order_code
           }
           }
           this.infoMap.type = this.DigitstoChinese_type(data.invoice_variety)
           this.infoMap.type = this.DigitstoChinese_type(data.invoice_variety)
           this.infoMap.content = data.invoice_content
           this.infoMap.content = data.invoice_content

+ 4 - 2
apps/mobile/src/views/invoice/viewInvoice.vue

@@ -173,7 +173,7 @@
       <p class="b-desc" v-if="desc">{{ desc }}</p>
       <p class="b-desc" v-if="desc">{{ desc }}</p>
       <div class="j-button-group">
       <div class="j-button-group">
         <button
         <button
-           v-if="!(!this.url && btntext === '查看发票')"
+          v-if="!(!this.url && btntext === '查看发票')"
           :class="{ 'j-button-confirm': true }"
           :class="{ 'j-button-confirm': true }"
           @click="confirm_ok"
           @click="confirm_ok"
           :disabled="btntext === '开票中'"
           :disabled="btntext === '开票中'"
@@ -513,7 +513,6 @@ export default {
           }
           }
         })
         })
       } else {
       } else {
-        this.infoMap.code = this.order_code
         ajaxInvoiceShowList({ ...this.urlparms }).then((res) => {
         ajaxInvoiceShowList({ ...this.urlparms }).then((res) => {
           loading.clear()
           loading.clear()
           this.invoiceList = res.invoiceData || []
           this.invoiceList = res.invoiceData || []
@@ -546,6 +545,9 @@ export default {
       this.invoiceId = this.chooseInvoice.id
       this.invoiceId = this.chooseInvoice.id
       this.changed = this.chooseInvoice.changed
       this.changed = this.chooseInvoice.changed
       this.create_time = this.chooseInvoice.create_time
       this.create_time = this.chooseInvoice.create_time
+      this.infoMap.code = this.chooseInvoice.invoice_order_code
+        ? this.chooseInvoice.invoice_order_code
+        : this.chooseInvoice.order_code
       this.infoMap.type = this.DigitstoChinese_type(
       this.infoMap.type = this.DigitstoChinese_type(
         this.chooseInvoice.invoice_variety
         this.chooseInvoice.invoice_variety
       )
       )