Sfoglia il codice sorgente

托书-新增页面-日期显示

jbb 2 anni fa
parent
commit
d68e7b3eed
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/views/book/addBookDrawer.vue

+ 1 - 1
src/views/book/addBookDrawer.vue

@@ -964,7 +964,7 @@ export default {
           })
           country=operation.split('-')
           var newObj = this.addBook
-          newObj.theFinalShippingDate = moment(this.addBook.theFinalShippingDate).format('YYYY-MM-DD')
+          newObj.theFinalShippingDate =(newObj.theFinalShippingDate&&newObj.theFinalShippingDate!=='') ?moment(this.addBook.theFinalShippingDate).format('YYYY-MM-DD'):''
           newObj.isAhaa = country[1]
           newObj.rmbList = this.rmbList
           newObj.usdList = this.usdList