Explorar o código

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

jbb %!s(int64=2) %!d(string=hai) anos
pai
achega
d68e7b3eed
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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