|
@@ -414,11 +414,12 @@ export default {
|
|
|
}).then(res => {
|
|
|
this.formData = {
|
|
|
...res.data,
|
|
|
+ items: (res.data?.items || [])?.map(item => ({ ...item })),
|
|
|
contractTemplatePdf: res.data?.contractTemplatePdf?.[0]?.url
|
|
|
? [{ url: res.data?.contractTemplatePdf?.[0]?.url }]
|
|
|
: []
|
|
|
}
|
|
|
- this.itemsList = this.formData.items.map(item => ({ ...item }))
|
|
|
+ this.itemsList = (this.formData?.items || [])?.map(item => ({ ...item }))
|
|
|
this.$nextTick(() => {
|
|
|
this.formType = 1
|
|
|
this.formBool = true
|