lichao пре 3 година
родитељ
комит
e915b6cfe7
1 измењених фајлова са 13 додато и 3 уклоњено
  1. 13 3
      src/components/finance/applyPayment.vue

+ 13 - 3
src/components/finance/applyPayment.vue

@@ -1,5 +1,6 @@
 <template>
   <div>
+    {{arrList}}
     <div v-for="(item, index) in list" :key="index">
       <el-row>
         <el-col :span="24"><span class="delete_group" v-if="list.length !== 1"  @click="deleteGroup(index)">删除组</span></el-col>
@@ -74,6 +75,10 @@
         },
         choceFun:{
           type:Function
+        },
+        arrList: {
+          type: Array,
+          default: [],
         }
       },
       data(){
@@ -296,9 +301,14 @@
         this.getWorkDicts("currency").then(res =>{
           this.currencyDic = res.data.data
         })
-        this.form.form = this.billData
-        this.corpId =  this.billData.corpId
-        this.configuration.dicData = this.billData.corpsName
+        if (this.arrList.length == 0) {
+          this.form.form = this.billData
+          this.corpId =  this.billData.corpId
+          this.configuration.dicData = this.billData.corpsName
+        }
+        if (this.arrList.length > 0) {
+          this.list = this.arrList
+        }
         this.addForm();
       },
       methods:{