|
@@ -164,12 +164,12 @@ const getProps = (data: any, prop: any) => {
|
|
|
let res;
|
|
|
if (prop == 'leader') {
|
|
|
for (const val of data[prop]) {
|
|
|
- res = ldList.value.find((i) => i._id == val._id);
|
|
|
+ res = ldList.value.find((i: any) => i._id == val._id);
|
|
|
if (res) list.push(res.name);
|
|
|
}
|
|
|
} else {
|
|
|
for (const val of data[prop]) {
|
|
|
- res = kjList.value.find((i) => i._id == val._id);
|
|
|
+ res = kjList.value.find((i: any) => i._id == val._id);
|
|
|
if (res) list.push(res.name);
|
|
|
}
|
|
|
}
|
|
@@ -188,7 +188,7 @@ const toEdit = async (data: any) => {
|
|
|
const toSave = async (data: any) => {
|
|
|
if (data.accounting) {
|
|
|
if (!data.accounting[0]._id) {
|
|
|
- data.accounting = data.accounting.map((i) => {
|
|
|
+ data.accounting = data.accounting.map((i: any) => {
|
|
|
let arrObj = { _id: '' };
|
|
|
arrObj._id = i;
|
|
|
return arrObj;
|
|
@@ -197,7 +197,7 @@ const toSave = async (data: any) => {
|
|
|
}
|
|
|
if (data.leader) {
|
|
|
if (!data.leader[0]._id) {
|
|
|
- data.leader = data.leader.map((i) => {
|
|
|
+ data.leader = data.leader.map((i: any) => {
|
|
|
let arrObj = { _id: '' };
|
|
|
arrObj._id = i;
|
|
|
return arrObj;
|