Explorar o código

森语-搬运工对账单-备注分行展示

jbb %!s(int64=2) %!d(string=hai) anos
pai
achega
f6ae50e227
Modificáronse 1 ficheiros con 9 adicións e 1 borrados
  1. 9 1
      src/views/oa/modules/SyCarryModal.vue

+ 9 - 1
src/views/oa/modules/SyCarryModal.vue

@@ -413,7 +413,15 @@
       getRemarks(){
           getAction('/sys/dict/getByCodeDict', {table:'sys_dict',text:'description',code:'dict_code',key:'remarks'}).then((res) => {
             var arr = res.split(' ')
-            this.formState.demo = arr[0]+'\n'+arr[1]+'\n'+arr[2]+'\n'+arr[3]
+            var c = ''
+            arr.map((item,index)=>{
+              if(index !== arr.length-1){
+                c += item+'\n'
+              }else{
+                c+=item
+              }
+            })
+            this.formState.demo = c
         })
       },
     // 计划员模糊查询