Browse Source

搬运工对账单-备注换行

jbb 2 years ago
parent
commit
c2e87e11d8
1 changed files with 9 additions and 5 deletions
  1. 9 5
      src/views/oa/modules/SyCarryModal.vue

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

@@ -377,6 +377,7 @@
     },
     created(){
       this.getOption()
+      this.getRemarks()
     },
     methods: {
       // 获取表头信息
@@ -409,6 +410,12 @@
           }
         })
       },
+      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]
+        })
+      },
     // 计划员模糊查询
     filterOption(input, option) {
       return (
@@ -417,11 +424,7 @@
           .indexOf(input.toLowerCase()) >= 0
       )},
       //增行
-     async addList(){
-        var remarks = ''
-        await  getAction('/sys/dict/getByCodeDict', {table:'sys_dict',text:'description',code:'dict_code',key:'remarks'}).then((res) => {
-          remarks = res
-        })
+      addList(){
         this.syCarryBTable.dataSource.push({
           orderDate:'',
           allNum:'',
@@ -614,6 +617,7 @@
         this.formState = {}
         this.visible = false
         this.defultMethods='add'
+        this.getRemarks()
         this.$emit('close')
       },
       // 价格改变