data = {
price: $scope.projectMaterial.price,
priceUnit: $scope.projectMaterial.priceUnit,
priceUnitType: $scope.projectMaterial.priceUnitType,
quantity: $scope.projectMaterial.quantity,
certificationRequirement: $scope.certificationRequirements.toString(),
attachmentId: $('#attachmentId2').val(),
note: $scope.projectMaterial.note,
"materialModel.catalogId": $scope.thirdCatalog.id,
"materialModel.name": $scope.thirdCatalog.name,
"materialModel.materialNo": $scope.projectMaterial.materialModel.materialNo,
"materialModel.brand": $scope.projectMaterial.materialModel.brand?$scope.projectMaterial.materialModel.brand:"",
"materialModel.model": $scope.projectMaterial.materialModel.model?$scope.projectMaterial.materialModel.model:"",
"materialModel.specify": $("#specify").attr("checked")?true:false,
"materialModel.catalogId": $scope.thirdCatalog.id,
"materialModel.remark": $scope.projectMaterial.materialModel.remark?$scope.projectMaterial.materialModel.remark:"",
"materialModel.materialItems": []
};
price: $scope.projectMaterial.price,
priceUnit: $scope.projectMaterial.priceUnit,
priceUnitType: $scope.projectMaterial.priceUnitType,
quantity: $scope.projectMaterial.quantity,
certificationRequirement: $scope.certificationRequirements.toString(),
attachmentId: $('#attachmentId2').val(),
note: $scope.projectMaterial.note,
"materialModel.catalogId": $scope.thirdCatalog.id,
"materialModel.name": $scope.thirdCatalog.name,
"materialModel.materialNo": $scope.projectMaterial.materialModel.materialNo,
"materialModel.brand": $scope.projectMaterial.materialModel.brand?$scope.projectMaterial.materialModel.brand:"",
"materialModel.model": $scope.projectMaterial.materialModel.model?$scope.projectMaterial.materialModel.model:"",
"materialModel.specify": $("#specify").attr("checked")?true:false,
"materialModel.catalogId": $scope.thirdCatalog.id,
"materialModel.remark": $scope.projectMaterial.materialModel.remark?$scope.projectMaterial.materialModel.remark:"",
"materialModel.materialItems": []
};