瀏覽代碼

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

jbb 2 年之前
父節點
當前提交
d68e7b3eed
共有 1 個文件被更改,包括 1 次插入1 次删除
  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