diff --git a/src/views/baseinfo/formcopy/components/Modal.vue b/src/views/baseinfo/formcopy/components/Modal.vue index 8377a2aa..ca4afc59 100644 --- a/src/views/baseinfo/formcopy/components/Modal.vue +++ b/src/views/baseinfo/formcopy/components/Modal.vue @@ -201,7 +201,7 @@ rowId.value = data.record.id const res: API.DataResult = await getCodeGoodsTypeInfo({ id: unref(rowId) }) plainOptions.value.splice(0) - if (res?.data?.content) { + if (res?.data?.content && JSON.parse(res.data.content).columns) { JSON.parse(res.data.content).columns.forEach((item) => { let type = true res.data.copyFields.split(',').forEach((e) => { @@ -218,7 +218,6 @@ res.data.copyFields.split(',').forEach((e) => { JSON.parse(res.data.content).columns.forEach((item) => { console.log(item, e, 11111111111) - if (item.field == e) { fromAllLabel.value.push(item) } @@ -251,18 +250,18 @@ // if (checkedList.value && checkedList.value.length) { // formData.copyFields = String(checkedList.value) // } - if (fromAllLabel.value && fromAllLabel.value.length) { - formData.copyFields = '' - - fromAllLabel.value.forEach((e) => { - if (formData.copyFields == '') { - formData.copyFields = e.field - } else { - formData.copyFields = `${formData.copyFields},${e.field}` - } - }) - console.log(formData.copyFields) - } + if (fromAllLabel.value && fromAllLabel.value.length) { + formData.copyFields = '' + + fromAllLabel.value.forEach((e) => { + if (formData.copyFields == '') { + formData.copyFields = e.field + } else { + formData.copyFields = `${formData.copyFields},${e.field}` + } + }) + console.log(formData.copyFields) + } loading.value = true const res: API.DataResult = await EditFormCopy(formData) loading.value = false diff --git a/src/views/operation/CustomerReconciliation/detail/index.vue b/src/views/operation/CustomerReconciliation/detail/index.vue index 87b81f6c..153d4165 100644 --- a/src/views/operation/CustomerReconciliation/detail/index.vue +++ b/src/views/operation/CustomerReconciliation/detail/index.vue @@ -28,7 +28,11 @@ - +