Browse Source

代码提交:
1019编号模板管理修改

sunruiqi 2 years atrás
parent
commit
6bd495c943
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/views/modules/sys/mould/SerialnumTplForm.vue

+ 9 - 0
src/views/modules/sys/mould/SerialnumTplForm.vue

@@ -328,6 +328,10 @@
           row.value = new Date().getMonth() + 1
           row.showType = true
         }
+        if (type === '10') {
+          row.value = new Date().getDate()
+          row.showType = true
+        }
       },
       // 生成模板
       generateTemplate () {
@@ -363,6 +367,11 @@
             i = i + '{month}'
             j = j + obj.value
           }
+          // 日期
+          if (obj.type === '10') {
+            i = i + '{day}'
+            j = j + obj.value
+          }
         })
         this.inputForm.serialTpl = i
         this.inputForm.serialTplEx = j