Commit b53ced07 authored by jingnan's avatar jingnan 👀

不选择数据创建记录卡报错bug修改

parent 1b6b54f4
...@@ -232,14 +232,14 @@ export default { ...@@ -232,14 +232,14 @@ export default {
productArea: this.productArea, productArea: this.productArea,
modelNo: this.setAttrs.assignCardDetails && this.setAttrs.assignCardDetails.length && this.setAttrs.assignCardDetails[0].extMaterial && this.setAttrs.assignCardDetails[0].extMaterial.modelNo || '', modelNo: this.setAttrs.assignCardDetails && this.setAttrs.assignCardDetails.length && this.setAttrs.assignCardDetails[0].extMaterial && this.setAttrs.assignCardDetails[0].extMaterial.modelNo || '',
createTimeTo: this.$moment(new Date()).format('YYYY-MM-DD HH:mm:ss'), createTimeTo: this.$moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
assignCardDetails: this.setAttrs.assignCardDetails.map(item => { assignCardDetails: this.setAttrs && this.setAttrs.assignCardDetails && this.setAttrs.assignCardDetails.length && this.setAttrs.assignCardDetails.map(item => {
return { return {
subTypeName: 'AssignCardDetail', subTypeName: 'AssignCardDetail',
targetId: item.id, targetId: item.id,
targetIdType: 'extSupportingItem', targetIdType: 'extSupportingItem',
operator: 'ADD' operator: 'ADD'
} }
}) }) || []
} }
if (this.subTypeName === 'AssignCardAlodine') { if (this.subTypeName === 'AssignCardAlodine') {
params.baseModelNo = params.modelNo params.baseModelNo = params.modelNo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment