|
@@ -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:{
|