Ver código fonte

编号模板规则生成添加替换项

user5 2 anos atrás
pai
commit
7b4a1ec292

+ 1 - 1
src/views/modules/cw/reportManagement/reportReview/ReportReviewForm.vue

@@ -833,7 +833,7 @@
                 this.inputForm.taskName = data
               })
             }
-            if(data.reviewBys){
+            if (data.reviewBys) {
               data.reviewBys.forEach(re => {
                 let va = {
                   label: re.name,

+ 5 - 1
src/views/modules/sys/mould/SerialnumTplForm.vue

@@ -306,7 +306,7 @@
       },
       // 变量值处理
       variableValue (row, type) {
-        if (type === '1' || type === '2') {
+        if (type === '1' || type === '2' || type === '11') {
           row.value = ''
           row.showType = true
         }
@@ -372,6 +372,10 @@
             i = i + '{day}'
             j = j + obj.value
           }
+          // 公司简称
+          if (obj.type === '11') {
+            i = i + '{replacement}'
+          }
         })
         this.inputForm.serialTpl = i
         this.inputForm.serialTplEx = j