소스 검색

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

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