gjy 3 years ago
parent
commit
fd58ceb402
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/houseSelfCollect/inspectInfo.vue

+ 2 - 1
src/views/houseSelfCollect/inspectInfo.vue

@@ -226,9 +226,10 @@
         if (datetime < 10) {
           datetime = '0' + datetime
         }
-        return year + mouth + datetime
+        return String(year) + String(mouth) + String(datetime)
       },
       calculation() {
+        console.log(this.getdate())
         let number = '000' + this.count
         number = number.substring(number.length - 4, number.length)
         this.inspect.qualityNo = 'ZCRK' + this.getdate() + this.cangNo + number //ZCRK+8位时间+3位仓库编号+4位序列号