js 生成编号

    /** 生成编号 */
    getBM() {
      const dateTime = this.$moment(new Date().getTime()).format('YYYYMMDD');
      const random = Math.floor(Math.random() * 1000);
      const htbh = `YHCK${dateTime}${random}`;
      return htbh;
    },
posted @ 2023-08-17 09:00  寒冷的雨呢  阅读(129)  评论(0编辑  收藏  举报